/* ==========================================================================
   سرایکا — استایل فروشگاه (RTL)
   ========================================================================== */

/* ---------- Vazirmatn Local Font Setup ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- 1. Tokens & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--brown);
    line-height: 1.9;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-d); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .5em; color: var(--brown); font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--coral-soft); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--coral); color: #fff; padding: .5rem 1rem; border-radius: var(--r-s); z-index: 200; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 34px; height: 34px; stroke-width: 1.5; } .icon-sm { width: 1em; height: 1em; }

/* ---------- 2. Header ---------- */
.announce { background: var(--coral); color: #fff; text-align: center; padding: .4rem 1rem; font-size: .9rem; }
.site-header { position: sticky; top: 0; z-index: 60; padding: .7rem 0 .2rem; background: linear-gradient(var(--bg) 70%, transparent); }
.header-card { display: flex; align-items: center; gap: 1.2rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px; padding: .45rem 1.2rem; box-shadow: var(--shadow-s); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-inline: .5rem auto; }
.nav a { position: relative; text-decoration: none; color: var(--brown); font-weight: 500; padding: .3rem 0; }
.nav a[aria-current] { color: var(--coral-d); font-weight: 700; }
.nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--coral-soft); }
.nav a:hover { color: var(--coral-d); }
.search-form { display: flex; align-items: center; background: var(--bg); border-radius: 999px; border: 1px solid transparent; min-width: 15rem; }
.search-form:focus-within { border-color: var(--coral-soft); background: var(--card); }
.search-form input { border: 0; background: transparent; padding: .5rem 1rem; font: inherit; flex: 1; min-width: 0; color: var(--brown); }
.search-form input:focus { outline: none; }
.search-form button { border: 0; background: none; padding: 0 .9rem; cursor: pointer; color: var(--brown); }
.header-actions { display: flex; align-items: center; gap: .3rem; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--brown); text-decoration: none; }
.icon-btn:hover { background: var(--coral-50); color: var(--coral-d); }
.icon-btn .icon { width: 23px; height: 23px; }
.badge-count { position: absolute; top: 0; inset-inline-start: -2px; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 .3rem; line-height: 1; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-s); width: 42px; height: 42px; place-items: center; cursor: pointer; color: var(--brown); }

/* ---------- 3. Messages ---------- */
.toast-region { position: fixed; inset-inline: 0; top: 92px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 1rem; }
.flash { pointer-events: auto; padding: .7rem 1.2rem; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 34rem; }
.flash-success { border-color: var(--sage-d); background: var(--sage-100); color: var(--brown); }
.flash-error { border-color: var(--coral-d); background: var(--coral-50); color: var(--brown); }
.flash-info { background: var(--card); border-color: var(--line); }
.flash.hide { opacity: 0; transition: opacity .4s; }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid transparent; background: var(--card); color: var(--coral-d); cursor: pointer; text-decoration: none; font-size: 1rem; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-coral, .btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 18px -10px rgba(0,0,0,.4); }
.btn-coral:hover, .btn-primary:hover { background: var(--coral-d); color: #fff; }
.btn-outline, .btn-outline-coral { border-color: var(--coral-soft); background: transparent; color: var(--coral-d); }
.btn-outline:hover, .btn-outline-coral:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-ghost { background: transparent; color: var(--coral-d); }
.btn-ghost:hover { background: var(--coral-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--coral-d); color: #fff; }
.btn-block { width: 100%; } .btn-lg { padding: .8rem 2rem; font-size: 1.05rem; } .btn-sm { padding: .25rem .9rem; font-size: .85rem; } .btn-sm-lg { padding: .5rem 1.4rem; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; color: var(--coral-d); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- 5. Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .3rem; }
.field label.sr-only { margin: 0; }
.input { width: 100%; font: inherit; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--brown); }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--coral-soft); box-shadow: 0 0 0 4px var(--coral-50); background: var(--card); }
textarea.input { resize: vertical; min-height: 7rem; }
select.input { padding: .7rem 1rem .7rem 2.6rem; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 1rem center; }
.input-wrap { position: relative; }
.input-wrap.has-icon .input { padding-right: 3.1rem; }
.input-wrap.has-icon .input[dir=ltr] { text-align: right; }
.field-icon { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--coral-soft); pointer-events: none; }
.is-area .field-icon { top: 1.2rem; transform: none; }
.has-error .input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .875rem; margin: .25rem 0 0; }
.hint { color: var(--muted); font-size: .85rem; margin: .25rem 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.check { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--coral); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- 6. Common Components ---------- */
.section { padding: 1.6rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.deco-title { display: inline-flex; align-items: flex-start; gap: .3rem; }
.deco-petals { width: 26px; height: 26px; color: var(--coral-soft); stroke-width: 2.2; margin-top: -.3rem; }
.page-head { padding: 1.5rem 0 .5rem; }
.panel, .card-panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 1.5rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-s); }
.notice { background: var(--coral-50); border: 1px solid var(--coral-100); border-radius: var(--r-s); padding: .8rem 1rem; margin: 1rem 0; }
.breadcrumbs { padding: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li+li::before { content: "‹"; margin-inline-end: .4rem; color: var(--coral-soft); }
.breadcrumbs a { color: var(--muted); }
.badge { display: inline-block; background: var(--sage-100); color: var(--brown); font-size: .78rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; }
.badge-sale { background: var(--coral-100); color: var(--brown); }
.badge-out { background: var(--line); color: var(--muted); }
.empty-state { text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-l); padding: 3rem 1rem; }

