@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
  --pink-950:#1c1712;
  --pink-900:#2b2420;
  --pink-800:#4a3a1f;
  --pink-700:#7a5b1e;
  --pink-600:#a8801f;
  --pink-500:#c9a227;
  --pink-400:#dbb94f;
  --pink-300:#e8cf8c;
  --pink-100:#faf3df;
  --gold:#d4af37;
  --cream:#fffaf0;
  --ink:#201c17;
  --ink-soft:#6e6155;
  --white:#ffffff;
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;
  --shadow-soft:0 20px 45px -20px rgba(30,20,5,0.35);
  --shadow-card:0 10px 30px -12px rgba(30,20,5,0.18);
  --font-display:'Playfair Display', serif;
  --font-body:'Poppins', sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}
.container{max-width:1240px; margin:0 auto; padding:0 24px;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 28px; border-radius:999px; font-weight:600; font-size:0.95rem;
  border:none; transition:all .35s cubic-bezier(.2,.8,.2,1); white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--pink-600), var(--pink-800));
  color:#fff; box-shadow:0 10px 25px -8px rgba(224,26,110,0.55);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px -10px rgba(224,26,110,0.65); }
.btn-outline{
  background:rgba(255,255,255,0.15); color:#fff; border:1.5px solid rgba(255,255,255,0.7);
  backdrop-filter:blur(6px);
}
.btn-outline:hover{ background:#fff; color:var(--pink-800); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-sm{ padding:9px 18px; font-size:0.82rem; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Top Bar ---------- */
.top-bar{ background:var(--pink-900); color:rgba(255,255,255,0.85); font-size:0.8rem; }
.top-bar-inner{ display:flex; justify-content:space-between; align-items:center; padding:8px 24px; }
.top-bar-contact{ display:flex; gap:20px; }
.top-bar-contact a{ color:rgba(255,255,255,0.85); display:flex; align-items:center; gap:6px; }
.top-bar-contact a:hover{ color:var(--gold); }
.top-bar-social{ display:flex; gap:12px; }
.top-bar-social a{
  color:#fff; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; transition:.25s;
}
.top-bar-social a.fb{ background:#1877F2; }
.top-bar-social a.ig{ background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.top-bar-social a.wa{ background:#25D366; }
.top-bar-social a:hover{ transform:translateY(-2px) scale(1.08); filter:brightness(1.1); }

/* ---------- Mobile Bottom Tab Bar (app-like nav) ---------- */
.mobile-tabbar{ display:none; }
@media (max-width: 640px){
  .mobile-tabbar{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:150;
    background:#fff; border-top:1px solid #f0dde6; box-shadow:0 -4px 16px rgba(0,0,0,0.06);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a{
    flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:6px 2px; color:var(--ink-soft); font-size:0.65rem; position:relative;
  }
  .mobile-tabbar a i{ font-size:1.15rem; }
  .mobile-tabbar a.active{ color:var(--pink-700); }
  .mobile-tabbar .tab-badge{
    position:absolute; top:0; right:22%; background:var(--pink-700); color:#fff;
    font-size:0.6rem; width:15px; height:15px; border-radius:50%; display:flex;
    align-items:center; justify-content:center; padding:0;
  }
  body{ padding-bottom:64px; } /* keep content clear of the fixed bottom bar */
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px); border-bottom:1px solid rgba(224,26,110,0.08);
}
.header-inner{ display:flex; align-items:center; padding:14px 24px; gap:20px; position:relative; }
.logo{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo-name{ font-family:var(--font-display); font-weight:700; font-style:italic; font-size:var(--logo-fs, 1.5rem); letter-spacing:0.3px; color:var(--pink-800); line-height:1.15; }
.logo-name span{ display:block; font-family:var(--font-body); font-weight:400; font-style:normal; font-size:0.65rem; letter-spacing:2px; color:var(--ink-soft); text-transform:uppercase; }
.logo-mark{ width:var(--logo-h, 38px); height:var(--logo-h, 38px); border-radius:50%; background:linear-gradient(135deg,var(--pink-500),var(--pink-800),var(--gold)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.1rem; flex-shrink:0; }

/* Search now sits in the header's own middle slot (between logo and the
   icons) instead of being crammed inside .header-actions with the nav —
   it grows to fill the space and is never touched by how many storefronts
   exist, because the nav lives in its own row below (see .nav-strip). */
.header-inner .search-box{ flex:1 1 auto; max-width:480px; margin:0 auto; }

/* The menu row: ALWAYS its own separate strip, full-width, horizontally
   scrollable. However many storefronts/pages get added from Admin, they
   simply add more scrollable items here — they can never reach up into the
   search bar or icons above, because this is a different flex row entirely. */
.nav-strip{
  border-top:1px solid rgba(224,26,110,0.08);
  background:#fff;
}
.nav-strip .container{ padding-top:0; padding-bottom:0; }
.main-nav{
  display:flex; gap:26px; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none;
  min-width:0; padding:10px 0;
}
.main-nav::-webkit-scrollbar{ display:none; }
.main-nav a{ font-weight:500; font-size:0.92rem; color:var(--ink); position:relative; padding:6px 0; white-space:nowrap; flex-shrink:0; }
.main-nav a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--pink-600); transition:width .3s; }
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }
.main-nav a.active{ color:var(--pink-700); }
.header-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.search-box{ position:relative; display:flex; align-items:center; background:var(--pink-100); border-radius:999px; padding:8px 16px; gap:8px; min-width:0; }
.search-box input{ border:none; background:transparent; outline:none; font-family:inherit; font-size:0.9rem; width:100%; min-width:0; }
.icon-btn{ position:relative; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--pink-100); color:var(--pink-700); transition:.3s; flex-shrink:0; }
.icon-btn:hover{ background:var(--pink-600); color:#fff; }
.cart-badge{ position:absolute; top:-4px; right:-4px; background:var(--pink-700); color:#fff; font-size:0.65rem; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.nav-toggle{ display:none; }
/* This checkbox is a pure CSS toggle for the mobile search dropdown — it must
   never render as a visible checkbox at ANY width, so this rule is unconditional
   (previously it was only hidden inside a narrow-screen media query, which left
   a stray tickbox floating in the header on desktop). */
.mobile-search-toggle-cb{ display:none; }
.mobile-search-icon{ display:none; }

@media (max-width: 1150px){
  /* Home / Shop / Offers / storefronts stay visible on mobile too, exactly
     like on desktop, as a horizontally-scrolling strip. The menu button (☰)
     sits at the far right edge of the icon group and opens a full list. */
  .nav-toggle{ display:flex !important; }
  .logo-name{ font-size:1.15rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:42vw; }

  /* Same pattern as Arogga on a phone/tablet:
       row 1 = logo (left) + icons (pushed to the RIGHT side)
       row 2 = full-width search bar, always visible
       row 3 = Home / Shop / Offers / storefronts (scrolls sideways)
     No hidden dropdowns or toggles — everything is visible at once. */
  .header-inner{ flex-wrap:wrap; row-gap:10px; }
  .logo{ order:1; }
  .header-actions{ order:2; margin-left:auto; }
  .header-inner .search-box{
    order:3; flex:1 1 100%; max-width:100%; width:100%; margin:0; box-sizing:border-box;
    padding:9px 16px; display:flex;
  }
  .mobile-drawer{
    display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column;
    background:#fff; box-shadow:0 14px 28px -10px rgba(0,0,0,0.22);
    border-top:1px solid #f0dde6; z-index:59; max-height:70vh; overflow-y:auto;
  }
  .mobile-drawer.open{ display:flex; }
  .mobile-drawer a{ padding:13px 20px; font-size:0.95rem; color:var(--ink); border-bottom:1px solid #f8ebf1; }
  .mobile-drawer a i{ width:22px; color:var(--pink-700); margin-right:6px; }
  .mobile-search-icon{ display:none !important; }
  .main-nav a{ font-size:0.9rem; }
}
@media (min-width:1151px){ .mobile-search-icon{ display:none !important; } .mobile-drawer{ display:none !important; } }
@media (max-width: 640px){
  /* Mobile header: logo no longer collides with the account/wishlist/cart icons */
  .header-inner{ padding:10px 12px; gap:8px; }
  .logo{ gap:8px; min-width:0; }
  .logo-name{ font-size:1.05rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:38vw; }
  .logo-name span{ display:none; } /* hide the tagline line on small screens to save space */
  .header-actions{ gap:8px; }
  .icon-btn{ width:36px; height:36px; }
}
@media (max-width: 420px){
  /* Even the shortened wordmark doesn't have room next to 5 header icons on
     very small phones — the circular logo mark alone is enough branding here,
     the same pattern most mobile apps use (icon-only header on narrow screens). */
  .logo-name{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative; background:linear-gradient(120deg, var(--pink-900) 0%, var(--pink-600) 55%, var(--pink-400) 100%);
  overflow:hidden; padding:var(--hero-pad-t, 90px) 0 var(--hero-pad-b, 70px);
}
.hero::before, .hero::after{
  content:''; position:absolute; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
}
.hero::before{ width:220px; height:220px; top:-60px; right:8%; animation:sparkle-drift 9s ease-in-out infinite; }
.hero::after{ width:140px; height:140px; bottom:-30px; left:6%; animation:sparkle-drift 7s ease-in-out infinite reverse; }
@keyframes sparkle-drift{
  0%,100%{ transform:translate(0,0) scale(1); opacity:.7; }
  50%{ transform:translate(-18px,22px) scale(1.15); opacity:1; }
}
.hero .accent{
  background:linear-gradient(90deg, var(--pink-300) 0%, var(--gold) 25%, #fff 50%, var(--gold) 75%, var(--pink-300) 100%);
  background-size:200% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:shine-sweep 3.5s linear infinite;
}
@keyframes shine-sweep{ 0%{ background-position:0% center; } 100%{ background-position:-200% center; } }
.hero::before, .hero::after{
  content:''; position:absolute; border-radius:50%; filter:blur(2px); opacity:.25;
}
.hero::before{ width:420px; height:420px; background:radial-gradient(circle, var(--gold), transparent 70%); top:-160px; right:-100px; }
.hero::after{ width:300px; height:300px; background:radial-gradient(circle, #fff, transparent 70%); bottom:-140px; left:10%; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center; position:relative; z-index:2; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:8px 18px; border-radius:999px;
  background:rgba(255,255,255,0.15); color:#ffe0ec; font-size:0.8rem; font-weight:500; margin-bottom:20px;
  border:1px solid rgba(255,255,255,0.25);
}
.hero h1{
  font-family:var(--font-display); font-size:3.2rem; line-height:1.15; color:#fff; font-weight:600; margin-bottom:20px;
}
.hero h1 .accent{ color:var(--gold); font-style:italic; }
.hero p{ color:rgba(255,255,255,0.85); font-size:1.05rem; max-width:460px; margin-bottom:32px; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-visual{ position:relative; display:flex; justify-content:center; }
.hero-visual img{ border-radius:var(--radius-lg); aspect-ratio:16/9; width:100%; height:auto; max-height:var(--hero-img-h, 480px); object-fit:cover; box-shadow:var(--shadow-soft); }
.badge-float{
  position:absolute; bottom:20px; right:-10px; background:#fff; border-radius:50%; width:110px; height:110px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; box-shadow:var(--shadow-soft);
}
.badge-float strong{ font-size:1.1rem; color:var(--pink-700); }
.badge-float span{ font-size:0.65rem; color:var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust-bar{ background:#fff; margin-top:-40px; position:relative; z-index:3; border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:28px 12px; }
.trust-item{ display:flex; align-items:center; gap:14px; padding:0 20px; border-right:1px solid #f1e3ea; }
.trust-item:last-child{ border-right:none; }
.trust-icon{ width:44px; height:44px; border-radius:50%; background:var(--pink-100); display:flex; align-items:center; justify-content:center; color:var(--pink-700); flex-shrink:0; }
.trust-item h4{ font-size:0.9rem; margin-bottom:2px; }
.trust-item p{ font-size:0.78rem; color:var(--ink-soft); }

/* ---------- Section headings ---------- */
.section{ padding:70px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:36px; }
.section-head h2{ font-family:var(--font-display); font-size:2rem; font-weight:600; }
.section-head .view-all{ color:var(--pink-700); font-weight:600; font-size:0.9rem; display:flex; align-items:center; gap:6px; }
.eyebrow-sm{ color:var(--pink-600); font-weight:600; font-size:0.8rem; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px; display:block;}

/* ---------- Categories (circular, profile-style thumbnails) ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px; }
.cat-card{ display:block; text-align:center; transition:.3s; }
.cat-card:hover{ transform:translateY(-6px); }
.cat-card .cat-img{
  width:112px; height:112px; margin:0 auto 14px; border-radius:50%; overflow:hidden;
  background:var(--pink-100); box-shadow:var(--shadow-card); border:3px solid #fff;
  outline:2px solid var(--pink-300);
}
.cat-card .cat-img img{ width:100%; height:100%; object-fit:cover; transition:.5s; }
.cat-card:hover .cat-img img{ transform:scale(1.1); }
.cat-card:hover .cat-img{ outline-color:var(--gold); }
.cat-card .cat-info h4{ font-size:0.95rem; margin-bottom:2px; }
.cat-card .cat-info p{ font-size:0.75rem; color:var(--ink-soft); }
@media (max-width:640px){ .cat-card .cat-img{ width:84px; height:84px; } }

/* ---------- Vertical Category Sidebar (homepage) ---------- */
.cat-sidebar-list{ display:flex; flex-direction:column; gap:12px; max-width:420px; }
.cat-side-item{ display:flex; align-items:center; gap:14px; background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-card); padding:10px 14px; transition:.3s cubic-bezier(.2,.8,.2,1); }
.cat-side-item:hover{ transform:translateX(8px); box-shadow:0 16px 32px -16px rgba(140,10,60,0.3); }
.cat-side-img{ width:52px; height:52px; border-radius:10px; overflow:hidden; background:var(--pink-100); flex-shrink:0; position:relative; }
.cat-side-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.cat-side-item:hover .cat-side-img img{ transform:scale(1.15) rotate(-2deg); }
.cat-side-img::after{
  content:''; position:absolute; inset:0; background:linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
  background-size:200% 100%; background-position:100% 0; transition:background-position .6s ease;
}
.cat-side-item:hover .cat-side-img::after{ background-position:-20% 0; }
.cat-side-info{ flex:1; }
.cat-side-info h4{ font-size:0.92rem; margin-bottom:1px; }
.cat-side-info p{ font-size:0.72rem; color:var(--ink-soft); }
.cat-side-item i{ color:var(--pink-400); transition:transform .3s; }
.cat-side-item:hover i{ transform:translateX(4px); color:var(--pink-600); }

/* ---------- Promo banner (color-customizable from Admin > Settings) ---------- */
.promo-banner{
  background:linear-gradient(120deg, var(--promo-color-1, var(--pink-700)), var(--promo-color-2, var(--pink-500)));
  border-radius:var(--radius-lg); padding:50px 60px; display:flex; align-items:center; justify-content:space-between;
  position:relative; overflow:hidden; color:#fff; gap:30px;
}
.promo-banner::after{ content:''; position:absolute; width:260px; height:260px; background:radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%); top:-80px; right:10%; }
.promo-banner h3{ font-family:var(--font-display); font-size:2rem; margin-bottom:8px; }
.promo-banner .tag{ display:inline-block; background:rgba(255,255,255,0.18); padding:6px 14px; border-radius:999px; font-size:0.78rem; margin-bottom:12px; }

/* Starburst price badge — the "spiky sticker" look from the reference banners,
   drawn as a pure CSS/SVG shape so its color always matches the banner
   (no separate image file to keep in sync when the admin changes colors). */
.promo-burst{
  position:relative; z-index:2; flex-shrink:0; width:150px; height:150px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}
.promo-burst svg{ position:absolute; inset:0; width:100%; height:100%; }
.promo-burst svg polygon{ fill:var(--promo-color-2, var(--gold)); }
.promo-burst .promo-burst-text{ position:relative; color:#fff; font-family:var(--font-display); line-height:1.15; }
.promo-burst .promo-burst-text b{ display:block; font-size:1.55rem; }
.promo-burst .promo-burst-text small{ display:block; font-size:0.68rem; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; opacity:0.92; }
@media (max-width:640px){ .promo-banner{ flex-wrap:wrap; } .promo-burst{ width:110px; height:110px; margin:0 auto; } .promo-burst .promo-burst-text b{ font-size:1.15rem; } }

/* ---------- Promo side banner (Shop/Collection sidebar, next to products) ---------- */
.promo-side-banner{
  background:linear-gradient(160deg, var(--promo-color-1, var(--pink-700)), var(--promo-color-2, var(--pink-500)));
  border-radius:var(--radius-md); padding:22px 20px; color:#fff; text-align:center;
  margin-top:20px; position:relative; overflow:hidden;
}
.promo-side-banner .tag{ display:inline-block; background:rgba(255,255,255,0.18); padding:5px 12px; border-radius:999px; font-size:0.72rem; margin-bottom:10px; }
.promo-side-banner h4{ font-family:var(--font-display); font-size:1.15rem; margin-bottom:4px; }
.promo-side-banner p{ font-size:0.82rem; opacity:0.9; margin-bottom:14px; }
.promo-side-burst{ position:relative; width:96px; height:96px; margin:0 auto 12px; filter:drop-shadow(0 8px 16px rgba(0,0,0,0.2)); }
.promo-side-burst svg{ position:absolute; inset:0; width:100%; height:100%; }
.promo-side-burst svg polygon{ fill:var(--promo-color-2, var(--gold)); }
.promo-side-burst-text{ position:relative; z-index:1; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; font-family:var(--font-display); line-height:1.1; }
.promo-side-burst-text b{ font-size:1.35rem; }
.promo-side-burst-text small{ font-size:0.62rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; }

/* ---------- Phone input with country code (matches the reference login UI) ---------- */
.phone-input-group{ display:flex; align-items:stretch; width:100%; }
.phone-input-group .phone-cc{
  flex:0 0 auto; display:flex; align-items:center; padding:0 10px; border:1px solid var(--border, #e5d9dd);
  border-right:none; border-radius:var(--radius-sm) 0 0 var(--radius-sm); background:#f9f4f6; color:var(--ink-soft); font-size:0.85rem; font-weight:600; white-space:nowrap;
}
.phone-input-group input{ flex:1 1 auto; min-width:0; width:100%; border-radius:0 var(--radius-sm) var(--radius-sm) 0 !important; letter-spacing:.02em; }

/* ---------- Show / hide password eye (added by main.js) ---------- */
.pw-wrap{ position:relative; display:block; }
.pw-wrap input{ width:100%; padding-right:44px !important; }
.pw-eye{ position:absolute; right:4px; top:50%; transform:translateY(-50%); width:36px; height:36px; border:0; background:transparent; color:var(--ink-soft); cursor:pointer; border-radius:50%; }
.pw-eye:hover{ color:var(--pink-700); }

/* ---------- Auth pages on small phones ---------- */
@media (max-width:520px){
  .auth-layout .contact-form, .auth-layout-wide .contact-form{ padding:24px 18px; }
  .auth-layout{ gap:0; }
}

/* ---------- Products (compact cards, 5 per row) ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-card{ background:#fff; border-radius:var(--radius-sm); overflow:hidden; box-shadow:var(--shadow-card); transition:.3s; display:flex; flex-direction:column; position:relative; }
.product-card:hover{ transform:translateY(-4px); box-shadow:0 18px 32px -16px rgba(140,10,60,0.28); }
.product-card .p-img{ aspect-ratio:1/1; height:auto; background:var(--pink-100); display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.product-card .p-img img{ width:100%; height:100%; object-fit:cover; transition:.5s; }
.product-card:hover .p-img img{ transform:scale(1.06); }
.discount-tag{ position:absolute; top:8px; left:8px; background:var(--pink-700); color:#fff; font-size:0.65rem; padding:3px 8px; border-radius:999px; font-weight:600; }
.offer-sticker{
  position:absolute; top:6px; left:6px; z-index:2;
  width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  background:var(--offer-sticker-color, linear-gradient(135deg, #ff3b30, #c40f0f));
  color:#fff; font-weight:800; font-size:0.7rem; line-height:1.05; text-align:center;
  clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow:0 6px 14px -4px rgba(196,15,15,0.55);
  flex-direction:column;
}
.offer-sticker small{ display:block; font-size:0.5rem; font-weight:700; letter-spacing:0.03em; margin-top:2px; }
.product-card .p-img img.product-sticker-img,
.product-sticker-img{
  position:absolute !important; z-index:2; width:56px !important; height:auto !important; max-height:56px;
  object-fit:contain !important; pointer-events:none; filter:drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transform:none !important;
}
.product-sticker-img.corner-top-left{ top:6px; left:6px; }
.product-sticker-img.corner-top-right{ top:6px; right:6px; }
.product-sticker-img.corner-bottom-left{ bottom:6px; left:6px; }
.product-sticker-img.corner-bottom-right{ bottom:6px; right:6px; }
.low-stock-badge{
  display:inline-flex; align-items:center; gap:6px; color:#c4570f; font-size:0.85rem; font-weight:700;
  background:#fff2e6; padding:5px 12px; border-radius:999px; animation:lowStockPulse 1.6s ease-in-out infinite;
}
.low-stock-badge i{ color:#ff7a1a; }
@keyframes lowStockPulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.6; } }
.card-low-stock{
  display:block; margin-top:4px; font-size:0.72rem; font-weight:700; color:#c4570f;
}
.p-body{ padding:11px 12px; flex:1; display:flex; flex-direction:column; }
.p-body h4{
  font-size:0.83rem; margin-bottom:3px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical;
  overflow:hidden; text-overflow:ellipsis; line-height:1.3; min-height:1.3em;
}
.p-body .p-meta{ font-size:0.7rem; color:var(--ink-soft); margin-bottom:4px; }
.stars{ color:#FFB300; font-size:0.95rem; letter-spacing:1px; text-shadow:0 1px 1px rgba(0,0,0,0.08); }
.p-body .p-meta.stars{ color:#FFB300; font-size:0.85rem; }
.pd-title ~ .stars, .product-detail .stars{ font-size:1.15rem; }
.p-price{ margin:4px 0 8px; display:flex; align-items:center; gap:6px; margin-top:auto; }
.p-price .now{ font-weight:700; color:var(--pink-700); font-size:0.92rem; }
.p-price .old{ text-decoration:line-through; color:#bbb; font-size:0.76rem; }
.product-card .btn-sm{ padding:7px 12px; font-size:0.75rem; width:100%; justify-content:center; }

/* ---------- Ad Tile Grid (static, many small ads shown at once — e.g. "Deals You Cannot Miss") ---------- */
.ad-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; margin:24px 0;
}
.ad-tile{
  position:relative; display:block; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card);
  aspect-ratio:16/11; transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.ad-tile:hover{ transform:translateY(-6px); box-shadow:0 20px 36px -16px rgba(140,10,60,0.3); }
.ad-tile img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.ad-tile:hover img{ transform:scale(1.08); }
.ad-tile-label{
  position:absolute; bottom:0; left:0; right:0; padding:10px 12px; font-size:0.8rem; font-weight:600; color:#fff;
  background:linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}

/* ---------- Ad Slot ---------- */
.ad-slot{ display:block; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); margin:14px 0; }
.ad-slot img{ width:100%; }
.ad-slot-placeholder{
  border:2px dashed var(--pink-300); border-radius:var(--radius-md); padding:26px; text-align:center; color:var(--pink-500);
  font-size:0.85rem; background:var(--pink-100);
}

/* ---------- Ad Carousel (multiple ads in one slot, auto-rotating) ---------- */
.ad-carousel{ position:relative; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); margin:14px 0; aspect-ratio:16/4.5; background:var(--pink-100); }
/* Sidebar ads: the wide 16:4.5 crop is for top banners only. A single sidebar
   ad sizes naturally to whatever image is uploaded; a rotating multi-ad
   sidebar carousel still needs a defined box height for its crossfade to
   work, so it gets a taller portrait-friendly ratio instead of the wide one. */
.ad-slot.ad-slot-sidebar{ aspect-ratio:auto; }
.ad-slot.ad-slot-sidebar img, .ad-slot.ad-slot-sidebar video{ height:auto; object-fit:contain; }
.ad-carousel.ad-slot-sidebar{ aspect-ratio:3/4; }
/* NOTE: the Home page top banner intentionally uses NO special class anymore —
   it renders with the exact same default .ad-carousel styling as the Shop
   page's top banner (which already behaves correctly on every screen size:
   no extra blank space, proper crop on mobile). See views/index.ejs. */
.ad-carousel-slide{
  position:absolute; inset:0; opacity:0; transform:translateX(24px);
  transition:opacity .6s ease, transform .6s ease; pointer-events:none;
}
.ad-carousel-slide.active{ opacity:1; transform:translateX(0); pointer-events:auto; z-index:1; }
.ad-carousel-slide img, .ad-carousel-slide video, .ad-carousel-slide iframe{ width:100%; height:100%; object-fit:cover; display:block; border:none; }
.ad-slot img, .ad-slot video, .ad-slot iframe{ width:100%; height:100%; object-fit:cover; display:block; border:none; }
.ad-carousel-dots{ position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:6px; z-index:2; }
.ad-mute-btn{
  position:absolute; bottom:10px; right:10px; z-index:3;
  width:34px; height:34px; border-radius:50%; border:none;
  background:rgba(0,0,0,0.55); color:#fff; font-size:0.85rem;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background 0.15s ease;
}
.ad-mute-btn:hover{ background:rgba(0,0,0,0.75); }
.ad-dot{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,0.6); cursor:pointer; transition:.25s; }
.ad-dot.active{ background:#fff; width:20px; border-radius:4px; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--pink-950); color:rgba(255,255,255,0.75); padding-top:60px; }
.site-footer .logo-name{ color:#fff; font-size:1.35rem; }
.site-footer .logo-name span{ display:none; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 0.8fr 0.8fr 0.9fr 1.1fr; gap:32px; padding-bottom:40px; }
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom:18px; }
.footer-grid p, .footer-grid a{ font-size:0.88rem; color:rgba(255,255,255,0.65); display:block; margin-bottom:10px; }
.footer-grid a:hover{ color:var(--pink-300); }
.social-row{ display:flex; gap:12px; margin-top:14px; }
.social-row a{ width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0; font-size:1.1rem; color:#fff; transition:.25s;}
.social-row a.fb-footer{ background:#1877F2; }
.social-row a.ig-footer{ background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-row a.wa-footer{ background:#25D366; }
.social-row a.yt-footer{ background:#FF0000; }
.social-row a.tw-footer{ background:#000000; }
.social-row a.gmail-footer{ background:#EA4335; }
.social-row a:hover{ transform:translateY(-3px) scale(1.08); filter:brightness(1.1); }
.top-bar-social a.yt{ background:#FF0000; }
.top-bar-social a.tw{ background:#000; }
.top-bar-social a.gmail{ background:#EA4335; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.1); padding:20px 0; text-align:center; font-size:0.8rem; }
.perks-bar{ background:var(--pink-100); padding:26px 0; }
.perks-grid{ display:grid; grid-template-columns:repeat(4,1fr); text-align:center; gap:16px; }
.perks-grid .perk{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.perks-grid .perk i{ color:var(--pink-700); }
.perks-grid h5{ font-size:0.88rem; }
.perks-grid p{ font-size:0.75rem; color:var(--ink-soft); }

/* ---------- Breadcrumb / page header ---------- */
.page-hero{ background:linear-gradient(120deg, var(--pink-900), var(--pink-600)); padding:60px 0; color:#fff; text-align:center; }
.page-hero h1{ font-family:var(--font-display); font-size:2.4rem; margin-bottom:8px; }
.page-hero .crumb{ color:rgba(255,255,255,0.7); font-size:0.9rem; }
.page-hero .crumb a{ color:#fff; font-weight:600; }
.page-hero-slim{ padding:16px 0; text-align:left; }

/* ---------- Shop layout ---------- */
.shop-layout{ display:grid; grid-template-columns:260px 1fr; gap:32px; align-items:flex-start; }
/* Elements inside the sidebar that are only meant for desktop/tablet (the
   mini search box, price filter, and sidebar ad) — hidden on phones so the
   category column can stay narrow and compact instead of towering over the
   product grid. See .shop-filter-extra usage in shop.ejs. */
.shop-filter-extra{ display:block; }
.shop-filter{ background:#fff; border-radius:var(--radius-md); padding:24px; box-shadow:var(--shadow-card); }
.shop-filter h4{ font-family:var(--font-display); margin-bottom:16px; }
.filter-list a{ display:flex; justify-content:space-between; padding:9px 0; font-size:0.9rem; border-bottom:1px solid #f4e7ee; }
.filter-list a.active{ color:var(--pink-700); font-weight:600; }
.shop-toolbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }

/* ---------- Product detail ---------- */
.product-detail{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:flex-start; }
.pd-img{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); background:var(--pink-100); aspect-ratio:1/1; }
.pd-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.pd-thumbs{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.pd-thumb{
  width:72px; height:72px; border-radius:var(--radius-sm); overflow:hidden; cursor:pointer;
  border:2px solid transparent; box-shadow:var(--shadow-card); background:var(--pink-100); transition:.2s;
}
.pd-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pd-thumb.active, .pd-thumb:hover{ border-color:var(--pink-600); }
.pd-video{ margin-top:14px; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-card); aspect-ratio:16/9; }
.pd-video iframe, .pd-video video{ width:100%; height:100%; display:block; }
.pd-title{ font-family:var(--font-display); font-size:2rem; margin-bottom:10px; }
.pd-price{ font-size:1.6rem; color:var(--pink-700); font-weight:700; margin:14px 0; }
.pd-price .old{ font-size:1rem; color:#bbb; text-decoration:line-through; margin-left:10px; }
.qty-row{ display:flex; align-items:center; gap:16px; margin:20px 0; }
.qty-control{ display:flex; align-items:center; border:1px solid #eee; border-radius:999px; overflow:hidden; }
.qty-control button{ background:var(--pink-100); border:none; width:36px; height:36px; font-size:1rem; }
.qty-control input{ width:44px; text-align:center; border:none; }
.pd-actions{ display:flex; gap:14px; margin-top:24px; flex-wrap:wrap; }
.report-link{ color:var(--ink-soft); font-size:0.82rem; margin-top:20px; display:inline-flex; align-items:center; gap:6px; }
.report-link:hover{ color:var(--pink-700); }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:40px; }
.contact-info-card{ background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-card); padding:32px; }
.contact-info-card .item{ display:flex; gap:14px; margin-bottom:22px; align-items:flex-start; }
.contact-info-card .item i{ width:42px; height:42px; border-radius:50%; background:var(--pink-100); color:var(--pink-700); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-form{ background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-card); padding:36px; }
.contact-map{ border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); aspect-ratio:16/6; }
.contact-map iframe{ width:100%; height:100%; border:none; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:0.85rem; margin-bottom:6px; font-weight:500; }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding:12px 16px; border:1.5px solid #f0dde6; border-radius:var(--radius-sm); font-family:inherit; outline:none; transition:.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ border-color:var(--pink-500); }
.alert-success{ background:#e6f7ee; color:#1c7c47; padding:14px 20px; border-radius:var(--radius-sm); margin-bottom:20px; }

/* ---------- Video showcase ---------- */
.video-section{ background:var(--pink-100); }
.video-wrap{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); aspect-ratio:16/8; background:#000; }
.video-wrap video, .video-wrap iframe{ width:100%; height:100%; object-fit:cover; border:none; }
.video-wrap-compact{ max-width:640px; margin:0 auto; aspect-ratio:16/9; }

/* ---------- Reveal animation ---------- */
[data-aos]{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
[data-aos].aos-in{ opacity:1; transform:translateY(0); }
[data-aos="zoom"]{ transform:scale(.9); }
[data-aos="zoom"].aos-in{ transform:scale(1); }
[data-aos="left"]{ transform:translateX(-40px); }
[data-aos="left"].aos-in{ transform:translateX(0); }
[data-aos="right"]{ transform:translateX(40px); }
[data-aos="right"].aos-in{ transform:translateX(0); }

/* floating leaves ambient animation */
/* ---------- Animated Counter Stats Strip ---------- */
.stats-strip{ background:linear-gradient(120deg, var(--pink-900), var(--pink-700)); padding:38px 0; }
.brand-strip{ display:flex; align-items:center; justify-content:center; gap:36px; flex-wrap:wrap; padding:10px 0; }
.brand-logo{ display:flex; align-items:center; justify-content:center; height:56px; opacity:0.75; filter:grayscale(20%); transition:all 0.25s; }
.brand-logo img{ max-height:100%; max-width:120px; object-fit:contain; }
.brand-logo:hover{ opacity:1; filter:grayscale(0); transform:translateY(-2px); }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; text-align:center; }
.stats-grid .stat-num{ font-family:var(--font-display); font-size:2.2rem; font-weight:700; color:var(--gold); }
.stats-grid .stat-label{ color:rgba(255,255,255,0.8); font-size:0.85rem; letter-spacing:.5px; text-transform:uppercase; margin-top:4px; }
@media (max-width:768px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }

.floaty{ animation:floaty 5s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

/* ---------- Order Status Badges (used on account + track-order pages) ---------- */
.badge-status{ padding:4px 12px; border-radius:999px; font-size:0.78rem; font-weight:600; text-transform:capitalize; }
.badge-pending{ background:#fef6e0; color:#b8860b; }
.badge-confirmed{ background:#e6f0fc; color:#1c5c9c; }
.badge-shipped{ background:#f3e8fc; color:#7c3caf; }
.badge-delivered{ background:#e6f7ee; color:#1c7c47; }
.badge-cancelled, .badge-returned{ background:#fce8e8; color:#c0392b; }

/* ---------- Auto-scrolling, drag-to-scroll category product rows ---------- */
.cat-row-section{ padding:30px 0; }
.cat-row-section:nth-child(even){ background:var(--pink-100); }
.auto-scroll-row{
  overflow-x:auto; overflow-y:hidden; cursor:grab; scrollbar-width:none; -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch; user-select:none;
}
.auto-scroll-row::-webkit-scrollbar{ display:none; }
.auto-scroll-row.dragging{ cursor:grabbing; }
.auto-scroll-track{ display:flex; gap:16px; width:max-content; }
.auto-scroll-item{ width:200px; flex-shrink:0; }
@media (max-width:640px){ .auto-scroll-item{ width:150px; } }

/* ---------- Logo (animation removed per request — stays put, just bigger & clear) ---------- */
.logo-name{
  color:var(--pink-800);
  font-weight:700;
}
.site-footer .logo-name{ color:#fff; }
.btn:disabled, .btn[disabled]{ opacity:0.55; cursor:not-allowed; background:#aaa !important; border-color:#aaa !important; color:#fff !important; }
.out-of-stock-badge{ position:absolute; top:8px; right:8px; background:#7a1f2b; color:#fff; font-size:0.65rem; font-weight:600; padding:3px 8px; border-radius:999px; z-index:2; }
.search-suggest{
  display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border-radius:var(--radius-sm);
  box-shadow:var(--shadow-soft); max-height:360px; overflow-y:auto; z-index:60;
}
.search-suggest.open{ display:block; }
.search-suggest a{
  display:flex; align-items:center; gap:10px; padding:8px 12px; color:var(--ink); border-bottom:1px solid #f2f2f2;
}
.search-suggest a:hover{ background:var(--pink-100); }
.search-suggest img{ width:36px; height:36px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.search-suggest .ss-name{ font-size:0.85rem; flex:1; }
.search-suggest .ss-price{ font-size:0.8rem; color:var(--pink-700); font-weight:600; }
.search-suggest .ss-empty{ padding:14px; text-align:center; color:var(--ink-soft); font-size:0.85rem; }
.product-card.is-out-of-stock .p-img img{ filter:grayscale(60%); opacity:0.7; }
.toast{ position:fixed; bottom:24px; right:24px; background:var(--ink); color:#fff; padding:14px 22px; border-radius:var(--radius-sm); z-index:999; box-shadow:var(--shadow-soft); transform:translateY(120%); transition:.4s; }
.toast.show{ transform:translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .trust-grid{ grid-template-columns:repeat(2,1fr); }
  .trust-item{ border-right:none; border-bottom:1px solid #f1e3ea; padding:14px 0;}
  .cat-grid{ grid-template-columns:repeat(3,1fr); }
  .product-grid{ grid-template-columns:repeat(3,1fr); }
  .ad-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  /* Tablet: keep the Category | Products side-by-side layout (never stack to
     full-width blocks) — just give category a slightly smaller share. */
  .shop-layout{ grid-template-columns:22% 1fr; gap:18px; }
  .product-detail{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}
/* Hidden by default (desktop): the sidebar already lists every category, so
   this mobile-only "More" chip and its sheet stay off outside the mobile
   block below, instead of ever needing JS to know the screen size. */
.cat-more-trigger, .cat-more-overlay{ display:none; }
@media (max-width: 640px){
  .top-bar-contact{ display:none; }
  .hero h1{ font-size:2.1rem; }
  .cat-grid{ grid-template-columns:repeat(3,1fr); gap:14px; }
  .product-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .ad-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .perks-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; }
  .promo-banner{ flex-direction:column; text-align:center; gap:20px; padding:34px 24px; }
  .form-row{ grid-template-columns:1fr; }

  /* Categories as a horizontal scrolling strip ABOVE a plain 2-column product
     grid — same card size as the homepage, consistent everywhere on the page.
     (An earlier version floated the category list beside the products, sizing
     cards by leftover-width arithmetic — that made cards small while the
     sidebar was floating, then switch to a different, larger size once it
     ended. Stacking removes that fragility: the grid never shares its row
     with anything, so there is only ever one consistent card size.) */
  .shop-layout{ display:block; }
  .shop-filter{ width:100%; padding:0 0 14px; }
  .shop-filter h4{ display:none; } /* "Categories" label — the row of pills is self-explanatory */
  .shop-filter-extra{ display:none; } /* search box + price range: already covered by the header search on mobile */
  .filter-list{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; padding-bottom:2px; }
  .filter-list::-webkit-scrollbar{ display:none; }
  .filter-list a{
    flex:0 0 auto; white-space:nowrap; padding:8px 16px; border-radius:999px;
    background:var(--pink-100); font-size:0.82rem; border:1px solid transparent;
  }
  .filter-list a.active{ background:var(--pink-700); color:#fff; }
  .filter-list a span{ display:none; } /* the "N products" count fits the desktop sidebar, not a pill */

  .cat-more-trigger{
    display:inline-flex; align-items:center; gap:6px;
    flex:0 0 auto; white-space:nowrap; padding:8px 16px; border-radius:999px;
    background:#fff; border:1px dashed rgba(184,34,95,0.35); color:var(--pink-700);
    font-size:0.82rem; font-weight:600;
  }
  .cat-more-overlay.open{ display:flex; align-items:flex-end; }
  .cat-more-sheet{
    background:#fff; width:100%; max-height:72vh; overflow-y:auto; border-radius:18px 18px 0 0;
    padding:14px 18px 22px;
  }
  .cat-more-sheet-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid #f0dde6; }
  .cat-more-sheet-head button{ background:none; border:none; font-size:1.2rem; color:var(--ink-soft); }
  .cat-more-sheet a{ display:flex; justify-content:space-between; padding:11px 2px; font-size:0.92rem; border-bottom:1px solid #f8ebf1; }
  .cat-more-sheet a.active{ color:var(--pink-700); font-weight:700; }
  .cat-more-sheet a span{ color:var(--ink-soft); font-size:0.8rem; }

  /* NOTE: scoped to .shop-layout ONLY — a global override here would also
     affect the homepage's Best Sellers / Related Products / Wishlist grids,
     which already have their own correct 2-column rule. */
  .shop-layout .shop-products-col{ display:block; }
  .shop-layout .product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
}

/* ---------- AI Camera Product Search (Task 3) ---------- */
.visual-search-trigger{
  border:none; background:var(--pink-600); color:#fff; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; font-size:0.78rem; margin-left:2px;
}
.visual-search-trigger:hover{ background:var(--pink-700); }

.vs-modal{
  position:fixed; inset:0; z-index:1000; background:rgba(20,15,10,0.55);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.vs-modal[hidden]{ display:none; }
.vs-modal-inner{
  background:#fff; border-radius:var(--radius-lg); padding:28px 24px; width:100%; max-width:480px;
  max-height:88vh; overflow-y:auto; position:relative; box-shadow:var(--shadow-soft);
}
.vs-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; border:none;
  background:var(--pink-100); color:var(--pink-700); cursor:pointer; font-size:1rem;
}
.vs-step h3{ font-family:var(--font-display); margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.vs-sub{ color:var(--ink-soft); font-size:0.88rem; margin-bottom:22px; }
.vs-option{
  display:flex; align-items:center; gap:14px; padding:16px; border:1.5px solid #f0dde6; border-radius:var(--radius-md);
  cursor:pointer; margin-bottom:12px; transition:.2s;
}
.vs-option:hover{ border-color:var(--pink-500); background:var(--pink-100); }
.vs-option i{ font-size:1.4rem; color:var(--pink-600); width:32px; text-align:center; }
.vs-option strong{ display:block; font-size:0.95rem; }
.vs-option span{ display:block; font-size:0.78rem; color:var(--ink-soft); }

.vs-step-loading{ text-align:center; padding:30px 10px; }
.vs-spinner{
  width:44px; height:44px; border-radius:50%; border:4px solid var(--pink-100); border-top-color:var(--pink-600);
  margin:0 auto 18px; animation:vs-spin 0.9s linear infinite;
}
@keyframes vs-spin{ to{ transform:rotate(360deg); } }

.vs-result-header{ display:flex; gap:14px; align-items:center; margin-bottom:16px; }
.vs-query-image{ width:64px; height:64px; object-fit:cover; border-radius:var(--radius-sm); box-shadow:var(--shadow-card); flex-shrink:0; }
.vs-result-header h3{ margin-bottom:2px; }
.vs-ai-note{ font-size:0.78rem; color:var(--ink-soft); }
.vs-ai-note.vs-ai-note-warn{ color:var(--pink-700); }

.vs-section-title{ font-size:0.85rem; font-weight:700; color:var(--pink-700); text-transform:uppercase; letter-spacing:0.03em; margin:18px 0 10px; }
.vs-exact-card{ display:flex; gap:12px; border:1.5px solid var(--pink-300); border-radius:var(--radius-md); padding:12px; background:var(--pink-100); }
.vs-exact-card img{ width:72px; height:72px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.vs-exact-card-body strong{ display:block; font-size:0.92rem; }
.vs-exact-card-body .vs-price{ color:var(--pink-700); font-weight:700; margin-top:4px; }
.vs-mini-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.vs-mini-card{ text-align:center; }
.vs-mini-card img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; box-shadow:var(--shadow-card); }
.vs-mini-card .vs-mini-name{ font-size:0.72rem; margin-top:6px; display:block; line-height:1.2; }
.vs-mini-card .vs-mini-price{ font-size:0.74rem; color:var(--pink-700); font-weight:700; }
.vs-empty-note{ font-size:0.85rem; color:var(--ink-soft); text-align:center; padding:14px 0; }
#vs-search-again{ width:100%; margin-top:20px; }
@media (max-width:420px){ .vs-mini-grid{ grid-template-columns:repeat(2,1fr); } }

/* =====================================================================
   POLISH PASS — image fallbacks, tighter mobile spacing, nicer icons
   ===================================================================== */

/* ---------- Broken / missing product photos ----------
   If a photo 404s, the browser used to render the alt text at full size,
   which spilled outside the card and pushed the layout around. Now the
   image box keeps its square shape and shows a soft branded placeholder
   instead, so a missing photo never breaks the grid. */
.p-img img, .cat-img img, .vs-mini-card img, .vs-exact-card img, .search-suggest img{
  max-width:100%; box-sizing:border-box;
  font-size:0; color:transparent; /* hides oversized alt text on a failed load */
}
img.img-failed{
  background:var(--pink-100) url('/images/placeholder-product.svg') center/58% no-repeat;
  object-fit:contain !important;
}
.p-img{ isolation:isolate; }

/* ---------- Header icons ---------- */
.header-actions .icon-btn{
  background:linear-gradient(140deg, var(--pink-100), #fff);
  border:1px solid rgba(184,34,95,0.14);
  box-shadow:0 4px 10px -6px rgba(140,10,60,0.35);
}
.header-actions .icon-btn:hover{
  background:linear-gradient(140deg, var(--pink-600), var(--pink-800));
  color:#fff; border-color:transparent;
}
.cart-badge{ box-shadow:0 0 0 2px #fff; font-weight:700; }
.mobile-search-icon{
  background:linear-gradient(140deg, var(--pink-600), var(--pink-800)) !important;
  color:#fff !important; border-color:transparent !important;
  cursor:pointer;
}
.mobile-search-toggle-cb:checked ~ .mobile-search-icon{
  background:linear-gradient(140deg, var(--pink-800), var(--pink-950)) !important;
}

/* ---------- Bottom tab bar icons ---------- */
.mobile-tabbar a{ transition:color .2s, transform .2s; }
.mobile-tabbar a.active i{ transform:translateY(-1px) scale(1.08); }

/* ---------- Mobile spacing: remove dead vertical gaps ----------
   The desktop rhythm (70px section padding, 36px heading gaps) leaves large
   empty bands on a phone. These are tuned down so every screen is filled
   with content instead of blank space, without changing the desktop look. */
@media (max-width:640px){
  .section{ padding:34px 0; }
  .section-head{ margin-bottom:18px; align-items:flex-start; gap:10px; }
  .section-head h2{ font-size:1.45rem; line-height:1.2; }
  .section-head .view-all{ font-size:0.8rem; white-space:nowrap; }
  .eyebrow-sm{ font-size:0.68rem; letter-spacing:1px; margin-bottom:4px; }

  .hero{ padding:34px 0 30px; }
  .hero-grid{ gap:22px; }
  .hero h1{ font-size:1.85rem; margin-bottom:12px; }
  .hero p{ font-size:0.92rem; margin-bottom:18px; }
  .eyebrow{ margin-bottom:12px; padding:6px 14px; font-size:0.72rem; }
  .hero-visual img{ aspect-ratio:4/3; max-height:none; }
  .badge-float{ width:78px; height:78px; right:4px; bottom:10px; }
  .badge-float strong{ font-size:0.9rem; }
  .badge-float span{ font-size:0.55rem; }

  .trust-bar{ margin-top:-18px; }
  .trust-grid{ padding:14px 8px; }
  .cat-card .cat-img{ width:78px; height:78px; margin-bottom:8px; }
  .cat-grid{ gap:12px 10px; }
  .brand-strip-section{ padding-top:14px !important; padding-bottom:14px !important; }

  /* Banner/ad strips: a 16:4.5 band is razor-thin on a phone and leaves the
     image mostly cropped away, while the surrounding margins left dead bands
     above and below. Slightly taller ratio, tighter margins — the banner
     fills its space exactly, with nothing empty around it. */
  .ad-carousel{ aspect-ratio:16/7; margin:14px 0; }
  .ad-slot{ margin:14px 0; }
  .ad-grid{ margin:14px 0; }
}

/* ---------- Installed-app mode (standalone) ----------
   Locked, native-feeling layout: no pinch zoom, no accidental double-tap
   zoom, no rubber-band horizontal scroll. Every feature stays available —
   only the zooming gestures are disabled, exactly like a real app. */
@media all and (display-mode: standalone){
  html, body{ touch-action:pan-x pan-y; -webkit-text-size-adjust:100%; overscroll-behavior-y:contain; }
  body{ -webkit-tap-highlight-color:transparent; }
  /* iOS safe area so content never sits under the home indicator */
  .mobile-tabbar{ padding-bottom:env(safe-area-inset-bottom); }
}
html.is-standalone-app, html.is-standalone-app body{
  touch-action:pan-x pan-y; -webkit-text-size-adjust:100%;
}

/* ---------- v3: tighter mobile header + search collapses to an icon on scroll ---------- */
@media (max-width: 1150px){
  .header-inner{ row-gap:8px; }
  .header-inner .search-box{ padding:7px 14px; }
  .site-header .logo img{ max-height:min(var(--logo-h), 52px); }
  body.hdr-compact .header-inner{ padding-top:6px; padding-bottom:6px; }
  body.hdr-compact .site-header .logo img{ max-height:36px; }
  body.hdr-compact .site-header .logo .logo-mark{ width:34px !important; height:34px !important; }
  body.hdr-compact .header-inner .search-box{ display:none; }
  body.hdr-compact .mobile-search-toggle-cb:checked ~ .search-box{ display:flex; }
  body.hdr-compact .header-actions .mobile-search-icon{ display:inline-flex !important; align-items:center; justify-content:center; }
  body.hdr-compact .nav-strip{ display:none; }
}
@media (max-width: 640px){
  .header-inner{ padding:8px 12px 10px; }
  .site-header .logo img{ max-height:min(var(--logo-h), 46px); }
  body.hdr-compact .header-inner{ padding-top:6px; padding-bottom:6px; }
  body.hdr-compact .site-header .logo img{ max-height:34px; }
}

/* ---------- v3: nothing may push the page sideways on phones ---------- */
html{ overflow-x:clip; }
body{ overflow-x:clip; }
@media (max-width: 820px){
  [data-aos="left"], [data-aos="right"]{ transform:translateY(20px); }
  [data-aos="left"].aos-in, [data-aos="right"].aos-in{ transform:none; }
}
