/* ════════════════════════════════════════════════════════════
   Dora Accessories — سیستم طراحی (گرم/طلایی لاکچری، RTL، فارسی)
   ════════════════════════════════════════════════════════════ */

/* ───────────── فونت ایران یکان (FaNum: ارقام فارسی) ───────────── */
@font-face{font-family:"IRANYekan";src:url("../fonts/IRANYekanFaNum-Light.woff2") format("woff2"),url("../fonts/IRANYekanFaNum-Light.woff") format("woff");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("../fonts/IRANYekanFaNum-Regular.woff2") format("woff2"),url("../fonts/IRANYekanFaNum-Regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("../fonts/IRANYekanFaNum-Medium.woff2") format("woff2"),url("../fonts/IRANYekanFaNum-Medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("../fonts/IRANYekanFaNum-Bold.woff2") format("woff2"),url("../fonts/IRANYekanFaNum-Bold.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("../fonts/IRANYekanFaNum-Black.woff2") format("woff2"),url("../fonts/IRANYekanFaNum-Black.woff") format("woff");font-weight:900;font-style:normal;font-display:swap}

/* ───────────── توکن‌ها ───────────── */
:root{
  --bg:#FBF7F0; --surface:#FFFFFF; --surface-2:#F3ECE0; --border:#E6DCCB;
  --text:#3A2E22; --text-muted:#7C6B57;
  --gold:#A9802C; --gold-hover:#8C6A22; --gold-soft:#EFE3C8; --gold-bright:#C9A24B;
  --ink:#1C1714; --ink-2:#262019; --on-dark:#F6EFE3;
  --success:#3B6D3A; --success-soft:#E7F0E6; --error:#B3261E; --error-soft:#F8E7E5;
  --star:#C9A24B;

  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-xl:22px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(58,46,34,.06);
  --sh-2:0 6px 20px rgba(58,46,34,.08);
  --sh-3:0 16px 48px rgba(58,46,34,.14);

  --ease-out:cubic-bezier(.22,1,.36,1);
  --ease-inout:cubic-bezier(.83,0,.17,1);
  --d-fast:.15s; --d-base:.22s; --d-slow:.4s;

  --container:1280px; --gutter:clamp(16px,4vw,40px);
  --header-h:72px;
}

/* ───────────── ریست ───────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:"IRANYekan","Vazirmatn",Tahoma,system-ui,sans-serif;
  background:var(--bg); color:var(--text);
  line-height:1.85; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video{display:block;max-width:100%;height:auto}
img{background:var(--surface-2)}
/* لوگوها شفاف‌اند؛ پس‌زمینهٔ placeholder نباید روی آن‌ها بیفتد */
.brand-mark img,.hero-logo,.mobile-menu__head img,.auth-logo,.login-card .logo img,.admin-brand img,.footer-social img,#intro .intro-mark{background:none}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea,select{font-family:inherit;font-size:1rem}
ul{list-style:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:var(--r-sm)}
::selection{background:var(--gold-soft);color:var(--text)}
.num{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* ───────────── چیدمان ───────────── */
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:clamp(48px,8vw,96px)}
.section--tight{padding-block:clamp(32px,5vw,56px)}
.center{text-align:center}

/* سرعنوان بخش‌ها */
.eyebrow{font-size:.8rem;font-weight:500;letter-spacing:.18em;color:var(--gold);text-transform:none;margin-bottom:.6rem}
.section-title{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:700;line-height:1.25}
.section-head{margin-bottom:clamp(28px,4vw,44px)}
.section-head .lead{color:var(--text-muted);margin-top:.5rem;max-width:46ch;margin-inline:auto}

/* ───────────── دکمه‌ها ───────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-weight:500;font-size:.95rem;letter-spacing:.02em;padding:.85rem 1.75rem;
  border-radius:var(--r-md);transition:transform var(--d-base) var(--ease-out),background var(--d-base),box-shadow var(--d-base),color var(--d-base);
  white-space:nowrap;min-height:44px}
.btn--gold{background:var(--gold);color:#fff}
.btn--gold:hover{background:var(--gold-hover);transform:translateY(-2px);box-shadow:var(--sh-2)}
.btn--gold:active{transform:translateY(0)}
.btn--outline{border:1px solid var(--text);color:var(--text);background:transparent}
.btn--outline:hover{background:var(--surface-2)}
.btn--light{background:var(--surface);color:var(--text);box-shadow:var(--sh-1)}
.btn--light:hover{box-shadow:var(--sh-2);transform:translateY(-2px)}
.btn--ghost-dark{border:1px solid rgba(246,239,227,.4);color:var(--on-dark)}
.btn--ghost-dark:hover{background:rgba(246,239,227,.1)}
.btn--block{display:flex;width:100%}
.btn--lg{padding:1rem 2.25rem;font-size:1.05rem}
.btn[disabled],.btn.is-disabled{background:var(--border);color:var(--text-muted);cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none}
.btn .spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-pill);color:var(--text);transition:background var(--d-base),color var(--d-base);position:relative}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:22px;height:22px}

/* بَج */
.badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.72rem;font-weight:500;padding:.25rem .6rem;border-radius:var(--r-pill)}
.badge--sale{background:var(--gold);color:#fff}
.badge--new{background:var(--ink);color:var(--on-dark)}
.badge--out{background:var(--surface-2);color:var(--text-muted)}

/* ───────────── نوار اعلان ───────────── */
.announce{background:var(--ink);color:var(--on-dark);font-size:.82rem;text-align:center;padding:.55rem 1rem;position:relative}
.announce a{color:var(--gold-bright)}
.announce .sep{opacity:.4;margin-inline:.6rem}

/* ───────────── هدر ───────────── */
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,247,240,.82);backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid var(--border);transition:box-shadow var(--d-base)}
.site-header.is-scrolled{box-shadow:var(--sh-1)}
.header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:var(--header-h);gap:1rem}
.header-nav{display:flex;gap:1.6rem;justify-self:center}
.header-nav a{font-size:.95rem;font-weight:500;color:var(--text);position:relative;padding-block:.4rem}
.header-nav a::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--gold);transform:scaleX(0);transform-origin:center;transition:transform var(--d-base) var(--ease-out)}
.header-nav a:hover::after,.header-nav a[aria-current="page"]::after{transform:scaleX(1)}
.header-actions{display:flex;align-items:center;gap:.25rem;justify-self:end}
.brand-mark{justify-self:center;display:flex;align-items:center;gap:.5rem}
.brand-mark svg{height:38px;width:auto}
.cart-count{position:absolute;top:4px;inset-inline-start:4px;background:var(--gold);color:#fff;font-size:.62rem;font-weight:700;min-width:17px;height:17px;border-radius:var(--r-pill);display:flex;align-items:center;justify-content:center;padding:0 4px}
.menu-toggle{display:none}

/* ───────────── هیرو ───────────── */
.hero{position:relative;background:linear-gradient(135deg,var(--surface-2),var(--bg));overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:clamp(24px,4.5vw,64px);min-height:clamp(460px,68vh,640px);padding-block:clamp(40px,6vw,72px)}
.hero-copy{max-width:40ch}
.hero h1{font-size:clamp(2.4rem,5.5vw,4rem);font-weight:900;line-height:1.12;letter-spacing:-.01em}
.hero h1 .gold{color:var(--gold)}
.hero .sub{color:var(--text-muted);font-size:clamp(1rem,1.4vw,1.15rem);margin-block:1.25rem 2rem;line-height:1.9}
.hero-cta{display:flex;gap:.9rem;flex-wrap:wrap}
.hero-visual{position:relative;aspect-ratio:4/5;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-3)}
.hero-visual img{width:100%;height:100%;object-fit:cover}
.hero-visual .glow{position:absolute;inset:0;background:radial-gradient(120% 80% at 70% 10%,transparent,rgba(28,23,20,.22));pointer-events:none}
.hero-float{position:absolute;background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-2);padding:.7rem 1rem;display:flex;align-items:center;gap:.6rem;font-size:.82rem;font-weight:500}
.hero-float .dot{width:9px;height:9px;border-radius:50%;background:var(--success)}
.hero-float--1{bottom:1.2rem;inset-inline-end:-.6rem}
.hero-float--2{top:1.2rem;inset-inline-start:-.6rem}

