:root{
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg:#fbfaf8;
  --text:#111827;
  --muted:#6b7280;
  --line:#e7e5e4;
  --soft:#fafaf9;
  --soft2:#fffaf3;
  --brand:#c09a59;     /* gold */
  --brand-2:#d4af37;
  --brand-deep:#8a6a2f;
  --accent:#0b6fbd;
  --success:#25D366;
  --danger:#ef4444;
  --black:#000000;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 34px 90px rgba(2, 6, 23, 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 28px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-lg: 20px;

  --surface: rgba(255,255,255,.92);
  --surface-2: rgba(255,255,255,.82);
  --ring: 0 0 0 4px rgba(192,154,89,.22);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

/* Prevent background scroll when drawers are open */
html.drawer-open,
body.drawer-open{
  overflow: hidden;
  overscroll-behavior: none;
}

body{
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Subtle luxury background (safe, no layout impact) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 18% 8%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(900px 500px at 82% 12%, rgba(255,77,125,.10), transparent 55%),
    radial-gradient(900px 500px at 52% 90%, rgba(11,111,189,.06), transparent 60%);
}

::selection{ background: rgba(192,154,89,.22); }

a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }
.container--wide{ width:min(1320px, 92%); margin:0 auto; }

/* Accessibility: skip link */
.skipLink{
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 18px 40px rgba(2,6,23,.16);
  font-weight: 900;
  transform: translateY(-140%);
  transition: transform .15s ease;
}
.skipLink:focus{ transform: translateY(0); }

/* Better focus outline (premium + accessible) */
:where(a, button, input, select, textarea):focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

.small{ font-size:12px; }
.muted{ color:var(--muted); }
.pill{
  display:inline-flex; gap:8px; align-items:center;
  background: var(--soft2);
  color: var(--brand);
  border:1px solid var(--brand);
  padding:6px 12px; border-radius:999px;
  font-weight:600; font-size:12px;
}

/* Layout guards (prevents random horizontal overflow) */
html, body{ max-width:100%; overflow-x:hidden; }
@supports (overflow: clip){
  html, body{ overflow-x:clip; }
}

/* -----------------------
   Flash Deals (Primor-like)
------------------------*/
.flashSection{
  background:#fff;
  border-top: 1px solid rgba(229,231,235,.85);
  border-bottom: 1px solid rgba(229,231,235,.85);
}
.flashSection__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.flashSection__title{
  margin:0;
  font-weight:1000;
  letter-spacing:-0.02em;
}
.flashSection__sub{ margin:6px 0 0; font-weight:650; }
.flashSection__tools{
  display:flex;
  align-items:center;
  gap:12px;
}
.flashSection__pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background: rgba(250,250,249,.9);
  font-weight:900;
}
.flashSection__arrows{ display:flex; gap:10px; }
.carouselArrows{ display:flex; gap:10px; align-items:center; }
.flashArrow{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 26px rgba(2,6,23,.10);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.flashArrow:hover{ transform: translateY(-1px); border-color: rgba(192,154,89,.35); box-shadow: 0 18px 40px rgba(2,6,23,.14); }
.flashArrow:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }

.flashCarousel{ position:relative; }
.flashCarousel__viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  display:block;
  padding:6px 12px 14px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
}
.flashCarousel__viewport::-webkit-scrollbar{ display:none; }
.flashCarousel__track{
  display:flex;
  gap:14px;
  padding:2px;
  flex-wrap:nowrap;
}

.flashCard{
  flex: 0 0 220px;
  scroll-snap-align:start;
  background:#fff;
  border:1px solid rgba(229,231,235,.92);
  border-radius:18px;
  box-shadow: 0 18px 44px rgba(2,6,23,.10);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  height:452px;
}
.flashCard__inner{
  padding:12px 12px 14px;
  display:flex;
  flex-direction:column;
  flex: 1 1 auto;
}
.flashCard__top{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  pointer-events:none;
  z-index:2;
}
.flashCard__badge,
.flashCard__off{
  pointer-events:none;
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.flashCard__badge{
  background: rgba(192,154,89,.14);
  border:1px solid rgba(192,154,89,.28);
  color: var(--brand-deep);
}
.flashCard__off{
  margin-left:auto;
  background: rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  color:#b91c1c;
}

.flashCard__wish{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.95);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.flashCard__wish:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(2,6,23,.12); border-color: rgba(192,154,89,.35); }
.flashCard__wish.active{ color:#e11d48; border-color: rgba(225,29,72,.22); }

.flashCard__media{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px 12px 10px;
}
.flashCard__link{ display:block; color:inherit; text-decoration:none; }
.flashCard__img{
  width:160px;
  height:160px;
  object-fit:contain;
  display:block;
}
.flashCard__brand{
  font-weight:1000;
  font-size:12px;
  color: var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.flashCard__title{
  margin:6px 0 10px;
  font-weight:800;
  font-size:14px;
  line-height:1.3;
  display:-webkit-box;
  line-clamp:2;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:36px;
}
.flashCard__meta{ display:flex; align-items:center; gap:8px; margin:-2px 0 10px; }
.flashCard__prices{ display:flex; align-items:baseline; gap:10px; }
.flashCard__old{ color: var(--muted); text-decoration: line-through; font-weight:800; font-size:13px; }
.flashCard__new{ color:#b91c1c; font-weight:1000; font-size:18px; }
.flashCard__sizes{ margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.flashCard__actions{ margin-top:auto; }

.flashAdd{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(192,154,89,.30);
  background: linear-gradient(180deg, rgba(192,154,89,.95), rgba(192,154,89,.82));
  color:#111827;
  font-weight:1000;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(2,6,23,.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.flashAdd:hover{ transform: translateY(-1px); box-shadow: 0 18px 44px rgba(2,6,23,.16); filter:saturate(1.06); }
.flashAdd:active{ transform: translateY(0); }

.flashSize{
  height:32px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.95);
  background: rgba(250,250,249,.7);
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}
.flashSize:hover{ transform: translateY(-1px); border-color: rgba(192,154,89,.35); }
.flashSize.active{
  border-color: rgba(192,154,89,.55);
  background: rgba(192,154,89,.12);
  color: var(--brand-deep);
}

@media (max-width: 860px){
  .flashSection__head{ align-items:flex-start; flex-direction:column; }
  .flashSection__tools{ width:100%; justify-content:space-between; }
  .flashCard{ flex-basis: min(78vw, 320px); }
}

@media (max-width: 540px){
  .flashSection__pill{ width:100%; justify-content:center; }
  .flashSection__arrows{ display:none; }
  .carouselArrows{ display:none; }
}

/* -----------------------
   Best Sellers carousel
------------------------*/
.productCarousel{ position:relative; }
.productCarousel__viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-snap-stop:always;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  padding:2px 12px 14px;
  scroll-padding-left:2px;
}
.productCarousel__viewport::-webkit-scrollbar{ display:none; }

/* Override default grid for the carousel track only */
#productGrid{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:14px;
  padding:2px;
}
#productGrid > .card,
#productGrid > article{
  flex: 0 0 220px;
  scroll-snap-align:start;
}

/* Recently viewed uses the same carousel track layout */
#recentGrid{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:14px;
  padding:2px;
}
#recentGrid > .flashCard,
#recentGrid > .card,
#recentGrid > article{
  flex: 0 0 220px;
  scroll-snap-align:start;
}
@media (max-width: 860px){
  #productGrid > .card,
  #productGrid > article{ flex-basis: min(78vw, 320px); }

  #recentGrid > .flashCard,
  #recentGrid > .card,
  #recentGrid > article{ flex-basis: min(78vw, 320px); }

  /* Mobile: make swiping feel less sticky */
  .flashCarousel__viewport{ scroll-snap-type: x proximity; }
  .productCarousel__viewport{ scroll-snap-type: x proximity; scroll-snap-stop: normal; }
}

