@font-face {
    font-family: Yekan;
    src: url(../fonts/YekanBakhFaNum-Regular.woff2);
}
:root {
    --bg: #f4faf6;
    --surface: #ffffff;
    --surface-2: #e6f5ec;
    --text: #10281c;
    --muted: #587061;
    --border: #d9eadf;
    --primary: #16a34a;
    --primary-dark: #0f7a37;
    --deep: #064e3b;
    --lime: #b6f23c;
    --sun: #fbbf24;
    --shadow: 0 14px 34px -16px rgba(6, 78, 59, .35);
    --footer: #06402f;
    --r: 20px;
}

[data-theme="dark"] {
    --bg: #0a1510;
    --surface: #122219;
    --surface-2: #1a3125;
    --text: #e8f5ec;
    --muted: #9db8a8;
    --border: #22402f;
    --primary: #34d36b;
    --primary-dark: #22b955;
    --deep: #052e22;
    --shadow: 0 14px 34px -16px rgba(0, 0, 0, .8);
    --footer: #07140d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Yekan;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    transition: background .3s, color .3s
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 10px
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px
}

/* ---------- header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border)
}

.bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 0
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.3rem;
    flex: none
}

.logo i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 1.05rem
}

/* ---------- nav ---------- */
nav {
    flex: 1;
    margin-inline-start: 16px;
    min-width: 0
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    list-style: none
}

nav a {
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
    color: var(--muted);
    transition: .2s;
    white-space: nowrap;
    font-size: .95rem;
    display: inline-block
}

nav a:hover {
    background: var(--surface-2);
    color: var(--primary-dark)
}

nav li {
    position: relative
}

nav .has-sub>a {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

nav .has-sub>a .chev {
    font-size: .62rem;
    transition: transform .2s
}

nav .has-sub:hover>a,
nav .has-sub:focus-within>a {
    background: var(--surface-2);
    color: var(--primary-dark)
}

[data-theme="dark"] nav .has-sub:hover>a,
[data-theme="dark"] nav .has-sub:focus-within>a {
    color: var(--primary)
}

nav .has-sub:hover>a .chev,
nav .has-sub:focus-within>a .chev,
nav .has-sub.open>a .chev {
    transform: rotate(180deg)
}

nav ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 240px;
    margin-top: 8px;
    padding: 8px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 40
}

nav ul.sub-menu::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -10px;
    height: 10px
}

nav .has-sub:hover>ul.sub-menu,
nav .has-sub:focus-within>ul.sub-menu,
nav .has-sub.open>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none
}

nav ul.sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--text);
    white-space: nowrap
}

nav ul.sub-menu a:hover {
    background: var(--surface-2);
    color: var(--primary-dark)
}

[data-theme="dark"] nav ul.sub-menu a:hover {
    color: var(--primary)
}

nav ul.sub-menu .mi {
    width: 22px;
    text-align: center;
    color: var(--primary-dark)
}

[data-theme="dark"] nav ul.sub-menu .mi {
    color: var(--primary)
}

nav ul.sub-menu .chev-side {
    margin-inline-start: auto;
    font-size: .62rem;
    transition: transform .2s
}

nav ul.sub-menu ul.sub-menu {
    top: -9px;
    inset-inline-start: 100%;
    margin-top: 0;
    margin-inline-start: 8px;
    min-width: 200px
}

nav ul.sub-menu ul.sub-menu::before {
    inset-inline: auto;
    inset-inline-start: -10px;
    top: 0;
    bottom: 0;
    height: auto;
    width: 10px
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    place-items: center;
    position: relative;
    transition: .2s
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.badge {
    position: absolute;
    top: -6px;
    inset-inline-start: -6px;
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 99px;
    display: grid;
    place-items: center;
    font-weight: 700
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: .2s
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px -10px var(--primary)
}

.btn-primary:hover {
    transform: translateY(-2px)
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border)
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.menu-toggle {
    display: none
}

.theme-sun {
    display: none
}

[data-theme="dark"] .theme-sun {
    display: inline
}

[data-theme="dark"] .theme-moon {
    display: none
}

/* ---------- slider (تصویر + CTA + prev/next) ---------- */
.slider-wrap {
    padding-top: 20px
}

.slider {
    position: relative;
    height: 460px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--deep)
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s, visibility .7s;
    overflow: hidden
}