/* ───────────── نوار اعتماد کوچک ───────────── */
.trustbar{background:var(--ink);color:var(--on-dark)}
.trustbar .row{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(1rem,4vw,3rem);padding-block:1.1rem;font-size:.88rem}
.trustbar .item{display:flex;align-items:center;gap:.55rem}
.trustbar svg{width:22px;height:22px;color:var(--gold-bright)}

/* ───────────── گرید دسته‌ها ───────────── */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(12px,1.6vw,20px)}
.cat-card{position:relative;display:block;aspect-ratio:4/5;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-1);isolation:isolate}
.cat-card img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease-out)}
.cat-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(28,23,20,.78) 0%,rgba(28,23,20,.15) 45%,transparent 70%);z-index:1}
.cat-card:hover img{transform:scale(1.06)}
.cat-card .label{position:absolute;inset-inline:0;bottom:0;z-index:2;padding:1rem;color:#fff;text-align:center}
.cat-card .label .name{font-weight:700;font-size:1.05rem}
.cat-card .label .go{font-size:.78rem;opacity:.85;display:inline-flex;align-items:center;gap:.3rem;margin-top:.2rem}
.cat-card .label .go svg{width:14px;height:14px;transition:transform var(--d-base)}
.cat-card:hover .label .go svg{transform:translateX(-4px)}

/* ───────────── کارت محصول ───────────── */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.8vw,24px)}
.prod-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform var(--d-base) var(--ease-out),box-shadow var(--d-base)}
.prod-card:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.prod-media{position:relative;aspect-ratio:4/5;overflow:hidden;display:block}
.prod-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease-out)}
.prod-card:hover .prod-media img{transform:scale(1.05)}
.prod-badges{position:absolute;top:.6rem;inset-inline-end:.6rem;display:flex;flex-direction:column;gap:.35rem;z-index:2}
.prod-fav{position:absolute;top:.6rem;inset-inline-start:.6rem;z-index:2;width:36px;height:36px;background:rgba(255,255,255,.9);border-radius:var(--r-pill);display:flex;align-items:center;justify-content:center;box-shadow:var(--sh-1);opacity:0;transform:translateY(-6px);transition:opacity var(--d-base),transform var(--d-base)}
.prod-card:hover .prod-fav{opacity:1;transform:translateY(0)}
.prod-fav svg{width:18px;height:18px}
.prod-body{padding:.9rem 1rem 1.1rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.prod-name{font-size:1rem;font-weight:500;line-height:1.5;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em}
.prod-rating{display:flex;align-items:center;gap:.3rem;font-size:.8rem;color:var(--text-muted)}
.prod-rating .stars{display:inline-flex;color:var(--star)}
.prod-rating .stars svg{width:14px;height:14px}
.prod-price{display:flex;align-items:baseline;gap:.5rem;margin-top:auto}
.prod-price .now{font-size:1.1rem;font-weight:700;color:var(--text)}
.prod-price .was{font-size:.85rem;color:var(--text-muted);text-decoration:line-through}
.prod-card .btn{margin-top:.4rem}
.prod-card.is-out{opacity:.85}
.prod-card.is-out .prod-media img{filter:grayscale(.4)}

/* ───────────── بخش اصالت/درباره ───────────── */
.craft{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,64px);align-items:center}
.craft-media{aspect-ratio:5/4;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-3)}
.craft-media img{width:100%;height:100%;object-fit:cover}
.craft h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;line-height:1.3}
.craft p{color:var(--text-muted);margin-top:1rem}
.craft .badges{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.8rem}
.craft .badge-trust{display:flex;align-items:center;gap:.6rem;font-weight:500;font-size:.9rem}
.craft .badge-trust .ic{width:42px;height:42px;border-radius:var(--r-pill);background:var(--gold-soft);color:var(--gold);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.craft .badge-trust svg{width:22px;height:22px}

/* ───────────── خبرنامه ───────────── */
.newsletter{background:var(--surface-2);border-radius:var(--r-xl);padding:clamp(28px,5vw,56px);text-align:center}
.newsletter h2{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:700}
.newsletter p{color:var(--text-muted);margin-top:.5rem}
.newsletter form{display:flex;gap:.6rem;max-width:440px;margin:1.6rem auto 0}
.newsletter input{flex:1;padding:.85rem 1.1rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);min-height:48px}
.newsletter input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}