/* Topbar */
.topbar{
  background: linear-gradient(90deg, var(--brand), #ff4d7d);
  color:white;
  font-size:12px; font-weight:500;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
}
.topbar__link{
  opacity:.95;
  text-decoration:underline;
}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.85);
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.header__inner{
  display:grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  gap:16px;
  align-items:center;
  padding:16px 0;
}

/* Desktop/Web menu (header) */
.webNav{ display:none; }

/* Legacy desktop nav (older pages) — keep hidden; replaced by .webNav */
.desktop-nav{ display:none; }

@media (min-width: 1025px){
  .webNav{
    display:block;
    border-top: 1px solid rgba(229,231,235,.65);
    background: transparent;
  }
  .webNav__inner{
    display:flex;
    align-items:center;
    gap: 6px;
    padding: 8px 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .webNav__inner::-webkit-scrollbar{ display:none; }

  .webNav__link{
    display:inline-flex;
    align-items:center;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
  }
  .webNav__link:hover{
    background: rgba(192,154,89,.10);
    border-color: rgba(192,154,89,.20);
    transform: translateY(-1px);
  }
  .webNav__link:focus-visible{ box-shadow: var(--ring); }

  html[dir="rtl"] .webNav__inner{ justify-content:flex-end; }
}

/* Premium header state on scroll (JS toggles .header--compact) */
.header--compact{
  box-shadow: 0 14px 34px rgba(2,6,23,.10);
  background: rgba(255,255,255,.96);
  border-bottom-color: rgba(229,231,235,.95);
}

@media (min-width: 861px){
  .header--compact .header__inner{ padding: 10px 0; }
  .header--compact .brand__mark{ width: 34px; height: 34px; border-radius: 10px; }
  .header--compact .brand__tag{ display: none; }
  .header--compact .search{ padding-top: 9px; padding-bottom: 9px; }
  .header--compact .icon-btn{ width: 42px; height: 42px; }
}

@media (max-width: 860px){
  .header__inner{
    grid-template-columns: 1fr 44px;
    grid-template-areas:
      "brand cart"
      "search search";
  }
  .brand{ grid-area: brand; justify-self:start; min-width: 0; }
  .search{ grid-area: search; }
  .header__actions{ grid-area: cart; justify-self:end; }
}

/* Mobile usability fixes */
@media (max-width: 540px){
  .topbar__inner{
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar__link{ margin-left: auto; }
}

.brand{
  display:flex; gap:10px; align-items:center;
  min-width: 210px;
}
.brand__mark{
  width:40px; height:40px;
  border-radius:12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 22px rgba(192, 154, 89, 0.2);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.05; }
.brand__name{ font-weight:800; letter-spacing:.4px; font-size:14px; }
.brand__tag{ font-size:12px; color:var(--muted); margin-top:4px; }

@media (min-width: 861px){
  .brand__name{ font-size: 15px; }
}

/* Typography */
h1{ font-size:28px; line-height:1.12; margin:0 0 12px; letter-spacing:-0.6px; font-weight:900; }
h2{ font-size:22px; line-height:1.18; margin:0 0 10px; font-weight:800; letter-spacing:-0.25px; }
h3{ font-size:18px; line-height:1.25; margin:0 0 8px; font-weight:800; }
small, .small{ font-size:var(--fs-sm); }
p{ margin:0 0 12px; }

.search{
  position:relative;
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:10px 14px 10px 42px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
.search input{
  width:100%;
  border:0; outline:0;
  font-size:14px;
  background:transparent;
}
.search__clear{
  border:0;
  background: transparent;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  color:var(--muted);
  padding:0 6px;
  display:none;
}
.search.hasValue .search__clear{ display:block; }

.header__actions{
  display:flex; justify-content:flex-end; gap:10px; align-items:center;
}

@media (min-width: 861px){
  .header__actions{
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(226,232,240,.95);
    background: rgba(255,255,255,.70);
    box-shadow: 0 10px 22px rgba(2,6,23,.06);
  }
}

.langToggle{
  border-radius: 999px;
  font-weight: 900;
}

/* Desktop Navigation removed from header (kept empty intentionally) */

/* Navigation Dropdown */
.nav-dropdown{
  position:relative;
}
.nav-dropdown__trigger{
  display:flex; align-items:center; gap:6px;
  background:none; border:none;
  color: var(--text);
  font-weight:600; font-size:14px;
  cursor:pointer;
  transition: color .12s ease;
  padding:8px 0;
}
.nav-dropdown__trigger:hover{
  color: var(--brand);
}
.nav-dropdown__arrow{
  font-size:10px;
  transition: transform .2s ease;
}
.nav-dropdown.open .nav-dropdown__arrow{
  transform: rotate(180deg);
}
.nav-dropdown__menu{
  position:absolute; top:100%; left:0;
  background:white;
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(2,6,23,.15), 0 0 0 1px rgba(225,29,72,.05);
  min-width:200px;
  opacity:0; visibility:hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:100;
}
.nav-dropdown.open .nav-dropdown__menu{
  opacity:1; visibility:visible;
  transform: translateY(0);
}
.nav-dropdown__item{
  display:block;
  padding:12px 16px;
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  transition: background .12s ease;
  border-radius: 8px;
  margin:4px 8px;
}
.nav-dropdown__item:hover, .nav-dropdown__trigger:hover, .desktop-nav a:hover{
  background: rgba(225,29,72,.06);
  color: var(--brand);
}
.nav-dropdown__item:first-child{
  font-weight:700;
  color: var(--brand);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 18px;
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:focus{ outline:2px solid rgba(11,111,189,.14); outline-offset:3px; }
.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color:white;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(192,154,89,.28);
}
.btn--primary:hover{
  filter: brightness(1.04);
  box-shadow: 0 18px 44px rgba(192,154,89,.34);
}
.btn--ghost{ background: transparent; border-color: var(--line); color:var(--text); }
.btn--small{ padding:8px 12px; font-size:13px; }
.btn--full{ width:100%; }
.btn--wa{ background:var(--success); color:white; border-color:transparent; padding:10px 14px; font-weight:700; display:inline-flex; gap:8px; align-items:center; border-radius:var(--radius); text-decoration:none; }
.btn--wa:hover{ filter:brightness(.98); }

/* Clear favourites button (drawer) */
#btnClearFav{
  height:44px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.95);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,249,.95));
  color:#111827;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, filter .12s ease;
}
#btnClearFav:hover{
  transform: translateY(-1px);
  border-color: rgba(192,154,89,.35);
  box-shadow: 0 16px 34px rgba(2,6,23,.12);
  filter: saturate(1.02);
}
#btnClearFav:active{ transform: translateY(0); }

.select{
  padding:12px 14px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:white;
  font-weight:600;
}

.variantSelect{
  padding:8px 10px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:white;
  font-weight:600;
  font-size:13px;
  margin-right:8px;
}

/* Icons (CSS only) */
.icon-btn{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:50%;
  border:1px solid var(--line);
  background:white;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.10); }
