:root {
    --store-bg: #f5f7fb;
    --store-surface: #ffffff;
    --store-surface-soft: #f8faff;
    --store-ink: #111827;
    --store-muted: #6b7280;
    --store-line: #e6eaf1;
    --store-brand: #1677ff;
    --store-brand-2: #5b5cf0;
    --store-dark: #0a1020;
    --store-success: #16a34a;
    --store-danger: #e5484d;
    --store-radius-xl: 30px;
    --store-radius-lg: 22px;
    --store-radius-md: 16px;
    --store-shadow-sm: 0 6px 24px rgba(15,23,42,.055);
    --store-shadow-md: 0 18px 55px rgba(15,23,42,.09);
    --store-shadow-lg: 0 28px 80px rgba(15,23,42,.14);
    --store-container: 1240px;
    --store-ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Vazirmatn, sans-serif;
    background:
        radial-gradient(circle at 8% 5%, rgba(22,119,255,.07), transparent 24%),
        radial-gradient(circle at 92% 16%, rgba(91,92,240,.065), transparent 25%),
        var(--store-bg);
    color: var(--store-ink);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(22,119,255,.018), transparent 42%, rgba(91,92,240,.02));
    z-index: -1;
}

a { text-decoration: none; color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.container { width: min(var(--store-container), calc(100% - 36px)); margin-inline: auto; }
.card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,231,240,.9);
    border-radius: var(--store-radius-xl);
    box-shadow: var(--store-shadow-md);
}
.section { margin-top: 24px; padding: 32px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-size: clamp(1.25rem,2vw,1.55rem); letter-spacing: -.035em; }
.section-head::after {
    content: "";
    width: 54px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg,var(--store-brand),var(--store-brand-2));
    margin-right: auto;
}
.muted { color: var(--store-muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 15px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .22s var(--store-ease), box-shadow .22s var(--store-ease), background .22s var(--store-ease), border-color .22s var(--store-ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(22,119,255,.22); outline-offset: 2px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg,var(--store-brand),var(--store-brand-2));
    box-shadow: 0 12px 30px rgba(22,119,255,.22);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(22,119,255,.3); }
.btn-soft { background: #fff; color: var(--store-ink); border-color: var(--store-line); box-shadow: var(--store-shadow-sm); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: #fff;
    color: var(--store-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 50;
    margin-top: 12px;
    padding: 10px 12px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(220,226,237,.82);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(15,23,42,.07);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 950; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 15px; object-fit: cover; box-shadow: 0 7px 20px rgba(15,23,42,.13); }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }

.hero {
    margin-top: 24px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    min-height: 520px;
    background: #08101f;
    border: 0;
    box-shadow: 0 30px 90px rgba(8,16,31,.19);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22,119,255,.18), transparent 40%, rgba(91,92,240,.14));
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(22,119,255,.2);
    filter: blur(95px);
    right: 30%;
    top: -240px;
    pointer-events: none;
}
.hero-copy {
    position: relative;
    z-index: 2;
    padding: 64px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-copy .chip { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.14); color: #e8edf7; }
.hero-copy h1 { font-size: clamp(2.25rem,5vw,4.25rem); line-height: 1.15; margin: 20px 0 12px; letter-spacing: -.055em; }
.hero-copy p { color: #c8d0de; max-width: 650px; font-size: 1.02rem; margin: 4px 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn-soft { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.hero-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-image { position: relative; min-height: 520px; overflow: hidden; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#08101f 0,rgba(8,16,31,.58) 10%,transparent 42%,rgba(8,16,31,.08)); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.015); }

.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.quick { padding: 21px; text-align: center; transition: transform .22s var(--store-ease), box-shadow .22s var(--store-ease), border-color .22s; }
.quick:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,.1); border-color: rgba(22,119,255,.2); }
.quick strong { display: block; font-size: 1rem; }
.quick span { font-size: .82rem; color: var(--store-muted); }