/* ───────────── فوتر ───────────── */
.site-footer{background:var(--ink);color:var(--on-dark);margin-top:clamp(48px,8vw,96px)}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem;padding-block:clamp(40px,6vw,64px)}
.footer-col h4{font-size:.95rem;font-weight:700;margin-bottom:1.1rem;color:#fff}
.footer-col a,.footer-col p{color:rgba(246,239,227,.7);font-size:.9rem;display:block;margin-bottom:.6rem;transition:color var(--d-base)}
.footer-col a:hover{color:var(--gold-bright)}
.footer-brand .logo{font-weight:900;font-size:1.3rem;color:#fff;letter-spacing:.04em;direction:ltr}
.footer-brand .desc{margin-top:1rem;line-height:1.9}
.footer-social{display:flex;gap:.6rem;margin-top:1.1rem}
.footer-social a{width:40px;height:40px;border:1px solid rgba(246,239,227,.25);border-radius:var(--r-pill);display:flex;align-items:center;justify-content:center;margin:0}
.footer-social svg{width:20px;height:20px}
.footer-enamad{background:rgba(246,239,227,.06);border:1px dashed rgba(246,239,227,.25);border-radius:var(--r-md);padding:.8rem;text-align:center;font-size:.78rem;color:rgba(246,239,227,.6);margin-top:1rem}
.footer-bottom{border-top:1px solid rgba(246,239,227,.12);padding-block:1.2rem;text-align:center;font-size:.82rem;color:rgba(246,239,227,.6)}

/* ───────────── breadcrumb ───────────── */
.breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:var(--text-muted);flex-wrap:wrap;padding-block:1rem}
.breadcrumb a:hover{color:var(--gold)}
.breadcrumb .sep{opacity:.5}

/* ───────────── حالت‌های خالی ───────────── */
.empty-state{text-align:center;padding:clamp(40px,8vw,80px) 1rem;color:var(--text-muted)}
.empty-state svg{width:64px;height:64px;color:var(--border);margin-inline:auto;margin-bottom:1rem}
.empty-state h3{color:var(--text);font-size:1.2rem;margin-bottom:.5rem}

/* ───────────── reveal (انیمیشن ورود) ───────────── */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s var(--ease-out),transform .7s var(--ease-out)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* ───────────── ریسپانسیو ───────────── */
@media (max-width:1024px){
  .footer-top{grid-template-columns:1fr 1fr}
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .prod-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:768px){
  :root{--header-h:60px}
  .header-nav{display:none}
  .menu-toggle{display:inline-flex;justify-self:start}
  .header-inner{grid-template-columns:1fr auto 1fr}
  .brand-mark{justify-self:center}
  .header-actions{justify-self:end}
  .home--brand .hero--brand{padding-top:calc(var(--header-h) + 104px)}
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero-copy{max-width:none;margin-inline:auto}
  .hero-cta{justify-content:center}
  .hero-visual{max-width:420px;margin-inline:auto;order:-1}
  .hero-float{display:none}
  .craft{grid-template-columns:1fr}
  .craft-media{order:-1}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .prod-grid{grid-template-columns:repeat(2,1fr)}
  .footer-top{grid-template-columns:1fr 1fr;gap:1.4rem 1.2rem}
  .footer-brand{grid-column:1 / -1}
  .newsletter form{flex-direction:column}
}
@media (max-width:420px){
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .prod-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .prod-name{font-size:.9rem}
}

/* ───────────── skip link ───────────── */
.skip-link{position:fixed;top:-100px;inset-inline-start:1rem;z-index:200;background:var(--ink);color:#fff;padding:.7rem 1.2rem;border-radius:var(--r-md);transition:top var(--d-base)}
.skip-link:focus{top:1rem}
[x-cloak]{display:none!important}

/* ───────────── اینترو ───────────── */
html.intro-active{overflow:hidden}
#intro{position:fixed;inset:0;z-index:300;background:var(--ink);display:flex;align-items:center;justify-content:center;overflow:hidden}
html.intro-done #intro{display:none}
#intro .intro-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;filter:brightness(.55) saturate(.9)}
#intro .intro-logo{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:.4rem}
#intro .intro-mark{width:clamp(150px,34vw,230px);height:auto;opacity:0;
  -webkit-mask-image:linear-gradient(to top,#000 0 100%);mask-image:linear-gradient(to top,#000 0 100%)}
#intro .intro-word{font-size:clamp(1.1rem,3.4vw,1.7rem);font-weight:300;letter-spacing:.42em;color:var(--on-dark);opacity:0;transform:translateY(10px);direction:ltr;padding-inline-start:.42em}
/* اجرای انیمیشن */
#intro.run .intro-bg{animation:introBg .5s var(--ease-out) forwards}
#intro.run .intro-mark{animation:introMaskIn .9s var(--ease-out) .35s forwards}
#intro.run .intro-word{animation:introWord .6s var(--ease-out) 1.4s forwards}
#intro.lift{animation:introLift .85s var(--ease-inout) forwards}
@keyframes introBg{to{opacity:1}}
@keyframes introMaskIn{
  0%{opacity:0;-webkit-mask-position:0 120%;mask-position:0 120%;-webkit-mask-size:100% 0;mask-size:100% 0;transform:scale(.96)}
  40%{opacity:1}
  100%{opacity:1;-webkit-mask-size:100% 100%;mask-size:100% 100%;transform:scale(1)}
}
@keyframes introWord{to{opacity:.92;transform:translateY(0)}}
@keyframes introLift{to{transform:translateY(-100%);opacity:0}}
@media (prefers-reduced-motion:reduce){
  #intro.run .intro-bg{animation:none;opacity:1}
  #intro.run .intro-mark{animation:none;opacity:1;-webkit-mask-image:none;mask-image:none}
  #intro.run .intro-word{animation:none;opacity:.9;transform:none}
  #intro.lift{animation:introFade .4s forwards}
  @keyframes introFade{to{opacity:0}}
}

/* ───────────── toast ───────────── */
.toast{position:fixed;bottom:1.5rem;inset-inline:0;margin-inline:auto;width:max-content;max-width:90vw;
  background:var(--ink);color:var(--on-dark);padding:.85rem 1.4rem;border-radius:var(--r-pill);
  box-shadow:var(--sh-3);font-size:.9rem;font-weight:500;z-index:250;
  opacity:0;transform:translateY(20px);pointer-events:none;transition:opacity var(--d-base),transform var(--d-base)}
.toast.show{opacity:1;transform:translateY(0)}
.toast.success{border-inline-start:3px solid var(--success)}
.toast.error{background:#5a1a16;border-inline-start:3px solid #e57}
.btn.is-loading{color:transparent!important;position:relative;pointer-events:none}
.btn.is-loading::after{content:"";position:absolute;width:18px;height:18px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
#cartBtn.bump{animation:bump .35s var(--ease-out)}
@keyframes bump{0%,100%{transform:none}40%{transform:scale(1.25)}}

/* ───────────── منوی موبایل ───────────── */
.mobile-menu{position:fixed;inset:0;z-index:140}
.mobile-menu__overlay{position:absolute;inset:0;background:rgba(28,23,20,.5);backdrop-filter:blur(2px)}
.mobile-menu__panel{position:absolute;inset-block:0;inset-inline-start:0;width:min(82vw,330px);background:var(--surface);box-shadow:var(--sh-3);padding:1.2rem;display:flex;flex-direction:column;overflow-y:auto}
/* رنگ متن منوی موبایل همیشه تیره و خوانا، حتی روی صفحهٔ خانه */
.home .mobile-menu__panel nav a,.mobile-menu__panel nav a{color:var(--text)}
.mobile-menu__panel .icon-btn{color:var(--text)}
.mobile-menu__head{display:flex;align-items:center;justify-content:space-between;padding-bottom:1rem;border-bottom:1px solid var(--border);margin-bottom:1rem}
.mobile-menu__panel nav a{display:block;padding:.9rem .4rem;font-weight:500;border-bottom:1px solid var(--border)}
.foot-ic{width:16px;height:16px;display:inline-block;vertical-align:-3px}

/* ───────────── صفحات داخلی مشترک ───────────── */
.page-h1{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;margin-bottom:1.2rem}
.muted{color:var(--text-muted)}
.alert{padding:.9rem 1.2rem;border-radius:var(--r-md);font-size:.92rem;margin-bottom:1rem}
.alert--error{background:var(--error-soft);color:var(--error);border:1px solid #e8c4c0}
.alert--success{background:var(--success-soft);color:var(--success)}

/* ───────────── بنر فروشگاه ───────────── */
.shop-hero{background:var(--surface-2);background-size:cover;background-position:center;color:var(--text);padding-block:clamp(28px,5vw,52px)}
.shop-hero[style*="url"]{color:#fff}
.shop-hero[style*="url"] .breadcrumb,.shop-hero[style*="url"] .breadcrumb a{color:rgba(255,255,255,.85)}
.shop-title{font-size:clamp(1.8rem,3.4vw,2.6rem);font-weight:800}
.shop-desc{margin-top:.5rem;max-width:60ch;opacity:.9}

/* ───────────── چیدمان فروشگاه ───────────── */
.shop-layout{display:grid;grid-template-columns:260px 1fr;gap:2rem;align-items:start}
.shop-filters{position:sticky;top:calc(var(--header-h) + 16px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.2rem}
.filters-head{display:none;align-items:center;justify-content:space-between;margin-bottom:1rem}
.filter-group{padding-block:1rem;border-bottom:1px solid var(--border)}
.filter-group:first-of-type{padding-top:0}
.filter-group h4{font-size:.95rem;font-weight:700;margin-bottom:.8rem}
.filter-cats li a{display:block;padding:.4rem .2rem;color:var(--text-muted);font-size:.9rem;border-radius:var(--r-sm)}
.filter-cats li a:hover,.filter-cats li a.active{color:var(--gold);font-weight:500}
.price-range{display:flex;align-items:center;gap:.5rem}
.price-range input{width:100%;padding:.5rem;border:1px solid var(--border);border-radius:var(--r-sm);text-align:center}
.filter-check{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;font-size:.9rem;cursor:pointer}
.filter-check input{accent-color:var(--gold);width:17px;height:17px}
.filters-form .btn{margin-top:1rem}
.filters-reset{display:block;text-align:center;margin-top:.8rem;font-size:.85rem;color:var(--text-muted)}
.filters-reset:hover{color:var(--error)}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.4rem;flex-wrap:wrap}
.result-count{font-size:.9rem;color:var(--text-muted)}
.filters-toggle{display:none;padding:.5rem 1rem;font-size:.85rem;gap:.4rem}
.filters-toggle svg{width:18px;height:18px}
.sort-form{display:flex;align-items:center;gap:.5rem;margin-inline-start:auto;font-size:.88rem}
.sort-form select{padding:.5rem .8rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);cursor:pointer}

/* ───────────── صفحه‌بندی ───────────── */
.pagination{display:flex;justify-content:center;gap:.4rem;margin-top:2.5rem}
.pagination a{min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:var(--r-md);font-weight:500;transition:all var(--d-base)}
.pagination a:hover{border-color:var(--gold);color:var(--gold)}
.pagination a.active{background:var(--gold);color:#fff;border-color:var(--gold)}

/* ───────────── صفحهٔ محصول (PDP) ───────────── */
.pdp{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:start;margin-top:1rem}
.pdp-gallery{position:sticky;top:calc(var(--header-h) + 16px)}
.pdp-main{position:relative;aspect-ratio:4/5;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-2);background:var(--surface-2)}
.pdp-main img{width:100%;height:100%;object-fit:cover}
.pdp-badge{position:absolute;top:1rem;inset-inline-end:1rem}
.pdp-thumbs{display:flex;gap:.6rem;margin-top:.8rem;flex-wrap:wrap}
.pdp-thumb{width:72px;aspect-ratio:4/5;border-radius:var(--r-md);overflow:hidden;border:2px solid transparent;padding:0}
.pdp-thumb.active{border-color:var(--gold)}
.pdp-thumb img{width:100%;height:100%;object-fit:cover}
.pdp-name{font-size:clamp(1.5rem,2.6vw,2rem);font-weight:700;line-height:1.4}
.pdp-rating{display:flex;align-items:center;gap:.4rem;margin:.8rem 0;color:var(--text-muted);font-size:.9rem}
.pdp-rating .stars svg{width:16px;height:16px}
.pdp-short{color:var(--text-muted);margin-bottom:1.2rem}
.pdp-price{display:flex;align-items:baseline;gap:.7rem;padding:1rem 0;border-block:1px solid var(--border)}
.pdp-price .now{font-size:1.5rem;font-weight:800}
.pdp-price .was{font-size:1rem;color:var(--text-muted);text-decoration:line-through}
.pdp-variants{margin-top:1.2rem}
.pdp-variants h4{font-size:.95rem;margin-bottom:.6rem}
.variant-chips{display:flex;gap:.5rem;flex-wrap:wrap}
.variant-chip{padding:.5rem 1rem;border:1px solid var(--border);border-radius:var(--r-pill);font-size:.9rem;transition:all var(--d-base)}
.variant-chip.active{border-color:var(--gold);background:var(--gold-soft);color:var(--gold)}
.variant-chip.is-out{opacity:.4;text-decoration:line-through;cursor:not-allowed}
.pdp-buy{display:flex;gap:.8rem;margin-top:1.5rem;align-items:stretch}
.qty-stepper{display:flex;align-items:center;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.qty-stepper button{width:46px;height:100%;min-height:48px;display:flex;align-items:center;justify-content:center;transition:background var(--d-base)}
.qty-stepper button:hover{background:var(--surface-2)}
.qty-stepper button svg{width:16px;height:16px}
.qty-stepper span{min-width:42px;text-align:center;font-weight:700}
.qty-stepper--sm button{min-height:38px;width:36px}
.pdp-add{flex:1}
.pdp-out{margin-top:1.5rem;padding:1rem;background:var(--surface-2);border-radius:var(--r-md);color:var(--text-muted);text-align:center}
.pdp-trust{margin-top:1.5rem;display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.pdp-trust li{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-muted)}
.pdp-trust svg{width:18px;height:18px;color:var(--gold);flex-shrink:0}
.pdp-accordion{margin-top:1.5rem;border-top:1px solid var(--border)}
.acc-head{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem 0;font-weight:700;font-size:1rem}
.acc-head svg{width:18px;height:18px;transition:transform var(--d-base)}
.acc-head[aria-expanded="true"] svg{transform:rotate(180deg)}
.acc-body{padding-bottom:1rem;color:var(--text-muted);line-height:1.9}
.related{margin-top:clamp(40px,6vw,72px)}

/* ───────────── سبد خرید ───────────── */
.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start;margin-top:1.5rem}
.cart-item{display:flex;gap:1rem;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1rem;margin-bottom:1rem}
.cart-item__media img{width:72px;aspect-ratio:4/5;object-fit:cover;border-radius:var(--r-md)}
.cart-item__body{flex:1;min-width:0}
.cart-item__name{font-weight:500;line-height:1.5}
.cart-item__variant{font-size:.82rem;color:var(--text-muted)}
.cart-item__issue{font-size:.8rem;color:var(--error)}
.cart-item__price{font-weight:700;margin-top:.3rem}
.cart-item__actions{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.cart-summary{position:sticky;top:calc(var(--header-h) + 16px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.4rem}
.cart-summary h3{font-size:1.1rem;margin-bottom:1rem}
.sum-row{display:flex;justify-content:space-between;align-items:center;padding:.55rem 0;font-size:.92rem;color:var(--text-muted)}
.sum-row .free{color:var(--success);font-weight:500}
.sum-total{border-top:1px solid var(--border);margin-top:.5rem;padding-top:1rem;font-size:1.05rem;font-weight:700;color:var(--text)}
.free-hint{font-size:.82rem;color:var(--gold);background:var(--gold-soft);padding:.5rem .8rem;border-radius:var(--r-sm);margin:.5rem 0}
.free-ship-badge{display:flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;color:var(--success);background:var(--success-soft);border:1px solid #c3ddc2;border-radius:var(--r-sm);padding:.45rem .8rem;margin:.5rem 0}
.cart-summary .btn{margin-top:1rem}
.cart-continue{display:block;text-align:center;margin-top:.8rem;font-size:.88rem;color:var(--text-muted)}

/* ───────────── چک‌اوت ───────────── */
.checkout-layout{display:grid;grid-template-columns:1fr 380px;gap:2rem;align-items:start;margin-top:1.5rem}
.form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.4rem;margin-bottom:1.5rem}
.form-card h3{font-size:1.1rem;margin-bottom:1.2rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field--full{grid-column:1/-1}
.field label{font-size:.88rem;font-weight:500}
.field input,.field textarea,.field select{padding:.75rem .9rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);transition:border-color var(--d-base),box-shadow var(--d-base)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.field .err{font-size:.8rem;color:var(--error)}
.pay-method{display:flex;align-items:center;gap:.7rem;padding:1rem;border:1px solid var(--gold);background:var(--gold-soft);border-radius:var(--r-md);font-weight:500}
.pay-method input{accent-color:var(--gold)}
.pay-method svg{width:20px;height:20px;color:var(--gold)}
.checkout-summary{position:sticky;top:calc(var(--header-h) + 16px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.4rem}
.checkout-summary h3{font-size:1.1rem;margin-bottom:1rem}
.co-items{margin-bottom:1rem;max-height:280px;overflow:auto}
.co-item{display:flex;align-items:center;gap:.7rem;padding:.5rem 0;border-bottom:1px solid var(--border)}
.co-item img{width:40px;aspect-ratio:4/5;object-fit:cover;border-radius:var(--r-sm)}
.co-item__info{flex:1;min-width:0;font-size:.85rem}
.co-item__info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.co-item__info small{color:var(--text-muted)}
.co-item__price{font-weight:600;font-size:.85rem}
.checkout-summary .btn{margin-top:1rem}
.co-terms{margin:.7rem 0 0;font-size:.8rem;line-height:1.8;color:var(--text-muted);text-align:center}
.co-terms a{color:var(--gold);font-weight:600;text-decoration:underline}
.co-trust{display:flex;gap:1rem;justify-content:center;margin-top:1rem;font-size:.8rem;color:var(--text-muted)}
.co-trust li{display:flex;align-items:center;gap:.3rem}
.co-trust svg{width:15px;height:15px;color:var(--gold)}

/* ───────────── نتیجهٔ سفارش ───────────── */
.result-wrap{max-width:600px;margin-inline:auto;text-align:center}
.result-icon{width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem}
.result-icon svg{width:42px;height:42px;stroke-width:2.5}
.result-icon--ok{background:var(--success-soft);color:var(--success)}
.result-icon--fail{background:var(--error-soft);color:var(--error)}
.result-wrap h1{font-size:1.6rem;font-weight:700}
.result-sub{color:var(--text-muted);margin-top:.5rem}
.result-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.4rem;margin:1.5rem 0;text-align:start}
.result-card hr{border:none;border-top:1px solid var(--border);margin:.8rem 0}
.result-actions{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

/* ───────────── timeline ───────────── */
.timeline{position:relative;padding-inline-start:1.2rem}
.timeline li{position:relative;padding-bottom:1.2rem}
.timeline li::before{content:"";position:absolute;inset-inline-start:-1.2rem;top:6px;bottom:-6px;width:2px;background:var(--border)}
.timeline li:last-child::before{display:none}
.tl-dot{position:absolute;inset-inline-start:calc(-1.2rem - 4px);top:4px;width:11px;height:11px;border-radius:50%;background:var(--gold);border:2px solid var(--bg)}
.timeline strong{display:block;font-size:.92rem}
.timeline small{color:var(--text-muted);font-size:.8rem}

/* ───────────── جستجو / صفحات محتوا ───────────── */
.search-head{max-width:640px;margin-inline:auto;text-align:center}
.search-head .page-h1{margin-bottom:1rem}
.search-bar{position:relative;display:flex;align-items:center;gap:.6rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-pill);padding:.4rem .4rem .4rem 1.2rem;max-width:640px;margin:1rem auto 2rem}
.search-bar svg{width:22px;height:22px;color:var(--text-muted)}
.search-bar input{flex:1;border:none;background:none;padding:.6rem 0;outline:none}
/* پیشنهادهای جستجوی زنده */
.search-suggest{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:60;list-style:none;margin:0;padding:.35rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--sh-2);max-height:60vh;overflow-y:auto;text-align:start}
.search-suggest[hidden]{display:none}
.search-suggest li{margin:0}
.search-suggest a{display:flex;align-items:center;gap:.75rem;padding:.5rem .65rem;border-radius:var(--r-md);transition:background var(--d-base)}
.search-suggest a:hover{background:var(--surface-2)}
.search-suggest .ss-img{width:44px;height:54px;flex-shrink:0;object-fit:cover;border-radius:var(--r-sm);background:var(--surface-2)}
.search-suggest .ss-name{flex:1;min-width:0;font-size:.92rem;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-suggest .ss-price{flex-shrink:0;font-size:.85rem;font-weight:600;color:var(--gold)}
.track-form .btn{margin-top:1rem}
/* صفحات محتوایی (درباره/تماس) */
.page-wrap{max-width:760px}
.page-head{margin-bottom:1.4rem}
.page-head .page-h1{margin-bottom:0;position:relative;padding-bottom:.7rem}
.page-head .page-h1::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:54px;height:3px;border-radius:2px;background:var(--gold)}
.page-subhead{font-size:1.15rem;font-weight:700;margin:2.4rem 0 .2rem}
.page-content{font-size:1.02rem;line-height:2;color:var(--text-muted)}
.page-content>:first-child{margin-top:0}
.page-content p{margin-bottom:1.05rem}
.page-content p:last-child{margin-bottom:0}
.page-content h3{font-size:1.12rem;font-weight:700;color:var(--text);margin:1.8rem 0 .55rem}
.page-content h3:first-child{margin-top:0}
.page-content strong{color:var(--text);font-weight:700}
.page-content ul{margin:1rem 0;padding-inline-start:1.2rem;list-style:disc}
.page-content li{margin-bottom:.5rem}
.page-content a{color:var(--gold);font-weight:600;text-underline-offset:3px}
.page-content a:hover{text-decoration:underline}
.page-content .num{font-weight:600}
.page-contact{margin:1rem 0;list-style:none;padding:0}
.page-contact li{padding:.45rem 0;border-bottom:1px dashed var(--border)}
.page-contact li:last-child{border-bottom:none}

/* ───────────── ریسپانسیو صفحات ───────────── */
@media (max-width:980px){
  .shop-layout{grid-template-columns:1fr}
  .shop-filters{position:fixed;inset-block:0;inset-inline-start:0;inset-inline-end:auto;width:min(86vw,340px);z-index:130;border-radius:0;transform:translateX(110%);transition:transform var(--d-base);overflow:auto}
  .shop-filters.is-open{transform:none}
  .filters-head{display:flex}
  .filters-toggle{display:inline-flex}
  .pdp{grid-template-columns:1fr}
  .pdp-gallery{position:static}
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .cart-summary,.checkout-summary{position:static}
}
@media (max-width:520px){
  .form-grid{grid-template-columns:1fr}
  .pdp-trust{grid-template-columns:1fr}
}

/* ───────────── اصلاحات نهایی ───────────── */
.btn svg{width:20px;height:20px;flex-shrink:0}
.hero h1{font-size:clamp(2.2rem,4.6vw,3.4rem)}
.hero-copy{max-width:34ch}
.pdp-add{font-size:1rem}

/* ───────────── واریانت در صفحهٔ محصول ───────────── */
.variant-chip{display:inline-flex;align-items:center;gap:.3rem}
.variant-chip small{font-size:.7rem;opacity:.7}
.vhint{font-size:.8rem;color:var(--error);font-weight:400}
.prod-price .from{font-size:.8rem;color:var(--text-muted);font-weight:400}

/* ───────────── ورود / حساب کاربری ───────────── */
.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:2.2rem;text-align:center;box-shadow:var(--sh-1)}
.auth-card .auth-logo{height:52px;margin:0 auto 1rem}
.auth-card h1{font-size:1.3rem;margin-bottom:.3rem}
.auth-card form{text-align:start;margin-top:1.4rem}
.auth-card .field{margin-bottom:1rem}
.auth-card .field label{display:block;font-size:.88rem;font-weight:500;margin-bottom:.4rem}
.auth-card .field input{width:100%;padding:.8rem .9rem;border:1px solid var(--border);border-radius:var(--r-md)}
.auth-card .field input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.link-btn{background:none;color:var(--gold);font-size:.88rem;width:100%;text-align:center}
.auth-alt{margin-top:1.2rem;font-size:.85rem}.auth-alt a{color:var(--text-muted)}
.account-grid{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;align-items:start;margin-top:1.5rem}
.order-row{display:grid;grid-template-columns:1fr auto auto auto;gap:1rem;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1rem;margin-bottom:.8rem}
@media (max-width:768px){.account-grid{grid-template-columns:1fr}.order-row{grid-template-columns:1fr 1fr;gap:.6rem}}

/* ───────────── هیرو برند (لوگو روی پس‌زمینهٔ تیره) ───────────── */
.hero--brand{position:relative;min-height:clamp(540px,88vh,820px);display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;background:var(--ink)}
.hero--brand .hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.5) saturate(.85);transform:scale(1.05);animation:heroZoom 18s ease-in-out infinite alternate}
@keyframes heroZoom{to{transform:scale(1.14)}}
@media (prefers-reduced-motion:reduce){.hero--brand .hero-bg{animation:none;transform:none}}
.hero--brand .hero-overlay{position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 30%,rgba(28,23,20,.35),rgba(28,23,20,.82))}
.hero-brand-inner{position:relative;z-index:2;color:var(--on-dark);padding-block:clamp(48px,10vh,90px);display:flex;flex-direction:column;align-items:center}
.hero-logo{width:clamp(120px,16vw,180px);height:auto;filter:drop-shadow(0 8px 30px rgba(0,0,0,.4));animation:heroLogoIn 1s var(--ease-out) both}
@keyframes heroLogoIn{from{opacity:0;transform:translateY(16px) scale(.94)}to{opacity:1;transform:none}}
.hero-word{font-family:Tahoma,sans-serif;letter-spacing:.4em;font-size:clamp(.85rem,2.4vw,1.2rem);color:var(--gold-bright);font-weight:300;direction:ltr;padding-inline-start:.4em;margin-top:.4rem;opacity:0;animation:fadeUp .8s var(--ease-out) .5s both}
.hero--brand h1{font-size:clamp(2rem,4.6vw,3.4rem);font-weight:900;line-height:1.18;margin-top:1.6rem;max-width:18ch;color:#fff;opacity:0;animation:fadeUp .8s var(--ease-out) .7s both}
.hero--brand h1 .gold{color:var(--gold-bright)}
.hero--brand .sub{color:rgba(246,239,227,.82);font-size:clamp(.95rem,1.4vw,1.15rem);margin-top:1.1rem;max-width:46ch;line-height:1.9;opacity:0;animation:fadeUp .8s var(--ease-out) .9s both}
.hero--brand .hero-cta{margin-top:2rem;display:flex;gap:.9rem;flex-wrap:wrap;justify-content:center;opacity:0;animation:fadeUp .8s var(--ease-out) 1.1s both}
.hero-badges{display:flex;gap:clamp(1rem,3vw,2.2rem);flex-wrap:wrap;justify-content:center;margin-top:2.4rem;font-size:.85rem;color:rgba(246,239,227,.78);opacity:0;animation:fadeUp .8s var(--ease-out) 1.3s both}
.hero-badges span{display:inline-flex;align-items:center;gap:.4rem}
.hero-badges svg{width:18px;height:18px;color:var(--gold-bright)}
.hero-scroll{position:absolute;bottom:1.4rem;inset-inline:0;margin-inline:auto;width:42px;height:42px;z-index:2;display:flex;align-items:center;justify-content:center;color:rgba(246,239,227,.7);border:1px solid rgba(246,239,227,.25);border-radius:var(--r-pill);animation:bob 1.8s ease-in-out infinite}
.hero-scroll svg{width:22px;height:22px}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero-logo,.hero-word,.hero--brand h1,.hero--brand .sub,.hero--brand .hero-cta,.hero-badges{animation:none;opacity:1}.hero-scroll{animation:none}}

/* ───────────── هدر شفاف روی هیروی برند (صفحهٔ خانه) ───────────── */
.home--brand .site-header{position:fixed;inset-inline:0;top:0}
.home--brand .hero--brand{padding-top:calc(var(--header-h) + 40px)}
.home--brand .site-header:not(.is-scrolled){background:transparent;backdrop-filter:none;border-bottom-color:transparent;box-shadow:none}
.home--brand .site-header:not(.is-scrolled) .announce{background:transparent;color:rgba(246,239,227,.92)}
.home--brand .site-header:not(.is-scrolled) .announce .sep{color:rgba(246,239,227,.4)}
.home--brand .site-header:not(.is-scrolled) .header-nav a,
.home--brand .site-header:not(.is-scrolled) .icon-btn,
.home--brand .site-header:not(.is-scrolled) .menu-toggle{color:#fff}
.home--brand .site-header:not(.is-scrolled) .header-nav a::after{background:var(--gold-bright)}
.home--brand .site-header:not(.is-scrolled) .icon-btn:hover{background:rgba(255,255,255,.12)}
.home--brand .site-header:not(.is-scrolled) .brand-mark img{filter:invert(1) brightness(2)}
.home--brand .site-header:not(.is-scrolled) .cart-count{background:var(--gold-bright);color:var(--ink)}

/* ───────────── اصلاحات v3 ───────────── */
.stars{display:inline-flex;align-items:center;vertical-align:middle;color:var(--star)}
.stars svg{display:block}
.pdp-rating .stars,.prod-rating .stars{display:inline-flex}

/* ───────────── نظرات ───────────── */
.reviews{margin-top:clamp(40px,6vw,72px)}
.reviews-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:2rem;align-items:start}
.review-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.1rem;margin-bottom:1rem}
.review-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.5rem}
.review-head .stars svg{width:15px;height:15px}
.review-item p{color:var(--text);line-height:1.9;margin-bottom:.4rem}
.review-form-wrap{background:var(--surface-2);border-radius:var(--r-lg);padding:1.4rem;position:sticky;top:calc(var(--header-h) + 16px)}
.review-form-wrap h3{margin-bottom:1rem}
.review-form-wrap .field{margin-bottom:.9rem}
.review-form-wrap label{display:block;font-size:.88rem;margin-bottom:.4rem;font-weight:500}
.review-form-wrap input,.review-form-wrap textarea{width:100%;padding:.7rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)}
.rate-pick{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:.2rem;margin-bottom:1rem}
.rate-star{font-size:1.8rem;color:var(--border);transition:color .15s;line-height:1}
.rate-star.on{color:var(--star)}

/* ───────────── پنل مشتری ───────────── */
.acc-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.2rem}
.announce-box{display:flex;gap:.9rem;align-items:flex-start;background:var(--gold-soft);border:1px solid var(--gold);border-radius:var(--r-lg);padding:1.1rem 1.3rem;margin-bottom:1.5rem}
.announce-box svg{width:24px;height:24px;color:var(--gold);flex-shrink:0;margin-top:2px}
.announce-box strong{display:block;color:var(--gold-hover);margin-bottom:.2rem}
.announce-box p{color:var(--text);line-height:1.8}
.acc-tabs{display:flex;gap:.5rem;flex-wrap:wrap;border-bottom:1px solid var(--border);margin-bottom:1.5rem}
.acc-tabs a{display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1.1rem;color:var(--text-muted);font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px}
.acc-tabs a svg{width:18px;height:18px}
.acc-tabs a.on{color:var(--gold);border-bottom-color:var(--gold)}
.acc-tickets-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem;align-items:start}
.ticket-thread{display:flex;flex-direction:column;gap:.8rem;max-height:440px;overflow:auto;padding:.4rem}
.tmsg{max-width:80%;padding:.8rem 1rem;border-radius:var(--r-lg)}
.tmsg-body{line-height:1.8}
.tmsg small{display:block;margin-top:.4rem;font-size:.72rem;opacity:.7}
.tmsg--customer{align-self:flex-start;background:var(--surface-2)}
.tmsg--admin{align-self:flex-end;background:var(--gold-soft)}
.tab-link{padding:.55rem 1rem;color:var(--text-muted);font-weight:500;border-radius:var(--r-md)}
.tab-link.on{background:var(--gold);color:#fff}
@media(max-width:860px){.reviews-grid,.acc-tickets-grid{grid-template-columns:1fr}.review-form-wrap{position:static}}

/* ═══════════ v6 — منوها، خط‌خوردگی، انیمیشن ستاره، اعتبار طراح ═══════════ */

/* خط‌خوردگی روی قیمت قبلی (چون .num دارای display:inline-block است) */
.prod-price .was,.prod-price .was .num,
.pdp-price .was,.pdp-price .was .num{text-decoration:line-through}

/* منوی کشویی دسته‌بندی‌ها (دسکتاپ) */
.nav-dropdown{position:relative;display:flex;align-items:center}
.nav-dd-toggle{display:inline-flex;align-items:center;gap:.25rem;cursor:pointer}
.nav-dd-caret{width:15px;height:15px;transition:transform var(--d-base)}
.nav-dropdown:hover .nav-dd-caret{transform:rotate(180deg)}
.nav-dd-menu{position:absolute;top:calc(100% + 10px);inset-inline-start:0;
  min-width:210px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);
  box-shadow:var(--sh-2);padding:.5rem;z-index:60;display:flex;flex-direction:column}
