/* ===== AzraMod — استایل‌ها ===== */
:root, [data-style="rosegold"] {
  --bg: #F5EBE0; --surface: #FFFAF6; --surface-2: #EFE1D6;
  --ink: #3A2F2F; --ink-soft: #6E5E5B; --muted: #C6AEA4;
  --accent: #B76E79; --accent-ink: #fff; --accent-soft: #E0C1B8;
  --line: rgba(58,47,47,.12); --shadow: 0 18px 40px -22px rgba(58,47,47,.35);
  --radius: 18px; --arch: 999px 999px 18px 18px;
  --hero-grad: linear-gradient(135deg, #E0C1B8 0%, #F5EBE0 55%, #EBD6CC 100%);
  --metal: linear-gradient(120deg, #9E5A66, #D49AA2 40%, #B76E79 60%, #E8B9BF 85%);
}
[data-style="gold"] {
  --bg: #FBF7EE; --surface: #FFFFFF; --surface-2: #F3EAD6;
  --ink: #1E1A14; --ink-soft: #5E5546; --muted: #CDBB93;
  --accent: #B08A2E; --accent-ink: #fff; --accent-soft: #EAD9AE;
  --line: rgba(30,26,20,.12);
  --hero-grad: linear-gradient(135deg, #F3E6C4 0%, #FBF7EE 60%, #EFE0BA 100%);
  --metal: linear-gradient(120deg, #8C6A1E, #E3C56E 40%, #B08A2E 60%, #F4DD95 85%);
}
[data-style="noir"] {
  --bg: #161212; --surface: #211B1A; --surface-2: #2C2423;
  --ink: #F3E9DF; --ink-soft: #BFAFA6; --muted: #7D6A64;
  --accent: #D9A0A8; --accent-ink: #1A1414; --accent-soft: #4A3436;
  --line: rgba(243,233,223,.12); --shadow: 0 18px 40px -22px rgba(0,0,0,.8);
  --hero-grad: linear-gradient(135deg, #2C2022 0%, #161212 60%, #2A1F20 100%);
  --metal: linear-gradient(120deg, #B76E79, #F0C3C9 45%, #C98D94 65%, #F7D9DD 90%);
}
[data-style="minimal"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F6F1EC;
  --ink: #2B2626; --ink-soft: #77706C; --muted: #D8CCC3;
  --accent: #2B2626; --accent-ink: #fff; --accent-soft: #F1E6E1;
  --line: rgba(43,38,38,.1); --shadow: none; --radius: 4px; --arch: 4px;
  --hero-grad: linear-gradient(180deg, #F6F1EC, #FFFFFF);
  --metal: linear-gradient(120deg, #B76E79, #B76E79);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Vazirmatn", system-ui, sans-serif; font-size: 15px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.latin { font-family: "Cormorant Garamond", serif; letter-spacing: .04em; }
.metal-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- bar & header --- */
.topbar { background: var(--ink); color: var(--bg); font-size: 12.5px; text-align: center; padding: 6px 12px; }
header.site { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 12px; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand .en { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600; letter-spacing: .12em; }
.brand .fa { font-size: 11px; letter-spacing: .3em; color: var(--ink-soft); margin-top: 4px; }
nav.main { display: flex; gap: 22px; font-size: 14px; }
nav.main a { position: relative; padding: 4px 0; color: var(--ink-soft); white-space: nowrap; }
nav.main a:hover, nav.main a.on { color: var(--ink); }
nav.main a.on::after { content: ""; position: absolute; inset: auto 0 -2px; height: 2px; background: var(--metal); border-radius: 2px; }
.head-icons { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 28px; font-weight: 600; background: var(--accent); color: var(--accent-ink); transition: transform .15s, box-shadow .2s, opacity .2s; }
[data-style="minimal"] .btn { border-radius: var(--radius); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* --- hero --- */
.hero { background: var(--hero-grad); border-radius: calc(var(--radius) * 1.6); margin-top: 20px; padding: clamp(28px, 6vw, 70px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.hero .eyebrow { font-family: "Cormorant Garamond", serif; font-size: 20px; letter-spacing: .3em; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.35; margin: 8px 0 14px; font-weight: 800; }
.hero p { color: var(--ink-soft); max-width: 460px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; justify-self: center; width: min(360px, 100%); }
.hero-art .frame { aspect-ratio: 4/5; border-radius: var(--arch); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 10px; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .tag { position: absolute; bottom: 22px; right: -14px; background: var(--surface); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); font-size: 13px; }
.hero-art .tag b { display: block; font-size: 15px; }

/* --- sections --- */
.section { margin-top: 64px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: 26px; font-weight: 800; }
.sec-head .sub { font-family: "Cormorant Garamond", serif; color: var(--accent); letter-spacing: .2em; font-size: 15px; display: block; }
.sec-head a { color: var(--ink-soft); font-size: 14px; }

.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat { text-align: center; }
.cat .arch { aspect-ratio: 3/4; border-radius: var(--arch); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; transition: transform .25s; border: 1px solid var(--line); }
.cat .arch img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .arch { transform: translateY(-4px); }
.cat span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.card { position: relative; }
.card .ph { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.card .off { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--accent-ink); font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.card h3 { font-size: 15px; font-weight: 600; margin: 12px 0 2px; }
.price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price b { font-weight: 700; }
.price s { color: var(--ink-soft); font-size: 13px; }
.card .sizes { font-size: 12px; color: var(--ink-soft); letter-spacing: .05em; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; }
.perk .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
[data-style="noir"] .perk .ic { color: var(--ink); }
.perk b { display: block; font-size: 14.5px; }
.perk small { color: var(--ink-soft); }

.insta { background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) * 1.6); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.insta h3 { margin: 0; font-size: 24px; }
.insta .btn { background: var(--bg); color: var(--ink); }

/* --- product page --- */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 22px 0; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.gallery .main { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 74px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: 28px; margin: 0 0 6px; }
.pinfo .price b { font-size: 22px; }
.pinfo .desc { color: var(--ink-soft); margin: 18px 0; }
.opt-label { font-weight: 700; font-size: 14px; margin: 18px 0 8px; display: flex; justify-content: space-between; }
.opt-label a { font-weight: 400; color: var(--accent); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 48px; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
[data-style="minimal"] .chip { border-radius: var(--radius); }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; }
.buy-row .btn { flex: 1; }
.details { margin-top: 26px; border-top: 1px solid var(--line); }
.details li { padding: 6px 0; }
.details ul { padding-inline-start: 20px; margin: 10px 0; }
table.measure { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.measure td, table.measure th { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; }
table.measure th { color: var(--ink-soft); font-weight: 400; }

/* --- cart / checkout --- */
.page-title { font-size: 26px; margin: 28px 0 18px; }
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border: 0; }
.line img { width: 76px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.line small { color: var(--ink-soft); display: block; }
.line .rm { border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 13px; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.status-pill { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--accent-soft); font-weight: 700; }
.status-pill.paid { background: #CFE8D5; color: #1E5A31; }
.err { color: #B3261E; font-size: 14px; margin-top: 10px; }

/* --- styles page --- */
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.style-card { border-radius: 20px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--surface); text-align: right; padding: 0; transition: transform .2s; }
.style-card:hover { transform: translateY(-4px); }
.style-card.on { border-color: var(--accent); }
.style-card .pv { height: 170px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.style-card .pv .logo { font-family: "Cormorant Garamond", serif; font-size: 24px; letter-spacing: .12em; font-weight: 600; }
.style-card .pv .sw { display: flex; gap: 6px; }
.style-card .pv .sw i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.style-card .meta { padding: 14px 18px; }
.style-card .meta b { display: block; }
.style-card .meta small { color: var(--ink-soft); }

/* floating style picker */
.style-fab { position: fixed; left: 18px; bottom: 18px; z-index: 50; display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: 99px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); border: 1px solid var(--line); }
.style-fab button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.style-fab button.on { border-color: var(--ink); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.drawer .sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.drawer .sheet a { padding: 10px 0; border-bottom: 1px solid var(--line); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 99px; opacity: 0; transition: .3s; z-index: 70; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer.site { margin-top: 80px; background: var(--surface-2); padding: 48px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 10px; }
.foot a { display: block; color: var(--ink-soft); padding: 3px 0; }
.copy { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 30px; }

/* --- responsive --- */
@media (max-width: 1080px) {
  nav.main { display: none; }
  .menu-btn { display: grid; }
  .head { grid-template-columns: auto 1fr auto; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp, .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero-art { width: min(280px, 80%); }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: 1fr; }
  .brand .en { font-size: 24px; }
  .insta { padding: 28px; }
  .buy-row { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin-inline: -16px; padding-inline: 16px; border-top: 1px solid var(--line); }
}
.badge[hidden] { display: none; }
@media (max-width: 1080px) { .gallery { width: 100%; max-width: 520px; margin-inline: auto; } }

/* --- پرداخت (رسیدش) --- */
.pay-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pay-step { font-weight: 800; margin: 16px 0 8px; }
.pay-amount { width: 100%; border: 2px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 16px; font-size: 16px; cursor: pointer; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pay-amount b { font-size: 30px; letter-spacing: .02em; }
.pay-warn { font-size: 13px; color: #9A3B2E; margin-top: 8px; }
[data-style="noir"] .pay-warn { color: #F2B8A8; }
.cp { font-size: 12px; background: var(--surface); color: var(--ink); border-radius: 99px; padding: 2px 10px; }
.bank-card { width: 100%; aspect-ratio: 1.6; max-height: 230px; border: 0; border-radius: 18px; padding: 20px; cursor: pointer; color: #fff; text-align: right; display: grid; grid-template-rows: auto 1fr auto auto; gap: 4px;
  background: linear-gradient(135deg, #3A2F2F, #6E4B50 55%, #B76E79); box-shadow: 0 18px 36px -18px rgba(58,47,47,.7); }
.bank-card .bank { font-weight: 700; opacity: .9; }
.bank-card .num { direction: ltr; text-align: center; align-self: center; font-size: clamp(19px, 5.5vw, 26px); letter-spacing: .08em; font-weight: 700; font-family: "Vazirmatn", monospace; }
.bank-card .holder { opacity: .9; }
.bank-card .cp { justify-self: start; background: rgba(255,255,255,.2); color: #fff; }
.sheba { margin-top: 10px; font-size: 14px; }
.sheba summary { cursor: pointer; color: var(--accent); }
.sheba .chip { margin-top: 8px; direction: ltr; font-size: 13px; }
.wait { display: flex; gap: 10px; align-items: center; color: var(--ink-soft); margin: 0; }
.wait .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.timer { margin-top: 12px; text-align: center; color: var(--ink-soft); }
.timer b { color: var(--ink); font-size: 18px; }
.done-box { text-align: center; padding: 18px 0 6px; }
.done-box .ok { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #CFE8D5; color: #1E5A31; display: grid; place-items: center; font-size: 30px; }

/* --- «به سبد اضافه شد» --- */
.added-sheet .sheet { top: auto; right: 50%; left: auto; bottom: 0; transform: translateX(50%); width: min(440px, 100%); border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); gap: 0; animation: sheetUp .35s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 -20px 50px -20px rgba(58,47,47,.4); }
@media (min-width: 700px) { .added-sheet .sheet { bottom: 50%; transform: translate(50%, 50%); border-radius: 26px; animation: pop .3s cubic-bezier(.2,.9,.3,1.3); } }
@keyframes sheetUp { from { transform: translate(50%, 100%); } }
@keyframes pop { from { transform: translate(50%, 50%) scale(.9); opacity: 0; } }
.added-sheet .shade { animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.added-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.added-head .tick { width: 36px; height: 36px; border-radius: 50%; background: var(--metal); display: grid; place-items: center; flex: none; animation: tickPop .5s cubic-bezier(.2,.9,.3,1.5); }
.added-head .tick svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .2s forwards; }
@keyframes tickPop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.added-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; margin: 16px 0 6px; padding: 12px; background: var(--surface-2); border-radius: 16px; }
.added-item img { width: 76px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.added-item small { display: block; color: var(--ink-soft); }
.added-note { color: var(--accent); font-weight: 600; margin: 8px 0 14px; }
.added-actions { display: grid; gap: 10px; }
.added-actions .btn { width: 100%; }
.icon-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.btn.added { background: #3E8E5E; color: #fff; }
.chips.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* --- سفارش و پیگیری --- */
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 12.5px; color: var(--ink-soft); position: relative; }
.steps li span { display: block; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 6px; background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done { color: var(--ink); font-weight: 700; }
.steps li.done span { background: var(--accent); border-color: var(--accent); }
.steps li.done::before { background: var(--accent); }
.steps li.now span { box-shadow: 0 0 0 5px var(--accent-soft); }
.order-items { margin-top: 14px; border-top: 1px solid var(--line); }
.order-items .line { grid-template-columns: 56px 1fr auto; }
.order-items .line img { width: 56px; }
.post-box { margin: 12px 0; padding: 12px 14px; background: var(--accent-soft); border-radius: 14px; }
.post-box a { color: var(--accent); font-size: 14px; }
[data-style="noir"] .post-box a { color: var(--ink); }
.keep-note { margin-top: 16px; padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; font-size: 14px; color: var(--ink-soft); }
.keep-note b { color: var(--ink); }
.keep-note a { display: block; margin-top: 6px; color: var(--accent); font-weight: 700; }
.my-order { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-order:last-child { border: 0; }
.my-order small { display: block; color: var(--ink-soft); }
.my-order .status-pill { font-size: 12px; font-weight: 600; }
.thumbs-row { display: flex; }
.thumbs-row img { width: 40px; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; border: 2px solid var(--surface); margin-inline-start: -14px; background: var(--surface-2); }
.thumbs-row img:first-child { margin-inline-start: 0; }

.insta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.insta .btn.ghost-light { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bg) 60%, transparent); }
#contactLinks a { display: block; }

.track-panel { max-width: 620px; }
.track-row { display: flex; gap: 10px; }
.track-row input { flex: 1; min-width: 0; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 17px; outline: none; }
.track-row input:focus { border-color: var(--accent); }
.track-count { margin: 18px 0 4px; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 520px) { .track-row { flex-direction: column; } }

/* =====================================================================
   حرکت، دکمه‌ها و ریسپانسیو (نسخه داینامیک)
   ===================================================================== */
:root { --ease: cubic-bezier(.2,.8,.2,1); --nav-h: 0px; }
body.no-scroll { overflow: hidden; }
.muted { color: var(--ink-soft); font-weight: 400; }
.small { font-size: 13px; }

/* نوار اعلان متحرک */
.topbar { padding: 0; overflow: hidden; }
.ticker { direction: ltr; overflow: hidden; white-space: nowrap; padding: 7px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: inline-flex; gap: 28px; animation: marquee 32s linear infinite; }
.ticker span { direction: rtl; }
.ticker i { font-style: normal; color: var(--accent-soft); }
.topbar:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* هدر: جمع‌وجور شدن و پنهان شدن هنگام اسکرول */
header.site { transition: transform .35s var(--ease), box-shadow .3s, background .3s; }
header.site .head { transition: height .3s var(--ease); }
header.site.scrolled { box-shadow: 0 8px 24px -18px rgba(58,47,47,.45); }
header.site.scrolled .head { height: 60px; }
header.site.scrolled .brand .en { font-size: 25px; }
.brand .en { transition: font-size .3s var(--ease); }
.icon-btn { transition: background .2s, transform .2s var(--ease); }
.icon-btn:active { transform: scale(.9); }

/* ورود هر صفحه */
#app.page-in { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }

/* ظاهر شدن موقع اسکرول */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* دکمه‌ها */
.btn { position: relative; overflow: hidden; transition: transform .18s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn.shine:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn.shine { animation: breathe 3.5s ease-in-out infinite 2s; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 14%, transparent); } }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.chip { transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.chip:active { transform: scale(.94); }
.chip.sm { padding: 6px 14px; font-size: 13px; min-width: 0; }
.link-btn { border: 0; background: none; padding: 6px 0; margin-top: 6px; color: var(--accent); cursor: pointer; font-size: 13.5px; display: inline-block; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.icon-btn.round { width: 50px; height: 50px; flex: none; border: 1.5px solid var(--line); }
.icon-btn.round svg { width: 20px; height: 20px; }

/* هیرو */
.hero { min-height: min(78vh, 640px); }
.hero .eyebrow { font-family: inherit; font-size: 14px; letter-spacing: 0; font-weight: 600; display: inline-flex; padding: 4px 14px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); animation: fadeUp .7s var(--ease) both .05s; }
.hero h1 .ln { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.hero h1 .ln > span { display: inline-block; animation: lineUp .9s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-p { animation: fadeUp .8s var(--ease) both .3s; }
.hero .cta { animation: fadeUp .8s var(--ease) both .42s; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); animation: fadeUp .8s var(--ease) both .55s; }
.hero-trust span, .mini-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg, .mini-trust svg { width: 17px; height: 17px; color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.metal-text.shimmer { background-size: 220% 100%; animation: shimmer 5s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.hero-art { animation: artIn 1.1s var(--ease) both .2s; }
@keyframes artIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.hero-art .frame { position: relative; animation: float 7s ease-in-out infinite 1.3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-art .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease), transform 1.6s var(--ease); transform: scale(1.06); }
.hero-art .slide.on { opacity: 1; transform: none; z-index: 1; }
.hero-art .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .tag { z-index: 2; display: block; transition: transform .25s var(--ease); }
.hero-art .tag:hover { transform: translateY(-3px); }
.hero-art .tag small { display: block; color: var(--ink-soft); }
.hero-art .tag.swap { animation: tagSwap .6s var(--ease); }
@keyframes tagSwap { from { opacity: 0; transform: translateX(-12px); } }
.hero-art .dots { display: flex; justify-content: center; gap: 7px; margin-top: 26px; }
.hero-art .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; transition: width .35s var(--ease), background .3s; }
.hero-art .dots button.on { width: 26px; background: var(--accent); }

/* کارت محصول */
.sec-head .more { transition: color .2s, transform .2s var(--ease); }
.sec-head .more:hover { color: var(--accent); transform: translateX(-4px); }
.card { position: relative; }
.card .ph { display: block; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover .ph { box-shadow: var(--shadow); transform: translateY(-4px); }
.card .ph img { transition: transform .8s var(--ease), opacity .5s var(--ease); }
.card .ph img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .ph img.alt { opacity: 1; }
.card .soldout { position: absolute; inset: auto 12px 12px auto; background: var(--ink); color: var(--bg); font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.card .quick { position: absolute; top: 10px; left: 10px; z-index: 2; height: 40px; min-width: 40px; padding: 0 11px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, color .25s, transform .2s var(--ease); font-family: inherit; font-weight: 600; font-size: 13px; }
.card .quick svg { width: 18px; height: 18px; flex: none; }
.card .quick span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.card:hover .quick span { max-width: 110px; }
.card .quick:hover { background: var(--accent); color: var(--accent-ink); }
.card .quick:active { transform: scale(.92); }
.card-info { display: block; }
.card-info h3 { transition: color .2s; }
.card:hover .card-info h3 { color: var(--accent); }
.cat .arch { transition: transform .35s var(--ease), box-shadow .35s; }
.cat:hover .arch { box-shadow: var(--shadow); }
.cat .arch img { transition: transform .8s var(--ease); }
.cat:hover .arch img { transform: scale(1.06); }
button.perk { font: inherit; color: inherit; text-align: right; cursor: pointer; }
.perk { transition: transform .3s var(--ease), box-shadow .3s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* اسکلت در حال بارگذاری */
.skel-head { height: 34px; width: 220px; border-radius: 10px; margin: 30px 0 22px; }
.skel-card div { aspect-ratio: 4/5; border-radius: var(--radius); }
.skel-card i { display: block; height: 14px; border-radius: 7px; margin-top: 12px; width: 80%; }
.skel-card i + i { width: 45%; }
.skel-head, .skel-card div, .skel-card i { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* مرتب‌سازی */
.sortbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--ink-soft); font-size: 13.5px; }
.sortbar .chips { flex: 1; }
.empty-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty-ic svg { width: 30px; height: 30px; }

/* صفحه محصول */
.gallery .main { position: relative; touch-action: pan-y; }
.gallery .main img { transition: opacity .25s var(--ease), transform .6s var(--ease); }
.gallery .main img.fade { opacity: 0; transform: scale(1.02); }
.gallery .main .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery .main .dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .3s var(--ease), background .3s; }
.gallery .main .dots span.on { width: 20px; background: #fff; }
.thumbs button { transition: border-color .2s, transform .2s var(--ease); }
.thumbs button:hover { transform: translateY(-2px); }
.pinfo { animation: fadeUp .7s var(--ease) both .1s; }
.price .save { font-size: 12.5px; background: var(--accent); color: var(--accent-ink); padding: 1px 10px; border-radius: 99px; }
.low { color: #A4452F; font-size: 13.5px; font-weight: 600; margin-top: 6px; }
[data-style="noir"] .low { color: #F2B8A8; }
.qty span.pop { animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.mini-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }
.ask-btn { width: 100%; margin-top: 16px; display: flex; gap: 12px; align-items: center; text-align: right; padding: 14px 16px; border-radius: var(--radius); border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent-soft) 35%, transparent); cursor: pointer; font: inherit; color: inherit; transition: background .25s, transform .2s var(--ease); }
.ask-btn:hover { background: var(--accent-soft); transform: translateY(-2px); }
.ask-btn > svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.ask-btn small { display: block; color: var(--ink-soft); }

/* سبد خرید */
.line { transition: opacity .25s, transform .25s var(--ease); }
.line.removing { opacity: 0; transform: translateX(30px); }
.line-ctl { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.qty.sm button { width: 32px; height: 32px; font-size: 16px; }
.qty.sm span { min-width: 22px; font-size: 14px; }
@media (min-width: 1081px) { .sum-panel { position: sticky; top: 90px; } }

/* برگه پایین صفحه */
.added-sheet.closing .sheet { animation: sheetDown .22s var(--ease) forwards; }
.added-sheet.closing .shade { animation: fadeOut .22s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetDown { to { transform: translate(50%, 100%); opacity: 0; } }
@media (min-width: 700px) { .added-sheet.closing .sheet { animation-name: sheetShrink; } }
@keyframes sheetShrink { to { transform: translate(50%, 50%) scale(.94); opacity: 0; } }
.sheet-x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; color: var(--ink-soft); }
.added-sheet .sheet { max-height: 88vh; overflow-y: auto; }
.added-sheet .sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: -8px auto 14px; }
.quick-head { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; margin-bottom: 4px; padding-left: 40px; }
.quick-head img { width: 70px; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.quick-more { display: block; text-align: center; margin-top: 12px; color: var(--accent); font-size: 14px; }
.contact-head { display: flex; gap: 12px; align-items: center; padding-left: 40px; }
.contact-head .avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--metal); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.contact-head small { display: block; color: var(--ink-soft); }
.contact-actions { display: grid; gap: 10px; margin-top: 18px; }
.contact-btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); transition: transform .2s var(--ease), background .2s; }
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn svg { width: 26px; height: 26px; flex: none; }
.contact-btn small { display: block; color: var(--ink-soft); }
.contact-btn.ig svg { color: #C13584; }
.contact-btn.tg svg { color: #229ED9; }

/* دکمه شناور پشتیبانی و برگشت به بالا */
.help-fab { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 18px 12px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); animation: fabIn .7s var(--ease) both 1.2s; transition: transform .2s var(--ease); }
.help-fab:hover { transform: translateY(-3px); }
.help-fab svg, .to-top svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ring 3s ease-out infinite 2s; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes fabIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 44; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* منوی پایین موبایل */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--ink-soft); cursor: pointer; transition: color .2s; }
  .bottom-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: transform .25s var(--ease); }
  .bottom-nav .on { color: var(--accent); font-weight: 700; }
  .bottom-nav .on svg { transform: translateY(-2px); }
  .bottom-nav .on::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
  .bottom-nav > *:active svg { transform: scale(.85); }
  .bottom-nav .badge { top: 6px; left: calc(50% - 20px); font-style: normal; }
  .help-fab { display: none; }
  .to-top { bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
  .toast { bottom: calc(var(--nav-h) + 18px); }
  header.site.hide { transform: translateY(-100%); }
  .head-icons .cart-ic, .head-icons a[href="#/track"] { display: none; }
  .buy-row { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)) !important; }
  .chips.scroller { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; }
  .chips.scroller::-webkit-scrollbar { display: none; }
  .chips.scroller .chip { flex: none; scroll-snap-align: start; }
  .cats { display: flex; overflow-x: auto; gap: 12px; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 31%; scroll-snap-align: start; }
  .hero { min-height: 0; padding: 26px 20px 30px; gap: 26px; }
  .hero h1 { font-size: 32px; }
  .hero-trust { justify-content: center; font-size: 12px; }
  .card .quick { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .card .quick span { display: none; }
  .section { margin-top: 48px; }
  .sec-head h2 { font-size: 21px; }
  .contact-head, .quick-head { padding-left: 34px; }
}
@media (hover: none) { .card .ph img.alt { display: none; } .card:hover .ph { transform: none; box-shadow: none; } }

/* کسانی که حرکت را در گوشی خاموش کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker .track { animation: none; }
}
.contact-btn small[dir="ltr"] { text-align: right; }
