@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --brand: #08742f;
    --brand-dark: #045522;
    --brand-deep: #033d19;
    --brand-bright: #20b91b;
    --brand-soft: #eaf5ec;
    --cream: #f5f4ed;
    --mist: #eef1ee;
    --paper: #ffffff;
    --ink: #1f2822;
    --muted: #6f7771;
    --line: #e3e7e3;
    --gold: #c48c2c;
    --danger: #b23b31;
    --success: #16833c;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow-sm: 0 5px 20px rgba(20, 45, 27, .07);
    --shadow: 0 14px 38px rgba(20, 45, 27, .10);
    --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
body.menu-open { overflow: hidden; }
main { min-height: 45vh; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
ul { list-style: none; margin: 0; padding: 0; }
input, select, textarea {
    min-height: 46px;
    border: 1px solid #d8ddd9;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(8, 116, 47, .11);
}
:focus-visible { outline: 3px solid rgba(8, 116, 47, .3); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.icon {
    width: 1.35em;
    height: 1.35em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.hp-field { position: absolute !important; right: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.skip-link {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 999;
    transform: translateY(-150%);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    padding: 9px 15px;
    box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.announcement-bar { background: var(--brand-deep); color: #e8f7ec; font-size: 14px; }
.announcement-bar .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.announcement-bar a { display: inline-flex; align-items: center; gap: 7px; direction: ltr; }
.announcement-bar .icon { width: 17px; height: 17px; }
.header { position: relative; z-index: 80; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(340px, 540px) minmax(300px, 1fr); align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; color: var(--brand-dark); }
.brand-mark { width: 58px; height: 58px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 24px; font-weight: 900; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.header-search { height: 52px; display: flex; align-items: center; overflow: hidden; border: 1px solid #ecefed; border-radius: 17px; background: #f6f7f6; transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: rgba(8,116,47,.45); box-shadow: 0 0 0 4px rgba(8,116,47,.08); }
.header-search input { flex: 1; min-width: 0; height: 100%; padding: 0 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; }
.header-search input:focus { box-shadow: none; }
.header-search button { width: 48px; height: 42px; margin-left: 5px; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--brand); color: #fff; box-shadow: 0 7px 16px rgba(8,116,47,.22); }
.header-search button:hover { background: var(--brand-dark); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.theme-toggle { position: relative; width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-dark); transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(8,116,47,.35); background: var(--brand-soft); }
.theme-toggle__icon { display: grid; place-items: center; }
.theme-toggle__icon .icon { width: 21px; height: 21px; }
.theme-toggle__sun { display: none; }
.header-action { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 12px; transition: background .2s; }
.header-action:hover { background: var(--brand-soft); }
.header-action__icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--brand-dark); }
.header-action__icon .icon { width: 22px; height: 22px; }
.header-action > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.header-action small { color: var(--muted); font-size: 11px; }
.header-action strong { max-width: 105px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 750; white-space: nowrap; }
.cart-count {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.mobile-menu-toggle, .mobile-menu-close { display: none; }

.navbar { position: relative; z-index: 70; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(20,45,27,.035); }
.navbar-inner { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-list { display: flex; align-items: stretch; gap: 2px; }
.nav-list > li { position: relative; display: flex; }
.nav-list > li > a, .nav-categories__toggle {
    min-height: 53px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #343b36;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}
.nav-list > li > a .icon, .nav-categories__toggle .icon { width: 18px; height: 18px; color: #5f6861; }
.nav-list > li > a:hover, .nav-list > li > a.active, .nav-categories__toggle:hover, .nav-categories__toggle.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-categories__toggle .icon { width: 15px; transition: transform .2s; }
.nav-categories__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: min(640px, 84vw);
    padding: 18px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    border: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: .18s ease;
}
.nav-categories:hover .nav-dropdown, .nav-categories:focus-within .nav-dropdown, .nav-categories.is-open .nav-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-dropdown__all { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 13px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--brand); font-size: 14px; font-weight: 800; }
.nav-dropdown__all .icon { width: 17px; }
.nav-dropdown__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.nav-dropdown__grid a { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 10px; color: #485049; font-size: 14px; }
.nav-dropdown__grid a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-dropdown__icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.nav-dropdown__icon .icon { width: 16px; height: 16px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 14px; font-weight: 800; direction: ltr; }
.nav-phone .icon { width: 19px; }
.menu-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(8,25,14,.42); backdrop-filter: blur(2px); }

.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border: 1px solid; border-radius: 12px; font-size: 14px; }
.flash--success { background: #edf8f0; border-color: #a7d8b4; color: #13632d; }
.flash--error { background: #fff0ef; border-color: #e8b0ab; color: #8b2c26; }
.flash--info { background: #eef5ff; border-color: #b8ceed; color: #315d94; }

/* Shared buttons and section headings */
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 23px;
    border: 1px solid var(--brand);
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(8,116,47,.16);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 12px 26px rgba(8,116,47,.21); }
.btn--outline, .btn.btn-outline { background: transparent; color: var(--brand); box-shadow: none; }
.btn--outline:hover, .btn.btn-outline:hover { background: var(--brand-soft); }
.btn-danger { border-color: var(--danger); background: var(--danger); }
.btn-sm { min-height: 36px; padding: 6px 13px; border-radius: 10px; font-size: 13px; }
.text-link, .see-all { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 14px; font-weight: 750; }
.text-link { border-bottom: 1px solid rgba(8,116,47,.28); }
.see-all .icon, .text-link .icon { width: 17px; }
.section-head { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 2px 0 0; color: #2f3531; font-size: clamp(21px, 2.2vw, 28px); font-weight: 850; }
.section-eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; }
.section { padding: 58px 0; }

/* Home hero */
.hero { padding: 52px 0 38px; }
.hero-shell { min-height: 410px; display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.55fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, #fff 10%, #f5f7f4); box-shadow: var(--shadow-sm); }
.hero-copy { padding: clamp(34px, 4.8vw, 66px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--brand); font-size: 14px; font-weight: 850; }
.hero-kicker .icon { width: 18px; }
.hero h1 { max-width: 520px; margin-bottom: 17px; color: var(--brand-deep); font-size: clamp(31px, 3.7vw, 51px); font-weight: 950; letter-spacing: -.8px; }
.hero-copy > p { max-width: 530px; margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 19px; }
.hero-actions .icon { width: 18px; }
.hero-notes { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 14px; color: #556057; font-size: 13px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 5px; }
.hero-notes .icon { width: 16px; color: var(--brand); }
.hero-media { position: relative; min-height: 410px; overflow: hidden; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(245,247,244,.94) 100%); pointer-events: none; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-media__label { position: absolute; z-index: 2; left: 25px; bottom: 25px; min-width: 210px; padding: 13px 16px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; background: rgba(255,255,255,.90); box-shadow: var(--shadow-sm); backdrop-filter: blur(7px); }
.hero-media__label strong { color: var(--brand-dark); font-size: 15px; }
.hero-media__label span { color: var(--muted); font-size: 12px; }

/* Product rails */
.sale-section { padding: 34px 0 46px; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; }
.sale-heading { margin-bottom: 26px; padding: 8px 20px; text-align: center; border-radius: 8px; background: rgba(35,203,27,.48); }
.sale-heading span { display: block; margin-bottom: 1px; color: #dff7de; font-size: 12px; font-weight: 700; }
.sale-heading h2 { margin: 0; font-size: clamp(19px, 2vw, 26px); font-weight: 900; }
.rail-wrap { position: relative; }
.product-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(225px, 1fr); gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; padding: 3px 1px 10px; }
.product-track::-webkit-scrollbar { display: none; }
.product-track > * { scroll-snap-align: start; }
.slider-button { position: absolute; top: 45%; z-index: 5; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.94); color: var(--brand); box-shadow: var(--shadow-sm); }
.slider-button:hover { background: var(--brand); color: #fff; }
.slider-button .icon { width: 20px; }
.slider-button--prev { right: -17px; transform: rotate(180deg); }
.slider-button--next { left: -17px; }

.product-card { position: relative; min-height: 358px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #edf0ed; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 5px 16px rgba(20,45,27,.07); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,45,27,.12); }
.product-card__badges { position: absolute; z-index: 3; top: 14px; right: 14px; left: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.product-card__tag, .product-card__soldout { padding: 4px 9px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 750; line-height: 1.5; }
.product-card__tag { background: var(--tag-color, var(--brand)); }
.product-card__soldout { background: #747a75; }
.product-card__media { height: 192px; display: grid; place-items: center; padding: 25px 18px 8px; background: #fff; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__body { flex: 1; padding: 11px 17px 16px; display: flex; flex-direction: column; }
.product-card__category { color: var(--muted); font-size: 11px; }
.product-card h3 { min-height: 48px; margin: 3px 0 9px; font-size: 14px; font-weight: 750; line-height: 1.75; }
.product-card h3 a:hover { color: var(--brand); }
.product-card__price { min-height: 51px; margin-top: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.product-card__old-price { order: 1; color: #9da39e; font-size: 11px; text-decoration: line-through; }
.product-card__discount { order: 2; padding: 2px 7px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 850; }
.product-card__price strong { order: 3; width: 100%; color: #202621; font-size: 14px; }
.product-card__add { position: absolute; left: 14px; bottom: 15px; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--brand); border-radius: 11px; background: #fff; color: var(--brand); transition: width .2s ease, background .2s, color .2s; }
.product-card__add .icon { width: 18px; }
.product-card__add span { width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 750; }
.product-card__add:hover, .product-card__add:focus-visible { width: 122px; display: flex; gap: 6px; background: var(--brand); color: #fff; }
.product-card__add:hover span, .product-card__add:focus-visible span { width: auto; }
.view-all-card { min-height: 358px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 24px; background: rgba(255,255,255,.10); color: #fff; }
.view-all-card > span { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 15px; }
.view-all-card strong { font-size: 16px; }
.view-all-card small { color: #cfe8d5; font-size: 12px; }

/* Keep the weekly-offer cards compact on desktop, even when the rail has few items. */
@media (min-width: 681px) {
    .sale-section .product-track {
        grid-auto-columns: clamp(240px, 22vw, 290px);
        justify-content: safe center;
    }
    .sale-section .product-card__media {
        flex: 0 0 192px;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .sale-section .product-card__media img {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        max-height: 100%;
        object-fit: contain;
    }
}

.category-rail { padding: 45px 0 50px; }
.category-rail--cream { background: var(--cream); }
.category-rail--gray { background: var(--mist); }
.category-rail .product-track { grid-auto-columns: minmax(220px, .25fr); }
.category-rail .slider-button--prev { right: -14px; }
.category-rail .slider-button--next { left: -14px; }

.catalog-empty { min-height: 180px; padding: 30px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px dashed #cbd4cc; border-radius: var(--radius); background: #f8faf8; color: var(--muted); }
.catalog-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--brand-soft); color: var(--brand); }
.catalog-empty > span .icon { width: 28px; }
.catalog-empty strong { color: var(--ink); }
.catalog-empty p { margin: 4px 0 0; font-size: 14px; }
.catalog-empty--dark { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #d8eddd; }
.catalog-empty--dark strong { color: #fff; }
.catalog-empty--dark > span { background: rgba(255,255,255,.16); color: #fff; }

/* Campaign tiles */
.promo-section { padding: 58px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.promo-card { position: relative; min-height: 275px; display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #f7f8f6; box-shadow: var(--shadow-sm); }
.promo-card > img { grid-column: 1; width: 100%; height: 100%; object-fit: cover; }
.promo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,248,246,.99) 34%, rgba(247,248,246,.86) 49%, rgba(247,248,246,.50) 64%, rgba(247,248,246,.16) 78%, transparent 90%); pointer-events: none; }
.promo-card__copy { position: relative; z-index: 2; grid-column: 2; grid-row: 1; padding: 28px 12px 28px 25px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo-card__copy > span { color: var(--brand); font-size: 12px; font-weight: 750; }
.promo-card__copy h2 { margin: 5px 0 18px; color: var(--brand-dark); font-size: clamp(21px,2.1vw,29px); }
.promo-card__copy strong { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; }
.promo-card__copy strong .icon { width: 15px; }

.story-banner { padding: 64px 0; background: #fff; }
.story-banner__grid { min-height: 420px; display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border-radius: 28px; background: var(--brand-soft); }
.story-banner__image { min-height: 420px; overflow: hidden; }
.story-banner__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.story-banner__copy { padding: clamp(35px,5vw,72px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.story-banner__copy h2 { margin: 7px 0 16px; color: var(--brand-deep); font-size: clamp(26px,3.1vw,40px); }
.story-banner__copy p { max-width: 620px; margin-bottom: 24px; color: #586159; line-height: 2.1; }

/* Journal */
.journal-section { padding: 52px 0 72px; background: #f8faf8; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.blog-card__media { height: 210px; display: block; overflow: hidden; }
.blog-card__media img, .blog-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__body, .blog-card .body { padding: 19px 20px 22px; }
.blog-card__body > span { color: var(--muted); font-size: 12px; }
.blog-card h3 { min-height: 53px; margin: 5px 0 8px; font-size: 16px; }
.blog-card h3 a:hover { color: var(--brand); }
.blog-card p, .blog-card .excerpt { margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 13px; font-weight: 750; }
.blog-card__link .icon { width: 15px; }

/* Footer */
.trust-strip { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.trust-item { min-height: 72px; padding: 11px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 14px; background: #f3f4f2; }
.trust-item > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand); }
.trust-item .icon { width: 21px; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: #303731; font-size: 13px; }
.trust-item small { color: var(--muted); font-size: 11px; }
.footer { padding: 42px 0 20px; border-top: 1px solid var(--line); background: #fff; color: #4d554f; }
.footer-brand-row { padding-bottom: 25px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--brand-dark); }
.footer-brand img { width: 62px; height: 62px; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand strong { font-size: 22px; }
.footer-brand small { color: var(--muted); font-size: 12px; }
.footer-brand-row > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0,1fr)); gap: 38px; }
.footer h2 { margin-bottom: 15px; color: #303731; font-size: 15px; }
.footer li { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.footer li a:hover { color: var(--brand); }
.footer-contact p { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.footer-contact .icon { width: 18px; margin-top: 4px; color: var(--brand); }
.footer-note { color: var(--muted); font-size: 13px; line-height: 2; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf0ed; color: var(--brand-dark); }
.social-links a:hover { background: var(--brand); color: #fff; }
.social-links .icon { width: 19px; }
.footer-bottom { padding-top: 19px; margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #89908a; font-size: 12px; }
.footer-bottom__copy { display: flex; flex-direction: column; gap: 4px; }
.developer-signature { flex: 0 0 auto; direction: ltr; }
.developer-signature img { display: block; width: 220px; height: auto; }
.mobile-dock { display: none; }
.site-toast { position: fixed; z-index: 150; left: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 40px)); padding: 13px 17px; border-radius: 13px; background: #1e2921; color: #fff; box-shadow: var(--shadow); font-size: 14px; }
.site-toast.is-error { background: #8c3029; }

/* Listing and common content */
.page-hero { padding: 42px 0 32px; background: linear-gradient(180deg,#f6f9f6,#fff); border-bottom: 1px solid #edf0ed; }
.page-hero h1 { margin: 0 0 7px; color: var(--brand-deep); font-size: clamp(27px,3vw,39px); }
.page-hero p { max-width: 680px; margin: 0; color: var(--muted); }
.products-layout { padding: 34px 0 68px; }
.catalog-toolbar { margin-bottom: 25px; padding: 18px; display: grid; grid-template-columns: minmax(220px,1fr) 220px 210px auto; gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: #f8faf8; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; padding: 9px 13px; background: #fff; }
.catalog-toolbar .btn { min-height: 46px; }
.catalog-meta { margin-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.product-grid .product-card { min-width: 0; }
.pagination { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #556058; font-size: 13px; }
.pagination .active { border-color: var(--brand); background: var(--brand); color: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.empty-state { padding: 55px 25px; text-align: center; border: 1px dashed #cfd6d0; border-radius: 22px; background: #f8faf8; }
.empty-state .icon { width: 42px; height: 42px; color: var(--brand); }
.empty-state h2 { margin: 12px 0 7px; font-size: 21px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: 14px; }

.surface { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.form-card { padding: 25px; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; color: #3e4740; font-size: 14px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 13px; font-weight: 400; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 400; }
.alert { margin-bottom: 15px; padding: 11px 14px; border: 1px solid; border-radius: 11px; font-size: 14px; }
.alert--error { border-color: #ebbbb6; background: #fff3f2; color: #8f3129; }
.alert--success { border-color: #add9b8; background: #eff9f1; color: #176c32; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.auth-shell { padding: 58px 0 76px; background: linear-gradient(180deg,#f2f7f3,#fff); }
.auth-card { width: min(100% - 40px, 460px); margin-inline: auto; }
.auth-card__head { margin-bottom: 18px; text-align: center; }
.auth-card__head h1 { margin-bottom: 6px; color: var(--brand-deep); font-size: 26px; }
.auth-card__head p { color: var(--muted); font-size: 14px; }
.auth-switch { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--brand); font-weight: 750; }

/* Product detail */
.product-detail { padding: 44px 0 70px; }
.breadcrumbs { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--brand); }
.product-detail__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 45px; align-items: start; }
.product-gallery__main { height: 500px; display: grid; place-items: center; padding: 35px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fafbfa; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs { margin-top: 12px; display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumb { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gallery-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,116,47,.1); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary { padding-top: 8px; }
.product-summary__category { color: var(--brand); font-size: 13px; font-weight: 750; }
.product-summary h1 { margin: 8px 0 12px; color: var(--brand-deep); font-size: clamp(27px,3vw,39px); }
.product-tag { display: inline-flex; padding: 4px 10px; border-radius: 7px; background: var(--tag-color,var(--brand)); color: #fff; font-size: 12px; }
.product-summary__lead { margin: 17px 0; color: var(--muted); line-height: 2; }
.price-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.price-row .old { color: #999f9a; font-size: 14px; text-decoration: line-through; }
.price-row .discount-badge { padding: 3px 8px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.price-row .final { width: 100%; color: var(--brand-deep); font-size: 23px; font-weight: 900; }
.stock-status { margin: 15px 0; display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 14px; }
.stock-status--out { color: var(--danger); }
.purchase-row { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.quantity-input { width: 82px; padding: 10px; text-align: center; }
.product-description { margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.product-description h2 { font-size: 17px; }
.product-description div { color: var(--muted); font-size: 15px; line-height: 2.1; }
.related-products { margin-top: 55px; }

/* Cart, checkout and account */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 28px; align-items: start; }
.cart-items { overflow: hidden; }
.cart-item { padding: 16px; display: grid; grid-template-columns: 84px minmax(0,1fr) auto auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__image { width: 84px; height: 84px; display: grid; place-items: center; padding: 7px; border-radius: 13px; background: #f7f9f7; }
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__info a { font-size: 14px; font-weight: 750; }
.cart-item__info span { display: block; margin-top: 5px; color: var(--brand-dark); font-size: 13px; }
.cart-quantity { width: 70px; padding: 8px; text-align: center; }
.link-danger { padding: 7px; border: 0; background: transparent; color: var(--danger); font-size: 13px; }
.order-summary { position: sticky; top: 18px; padding: 22px; }
.order-summary h2 { margin-bottom: 15px; color: var(--brand-deep); font-size: 17px; }
.summary-row { margin: 9px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.summary-row--total { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--brand-deep); font-size: 16px; font-weight: 850; }
.order-summary .btn { width: 100%; margin-top: 10px; }
.checkout-form { padding: 25px; }
.order-list { overflow: hidden; }
.order-row { padding: 16px 18px; display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-row:last-child { border-bottom: 0; }
.order-row__date { color: var(--muted); }
.status-pill { padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 750; }
.content-page { padding: 50px 0 75px; }
.content-card { padding: clamp(24px,4vw,48px); }
.content-card h1 { color: var(--brand-deep); font-size: clamp(26px,3vw,38px); }
.content-card p, .content-card li { color: #4f5851; line-height: 2.15; }
.about-story { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); gap: 32px; align-items: center; }
.about-story img { width: 100%; min-height: 330px; height: 100%; object-fit: cover; border-radius: 20px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.contact-info { padding: 25px; }
.contact-info__item { margin-bottom: 15px; display: flex; gap: 10px; color: var(--muted); }
.contact-info__item .icon { margin-top: 5px; color: var(--brand); }
.steps { counter-reset: order-step; padding: 0; }
.steps li { position: relative; padding: 15px 64px 15px 10px; margin-bottom: 8px; border-radius: 14px; background: #f7f9f7; list-style: none; }
.steps li::before { counter-increment: order-step; content: counter(order-step); position: absolute; top: 13px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 800; }
.article-header { max-width: 840px; margin: 0 auto 28px; text-align: center; }
.article-header h1 { margin-bottom: 10px; color: var(--brand-deep); font-size: clamp(27px,4vw,43px); }
.article-header p { margin: 0; color: var(--muted); }
.article-cover { width: min(100%, 980px); max-height: 520px; margin: 0 auto 32px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-sm); }
.article-content { max-width: 820px; margin-inline: auto; color: #465048; font-size: 16px; line-height: 2.2; }
.article-content p { margin-bottom: 1.25em; }
.blog-card h2 { min-height: 52px; margin: 0 0 8px; color: var(--brand-deep); font-size: 17px; }
.payment-result { width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--success); }
.payment-result--error { background: #fff0ee; color: var(--danger); }
.payment-result .icon { width: 34px; height: 34px; }

/* Admin */
.admin-body { padding-bottom: 0; background: #f3f5f3; }
.admin-wrap { min-height: 100vh; display: flex; background: #f3f5f3; }
.admin-sidebar { position: sticky; top: 0; width: 240px; height: 100vh; flex: 0 0 auto; background: var(--brand-deep); color: #dbe8de; }
.admin-sidebar h2 { margin: 0; padding: 23px 20px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255,255,255,.09); color: #fff; font-size: 18px; }
.admin-sidebar a { display: flex; align-items: center; gap: 8px; padding: 12px 20px; color: #d5e3d8; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-logout-form { margin-top: 12px; padding: 0 14px; }
.admin-logout-form button { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: transparent; color: #fff; text-align: right; }
.admin-logout-form button:hover { background: rgba(255,255,255,.09); }
.admin-main { min-width: 0; flex: 1; padding: 30px; }
.admin-topbar { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-topbar h1, .admin-topbar h2 { margin: 0; color: var(--brand-deep); font-size: 25px; }
.admin-card { padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
table.admin-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { padding: 12px; text-align: right; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
table.admin-table th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.admin-actions { display: flex; gap: 7px; align-items: center; }
.admin-inline-form { display: flex; gap: 8px; align-items: center; }
.admin-inline-form input, .admin-inline-form select { padding: 7px 9px; min-height: 38px; }
.admin-muted { color: var(--muted); font-size: 13px; }
.admin-image { width: 58px; height: 58px; padding: 4px; object-fit: contain; border-radius: 10px; background: #f6f8f6; }
.admin-form-actions { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.admin-card + .admin-card { margin-top: 20px; }
.admin-card h2, .admin-card h3 { color: var(--brand-deep); }
.btn-sm { min-height: 34px; padding: 6px 13px; border-radius: 9px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { border: 1px solid var(--brand); background: transparent; color: var(--brand); box-shadow: none; }
.btn-muted { border: 1px solid var(--line); background: #f5f7f5; color: #4e5850; box-shadow: none; }
.status-pill--active { background: #eaf7ed; color: #126b2c; }
.status-pill--inactive, .status-pill--cancelled { background: #fff0ee; color: #96352d; }
.status-pill--pending_payment { background: #fff6dd; color: #88640c; }
.status-pill--processing { background: #eaf5ec; color: var(--brand-dark); }
.status-pill--shipped { background: #e8f3fb; color: #23658d; }
.status-pill--delivered { background: #e5f7ea; color: #176c32; }
.current-media { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.current-media img { width: 96px; height: 96px; padding: 5px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
.order-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.order-detail-list { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.order-detail-list strong { color: var(--ink); }
.settings-help { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.admin-table small { display: block; margin-top: 3px; }
.message-unread { border-right: 4px solid var(--brand); }
.message-body { margin: 0; color: #424c44; line-height: 2; white-space: normal; }
.admin-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.admin-stat { padding: 19px; }
.admin-stat span { color: var(--muted); font-size: 13px; }
.admin-stat strong { display: block; margin-top: 4px; color: var(--brand-deep); font-size: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid label, .admin-field { display: flex; flex-direction: column; gap: 6px; color: #3e4740; font-size: 14px; }
.form-grid input, .form-grid select, .form-grid textarea, .admin-field input, .admin-field textarea { width: 100%; padding: 9px 11px; }
.checkbox-field { flex-direction: row !important; align-items: center; }
.checkbox-field input { width: auto; min-height: auto; }
.admin-mobile-toggle { display: none; }

@media (max-width: 1120px) {
    .header-inner { grid-template-columns: 190px minmax(260px,1fr) auto; gap: 18px; }
    .header-action > span:last-child { display: none; }
    .nav-list > li > a, .nav-categories__toggle { padding-inline: 10px; font-size: 13px; }
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .footer-grid { grid-template-columns: 1.4fr repeat(3,1fr); gap: 24px; }
    .admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .announcement-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-inner { min-height: 82px; grid-template-columns: auto 1fr auto; gap: 13px; }
    .mobile-menu-toggle { width: 42px; height: 42px; display: grid; grid-column: 1; grid-row: 1; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-dark); }
    .mobile-menu-toggle .icon { width: 23px; }
    .brand { grid-column: 2; grid-row: 1; justify-self: center; }
    .brand-mark { width: 48px; height: 48px; }
    .brand-copy strong { font-size: 20px; }
    .brand-copy small { display: none; }
    .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-bottom: 13px; }
    .header-actions { grid-column: 3; grid-row: 1; gap: 4px; }
    .header-action { padding: 3px; }
    .navbar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(340px, 88vw); overflow-y: auto; transform: translateX(105%); border: 0; box-shadow: -18px 0 45px rgba(4,31,14,.18); transition: transform .25s ease; }
    .navbar.is-open { transform: translateX(0); }
    .navbar-inner { min-height: 100%; padding: 70px 18px 22px; display: block; }
    .mobile-menu-close { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--brand-dark); }
    .nav-list { display: block; }
    .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
    .nav-list > li > a, .nav-categories__toggle { width: 100%; min-height: 51px; padding-inline: 5px; justify-content: flex-start; border-bottom: 0; font-size: 14px; }
    .nav-categories__toggle .icon { margin-right: auto; }
    .nav-dropdown { position: static; width: 100%; max-height: 0; padding: 0; overflow: hidden; visibility: visible; opacity: 1; transform: none; border: 0; border-radius: 0; box-shadow: none; transition: max-height .25s ease; }
    .nav-categories.is-open .nav-dropdown { max-height: 600px; padding: 5px 0 15px; }
    .nav-dropdown__grid { grid-template-columns: 1fr; }
    .nav-phone { margin-top: 22px; }
    .hero { padding-top: 30px; }
    .hero-shell { grid-template-columns: 1fr 1.15fr; min-height: 380px; }
    .hero-copy { padding: 31px; }
    .hero h1 { font-size: 34px; }
    .hero-notes { display: none; }
    .hero-media { min-height: 380px; }
    .promo-card { min-height: 240px; grid-template-columns: 1.25fr 1fr; }
    .story-banner__grid { grid-template-columns: 1fr 1.25fr; }
    .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .blog-card:last-child { display: none; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
    .catalog-toolbar { grid-template-columns: 1fr 1fr; }
    .product-detail__grid { gap: 28px; }
    .product-gallery__main { height: 410px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-story { grid-template-columns: 1fr; }
    .admin-sidebar { width: 205px; }
    .admin-main { padding: 22px; }
}

@media (max-width: 680px) {
    body { padding-bottom: 68px; font-size: 15px; }
    .container { width: min(100% - 26px, var(--container)); }
    .announcement-bar { font-size: 12px; }
    .announcement-bar .container { min-height: 32px; }
    .announcement-bar span:first-child { max-width: 62%; }
    .announcement-bar a span { display: none; }
    .header-inner { gap: 8px; }
    .brand-copy { display: none; }
    .brand-mark { width: 46px; height: 46px; }
    .header-action--account { display: none; }
    .header-action__icon { width: 40px; height: 40px; }
    .header-search { height: 48px; }
    .hero { padding: 19px 0 26px; }
    .hero-shell { display: flex; flex-direction: column-reverse; border-radius: 22px; }
    .hero-media { min-height: 270px; height: 270px; }
    .hero-media::after { background: linear-gradient(0deg, rgba(245,247,244,.98), transparent 38%); }
    .hero-media__label { right: 16px; left: auto; bottom: 14px; min-width: 175px; padding: 9px 12px; }
    .hero-copy { padding: 26px 22px 30px; align-items: stretch; }
    .hero h1 { font-size: 29px; letter-spacing: -.4px; }
    .hero-copy > p { font-size: 14px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
    .hero-actions .text-link { align-self: center; }
    .sale-section { padding: 25px 0 32px; }
    .sale-heading { margin-bottom: 18px; padding-inline: 9px; }
    .sale-heading h2 { font-size: 18px; }
    .product-track { grid-auto-columns: minmax(215px, 78vw); gap: 12px; padding-inline: 1px; }
    .slider-button { display: none; }
    .product-card__add { width: 36px; }
    .product-card__add span { display: none; }
    .product-card__add:hover, .product-card__add:focus-visible { width: 36px; display: grid; }
    .promo-section { padding: 34px 0; }
    .promo-grid { grid-template-columns: 1fr; gap: 14px; }
    .promo-card { min-height: 218px; }
    .promo-card__copy { padding: 18px 8px 18px 18px; }
    .category-rail { padding: 34px 0 38px; }
    .category-rail .product-track { grid-auto-columns: minmax(215px, 78vw); }
    .section-head { align-items: center; margin-bottom: 17px; }
    .section-head h2 { font-size: 21px; }
    .see-all { font-size: 12px; }
    .story-banner { padding: 38px 0; }
    .story-banner__grid { display: flex; flex-direction: column; border-radius: 22px; }
    .story-banner__image { min-height: 250px; height: 250px; }
    .story-banner__copy { padding: 28px 23px 32px; }
    .story-banner__copy h2 { font-size: 27px; }
    .journal-section { padding: 37px 0 45px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card:last-child { display: block; }
    .trust-strip { padding: 23px 0; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { justify-content: flex-start; }
    .footer { padding-top: 30px; }
    .footer-brand-row { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .developer-signature img { width: min(220px, 76vw); }
    .mobile-dock { position: fixed; right: 10px; bottom: 8px; left: 10px; z-index: 100; height: 58px; padding: 5px 12px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(215,222,216,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 10px 35px rgba(17,44,24,.18); backdrop-filter: blur(12px); }
    .mobile-dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #59625b; font-size: 10px; }
    .mobile-dock .icon { width: 21px; height: 21px; }
    .mobile-cart-count { position: absolute; top: 0; left: 23%; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 9px; }
    .site-toast { right: 16px; bottom: 79px; left: 16px; max-width: none; }
    .page-hero { padding: 29px 0 22px; }
    .products-layout { padding-top: 24px; }
    .catalog-toolbar { grid-template-columns: 1fr; padding: 14px; }
    .catalog-toolbar .btn { width: 100%; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .product-grid .product-card { min-height: 310px; border-radius: 17px; }
    .product-grid .product-card__media { height: 155px; padding-inline: 10px; }
    .product-grid .product-card__body { padding: 9px 12px 13px; }
    .product-grid .product-card h3 { min-height: 45px; font-size: 13px; }
    .product-grid .product-card__tag { font-size: 9px; }
    .product-detail { padding-top: 25px; }
    .product-detail__grid { grid-template-columns: 1fr; }
    .product-gallery__main { height: 350px; }
    .purchase-row { align-items: stretch; flex-direction: column; }
    .quantity-input { width: 100%; }
    .purchase-row .btn { width: 100%; }
    .cart-item { grid-template-columns: 70px minmax(0,1fr) auto; gap: 10px; }
    .cart-item__image { width: 70px; height: 70px; }
    .cart-item__quantity { grid-column: 2; }
    .cart-item__remove { grid-column: 3; grid-row: 2; }
    .order-row { grid-template-columns: 1fr 1fr; }
    .contact-grid { gap: 14px; }
    .auth-shell { padding-top: 38px; }
    .admin-wrap { display: block; }
    .admin-sidebar { position: static; width: 100%; height: auto; padding-bottom: 8px; }
    .admin-sidebar h2 { padding: 15px; }
    .admin-sidebar nav { display: flex; overflow-x: auto; }
    .admin-sidebar nav { scrollbar-width: none; }
    .admin-sidebar nav::-webkit-scrollbar { display: none; }
    .admin-sidebar a { flex: 0 0 auto; white-space: nowrap; }
    .admin-main { padding: 16px 12px; }
    .admin-grid, .form-grid { grid-template-columns: 1fr; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .admin-topbar .btn { width: 100%; }
    .admin-form-actions { align-items: stretch; flex-direction: column; }
    .admin-form-actions .btn { width: 100%; }
    .order-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-grid .product-card__media { height: 190px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
}

/* Dark mode */
html[data-theme="dark"] {
    color-scheme: dark;
    --brand: #42cb78;
    --brand-dark: #83dfa5;
    --brand-deep: #b1edc7;
    --brand-bright: #50dd48;
    --brand-soft: #173523;
    --cream: #101813;
    --mist: #141f18;
    --paper: #0c130f;
    --ink: #edf5ef;
    --muted: #9eaea3;
    --line: #293a2f;
    --shadow-sm: 0 6px 22px rgba(0, 0, 0, .22);
    --shadow: 0 16px 42px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { border-color: var(--line); background: #111c15; color: var(--ink); }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #7f9085; }
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .header,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .nav-dropdown,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .header-action__icon,
html[data-theme="dark"] .mobile-menu-toggle,
html[data-theme="dark"] .mobile-menu-close { background: #101a13; }
html[data-theme="dark"] .announcement-bar { background: #06100a; color: #d7e8dc; }
html[data-theme="dark"] .header { background: rgba(12,19,15,.97); }
html[data-theme="dark"] .header-search { border-color: var(--line); background: #142019; }
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .header-action:hover { background: #193425; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: grid; }
html[data-theme="dark"] .cart-count { border-color: #101a13; }
html[data-theme="dark"] .nav-list > li > a,
html[data-theme="dark"] .nav-categories__toggle { color: #d4dfd7; }
html[data-theme="dark"] .nav-list > li > a .icon,
html[data-theme="dark"] .nav-categories__toggle .icon { color: #a4b3a8; }
html[data-theme="dark"] .nav-dropdown__grid a { color: #c4d0c7; }

html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .trust-item strong,
html[data-theme="dark"] .footer h2 { color: var(--ink); }
html[data-theme="dark"] .hero-shell { background: linear-gradient(145deg, #111c15 10%, #17241b); }
html[data-theme="dark"] .hero-media::after { background: linear-gradient(90deg, transparent 60%, rgba(17,28,21,.95) 100%); }
html[data-theme="dark"] .hero-media__label { border-color: rgba(255,255,255,.16); background: rgba(13,23,16,.88); }
html[data-theme="dark"] .hero-notes { color: #b4c2b8; }
html[data-theme="dark"] .sale-section { background: linear-gradient(180deg, #145a2d 0%, #071e10 100%); }
html[data-theme="dark"] .slider-button { border-color: var(--line); background: rgba(18,29,22,.95); }
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-card__media,
html[data-theme="dark"] .product-card__add { border-color: var(--line); background: #121e17; }
html[data-theme="dark"] .product-card__price strong { color: var(--ink); }
html[data-theme="dark"] .catalog-empty,
html[data-theme="dark"] .empty-state { border-color: #385044; background: #111c15; }

html[data-theme="dark"] .promo-card { background: #131f17; }
html[data-theme="dark"] .promo-card::after { background: linear-gradient(90deg, rgba(19,31,23,.99) 34%, rgba(19,31,23,.86) 49%, rgba(19,31,23,.50) 64%, rgba(19,31,23,.16) 78%, transparent 90%); }
html[data-theme="dark"] .story-banner { background: var(--paper); }
html[data-theme="dark"] .story-banner__copy p { color: #adbbb1; }
html[data-theme="dark"] .journal-section { background: #0f1812; }
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .surface { background: #121e17; }

html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .footer { background: #0f1812; }
html[data-theme="dark"] .trust-item { background: #16221a; }
html[data-theme="dark"] .trust-item > span,
html[data-theme="dark"] .social-links a { background: #1b2a20; }
html[data-theme="dark"] .footer { color: #bdc9c0; }
html[data-theme="dark"] .footer-bottom { color: #829087; }
html[data-theme="dark"] .developer-signature img { filter: grayscale(1) brightness(0) invert(1); opacity: .86; }

html[data-theme="dark"] .page-hero { border-color: var(--line); background: linear-gradient(180deg,#101b14,var(--paper)); }
html[data-theme="dark"] .catalog-toolbar { background: #111c15; }
html[data-theme="dark"] .catalog-toolbar input,
html[data-theme="dark"] .catalog-toolbar select { background: #152219; }
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span { background: #121e17; color: #b9c6bc; }
html[data-theme="dark"] .field,
html[data-theme="dark"] .form-grid label,
html[data-theme="dark"] .admin-field { color: #cdd8d0; }
html[data-theme="dark"] .auth-shell { background: linear-gradient(180deg,#101b14,var(--paper)); }
html[data-theme="dark"] .product-gallery__main,
html[data-theme="dark"] .gallery-thumb,
html[data-theme="dark"] .cart-item__image { background: #111b15; }
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .content-card li,
html[data-theme="dark"] .article-content { color: #bdc9c0; }
html[data-theme="dark"] .steps li { background: #142019; }
html[data-theme="dark"] .payment-result--error { background: #351b1a; }

html[data-theme="dark"] .flash--success,
html[data-theme="dark"] .alert--success { border-color: #2d6741; background: #132b1c; color: #8de0a9; }
html[data-theme="dark"] .flash--error,
html[data-theme="dark"] .alert--error { border-color: #70403c; background: #321a19; color: #efaaa3; }
html[data-theme="dark"] .flash--info { border-color: #35516f; background: #17283a; color: #a9c9ed; }

html[data-theme="dark"] .header-search button,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .slider-button:hover,
html[data-theme="dark"] .product-card__discount,
html[data-theme="dark"] .product-card__add:hover,
html[data-theme="dark"] .product-card__add:focus-visible,
html[data-theme="dark"] .promo-card__copy strong,
html[data-theme="dark"] .pagination .active,
html[data-theme="dark"] .price-row .discount-badge,
html[data-theme="dark"] .steps li::before,
html[data-theme="dark"] .cart-count,
html[data-theme="dark"] .mobile-cart-count,
html[data-theme="dark"] .social-links a:hover { border-color: #18753d; background: #18753d; color: #fff; }
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .header-search button:hover { background: #229550; }
html[data-theme="dark"] .btn--outline,
html[data-theme="dark"] .btn.btn-outline,
html[data-theme="dark"] .btn-outline { border-color: var(--brand); background: transparent; color: var(--brand); }
html[data-theme="dark"] .btn--outline:hover,
html[data-theme="dark"] .btn.btn-outline:hover,
html[data-theme="dark"] .btn-outline:hover { background: var(--brand-soft); }
html[data-theme="dark"] .btn-danger { border-color: var(--danger); background: var(--danger); color: #fff; }
html[data-theme="dark"] .btn-muted { border-color: var(--line); background: #18251c; color: #c2cec5; }

html[data-theme="dark"] .mobile-dock { border-color: rgba(61,82,68,.9); background: rgba(15,25,18,.94); box-shadow: 0 10px 35px rgba(0,0,0,.4); }
html[data-theme="dark"] .mobile-dock a { color: #b2c0b6; }

@media (max-width: 680px) {
    html[data-theme="dark"] .hero-media::after { background: linear-gradient(0deg, rgba(17,28,21,.98), transparent 38%); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