.nav-dd-menu::before{content:"";position:absolute;top:-6px;inset-inline-start:1.4rem;transform:rotate(45deg);
  width:12px;height:12px;background:var(--surface);border-inline-start:1px solid var(--border);border-block-start:1px solid var(--border)}
.nav-dd-menu a{padding:.6rem .8rem;border-radius:var(--r-sm);font-size:.9rem;font-weight:500;color:var(--text);white-space:nowrap;transition:background var(--d-fast)}
.nav-dd-menu a::after{display:none}
.nav-dd-menu a:hover{background:var(--gold-soft);color:var(--gold-hover)}
.home--brand .site-header:not(.is-scrolled) .nav-dd-menu a{color:var(--text)}

/* منوی موبایل بازطراحی‌شده */
.mm-enter{transition:transform .3s var(--ease-out)}
.mm-enter-start{transform:translateX(110%)}
.mm-enter-end{transform:none}
.mobile-menu__panel{gap:0}
.mm-nav{display:flex;flex-direction:column;margin-top:.4rem}
/* هر ردیف منو: آیکن طلایی + برچسب در یک خط فشرده و راست‌چین (RTL).
   با .mobile-menu__panel در ابتدای سلکتور، قانون عمومی display:block خط ۳۱۲ را غلبه می‌کنیم. */