.slide.active {
    opacity: 1;
    visibility: visible
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0
}

/* گرادیان ملایم پایین برای خوانایی دکمه */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(6, 78, 59, .55) 0%,
            rgba(6, 78, 59, .15) 30%,
            transparent 55%);
    pointer-events: none
}

/* دکمه CTA داخل هر اسلاید */
.slide-cta {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    inset-inline-start: 28px
}

.btn-lime {
    background: var(--lime);
    color: var(--deep);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45)
}

.btn-lime:hover {
    background: #fff;
    color: var(--deep);
    transform: translateY(-2px)
}

/* دکمه‌های ناوبری prev/next */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--deep);
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
    transition: .25s
}

.arrow:hover {
    background: var(--lime);
    color: var(--deep);
    transform: translateY(-50%) scale(1.06)
}

.arrow:active {
    transform: translateY(-50%) scale(.95)
}

.arrow.prev {
    inset-inline-end: 18px
}

.arrow.next {
    inset-inline-start: 18px
}

/* ---------- search ---------- */
.search-sec {
    position: relative;
    z-index: 6;
    margin-top: 36px
}

.search-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 22px 22px 18px;
    box-shadow: var(--shadow);
    max-width: 920px;
    margin: 0 auto
}

.search-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px
}

.search-card h3 i {
    color: var(--primary);
    margin-inline-end: 8px
}

.sform {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 10px
}

.field {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit
}

.field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent)
}

.sbox {
    position: relative
}

.sbox i {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted)
}

.sbox .field {
    padding-inline-start: 44px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem
}

.tags a {
    background: var(--surface-2);
    color: var(--primary-dark);
    padding: 0 14px;
    border-radius: 99px;
    font-weight: 500;
    transition: .2s
}

[data-theme="dark"] .tags a {
    color: var(--primary)
}

.tags a:hover {
    background: var(--primary);
    color: #fff
}

/* ---------- sections ---------- */
section {
    padding: 52px 0
}

section[id] {
    scroll-margin-top: 84px
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap
}

h2.title {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.5
}

.title::after {
    content: "";
    display: block;
    width: 54px;
    height: 5px;
    border-radius: 9px;
    background: var(--lime);
    margin-top: 6px
}

.sub {
    color: var(--muted)
}

.more {
    color: var(--primary-dark);
    font-weight: 700
}

[data-theme="dark"] .more {
    color: var(--primary)
}

.more i {
    margin-inline-start: 6px;
    font-size: .8rem
}

.cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px
}

.cat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 16px;
    text-align: center;
    transition: .25s
}

.cat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary)
}

.cat .ic {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: var(--surface-2);
    color: var(--primary-dark);
    transition: .25s
}

[data-theme="dark"] .cat .ic {
    color: var(--primary)
}

.cat:hover .ic {
    background: var(--primary);
    color: #fff
}

.cat b {
    display: block
}

.cat small {
    color: var(--muted)
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: .25s
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px)
}

.thumb {
    height: 160px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    color: #fff;
    position: relative;
    background: var(--g)
}

.tag {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--lime);
    color: var(--deep);
    font-size: .75rem;
    font-weight: 700;
    padding: 0 10px;
    border-radius: 99px
}

.fav {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #4b5b52;
    display: grid;
    place-items: center
}

.fav.on {
    color: #e5484d
}

.card .body {
    padding: 14px 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1
}

.rate {
    color: #f5a623;
    font-size: .8rem
}

.rate span {
    color: var(--muted);
    margin-inline-start: 6px
}

.card h3 {
    font-size: 1rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px
}

.cat-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--primary-dark);
    line-height: 1.6;
    white-space: nowrap
}

[data-theme="dark"] .cat-tag {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary)
}

.price {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.price s {
    color: var(--muted);
    font-size: .8rem;
    display: block;
    line-height: 1.3
}

.price strong {
    font-size: 1.05rem
}

.add {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: var(--surface-2);
    color: var(--primary-dark);
    transition: .2s
}

[data-theme="dark"] .add {
    color: var(--primary)
}

.add:hover {
    background: var(--primary);
    color: #fff
}

/* ---------- articles ---------- */
.arts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px
}

