/* ============================================================
   BARANG B2C Store — design system
   Clean, light, RTL-first storefront. Persian default (fa),
   en/ar supported. Brand accents: red/yellow/blue/green.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --border: #e5e8f0;
    --text: #131a2a;
    --text-2: #5b6478;
    --muted: #8a92a6;
    --primary: #2b5cff;
    --primary-600: #1e46d4;
    --primary-soft: #eaf0ff;
    --ok: #16a34a;
    --err: #dc2626;
    --brand-red: #f87171;
    --brand-yellow: #fbbf24;
    --brand-blue: #60a5fa;
    --brand-green: #4ade80;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(19, 26, 42, .05), 0 8px 24px rgba(19, 26, 42, .06);
    --shadow-lg: 0 12px 40px rgba(19, 26, 42, .12);
    --header-h: 68px;
    --font: "BarangStore", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

@font-face {
    font-family: "BarangStore";
    src: url("../fonts/noto-sans-arabic-v33-arabic-variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
    font-family: "BarangStore";
    src: url("../fonts/noto-sans-arabic-v33-latin-variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "BarangStore";
    src: url("../fonts/inter-v20-latin-variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.22rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: .4em 0; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.store-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease, background .25s ease;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.store-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-word {
    font-size: 1.45rem; font-weight: 900; letter-spacing: .01em;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red) 22%, var(--brand-yellow) 36%, var(--brand-blue) 62%, var(--brand-green) 84%, var(--brand-green) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
html[dir="rtl"] .brand-word {
    background: linear-gradient(270deg, var(--brand-red) 0%, var(--brand-red) 22%, var(--brand-yellow) 36%, var(--brand-blue) 62%, var(--brand-green) 84%, var(--brand-green) 100%);
    -webkit-background-clip: text; background-clip: text;
}
.brand-sub { font-size: .68rem; color: var(--muted); }
.header-search {
    flex: 1; display: flex; max-width: 460px; margin-inline: auto;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.header-search input { flex: 1; border: 0; background: transparent; padding: .55rem 1rem; font: inherit; color: var(--text); min-width: 0; }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: transparent; color: var(--text-2); padding: 0 1rem; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text-2); border: 1px solid transparent; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--surface-2); color: var(--text); }
.lang-menu[open] summary { border-color: var(--border); background: var(--surface); }
.lang-pop {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); min-width: 130px; padding: .35rem; display: grid; z-index: 60;
}
.lang-pop a { padding: .45rem .8rem; border-radius: 7px; color: var(--text); }
.lang-pop a:hover { background: var(--surface-2); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: 1px solid transparent; border-radius: 10px; cursor: pointer;
    font: inherit; font-weight: 650; text-decoration: none;
    padding: .55rem 1.15rem; min-height: 42px; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: .7rem 1.5rem; min-height: 48px; font-size: 1rem; }
.btn-sm { padding: .35rem .85rem; min-height: 36px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-account { display: inline-flex; gap: .45rem; align-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: .35rem .9rem .35rem .45rem; min-height: 40px; font-weight: 650; }
html[dir="rtl"] .btn-account { padding: .35rem .45rem .35rem .9rem; }
.btn-account:hover { border-color: var(--primary); color: var(--primary); }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }

/* ---------- hero (creative) ---------- */
.hero-new { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg); }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.blob { position: absolute; border-radius: 50%; mix-blend-mode: multiply; will-change: transform; }
.blob-r { width: 420px; height: 420px; background: #fca5a5; top: -120px; inset-inline-start: -80px; animation: drift1 16s ease-in-out infinite alternate; }
.blob-y { width: 380px; height: 380px; background: #fde68a; bottom: -140px; inset-inline-start: 30%; animation: drift2 19s ease-in-out infinite alternate; }
.blob-b { width: 460px; height: 460px; background: #93c5fd; top: -80px; inset-inline-end: -100px; animation: drift3 17s ease-in-out infinite alternate; }
.blob-g { width: 300px; height: 300px; background: #bbf7d0; bottom: -100px; inset-inline-end: 25%; animation: drift1 21s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-70px,-30px) scale(.95); } }
@keyframes drift3 { from { transform: translate(0,0) rotate(0deg); } to { transform: translate(-50px,50px) rotate(12deg); } }
.hero-new-inner { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 2rem; align-items: center; padding: 4.2rem 0 3.6rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 750; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .9rem; box-shadow: var(--shadow); }
.kicker-dot { width: 9px; height: 9px; border-radius: 999px; background: conic-gradient(var(--brand-red) 0 25%, var(--brand-yellow) 0 50%, var(--brand-blue) 0 75%, var(--brand-green) 0); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 950; line-height: 1.25; letter-spacing: -.01em; margin: 1rem 0 .4rem; }
.hero-splash {
    display: inline-block; position: relative; padding: 0 .35em;
    background: linear-gradient(92deg, var(--brand-red), var(--brand-yellow) 35%, var(--brand-blue) 68%, var(--brand-green));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-splash::after {
    content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .32em; z-index: -1;
    background: color-mix(in srgb, var(--brand-yellow) 40%, transparent); border-radius: 4px; transform: rotate(-1deg);
}
.hero-sub { color: var(--text-2); font-size: 1.06rem; max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; inset-inline-start: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%,55% { inset-inline-start: -80%; } 85%,100% { inset-inline-start: 140%; } }
.hero-chips { display: flex; gap: .6rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.hero-chips li { font-size: .8rem; font-weight: 700; color: var(--text-2); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: .28rem .8rem; backdrop-filter: blur(6px); }
.hero-collage { position: relative; height: 420px; }
.float-card {
    position: absolute; width: 172px; height: 172px; border-radius: 18px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    animation: floaty 7s ease-in-out infinite; transition: transform .25s ease;
}
.float-card img { width: 100%; height: 100%; object-fit: contain; padding: .45rem; background: #fff; }
.float-card:hover { transform: scale(1.07) rotate(0deg) !important; z-index: 5; }
.fc1 { top: 4%; inset-inline-start: 8%; transform: rotate(-6deg); animation-delay: 0s; }
.fc2 { top: 30%; inset-inline-start: 42%; transform: rotate(4deg); width: 200px; height: 200px; z-index: 2; animation-delay: -2s; }
.fc3 { top: 2%; inset-inline-end: 6%; transform: rotate(7deg); animation-delay: -4s; }
.fc4 { bottom: 8%; inset-inline-start: 22%; transform: rotate(5deg); animation-delay: -1s; }
.fc5 { bottom: 2%; inset-inline-end: 12%; transform: rotate(-5deg); animation-delay: -3s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.float-badge {
    position: absolute; top: 0; inset-inline-end: 2%; z-index: 6;
    background: var(--brand-green); color: #052e16; font-weight: 900; font-size: .8rem;
    padding: .35rem .8rem; border-radius: 999px; transform: rotate(8deg);
    box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; animation-delay: -1.5s;
}
.hero-scroll { position: absolute; bottom: 14px; inset-inline-start: 50%; translate: -50% 0; color: var(--muted); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.spectrum { height: 5px; background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow), var(--brand-blue), var(--brand-green)); background-size: 300% 100%; animation: slide 9s linear infinite; }
@keyframes slide { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@media (max-width: 980px) { .hero-new-inner { grid-template-columns: 1fr; } .hero-collage { display: none; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--text); padding: .8rem 0; border-block: 1px solid var(--border); }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: mq 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 2.4rem; color: #e7e9f2; font-weight: 750; font-size: .92rem; white-space: nowrap; letter-spacing: .02em; }
.mq-dot { width: 8px; height: 8px; border-radius: 999px; background: conic-gradient(var(--brand-red) 0 25%, var(--brand-yellow) 0 50%, var(--brand-blue) 0 75%, var(--brand-green) 0); display: inline-block; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .blob, .float-card, .float-badge, .btn-shine::after, .kicker-dot, .spectrum, .marquee-track, .hero-scroll { animation: none !important; } }

/* ---------- categories grid ---------- */
.cat-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-card {
    position: relative; display: flex; flex-direction: column; gap: .15rem; overflow: hidden;
    border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--text);
    border: 1px solid var(--border); background: var(--surface);
    transition: transform .16s ease, box-shadow .16s ease;
}
.cat-card::before { content: ""; position: absolute; inset: 0; opacity: .13; transition: opacity .16s; }
.cat-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.cat-card:hover::before { opacity: .22; }
.hue-0::before { background: linear-gradient(135deg, var(--brand-red), transparent 70%); }
.hue-1::before { background: linear-gradient(135deg, var(--brand-yellow), transparent 70%); }
.hue-2::before { background: linear-gradient(135deg, var(--brand-blue), transparent 70%); }
.hue-3::before { background: linear-gradient(135deg, var(--brand-green), transparent 70%); }
.hue-4::before { background: linear-gradient(135deg, #c4b5fd, transparent 70%); }
.hue-5::before { background: linear-gradient(135deg, #f9a8d4, transparent 70%); }
.cat-count { position: absolute; top: .7rem; inset-inline-end: .9rem; font-size: 1.3rem; font-weight: 900; color: color-mix(in srgb, var(--text) 22%, transparent); }
.cat-code { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.cat-more { font-size: .78rem; color: var(--muted); }
.cat-card:hover .cat-more { color: var(--primary); }

/* ---------- featured editorial ---------- */
.featured-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.feat-hero {
    grid-column: span 2; grid-row: span 2; position: relative; overflow: hidden;
    border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
    min-height: 420px; display: block;
}
.feat-hero img { width: 100%; height: 100%; object-fit: contain; padding: 1.4rem; transition: transform .5s ease; }
.feat-hero:hover img { transform: scale(1.05); }
.feat-overlay {
    position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: 1.1rem 1.2rem; color: #fff;
    background: linear-gradient(0deg, rgba(10,14,28,.82), transparent);
}
.feat-overlay strong { font-size: 1.15rem; }

/* ---------- why band ---------- */
.why-band { background: var(--surface); border-block: 1px solid var(--border); padding: 2.6rem 0; }
.why-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.why-card h3 { margin: .7rem 0 .3rem; font-size: 1rem; }
.why-card p { color: var(--text-2); font-size: .9rem; margin: 0; }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.wi-r { background: color-mix(in srgb, var(--brand-red) 18%, var(--surface)); color: #dc2626; }
.wi-y { background: color-mix(in srgb, var(--brand-yellow) 22%, var(--surface)); color: #b45309; }
.wi-b { background: color-mix(in srgb, var(--brand-blue) 18%, var(--surface)); color: #2563eb; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 3rem 1.5rem; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #1d2440, #2b3a75); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: .3rem; }
.cta-band p { color: #c9d1ea; margin: 0 0 1.3rem; }
.cta-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.cta-blobs span:nth-child(1) { width: 260px; height: 260px; background: var(--brand-red); top: -90px; inset-inline-start: -60px; }
.cta-blobs span:nth-child(2) { width: 240px; height: 240px; background: var(--brand-blue); bottom: -110px; inset-inline-end: -40px; }
.cta-blobs span:nth-child(3) { width: 180px; height: 180px; background: var(--brand-green); top: -60px; inset-inline-end: 30%; }
.cta-btn { background: #fff; color: #1d2440; font-weight: 850; }
.cta-btn:hover { background: #eef1ff; color: #1d2440; }
@media (max-width: 640px) { .cta-band { padding: 2.2rem 1rem; } }

/* ---------- sections ---------- *//* ---------- sections ---------- */
.section { padding: 2.4rem 0 3rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.link-more { font-weight: 650; font-size: .92rem; }
.catalog-head { margin-bottom: .6rem; }
.catalog-head p { margin: 0 0 .4rem; }
.catalog-filter { display: flex; gap: .6rem; margin: 1rem 0 1.6rem; flex-wrap: wrap; }
.catalog-filter input[type="search"] {
    flex: 1; min-width: 220px; max-width: 460px;
    border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem; font: inherit; background: var(--surface); color: var(--text);
}
.catalog-filter input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- category chips ---------- */
.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.fchip {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid var(--border); border-radius: 999px;
    padding: .3rem .85rem; font-size: .82rem; font-weight: 650;
    color: var(--text-2); background: var(--surface); transition: border-color .12s, color .12s, background .12s;
}
.fchip small { color: var(--muted); font-weight: 500; }
.fchip:hover { border-color: var(--primary); color: var(--primary); }
.fchip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.fchip.active small { color: color-mix(in srgb, #fff 75%, transparent); }

/* ---------- design grid ---------- */
.design-grid {
    display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.design-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text); display: flex; flex-direction: column;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.design-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--text); }
.design-thumb { aspect-ratio: 1; background:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%, transparent 75%, var(--surface-2) 75%) 0 0/22px 22px,
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%, transparent 75%, var(--surface-2) 75%) 11px 11px/22px 22px,
    #fff; display: block; }
.design-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.design-meta { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .9rem .9rem; }
.design-meta strong {
    font-size: .92rem; font-weight: 700; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.chip {
    align-self: flex-start; font-size: .72rem; font-weight: 650; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: .1rem .55rem; border-radius: 999px; letter-spacing: .02em;
}

/* ---------- concept search ---------- */
.score-chip {
    align-self: flex-start; font-size: .74rem; font-weight: 750;
    color: var(--primary); background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    padding: .08rem .55rem; border-radius: 999px;
}

/* ---------- design detail ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--primary); }
.design-detail-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.design-visual {
    margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; box-shadow: var(--shadow);
}
.design-visual img { width: 100%; border-radius: calc(var(--radius) - 5px); }
.design-visual figcaption { margin-top: .7rem; font-size: .8rem; }
.design-code { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: .85rem; }
.design-desc { color: var(--text-2); max-width: 55ch; }
.design-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.3rem 0; }
.design-notes { color: var(--text-2); font-size: .9rem; padding-inline-start: 1.1rem; }
.design-notes li { margin: .3rem 0; }

/* ---------- forms / auth / account ---------- */
.auth-section { display: grid; place-items: center; min-height: 55vh; }
.auth-card, .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow); width: 100%;
}
.auth-card { max-width: 430px; }
.auth-form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.auth-form label, .account-grid form label { display: flex; flex-direction: column; gap: .3rem; }
.auth-form label span { font-size: .85rem; font-weight: 650; color: var(--text-2); }
input[type="text"], input[type="password"], input[type="email"], input[type="search"] {
    border: 1px solid var(--border); border-radius: 10px; padding: .6rem .9rem;
    font: inherit; background: var(--surface); color: var(--text); min-height: 44px;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.alert { border-radius: var(--radius-sm); padding: .65rem .9rem; font-size: .9rem; margin: .6rem 0; }
.alert-error { background: color-mix(in srgb, var(--err) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }
.alert-ok { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.account-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.account-grid .card h2 { margin-bottom: .6rem; }
.card-coming { border-style: dashed; }
.card form { margin-top: .7rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.card form label { width: 100%; }

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.page-info { color: var(--muted); font-size: .9rem; }

/* ---------- account hub ---------- */
.account-hub-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.account-hub-head p { margin: .2rem 0 0; }
.hub-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.4rem; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; color: var(--text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.stat-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card strong { font-size: 1.5rem; font-weight: 850; }
.stat-card span { color: var(--text-2); font-size: .88rem; }
.hub-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 2rem; }
.hub-link { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-link:hover { color: var(--text); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-link p { margin: .2rem 0 0; font-size: .88rem; }
.profile-create { max-width: 560px; }
.profile-form { align-items: stretch; }

/* ---------- notifications ---------- */
.notif-section { margin-bottom: 1.8rem; }
.chip-unread { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.notif-list li { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.notif-list li.unread { border-inline-start: 3px solid var(--primary); }
.notif-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); margin-top: .55rem; flex: none; }
.notif-list li.unread .notif-dot { background: var(--primary); }
.notif-body p { margin: 0; font-size: .92rem; }
.notif-body small { font-size: .76rem; }

/* ---------- addresses ---------- */
.address-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 1.4rem; }
.address-card.is-default { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.address-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.address-head h2 { margin: 0; font-size: 1rem; }
.chip-default { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.address-line { color: var(--text-2); font-size: .92rem; margin: .2rem 0; }
.address-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .8rem; }
.address-actions form { display: inline; }
.btn-danger { background: color-mix(in srgb, var(--err) 8%, var(--surface)); color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.btn-danger:hover { background: var(--err); color: #fff; }
.address-edit { position: relative; }
.address-edit summary { list-style: none; }
.address-edit summary::-webkit-details-marker { display: none; }
.address-edit[open] summary { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.edit-form { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--border); min-width: 240px; }
.add-address summary { cursor: pointer; }
.add-address summary h2 { margin: 0; }
.address-form { margin-top: 1rem; }
.form-cols { display: grid; gap: .8rem 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 1rem; }
.form-cols label { display: flex; flex-direction: column; gap: .3rem; }
.form-cols label span { font-size: .82rem; font-weight: 650; color: var(--text-2); }
.form-cols label.check { flex-direction: row; align-items: center; gap: .5rem; align-self: end; padding-bottom: .6rem; }
.form-cols label.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-cols .span2 { grid-column: span 2; }
select { border: 1px solid var(--border); border-radius: 10px; padding: .55rem .8rem; font: inherit; background: var(--surface); color: var(--text); min-height: 44px; }
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
@media (max-width: 620px) { .form-cols .span2 { grid-column: span 1; } }

/* ---------- orders ---------- */
.order-list { display: flex; flex-direction: column; gap: .7rem; }
.order-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; color: var(--text); text-decoration: none; }
.order-card:hover { color: var(--text); border-color: var(--primary); box-shadow: var(--shadow); }
.order-main { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.order-number { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }
.order-date { font-size: .8rem; }
.order-go { color: var(--muted); font-size: 1.4rem; line-height: 1; }
html[dir="ltr"] .order-go { transform: scaleX(-1); }

.status-chip {
    display: inline-block; padding: .16rem .7rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .01em;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap;
}
.st-submitted { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.st-delivered { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.st-cancelled { background: color-mix(in srgb, var(--err) 8%, var(--surface)); border-color: color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }
.st-shipped { background: color-mix(in srgb, var(--brand-yellow) 22%, var(--surface)); border-color: color-mix(in srgb, var(--brand-yellow) 55%, transparent); color: #92600a; }
.st-intransit { background: color-mix(in srgb, #06b6d4 12%, var(--surface)); border-color: color-mix(in srgb, #06b6d4 45%, transparent); color: #0e7490; }
.st-faileddelivery { background: color-mix(in srgb, #f97316 12%, var(--surface)); border-color: color-mix(in srgb, #f97316 45%, transparent); color: #c2410c; }
.st-returned { background: color-mix(in srgb, #8b5cf6 12%, var(--surface)); border-color: color-mix(in srgb, #8b5cf6 45%, transparent); color: #6d28d9; }
.st-ready { background: var(--surface-2); }
.status-lg { font-size: .92rem; padding: .3rem .9rem; }
.tracking-head { align-items: center; }

/* ---------- tracking detail ---------- */
.shipment-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.shipment-card { margin-bottom: .4rem; }
.shipment-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: .8rem 0 0; }
.shipment-meta div { display: flex; flex-direction: column; gap: .1rem; }
.shipment-meta dt { font-size: .76rem; color: var(--muted); font-weight: 650; }
.shipment-meta dd { margin: 0; font-size: .92rem; }
.tracking-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.timeline-title { margin-top: 1.8rem; }
.timeline { list-style: none; margin: 0 0 1.6rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-inline-start: 1.6rem; margin: .8rem 0; display: flex; gap: .6rem; align-items: baseline; }
.timeline-dot { position: absolute; inset-inline-start: 0; top: .42em; width: 12px; height: 12px; border-radius: 999px; background: var(--primary); border: 2.5px solid var(--primary-soft); }
.timeline strong { font-size: .95rem; }
.timeline small { display: block; }

/* ---------- password / misc ---------- */
.password-card { margin-bottom: 1rem; }
.password-card summary { cursor: pointer; }
.password-card summary h2 { margin: 0; }
.password-card form { margin-top: 1rem; max-width: 380px; }
.logout-row { margin-top: .4rem; }

/* ---------- order wizard ---------- */
.wizard-steps { display: flex; align-items: center; gap: .6rem; padding-top: 1.6rem; flex-wrap: wrap; }
.wstep { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; color: var(--muted); }
.wstep b { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; }
.wstep.current { color: var(--primary); }
.wstep.current b { background: var(--primary); border-color: var(--primary); color: #fff; }
.wstep.done { color: var(--ok); }
.wstep.done b { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.wstep-line { flex: 1; min-width: 24px; height: 2px; background: var(--border); }
.wizard-design-strip {
    display: flex; align-items: center; gap: .9rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: 1.1rem;
}
.wizard-design-strip img { width: 56px; height: 56px; object-fit: contain; border-radius: 9px; background: var(--surface-2); }
.wizard-design-strip div { display: flex; flex-direction: column; }
.wizard-cols { display: grid; gap: 1.1rem; grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 860px) { .wizard-cols { grid-template-columns: 1fr; } }
.wizard-card h2 { margin-bottom: .9rem; }
.wizard-card h3.mt { margin-top: 1.2rem; }
.wizard-filter { margin-bottom: 1rem; }
.pick-list { display: flex; flex-direction: column; gap: .5rem; max-height: 320px; overflow: auto; padding-inline-end: .2rem; }
.pick-item {
    display: flex; align-items: center; gap: .7rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .55rem .8rem; cursor: pointer; transition: border-color .12s, background .12s;
}
.pick-item:hover { border-color: var(--primary); }
.pick-item.picked { border-color: var(--primary); background: var(--primary-soft); }
.pick-item input[type="radio"] { accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.pick-body { display: flex; flex-direction: column; min-width: 0; }
.pick-body small { color: var(--muted); font-size: .78rem; }
.qty-row { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }
.qty-row span { font-size: .88rem; font-weight: 650; color: var(--text-2); }
.qty-row input { width: 110px; }
.notes-label { display: flex; flex-direction: column; gap: .3rem; margin-top: 1rem; }
.notes-label span { font-size: .82rem; font-weight: 650; color: var(--text-2); }
.wizard-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.price-panel { position: sticky; top: calc(var(--header-h) + 12px); }
.quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.quote-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--text-2); }
.quote-list li strong { color: var(--text); font-weight: 650; }
.quote-total {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    border-top: 2px solid var(--border); margin-top: .7rem; padding-top: .6rem; font-size: 1.05rem; font-weight: 800;
}
.issue-list { margin: .4rem 0 0; padding-inline-start: 1.1rem; }

/* ---------- empty ---------- */
.empty { background: var(--surface); border: 1px dashed var(--border); color: var(--text-2); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; }

/* ---------- footer ---------- */
.store-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1.4fr 1fr 1fr; padding: 2.2rem 0 1.6rem; }
.footer-grid p { color: var(--text-2); font-size: .9rem; max-width: 40ch; }
.footer-grid h3 { font-size: .92rem; margin-bottom: .5rem; }
.footer-grid a { display: block; color: var(--text-2); padding: .18rem 0; font-size: .9rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-base { border-top: 1px solid var(--border); padding: .8rem 0; }
.footer-base .container { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .design-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-inner { flex-wrap: wrap; padding-block: .55rem; row-gap: .55rem; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .account-name { display: none; }
}
@media (max-width: 520px) {
    .design-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
    .hero-inner { padding: 2.6rem 0 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}


/* ---------- order stepper ---------- */
.order-stepper { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1rem; flex-wrap: wrap; }
.ostep { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 750; color: var(--muted); }
.ostep b { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; }
.ostep.done { color: var(--ok); }
.ostep.done b { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.ostep.next { color: var(--primary); }
.ostep.next b { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); animation: pulse-step 2s ease-in-out infinite; }
@keyframes pulse-step { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 35%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.ostep-line { flex: 1; min-width: 26px; height: 2px; background: var(--border); }
.ostep-line.done { background: var(--ok); }
.cancelled-banner { margin-top: 1rem; }

/* ---------- hub badge ---------- */
.hub-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; vertical-align: middle; }

/* ---------- completeness ---------- */
.completeness { display: flex; flex-direction: column; gap: .25rem; min-width: 180px; align-items: flex-end; }
.completeness-bar { width: 180px; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.completeness-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow), var(--brand-blue), var(--brand-green)); transition: width .8s ease; }

/* ---------- misc ---------- */
.chip-active-link { border-color: var(--primary); color: var(--primary); }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.form-actions-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.shipment-mini { padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.shipment-mini:last-child { border-bottom: 0; }
.order-item { padding: .8rem 0; border-bottom: 1px dashed var(--border); }
.order-item:last-child { border-bottom: 0; }
.order-item-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.item-notes { color: var(--text-2); font-size: .85rem; margin: .2rem 0; }
.print-ops { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .45rem; }
.print-op { font-size: .78rem; font-weight: 700; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: .12rem .6rem; }

/* ---------- print ---------- */
@media print {
    .store-header, .store-footer, .no-print, .breadcrumbs, .wizard-steps, .hero-scroll { display: none !important; }
    body { background: #fff; }
    .card, .shipment-mini { box-shadow: none !important; border-color: #ddd !important; break-inside: avoid; }
    .store-main { padding: 0; }
}

/* ---------- deep responsive ---------- */
@media (max-width: 768px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .tracking-head { align-items: flex-start !important; }
    .hub-stats { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .hub-stats .stat-id { grid-column: span 2; }
    .pick-list { max-height: 260px; }
    .header-actions .btn-sm { padding: .35rem .7rem; }
    .notif-list li { flex-wrap: wrap; }
    .notif-list li form { margin-inline-start: auto; }
    .address-actions { flex-direction: column; align-items: stretch; }
    .address-actions form .btn { width: 100%; }
    .wizard-footer { flex-direction: column-reverse; align-items: stretch; }
    .wizard-footer .btn { width: 100%; }
    .row-actions { width: 100%; }
    .row-actions .btn { flex: 1; justify-content: center; }
    .completeness { align-items: flex-start; }
}
@media (max-width: 420px) {
    body { font-size: 14.5px; }
    .hub-stats { grid-template-columns: 1fr 1fr; }
    .stat-card strong { font-size: 1.15rem; }
    .design-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .hero-actions .btn { width: 100%; }
    .order-card { padding: .75rem .85rem; }
    .status-lg { font-size: .8rem; padding: .22rem .6rem; }
}

/* ---------- mascot band (پیرنگ‌خان) ---------- */
.mascot-band { display: flex; align-items: center; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); margin-top: .6rem; }
.mascot-img { width: 130px; height: 130px; flex: none; filter: drop-shadow(0 10px 18px rgba(19,26,42,.18)); animation: floaty 6s ease-in-out infinite; }
.mascot-bubble { position: relative; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 16px; padding: .9rem 1.2rem; flex: 1; }
.mascot-bubble::before { content: ""; position: absolute; top: 50%; inset-inline-start: -9px; width: 16px; height: 16px; background: inherit; border-inline-start: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-50%) rotate(45deg); }
html[dir="ltr"] .mascot-bubble::before { transform: translateY(-50%) rotate(-135deg); }
.mascot-bubble strong { color: var(--primary); font-size: .95rem; }
.mascot-bubble p { margin: .25rem 0 0; font-size: .95rem; color: var(--text); }
@media (max-width: 560px) { .mascot-band { flex-direction: column; text-align: center; } .mascot-bubble::before { display: none; } }
/* ============================================================
   THEME V2 — پیرنگ خان (orange / cream / dark) per mockups
   ============================================================ */
:root {
    --primary: #f97316;
    --primary-600: #ea580c;
    --primary-soft: #fff3ea;
    --bg: #faf7f2;
    --surface: #ffffff;
    --surface-2: #f5efe6;
    --border: #eae2d6;
    --text: #191512;
    --text-2: #6b6257;
    --muted: #9a9184;
    --header-bg: #111114;
    --radius: 16px;
}
.brand-crown { color: var(--primary); display: inline-grid; place-items: center; }
.brand-name { font-weight: 900; font-size: 1.25rem; color: #fff; letter-spacing: .01em; }
a.brand { display: inline-flex; align-items: center; gap: .5rem; }
a.brand .brand-name { color: #fff; }
.store-header {
    background: var(--header-bg);
    border-bottom: 1px solid #26262c;
    box-shadow: none;
}
.store-header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.main-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.header-inner .header-actions { margin-inline-start: auto; }
.main-nav a { color: #c9c9d2; font-size: .9rem; font-weight: 650; padding: .3rem 0; position: relative; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--primary); }
.header-search { background: #1d1d22; border: 1px solid #2c2c33; max-width: 430px; }
.header-search input { color: #e7e9f2; }
.header-search input::placeholder { color: #8b8b96; }
.header-search:focus-within { background: #232329; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.header-search button { color: #fff; background: var(--primary); margin: 3px; border-radius: 999px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: #e7e9f2; background: #1d1d22; border: 1px solid #2c2c33; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.header-actions .btn-primary { border-radius: 999px; }

/* hero v2 — dark */
.hero2 { position: relative; overflow: hidden; background: linear-gradient(160deg, #17181d 0%, #232019 55%, #191a20 100%); }
.hero2-inner { position: relative; z-index: 2; padding: 4.5rem 0 4rem; display: flex; justify-content: flex-start; }
.hero2-copy { max-width: 560px; }
.hero2-title { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 950; line-height: 1.2; margin: 0 0 .3rem; }
.hero2-accent { color: var(--primary); font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 900; margin: 0 0 .8rem; }
.hero2-sub { color: #b9bdc9; font-size: 1.02rem; max-width: 50ch; }
.hero2 .hero-actions { margin-top: 1.6rem; }
.hero2 .btn-primary { background: var(--primary); }
.hero2 .btn-primary:hover { background: var(--primary-600); }
.features2 { background: #17181d; border-bottom: 1px solid #26262c; padding: 1.1rem 0 1.6rem; position: relative; z-index: 2; }
.features2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem 1.6rem; }
.feat2 { text-align: center; color: #d7d9e2; font-size: .9rem; font-weight: 700; padding: .55rem .4rem; border: 1.5px solid #3a3b42; border-radius: 12px; }

/* category strip */
.catstrip-wrap { padding: 1.6rem 0; background: var(--bg); }
.catstrip-head { display: flex; align-items: center; gap: .6rem; }
.catstrip { display: flex; gap: .8rem; overflow-x: auto; scroll-behavior: smooth; flex: 1; padding: .4rem .2rem; scrollbar-width: none; }
.catstrip::-webkit-scrollbar { display: none; }
.catstrip-card {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-width: 150px; padding: .8rem 1rem; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.catstrip-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.catstrip-card strong { font-size: .9rem; }
.catstrip-card small { font-size: .74rem; }
.strip-hot { background: var(--primary); border-color: var(--primary); color: #fff; }
.strip-hot:hover { color: #fff; border-color: var(--primary-600); }
.strip-heart { color: #fff; }
.strip-arrow { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.strip-arrow:hover { color: var(--primary); border-color: var(--primary); }

/* wizard on cream */
.wizard .card { border-radius: var(--radius); }
.pick-label { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.pick-label span { font-size: .85rem; font-weight: 650; color: var(--text-2); }
.shirt-cols { display: grid; gap: 1.2rem; grid-template-columns: 320px minmax(0,1fr); align-items: start; }
@media (max-width: 900px) { .shirt-cols { grid-template-columns: 1fr; } }
.shirt-design-card { text-align: center; }
.shirt-design-img { width: 100%; border-radius: 12px; margin-bottom: .7rem; }
.shirt-love { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: .8rem 0; font-size: .88rem; color: var(--text-2); }
.love-icon { color: var(--primary); font-size: 1.1rem; }
.love-link { color: var(--primary); font-weight: 650; }
.shirt-note { margin: .9rem 0; padding: .7rem .8rem; border-radius: 12px; background: var(--surface-2); }
.shirt-note strong { font-size: .85rem; }
.swatch-row { display: flex; gap: .4rem; margin: .45rem 0; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); display: inline-block; }
.shirt-bonus { margin-top: .9rem; padding: .7rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent); }
.shirt-bonus strong { font-size: .85rem; color: var(--primary-600); }
.select-cols { display: grid; gap: 1.3rem; grid-template-columns: 300px minmax(0,1fr); align-items: start; }
@media (max-width: 900px) { .select-cols { grid-template-columns: 1fr; } }
.select-preview { position: sticky; top: calc(var(--header-h) + 12px); text-align: center; display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; background: linear-gradient(160deg, #fff, var(--primary-soft)); }
.select-preview-img { width: 100%; border-radius: 12px; }
.select-preview-meta { display: flex; flex-direction: column; gap: .1rem; }
.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.select-card { display: block; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); background: #fff; transition: border-color .15s, transform .15s; }
.select-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.select-card.picked { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.select-card .design-thumb { aspect-ratio: 1; display: block; }
.select-card img { width: 100%; height: 100%; object-fit: cover; }

/* concept-search mode toggle (sparkles icon inside search forms) */
.mode-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; flex: 0 0 auto; }
.mode-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-toggle:hover { color: var(--primary); border-color: var(--primary); }
.mode-toggle input:checked + svg { color: var(--primary-600); }
.mode-toggle input:checked ~ svg { filter: drop-shadow(0 0 4px rgba(43, 92, 255, .35)); }
.mode-toggle.compact { width: 30px; height: 30px; border-radius: 8px; }
.catalog-filter { display: flex; gap: 8px; align-items: center; }
.header-search { display: flex; align-items: center; gap: 6px; }

/* price on design cards */

/* ---------- two-row header + full-width beautiful search ---------- */
.store-header { padding-bottom: 0; }
.header-searchbar { padding: 10px 0 16px; }
.header-search { width: 100%; }
.hs-field {
    position: relative; display: flex; align-items: center; gap: 10px;
    background: #fff; border: 2px solid var(--border); border-radius: 18px;
    padding: 6px 8px 6px 18px; max-width: 860px; margin: 0 auto;
    transition: border-color .18s, box-shadow .18s; box-shadow: 0 3px 14px rgba(19,26,42,.05);
}
.hs-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(43,92,255,.12), 0 6px 20px rgba(19,26,42,.08); }
.hs-icon-mag { color: var(--muted); flex: 0 0 auto; }
.hs-field input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.02rem; padding: 10px 0; color: var(--text); min-width: 0; }
.hs-field input::placeholder { color: var(--muted); }
.mode-toggle.compact { width: 36px; height: 36px; border-radius: 10px; }
.hs-spark { color: var(--muted); transition: color .15s, transform .15s; }
.mode-toggle input:checked + .hs-spark, .mode-toggle input:checked ~ .hs-spark { color: var(--primary); transform: scale(1.12); filter: drop-shadow(0 0 5px rgba(43,92,255,.4)); }
.hs-go {
    flex: 0 0 auto; border: 0; cursor: pointer; border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff;
    font: inherit; font-weight: 700; font-size: .95rem; padding: 11px 28px;
    transition: filter .15s, transform .1s;
}
.hs-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
[dir="rtl"] .hs-field { padding: 6px 18px 6px 8px; }

/* ---------- hero: photo pinned inside the container, exactly under the search bar ---------- */
.hero2 { min-height: 0; display: block; }
.hero2-inner { position: relative; display: block; padding-top: 0; padding-bottom: 0; }
.hero2-photo { display: block; width: 100%; height: auto; }
.hero2-inner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(17,17,20,.72), rgba(17,17,20,.30) 52%, rgba(17,17,20,0) 100%); }
html[dir="ltr"] .hero2-inner::before { background: linear-gradient(90deg, rgba(17,17,20,.72), rgba(17,17,20,.30) 52%, rgba(17,17,20,0) 100%); }
.hero2-copy { position: absolute; z-index: 2; top: 0; bottom: 0; inset-inline-start: 0; max-width: 560px; height: fit-content; margin-block: auto; }
@media (max-width: 900px) {
    .hero2-photo { display: none; }
    .hero2-inner::before { display: none; }
    .hero2-copy { position: relative; top: auto; inset-inline-start: auto; padding: 2.5rem 0 2.75rem; max-width: none; }
}
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; row-gap: 0; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
    .header-searchbar { padding: 6px 0 12px; }
    .hs-field { border-radius: 14px; }
    .hs-go { padding: 10px 18px; }
}

/* featured card price chip (home) */
.design-card .design-thumb img { transition: transform .35s ease; }
.design-card:hover .design-thumb img { transform: scale(1.06); }

/* search bar fills the container width */
.header-searchbar .hs-field { max-width: none; width: 100%; }

/* full-width override for the new header search row */
.store-header .header-search { max-width: none; width: 100%; flex: 1; }
.store-header .header-searchbar { max-width: none; }

/* two-column required-info form (complete-profile) */
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
@media (max-width: 640px) { .form-grid-2col { grid-template-columns: 1fr; } }
.form-grid-2col label { display: flex; flex-direction: column; gap: .3rem; }
.form-grid-2col label span { font-size: .85rem; font-weight: 650; color: var(--text-2); }

/* ---------- «تیشرتت رو ببین» text button under design cards ---------- */
.design-card-wrap { position: relative; }
.preview-shirt-btn { cursor: pointer; }
.design-card-wrap .preview-shirt-btn {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    width: 100%; margin-top: .45rem; padding: .5rem .8rem;
    border-radius: 10px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 750;
    color: var(--primary-600, var(--primary));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.preview-shirt-btn:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }

/* ---------- preview popup ---------- */
.dpv-backdrop { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(10,10,14,.62); backdrop-filter: blur(4px); padding: 1rem; }
.dpv-backdrop.open { display: grid; }
.dpv-modal { position: relative; width: min(1280px, 94vw); max-height: 94vh; overflow: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 1.6rem 2rem 1.6rem; }
.dpv-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dpv-close:hover { color: var(--err); border-color: var(--err); }
.dpv-title { margin: 0 0 .5rem; font-size: 1.45rem; font-weight: 900; padding-inline-end: 56px; line-height: 1.45; }
.dpv-design-name { color: var(--text-2); font-weight: 650; font-size: 1.25rem; }
.dpv-stage { position: relative; display: grid; place-items: center; padding: .2rem 0 0; }
.dpv-canvas { width: min(640px, 68vw, calc(100vh - 430px)); height: auto; border-radius: 16px; margin-inline: auto; display: block; }
.dpv-row { display: flex; align-items: center; gap: .9rem; margin-top: .7rem; flex-wrap: wrap; justify-content: center; }
.dpv-label { font-size: 1.05rem; font-weight: 800; color: var(--text-2); min-width: 170px; }
.dpv-swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.dpv-swatch { width: 42px; height: 42px; border-radius: 999px; border: 2px solid var(--border); background: var(--sw, #fff); cursor: pointer; position: relative; }
.dpv-swatch:hover { transform: scale(1.1); }
.dpv-swatch.picked { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dpv-swatch-real { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6, #ef4444); }
.dpv-start { margin-top: 1.1rem; max-width: 520px; margin-inline: auto; display: block; font-size: 1.15rem; }
.dpv-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.dpv-chip { padding: .45rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 700;
  color: var(--text-2); background: var(--surface-2, #f1f3f9); border: 2px solid var(--border, #e5e8f0); }
.dpv-chip:hover { color: var(--text); border-color: var(--text-2); }
.dpv-chip.picked { color: var(--primary); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }

/* انتخاب‌های پاپ‌آپ پیش‌نمایش در ویزارد */
.preview-pick-note { margin-top: .6rem; padding: .55rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent); font-size: .82rem; display: flex; flex-direction: column; gap: .15rem; }
.preview-pick-note strong { font-size: .78rem; color: var(--primary-600); }

/* درباره ما / تماس با ما */
.about-page, .contact-page { max-width: 860px; }
.about-page h1, .contact-page h1 { margin-bottom: .4rem; }
.about-body { display: flex; flex-direction: column; gap: 1rem; margin: 1.4rem 0 1.6rem; line-height: 2.1; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.contact-card h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.contact-card p { margin-bottom: .45rem; line-height: 1.9; }
/* انتخابگر طرح داخل پنجره «طراحی تیشرت» */
.dpv-picker-hint { font-weight: 800; margin: 0 0 .7rem; }
.dpv-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; max-height: 46vh; overflow: auto; padding: 2px; }
.dpv-picker-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .5rem; border: 2px solid var(--border, #e5e8f0); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; }
.dpv-picker-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.dpv-picker-item span { font-size: .78rem; color: var(--text-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dpv-picker-item:hover { border-color: var(--primary); }
/* صفحه طرح: تصویر تمام‌عرض + مشخصات زیر آن */
/* تصویر طرح: تمام‌صفحه، حفظ نسبت، وسط‌چین */
.design-detail { overflow-x: clip; }
.design-hero {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: calc(100vh - 170px);
    overflow: hidden;
}
.design-hero img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; display: block; }
.design-hero figcaption { position: absolute; inset-inline-end: 1rem; bottom: .6rem; font-size: .78rem; color: #8b93a3; }


.design-specs h1 { margin-bottom: .4rem; }
.design-specs .design-code { color: var(--text-2, #5b6478); font-size: .85rem; letter-spacing: .04em; margin: 0 0 .5rem; }
.design-specs .chip { display: inline-block; margin-bottom: .6rem; }
.design-specs .design-desc { line-height: 2; margin: .8rem 0 1rem; }
.design-specs .design-notes { margin: 0 0 1.2rem; padding-inline-start: 1.2rem; line-height: 2; color: var(--text-2, #5b6478); }


/* ---------- PWA: دکمه نصب + راهنمای iOS ---------- */
.pwa-install-btn {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 90; padding: 11px 24px; border: 0; border-radius: 999px;
    background: var(--primary); color: #fff; font: inherit; font-weight: 700;
    cursor: pointer; box-shadow: 0 6px 22px rgba(17, 17, 20, .28);
    animation: pwa-pop .35s ease;
}
.pwa-install-btn:hover { background: var(--primary-600); }
.pwa-install-btn[hidden] { display: none; }
.pwa-ios-hint {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 90; max-width: min(92vw, 440px); padding: 12px 20px; border-radius: 14px;
    background: #111114; color: #fff; font-size: .85rem; line-height: 2; text-align: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3); cursor: pointer;
    animation: pwa-pop .35s ease;
}
@keyframes pwa-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