.mobile-menu__panel .mm-nav>a,
.mobile-menu__panel .mm-acc-head{display:flex;align-items:center;gap:.6rem;width:100%;
  padding:.62rem .25rem;font-weight:500;font-size:.98rem;line-height:1.2;color:var(--text);
  border-bottom:1px solid var(--border);text-align:start}
.mm-nav>a svg,.mm-acc-head svg{width:19px;height:19px;color:var(--gold);flex-shrink:0}
.mobile-menu__panel .mm-acc-head{justify-content:space-between;gap:0;background:none;cursor:pointer}
.mm-acc-head>span{display:inline-flex;align-items:center;gap:.6rem;min-width:0}
.mm-acc-caret{flex-shrink:0;transition:transform var(--d-base)}
.mm-acc-head.open .mm-acc-caret{transform:rotate(180deg)}
.mm-acc-body{display:flex;flex-direction:column;padding:.2rem 0 .4rem 1.9rem}
.mobile-menu__panel .mm-acc-body a{display:block;padding:.5rem .25rem;font-size:.9rem;color:var(--text-muted);border-bottom:1px dashed var(--border)}
.mm-acc-body a:last-child{border-bottom:none}
.mm-foot{margin-top:auto;padding-top:1.2rem}
.mm-social{display:flex;justify-content:center;gap:1rem;margin-top:1rem}
.mm-social a{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:50%;color:var(--text-muted);transition:all var(--d-base)}
.mm-social a:hover{border-color:var(--gold);color:var(--gold);background:var(--gold-soft)}
.mm-social svg{width:20px;height:20px}

