/* eMAG Store — component CSS + Tailwind-compatible utilities.
   Tokens come from :root --emag-* (printed by PHP). Rebuild extras via `npm run build`. */

:root {
  --emag-primary: #005eb8;
  --emag-primary-dark: #004a93;
  --emag-primary-light: #1a75d2;
  --emag-accent: #f68b1e;
  --emag-accent-hover: #e07a10;
  --emag-genius: #6d28d9;
  --emag-genius-dark: #5b21b6;
  --emag-discount: #e11d48;
  --emag-success: #16a34a;
  --emag-star: #f5a623;
  --emag-body-bg: #ececec;
  --emag-surface: #ffffff;
  --emag-text: #1a1a1a;
  --emag-text-muted: #666666;
  --emag-text-light: #999999;
  --emag-border: #e5e5e5;
  --emag-header-text: #ffffff;
  --emag-nav-bg: #ffffff;
  --emag-nav-text: #1a1a1a;
  --emag-footer-bg: #ffffff;
  --emag-footer-text: #333333;
  --emag-footer-heading: #1a1a1a;
  --emag-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --emag-font-size: 14px;
  --emag-line-height: 1.45;
  --emag-heading-weight: 700;
  --emag-product-title-size: 13px;
  --emag-price-size: 20px;
  --emag-section-title-size: 20px;
  --emag-btn-radius: 8px;
  --emag-btn-height: 40px;
  --emag-btn-weight: 600;
  --emag-btn-primary-bg: var(--emag-primary);
  --emag-btn-primary-fg: #fff;
  --emag-btn-accent-bg: var(--emag-accent);
  --emag-btn-accent-fg: #fff;
  --emag-btn-cart-size: 36px;
  --emag-btn-cart-radius: 999px;
  --emag-btn-transform: none;
  --emag-topbar-bg: #003d7a;
  --emag-topbar-text: #fff;
  --emag-topbar-height: 32px;
  --emag-header-height: 64px;
  --emag-header-logo-height: 28px;
  --emag-header-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  --emag-search-radius: 8px;
  --emag-search-height: 40px;
  --emag-search-bg: #fff;
  --emag-search-text: #1a1a1a;
  --emag-nav-height: 40px;
  --emag-hero-height: 400px;
  --emag-hero-height-mobile: 200px;
  --emag-hero-radius: 16px;
  --emag-hero-gap: 16px;
  --emag-promo-radius: 12px;
  --emag-card-radius: 8px;
  --emag-card-padding: 12px;
  --emag-card-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --emag-card-hover-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  --emag-card-image-ratio: 1 / 1;
  --emag-card-title-lines: 2;
  --emag-card-price-color: var(--emag-accent);
  --emag-card-columns: 5;
  --emag-card-width: 196px;
  --emag-card-image-max: 168px;
  --emag-deals-bg: #fff;
  --emag-newsletter-bg: #005eb8;
  --emag-newsletter-text: #fff;
  --emag-container: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.emag-theme {
  margin: 0;
  font-family: var(--emag-font-family);
  font-size: var(--emag-font-size);
  line-height: var(--emag-line-height);
  color: var(--emag-text);
  background: var(--emag-body-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--emag-heading-weight); line-height: 1.25; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px;
  width: auto; height: auto; clip: auto;
  z-index: 10000; background: #fff; padding: 8px 12px;
}

.emag-icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex: none; }
.emag-container { width: min(100% - 32px, var(--emag-container)); margin-inline: auto; }