/* Product Card */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-m); padding: .6rem; display: flex; flex-direction: column; height: 100%; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1/.9; background: var(--sage-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: .6rem; inset-inline-start: .6rem; }
.card-body { padding: .7rem .4rem .3rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-title { font-size: 1rem; margin: 0; font-weight: 700; }
.card-title a { color: var(--brown); text-decoration: none; }
.card-title a:hover { color: var(--coral-d); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.price { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.price strong { color: var(--brown); font-size: 1rem; }
.price-old { color: var(--muted); font-size: .8rem; }
.price-lg strong { font-size: 1.6rem; }
.cart-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--coral); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.cart-btn:hover { background: var(--coral-d); }
.cart-btn[disabled] { background: var(--line); cursor: not-allowed; }
.cart-btn .icon { width: 19px; height: 19px; }

/* ---------- 7. Homepage ---------- */
.hero-wrap { padding-top: .6rem; }
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(100deg, var(--coral-50) 0%, var(--bg) 55%, var(--coral-100) 100%); min-height: 360px; box-shadow: var(--shadow); }
.hero-slide { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 360px; align-items: center; }
.hero-slide.is-active { display: grid; animation: heroIn .6s ease; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
.hero-text { padding: 2rem 2.8rem 3.6rem; position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.5rem, 5.2vw, 3.8rem); margin: 0; line-height: 1.3; color: var(--brown); }
.hero-title-md { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.hero-sub { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 800; margin: .2rem 0 .6rem; color: var(--brown); }
.hero-desc { color: var(--muted); max-width: 30rem; margin-bottom: 1.2rem; }
.hero-media { align-self: stretch; min-height: 240px; position: relative; overflow: hidden; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, #000 72%, transparent); mask-image: linear-gradient(to right, #000 72%, transparent); }
.slider-btn { position: absolute; bottom: 1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); display: grid; place-items: center; cursor: pointer; color: var(--brown); z-index: 2; }
.slider-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.slider-next { inset-inline-end: 1rem; } .slider-prev { inset-inline-start: 1rem; }
.slider-dots { position: absolute; bottom: 1.3rem; inset-inline: 0; display: flex; justify-content: center; gap: .5rem; z-index: 2; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--coral-soft); background: transparent; padding: 0; cursor: pointer; }
.slider-dots button[aria-selected=true] { background: var(--coral); border-color: var(--coral); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; height: 100%; padding: 1.2rem 1rem 2.6rem; background: linear-gradient(180deg, var(--card), var(--paper)); border: 1px solid var(--line-soft); border-radius: var(--r-l); text-decoration: none; color: var(--brown); transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--brown); }
.cat-ic { width: 70px; height: 70px; border-radius: 50%; background: var(--coral-100); color: var(--coral-d); display: grid; place-items: center; margin-bottom: .5rem; }
.cat-name { font-weight: 800; }
.cat-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.cat-go { position: absolute; inset-block-end: .8rem; inset-inline-end: .8rem; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-100); color: var(--coral-d); display: grid; place-items: center; }
.cat-go .icon { width: 15px; height: 15px; }

.carousel { position: relative; }
.carousel-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .3rem .2rem 1rem; margin: -.3rem -.2rem 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc((100% - 4rem)/5); min-width: 190px; scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); display: grid; place-items: center; cursor: pointer; color: var(--brown); }
.carousel-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.carousel-next { inset-inline-end: -16px; } .carousel-prev { inset-inline-start: -16px; }
.carousel[data-static] .carousel-btn { display: none; }