/* انیمیشن پرشدن ستاره در فرم نظر */
.rate-pick{cursor:pointer}
.rate-star{transition:color .15s,transform .15s}
.rate-pick:hover .rate-star{color:var(--star)}
.rate-pick .rate-star:hover ~ .rate-star{color:var(--border)}
.rate-pick:hover .rate-star:hover{transform:scale(1.22)}
.rate-star.on{animation:starPop .25s var(--ease-out)}
@keyframes starPop{0%{transform:scale(.7)}60%{transform:scale(1.25)}100%{transform:scale(1)}}

/* اعتبار طراح در فوتر */
.footer-credit{margin-top:.4rem}
.footer-credit a{color:var(--gold-bright);font-weight:600}
.footer-credit a:hover{text-decoration:underline}

/* کارت‌های تماس + نقشه در صفحات */
.contact-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.9rem;margin:1.1rem 0 0}
.contact-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.45rem;
  padding:1.4rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  transition:border-color var(--d-base),box-shadow var(--d-base),transform var(--d-base)}
a.contact-card:hover{border-color:var(--gold);box-shadow:var(--sh-1);transform:translateY(-3px)}
.contact-card svg{width:24px;height:24px;color:var(--gold)}
.contact-card span{font-weight:600;font-size:.92rem;color:var(--text)}
.contact-card small{color:var(--text-muted);font-size:.82rem;max-width:100%;overflow-wrap:anywhere}
.page-map{margin-top:1.8rem;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--border);box-shadow:var(--sh-1);line-height:0}
.page-map iframe{display:block;width:100%;height:clamp(260px,42vw,400px);border:0}