.banner-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; }
.banner { position: relative; overflow: hidden; min-height: 280px; border-radius: 22px; background: #111827; box-shadow: var(--store-shadow-sm); }
.banner img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; transition: transform .5s var(--store-ease); }
.banner:hover img { transform: scale(1.045); }
.banner-body { position: absolute; inset: auto 0 0; padding: 24px; color: #fff; background: linear-gradient(transparent,rgba(0,0,0,.86)); display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.banner-body strong { font-size: 1.2rem; }

.products { display: grid; grid-template-columns: repeat(4,1fr); gap: 17px; }
.product { overflow: hidden; transition: transform .24s var(--store-ease), box-shadow .24s var(--store-ease), border-color .24s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 22px 52px rgba(15,23,42,.13); border-color: rgba(22,119,255,.18); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f2f4f8; display: block; }
.product-body { padding: 16px; }
.product-title { font-weight: 850; min-height: 54px; margin: 4px 0; letter-spacing: -.02em; }
.price { font-weight: 900; color: var(--store-brand); margin-top: 7px; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.list { display: grid; gap: 11px; }
.list-item { padding: 17px; border: 1px solid var(--store-line); border-radius: 17px; background: rgba(250,251,253,.8); }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.footer { padding: 45px 0 70px; color: var(--store-muted); text-align: center; }
.footer strong { display: block; color: var(--store-ink); font-size: 1.08rem; }
.empty { padding: 32px; text-align: center; color: var(--store-muted); border: 1px dashed #d5dce8; border-radius: 18px; background: #fafbfe; }

.store-mobile-dock { display: none; }

@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 46px; }
    .hero-image { min-height: 330px; max-height: 400px; }
    .products { grid-template-columns: repeat(3,1fr); }
    .quick-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
    .container { width: calc(100% - 18px); }
    .section { padding: 20px 16px; margin-top: 16px; }
    .topbar { top: 6px; margin-top: 6px; padding: 8px; }
    .actions .btn-soft:first-child { display: none; }
    .actions .btn { min-height: 42px; padding: 8px 12px; font-size: .78rem; }
    .hero { margin-top: 16px; border-radius: 24px; min-height: 0; }
    .hero-copy { padding: 34px 23px; }
    .hero-copy h1 { font-size: 2.35rem; }
    .hero-copy p { font-size: .94rem; }
    .hero-image { min-height: 240px; max-height: 300px; }
    .hero-image::after { background: linear-gradient(0deg,#08101f 0,transparent 45%); }
    .banner-grid, .content-grid { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2,1fr); gap: 11px; }
    .product-body { padding: 12px; }
    .product-title { font-size: .9rem; min-height: 48px; }
    .section-head { align-items: center; margin-bottom: 17px; }
    .section-head::after { display: none; }
    .section-head h2 { font-size: 1.15rem; }
    .quick-grid { gap: 10px; }
    .quick { padding: 16px 10px; }
    .store-mobile-dock {
        display: flex;
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        z-index: 100;
        min-height: 62px;
        padding: 7px;
        gap: 4px;
        background: rgba(255,255,255,.9);
        backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(220,226,237,.9);
        border-radius: 19px;
        box-shadow: 0 18px 55px rgba(15,23,42,.16);
    }
    .store-mobile-dock a, .store-mobile-dock button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: transparent; color: var(--store-muted); border-radius: 14px; font-size: .68rem; }
    .store-mobile-dock span { font-size: 1.15rem; line-height: 1.15; }
    .store-mobile-dock-primary { color: #fff !important; background: linear-gradient(135deg,var(--store-brand),var(--store-brand-2)) !important; box-shadow: 0 7px 20px rgba(22,119,255,.24); }
    .footer { padding-bottom: 100px; }
}

@media (max-width: 430px) {
    .brand img { width: 40px; height: 40px; border-radius: 13px; }
    .brand { font-size: .9rem; }
    .actions .store-header-call { display: none; }
    .hero-copy h1 { font-size: 2.05rem; }
    .hero-actions .btn { flex: 1; min-width: 0; font-size: .78rem; }
    .products { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .quick, .banner img, .product, .product img { transition: none; }
}