.acard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s
}

.acard:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--primary)
}

.athumb {
    position: relative;
    height: 150px;
    display: grid;
    place-items: center;
    font-size: 2.8rem;
    color: #fff;
    background: var(--g)
}

.acat {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: rgba(255, 255, 255, .92);
    color: var(--deep);
    font-size: .75rem;
    font-weight: 700;
    padding: 0 10px;
    border-radius: 99px
}

.abody {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1
}

.ameta {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: .8rem
}

.ameta i {
    margin-inline-end: 5px
}

.acard h3 {
    font-size: 1.02rem;
    line-height: 1.8
}

.acard p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.9
}

.aread {
    margin-top: auto;
    padding-top: 6px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .9rem
}

[data-theme="dark"] .aread {
    color: var(--primary)
}

.aread i {
    margin-inline-start: 6px;
    font-size: .75rem;
    transition: transform .2s
}

.acard:hover .aread i {
    transform: translateX(-4px)
}

/* ---------- side deco ---------- */
.side-deco {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(0px, calc((100vw - 1140px)/2 - 16px), 140px);
    pointer-events: none;
    z-index: 1;
    display: none
}

.side-deco.l {
    left: 8px
}

.side-deco.r {
    right: 8px
}

.side-deco svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 12px 16px rgba(6, 78, 59, .2))
}

.side-deco.l svg {
    transform: rotate(-3deg)
}

.side-deco.r svg {
    transform: rotate(3deg)
}

.side-deco .paper {
    fill: var(--surface);
    stroke: var(--border);
    stroke-width: 1.5
}

.side-deco .fold {
    fill: var(--surface-2);
    stroke: var(--border);
    stroke-width: 1
}

.side-deco .rule {
    stroke: var(--border);
    stroke-width: 1;
    fill: none
}

.side-deco .head-bar {
    fill: var(--surface-2)
}

.side-deco .ink {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.side-deco .ring {
    fill: var(--bg);
    stroke: var(--border);
    stroke-width: 1.5
}

@media (min-width:1300px) {
    .side-deco {
        display: block
    }
}

@media (prefers-reduced-motion:reduce) {
    .side-deco {
        display: none !important
    }
}

.promo {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 44px;
    color: #fff;
    background: linear-gradient(to left, #064e3b, #16a34a);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between
}

.promo::after {
    content: "\f1ad";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset-inline-start: -20px;
    bottom: -70px;
    font-size: 14rem;
    opacity: .1
}

.promo h2 {
    font-size: 1.7rem;
    font-weight: 900
}

.promo p {
    opacity: .92
}

.promo .btn {
    background: var(--lime);
    color: var(--deep);
    position: relative;
    z-index: 1
}

.perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px
}

.perk {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px
}

.perk i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--primary-dark);
    font-size: 1.25rem;
    flex: none
}

[data-theme="dark"] .perk i {
    color: var(--primary)
}

.perk b {
    display: block;
    line-height: 1.6
}

.perk span {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    display: block
}

.news {
    background: var(--surface-2);
    border-radius: 30px;
    padding: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between
}

.news h2 {
    font-size: 1.5rem;
    font-weight: 900
}

.news form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 280px;
    max-width: 460px
}

footer {
    background: var(--footer);
    color: #cfe8d9;
    padding: 46px 0 22px;
    margin-top: 30px
}

footer .logo {
    color: #fff
}

footer .logo i {
    background: var(--lime);
    color: var(--deep)
}

.cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px
}

footer h4 {
    margin-bottom: 8px;
    color: #fff
}

footer ul {
    list-style: none
}

footer li {
    padding: 2px 0
}

footer a:hover {
    color: var(--lime)
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 12px
}

.social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
    transition: .2s
}

.social a:hover {
    background: var(--lime);
    color: var(--deep)
}

.copy {
    text-align: center;
    font-size: .85rem;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    opacity: .85
}