/* ═══════════ v7 — رفع باگ‌های ریسپانسیو (گزارش تیم QA) ═══════════ */

/* لوگوی هیرو brand: تبدیل مربع پخته‌شدهٔ webp به نشان نرمِ گرد */
.hero-logo{border-radius:var(--r-xl);box-shadow:0 12px 40px rgba(0,0,0,.45)}
/* در سبک brand لوگو روی پس‌زمینهٔ تیره است؛ سایه و گردی برای حس لوکس */
.hero--brand .hero-logo{background:transparent;overflow:hidden}

/* هیرو split — پرکردن فضای خالی ستون متن */
.hero-points{margin-top:1.8rem;display:flex;flex-direction:column;gap:.7rem;border-top:1px solid var(--border);padding-top:1.5rem}
.hero-points li{display:flex;align-items:center;gap:.6rem;font-size:.95rem;color:var(--text-muted);font-weight:500}
.hero-points svg{width:20px;height:20px;color:var(--gold);flex-shrink:0}
/* پس‌زمینهٔ تزئینی نرم برای ستون متن تا خالی به‌نظر نرسد */
.hero--split{position:relative}
.hero--split::before{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:42%;
  background:radial-gradient(80% 70% at 80% 30%,var(--gold-soft),transparent 70%);pointer-events:none;z-index:0}
.hero--split .hero-grid{position:relative;z-index:1}

/* دکمه‌های هیرو کنار هم در یک ردیف (تا موبایل کوچک) */
.hero-cta{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.8rem}
.hero-cta .btn{flex:0 0 auto;width:auto}
@media (max-width:430px){.hero-cta{flex-direction:column;align-items:stretch}.hero-cta .btn{width:100%}}