.brand-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.2fr); align-items: center; background: linear-gradient(100deg, var(--coral-50), var(--card) 60%); border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-s); }
.brand-feats { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.brand-feats li { display: flex; align-items: center; gap: .7rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: 999px; padding: .35rem .5rem; font-weight: 500; font-size: .92rem; }
.feat-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.feat-sage { background: var(--sage-100); color: var(--sage-d); } .feat-coral { background: var(--coral-100); color: var(--coral-d); }
.brand-text { padding: 1.5rem 1rem; }
.brand-quote { color: var(--coral-d); font-weight: 700; }
.brand-media { align-self: stretch; min-height: 240px; }
.brand-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }

.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: var(--r-l); overflow: hidden; background: linear-gradient(120deg, var(--coral-50), var(--coral-100)); min-height: 200px; border: 1px solid var(--line-soft); }
.promo-text { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .3rem; }
.promo-text h2 { font-size: 1.35rem; margin: 0; }
.promo-text p { color: var(--muted); margin: 0 0 .6rem; }
.promo-media { position: relative; min-height: 160px; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, #000 65%, transparent); mask-image: linear-gradient(to right, #000 65%, transparent); }
.promo-media img.is-logo { object-fit: contain; padding: 1rem; -webkit-mask-image: none; mask-image: none; }

/* ---------- 8. Contact ---------- */
.page-hero-wrap { padding-top: .6rem; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(100deg, var(--coral-50), var(--bg)); min-height: 290px; box-shadow: var(--shadow); }
.page-hero-text { padding: 2rem 2.8rem; }
.page-hero-media { align-self: stretch; min-height: 200px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0 0; align-items: start; }
.form-card .btn { margin-top: .4rem; }
.ways li { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.ways li:last-child { border-bottom: 0; }
.ways strong { display: block; }
.way-val { display: block; text-align: right; color: var(--muted); text-decoration: none; word-break: break-word; }
a.way-val:hover { color: var(--coral-d); }
.ways small { color: var(--muted); }
.way-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.way-ic .icon { width: 26px; height: 26px; }
.way-rose { background: var(--rose); } .way-sage { background: var(--sage); } .way-peach { background: var(--peach); } .way-sun { background: var(--sun); }
.info-note { display: flex; gap: .8rem; align-items: center; background: var(--coral-50); border-radius: var(--r-m); padding: .9rem 1.1rem; color: var(--muted); margin: 1rem 0 0; }
.note-leaf { width: 38px; height: 38px; color: var(--sage); }
.wide-banner { display: grid; grid-template-columns: auto 1fr minmax(0, 1.1fr); align-items: center; gap: 1.5rem; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(100deg, var(--coral-50), var(--coral-100) 55%, var(--coral-50)); border: 1px solid var(--line-soft); min-height: 150px; padding-inline-start: 1.5rem; }
.wb-logo img { height: 120px; width: auto; }
.wb-text { display: flex; flex-direction: column; text-align: center; font-weight: 700; color: var(--brown); margin: 0; line-height: 1.9; }
.wb-media { align-self: stretch; min-height: 140px; }
.wb-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }

/* ---------- 9. Listing & Product ---------- */
.listing { display: grid; grid-template-columns: 17rem 1fr; gap: 1.6rem; align-items: start; padding-bottom: 3rem; }
.filters { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 1.2rem; position: sticky; top: 92px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-list { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cat-list li a { display: block; padding: .2rem 0; text-decoration: none; color: var(--brown); }
.cat-list a[aria-current] { font-weight: 800; color: var(--coral-d); }
.footer-title { font-weight: 800; margin-bottom: .5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination .current { min-width: 2.4rem; padding: .3rem .8rem; text-align: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: var(--card); }
.pagination .current { background: var(--coral); color: #fff; border-color: var(--coral); }
.card-cat { font-size: .8rem; margin: 0; } .card-cat a { color: var(--muted); text-decoration: none; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 1.5rem 0 2rem; align-items: start; }
.product-media { background: var(--card); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-soft); }
.product-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.stock { font-weight: 700; } .stock-in { color: var(--ok); } .stock-out { color: var(--danger); }
.buy-box { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin: 1rem 0; }
.buy-box .field { margin: 0; min-width: 6rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 1.2rem 0; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }
.prose-box { padding-bottom: 2rem; }
.prose { max-width: 46rem; } .prose h2 { margin-top: 1.5rem; }

/* ---------- 10. Cart & Account ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 22rem; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { padding: .75rem .8rem; text-align: start; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 500; background: var(--bg); }
.cart-product { display: flex; align-items: center; gap: .8rem; }
.cart-product img { width: 64px; height: 64px; border-radius: var(--r-s); object-fit: cover; }
.qty-input { width: 5rem; }
.cart-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.summary { position: sticky; top: 92px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 1rem 0; }
.sum dd { margin: 0; text-align: end; }
.sum-total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.mini-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.choice { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: .8rem 1rem; margin-bottom: .6rem; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--coral-soft); background: var(--coral-50); }
.choice input { margin-top: .5rem; accent-color: var(--coral); }
.success-mark { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; background: var(--coral); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.order-no { background: var(--coral-50); padding: .1rem .6rem; border-radius: var(--r-s); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.status { display: inline-block; padding: .05rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--line); color: var(--brown); }
.status-pending { background: var(--coral-100); color: var(--brown); }
.status-confirmed { background: var(--sage-100); color: var(--brown); }
.status-preparing { background: var(--coral-50); color: var(--brown); }
.status-shipped { background: var(--sage-100); color: var(--brown); }
.status-delivered { background: var(--sage-100); color: var(--brown); }
.status-cancelled { background: var(--coral-100); color: var(--brown); }
.account-layout { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.account-nav { display: flex; flex-direction: column; gap: .2rem; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: .6rem; }
.account-nav a { padding: .5rem .8rem; border-radius: var(--r-s); text-decoration: none; color: var(--brown); }
.account-nav a[aria-current] { background: var(--coral-100); font-weight: 800; }
.account-nav form { padding: .5rem .8rem; }
.auth-card { margin-top: 2rem; padding: 2rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--coral-soft); margin: 0; }
.address-card .actions { justify-content: flex-start; }

/* ---------- 11. Footer ---------- */
.site-footer { margin-top: 2.5rem; padding: 0 0 2rem; }
.footer-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 1.4rem 2rem 1rem; box-shadow: var(--shadow-s); }
.footer-top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: var(--brown); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--coral-d); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brown); border: 1px solid var(--line); }
.socials a:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.footer-mid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line-soft); margin-top: 1rem; padding-top: .9rem; font-size: .9rem; }
.footer-mid ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-mid a { color: var(--muted); text-decoration: none; } .footer-mid a:hover { color: var(--coral-d); }
.copy { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }
.to-top { position: fixed; inset-inline-end: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--coral); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 70; }
.to-top[hidden] { display: none; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1060px) {
  .carousel-item { flex-basis: calc((100% - 2rem)/3); }
  .brand-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .brand-media { grid-column: 1/-1; min-height: 220px; }
  .brand-media img { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 960px) {
  .hero-slide, .page-hero { grid-template-columns: 1fr; }
  .hero-text, .page-hero-text { padding: 1.6rem 1.5rem 1rem; }
  .hero-text { padding-bottom: 4rem; }
  .hero-media, .page-hero-media { min-height: 200px; max-height: 260px; order: -1; }
  .hero-media img, .page-hero-media img { -webkit-mask-image: linear-gradient(to top, transparent, #000 25%); mask-image: linear-gradient(to top, transparent, #000 25%); object-position: center; }
  .product, .contact-grid { grid-template-columns: 1fr; }
  .listing, .cart-layout, .account-layout { grid-template-columns: 1fr; }
  .filters, .summary { position: static; }
  .promo-grid { grid-template-columns: 1fr; }
  .wide-banner { grid-template-columns: 1fr; padding: 1.2rem; text-align: center; justify-items: center; }
  .wb-media { width: 100%; }
  .wb-media img { -webkit-mask-image: none; mask-image: none; border-radius: var(--r-m); }
  .carousel-next { inset-inline-end: -6px; } .carousel-prev { inset-inline-start: -6px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .header-card { border-radius: var(--r-l); gap: .6rem; }
  .brand { margin-inline-end: auto; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: .1rem; padding: .4rem 0; order: 10; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .5rem .3rem; }
  .search-form { order: 11; flex-basis: 100%; }
  .header-actions { margin-inline-start: 0; }
  .cart-table thead, .table-wrap .table thead { position: absolute; inset-inline-start: -9999px; }
  .table-wrap .table tr { display: block; border-bottom: 2px solid var(--line); padding: .5rem 0; }
  .table-wrap .table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem .8rem; }
  .table-wrap .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
}
@media (max-width: 640px) {
  .brand-card { grid-template-columns: 1fr; }
  .brand-feats { padding-bottom: 0; }
  .carousel-item { flex-basis: 72%; }
  .promo { grid-template-columns: 1fr; }
  .promo-media { min-height: 150px; order: -1; }
  .promo-media img { -webkit-mask-image: linear-gradient(to top, transparent, #000 30%); mask-image: linear-gradient(to top, transparent, #000 30%); }
  .footer-card { padding: 1.2rem; }
  .footer-top { justify-content: center; text-align: center; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .field-row { grid-template-columns: 1fr; }
  .card-foot { flex-wrap: wrap; }
  .price strong { font-size: .92rem; }
  .toast-region { top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}