/* ============================================================
   تم‌های بصری فروشگاه — هر تم هویت مستقل دارد
   هر تم با body.theme-<name> فعال می‌شود و متغیرهای رنگ و
   جزئیات اختصاصی خودش را تعریف می‌کند. صفحه‌ی default/noir
   مثل قبل از store.css می‌آید.
   ============================================================ */

/* ---------- انیمیشن‌های مشترک (ظریف) ---------- */
@media (prefers-reduced-motion:no-preference){
  .fx{opacity:0;transform:translateY(14px)}
  .fx.in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1)}
}

/* ============================================================
   ۱) لوکس گرم — Warm Luxury
   ============================================================ */
body.theme-warm{
  --bg:#F6F1E8;--surface:#FCFAF6;--brand:#46372E;--on-brand:#F6F1E8;
  --accent:#A17C56;--ink:#302821;--ink2:#55483D;--mute:#807366;--line:#DED4C7;
  --soft:#EFE7D9;--r:12px;color-scheme:light;
}
/* بافت کاغذی بسیار ظریف روی کل صفحه */
body.theme-warm{position:relative}
body.theme-warm::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .22 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")}
body.theme-warm main,body.theme-warm header.s,body.theme-warm footer.s{position:relative;z-index:1}
/* هدر: خط ظریف به‌جای سایه */
body.theme-warm header.s{box-shadow:none;border-bottom:1px solid var(--line)}
/* هیرو: ادیتوریال، بدون دایره، تیتر بزرگ با فاصله‌ی حروف */
body.theme-warm .hero{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:0;
  padding:72px 56px;margin-top:28px}