/* فونت منوی هدر در سایز متوسط کوچک‌تر تا نشکند (مستقل از منوی موبایل ۷۶۸) */
@media (max-width:1100px) and (min-width:769px){.header-nav{gap:1.1rem}.header-nav a,.nav-dd-toggle,.nav-dropdown{font-size:.86rem}}
@media (max-width:900px) and (min-width:769px){.header-nav{gap:.8rem}.header-nav a,.nav-dd-toggle,.nav-dropdown{font-size:.8rem}}

/* کارت محصول: ارتفاع یکدست + شکست درست نام */
.prod-card{display:flex;flex-direction:column;height:100%}
.prod-body{flex:1;display:flex;flex-direction:column}
.prod-name{word-break:break-word;overflow-wrap:anywhere}
.prod-price{margin-top:auto}
.prod-fav{width:44px;height:44px}
.prod-badges{max-width:86%}

/* اعلان و بج: جلوگیری از سرریز */
.announce{word-break:break-word}

/* صفحه‌بندی: تاچ‌تارگت */
.pagination a{min-height:44px}

@media (max-width:768px){
  /* تامبنیل PDP اسکرول افقی */
  .pdp-thumbs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.4rem;scrollbar-width:thin}
  .pdp-thumb{flex:0 0 auto}
  /* ناحیه خرید ستونی */
  .pdp-buy{flex-direction:column;align-items:stretch;gap:.9rem}
  .pdp-buy .qty-stepper{width:100%;justify-content:center}
  /* خلاصهٔ سبد/تسویه تمام‌عرض */
  .cart-summary,.checkout-summary{width:100%;position:relative;top:auto;margin-bottom:1.5rem}
  .cart-item{flex-wrap:wrap}
  /* نوار ابزار فروشگاه */
  .shop-toolbar{flex-direction:column;align-items:stretch;gap:.7rem}
  .sort-form{margin-inline-start:0;width:100%}
}
/* گرید نظرات و فرم چسبان از تبلت تک‌ستونه */
@media (max-width:860px){.reviews-grid,.acc-tickets-grid{grid-template-columns:1fr}.review-form-wrap{position:static}}

@media (max-width:480px){
  .form-grid{grid-template-columns:1fr!important;gap:.8rem}
  .field input,.field textarea{font-size:16px}
  .order-row{grid-template-columns:1fr;gap:.7rem}
  .contact-cards{grid-template-columns:1fr 1fr}
  .acc-top{flex-direction:column;gap:.9rem;align-items:stretch}
  .acc-top .btn{width:100%}
  .tmsg{max-width:94%}
  .newsletter input{font-size:16px}
}
@media (max-width:380px){
  .prod-grid{grid-template-columns:1fr}
  .cat-grid .name{font-size:clamp(.85rem,3.6vw,1.05rem)}
  .contact-cards{grid-template-columns:1fr}
  .contact-card{flex-direction:row;justify-content:center;gap:.6rem;padding:1rem}
}
/* فلش آکاردیون منوی موبایل در RTL */
html[dir=rtl] .mm-acc-head.open .mm-acc-caret{transform:rotate(-180deg)}
.mobile-menu__panel{padding-inline:1.1rem}

/* کد تخفیف در سبد */
.coupon-box{margin:.2rem 0 1.1rem;padding-bottom:1.1rem;border-bottom:1px dashed var(--border)}
.coupon-form{display:flex;gap:.5rem;align-items:stretch}
.coupon-form input{flex:1;min-width:0;padding:.62rem .85rem;border:1px solid var(--border);border-radius:var(--r-md);
  background:var(--surface);font-size:.9rem;letter-spacing:.04em;text-transform:uppercase;transition:border-color var(--d-fast),box-shadow var(--d-fast)}
.coupon-form input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.coupon-form input::placeholder{text-transform:none;letter-spacing:0}
.coupon-form .btn{white-space:nowrap;flex-shrink:0}
/* جعبهٔ «کد تخفیف اعمال شد!» — یک‌خطی و کم‌ارتفاع با ضربدر حذف */
.coupon-applied{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap;
  background:var(--success-soft);border:1px solid var(--success);border-radius:var(--r-md);
  padding:.45rem .7rem;font-size:.88rem;line-height:1.4;color:var(--success);white-space:nowrap;overflow:hidden}
.coupon-applied__txt{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis}
.coupon-applied__txt strong{font-weight:700}
.coupon-applied__x{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;background:var(--success);color:#fff;
  font-size:15px;line-height:1;font-weight:700;cursor:pointer;border:0;transition:opacity var(--d-fast)}
.coupon-applied__x:hover{opacity:.82}
.sum-discount{color:var(--success)}
.sum-discount svg{width:15px;height:15px;vertical-align:-2px;margin-inline-end:2px}

/* پوشش تیره برای کشوی فیلتر در موبایل */
.filters-overlay{position:fixed;inset:0;background:rgba(28,23,20,.5);backdrop-filter:blur(2px);z-index:125}
@media (min-width:769px){.filters-overlay{display:none!important}}
@media (max-width:768px){
  .shop-filters{box-shadow:var(--sh-3);padding:1.3rem;overscroll-behavior:contain}
}

/* ═══════════ v8 — گوشه‌های نرم سراسری + کاروسل دسته‌بندی ═══════════ */

/* گوشه‌های نرم یکدست (حس لوکس) — محافظه‌کارانه و هماهنگ با توکن‌ها */
.btn{border-radius:var(--r-pill)}
.btn--lg{border-radius:var(--r-pill)}
.field input,.field textarea,.field select,
.newsletter input,.coupon-form input,.price-range input,
.sort-form select{border-radius:var(--r-md)}
.prod-card,.form-card,.cart-item,.cart-summary,.checkout-summary,
.shop-filters,.contact-card{border-radius:var(--r-lg)}
.prod-media{border-radius:0}
.cat-card,.craft-media,.pdp-main,.hero-visual,.newsletter{border-radius:var(--r-xl)}
.badge,.cart-count,.icon-btn,.variant-chip{border-radius:var(--r-pill)}

/* کاروسل دسته‌بندی‌ها (مارکی CSS، لوپ بی‌نهایت، RTL، توقف هنگام هاور) */
.cat-carousel{position:relative;overflow:hidden;width:100%;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent)}
.cat-track{display:flex;gap:clamp(12px,1.6vw,20px);width:max-content;
  animation:catMarquee var(--cat-marquee-dur,40s) linear infinite}
/* جهت حرکت برای RTL: کارت‌ها از چپ به راست می‌لغزند تا با خواندن راست‌به‌چپ هماهنگ باشد */
html[dir=rtl] .cat-track{animation-name:catMarqueeRtl}
.cat-carousel:hover .cat-track{animation-play-state:paused}
/* حالت بدون لوپ: ردیف افقیِ قابل اسکرول، بدون انیمیشن */
.cat-carousel--static{overflow-x:auto;-webkit-mask-image:none;mask-image:none;scrollbar-width:thin;padding-bottom:.5rem}
.cat-carousel--static .cat-track{animation:none;width:max-content}
.cat-track .cat-card{flex:0 0 clamp(200px,22vw,280px);aspect-ratio:4/5}
/* چون نیمی از کارت‌ها تکراری‌اند، -۵۰٪ یعنی یک دور کامل و بی‌درز */
@keyframes catMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes catMarqueeRtl{from{transform:translateX(0)}to{transform:translateX(50%)}}
@media (prefers-reduced-motion:reduce){
  .cat-track{animation:none;flex-wrap:wrap;justify-content:center}
  .cat-carousel{-webkit-mask-image:none;mask-image:none;overflow-x:auto}
}
@media (max-width:768px){.cat-track .cat-card{flex-basis:clamp(150px,42vw,220px)}}