/* Buttons */
.emag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--emag-btn-height); padding: 0 18px;
  border-radius: var(--emag-btn-radius);
  font-weight: var(--emag-btn-weight);
  text-transform: var(--emag-btn-transform);
  letter-spacing: .01em;
  transition: background .15s, transform .15s;
}
.emag-btn--primary { background: var(--emag-btn-primary-bg); color: var(--emag-btn-primary-fg); }
.emag-btn--primary:hover { background: var(--emag-primary-dark); }
.emag-btn--accent { background: var(--emag-btn-accent-bg); color: var(--emag-btn-accent-fg); }
.emag-btn--accent:hover { background: var(--emag-accent-hover); }
.emag-btn--ghost { background: #f3f4f6; color: var(--emag-text); }
.emag-btn--ghost:hover { background: #e5e7eb; }

/* Top bar */
.emag-topbar {
  background: var(--emag-topbar-bg);
  color: var(--emag-topbar-text);
  height: var(--emag-topbar-height);
  font-size: 12px;
}
.emag-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.emag-topbar a { text-decoration: underline; }

/* Header */
.emag-header {
  background: var(--emag-primary);
  color: var(--emag-header-text);
  height: var(--emag-header-height);
  box-shadow: var(--emag-header-shadow);
  z-index: 50;
}
.emag-header.is-sticky { position: sticky; top: 0; }
.emag-header__inner {
  display: flex; align-items: center; gap: 20px;
  height: 100%;
}
.emag-header__burger { display: none; color: inherit; padding: 6px; }
.emag-header__search { flex: 1; min-width: 0; }

.emag-logo { display: flex; align-items: center; flex: none; }
.emag-logo img { height: var(--emag-header-logo-height); width: auto; }
.emag-logo__mark {
  font-weight: 800; font-size: 28px; letter-spacing: -0.04em;
  line-height: 1; color: #fff;
}
.emag-logo__e { font-style: italic; }
.emag-logo__mag { letter-spacing: -0.06em; }

/* Search */
.emag-search { position: relative; z-index: 70; }
.emag-search__row {
  display: flex; align-items: stretch;
  height: var(--emag-search-height);
  background: var(--emag-search-bg);
  border-radius: var(--emag-search-radius);
  overflow: hidden;
}
.emag-search input {
  flex: 1; border: 0; outline: none; min-width: 0;
  padding: 0 14px; color: var(--emag-search-text); background: transparent;
}
.emag-search input::placeholder { color: #9aa0a6; }
.emag-search__btn {
  width: 48px; background: var(--emag-accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.emag-search__btn:hover { background: var(--emag-accent-hover); }
.emag-search__btn .emag-icon { width: 20px; height: 20px; }
.emag-search__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; color: var(--emag-text);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18);
  z-index: 90; overflow: auto; max-height: min(70vh, 480px);
}
.emag-search__group { padding: 8px 0; border-bottom: 1px solid var(--emag-border); }
.emag-search__group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--emag-text-muted); padding: 6px 14px 4px; font-weight: 700;
}
.emag-search__drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
}
.emag-search__drop a:hover,
.emag-search__drop a.is-active { background: #f4f7fb; }
.emag-search__drop img { width: 48px; height: 48px; object-fit: contain; background: #fafafa; border-radius: 6px; flex: none; }
.emag-search__meta { min-width: 0; flex: 1; }
.emag-search__meta span { display: block; font-size: 13px; line-height: 1.3; }
.emag-search__meta small { color: var(--emag-text-light); font-size: 11px; }
.emag-search__price { margin-left: auto; color: var(--emag-accent); font-weight: 800; white-space: nowrap; }
.emag-search__price s { display: block; color: var(--emag-text-light); font-weight: 500; font-size: 11px; }
.emag-search__more { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--emag-primary); }
.emag-search__empty { padding: 16px; color: var(--emag-text-muted); }
.emag-header__search-open {
  display: none; color: #fff; padding: 8px;
}
.emag-header__search-open .emag-icon { width: 24px; height: 24px; }
.emag-search-sheet {
  position: fixed; inset: 0; background: #fff; z-index: 90;
  display: none; flex-direction: column;
}
.emag-search-sheet.is-open { display: flex; }
.emag-search-sheet__bar {
  display: flex; gap: 8px; align-items: center;
  padding: 12px; background: var(--emag-primary);
}
.emag-search-sheet__bar .emag-search { flex: 1; }
.emag-search-sheet__close { color: #fff; font-weight: 700; padding: 8px; }
.emag-search-sheet .emag-search__drop {
  position: static; max-height: none; box-shadow: none; border-radius: 0;
}

/* Header actions */
.emag-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.emag-actions__drop { position: relative; }
.emag-actions__item {
  display: flex; align-items: center; gap: 8px;
  color: inherit; padding: 6px 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.emag-actions__item:hover,
.emag-actions__drop.is-open > .emag-actions__item,
.emag-actions__drop:hover > .emag-actions__item { background: rgba(255,255,255,.12); }
.emag-actions__item .emag-icon { width: 22px; height: 22px; }
.emag-actions__icon { position: relative; display: inline-flex; }
.emag-badge-count {
  position: absolute; top: -7px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #fff; color: var(--emag-primary);
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.emag-badge-count.is-accent { background: var(--emag-accent); color: #fff; }
.emag-badge-count:empty,
.emag-badge-count[data-emag-fav-count="0"],
.emag-badge-count[data-emag-compare-count="0"],
.emag-badge-count[data-emag-cart-count="0"] { display: none; }

.emag-flyout {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px; background: #fff; color: var(--emag-text);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.16);
  padding: 8px; z-index: 80;
}
.emag-flyout--cart { min-width: 340px; padding: 0; overflow: hidden; }
.emag-actions__drop:hover .emag-flyout,
.emag-actions__drop:focus-within .emag-flyout,
.emag-actions__drop.is-open .emag-flyout { display: block; }
.emag-flyout__hello { margin: 4px 10px 8px; font-weight: 700; }
.emag-flyout a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; font-weight: 600;
}
.emag-flyout a:hover { background: #f4f7fb; color: var(--emag-primary); }

.emag-minicart { color: var(--emag-text); }
.emag-minicart__empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--emag-text-muted); }
.emag-minicart__list { max-height: 320px; overflow: auto; }
.emag-minicart__item {
  display: grid; grid-template-columns: 56px 1fr 28px; gap: 10px;
  align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--emag-border);
}
.emag-minicart__thumb img { width: 56px; height: 56px; object-fit: contain; }
.emag-minicart__item p { margin: 4px 0 0; font-size: 12px; color: var(--emag-text-muted); }
.emag-minicart__remove { color: #999; padding: 4px; }
.emag-minicart__foot { padding: 12px 14px 16px; background: #fafafa; }
.emag-minicart__total { display: flex; justify-content: space-between; margin: 0 0 10px; font-weight: 700; }
.emag-minicart__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emag-minicart__btns .emag-btn { width: 100%; height: 38px; font-size: 13px; }

/* Nav */
.emag-nav {
  background: var(--emag-nav-bg);
  color: var(--emag-nav-text);
  height: var(--emag-nav-height);
  border-bottom: 1px solid var(--emag-border);
  z-index: 40;
}
.emag-nav__inner { display: flex; align-items: center; height: 100%; gap: 8px; }
.emag-nav__dept { position: relative; height: 100%; }
.emag-nav__products {
  display: flex; align-items: center; gap: 8px;
  height: 100%; padding: 0 10px 0 0;
  font-weight: 700; color: inherit;
}
.emag-nav__quick { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: visible; }
.emag-nav__quick > li { position: relative; }
.emag-nav__sub {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 200px; background: #fff; border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12); padding: 8px 0; z-index: 50;
}
.emag-nav__quick > li:hover .emag-nav__sub { display: block; }
.emag-nav__sub a { display: block; padding: 8px 14px; font-size: 13px; }
.emag-nav__sub a:hover { background: #f4f7fb; color: var(--emag-primary); }
.emag-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px; font-weight: 600; font-size: 13px;
  white-space: nowrap;
}
.emag-nav__link:hover { background: #f3f4f6; }
.emag-nav__link--genius { color: var(--emag-genius); }
.emag-nav__link--accent { color: var(--emag-accent); }
.emag-genius-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #f5c16c, var(--emag-genius));
}

/* Mega menu */
.emag-mega {
  position: absolute; left: 0; top: 100%;
  display: none; min-width: 720px;
  background: #fff; border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  z-index: 60;
}
.emag-nav__dept:hover .emag-mega,
.emag-nav__dept:focus-within .emag-mega { display: flex; }
.emag-mega__cats { width: 280px; border-right: 1px solid var(--emag-border); padding: 8px 0; }
.emag-mega__cat > a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 13px;
}
.emag-mega__cat > a .emag-icon:last-child { margin-left: auto; opacity: .4; }
.emag-mega__cat.is-active > a,
.emag-mega__cat:hover > a { background: #f5f7fa; color: var(--emag-primary); }
.emag-mega__panel { display: none; padding: 18px 22px; min-width: 420px; }
.emag-mega__cat.is-active .emag-mega__panel,
.emag-mega__cat:hover .emag-mega__panel { display: block; }
.emag-mega__title { font-weight: 700; margin-bottom: 10px; }
.emag-mega__panel ul { columns: 2; gap: 24px; }
.emag-mega__panel li { padding: 5px 0; }
.emag-mega__panel a:hover { color: var(--emag-primary); }

/* Drawer */
.emag-drawer {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 80; display: none;
}
.emag-drawer.is-open,
.emag-drawer:not([hidden]) { display: block; }
.emag-drawer[hidden] { display: none; }
.emag-drawer__panel {
  width: min(86vw, 360px); height: 100%; background: #fff;
  overflow: auto; box-shadow: 8px 0 32px rgba(0,0,0,.2);
}
.emag-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--emag-primary); color: #fff;
}
.emag-drawer__account {
  display: flex; flex-direction: column; padding: 8px 0;
  border-bottom: 1px solid var(--emag-border);
}
.emag-drawer__account a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-weight: 600;
}
.emag-drawer__title { margin: 12px 16px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--emag-text-muted); }
.emag-drawer__row { display: flex; align-items: stretch; border-bottom: 1px solid var(--emag-border); }
.emag-drawer__row > a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px 12px 16px; flex: 1;
}
.emag-drawer__tog { width: 44px; color: #666; }
.emag-drawer__sub { background: #f7f8fa; padding: 4px 0 8px; }
.emag-drawer__sub a { display: block; padding: 8px 16px 8px 44px; }

/* Breadcrumbs */
.emag-bc { background: transparent; padding: 10px 0 0; font-size: 12px; color: var(--emag-text-muted); }
.emag-bc__list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emag-bc a:hover { color: var(--emag-primary); }

/* Hero */
.emag-hero-wrap { padding: 16px 0 8px; }
.emag-hero {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 236px;
  gap: var(--emag-hero-gap);
  height: var(--emag-hero-height);
}
.emag-cats {
  background: var(--emag-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--emag-card-shadow);
}
.emag-cats ul { height: 100%; display: flex; flex-direction: column; padding: 6px 0; }
.emag-cats li { flex: 1; min-height: 0; }
.emag-cats a {
  display: flex; align-items: center; gap: 8px;
  height: 100%; padding: 0 10px 0 12px; font-size: 12.5px;
}
.emag-cats a:hover { background: #f4f7fb; color: var(--emag-primary); }
.emag-cats a span { flex: 1; }
.emag-cats .emag-icon:last-child { opacity: .35; width: 14px; }

.emag-slider {
  position: relative; border-radius: var(--emag-hero-radius);
  overflow: hidden; background: #d9d9d9; min-width: 0;
}
.emag-slider__track, .emag-slider__slide { height: 100%; }
.emag-slider__slide { display: none; position: relative; color: #fff; }
.emag-slider__slide.is-active { display: block; }
.emag-slider__slide picture,
.emag-slider__slide img { width: 100%; height: 100%; display: block; }
.emag-slider__slide img { object-fit: cover; }
.emag-slider__veil { position: absolute; inset: 0; background: #000; }
.emag-slider__copy {
  position: absolute; left: 32px; bottom: 36px; right: 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  z-index: 1;
}
.emag-slider__title { font-size: 32px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.emag-slider__sub { font-size: 16px; opacity: .95; }
.emag-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #222;
  display: grid; place-items: center; z-index: 2;
}
.emag-slider__arrow.is-prev { left: 12px; }
.emag-slider__arrow.is-next { right: 12px; }
.emag-slider__dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.emag-slider__dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55);
}
.emag-slider__dots button.is-active { background: #fff; width: 18px; border-radius: 8px; }

.emag-promos { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; min-height: 0; }
.emag-promo {
  position: relative; overflow: hidden;
  border-radius: var(--emag-promo-radius);
  padding: 16px; display: flex; align-items: flex-end;
  min-height: 0;
}
.emag-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.emag-promo span { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.emag-promo strong { font-size: 16px; }
.emag-promo small { opacity: .9; font-size: 12px; }

/* Sections / carousels */
.emag-section { padding: 8px 0; }
.emag-section__card {
  background: var(--emag-surface);
  border-radius: 12px;
  padding: 16px 16px 8px;
  box-shadow: var(--emag-card-shadow);
}
.emag-deals .emag-section__card { background: var(--emag-deals-bg); }
.emag-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 10px; padding: 0 4px;
}
.emag-section__title { display: flex; align-items: center; gap: 8px; }
.emag-section__title .emag-icon { color: var(--emag-accent); width: 22px; height: 22px; }
.emag-section__head h2 { font-size: var(--emag-section-title-size); }
.emag-section__more { color: var(--emag-primary); font-weight: 600; font-size: 13px; }

.emag-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--emag-text-muted); }
.emag-count__box {
  background: #1a1a1a; color: #fff; min-width: 28px; height: 28px;
  border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums;
}

.emag-carousel { position: relative; }
.emag-carousel__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.emag-carousel__track::-webkit-scrollbar { display: none; }
.emag-carousel__track > .emag-card {
  flex: 0 0 var(--emag-card-width);
  width: var(--emag-card-width);
  max-width: var(--emag-card-width);
  scroll-snap-align: start;
}
.emag-carousel__btn {
  position: absolute; top: 40%; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.16);
  display: grid; place-items: center;
}
.emag-carousel__btn.is-prev { left: -6px; }
.emag-carousel__btn.is-next { right: -6px; }

/* Product card */
.emag-card {
  background: var(--emag-surface);
  border-radius: var(--emag-card-radius);
  padding: var(--emag-card-padding);
  box-shadow: var(--emag-card-shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.emag-card:hover { box-shadow: var(--emag-card-hover-shadow); }
.emag-card__media { position: relative; }
.emag-card__media a {
  display: grid; place-items: center;
  height: var(--emag-card-image-max);
  max-height: var(--emag-card-image-max);
  background: #fff;
}
.emag-card__media img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: var(--emag-card-image-max);
  object-fit: contain;
}
.emag-card__off {
  position: absolute; left: 0; top: 0;
  background: var(--emag-discount); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 6px;
  border-radius: 4px;
}
.emag-card__tools {
  position: absolute; right: 0; top: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.emag-card__tool {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #667;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: grid; place-items: center;
}
.emag-card__tool .emag-icon { width: 16px; height: 16px; }
.emag-card__tool.is-on { color: var(--emag-discount); }
.emag-card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; flex: 1; }
.emag-card__title {
  font-size: var(--emag-product-title-size);
  font-weight: 400; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: var(--emag-card-title-lines);
  -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * var(--emag-card-title-lines));
}
.emag-card__title a:hover { color: var(--emag-primary); }
.emag-chip {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; background: #fff3e6; color: var(--emag-accent);
}
.emag-chip--genius { background: #f3e8ff; color: var(--emag-genius); }
.emag-rating { display: inline-flex; align-items: center; gap: 1px; color: var(--emag-star); }
.emag-rating .emag-icon { width: 13px; height: 13px; }
.emag-rating__count { margin-left: 6px; color: var(--emag-text-light); font-size: 12px; }
.emag-card__stock { font-size: 12px; margin: 0; }
.emag-card__stock.is-in { color: var(--emag-success); }
.emag-card__stock.is-out { color: var(--emag-discount); }
.emag-card__price { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.emag-card__old { color: var(--emag-text-light); font-size: 12px; }
.emag-price { color: var(--emag-card-price-color); font-size: var(--emag-price-size); font-weight: 800; margin: 0; line-height: 1.1; }
.emag-price__dec { font-size: .62em; }
.emag-price__cur { font-size: .55em; font-weight: 700; }
.emag-card__cart-btn {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: var(--emag-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; line-height: 0;
  box-shadow: 0 4px 10px rgba(0, 94, 184, .28);
}
.emag-card__cart-btn .emag-icon {
  width: 20px; height: 20px;
  display: block;
}
.emag-card__cart-btn:hover { background: var(--emag-primary-dark); transform: scale(1.05); }
.emag-card__cart-btn.is-added { background: var(--emag-success); }

.emag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px;
}
.emag-grid > .emag-card { max-width: none; width: auto; }
.emag-empty { background: #fff; border-radius: 12px; padding: 40px; text-align: center; }
.emag-empty-inline { padding: 16px 8px 20px; color: var(--emag-text-muted); }

/* Newsletter */
.emag-nl-wrap { padding: 8px 0; }
.emag-nl {
  background: var(--emag-newsletter-bg);
  color: var(--emag-newsletter-text);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 140px 1fr 1.1fr;
  gap: 20px; align-items: center;
  padding: 20px 24px;
}
.emag-nl__art { display: grid; place-items: center; }
.emag-nl__art .emag-icon { width: 72px; height: 72px; opacity: .9; }
.emag-nl__copy h2 { font-size: 20px; margin-bottom: 8px; }
.emag-nl__copy p { margin: 0; opacity: .9; }
.emag-nl__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 10px; align-items: end; }
.emag-nl__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.emag-nl__form input {
  height: 40px; border: 0; border-radius: 8px; padding: 0 10px; color: #111;
}
.emag-nl__disc { grid-column: 1 / -1; margin: 0; font-size: 11px; opacity: .8; }
.emag-nl__msg { grid-column: 1 / -1; margin: 0; font-weight: 700; }

/* Marketplace */
.emag-mkt {
  background: linear-gradient(90deg, #0b3d78, #1a75d2);
  color: #fff; border-radius: 12px;
  padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.emag-mkt__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; opacity: .8; margin: 0 0 6px; }
.emag-mkt h2 { font-size: 28px; margin-bottom: 12px; }
.emag-mkt li { padding: 3px 0; }
.emag-mkt .emag-btn { margin-top: 16px; }
.emag-mkt__visual .emag-icon { width: 96px; height: 96px; opacity: .5; }

/* Footer */
.emag-footer {
  background: var(--emag-footer-bg);
  color: var(--emag-footer-text);
  margin-top: 24px; padding: 36px 0 16px;
  border-top: 1px solid var(--emag-border);
}
.emag-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.emag-footer__col h3 { color: var(--emag-footer-heading); font-size: 14px; margin-bottom: 12px; }
.emag-footer__list a { display: block; padding: 5px 0; font-size: 13px; color: var(--emag-footer-text); }
.emag-footer__list a:hover { color: var(--emag-primary); }

.emag-legal { background: #f7f7f7; border-top: 1px solid var(--emag-border); padding: 16px 0 24px; }
.emag-legal__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.emag-legal__copy { margin: 0; font-size: 12px; color: var(--emag-text-muted); }
.emag-legal__social, .emag-legal__apps { display: flex; gap: 10px; align-items: center; }
.emag-legal__social a, .emag-legal__apps a {
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.emag-legal__apps a { width: auto; border-radius: 8px; padding: 0 10px; height: 34px; font-size: 12px; font-weight: 600; gap: 6px; display: inline-flex; align-items: center; }
.emag-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.emag-pay span {
  background: #fff; border: 1px solid var(--emag-border); border-radius: 4px;
  padding: 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.emag-pay__visa { color: #1a1f71; }
.emag-pay__mc { color: #eb001b; }

/* Pages */
.emag-page { padding: 20px 0 40px; }
.emag-page__head { margin-bottom: 16px; }
.emag-article {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: var(--emag-card-shadow); margin-bottom: 16px;
}
.emag-article__title { font-size: 26px; margin-bottom: 12px; }
.emag-prose p { margin: 0 0 12px; }
.emag-404 { text-align: center; background: #fff; border-radius: 12px; padding: 48px 24px; }
.emag-404__code { font-size: 72px; font-weight: 800; color: var(--emag-primary); margin: 0; }
.emag-404 .emag-search { max-width: 420px; margin: 20px auto; border: 1px solid var(--emag-border); }
.emag-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emag-primary); color: #fff;
  box-shadow: 0 6px 18px rgba(0,94,184,.35);
  display: grid; place-items: center;
}
.emag-top span { display: none; }

/* Product detail */
.emag-pdp {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px; background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: var(--emag-card-shadow); margin-bottom: 16px;
}
.emag-pdp__gallery {
  background: #fff; border: 1px solid var(--emag-border); border-radius: 12px;
  min-height: 360px; display: grid; place-items: center; padding: 24px;
}
.emag-pdp__gallery img { max-height: 420px; object-fit: contain; }
.emag-pdp__info h1 { font-size: 24px; margin: 8px 0 12px; }
.emag-price--xl { font-size: 32px; margin: 8px 0 16px; }
.emag-pdp__info .emag-btn { height: 48px; padding: 0 28px; font-size: 16px; }
@media (max-width: 860px) {
  .emag-pdp { grid-template-columns: 1fr; }
}

/* Woo wrappers */
.emag-shop .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 12px; list-style: none; padding: 0;
}
.emag-shop .products > li { list-style: none; margin: 0; }
.emag-shop .products .emag-card { height: 100%; }
.woocommerce-result-count, .woocommerce-ordering { color: var(--emag-text-muted); }

/* Responsive */
@media (max-width: 1100px) {
  .emag-hero { grid-template-columns: 200px minmax(0,1fr); height: auto; }
  .emag-promos { display: none; }
  .emag-hero .emag-slider { min-height: 280px; height: 320px; }
  .emag-nl { grid-template-columns: 1fr; }
  .emag-nl__form { grid-template-columns: 1fr 1fr; }
  .emag-nl__form button { grid-column: 1 / -1; }
  .emag-actions__label { display: none; }
  .emag-actions__item--login,
  .emag-actions__item--register { display: none; }
}
@media (max-width: 860px) {
  .emag-header__burger { display: inline-flex; }
  .emag-header__search { display: none; }
  .emag-header__search-open { display: grid; place-items: center; }
  .emag-actions__label { display: none; }
  .emag-nav { display: none; }
  .emag-hero { grid-template-columns: 1fr; }
  .emag-cats { display: none; }
  .emag-hero .emag-slider,
  .emag-slider { height: var(--emag-hero-height-mobile); min-height: var(--emag-hero-height-mobile); border-radius: 12px; }
  .emag-slider__title { font-size: 16px; }
  .emag-slider__sub { font-size: 13px; }
  .emag-slider__copy { left: 14px; right: 14px; bottom: 16px; }
  .emag-slider__arrow { width: 32px; height: 32px; }
  .emag-footer__cols { grid-template-columns: 1fr 1fr; }
  .emag-carousel__track > .emag-card { flex-basis: 156px; width: 156px; max-width: 156px; }
  .emag-mkt { flex-direction: column; align-items: flex-start; }
  .emag-flyout--cart { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; }
}
@media (max-width: 520px) {
  .emag-container { width: min(100% - 16px, var(--emag-container)); }
  .emag-logo__mark { font-size: 22px; }
  .emag-nl__form { grid-template-columns: 1fr; }
}