.fav-btn{
  position:relative;
  border-color: rgba(225,29,72,.18);
  background: linear-gradient(180deg, #fff, #fff4f7);
  box-shadow: 0 12px 26px rgba(225,29,72,.12);
}
.fav-btn svg{ transition: transform .12s ease, color .12s ease, filter .12s ease; }
.fav-btn:hover svg{ transform: scale(1.06); color:#e11d48; filter: drop-shadow(0 2px 6px rgba(225,29,72,.25)); }
.fav-btn.has-items{
  border-color: rgba(225,29,72,.35);
  background: linear-gradient(135deg, rgba(225,29,72,.16), rgba(255,255,255,.98));
}
.fav-btn.has-items svg{ color:#e11d48; }
.fav-btn.has-items::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:50%;
  box-shadow: 0 0 0 6px rgba(225,29,72,.10);
  opacity:.6;
  pointer-events:none;
}
.icon{ width:18px; height:18px; display:block; position:relative; }
.icon--menu::before, .icon--menu::after, .icon--menu span{
  content:""; position:absolute; left:0; right:0;
  height:2px; background: var(--muted); border-radius:2px;
}
.icon--menu::before{ top:3px; }
.icon--menu span{ top:8px; }
.icon--menu::after{ top:13px; }
.icon--search::before{
  content:""; position:absolute; width:10px; height:10px;
  border:2px solid var(--muted); border-radius:50%;
  left:0; top:0;
}
.icon--search::after{
  content:""; position:absolute; width:7px; height:2px;
  background:var(--muted);
  transform: rotate(45deg);
  left:9px; top:10px; border-radius:2px;
}
.search .icon--search{ position:absolute; left:16px; }
.icon--user::before{
  content:""; position:absolute;
  width:8px; height:8px; border:2px solid var(--text);
  border-radius:50%; left:4px; top:1px;
}
.icon--user::after{
  content:""; position:absolute;
  width:14px; height:8px; border:2px solid var(--text);
  border-top:0;
  border-radius: 0 0 10px 10px;
  left:1px; top:10px;
}
.icon--close::before, .icon--close::after{
  content:""; position:absolute; left:2px; right:2px; top:8px;
  height:2px; background: var(--text); border-radius:2px;
}
.icon--close::before{ transform: rotate(45deg); }
.icon--close::after{ transform: rotate(-45deg); }

.cart-btn{ position:relative; }
.cart-badge{
  position:absolute;
  top:-6px; right:-6px;
  background: var(--black);
  color:white;
  font-size:12px;
  font-weight:900;
  min-width:22px; height:22px;
  padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  border:2px solid white;
  letter-spacing:.15px;
  font-variant-numeric: tabular-nums;
  line-height:1;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  box-shadow: 0 8px 18px rgba(2,6,23,.18), inset 0 1px 0 rgba(255,255,255,.35);
  transform-origin: center;
}

/* Cart empty state CTA */
.cart__empty{
  padding:20px 0;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.cart__empty-icon{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  font-size:36px;
  border-radius:22px;
  background: radial-gradient(120% 120% at 30% 20%, #fff7ea 0%, #fff 55%, #f7f4ef 100%);
  border:1px solid rgba(192,154,89,.18);
  box-shadow: 0 16px 36px rgba(2,6,23,.12), inset 0 1px 0 rgba(255,255,255,.7);
}
.cart__empty-text{
  font-weight:900;
  color:#374151;
  letter-spacing:.3px;
  font-size:14px;
}
.cart__empty .btn--primary{
  height:46px;
  padding:0 26px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.35px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d9b36f, #b8893f);
  box-shadow: 0 16px 36px rgba(184,137,63,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.cart__empty .btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(184,137,63,.42);
}

/* Hero */
.hero{
  background: radial-gradient(1200px 600px at 20% 10%, #fff1f4, transparent 60%),
              radial-gradient(900px 500px at 80% 10%, #f1f5ff, transparent 55%);
  border-bottom:1px solid rgba(229,231,235,.7);
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  padding:34px 0 34px;
  align-items:center;
}
@media (max-width: 920px){
  .hero__inner{ grid-template-columns: 1fr; }
}
.hero h1{
  font-size: 44px;
  line-height:1.05;
  margin:14px 0 10px;
  letter-spacing:-.8px;
}
@media (max-width: 520px){
  .hero h1{ font-size: 34px; }
}
.hero p{
  color: var(--muted);
  margin: 0 0 16px;
  font-size:15px;
  line-height:1.6;
}
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 8px; }

/* Trust Badges */
.trust-badges{
  display:flex; gap:16px; flex-wrap:wrap; margin:20px 0 16px;
}
.trust-badge{
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius: 20px;
  padding:8px 12px;
  font-size:13px; font-weight:600;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(2,6,23,.08);
}
.trust-icon{
  color: var(--text);
  font-weight:900;
}
.trust-icon--wa svg {
  display: block;
  color: #25D366;
}

/* Button Enhancements */
.btn--urgent{
  position:relative;
  /* animation: pulse 2s infinite; */ /* A bit distracting */
}
.btn--premium{
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color:white;
  border-color: transparent;
}
.btn-arrow{
  display:inline-block;
  margin-left:6px;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow{
  transform: translateX(3px);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(192, 154, 89, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(192, 154, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 154, 89, 0); }
}
.hero__stats{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 520px){
  .hero__stats{ grid-template-columns: 1fr; }
}
.stat{
  padding:12px 12px;
  border:1px solid rgba(229,231,235,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.65);
}
.stat__num{ font-weight:900; }
.stat__label{ font-size:12px; color:var(--muted); margin-top:4px; }

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease-in-out;
  will-change: opacity;
}

/* New Promo Banner */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,250,243,.92), rgba(255,255,255,.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(2,6,23,.10);
  position: relative;
}
.promo-banner::before{
  content:"";
  position:absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(212,175,55,.20), transparent 60%);
  pointer-events:none;
}
.promo-banner__text h3 {
  font-size: 24px;
  font-weight: 800;
}
.promo-banner__text p {
  margin-bottom: 16px;
}
.promo-banner__visual {
  text-align: center;
}
.promo-banner__visual img {
  width: min(360px, 70vw);
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(26, 32, 44, 0.22));
}
@media (max-width: 768px) {
  .promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promo-banner__visual {
    order: -1;
    margin-bottom: 16px;
  }
  .promo-banner__visual img {
    width: min(320px, 80vw);
    max-width: 320px;
  }
}

/* Ads rotator under Limited Time Offer */
.adsRotator{
  position: relative;
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(229,231,235,.9);
  background: #fff;
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
  aspect-ratio: 1400 / 520;
}

@media (max-width: 860px){
  .adsRotator{ border-radius: 16px; aspect-ratio: 4 / 3; }
}

.adsRotator__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: opacity;
}

/* Desktop/web: show the complete banner image (no cropping) */
@media (min-width: 1025px){
  .adsRotator{
    /* Make it a bit bigger on web/desktop */
    height: clamp(240px, 24vw, 380px);
    aspect-ratio: auto;
  }
  .adsRotator__img{ object-fit: contain; }
}

.adsRotator__img--1{ opacity: 1; }

@media (prefers-reduced-motion: no-preference){
  .adsRotator__img--1{ animation: adsFade1 10s infinite; }
  .adsRotator__img--2{ animation: adsFade2 10s infinite; }

  @keyframes adsFade1{
    0%, 45%{ opacity: 1; }
    50%, 95%{ opacity: 0; }
    100%{ opacity: 1; }
  }
  @keyframes adsFade2{
    0%, 45%{ opacity: 0; }
    50%, 95%{ opacity: 1; }
    100%{ opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce){
  .adsRotator__img{ animation: none !important; transition: none !important; }
  .adsRotator__img--2{ display:none; }
}

/* Sections */
.section{ padding: 34px 0; }
.section--soft{
  background: linear-gradient(180deg, rgba(250,250,249,.85), rgba(255,255,255,.65));
  border-top:1px solid rgba(231,229,228,.9);
  border-bottom:1px solid rgba(231,229,228,.9);
}
.section__head{ margin-bottom: 14px; }
.section__head h2{ margin:0; font-size:26px; letter-spacing:-.4px; }
.section__head p{ margin:8px 0 0; }
.section__headRow{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  flex-wrap:wrap;
}

/* Categories */
.cats{
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
@media (min-width: 1025px){
  .cats{ display: none; }
}
@media (max-width: 1000px){
  .cats{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .cats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.cat{
  text-align:center;
  border:1px solid rgba(229,231,235,.9);
  background:white;
  border-radius: 18px;
  padding:14px 10px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cat:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.cat__label{ font-weight:800; font-size:13px; }

/* Product grid */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
@media (min-width: 540px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 820px){
  .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1040px){
  .grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Mobile polish */
@media (max-width: 540px){
  .card__img{ height: auto; }
  .section{ padding: 26px 0; }
  .section__head h2{ font-size: 22px; }
  .promo-banner{ padding: 18px; }
  .promo-banner__visual img{ width: min(280px, 88vw); max-width: 280px; }
  .cats{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
  .header__inner{ padding:10px 0; }
}

.card{
  border: 1px solid rgba(229, 231, 235, .92);
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 6, 23, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 22px 60px rgba(2, 6, 23, .16); border-color: rgba(192,154,89,.40); }
.card:focus-within{ box-shadow: var(--ring), 0 22px 60px rgba(2, 6, 23, .14); border-color: rgba(192,154,89,.45); }
.card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card__img{
  height: auto;
  position: relative;
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 1 / 1;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__img img {
  transform: scale(1.05);
}
.card__tag{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.05);
}
.card__body{
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card__brand{ font-weight: 900; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card__name{ margin: 4px 0 8px; font-weight: 700; font-size: 14px; line-height: 1.3; flex-grow: 1; }
.card__meta{
  display: flex; align-items: center; gap: 6px; margin-top: auto;
}
.stars{ font-size: 12px; color: var(--brand-2); }
.card__actions{ display: flex; justify-content: space-between; align-items: center; padding: 0 12px 12px; gap: 10px; }
.card__price{ font-weight: 900; font-size: 16px; }

/* Product badges + wishlist */
.card__badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  padding:6px 10px;
  border-radius: 999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(6px);
}
.card__badge--new{ color: #0f766e; border-color: rgba(13,148,136,.18); }
.card__badge--bestseller{ color: #7c3aed; border-color: rgba(124,58,237,.18); }
.card__badge--sale{ color: #b91c1c; border-color: rgba(185,28,28,.18); }

.card__wishlist{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  width:40px;
  height:40px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card__wishlist:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(2,6,23,.12); border-color: rgba(192,154,89,.35); }
.card__wishlist.active{ color: #e11d48; border-color: rgba(225,29,72,.22); }

.card__stock{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 14px;
  font-weight:800;
  font-size:12px;
  border:1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.8);
}
.card__stock--low{ color: #b91c1c; border-color: rgba(185,28,28,.18); }

/* Skeleton loading cards */
.skeleton{ position: relative; overflow:hidden; }
.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-60%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-60%); }
  100%{ transform: translateX(60%); }
}
.skeletonBox{ background: rgba(15,23,42,.06); border-radius: 14px; }


/* Split promo */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}
.split__box{
  background:white;
  border:1px solid rgba(229,231,235,.92);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
} 
.split__box--img{
  background: linear-gradient(135deg, #fff, #ffe4ea);
  overflow:hidden;
  position:relative;
}
.kicker{ color: var(--brand); font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.12em; }
.split h3{ margin:8px 0 10px; font-size:26px; letter-spacing:-.4px; }
.promoBottles{
  position:absolute; inset:0;
  display:grid; place-items:center;
}
.promoBottle{
  width: 90px; height: 200px;
  border-radius: 22px;
  border:1px solid rgba(229,231,235,.9);
  position:absolute;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(135deg, #bfdbfe, #fff);
  box-shadow: 0 12px 22px rgba(2,6,23,.10);
}
.promoBottle.p1{ transform: translateX(-90px) rotate(-8deg); background: linear-gradient(135deg, #fef3c7, #fff); }
.promoBottle.p2{ transform: translateX(0px) rotate(4deg); background: linear-gradient(135deg, #ffd6e4, #fff); }
.promoBottle.p3{ transform: translateX(90px) rotate(-3deg); background: linear-gradient(135deg, #dcfce7, #fff); }

/* Brands */
.brands{
  display:flex;
  gap:10px;
  overflow:auto;
  padding: 6px 2px 2px;
}
.brandChip{
  flex: 0 0 auto;
  border:1px solid rgba(229,231,235,.92);
  background:var(--bg);
  border-radius:999px;
  padding:12px 14px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.06em;
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 900px){
  .contact{ grid-template-columns: 1fr; }
}
.contact__form{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,249,.95));
  border:1px solid rgba(229,231,235,.92);
  border-radius: calc(var(--radius) + 2px);
  padding:18px;
  box-shadow: 0 14px 30px rgba(2,6,23,.10);
}
label{ display:flex; flex-direction:column; gap:8px; font-weight:700; font-size:13px; color:#111827; letter-spacing:.02em; }
input, textarea{
  border:1px solid rgba(229,231,235,.95);
  border-radius: 14px;
  padding:12px 14px;
  font: inherit;
  outline: none;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(192,154,89,.45);
  box-shadow: 0 0 0 4px rgba(192,154,89,.18);
}
textarea{ resize: vertical; }
.formNote{ margin-top:10px; }

/* Contact form send button (professional look) */
#contactForm .btn--primary{
  height:44px;
  border-radius:12px;
  font-weight:900;
  letter-spacing:.3px;
  box-shadow: 0 14px 30px rgba(192,154,89,.32);
}
#contactForm .btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(192,154,89,.38);
}

.checkout-form__fields {
  display: grid;
  gap: 12px;
}

.contact__methods {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}
.glass-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(2,6,23,.10);
}
.glass-contact-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
}
.glass-contact-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.glass-contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.glass-contact-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.glass-contact-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}

/* Footer */
.footer{
  border-top:1px solid rgba(229,231,235,.85);
  background: var(--soft);
  padding: 26px 0;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 900px){
  .footer__inner{ grid-template-columns: 1fr; }
}
.footer__cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.footer__col{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
}
.footer__title{ font-weight:900; }
.footer-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(255,255,255,.7);
  border:1px solid rgba(229,231,235,.85);
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.footer-logo:hover{
  transform: translateY(-2px);
  border-color: rgba(192,154,89,.35);
  box-shadow: 0 14px 28px rgba(2,6,23,.12);
}
.footer-logo__img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 14px rgba(2,6,23,.12);
}
.footer-logo__name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing:.04em;
}

/* Drawers */
.drawer{
  position:fixed; inset:0;
  display:block;
  opacity:0;
  pointer-events:none;
  z-index:90;
}
.drawer.open{
  opacity:1;
  pointer-events:auto;
}
.drawer__overlay{
  position:absolute; inset:0;
  background: rgba(2,6,23,.45);
  opacity:0;
  transition: opacity .18s ease;
}
.drawer.open .drawer__overlay{ opacity:1; }
.drawer__panel{
  position:absolute; top:0; left:0;
  width: min(420px, 96vw);
  height:100%;
  background:var(--bg);
  border-right:1px solid rgba(229,231,235,.9);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
  overflow:hidden;
  transform: translateX(-16px);
  transition: transform .22s ease;
}
.drawer__panel--cart{
  left:auto; right:0;
  border-right:0;
  border-left:1px solid rgba(229,231,235,.9);
  /* Slide in from the right (matches cart placement) */
  transform: translateX(16px);
}
.drawer__header{
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(229,231,235,.9);
}
.drawer__title{ font-weight:900; font-size:18px; }
.drawer__content{
  padding:18px;
  overflow:auto;
  flex: 1;
  padding-bottom:100px; /* leave space for sticky summary */
}
.drawer__link{
  display:block;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(229,231,235,.9);
  margin-bottom:10px;
  font-weight:700;
}
.drawer__link:hover{ border-color: rgba(225,29,72,.25); }
.drawer__section{
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer__section-title{
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 12px 8px;
}
.drawer__section .drawer__link {
  border-color: transparent;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 4px;
}
.drawer__box{
  margin-top:14px;
  padding:14px;
  border-radius: 12px;
  border:1px dashed var(--brand);
  background: var(--soft2);
}
.drawer__boxTitle{ font-weight:900; margin-bottom:8px; }
.drawer__boxBtn{
  display:block;
  text-align:center;
  padding:12px;
  border-radius: 999px;
  background: var(--brand);
  color:white;
  font-weight:900;
  margin-bottom:10px;
}
.drawer__muted{ font-size:13px; color: var(--muted); }

/* Cart */
.cart__items{ display:grid; gap:12px; }
.cartItem{
  border-radius: 12px;
  padding:12px;
  display:grid;
  grid-template-columns: 72px 1fr auto;
  gap:12px;
  align-items:center;
  box-shadow: var(--shadow-soft);
  background: var(--bg);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cartItem:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.cartItem__thumb{
  width:72px; height:72px;
  border-radius: 12px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background: var(--soft);
}
.cartItem__thumb img{ width:100%; height:100%;
  object-fit:contain; display:block; }
.cartItem__details{ display:flex; flex-direction:column; gap:8px; }
.cartItem__name{ font-weight:800; font-size:14px; line-height:1.2; }
.cartItem__meta{ font-size:13px; color: var(--muted); }
.cartItem__controls{ display:flex; align-items:center; gap:12px; justify-content:space-between; }
.cartItem__qty{ display:flex; align-items:center; gap:8px; }
.cartItem__qty .qtyBtn{ width:34px; height:34px; border-radius:999px; border:1px solid var(--line); background:#fff; font-weight:900; cursor:pointer; }
.cartItem__qty .qtyNum{ min-width:22px; text-align:center; font-weight:800; }
.cartItem__remove{ background:transparent; border:1px solid transparent; width:40px; height:40px; }
.cartItem__price{ text-align:right; }
.cartItem__unit{ font-size:13px; color:var(--muted); }
.cartItem__total{ font-weight:900; margin-top:6px; }

.cart__empty{ text-align:center; }

.cart__summary{
  position:sticky; bottom:0; background:linear-gradient(180deg, rgba(255,255,255,0.98), var(--bg)); padding:16px; 
  margin-top:14px; border-top:1px solid rgba(229,231,235,.92); box-shadow: 0 -10px 30px rgba(2,6,23,.04);
}
.row{ display:flex; justify-content:space-between; align-items:center; }

/* Mobile cart drawer improvements */
@media (max-width: 860px){
  .drawer__panel{
    width: 100vw;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .drawer__header{
    padding: 14px;
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  /* Keep summary always visible; scroll items only */
  .drawer__content.cart{
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .cart__items{
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .cart__summary{
    position: relative;
    bottom: auto;
    margin-top: 0;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-radius: 16px;
  }
  .cart__summary p.muted.small{ display:none; }

  /* More comfortable cart item layout on narrow screens */
  .cartItem{
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb details"
      "thumb price";
    gap: 10px;
    align-items: start;
  }
  .cartItem__thumb{ grid-area: thumb; width:64px; height:64px; }
  .cartItem__details{ grid-area: details; }
  .cartItem__price{
    grid-area: price;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }

  .cartItem__qty{ gap: 10px; }
  .cartItem__qty .qtyBtn{
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .cartItem__remove{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
  }
}

/* Touch devices: disable hover lift effect */
@media (hover: none){
  .cartItem:hover{ transform:none; box-shadow: var(--shadow-soft); }
}

/* Moroccan Cultural Patterns */
.moroccan-pattern{
  position:absolute;
  top:20px; right:20px;
  width:120px; height:120px;
  pointer-events:none;
}
.pattern-element{
  position:absolute;
  border-radius:50%;
  opacity:0.1;
}
.pattern-element.pattern-1{
  width:40px; height:40px;
  background: linear-gradient(45deg, #d4af37, #ffd700);
  top:0; right:0;
  animation: float 6s ease-in-out infinite;
}
.pattern-element.pattern-2{
  width:25px; height:25px;
  background: linear-gradient(45deg, #8b4513, #daa520);
  top:50px; right:30px;
  animation: float 8s ease-in-out infinite reverse;
}
.pattern-element.pattern-3{
  width:30px; height:30px;
  background: linear-gradient(45deg, #b8860b, #f4a460);
  top:20px; right:60px;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

/* WhatsApp floating */
.wa-float{
  position:fixed;
  right: 14px;
  bottom: 14px;
  z-index:70;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.92);
  color:white;
  box-shadow: 0 18px 40px rgba(2,6,23,.25);
}
.wa-float__icon {
  color: #25D366;
}
.wa-float__text{ font-weight:900; }

/* Back to top button (premium) */
.toTop{
  position: fixed;
  left: 14px;
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 65;

  width: 48px;
  height: 48px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(192,154,89,.28);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  color: var(--brand-deep);

  box-shadow:
    0 18px 40px rgba(2,6,23,.18),
    0 0 0 1px rgba(255,255,255,.55) inset;

  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity .16s ease,
    transform .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    border-color .16s ease;
}
.toTop__icon{ display:block; }

.toTop:hover{
  background: rgba(255,255,255,.98);
  border-color: rgba(192,154,89,.46);
  transform: translateY(-2px) scale(1);
  box-shadow:
    0 24px 60px rgba(2,6,23,.22),
    0 0 0 1px rgba(192,154,89,.12) inset;
}
.toTop:active{ transform: translateY(0) scale(.98); }

.toTop.toTop--show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* RTL: keep on the opposite side */
html[dir="rtl"] .toTop{ left: auto; right: 14px; }

@media (max-width: 860px){
  /* Keep it above the mobile bottom nav + safe-area */
  .toTop{ bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce){
  .toTop{ transition: none; }
}

/* Avoid overlap when modal/drawer/chat is open */
html.drawer-open .toTop,
body.drawer-open .toTop,
html.chatbot-open .toTop,
body.chatbot-open .toTop{
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(.96) !important;
}



/* -----------------------
   Fragrance Finder
------------------------*/
.finder{
  background:var(--bg);
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(2,6,23,.10);
  padding:16px;
}
.finder__q{ margin-bottom:14px; }
.finder__label{ font-weight:800; margin-bottom:8px; }
.finder__choices{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  border:1px solid rgba(229,231,235,.95);
  background: rgba(255,255,255,.9);
  border-radius:999px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.chip:hover{ transform: translateY(-1px); box-shadow: 0 10px 18px rgba(2,6,23,.10); border-color: var(--brand); }
.chip.active{
  border-color: var(--brand);
  background: var(--soft2);
  color: var(--brand);
}
.chip--small{ padding:8px 10px; font-size:12px; font-weight:800; }
.finder__result{
  margin-top:10px;
  border:1px dashed var(--brand);
  background: var(--soft2);
  border-radius: 16px;
  padding:12px;
}
.finder__hint{ color: var(--muted); font-weight:600; }
.finder__cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }

/* -----------------------
   Reviews
------------------------*/
.reviews{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 920px){
  .reviews{ grid-template-columns: 1fr; }
}
.review{
  background:var(--bg);
  border:1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  padding:14px;
  box-shadow: 0 12px 24px rgba(2,6,23,.08);
  position:relative;
}
.review__stars{ font-weight:900; letter-spacing:1px; }
.review__text{ margin:10px 0 8px; color: var(--text); font-weight:650; }
.review__meta{ color: var(--muted); font-size:13px; }
.review__badge{
  position:absolute; top:12px; right:12px;
  font-size:11px; font-weight:900;
  background: rgba(15,23,42,.06);
  border:1px solid rgba(229,231,235,.9);
  padding:6px 8px;
  border-radius:999px;
}

/* -----------------------
   Policy Modal
------------------------*/
.modal{
  position:fixed; inset:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:120;
  transition: opacity .18s ease, visibility .18s ease;
}
.modal.open{ opacity:1; visibility:visible; pointer-events:auto; }
.modal__overlay{
  position:absolute; inset:0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(3px);
  opacity:0;
  transition: opacity .18s ease;
}
.modal.open .modal__overlay{ opacity:1; }
.modal__panel{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-48%) scale(.98);
  width:min(720px, 92%);
  max-height: min(78vh, 720px);
  overflow:auto;
  background:white;
  border-radius: 18px;
  border:1px solid rgba(229,231,235,.9);
  box-shadow: 0 30px 70px rgba(2,6,23,.28);
  display:flex;
  flex-direction:column;
  opacity:0;
  transition: transform .18s ease, opacity .18s ease;
}
.modal.open .modal__panel{ opacity:1; transform: translate(-50%,-50%) scale(1); }
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(229,231,235,.9);
}
.modal__title{ font-weight:900; letter-spacing:-.2px; }
.modal__body{
  padding:14px;
  overflow:auto;
  color: var(--text);
}
.modal__body h3{ margin:12px 0 8px; }
.modal__body p, .modal__body li{ color: var(--muted); line-height:1.7; }
.modal__body ul{ margin:8px 0 0 18px; }
.footer__link{ display:block; margin:8px 0; color: var(--muted); font-weight:650; }
.footer__link:hover{ color: var(--brand); }

/* -----------------------
   Size Selection Modal
------------------------*/
.size-product__img{
  width:56px;
  height:56px;
  border-radius: 14px;
  object-fit: cover;
  border:1px solid rgba(229,231,235,.9);
}
.size-product__brand{ font-weight:900; font-size:12px; color: var(--muted); letter-spacing:.2px; }
.size-product__name{ font-weight:900; letter-spacing:-.2px; }

.size-option{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(229,231,235,.9);
  background: white;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.size-option:hover{
  transform: translateY(-1px);
  border-color: rgba(192,154,89,.55);
  box-shadow: var(--shadow-soft);
}
.size-option.active{
  border-color: var(--brand);
  background: rgba(192,154,89,.08);
}
.size-option__content{ display:flex; flex-direction:column; gap:2px; align-items:flex-start; }
.size-option__size{ font-weight:900; }
.size-option__price{ font-weight:800; color: var(--muted); font-size:13px; }
.size-option__check{
  width:26px;
  height:26px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border:1px solid rgba(229,231,235,.9);
  color: var(--brand);
  opacity:0;
  transform: scale(.9);
  transition: opacity .12s ease, transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.size-option.active .size-option__check{
  opacity:1;
  transform: scale(1);
  background: var(--brand);
  color: white;
  border-color: transparent;
}

#sizeError.shake{ animation: ipordise-shake .5s linear; }
@keyframes ipordise-shake{
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* -----------------------
   Mobile Bottom Nav
------------------------*/
.bottomNav{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  width:min(420px, 94%);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
  padding:10px 10px;
  display:none;
  gap:8px;
  z-index:80;
}
.bottomNav__btn{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  border:0;
  background: transparent;
  border-radius: 16px;
  padding:10px 8px;
  cursor:pointer;
  color: var(--text);
  font-weight:800;
}
.bottomNav__btn:hover{
  background: var(--soft);
  color: var(--text);
}
.bottomNav__btn--wa{
  background: rgba(37, 211, 102, 0.12);
  border:1px solid rgba(37,211,102,.25);
}
.bottomNav__btn--wa .bottomNav__ico {
  color: #25D366;
}
.bottomNav__ico{ font-size:16px; line-height:1; }
.bottomNav__ico svg {
  width: 18px;
  height: 18px;
}
.bottomNav__txt{ font-size:11px; color: var(--muted); }
.bottomNav__btn:hover .bottomNav__txt{ color: var(--brand); }

/* Show bottom nav on small screens (more reliable than UA sniffing) */
@media (max-width: 860px){
  .bottomNav{ display:grid; grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 860px){
  /* Ensure page content never sits behind the bottom nav (incl. iOS safe-area) */
  body{ padding-bottom: 96px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Keep chatbot above the bottom nav */
  .chatbot{ bottom: 102px; bottom: calc(102px + env(safe-area-inset-bottom)); }

  /* Toasts should appear above the bottom nav */
  .toastStack{ bottom: 110px; bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* -----------------------
   Chatbot
------------------------*/
.chatbot{ position:fixed; right:16px; bottom: 92px; z-index:90; }

/* When chat is open, prevent background scroll (especially on mobile) */
html.chatbot-open,
body.chatbot-open{
  overflow: hidden;
  overscroll-behavior: none;
}

.chatbot__overlay{ display:none; }

/* -----------------------
   Toast notifications
------------------------*/
.toastStack{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(520px, 92%);
  display: grid;
  gap: 10px;
  z-index: 140;
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  background: rgba(15,23,42,.92);
  color: white;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2,6,23,.35);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-in{ opacity: 1; transform: translateY(0); }
.toast__title{ font-weight: 900; margin: 0; font-size: 14px; }
.toast__meta{ margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.toast__actions{ display:flex; gap:8px; align-items:center; }
.toast__btn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.toast__btn:hover{ background: rgba(255,255,255,.16); }
.toast__close{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: white;
  cursor: pointer;
}
.toast__close:hover{ background: rgba(255,255,255,.10); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .btn, .card, .card__img img, .drawer__panel, .modal, .modal__overlay, .modal__panel, .toast{ transition:none !important; }
  .skeleton::after{ animation:none !important; }
}

@media (min-width: 861px){
  .chatbot{ bottom: 22px; }
}
.chatbot__fab{
  width:56px; height:56px;
  border-radius: 999px;
  border:0;
  background: white;
  box-shadow: 0 18px 35px rgba(2,6,23,.18);
  cursor:pointer;
  display:grid;
  place-items:center;
  position: relative;
  overflow: hidden;
}
.chatbot__fab svg {
  position: absolute;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s;
  color: var(--text);
}
.chatbot__fab .icon-close {
  transform: translateY(20px) scale(0.8);
  opacity: 0;
}
.chatbot.open .chatbot__fab .icon-open {
  transform: translateY(-20px) scale(0.8);
  opacity: 0;
}
.chatbot.open .chatbot__fab .icon-close {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.chatbot__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: grid;
  place-items: center;
  border: 2px solid white;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulse-badge 2.5s infinite 1s;
  z-index: 1;
  pointer-events: none;
}
.chatbot__badge.visible {
  transform: scale(1);
}
@keyframes pulse-badge {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.chatbot__attention {
  position: absolute;
  background: var(--text);
  color: white;
  padding: 12px 32px 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: 240px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.chatbot__attention.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chatbot__attention-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  font-size: 20px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}
.chatbot__panel{
  position:absolute;
  right:0;
  bottom: 66px;
  width: min(360px, 92vw);
  background:white;
  border:1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(2,6,23,.25);
  overflow:hidden;
  display:none;
  flex-direction: column;
  z-index: 2;
}
.chatbot.open .chatbot__panel{ display:flex; }
@media (min-width: 861px) {
  .chatbot__attention {
    bottom: 8px;
    right: 70px;
  }
}
@media (max-width: 860px) {
  .chatbot__attention {
    bottom: 66px;
    right: 0;
  }
}

@media (max-width: 860px){
  /* A real overlay makes the chat feel native on phones */
  .chatbot__overlay{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.45);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 1;
  }
  .chatbot.open .chatbot__overlay{
    opacity: 1;
    pointer-events: auto;
  }

  /* Make the panel a near-fullscreen drawer for mobile */
  .chatbot__panel{
    position: fixed;
    left: 50%;
    right: auto;
    top: calc(12px + env(safe-area-inset-top) + var(--vvOffsetTop, 0px));
    bottom: auto;
    width: min(560px, calc(100vw - 24px));
    height: calc(var(--vvh, 100vh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    transform: translateX(-50%);
    transition: transform .22s cubic-bezier(.2,.9,.2,1);
    will-change: transform;
    border-radius: 22px;
  }

  /* Don’t let the floating button cover content while chat is open */
  .chatbot.open .chatbot__fab{
    opacity: 0;
    pointer-events: none;
    transform: scale(.95);
  }

  .chatbot__head{ padding-top: calc(12px + env(safe-area-inset-top)); }

  /* Swipe handle (visual) + enable drag without scrolling the page */
  .chatbot__head{
    position: relative;
    touch-action: none;
  }
  .chatbot__head::before{
    content: "";
    position: absolute;
    top: calc(8px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(2,6,23,.18);
  }

  .chatbot__msgs{
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }

  .chatbot__quick{ padding: 12px; }
  .chatbot__quick .chip{ padding: 10px 12px; }

  /* 16px prevents iOS from auto-zooming the page on focus */
  .chatbot__input{
    font-size: 16px;
    padding: 12px 14px;
    min-height: 46px;
  }
  .chatbot__send{ width: 48px; height: 48px; }
  .chatbot__note{ padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.chatbot__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  background: var(--soft);
}
.chatbot__brand{ display:flex; gap:10px; align-items:center; min-width: 0; }
.chatbot__logo{ width:28px; height:28px; border-radius: 10px; display:block; object-fit: cover; background:#fff; border:1px solid rgba(0,0,0,.06); }
.chatbot__headActions{ display:flex; align-items:center; gap:8px; }
.chatbot__title{ font-weight:900; }
.chatbot__sub{ font-size:12px; color: var(--muted); margin-top:2px; }
.chatbot__msgs{
  height: 280px;
  overflow:auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px; 
  background: radial-gradient(800px 300px at 15% 0%, #fff1f4, transparent 60%);
}
/* typing indicator */
.msg--typing{ z-index: 2; opacity: .95; }
.msg--typing .typing{ display:inline-flex; gap:6px; align-items:center; padding:8px 12px; background:var(--soft); border-radius:999px; }
.msg--typing .typing span{ width:7px; height:7px; border-radius:50%; background:var(--muted); opacity:.4; animation: chat-bob 1s infinite linear; }
.msg--typing .typing span:nth-child(2){ animation-delay:.12s }
.msg--typing .typing span:nth-child(3){ animation-delay:.24s }
@keyframes chat-bob{ 0%{ transform: translateY(0); opacity:.2 } 50%{ transform: translateY(-3px); opacity:1 } 100%{ transform: translateY(0); opacity:.2 } }

.msg{
  max-width: 86%;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(229,231,235,.9);
  background:white;
  box-shadow: 0 10px 18px rgba(2,6,23,.08);
  line-height:1.45;
  font-weight:650;
  white-space: pre-line;
}
.msg--me{
  margin-left:auto; 
  background: var(--brand);
  color: white;
  border-color: transparent;
}
html[dir="rtl"] .msg{ text-align:right; direction:rtl; }
html[dir="rtl"] .msg--me{ margin-left:0; margin-right:auto; }
/* chips inside bot messages */
.msg__chips{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.msg__chips .chip{ padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:white; cursor:pointer; font-weight:700; }
.msg__chips .chip:hover{ box-shadow: 0 8px 22px rgba(2,6,23,.06); }

.chatbot__quick{
  padding:10px 12px;
  border-top:1px solid var(--line);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chatbot__form{
  display:flex;
  gap:8px;
  padding:10px 12px 12px;
  border-top:1px solid var(--line);
  background:white;
}
.chatbot__input{
  flex:1;
  border:1px solid var(--line);
  border-radius: 999px;
  padding:10px 12px;
  outline:0;
  font-weight:650;
}
.chatbot__send{
  width:42px; height:42px;
  border-radius: 999px;
  border:0;
  cursor:pointer;
  background: var(--brand);
  color:white;
  font-weight:900;
}
.chatbot__note{
  padding:0 12px 12px;
  color: var(--muted);
  font-size:12px;
}

/* Arabic RTL tweaks */
html[dir="rtl"] .chatbot{ right:auto; left:16px; }
html[dir="rtl"] .chatbot__panel{ right:auto; left:0; }
html[dir="rtl"] .review__badge{ right:auto; left:12px; }
html[dir="rtl"] .chatbot__attention {
  text-align: right;
  padding: 12px 16px 12px 32px;
}
html[dir="rtl"] .chatbot__attention-close {
  right: auto;
  left: 6px;
}
@media (min-width: 861px) { html[dir="rtl"] .chatbot__attention { right: auto; left: 70px; } }
@media (max-width: 860px) { html[dir="rtl"] .chatbot__attention { right: auto; left: 0; } }


/* -----------------------
   Animations on Scroll
------------------------*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid-like items */
.grid > .animate-on-scroll.is-visible:nth-child(2),
.cats > .animate-on-scroll.is-visible:nth-child(2),
.reviews > .animate-on-scroll.is-visible:nth-child(2) { transition-delay: 0.1s; }

.grid > .animate-on-scroll.is-visible:nth-child(3),
.cats > .animate-on-scroll.is-visible:nth-child(3),
.reviews > .animate-on-scroll.is-visible:nth-child(3) { transition-delay: 0.2s; }

.grid > .animate-on-scroll.is-visible:nth-child(4),
.cats > .animate-on-scroll.is-visible:nth-child(4) { transition-delay: 0.3s; }

/* Language menu */
.lang{ position:relative; }
.langMenu{
  position:absolute;
  right:0;
  top:54px;
  background:white;
  border:1px solid rgba(229,231,235,.9);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
  padding:8px;
  display:none;
  min-width: 160px;
  z-index:110;
}
.lang.open .langMenu{ display:block; }
.langOption{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  padding:10px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:750;
}
.langOption:hover{ background: var(--soft); }
.langOption.active{ background: var(--soft2); color: var(--brand); }
html[dir="rtl"] .langMenu{ right:auto; left:0; }
html[dir="rtl"] .langOption{ text-align:right; }

/* Product detail */
.product-detail{ padding:28px 0; }
.productDetail__wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "breadcrumb breadcrumb"
    "left right";
  gap:28px;
  align-items:start;
}
.productDetail__wrap[dir="rtl"]{ direction: rtl; }
.productDetail__wrap[dir="rtl"] .product__name,
.productDetail__wrap[dir="rtl"] .product__meta,
.productDetail__wrap[dir="rtl"] .product__desc{ text-align: right; }
.productDetail__wrap .breadcrumb{ grid-area: breadcrumb; margin: 6px 0 6px; }
.productDetail__left{
  grid-area: left;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--soft);
  border-radius:16px;
  padding:18px;
  min-height: 320px;
}
.productDetail__right{
  grid-area: right;
}
.productDetail__img{
  max-width:360px;
  width:100%;
  max-height: 460px;
  border-radius:12px;
  object-fit:contain;
}
.product__brand{ color:var(--muted); font-weight:700; margin-bottom:6px; }
.product__name{ margin:6px 0 12px; font-size:26px; line-height:1.02; }
.product__meta{ margin-bottom:12px; color:var(--muted); }
.product__desc p{ margin:10px 0; line-height:1.6; color:var(--muted); }
.product__vars{ margin-top:14px; }
.product__lang{ margin-bottom:12px; }
.product__lang .langBtn{ padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:white; cursor:pointer; font-weight:800; margin-right:8px; }
.product__lang .langBtn.active{ background: var(--brand); color:white; border-color:transparent; }

/* WhatsApp button */
.btn--wa{ background:#25D366; color:white; border-color:transparent; padding:8px 12px; font-weight:700; display:inline-flex; gap:8px; align-items:center; border-radius:8px; text-decoration:none; }
.btn--wa:hover{ filter:brightness(.98); }

@media (max-width: 920px){
  .productDetail__wrap{
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumb"
      "left"
      "right";
  }
  .productDetail__left{ min-height: 260px; }
  .product__actions{ flex-direction:column; align-items:stretch; gap:10px; }
}

/* -----------------------
   Hero image (language-aware)
------------------------*/
.hero{ padding: 22px 0; }

.hero__media{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
}

@media (min-width: 1025px){
  .hero__media{
    aspect-ratio: 16 / 6;
    min-height: 360px;
  }
}

@media (max-width: 860px){
  .hero__media{ border-radius: 18px; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px){
  .hero__media{
    aspect-ratio: auto;
  }
  #heroImage{
    height: auto;
    object-fit: contain;
    background: #fff;
  }
}


#heroImage{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.reco-gallery{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reco-gallery__item{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.reco-gallery__img{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 16 / 7;
}

.reco-gallery__cta{
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #111827;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.95);
  box-shadow: 0 16px 36px rgba(2,6,23,.18);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.reco-gallery__cta:hover{
  transform: translateY(-1px);
  border-color: rgba(192,154,89,.45);
  box-shadow: 0 22px 48px rgba(2,6,23,.22);
}

@media (max-width: 860px){
  .reco-gallery{
    grid-template-columns: 1fr;
  }
  .reco-gallery__img{
    aspect-ratio: 4 / 3;
  }
}


.drawer.open .drawer__panel{ transform: translateX(0); }

@media (max-width: 860px){
  body{ padding-bottom: 96px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}


/* -----------------------
   Product detail: decant sizes (chips)
------------------------*/
.size-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.size-chip{
  border:1px solid var(--line);
  background:white;
  border-radius: 999px;
  padding:10px 14px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.size-chip:hover{ transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(192,154,89,.55); }
.size-chip.active{ background: rgba(192,154,89,.12); border-color: var(--brand); color: var(--text); }

.breadcrumb{
  display:flex; align-items:center; gap:10px;
  margin: 10px 0 18px;
}
.breadcrumb a{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:800;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.breadcrumb a:hover{ box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.flash-strip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
  font-weight:800;
  font-size:13px;
}
.flash-dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

/* Floating promo toast (mobile friendly) */
.promo-toast{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 92px;
  z-index: 60;
  background: white;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,.20);
  padding: 14px;
  display:none;
}
.promo-toast.show{ display:block; }
.promo-toast__row{ display:flex; align-items:flex-start; gap:12px; }
.promo-toast__img{ width:54px; height:54px; border-radius: 14px; object-fit:cover; border:1px solid var(--line); }
.promo-toast__title{ font-weight:900; margin:0 0 4px; }
.promo-toast__meta{ font-size:12px; color: var(--muted); margin:0 0 10px; }
.promo-toast__actions{ display:flex; gap:10px; align-items:center; }
.promo-toast__close{ margin-left:auto; border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer; color: var(--muted); }
@media (min-width: 861px){
  .promo-toast{ left:auto; right:18px; width: 360px; }
}

/* Flags + favourites */
.flag{
  width:18px;
  height:18px;
  display:inline-block;
  margin-right:6px;
  border-radius:4px;
  box-shadow: 0 2px 6px rgba(2,6,23,.12);
}
html[dir="rtl"] .flag{ margin-right:0; margin-left:6px; }
.fav-badge{
  background: linear-gradient(135deg, rgba(225,29,72,1), rgba(255,99,132,.95));
  border: 2px solid #fff;
}
.fav-btn.has-items .fav-badge{ animation: favPulse 1.6s ease infinite; }

@keyframes favPulse{
  0%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(225,29,72,.35); }
  70%{ transform: scale(1.08); box-shadow: 0 0 0 10px rgba(225,29,72,0); }
  100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}

/* Favourites drawer items reuse cart styles */
.favItem .cartItem__actions{ align-self:flex-start; }
.favItem .cartItem__img{ display:block; width:64px; height:64px; border-radius: 14px; overflow:hidden; border:1px solid var(--line); background:white; }
.favItem .cartItem__img img{ width:100%; height:100%; object-fit:contain; display:block; }

/* Favourites drawer polish */
#favDrawer .drawer__header{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,249,.95));
  border-bottom: 1px solid rgba(229,231,235,.92);
}
#favDrawer .drawer__title{
  font-weight: 900;
  letter-spacing: .2px;
}
#favDrawer .drawer__content.cart{
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(250,250,249,.6));
}
.fav-desc{
  margin: 0 0 10px;
  font-weight: 600;
}
.fav-empty{
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,.92);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.fav-empty__icon{
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e11d48;
  background: rgba(225,29,72,.08);
  border: 1px solid rgba(225,29,72,.18);
  font-size: 20px;
}
.fav-empty__text{
  font-weight: 700;
  color: var(--muted);
}
.fav-empty__cta{
  height: 44px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Cleaner remove (close) button in favourites */
.favItem .icon-btn{
  width:34px;
  height:34px;
  border-color: rgba(225,29,72,.25);
  background: rgba(225,29,72,.08);
  box-shadow: 0 6px 16px rgba(225,29,72,.12);
}
.favItem .icon-btn:hover{
  background: rgba(225,29,72,.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(225,29,72,.18);
}
.favItem .icon--close::before,
.favItem .icon--close::after{
  background: #e11d48;
  height:2px;
}

.icon-btn.active{ color: rgba(225,29,72,.95); border-color: rgba(225,29,72,.25); }