/* ===== FarahShopp — design system =====
   Brand: rose pink on white, charcoal ink.
   Type: Playfair Display (headlines) + Jost (everything else).
*/
:root{
  --ink:#2E2A2C;
  --ink-2:#5E5659;
  --muted:#8C8286;
  --rose:#C9577D;          /* main accent (buttons, prices on sale) */
  --rose-deep:#A94468;
  --pink:#F3C6D5;
  --blush:#FBF1F4;
  --paper:#FFFFFF;
  --line:#EDE4E7;
  --ok:#2F7A4D;
  --max:1280px;
  --r-sm:6px;
  --r-md:12px;
  --r-lg:20px;
  --tabbar:0px;
  --shadow:0 12px 40px rgba(46,42,44,.12);
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
html.no-scroll{ overflow:hidden; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
  padding-bottom:var(--tabbar);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
h1,h2,h3,h4{ font-family:'Playfair Display', Georgia, serif; margin:0; font-weight:700; line-height:1.12; letter-spacing:-.005em; }
p{ margin:0; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 20px; }
.muted{ color:var(--muted); font-size:14px; }
.only-desktop{ display:none !important; }
@media (min-width:901px){ .only-desktop{ display:flex !important; } .only-mobile{ display:none !important; } }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--rose); outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:50px; padding:0 28px; border-radius:999px;
  border:1.5px solid var(--ink); background:var(--ink); color:#fff;
  font-size:14.5px; font-weight:500; letter-spacing:.02em;
  transition:background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn svg{ width:18px; height:18px; }
.btn:hover{ background:var(--rose); border-color:var(--rose); }
.btn:active{ transform:scale(.98); }
.btn.rose{ background:var(--rose); border-color:var(--rose); }
.btn.rose:hover{ background:var(--rose-deep); border-color:var(--rose-deep); }
.btn.outline{ background:transparent; color:var(--ink); }
.btn.outline:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.wa{ background:#1FA855; border-color:#1FA855; }
.btn.wa:hover{ background:#178a45; border-color:#178a45; }
.btn.small{ min-height:40px; padding:0 18px; font-size:13.5px; }
.btn.full{ width:100%; }
.btn:disabled{ opacity:.45; cursor:not-allowed; background:var(--ink); border-color:var(--ink); transform:none; }
.text-link{ font-size:14px; text-decoration:underline; text-underline-offset:3px; color:var(--ink-2); }
.text-link.center{ display:block; text-align:center; margin-top:12px; }

/* ===== Announcement bar ===== */
.announce{
  background:var(--rose-deep); color:#fff; text-align:center;
  font-size:13px; letter-spacing:.03em; height:36px;
  display:flex; align-items:center; justify-content:center; padding:0 16px; overflow:hidden;
}
.announce span{ transition:opacity .3s ease, transform .3s ease; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.announce span.out{ opacity:0; transform:translateY(-6px); }

/* ===== Header ===== */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(12px); -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
.header-row{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  height:64px; gap:8px;
}
.brand{ justify-self:center; display:flex; }
.brand img{ height:34px; width:auto; }
.header-actions{ justify-self:end; display:flex; align-items:center; gap:2px; }
.icon-btn{
  position:relative; display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; background:none; border:none; padding:0; border-radius:50%; color:var(--ink);
}
.icon-btn svg{ width:23px; height:23px; }
.icon-btn:hover{ background:var(--blush); }
.header-row > .icon-btn:first-child{ justify-self:start; margin-left:-10px; }
.count{
  position:absolute; top:5px; right:3px; min-width:17px; height:17px; padding:0 4px;
  border-radius:9px; background:var(--rose); color:#fff; font-size:10.5px; font-style:normal; font-weight:600;
  display:none; align-items:center; justify-content:center; line-height:1;
}
.count.show{ display:flex; }
.bump{ animation:bump .45s var(--ease); }
@keyframes bump{ 30%{ transform:scale(1.18); } 60%{ transform:scale(.95); } }

nav.main{ display:none; }
@media (min-width:901px){
  .header-row{ grid-template-columns:auto 1fr auto; height:76px; gap:28px; }
  .brand{ justify-self:start; }
  .brand img{ height:40px; }
  nav.main{ display:flex; justify-content:center; gap:26px; }
  nav.main a{ font-size:14.5px; padding:6px 0; border-bottom:1.5px solid transparent; transition:color .2s, border-color .2s; white-space:nowrap; }
  nav.main a:hover, nav.main a.active{ border-color:var(--ink); }
  nav.main a.is-sale{ color:var(--rose); }
  nav.main a.is-sale.active, nav.main a.is-sale:hover{ border-color:var(--rose); }
}

/* ===== Mobile nav drawer ===== */
.overlay{ position:fixed; inset:0; background:rgba(30,24,27,.45); z-index:90; opacity:0; pointer-events:none; transition:opacity .25s ease; }
.overlay.open{ opacity:1; pointer-events:auto; }
.mobile-nav{
  position:fixed; top:0; left:0; bottom:0; width:min(86vw,360px); z-index:95; background:#fff;
  transform:translateX(-100%); transition:transform .32s var(--ease);
  display:flex; flex-direction:column; padding:14px 22px 28px;
}
.mobile-nav.open{ transform:none; }
.mobile-nav-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.mobile-nav-head img{ height:32px; width:auto; }
.mobile-nav nav{ display:flex; flex-direction:column; overflow-y:auto; }
.mobile-nav nav a{ font-size:19px; padding:13px 0; border-bottom:1px solid var(--line); }
.mobile-nav nav a.active{ color:var(--rose); }
.mobile-nav nav a.is-sale{ color:var(--rose); }
.mobile-nav-foot{ margin-top:auto; padding-top:20px; }

/* ===== Search panel ===== */
.search-panel{
  position:fixed; inset:0; z-index:100; background:#fff; overflow-y:auto;
  opacity:0; pointer-events:none; transform:translateY(-10px); transition:opacity .2s ease, transform .25s var(--ease);
}
.search-panel.open{ opacity:1; pointer-events:auto; transform:none; }
.search-top{ display:flex; align-items:center; gap:10px; height:68px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; }
.search-top > svg{ width:22px; height:22px; color:var(--muted); flex:0 0 auto; }
.search-top input{ flex:1; border:none; outline:none; font:inherit; font-size:18px; background:none; min-width:0; }
.search-top input::-webkit-search-cancel-button{ display:none; }
.search-results{ padding-top:20px; padding-bottom:40px; }
.search-list{ display:flex; flex-direction:column; margin-bottom:18px; }
.search-row{ display:grid; grid-template-columns:56px 1fr auto; gap:14px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.search-row img{ width:56px; height:72px; object-fit:cover; border-radius:var(--r-sm); background:var(--blush); }
.search-row .name{ display:block; font-size:15px; line-height:1.3; }
.search-row .muted{ font-size:12.5px; }
.search-empty{ text-align:center; padding:30px 10px; display:flex; flex-direction:column; gap:10px; align-items:center; }
.search-hints .muted{ margin-bottom:10px; }

/* ===== Chips ===== */
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 16px; border-radius:999px;
  border:1px solid var(--line); background:#fff; font-size:14px; white-space:nowrap; transition:all .15s ease;
}
.chip:hover{ border-color:var(--ink); }
.chip.active{ background:var(--ink); border-color:var(--ink); color:#fff; }

/* ===== Hero ===== */
.hero{ padding:14px 0 8px; }
.hero-grid{ display:grid; gap:22px; }
.hero-media{ position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--blush); }
.hero-copy{ display:flex; flex-direction:column; gap:14px; padding:0 2px; }
.hero-copy h1{ font-size:clamp(34px, 9vw, 64px); }
.hero-copy p{ color:var(--ink-2); max-width:34em; }
.hero-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }
.hero-cta .btn{ flex:1 1 150px; }

/* mosaic of real product photos */
.mosaic{ display:grid; grid-template-columns:1.25fr 1fr; grid-template-rows:1fr 1fr; gap:6px; aspect-ratio:4/4.4; }
.mosaic a{ position:relative; overflow:hidden; background:var(--pink); }
.mosaic a:first-child{ grid-row:1 / 3; }
.mosaic.two{ grid-template-columns:1fr 1fr; grid-template-rows:1fr; }
.mosaic.two a:first-child{ grid-row:auto; }
.mosaic.one{ grid-template-columns:1fr; grid-template-rows:1fr; }
.mosaic img{ width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease); }
.mosaic a:hover img{ transform:scale(1.04); }
.mosaic .ptag{
  position:absolute; left:10px; bottom:10px; background:rgba(255,255,255,.94); border-radius:999px;
  padding:5px 12px; font-size:13px; font-weight:500;
}
/* uploaded campaign banners */
.slides{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; aspect-ratio:4/4.6; }
.slides::-webkit-scrollbar{ display:none; }
.slides img{ flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; }
.slide-dots{ position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:6px; }
.slide-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.55); transition:all .2s ease; }
.slide-dots i.on{ background:#fff; width:20px; border-radius:4px; }
/* brand panel when there are no photos yet */
.brand-panel{ aspect-ratio:4/3.4; display:flex; align-items:center; justify-content:center; background:
  radial-gradient(circle at 20% 20%, #fff 0, transparent 45%), linear-gradient(160deg, var(--blush), var(--pink)); }
.brand-panel img{ width:min(60%, 320px); height:auto; }
.hero-skel{ aspect-ratio:4/4.4; }

@media (min-width:901px){
  .hero{ padding:28px 0 12px; }
  .hero-grid{ grid-template-columns:0.9fr 1.1fr; align-items:center; gap:56px; }
  .hero-copy{ order:-1; gap:20px; }
  .hero-cta .btn{ flex:0 0 auto; }
  .mosaic, .slides, .hero-skel{ aspect-ratio:1.18/1; }
  .brand-panel{ aspect-ratio:1.18/1; }
}

/* ===== Sections ===== */
.section{ padding:40px 0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-head h2{ font-size:clamp(24px, 6vw, 38px); }
.view-all{ font-size:14px; font-weight:500; white-space:nowrap; text-decoration:underline; text-underline-offset:4px; }
@media (min-width:901px){ .section{ padding:64px 0; } .section-head{ margin-bottom:28px; } }

/* ===== Category circles ===== */
.cats{
  display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none;
  margin:0 -20px; padding:4px 20px 6px; scroll-padding-inline:20px;
}
.cats::-webkit-scrollbar{ display:none; }
.cat{ flex:0 0 auto; width:84px; display:flex; flex-direction:column; align-items:center; gap:8px; scroll-snap-align:start; text-align:center; }
.cat-circle{
  width:84px; height:84px; border-radius:50%; overflow:hidden; background:var(--blush);
  display:flex; align-items:center; justify-content:center; color:var(--rose);
  box-shadow:inset 0 0 0 1px var(--line); transition:transform .25s var(--ease), box-shadow .25s ease;
}
.cat-circle img{ width:100%; height:100%; object-fit:cover; object-position:center 25%; }
.cat-circle svg{ width:46%; height:46%; }
.cat span.label{ font-size:13.5px; line-height:1.25; }
.cat:hover .cat-circle{ transform:translateY(-2px); box-shadow:inset 0 0 0 2px var(--rose); }
@media (min-width:901px){
  .cats{ display:grid; grid-template-columns:repeat(8, 1fr); gap:22px; margin:0; padding:0; overflow:visible; }
  .cat{ width:auto; }
  .cat-circle{ width:100%; height:auto; aspect-ratio:1; max-width:140px; }
  .cat span.label{ font-size:15px; }
}

/* ===== Product grid & cards ===== */
.grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:22px 12px; }
@media (min-width:720px){ .grid{ grid-template-columns:repeat(3, 1fr); gap:30px 18px; } }
@media (min-width:1080px){ .grid{ grid-template-columns:repeat(4, 1fr); } }
.rail{
  display:grid; grid-auto-flow:column; grid-auto-columns:44%; gap:12px;
  overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; margin:0 -20px; padding:0 20px; scroll-padding-inline:20px;
}
.rail::-webkit-scrollbar{ display:none; }
.rail > *{ scroll-snap-align:start; }
@media (min-width:720px){ .rail{ grid-auto-columns:30%; gap:18px; } }
@media (min-width:1080px){ .rail{ grid-auto-columns:calc((100% - 54px)/4); margin:0; padding:0; } }

.card{ position:relative; min-width:0; }
.card-media{ position:relative; aspect-ratio:3/4; border-radius:var(--r-md); overflow:hidden; background:var(--blush); margin-bottom:10px; }
.card-track{ display:flex; width:100%; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.card-track::-webkit-scrollbar{ display:none; }
.card-track img{ flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; }
.noimg{ flex:1; display:flex; align-items:center; justify-content:center; color:var(--rose); }
.noimg svg{ width:40%; }
.card-dots{ position:absolute; bottom:9px; left:0; right:0; display:flex; justify-content:center; gap:4px; pointer-events:none; }
.card-dots i{ width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.6); transition:all .2s ease; }
.card-dots i.on{ background:#fff; width:12px; border-radius:3px; }
.badge{
  position:absolute; top:9px; left:9px; background:#fff; color:var(--ink); font-size:11.5px; font-weight:600;
  padding:4px 9px; border-radius:999px; letter-spacing:.02em; box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.badge.sale{ background:var(--rose); color:#fff; }
.badge.dark{ background:var(--ink); color:#fff; }
.wish-btn, .quick-btn{
  position:absolute; width:36px; height:36px; border-radius:50%; border:none; background:rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:center; color:var(--ink); padding:0;
  box-shadow:0 2px 8px rgba(0,0,0,.08); transition:transform .15s ease, background .15s ease, color .15s;
}
.wish-btn{ top:8px; right:8px; }
.quick-btn{ bottom:8px; right:8px; }
.wish-btn svg, .quick-btn svg{ width:19px; height:19px; }
.wish-btn:active, .quick-btn:active{ transform:scale(.9); }
.wish-btn.on{ color:var(--rose); }
.wish-btn.on svg{ fill:currentColor; }
.quick-btn:hover{ background:var(--ink); color:#fff; }
.card-name{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-size:14px; line-height:1.35; color:var(--ink-2); margin-bottom:3px;
}
.price{ font-size:15.5px; font-weight:600; display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.price s{ font-weight:400; color:var(--muted); font-size:13.5px; }
.card.is-soldout .card-track{ opacity:.55; }
@media (hover:hover){
  .card-media img{ transition:transform .6s var(--ease); }
  .card:hover .card-media img:first-child{ transform:scale(1.03); }
}
.grid-empty{ grid-column:1/-1; text-align:center; padding:50px 10px; display:flex; flex-direction:column; align-items:center; gap:16px; color:var(--ink-2); }

/* skeletons */
@keyframes shimmer{ to{ background-position:-200% 0; } }
.skeleton .card-media, .skel-line, .hero-skel{
  background:linear-gradient(90deg, var(--blush) 30%, #fff 50%, var(--blush) 70%); background-size:200% 100%;
  animation:shimmer 1.3s linear infinite;
}
.skel-line{ height:12px; border-radius:6px; margin-top:8px; }
.skel-line.short{ width:45%; }

/* ===== Promo band ===== */
.promo{
  border-radius:var(--r-lg); background:var(--ink); color:#fff; padding:34px 26px;
  display:grid; gap:16px; overflow:hidden; position:relative;
}
.promo h2{ font-size:clamp(26px, 7vw, 44px); }
.promo p{ color:rgba(255,255,255,.75); max-width:32em; }
.promo .btn{ background:#fff; color:var(--ink); border-color:#fff; justify-self:start; }
.promo .btn:hover{ background:var(--pink); border-color:var(--pink); }

@media (min-width:901px){ .promo{ padding:56px; grid-template-columns:1fr auto; align-items:end; } .promo .btn{ justify-self:end; } }

/* ===== Trust strip ===== */
.trust{ background:var(--blush); padding:30px 0; margin-top:24px; }
.trust-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px 16px; }
.trust-item{ display:flex; gap:12px; align-items:flex-start; }
.trust-item svg{ width:28px; height:28px; flex:0 0 auto; color:var(--rose); }
.trust-item strong{ display:block; font-size:14px; font-weight:600; line-height:1.3; }
.trust-item span{ display:block; font-size:13px; line-height:1.4; color:var(--muted); margin-top:2px; }
@media (min-width:901px){ .trust{ padding:40px 0; } .trust-grid{ grid-template-columns:repeat(4, 1fr); } }

/* ===== Footer ===== */
footer.site{ padding:40px 0 24px; border-top:1px solid var(--line); }
.footer-grid{ display:grid; grid-template-columns:1fr 1fr; gap:30px 20px; }
.footer-brand{ grid-column:1/-1; }
.footer-brand img{ height:40px; width:auto; margin-bottom:12px; }
.footer-brand p{ color:var(--ink-2); font-size:14px; max-width:30em; }
footer.site h5{ font-size:13px; font-weight:600; letter-spacing:.06em; margin:0 0 12px; color:var(--ink); }
footer.site ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
footer.site ul a{ color:var(--ink-2); font-size:14.5px; }
footer.site ul a:hover{ color:var(--rose); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ border-color:var(--rose); color:var(--rose); }
.social-row svg{ width:19px; height:19px; }
.footer-bottom{ display:flex; justify-content:space-between; gap:12px; margin-top:32px; padding-top:18px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); }
@media (min-width:901px){ .footer-grid{ grid-template-columns:1.6fr 1fr 1fr 1fr; } .footer-brand{ grid-column:auto; } }

/* ===== Bottom tab bar (phones) ===== */
.tabbar{ display:none; }
@media (max-width:900px){
  :root{ --tabbar:calc(60px + env(safe-area-inset-bottom)); }
  .tabbar{
    display:grid; grid-template-columns:repeat(5, 1fr); position:fixed; left:0; right:0; bottom:0; z-index:60;
    height:var(--tabbar); padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.96); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    border-top:1px solid var(--line);
  }
  .tabbar a, .tabbar button{
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    background:none; border:none; padding:0; font-size:11px; color:var(--muted);
  }
  .tabbar svg{ width:23px; height:23px; }
  .tabbar .on{ color:var(--ink); }
  .tabbar .count{ top:6px; right:calc(50% - 20px); }
}

/* ===== WhatsApp floating button ===== */
.wa-fab{
  position:fixed; right:16px; bottom:calc(var(--tabbar) + 16px); z-index:55;
  width:54px; height:54px; border-radius:50%; background:#1FA855; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(31,168,85,.35);
  transition:transform .2s ease;
}
.wa-fab:hover{ transform:scale(1.06); }
.wa-fab svg{ width:29px; height:29px; }

/* ===== Cart drawer ===== */
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:min(420px, 100%); z-index:96; background:#fff;
  transform:translateX(100%); transition:transform .32s var(--ease); display:flex; flex-direction:column;
}
.cart-drawer.open{ transform:none; }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px 10px 22px; border-bottom:1px solid var(--line); }
.cart-head h3{ font-size:21px; }
.cart-head h3 span{ font-family:'Jost', sans-serif; font-weight:400; font-size:15px; color:var(--muted); }
.cart-items{ flex:1; overflow-y:auto; padding:0 22px; overscroll-behavior:contain; }
.cart-line{ display:grid; grid-template-columns:80px 1fr; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
.cart-line img{ width:80px; height:104px; object-fit:cover; border-radius:var(--r-sm); background:var(--blush); }
.cart-line-body{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.cart-line-name{ font-size:14.5px; line-height:1.3; }
.cart-line-meta{ font-size:13px; color:var(--muted); }
.warn{ color:#B3261E; }
.qty-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:4px; }
.stepper{ display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; height:36px; }
.stepper button{ width:36px; height:34px; border:none; background:none; font-size:18px; line-height:1; }
.stepper span{ min-width:22px; text-align:center; font-size:14px; }
.remove-line{ align-self:flex-start; background:none; border:none; padding:0; font-size:13px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.cart-empty{ padding:70px 10px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; color:var(--ink-2); }
.cart-empty svg{ width:44px; height:44px; color:var(--pink); }
.cart-foot{ padding:16px 22px calc(18px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); }
.cart-subtotal{ display:flex; justify-content:space-between; font-size:16px; margin-bottom:12px; }
.cart-note{ font-size:12.5px; color:var(--muted); text-align:center; margin-top:10px; }
.freebar{ padding:12px 22px; background:var(--blush); font-size:13.5px; }
.freebar-track{ height:5px; border-radius:3px; background:#fff; margin-top:8px; overflow:hidden; }
.freebar-track span{ display:block; height:100%; background:var(--rose); border-radius:3px; transition:width .4s var(--ease); }

/* ===== Bottom sheet (size picker) ===== */
.sheet-overlay{ position:fixed; inset:0; z-index:97; background:rgba(30,24,27,.45); opacity:0; pointer-events:none; transition:opacity .25s ease; display:flex; align-items:flex-end; justify-content:center; }
.sheet-overlay.open{ opacity:1; pointer-events:auto; }
.sheet{
  width:100%; max-width:480px; background:#fff; border-radius:var(--r-lg) var(--r-lg) 0 0;
  padding:10px 20px calc(22px + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform .32s var(--ease);
}
.sheet-overlay.open .sheet{ transform:none; }
@media (min-width:600px){ .sheet-overlay{ align-items:center; } .sheet{ border-radius:var(--r-lg); padding-bottom:24px; } }
.sheet-grip{ width:40px; height:4px; border-radius:2px; background:var(--line); margin:0 auto 14px; }
.sheet-head{ display:grid; grid-template-columns:64px 1fr auto; gap:14px; align-items:start; margin-bottom:18px; }
.sheet-head img{ width:64px; height:84px; object-fit:cover; border-radius:var(--r-sm); background:var(--blush); }
.sheet-name{ font-size:15px; line-height:1.3; margin-bottom:4px; }
.field-label{ font-size:14px; font-weight:600; margin-bottom:10px; }
.size-row{ display:flex; flex-wrap:wrap; gap:8px; }
.size-chip{
  min-width:52px; height:44px; padding:0 14px; border-radius:var(--r-sm); border:1px solid var(--line);
  background:#fff; font-size:14.5px; transition:all .15s ease;
}
.size-chip:hover{ border-color:var(--ink); }
.size-chip.active{ background:var(--ink); color:#fff; border-color:var(--ink); }
.size-hint{ min-height:22px; font-size:13.5px; color:#B3261E; margin:8px 0 6px; }

/* ===== Toast ===== */
.toast{
  position:fixed; left:50%; bottom:calc(var(--tabbar) + 18px); z-index:200;
  transform:translate(-50%, 16px); opacity:0; pointer-events:none;
  display:flex; align-items:center; gap:14px; background:var(--ink); color:#fff;
  padding:12px 12px 12px 20px; border-radius:999px; font-size:14px; box-shadow:var(--shadow);
  transition:all .28s var(--ease); max-width:calc(100% - 32px); white-space:nowrap;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
.toast button{ background:rgba(255,255,255,.15); border:none; color:#fff; border-radius:999px; padding:6px 14px; font-size:13.5px; }
.toast:not(:has(button)){ padding-right:20px; }

/* ===== Page head & shop ===== */
.page-head{ padding:22px 0 6px; }
.page-head h1{ font-size:clamp(28px, 7vw, 46px); }
.crumbs{ font-size:13px; color:var(--muted); margin-bottom:8px; }
.crumbs a:hover{ color:var(--ink); }
.shop-chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:14px -20px 0; padding:0 20px 4px; scroll-padding-inline:20px; }
.shop-chips::-webkit-scrollbar{ display:none; }
.shop-tools{
  position:sticky; top:64px; z-index:20; background:rgba(255,255,255,.95); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0; margin-bottom:14px;
  border-bottom:1px solid var(--line);
}
@media (min-width:901px){ .shop-tools{ top:76px; } }
.tool-left{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.toggle{ height:36px; padding:0 14px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13.5px; }
.toggle.on{ background:var(--blush); border-color:var(--rose); color:var(--rose-deep); }
.sort{
  height:36px; border:1px solid var(--line); border-radius:999px; padding:0 30px 0 14px; font:inherit; font-size:13.5px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E2A2C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance:none; -webkit-appearance:none; color:var(--ink);
}
.result-count{ font-size:13.5px; color:var(--muted); white-space:nowrap; }

/* ===== Product page ===== */
.pdp{ display:grid; gap:22px; padding-bottom:20px; }
.pdp-gallery{ position:relative; margin:0 -20px; }
.pdp-track{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; aspect-ratio:3/4; background:var(--blush); }
.pdp-track::-webkit-scrollbar{ display:none; }
.pdp-track img{ flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; }
.pdp-dots{ position:absolute; bottom:14px; left:0; right:0; display:flex; justify-content:center; gap:6px; }
.pdp-dots i{ width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.6); transition:all .2s ease; }
.pdp-dots i.on{ background:#fff; width:20px; border-radius:4px; }
.pdp-thumbs{ display:none; }
.pdp-info{ display:flex; flex-direction:column; gap:16px; }
.pdp-info h1{ font-size:clamp(24px, 6vw, 34px); }
.pdp-price{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:24px; font-weight:600; }
.pdp-price s{ font-size:17px; font-weight:400; color:var(--muted); }
.save-pill{ background:var(--blush); color:var(--rose-deep); font-size:13px; font-weight:600; padding:4px 10px; border-radius:999px; }
.pdp-actions{ display:flex; gap:10px; align-items:stretch; }
.pdp-actions .btn{ flex:1; }
.round-btn{ width:50px; height:50px; flex:0 0 50px; border-radius:50%; border:1.5px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; padding:0; }
.round-btn svg{ width:22px; height:22px; }
.round-btn.on{ color:var(--rose); border-color:var(--pink); }
.round-btn.on svg{ fill:currentColor; }
.pdp-perks{ display:grid; gap:10px; background:var(--blush); border-radius:var(--r-md); padding:16px; }
.pdp-perks div{ display:flex; gap:10px; align-items:center; font-size:14px; }
.pdp-perks svg{ width:20px; height:20px; color:var(--rose); flex:0 0 auto; }
.acc{ border-top:1px solid var(--line); }
.acc:last-child{ border-bottom:1px solid var(--line); }
.acc summary{ list-style:none; cursor:pointer; padding:16px 0; font-weight:500; display:flex; justify-content:space-between; }
.acc summary::-webkit-details-marker{ display:none; }
.acc summary::after{ content:"+"; font-size:20px; line-height:1; color:var(--muted); }
.acc[open] summary::after{ content:"−"; }
.acc .acc-body{ padding-bottom:16px; color:var(--ink-2); font-size:15px; white-space:pre-line; }
.sticky-buy{
  position:fixed; left:0; right:0; bottom:var(--tabbar); z-index:58; background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px); border-top:1px solid var(--line); padding:10px 16px;
  display:flex; gap:12px; align-items:center; transform:translateY(120%); visibility:hidden; transition:transform .3s var(--ease), visibility 0s .3s;
}
.sticky-buy.show{ transform:none; visibility:visible; transition:transform .3s var(--ease); }
.sticky-buy .sb-info{ min-width:0; flex:1; }
.sticky-buy .sb-name{ font-size:13px; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sticky-buy .btn{ flex:0 0 auto; min-height:46px; }
@media (min-width:901px){
  .pdp{ grid-template-columns:1.1fr .9fr; gap:56px; align-items:start; padding-top:10px; }
  .pdp-gallery{ margin:0; display:grid; grid-template-columns:76px 1fr; gap:12px; position:sticky; top:96px; }
  .pdp-track{ border-radius:var(--r-lg); grid-column:2; }
  .pdp-dots{ display:none; }
  .pdp-thumbs{ display:flex; flex-direction:column; gap:10px; grid-row:1; grid-column:1; }
  .pdp-thumbs button{ padding:0; border:1.5px solid transparent; border-radius:var(--r-sm); overflow:hidden; background:none; opacity:.7; aspect-ratio:3/4; }
  .pdp-thumbs button.on{ border-color:var(--ink); opacity:1; }
  .pdp-thumbs img{ width:100%; height:100%; object-fit:cover; }
  .sticky-buy{ display:none; }
}

/* ===== Cart page & checkout ===== */
.two-col{ display:grid; gap:26px; align-items:start; }
@media (min-width:901px){ .two-col{ grid-template-columns:1.3fr .9fr; gap:50px; } }
.summary{ background:var(--blush); border-radius:var(--r-lg); padding:22px; }
@media (min-width:901px){ .summary{ position:sticky; top:100px; } }
.summary h3{ font-size:21px; margin-bottom:12px; }
.sum-row{ display:flex; justify-content:space-between; gap:12px; font-size:15px; padding:7px 0; }
.sum-row.total{ font-size:19px; font-weight:600; border-top:1px solid #ecd9df; margin-top:8px; padding-top:14px; }
.sum-item{ display:grid; grid-template-columns:52px 1fr auto; gap:12px; align-items:center; padding:8px 0; font-size:14px; }
.sum-item img{ width:52px; height:66px; object-fit:cover; border-radius:var(--r-sm); background:#fff; }
.sum-item .q{ color:var(--muted); font-size:13px; }
.summary .freebar{ margin:6px -22px 10px; }

.form-block{ margin-bottom:28px; }
.form-block h3{ font-size:21px; margin-bottom:14px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:14px; font-weight:500; margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; height:52px; padding:0 16px; border:1px solid #DDD1D5; border-radius:var(--r-md);
  background:#fff; font:inherit; font-size:16px; color:var(--ink); transition:border-color .15s ease, box-shadow .15s ease;
}
.field textarea{ height:auto; min-height:90px; padding:14px 16px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(46,42,44,.08); }
.field .err{ display:none; font-size:13px; color:#B3261E; margin-top:5px; }
.field.invalid input{ border-color:#B3261E; }
.field.invalid .err{ display:block; }
.field-row{ display:grid; grid-template-columns:1fr; gap:0 14px; }
@media (min-width:560px){ .field-row{ grid-template-columns:1fr 1fr; } }
.area-results{ display:none; margin-top:6px; border:1px solid var(--line); border-radius:var(--r-md); max-height:260px; overflow-y:auto; background:#fff; box-shadow:var(--shadow); }
.area-item{ width:100%; display:flex; justify-content:space-between; gap:10px; padding:13px 16px; border:none; border-bottom:1px solid var(--line); background:#fff; text-align:left; font-size:15px; }
.area-item:last-child{ border-bottom:none; }
.area-item:hover{ background:var(--blush); }
.area-fee{ font-size:13.5px; color:var(--rose-deep); font-weight:600; }
.area-empty{ padding:16px; font-size:14px; color:var(--muted); text-align:center; }
.area-chosen{ margin-top:8px; padding:14px 16px; background:var(--blush); border-radius:var(--r-md); display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:15px; }
.area-change{ background:none; border:none; text-decoration:underline; font-size:14px; color:var(--rose-deep); padding:0; }
.pay-option{ border:1.5px solid var(--line); border-radius:var(--r-md); padding:16px; display:flex; gap:12px; align-items:flex-start; margin-bottom:10px; }
.pay-option.selected{ border-color:var(--ink); }
.pay-option.disabled{ opacity:.5; }
.pay-option input{ margin-top:4px; accent-color:var(--ink); }
.pay-option .ptitle{ font-weight:600; font-size:15px; }
.pay-option .pnote{ font-size:13.5px; color:var(--muted); }
.check-line{ display:flex; gap:10px; align-items:center; font-size:14.5px; margin:6px 0 4px; }
.check-line input{ width:18px; height:18px; accent-color:var(--ink); }

.confirm{ max-width:560px; margin:0 auto; text-align:center; padding:40px 0 20px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.confirm-mark{ width:68px; height:68px; border-radius:50%; background:var(--blush); color:var(--ok); display:flex; align-items:center; justify-content:center; }
.confirm-mark svg{ width:34px; height:34px; }
.confirm h1{ font-size:clamp(28px, 7vw, 40px); }
.order-no{ font-size:15px; background:var(--blush); padding:8px 16px; border-radius:999px; }
.confirm .btn{ width:100%; max-width:360px; }
.confirm .summary{ width:100%; text-align:left; margin-top:8px; }

.empty-state{ text-align:center; padding:70px 10px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.empty-state h2{ font-size:26px; }
.empty-state p{ color:var(--ink-2); margin-bottom:8px; }

/* ===== Policies ===== */
.prose{ max-width:720px; padding:10px 0 40px; }
.prose h2{ font-size:26px; margin:30px 0 10px; scroll-margin-top:100px; }
.prose p, .prose li{ color:var(--ink-2); }
.prose ul{ padding-left:20px; }

/* ===== Discount code ===== */
.coupon{ margin:12px 0 8px; border:1px dashed #D9B8C4; border-radius:var(--r-md); background:#fff; }
.coupon summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; padding:14px 16px; font-size:15px; font-weight:500; }
.coupon summary::-webkit-details-marker{ display:none; }
.coupon summary::after{ content:"+"; margin-left:auto; font-size:20px; line-height:1; color:var(--muted); }
.coupon[open] summary::after{ content:"−"; }
.coupon summary svg, .coupon-tag svg{ width:18px; height:18px; color:var(--rose); flex:0 0 auto; }
.coupon-form{ display:flex; gap:8px; padding:0 16px; }
.coupon-form input{
  flex:1; min-width:0; height:46px; border:1px solid #DDD1D5; border-radius:var(--r-md); padding:0 14px;
  font:inherit; font-size:16px; text-transform:uppercase; letter-spacing:.06em;
}
.coupon-form input:focus{ outline:none; border-color:var(--ink); }
.coupon-form input::placeholder{ text-transform:none; letter-spacing:0; }
.coupon-form .btn{ min-height:46px; }
.coupon-msg{ min-height:10px; padding:6px 16px 12px; font-size:13.5px; }
.coupon-msg.err{ color:#B3261E; }
.coupon-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; width:100%; }
.coupon-applied{
  margin:12px 0 8px; display:flex; flex-direction:column; gap:10px;
  padding:12px 16px; border-radius:var(--r-md); background:#fff; border:1px solid #CFE6D7;
}
.coupon-tag{
  display:inline-flex; align-items:center; gap:6px; background:#EAF5EE; color:var(--ok);
  font-weight:600; font-size:14px; letter-spacing:.05em; padding:5px 10px; border-radius:999px;
}
.coupon-tag svg{ color:var(--ok); }
.coupon-desc{ font-size:14px; color:var(--ink-2); flex:1; min-width:120px; }
.sum-row.discount span:last-child{ color:var(--ok); font-weight:600; }
.saving{ margin-top:10px; text-align:center; font-size:13.5px; color:var(--ok); background:#EAF5EE; border-radius:999px; padding:7px 12px; }
.coupon-applied .area-change{ margin-left:auto; }

.pick{ border-top:1px solid #E3EFE7; padding-top:12px; margin-top:2px; }
.pick-title{ font-size:14px; font-weight:500; display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; }
.pick-count{ color:var(--ok); font-weight:600; white-space:nowrap; }
.pick-list{ display:flex; flex-direction:column; gap:8px; }
.pick-item{
  display:grid; grid-template-columns:44px 1fr auto 22px; gap:10px; align-items:center; text-align:left;
  width:100%; padding:8px 10px 8px 8px; border:1.5px solid var(--line); border-radius:var(--r-md); background:#fff;
  transition:border-color .15s ease, background .15s ease;
}
.pick-item img{ width:44px; height:56px; object-fit:cover; border-radius:6px; background:var(--blush); }
.pick-name{ font-size:13.5px; line-height:1.3; min-width:0; }
.pick-name small{ display:block; color:var(--muted); font-size:12px; }
.pick-price{ font-size:14px; font-weight:600; text-align:right; white-space:nowrap; }
.pick-price s{ display:block; font-weight:400; font-size:12px; color:var(--muted); }
.pick-check{ width:22px; height:22px; border-radius:50%; border:1.5px solid #CDBFC4; position:relative; }
.pick-item.on{ border-color:var(--ok); background:#F4FAF6; }
.pick-item.on .pick-price{ color:var(--ok); }
.pick-item.on .pick-check{ background:var(--ok); border-color:var(--ok); }
.pick-item.on .pick-check::after{ content:""; position:absolute; left:7px; top:3px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.pick-item.full{ opacity:.5; }

/* ===== Stock ===== */
.low-stock{ font-size:12.5px; color:var(--rose-deep); font-weight:500; margin-top:2px; }
.low-stock.inline{ display:inline; margin:0 0 0 6px; font-size:12px; }
.size-chip{ position:relative; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.1; }
.size-chip small{ font-size:10px; color:var(--rose-deep); font-weight:500; margin-top:2px; }
.size-chip.active small{ color:var(--pink); }
.size-chip.soldout{ color:#BDB2B6; background:#FAF7F8; cursor:not-allowed; border-style:dashed; }
.size-chip.soldout::after{ content:""; position:absolute; left:8px; right:8px; top:50%; height:1px; background:#CDBFC4; transform:rotate(-18deg); }
.size-chip.soldout:hover{ border-color:var(--line); }
.stock-note{ font-size:13.5px; color:var(--rose-deep); font-weight:500; min-height:0; margin:0; }
.stepper button:disabled{ color:#CDBFC4; cursor:not-allowed; }
.stock-alert{ background:#FFF4DF; border:1px solid #F2D59B; color:#6B4E12; border-radius:var(--r-md); padding:14px 16px; font-size:14px; margin-bottom:18px; }
.load-more{ grid-column:1/-1; display:flex; flex-direction:column; align-items:center; gap:10px; padding:20px 0 10px; font-size:13.5px; color:var(--muted); }

/* ===== Whish / OMT payment ===== */
.pay-save{ display:inline-block; margin-left:6px; font-size:11.5px; font-weight:600; color:var(--ok); background:#EAF5EE; padding:2px 8px; border-radius:999px; vertical-align:2px; }
.pay-box{ border:1.5px solid var(--ink); border-radius:var(--r-md); padding:6px 16px 16px; margin:-2px 0 12px; background:#fff; }
.pay-step{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:14.5px; margin:14px 0 8px; }
.pay-step span{ width:22px; height:22px; border-radius:50%; background:var(--ink); color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.pay-line{ display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:10px 12px; background:var(--blush); border-radius:10px; margin-bottom:6px; font-size:14px; }
.pay-line span{ color:var(--ink-2); }
.pay-line strong{ font-size:15px; letter-spacing:.02em; text-align:right; }
.pay-amount{ font-size:18px !important; color:var(--rose-deep); }
.copy-btn{ border:1px solid var(--line); background:#fff; border-radius:999px; font-size:12.5px; padding:5px 12px; min-width:62px; }
.copy-btn.done{ background:var(--ok); border-color:var(--ok); color:#fff; }
.pay-hint{ font-size:13px; color:var(--muted); margin-top:8px; }
.receipt-drop{ display:flex; align-items:center; gap:12px; padding:14px; border:1.5px dashed #D9B8C4; border-radius:10px; cursor:pointer; font-size:14.5px; font-weight:500; background:#fff; }
.receipt-drop:hover{ border-color:var(--rose); }
.receipt-drop .rd-icon{ width:34px; height:34px; border-radius:50%; background:var(--blush); color:var(--rose); display:flex; align-items:center; justify-content:center; }
.receipt-drop .rd-icon svg{ width:18px; height:18px; }
.receipt-drop.has{ border-style:solid; border-color:#CFE6D7; background:#F4FAF6; color:var(--ok); }
.receipt-drop img{ width:44px; height:60px; object-fit:cover; border-radius:6px; }

/* ===== Language ===== */
.lang-btn{ height:34px; padding:0 12px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13px; font-weight:500; margin-inline-end:4px; }
.lang-btn:hover{ border-color:var(--ink); }
.lang-switch{ display:flex; border:1px solid var(--line); border-radius:999px; padding:3px; margin-bottom:12px; }
.lang-switch button{ flex:1; height:38px; border:none; background:none; border-radius:999px; font-size:14.5px; }
.lang-switch button.on{ background:var(--ink); color:#fff; }

/* ===== Arabic / right-to-left ===== */
html[lang="ar"] body{ font-family:'Tajawal', system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4{ font-family:'Tajawal', system-ui, sans-serif; font-weight:700; letter-spacing:0; }
html[lang="ar"] .announce{ letter-spacing:0; }
[dir="rtl"] .header-row > .icon-btn:first-child{ margin-left:0; margin-right:-10px; }
[dir="rtl"] .badge{ left:auto; right:9px; }
[dir="rtl"] .wish-btn{ right:auto; left:8px; }
[dir="rtl"] .quick-btn{ right:auto; left:8px; }
[dir="rtl"] .count{ right:auto; left:3px; }
[dir="rtl"] .tabbar .count{ right:auto; left:calc(50% - 20px); }
[dir="rtl"] .mobile-nav{ left:auto; right:0; transform:translateX(100%); }
[dir="rtl"] .mobile-nav.open{ transform:none; }
[dir="rtl"] .cart-drawer{ right:auto; left:0; transform:translateX(-100%); }
[dir="rtl"] .cart-drawer.open{ transform:none; }
[dir="rtl"] .wa-fab{ right:auto; left:16px; }
[dir="rtl"] .mosaic .ptag{ left:auto; right:10px; }
[dir="rtl"] .search-row, [dir="rtl"] .area-item{ text-align:right; }
[dir="rtl"] .pick-item{ text-align:right; padding:8px 8px 8px 10px; }
[dir="rtl"] .pick-price{ text-align:left; }
[dir="rtl"] .pick-item.on .pick-check::after{ left:auto; right:7px; }
[dir="rtl"] .sort{ padding:0 14px 0 30px; background-position:left 12px center; }
[dir="rtl"] .pay-line strong{ text-align:left; }
[dir="rtl"] .size-chip.soldout::after{ transform:rotate(18deg); }
[dir="rtl"] .coupon summary::after, [dir="rtl"] .acc summary::after{ margin-left:0; margin-right:auto; }
[dir="rtl"] .coupon-applied .area-change{ margin-left:0; margin-right:auto; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] #fphone{ direction:ltr; text-align:right; }
[dir="rtl"] .pdp-thumbs{ order:2; }
[dir="rtl"] .rv-bar span:first-child{ direction:ltr; }

/* ===== Zoom ===== */
.pdp-track img{ cursor:zoom-in; }
.zoom-hint{ position:absolute; top:12px; right:12px; width:38px; height:38px; border-radius:50%; border:none; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.08); }
[dir="rtl"] .zoom-hint{ right:auto; left:12px; }
.zoom-hint svg{ width:20px; height:20px; }
@media (min-width:901px){ .zoom-hint{ right:12px; top:12px; } [dir="rtl"] .zoom-hint{ left:12px; } }
.lightbox{ position:fixed; inset:0; z-index:300; background:#fff; display:none; flex-direction:column; }
.lightbox.open{ display:flex; animation:lbIn .2s ease; }
@keyframes lbIn{ from{ opacity:0; } }
.lb-bar{ display:flex; align-items:center; gap:12px; padding:calc(8px + env(safe-area-inset-top)) 10px 8px 18px; }
.lb-count{ font-weight:600; font-size:14px; min-width:40px; }
.lb-tip{ flex:1; font-size:12.5px; color:var(--muted); text-align:center; }
.lb-close{ width:44px; height:44px; border:none; background:var(--blush); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.lb-close svg{ width:22px; height:22px; }
.lb-track{ flex:1; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.lb-track::-webkit-scrollbar{ display:none; }
.lb-track.locked{ overflow:hidden; }
.lb-slide{ flex:0 0 100%; display:flex; align-items:center; justify-content:center; overflow:hidden; scroll-snap-align:center; touch-action:pan-x; padding-bottom:env(safe-area-inset-bottom); }
.lb-slide.zoomed{ touch-action:none; }
.lb-slide img{ max-width:100%; max-height:100%; object-fit:contain; transform-origin:center; will-change:transform; user-select:none; -webkit-user-select:none; cursor:zoom-in; }
.lb-slide.zoomed img{ cursor:zoom-out; }
.lb-nav{ display:none; }
@media (hover:hover){
  .lb-nav{ display:flex; position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:50%; border:1px solid var(--line); background:#fff; font-size:28px; align-items:center; justify-content:center; line-height:1; }
  .lb-nav.prev{ left:20px; } .lb-nav.next{ right:20px; }
}

/* ===== Size guide ===== */
.size-head{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.sg-link{ background:none; border:none; padding:0; font-size:13.5px; }
.sg-head{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.sg-head h3{ font-size:22px; flex:1; }
.unit-toggle{ display:flex; border:1px solid var(--line); border-radius:999px; padding:2px; }
.unit-toggle button{ border:none; background:none; border-radius:999px; padding:5px 12px; font-size:13px; }
.unit-toggle button.on{ background:var(--ink); color:#fff; }
.sg-table{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--r-md); }
.sg-table table{ width:100%; border-collapse:collapse; font-size:14px; text-align:center; }
.sg-table th, .sg-table td{ padding:10px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.sg-table tr:last-child th, .sg-table tr:last-child td{ border-bottom:none; }
.sg-table tr:first-child th{ background:var(--blush); font-weight:600; }
.sg-table tr th:first-child{ font-weight:600; }
.sg-tip{ font-size:13.5px; color:var(--ink-2); margin:14px 0 10px; }
.sheet{ max-height:88vh; overflow-y:auto; }

/* ===== Filters ===== */
.filter-btn{ display:inline-flex; align-items:center; gap:6px; }
.filter-btn svg{ width:17px; height:17px; }
.fcount{ display:none; min-width:18px; height:18px; border-radius:9px; background:var(--rose); color:#fff; font-size:11px; font-style:normal; font-weight:600; align-items:center; justify-content:center; padding:0 5px; }
.fcount.show{ display:inline-flex; }
.active-filters{ display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 14px; }
.active-filters:empty{ display:none; }
.af-chip{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px 0 12px; border-radius:999px; border:1px solid var(--ink); background:#fff; font-size:13px; }
.af-chip span{ font-size:16px; line-height:1; color:var(--muted); }
.af-chip .sw, .swatch i{ width:14px; height:14px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); display:inline-block; }
.af-clear{ border:none; background:none; font-size:13px; text-decoration:underline; color:var(--ink-2); }
.filter-sheet{ max-width:520px; display:flex; flex-direction:column; padding-bottom:0; }
.filter-body{ overflow-y:auto; padding-bottom:10px; }
.f-sec{ padding:14px 0; border-bottom:1px solid var(--line); }
.f-sec:last-child{ border-bottom:none; }
.f-title{ font-weight:600; font-size:15px; margin-bottom:10px; }
.swatches{ display:flex; flex-wrap:wrap; gap:8px; }
.swatch{ display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 14px 0 10px; border-radius:999px; border:1px solid var(--line); background:#fff; font-size:13.5px; }
.swatch i{ width:18px; height:18px; }
.swatch.active{ border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.filter-foot{ position:sticky; bottom:0; display:grid; grid-template-columns:1fr 1.6fr; gap:10px; padding:12px 0 calc(16px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); }

/* ===== Ratings & reviews ===== */
.card-rating{ font-size:12.5px; margin-top:2px; display:flex; align-items:center; gap:3px; }
.card-rating > span:first-child{ color:#E0A526; }
.stars{ display:inline-flex; gap:1px; font-size:15px; line-height:1; }
.stars i{ font-style:normal; color:#E3DADD; position:relative; }
.stars i.f{ color:#E0A526; }
.stars i.h{ background:linear-gradient(90deg, #E0A526 50%, #E3DADD 50%); -webkit-background-clip:text; background-clip:text; color:transparent; }
[dir="rtl"] .stars i.h{ background:linear-gradient(270deg, #E0A526 50%, #E3DADD 50%); -webkit-background-clip:text; background-clip:text; }
.stars.big{ font-size:20px; }
.pdp-rating{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; font-size:14px; }
.reviews{ padding:30px 0 10px; border-top:1px solid var(--line); margin-top:10px; scroll-margin-top:90px; }
.reviews h2{ font-size:clamp(22px, 5.5vw, 30px); margin-bottom:16px; }
.rv-summary{ display:grid; gap:16px; align-items:center; }
@media (min-width:720px){ .rv-summary{ grid-template-columns:auto 1fr auto; gap:30px; } }
.rv-score{ display:flex; flex-direction:column; gap:4px; }
.rv-score strong{ font-size:40px; line-height:1; font-family:'Playfair Display', serif; }
html[lang="ar"] .rv-score strong{ font-family:'Tajawal', sans-serif; }
.rv-bars{ display:grid; gap:5px; max-width:360px; }
.rv-bar{ display:grid; grid-template-columns:30px 1fr 24px; gap:8px; align-items:center; font-size:12.5px; color:var(--ink-2); }
.rv-bar i{ height:6px; background:var(--blush); border-radius:3px; overflow:hidden; }
.rv-bar b{ display:block; height:100%; background:#E0A526; border-radius:3px; }
.rv-summary .btn{ justify-self:start; }
.rv-photo-strip{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 -20px; padding:0 20px; }
.rv-photo-strip::-webkit-scrollbar{ display:none; }
.rv-photo-strip button, .rv-photos button{ flex:0 0 auto; padding:0; border:none; background:none; border-radius:10px; overflow:hidden; }
.rv-photo-strip img{ width:84px; height:104px; object-fit:cover; }
.rv-list{ margin-top:18px; }
.rv-item{ padding:16px 0; border-top:1px solid var(--line); display:grid; gap:8px; }
.rv-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:14px; }
.rv-meta .muted{ font-size:12.5px; margin-inline-start:auto; }
.rv-item p{ font-size:14.5px; color:var(--ink-2); white-space:pre-line; }
.rv-photos{ display:flex; gap:8px; }
.rv-photos img{ width:72px; height:90px; object-fit:cover; }
.verified-badge{ font-size:11.5px; font-weight:600; color:var(--ok); background:#EAF5EE; padding:2px 8px; border-radius:999px; }
.star-input{ display:flex; gap:6px; margin-bottom:16px; }
.star-input button{ border:none; background:none; font-size:34px; line-height:1; color:#E3DADD; padding:0; transition:transform .1s ease, color .1s ease; }
.star-input button.on{ color:#E0A526; }
.star-input button:active{ transform:scale(.9); }
.rv-upload{ display:flex; gap:8px; margin-bottom:14px; }
.rv-thumb{ position:relative; }
.rv-thumb img{ width:70px; height:88px; object-fit:cover; border-radius:8px; }
.rv-thumb button{ position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:50%; border:none; background:var(--ink); color:#fff; font-size:13px; line-height:1; }
.rv-add{ width:70px; height:88px; border:1.5px dashed #D9B8C4; border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--rose); cursor:pointer; }
.rv-add svg{ width:22px; height:22px; }
.rv-verify{ border:1px solid var(--line); border-radius:var(--r-md); padding:12px 14px; margin-bottom:10px; }
.rv-verify summary{ cursor:pointer; font-size:14px; font-weight:500; }
.rv-thanks{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; padding:10px 0 6px; }
.rv-thanks .btn{ margin-top:8px; }

[dir="rtl"] .rv-item p[dir="auto"]{ text-align:start; }
.card-name, .sheet-name, .search-row .name, .cart-line-name{ unicode-bidi:plaintext; }
/* keep numbers, codes and names in left-to-right order inside Arabic text */
.pay-line strong, .order-no, .coupon-tag, footer.site ul a[href*="wa.me"], .pick-price, .price, .pdp-price{ unicode-bidi:isolate; }
.pay-line strong, footer.site ul a[href*="wa.me"]{ direction:ltr; }
[dir="rtl"] footer.site ul a[href*="wa.me"]{ display:inline-block; }

/* size guide button under the sizes */
.sg-btn{ width:100%; display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; column-gap:12px; align-items:center; text-align:start;
  margin-top:12px; padding:12px 16px; border:1px solid var(--line); border-radius:var(--r-md); background:#fff; }
.sg-btn:hover{ border-color:var(--ink); }
.sg-btn svg{ grid-row:1 / 3; width:26px; height:26px; color:var(--rose); }
.sg-btn span{ font-weight:600; font-size:14.5px; }
.sg-btn small{ grid-column:2; font-size:12.5px; color:var(--muted); }
.sg-btn i{ grid-row:1 / 3; grid-column:3; font-style:normal; font-size:22px; color:var(--muted); }
[dir="ltr"] .sg-btn i{ transform:scaleX(-1); }
.sg-note{ font-size:12.5px; color:var(--rose-deep); background:var(--blush); border-radius:8px; padding:8px 12px; margin-top:12px; }
.sg-table th, .sg-table td{ padding:10px 5px; font-size:13px; }
.sg-table tr th:first-child{ padding-inline:10px; }

/* ===== Performance: skip drawing what's off-screen ===== */
.trust, footer.site, #recentSection, #relatedSection, #bestSection, .reviews{ content-visibility:auto; contain-intrinsic-size:auto 600px; }

/* ===== Photos that move on their own ===== */
@keyframes kb{ from{ transform:scale(1); } to{ transform:scale(1.07); } }
.pdp-track.kb img{ animation:kb 7s ease-in-out infinite alternate; }
.mosaic a:first-child img{ animation:kb 9s ease-in-out infinite alternate; }

/* ===== Flash sale ===== */
.timer{ display:inline-flex; align-items:center; gap:5px; margin-top:4px; font-size:12px; font-weight:600; color:#fff; background:var(--rose-deep); border-radius:999px; padding:3px 9px 3px 7px; direction:ltr; font-variant-numeric:tabular-nums; }
.timer svg{ width:13px; height:13px; }
.timer.big{ font-size:14px; padding:6px 14px 6px 10px; margin-top:10px; }
.timer.big svg{ width:16px; height:16px; }
.flash-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:18px; }
.flash-head h2{ font-size:clamp(24px, 6vw, 38px); }
.flash-clock{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:12px; color:var(--muted); }
[dir="rtl"] .flash-clock{ align-items:flex-start; }
.flash-clock b{ font-size:22px; color:var(--rose-deep); font-variant-numeric:tabular-nums; direction:ltr; }
.flash{ background:linear-gradient(180deg, transparent, var(--blush) 30%, transparent); padding-bottom:30px; }

/* ===== Collections ===== */
.cols-rail{ display:grid; grid-auto-flow:column; grid-auto-columns:62%; gap:12px; overflow-x:auto; scrollbar-width:none; margin:0 -20px; padding:0 20px; scroll-snap-type:x mandatory; scroll-padding-inline:20px; }
.cols-rail::-webkit-scrollbar{ display:none; }
@media (min-width:720px){ .cols-rail{ grid-auto-columns:32%; } }
.col-card{ position:relative; aspect-ratio:4/5; border-radius:var(--r-lg); overflow:hidden; background:var(--blush); scroll-snap-align:start; }
.col-card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.col-card:hover img{ transform:scale(1.04); }
.col-card span{ position:absolute; inset:auto 0 0 0; padding:40px 16px 16px; color:#fff; font-weight:700; font-size:20px; background:linear-gradient(0deg, rgba(0,0,0,.55), transparent); }

/* ===== Back in stock ===== */
.size-chip.soldout{ cursor:pointer; }
.notify-link{ background:none; border:none; padding:0; margin-top:6px; font-size:13px; color:var(--rose-deep); }

/* ===== Track order ===== */
.wrap.narrow{ max-width:640px; }
.track-form{ margin:10px 0 20px; }
.track-card{ border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; }
.track-top{ display:flex; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.track-top div{ display:flex; flex-direction:column; }
.track-top strong{ font-size:16px; }
.stages{ list-style:none; padding:0; margin:0 0 18px; }
.stages li{ position:relative; display:flex; gap:14px; padding:0 0 18px; }
.stages li:before{ content:""; position:absolute; top:22px; bottom:0; inset-inline-start:10px; width:2px; background:var(--line); }
.stages li:last-child:before{ display:none; }
.stages li i{ flex:0 0 22px; height:22px; border-radius:50%; border:2px solid var(--line); background:#fff; position:relative; z-index:1; }
.stages li.done i{ background:var(--ok); border-color:var(--ok); }
.stages li.done i:after{ content:""; position:absolute; left:6px; top:3px; width:5px; height:9px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.stages li.done:before{ background:var(--ok); }
.stages li.now i{ border-color:var(--rose); background:var(--rose); box-shadow:0 0 0 5px rgba(201,87,125,.18); }
.stages li strong{ display:block; font-size:15px; }
.stages li span{ font-size:13px; color:var(--ink-2); }
.stages li:not(.done):not(.now) strong{ color:var(--muted); font-weight:500; }
.track-items{ border-top:1px solid var(--line); padding-top:8px; }

/* ===== Order from SHEIN ===== */
.req-steps{ display:grid; gap:10px; margin:6px 0 22px; }
.req-steps div{ display:flex; align-items:center; gap:12px; background:var(--blush); border-radius:var(--r-md); padding:12px 14px; font-size:14.5px; }
.req-steps b{ flex:0 0 30px; height:30px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; }