/* ========== سبد خرید (drawer از سمت چپ) ========== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 90
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .35s cubic-bezier(.22, .8, .28, 1);
    z-index: 100;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.cart-drawer.open {
    transform: translateX(0)
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border)
}

.cart-head h3 {
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px
}

.cart-head h3 i {
    color: var(--primary)
}

.cart-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    place-items: center;
    transition: .2s
}

.cart-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    transition: .2s
}

.cart-item:hover {
    border-color: var(--primary)
}

.ci-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.5rem;
    flex: none;
    background: var(--g)
}

.ci-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.ci-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px
}

.ci-top h4 {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

.ci-remove {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    flex: none;
    transition: .2s
}

.ci-remove:hover {
    background: #fee2e2;
    color: #dc2626
}

.ci-cat {
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--primary-dark);
    align-self: flex-start
}

[data-theme="dark"] .ci-cat {
    color: var(--primary)
}

.ci-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    gap: 8px
}

.qty {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2px 4px;
    background: var(--surface)
}

.qty button {
    width: 26px;
    height: 26px;
    border: 0;
    background: var(--surface-2);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .75rem;
    transition: .2s
}

.qty button:hover {
    background: var(--primary);
    color: #fff
}

.qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem
}

.ci-price {
    font-size: .88rem;
    white-space: nowrap
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    text-align: center;
    color: var(--muted)
}

.cart-empty i {
    font-size: 3rem;
    color: var(--border)
}

.cart-empty p {
    font-weight: 700
}

.cart-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface)
}

.cart-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: .92rem;
    color: var(--muted)
}

.cart-row.total {
    font-size: 1.05rem;
    color: var(--text);
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px dashed var(--border)
}

.cart-row.total strong {
    color: var(--primary-dark)
}

[data-theme="dark"] .cart-row.total strong {
    color: var(--primary)
}

.cart-checkout {
    width: 100%;
    margin-top: 12px
}

.cart-clear {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 10px;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

.cart-clear:hover {
    background: #fee2e2
}

/* ---------- responsive ---------- */
@media (max-width:1000px) and (min-width:761px) {
    nav a {
        padding: 6px 10px;
        font-size: .88rem
    }

    .logo span {
        display: none
    }
}

@media (max-width:900px) {
    .slider {
        height: 420px
    }

    .cols {
        grid-template-columns: 1fr 1fr
    }

    .auth {
        grid-template-columns: 1fr
    }

    .auth-side {
        display: none
    }
}

@media (max-width:760px) {
    .menu-toggle {
        display: grid
    }

    nav {
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        display: none;
        margin: 0;
        padding: 10px 20px
    }

    nav.open {
        display: block
    }

    nav {
        max-height: calc(100vh - 70px);
        overflow-y: auto
    }

    nav li {
        position: static
    }

    nav .has-sub>a {
        display: flex;
        justify-content: space-between
    }

    nav ul.sub-menu,
    nav ul.sub-menu ul.sub-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin: 0 12px 6px;
        padding: 4px 8px;
        background: transparent;
        border: 0;
        border-radius: 0;
        border-inline-start: 2px solid var(--border);
        box-shadow: none
    }

    nav ul.sub-menu::before {
        display: none
    }

    nav .has-sub.open>ul.sub-menu {
        display: block
    }

    nav ul.sub-menu a {
        white-space: normal
    }

    nav ul.sub-menu .chev-side {
        transform: rotate(-90deg)
    }

    nav .has-sub.open>a .chev-side {
        transform: rotate(90deg)
    }

    nav ul {
        flex-direction: column
    }

    .sform {
        grid-template-columns: 1fr
    }

    .promo,
    .news {
        padding: 28px
    }
}

@media (max-width:560px) {
    .auth-btn span {
        display: none
    }

    .auth-btn {
        padding: 10px 14px
    }

    .slider {
        height: 340px;
        border-radius: 24px
    }

    .slide-cta {
        bottom: 18px;
        inset-inline-start: 18px
    }

    .arrow {
        width: 42px;
        height: 42px
    }

    .arrow.prev {
        inset-inline-end: 12px
    }

    .arrow.next {
        inset-inline-start: 12px
    }

    .cart-drawer {
        border-radius: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}