body.theme-warm .hero::before,body.theme-warm .hero::after{display:none}
body.theme-warm .hero h1{font-weight:700;font-size:2.6rem;letter-spacing:-.5px;max-width:560px}
body.theme-warm .hero h1::after{content:"";display:block;width:64px;height:3px;background:var(--accent);margin-top:18px}
body.theme-warm .hero p{color:var(--mute);max-width:480px;font-size:1.05rem}
body.theme-warm .hero .go{background:var(--brand);color:var(--on-brand);border-radius:8px;padding:11px 30px;font-weight:600}
body.theme-warm .hero .go:hover{background:#382c24;transform:translateY(-1px)}
body.theme-warm .slider{border:1px solid var(--line);border-radius:0;--ar:21/8}
/* کارت: بدون سایه، خط ظریف، گوشه‌ی کم‌گرد */
body.theme-warm .card .img{border-radius:8px;background:var(--soft)}
body.theme-warm .card{transition:transform .3s ease}
body.theme-warm .card:hover{transform:translateY(-2px)}
body.theme-warm .card:hover .img img{transform:scale(1.03)}
body.theme-warm .card h3{font-weight:500;margin-top:14px;letter-spacing:.2px}
body.theme-warm .card .pr{margin-top:6px}
body.theme-warm .price{font-weight:600}
/* دکمه‌ها */
body.theme-warm .btn{border-radius:8px;background:var(--brand);font-weight:600}
body.theme-warm .btn:hover{background:#382c24;filter:none;transform:translateY(-1px)}
body.theme-warm .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
/* نشانگر تیتر بخش‌ها: برنز باریک‌تر */
body.theme-warm .sectionhead h2{font-weight:600;letter-spacing:.3px}
body.theme-warm .sectionhead h2::before{background:var(--accent);width:3px;border-radius:0}
/* جعبه‌های soft و فوتر */
body.theme-warm .facts{background:var(--soft)}
body.theme-warm footer.s{background:#2B211B}
body.theme-warm .cats a{border-radius:6px}

/* ============================================================
   ۲) لوکس تاریک — Dark Editorial
   ============================================================ */
body.theme-editorial{
  --bg:#171717;--surface:#232323;--brand:#B49A75;--on-brand:#1B140C;
  --accent:#C6A77C;--ink:#F4F0E9;--ink2:#D8D2C7;--mute:#B5B0A8;--line:#3A3937;
  --soft:#2E2D2B;--r:14px;color-scheme:dark;
}
body.theme-editorial{background:
  radial-gradient(1100px 420px at 85% -8%,rgba(180,154,117,.07),transparent 60%),
  var(--bg)}
body.theme-editorial header.s{background:color-mix(in srgb,#171717 88%,transparent);box-shadow:none;border-bottom:1px solid var(--line)}
/* هیرو: سینمایی با هاله‌ی نور برنزی */
body.theme-editorial .hero{background:linear-gradient(135deg,#1D1C1A,#131312 65%);color:var(--ink);
  border:1px solid var(--line);padding:72px 56px}
body.theme-editorial .hero::before{width:420px;height:420px;inset-inline-end:-100px;top:-140px;
  background:radial-gradient(circle,rgba(198,167,124,.16),transparent 65%)}
body.theme-editorial .hero::after{display:none}
body.theme-editorial .hero h1{font-weight:800;font-size:2.7rem;letter-spacing:-.5px}
body.theme-editorial .hero p{color:var(--mute)}
body.theme-editorial .hero .go{background:var(--brand);color:var(--on-brand);border-radius:10px;padding:11px 32px}
body.theme-editorial .hero .go:hover{background:var(--accent);filter:none}
body.theme-editorial .slider{border:1px solid var(--line)}
body.theme-editorial .slider .cap{background:linear-gradient(to top,rgba(10,10,10,.8),transparent)}
/* کارت: زغالی با خط ظریف برنزی هنگام هاور */
body.theme-editorial .card .img{background:var(--soft);border-radius:10px;outline:1px solid var(--line);outline-offset:-1px}
body.theme-editorial .card:hover .img{outline-color:color-mix(in srgb,var(--brand) 55%,transparent)}
body.theme-editorial .card:hover .img img{transform:scale(1.05)}
body.theme-editorial .card h3{font-weight:600}
body.theme-editorial .price{color:var(--accent);font-weight:700}
body.theme-editorial .sectionhead h2::before{background:var(--brand)}
body.theme-editorial .btn{background:var(--brand);color:var(--on-brand);border-radius:10px}
body.theme-editorial .btn:hover{background:var(--accent);filter:none}
body.theme-editorial .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
body.theme-editorial footer.s{background:#101010;border-top:1px solid var(--line)}
body.theme-editorial .facts{background:var(--soft);border:1px solid var(--line)}
body.theme-editorial .cats a{background:var(--surface)}

/* ============================================================
   ۳) طبیعت مدرن — Organic Modern
   ============================================================ */
body.theme-organic{
  --bg:#F5F3EB;--surface:#FAF9F4;--brand:#66745C;--on-brand:#F8F7F1;
  --accent:#A9B59E;--ink:#343E32;--ink2:#4C574A;--mute:#7B8174;--line:#D8DCCF;
  --soft:#E9ECE1;--r:18px;color-scheme:light;
}
body.theme-organic{background:
  radial-gradient(900px 380px at 12% -6%,rgba(169,181,158,.14),transparent 60%),
  var(--bg)}
body.theme-organic header.s{box-shadow:none;border-bottom:1px solid var(--line)}
/* هیرو: منحنی ارگانیک و گرادیان سبز-کرم */
body.theme-organic .hero{background:linear-gradient(140deg,var(--soft),var(--surface) 70%);color:var(--ink);
  border:1px solid var(--line);padding:64px 52px;border-radius:32px}
body.theme-organic .hero::before{width:300px;height:300px;inset-inline-end:-70px;bottom:-130px;
  background:rgba(169,181,158,.25);border-radius:58% 42% 55% 45%/55% 45% 55% 45%}
body.theme-organic .hero::after{display:none}
body.theme-organic .hero h1{font-weight:800;font-size:2.3rem}
body.theme-organic .hero p{color:var(--ink2)}
body.theme-organic .hero .go{background:var(--brand);color:var(--on-brand);border-radius:12px}
body.theme-organic .hero .go:hover{background:#57654F;filter:none}
/* کارت: روشن، ظریف، آرام */
body.theme-organic .card .img{border-radius:16px;background:var(--soft);box-shadow:0 1px 0 var(--line)}
body.theme-organic .card{transition:transform .35s ease}
body.theme-organic .card:hover{transform:translateY(-3px)}
body.theme-organic .card:hover .img img{transform:scale(1.04)}
body.theme-organic .sectionhead h2::before{background:var(--accent)}
body.theme-organic .btn{background:var(--brand);border-radius:14px}
body.theme-organic .btn:hover{background:#57654F;filter:none}
body.theme-organic .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}
body.theme-organic footer.s{background:#3E4A3B}
body.theme-organic .facts{background:var(--soft)}

/* ============================================================
   ۴) مدرن و جوان — Modern Pop
   ============================================================ */
body.theme-pop{
  --bg:#FAFAFA;--surface:#FFFFFF;--brand:#303443;--on-brand:#FFFFFF;
  --accent:#6878F2;--accent2:#B8C2FF;--ink:#252633;--ink2:#3E4054;--mute:#727381;--line:#E3E4EB;
  --soft:#F0F1F5;--r:16px;color-scheme:light;
}
body.theme-pop{background:
  linear-gradient(180deg,rgba(104,120,242,.05),transparent 340px),
  var(--bg)}
body.theme-pop header.s{box-shadow:0 1px 0 var(--line)}
/* هیرو: جسورانه با گرادیان بنفش و شکل‌های هندسی */
body.theme-pop .hero{background:linear-gradient(120deg,#303443,#3E4463 55%,#4A52A8);color:#fff;padding:64px 52px;border-radius:28px}
body.theme-pop .hero::before{width:300px;height:300px;inset-inline-end:-60px;top:-110px;
  background:rgba(184,194,255,.25);border-radius:38% 62% 60% 40%/45% 40% 60% 55%}
body.theme-pop .hero::after{width:150px;height:150px;inset-inline-end:210px;bottom:-60px;
  background:rgba(104,120,242,.35);border-radius:40px;transform:rotate(14deg)}
body.theme-pop .hero h1{font-weight:900;font-size:2.5rem;letter-spacing:-.5px}
body.theme-pop .hero p{color:rgba(255,255,255,.85)}
body.theme-pop .hero .go{background:var(--accent);color:#fff;border-radius:12px;padding:11px 30px}
body.theme-pop .hero .go:hover{background:#5B6BE8;filter:none;transform:translateY(-1px)}
/* کارت: سفید با سایه‌ی رنگی ملایم */
body.theme-pop .card .img{border-radius:14px;background:var(--soft)}
body.theme-pop .card{border-radius:16px;transition:transform .3s ease,box-shadow .3s ease;
  padding-bottom:10px}
body.theme-pop .card:hover{transform:translateY(-4px)}
body.theme-pop .card:hover .img img{transform:scale(1.05)}
body.theme-pop .sectionhead h2::before{background:linear-gradient(180deg,var(--accent),var(--accent2))}
body.theme-pop .btn{background:var(--accent);border-radius:12px}
body.theme-pop .btn:hover{background:#5B6BE8;filter:none;transform:translateY(-1px)}
body.theme-pop .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}
body.theme-pop footer.s{background:#252633}
body.theme-pop .facts{background:var(--soft)}
body.theme-pop .flash{background:linear-gradient(135deg,#6878F2,#8A5CF6)}

/* ============================================================
   ۵) آبی نیمه‌شب — Midnight Blue
   ============================================================ */
body.theme-midnight{
  --bg:#F2F5F9;--surface:#FFFFFF;--brand:#1D3557;--on-brand:#FFFFFF;
  --accent:#457BBD;--accent2:#A8C7E7;--ink:#1D2736;--ink2:#39465A;--mute:#697789;--line:#D8E1EB;
  --soft:#E7EDF5;--r:14px;color-scheme:light;
}
body.theme-midnight{background:
  linear-gradient(180deg,rgba(69,123,189,.07),transparent 300px),
  var(--bg)}
body.theme-midnight header.s{box-shadow:none;border-bottom:1px solid var(--line)}
/* هیرو: گرادیان آبی حرفه‌ای با خطوط ظریف */
body.theme-midnight .hero{background:linear-gradient(125deg,#1D3557,#2A4A77 60%,#457BBD);color:#fff;padding:62px 52px;border-radius:24px}
body.theme-midnight .hero::before{width:340px;height:340px;inset-inline-end:-90px;top:-120px;
  background:radial-gradient(circle,rgba(168,199,231,.35),transparent 65%)}
body.theme-midnight .hero::after{width:180px;height:1px;inset-inline-start:52px;bottom:84px;background:rgba(255,255,255,.35);border-radius:0}
body.theme-midnight .hero h1{font-weight:800;font-size:2.4rem}
body.theme-midnight .hero p{color:rgba(255,255,255,.88)}
body.theme-midnight .hero .go{background:#fff;color:#1D3557;border-radius:10px;padding:11px 30px}
body.theme-midnight .hero .go:hover{background:var(--accent2);filter:none;transform:translateY(-1px)}
/* کارت: سفید با خط و سایه‌ی آبی ملایم */
body.theme-midnight .card .img{border-radius:12px;background:var(--soft)}
body.theme-midnight .card{border-radius:14px;box-shadow:0 1px 2px rgba(29,53,87,.06);transition:transform .3s,box-shadow .3s;padding-bottom:8px}
body.theme-midnight .card:hover{transform:translateY(-3px);box-shadow:0 10px 26px -14px rgba(29,53,87,.28)}
body.theme-midnight .card:hover .img img{transform:scale(1.04)}
body.theme-midnight .sectionhead h2::before{background:linear-gradient(180deg,var(--brand),var(--accent))}
body.theme-midnight .btn{background:var(--brand);border-radius:11px}
body.theme-midnight .btn:hover{background:var(--accent);filter:none}
body.theme-midnight .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}
body.theme-midnight footer.s{background:#16233A}
body.theme-midnight .facts{background:var(--soft)}
body.theme-midnight .cats a.on{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ---------- موبایل: بهینه‌سازی هر تم ---------- */
@media(max-width:700px){
  body.theme-warm .hero,body.theme-editorial .hero{padding:44px 26px}
  body.theme-organic .hero,body.theme-pop .hero,body.theme-midnight .hero{padding:42px 26px;border-radius:24px}
  body.theme-warm .hero h1{font-size:1.9rem}
  body.theme-editorial .hero h1{font-size:2rem}
  body.theme-organic .hero h1{font-size:1.8rem}
  body.theme-pop .hero h1{font-size:1.9rem}
  body.theme-midnight .hero h1{font-size:1.9rem}
  body.theme-warm .hero h1::after{margin-top:14px;width:52px}
  /* نوار پایین موبایل هماهنگ با تم‌ها */
  body.theme-editorial .bottomnav{background:color-mix(in srgb,#232323 96%,transparent)}
}
