/* Apparewl — storefront styles */
:root {
    --ink: #161412;
    --ink-2: #4a4540;
    --muted: #807870;
    --paper: #faf8f4;
    --card: #ffffff;
    --stone: #ece6dc;
    --line: #ddd5c9;
    --clay: #9a4a2c;
    --clay-dark: #7c3a21;
    --danger: #b3261e;
    --danger-bg: #fbeceb;
    --success: #2f6b3f;
    --success-bg: #e9f3eb;
    --warn: #8a5a00;
    --radius: 4px;
    --shadow: 0 1px 2px rgba(22, 20, 18, .06), 0 8px 24px rgba(22, 20, 18, .06);
    --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.page { padding-top: 28px; padding-bottom: 64px; }
.narrow { max-width: 820px; }
.section { padding-top: 48px; padding-bottom: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 24px; }
.lead { font-size: 17px; color: var(--ink-2); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.is-hidden { display: none !important; }
.text-danger { color: var(--danger); font-weight: 700; }

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.link:hover { text-decoration-color: var(--ink); }
.link--danger { color: var(--danger); }
a.link.center, .link.center { display: block; margin-top: 12px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { min-height: 54px; font-size: 16px; }

/* ---------- header */
.announce { background: var(--ink); color: #eee7dc; text-align: center; font-size: 12.5px; padding: 8px 16px; letter-spacing: .02em; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 244, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .16em; margin: 0; }
.logo--light { color: #fff; margin-bottom: 14px; }
.nav { display: flex; gap: 4px; }
.nav__item { position: relative; }
.nav__item > a { display: block; padding: 22px 12px; font-size: 14px; font-weight: 600; }
.nav__item > a:hover { color: var(--clay); }
.nav__sale { color: var(--danger); }
.nav__menu { position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s; }
.nav__menu a { display: block; padding: 8px 18px; font-size: 14px; }
.nav__menu a:hover { background: var(--paper); color: var(--clay); }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.search { flex: 1; max-width: 300px; margin-left: auto; }
.search input { width: 100%; height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0 16px; }
.header__actions { display: flex; align-items: center; gap: 4px; }
.header__login { font-weight: 600; font-size: 14px; padding: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.icon-btn:hover { background: var(--stone); }
.bag__count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
    .menu-toggle { display: inline-grid; }
    .header__row { gap: 8px; flex-wrap: wrap; }
    .logo { font-size: 21px; }
    .search { order: 10; max-width: none; flex-basis: 100%; margin: 0 0 10px; }
    .header__actions { margin-left: auto; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
    .nav-open .nav { display: flex; }
    .nav__item > a { padding: 12px 0; border-bottom: 1px solid var(--stone); }
    .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: flex; flex-wrap: wrap; padding: 6px 0; background: none; }
    .nav__menu a { padding: 6px 12px 6px 0; color: var(--ink-2); }
}

/* ---------- alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; border: 1px solid; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert--success { background: var(--success-bg); border-color: #bcd9c2; color: var(--success); }
.alert--error { background: var(--danger-bg); border-color: #efc5c2; color: var(--danger); }
.alert:focus { outline: none; }

/* ---------- forms */
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); padding: 0; }
.req { color: var(--danger); margin-left: 2px; }
.input-wrap { position: relative; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .toolbar select, .line select {
    width: 100%; min-height: 46px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; appearance: none;
}
.field select, .toolbar select, .line select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23807870' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 20, 18, .08); }
.field input[type=file] { padding: 10px; }
.field--invalid input:not([type=checkbox]):not([type=radio]), .field--invalid select, .field--invalid textarea { border-color: var(--danger); background-color: #fffafa; }
.field--invalid input:focus, .field--invalid select:focus, .field--invalid textarea:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.hint { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.error { font-size: 13px; color: var(--danger); margin: 5px 0 0; font-weight: 500; }
.error:empty { display: none; }
.counter { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.counter--short { color: var(--warn); }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 6px 8px; text-transform: uppercase; letter-spacing: .06em; }
.input-wrap input[type=password], .input-wrap input:has(+ .reveal) { padding-right: 64px !important; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--ink) !important; font-size: 14px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.row-2, .row-3 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: repeat(3, 1fr); } }
.align-end { align-items: end; }
.align-end .btn { margin-bottom: 18px; }
@media (min-width: 640px) { .align-end { grid-template-columns: 1fr 1fr auto; } }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.split .field { margin: 0; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.inline-form { display: inline; }
.filter-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .field { margin: 0; flex: 1; min-width: 180px; }

.strength { margin: -8px 0 18px; }
.strength__bar { height: 4px; background: var(--stone); border-radius: 2px; overflow: hidden; }
.strength__bar span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.strength__bar span[data-score="3"], .strength__bar span[data-score="4"] { background: #c98a1a; }
.strength__bar span[data-score="5"] { background: var(--success); }
.strength__rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.strength__rules li::before { content: '○ '; }
.strength__rules li.ok { color: var(--success); }
.strength__rules li.ok::before { content: '✓ '; }

.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.chip--wide span { min-width: 80px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chips--lg .chip span { min-width: 54px; height: 46px; font-size: 14px; }
.field--invalid .chip span { border-color: #e4a39f; }

.pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; margin-bottom: 10px; font-size: 14px; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick input { margin-top: 3px; accent-color: var(--ink); }
.pick__item { display: flex; align-items: center; gap: 12px; }
.pick__item img { width: 44px; height: 54px; object-fit: cover; }
.pay-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .pay-options { grid-template-columns: repeat(3, 1fr); } .pay-options .pick { margin: 0; } }
.upload-preview { max-width: 220px; border-radius: var(--radius); margin: -6px 0 18px; border: 1px solid var(--line); }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; line-height: 1; color: var(--line) !important; cursor: pointer; margin: 0 !important; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #c48a1a !important; }
.star-input input:focus-visible + label { outline: 2px solid var(--clay); }
.stars { color: var(--line); letter-spacing: 1px; }
.stars .on { color: #c48a1a; }

/* ---------- panels, pills, tables */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
@media (min-width: 768px) { .panel { padding: 28px; } }
.panel > h2 { font-size: 22px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--stone); color: var(--ink-2); }
.pill--dark { background: var(--ink); color: #fff; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--stone); }
.status--placed { background: #eef0f7; color: #3a4a7a; }
.status--confirmed { background: #f3eefa; color: #5b3d8a; }
.status--shipped { background: #fdf3e2; color: var(--warn); }
.status--delivered { background: var(--success-bg); color: var(--success); }
.status--cancelled { background: var(--danger-bg); color: var(--danger); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.table__thumb { width: 44px; height: 54px; object-fit: cover; }
.empty { text-align: center; padding: 64px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 36px 0 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 14px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .45; }
.pagination a:hover { border-color: var(--ink); }

/* ---------- hero & home */
.hero { background: var(--stone); overflow: hidden; }
.hero__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.1fr; min-height: 560px; } }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; }
.hero h1 em { color: var(--clay); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__art { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); height: 440px; gap: 14px; }
.hero__img { overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero__img:hover img { transform: scale(1.04); }
.hero__img--1 { grid-column: 1 / 4; grid-row: 1 / 7; }
.hero__img--2 { grid-column: 4 / 7; grid-row: 1 / 4; }
.hero__img--3 { grid-column: 4 / 7; grid-row: 4 / 7; }
@media (max-width: 600px) { .hero__art { height: 320px; } }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.05); }
.cat__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); color: #fff; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.cat__label small { opacity: .8; font-weight: 500; }

.band { background: var(--ink); color: #eee7dc; margin-top: 56px; padding: 56px 0; }
.band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.band .eyebrow { color: #d9a283; }
.band__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .band__grid { grid-template-columns: 1fr 1.4fr; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 600px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks strong { display: block; color: #fff; margin-bottom: 4px; }
.perks span { color: #b9b0a4; font-size: 14px; }

/* ---------- product cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 36px 22px; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__alt { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.03); }
.tag { position: absolute; top: 10px; left: 10px; background: var(--clay); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 2px; }
.tag--muted { background: var(--ink-2); }
.tag--new { background: var(--ink); }
.card__body { padding-top: 12px; }
.card__cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 3px; }
.card__title { font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.4; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--clay); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.price__now { font-weight: 700; }
.price__was { color: var(--muted); font-size: 13px; }
.price__off { color: var(--success); font-weight: 700; font-size: 14px; }
.price--lg .price__now { font-size: 26px; }
.price--lg .price__was { font-size: 16px; }

/* ---------- shop listing */
.shop-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shop { display: grid; gap: 32px; margin-top: 12px; }
@media (min-width: 960px) { .shop { grid-template-columns: 250px 1fr; } }
.filters details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filters summary { font-weight: 700; cursor: pointer; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.filters summary::after { content: '+'; color: var(--muted); }
.filters details[open] summary::after { content: '−'; }
.filter-list { display: grid; gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.radio { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.radio input { accent-color: var(--ink); }
.filters .size-chips { margin-top: 10px; }
.filters .chip span { min-width: 40px; height: 34px; font-size: 12px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.price-range .field { margin-bottom: 4px; }
.filters .field--check { margin: 16px 0; }
.filters__actions { display: grid; gap: 10px; text-align: center; }
.toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.toolbar select { width: auto; min-height: 40px; }
.filters-toggle { display: none; margin-right: auto; }
@media (max-width: 959px) {
    .filters-toggle { display: inline-flex; }
    .filters { display: none; background: var(--card); border: 1px solid var(--line); padding: 8px 16px 16px; }
    .filters-open .filters { display: block; }
}

/* ---------- product detail */
.pdp { display: grid; gap: 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; } .pdp__info { position: sticky; top: 90px; align-self: start; } }
.gallery__main { aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 76px; height: 92px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; opacity: .7; }
.gallery__thumbs button.active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__title { font-size: clamp(24px, 3vw, 32px); }
.pdp__rating { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; margin-bottom: 12px; }
.buy { margin: 22px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy__legend { font-size: 14px !important; color: var(--ink) !important; }
.buy__row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy .btn--ghost { margin-top: 0; }
.qty { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qty button { width: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock { font-size: 13px; color: var(--success); margin: 12px 0 0; font-weight: 600; }
.stock--low { color: var(--warn); }
.stock--out { color: var(--danger); }
.pdp__details { margin-top: 24px; border-top: 1px solid var(--line); }
.pdp__details details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.pdp__details summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.pdp__details p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.reviews__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: 1.3fr 1fr; } }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 6px 0 4px; }

/* ---------- cart & checkout */
.checkout-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 380px; } .summary { position: sticky; top: 90px; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img img { width: 96px; height: 120px; object-fit: cover; background: #fff; }
.line__name { font-weight: 600; display: block; margin-bottom: 4px; }
.line__name:hover { color: var(--clay); }
.line__actions { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.line select { width: auto; min-height: 38px; padding: 6px 34px 6px 12px; }
.line__total { font-weight: 700; }
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.coupon .btn { margin-top: 26px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: var(--success-bg); color: var(--success); padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; }
.totals { margin: 14px 0; }
.totals > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals__discount dd { color: var(--success); }
.totals__grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; font-size: 17px !important; }
.totals__grand dt, .totals__grand dd { font-weight: 700; color: var(--ink); }
.mini-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--stone); font-size: 14px; }
.mini-line img { width: 52px; height: 64px; object-fit: cover; }
.panel h2 .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--sans); margin-right: 8px; vertical-align: 3px; }
.address-picks { margin-bottom: 14px; }
.steps { display: flex; gap: 8px; font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.steps span { color: var(--muted); }
.steps span:not(:last-child)::after { content: '→'; margin-left: 8px; color: var(--line); }
.steps .done { color: var(--success); }
.steps .current { color: var(--ink); font-weight: 700; }
.tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 30px; }
.address { font-size: 14px; line-height: 1.7; }

/* ---------- account */
.auth { max-width: 480px; }
.auth h1 { font-size: 32px; }
.account { display: grid; gap: 28px; }
@media (min-width: 900px) { .account { grid-template-columns: 220px 1fr; } .account__nav { position: sticky; top: 90px; align-self: start; } }
.account__name { font-family: var(--serif); font-size: 22px; margin: 0 0 16px; }
.account__nav nav { display: grid; margin-bottom: 16px; }
.account__nav nav a { padding: 10px 12px; border-left: 2px solid transparent; font-size: 14px; font-weight: 500; }
.account__nav nav a:hover { background: var(--stone); }
.account__nav nav a.active { border-left-color: var(--clay); background: var(--card); font-weight: 700; }
@media (max-width: 899px) { .account__nav nav { display: flex; overflow-x: auto; } .account__nav nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } .account__nav nav a.active { border-bottom-color: var(--clay); } }
.address-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .address-cards { grid-template-columns: 1fr 1fr; } }
.order-card .thumbs { display: flex; gap: 8px; margin-top: 12px; }
.order-card .thumbs img { width: 52px; height: 64px; object-fit: cover; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 20px 0 24px; counter-reset: s; }
.timeline li { position: relative; text-align: center; font-size: 13px; color: var(--muted); padding-top: 28px; }
.timeline li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--stone); border: 2px solid var(--line); z-index: 1; }
.timeline li::before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done span { background: var(--success); border-color: var(--success); }
.timeline li.done::before { background: var(--success); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { margin: 0; padding: 18px; }
.stat p { margin: 0; }
.stat__value { font-family: var(--serif); font-size: 28px; }

/* ---------- content pages */
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.contact__info { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin-top: 28px; }
.contact__info dt { font-weight: 700; font-size: 13px; color: var(--muted); }
.contact__info dd { margin: 0; }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; margin-top: 20px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

/* ---------- footer */
.footer { background: #1d1a17; color: #b9b0a4; padding: 56px 0 24px; font-size: 14px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer__grid > div > a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.newsletter .field { margin: 0; }
.newsletter input { background: #2a2622 !important; border-color: #3d3833 !important; color: #fff; }
.newsletter .field--invalid input { border-color: #e0776f !important; }
.newsletter .error { color: #f0a29c; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #3d3833; margin-top: 40px; padding-top: 20px; font-size: 13px; }

/* ---------- checkpoints port: offers, payments, admin extras */
.logo__img { max-height: 40px; width: auto; }
.announce a { color: inherit; text-decoration: underline; }
.alert--warning { background: #fdf5e6; border-color: #eed9a8; color: var(--warn); }
.offers { display: grid; gap: 16px; }
@media (min-width: 700px) { .offers { grid-template-columns: repeat(2, 1fr); } }
.offer__code { display: inline-block; font: 700 14px/1 var(--sans); letter-spacing: .12em; padding: 8px 12px; border: 1px dashed var(--clay); color: var(--clay); margin-bottom: 12px; }
.otp-input { font-size: 22px !important; letter-spacing: .5em; text-align: center; }
.pay-box { display: grid; gap: 24px; }
@media (min-width: 720px) { .pay-box { grid-template-columns: 1fr 1.2fr; } }
.pay-box__amount { font-family: var(--serif); font-size: 36px; margin: 0 0 14px; }
.pay-box__timer { font-size: 28px; font-weight: 700; color: var(--clay); }
.qr { display: inline-block; padding: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.upi-apps__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.upi-app { display: grid; justify-items: center; gap: 4px; font-size: 11px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.upi-app.is-static { cursor: default; opacity: .85; }
.h3 { font-size: 20px; }
.mb { margin-bottom: 14px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.compact { margin: 0; padding-left: 18px; }
.prewrap { white-space: pre-wrap; }
code { background: var(--stone); padding: 1px 5px; border-radius: 3px; font-size: .92em; }
.footer__social { display: flex; gap: 14px; }
.hero-banner { position: relative; min-height: 420px; display: grid; align-items: end; background: var(--ink) center/cover no-repeat; color: #fff; }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.6)); }
.hero-banner .container { position: relative; padding-top: 48px; padding-bottom: 48px; }
.hero-banner h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.field input[readonly] { background: var(--paper); color: var(--muted); }

/* ======================================================================
   Admin panel — same tokens, type and components as the storefront
   ====================================================================== */
.admin-body { background: var(--paper); }
.admin { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #cfc6ba; display: flex; flex-direction: column; }
.admin-side__brand { padding: 24px 22px 18px; border-bottom: 1px solid #2c2824; }
.admin-side__brand .logo { display: block; font-size: 22px; margin: 0; }
.admin-side__tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #d9a283; }
.admin-nav { padding: 8px 12px 16px; flex: 1; }
.admin-nav__group { margin: 18px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7f766c; }
.admin-nav__link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: #cfc6ba; transition: background .15s, color .15s; }
.admin-nav__link:hover { background: #24201c; color: #fff; }
.admin-nav__link.is-active { background: #2c2723; color: #fff; box-shadow: inset 2px 0 0 #d9a283; }
.admin-nav__link svg { flex: none; opacity: .85; }
.admin-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.admin-side__foot { padding: 10px 12px 18px; border-top: 1px solid #2c2824; }

.admin-shell { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 32px; background: rgba(250, 248, 244, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-top__menu { display: none; }
.admin-top__title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.admin-top__user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-top__who { display: grid; line-height: 1.25; font-size: 14px; }
.admin-top__who .link { text-align: left; color: var(--muted); }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--clay); color: #fff; display: grid; place-items: center; font: 600 15px var(--serif); }

.admin-main { padding: 28px 32px 64px; max-width: 1240px; width: 100%; }
.admin-main h1 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.admin-main > .split:first-child h1, .admin-main > .split h1 { margin-bottom: 0; }
.admin-main > .split { margin-bottom: 18px; }
.admin-main .panel { box-shadow: 0 1px 2px rgba(22, 20, 18, .04); }
.admin-main .table tbody tr:hover { background: #fcfbf8; }
.admin-main .stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.admin-main .stat { border-top: 3px solid var(--ink); }
.admin-main .stat:first-child { border-top-color: var(--clay); }
.admin-main .filter-bar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.admin-main .actions { margin-top: 0; }
.link--light { color: #eee7dc; text-decoration-color: #6b635a; }
.admin-scrim { display: none; }

@media (max-width: 960px) {
    .admin { grid-template-columns: 1fr; }
    .admin-side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
    .admin-open .admin-side { transform: none; }
    .admin-open .admin-scrim { display: block; position: fixed; inset: 0; background: rgba(22, 20, 18, .45); z-index: 55; }
    .admin-top { padding: 0 16px; }
    .admin-top__menu { display: inline-grid; }
    .admin-top__who { display: none; }
    .admin-main { padding: 20px 16px 48px; }
}

.admin-login { min-height: 100vh; display: grid; }
@media (min-width: 900px) { .admin-login { grid-template-columns: 1.1fr 1fr; } }
.admin-login__brand { background: var(--ink); color: #cfc6ba; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.admin-login__brand h1 { color: #fff; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.05; }
.admin-login__brand h1 em { color: #d9a283; }
.admin-login__brand .eyebrow { color: #d9a283; }
.admin-login__lead { color: #a39a8f; max-width: 420px; }
.admin-login__form { display: grid; place-items: center; padding: 32px 16px; }
.admin-login__form .panel { width: 100%; max-width: 420px; }
::placeholder { color: #b5ada3; opacity: 1; }

/* ======================================================================
   Banners, slider & promos (admin-controlled)
   ====================================================================== */
.slider { position: relative; background: var(--stone); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(420px, 62vh, 640px); display: grid; align-items: end; overflow: hidden; color: #fff; }
.slide__media, .slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide__media img { object-fit: cover; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0, calc(var(--overlay, .35) + .25))), rgba(0,0,0, calc(var(--overlay, .35) * .5)); }
.slide__content { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; max-width: 1280px; }
.slide__content > * { max-width: 620px; }
.slide__content--center { text-align: center; }
.slide__content--center > * { margin-left: auto; margin-right: auto; }
.slide__content--center .hero__cta { justify-content: center; }
.slide__content .eyebrow { color: #f0c3a6; }
.slide__title { color: inherit; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.04; margin-bottom: 14px; }
.slide__text { font-size: 17px; color: rgba(255,255,255,.88); }
.slide__content--dark { color: var(--ink); }
.slide__content--dark .slide__text { color: var(--ink-2); }
.slide__content--dark .eyebrow { color: var(--clay); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline-dark { color: var(--ink); border-color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: #fff; }

/* Split layout: text on a stone panel, product image on the right. */
.slide--split { position: relative; width: 100%; height: 100%; display: grid; background: var(--stone); color: var(--ink); }
.slide--split .slide__shade { display: none; }
.slide--split .slide__content { align-self: center; }
@media (min-width: 800px) {
    .slide--split { grid-template-columns: 1fr 1fr; }
    .slide--split .slide__media { position: relative; grid-column: 2; grid-row: 1; }
    .slide--split .slide__content { grid-column: 1; grid-row: 1; padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px)); padding-right: 32px; }
}
@media (max-width: 799px) {
    .slide--split { grid-template-rows: 300px auto; }
    .slide--split .slide__media { position: relative; }
    .slide--split .slide__media img { object-position: center 15%; }
    .slide--split .slide__content { padding-top: 24px; padding-bottom: 56px; }
}
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--ink); background: rgba(255,255,255,.7); cursor: pointer; }
.slider__dots button[aria-current="true"] { background: var(--ink); width: 24px; border-radius: 5px; }

.promos { display: grid; gap: 14px; }
@media (min-width: 700px) { .promos--2 { grid-template-columns: 1fr 1fr; } .promos--3 { grid-template-columns: repeat(3, 1fr); } }
.promo { position: relative; min-height: 380px; display: grid; align-items: end; overflow: hidden; color: #fff; }
.promo .slide__content { padding: 24px; }
.promo .slide__title { font-size: clamp(24px, 2.6vw, 32px); }
.promo .hero__cta { margin-top: 14px; }
.promo img { transition: transform .6s; }
.promo:hover img { transform: scale(1.04); }
.slide--shop { min-height: 220px; }
.slide--shop .slide__content { padding-top: 40px; padding-bottom: 40px; }
.slide--shop .slide__title { font-size: clamp(28px, 4vw, 46px); }

/* ======================================================================
   Header & navigation (mobile drawer)
   ====================================================================== */
.announce { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.nav__mobile-only { display: none; }
.footer__address { font-style: normal; margin-bottom: 1em; line-height: 1.6; }
address { font-style: normal; }

@media (max-width: 960px) {
    .header__row { min-height: 60px; }
    .logo { order: 1; }
    .menu-toggle { order: 0; margin-left: -8px; }
    .header__actions { order: 2; }
    .header__login { display: none; }
    .nav { max-height: calc(100vh - 110px); overflow-y: auto; }
    .nav__mobile-only { display: block; }
    .nav__item > a { font-size: 16px; }
    .nav__menu a { padding: 8px 14px 8px 0; font-size: 15px; }
    body.nav-open { overflow: hidden; }
}

/* ======================================================================
   Responsive tables → stacked cards (labels added by app.js)
   ====================================================================== */
@media (max-width: 700px) {
    .table-wrap { overflow: visible; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; margin-bottom: 10px; background: var(--card); }
    .table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--stone); text-align: right; }
    .table td:last-child { border-bottom: 0; }
    .table td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; flex: none; }
    .table td:empty, .table td[data-label=""]::before { display: none; }
    .table td.right { justify-content: flex-end; gap: 16px; }
    .table td > .field { margin: 0; flex: 1; }
    .panel.table-wrap, .panel .table-wrap { background: transparent; }
    .panel.table-wrap { border: 0; padding: 0; }
}

/* ======================================================================
   Phones: spacing, type, touch targets, layouts
   ====================================================================== */
@media (max-width: 700px) {
    body { font-size: 15px; }
    .page { padding-top: 18px; padding-bottom: 48px; }
    .section { padding-top: 36px; }
    .section__head { align-items: center; }
    .section__head h2 { font-size: 22px; }
    h1 { font-size: 28px; }
    .lead { font-size: 16px; }
    .panel { padding: 18px 16px; }

    /* iOS zooms into inputs smaller than 16px */
    .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .search input, .toolbar select, .line select { font-size: 16px; }

    .slide { min-height: 480px; }
    .slide__content { padding-bottom: 56px; }
    .slide__text { font-size: 15px; }
    .slider__arrow { display: none; }
    .hero__cta { gap: 10px; }
    .hero__cta .btn { flex: 1 1 140px; }
    .promo { min-height: 300px; }

    /* Horizontal product rails on the home page */
    .grid--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
    .grid--scroll::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
    .grid--scroll > * { flex: 0 0 62%; scroll-snap-align: start; }
    .grid { gap: 22px 12px; }
    .card__title { font-size: 13.5px; }

    /* Categories: one swipeable row instead of a six-row grid */
    .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .cats > .cat { flex: 0 0 40%; scroll-snap-align: start; }
    .cat__label { padding: 28px 10px 10px; font-size: 14px; }
    .band { margin-top: 36px; padding: 40px 0; }

    .toolbar { position: sticky; top: 60px; z-index: 20; background: var(--paper); padding: 8px 0; margin-bottom: 12px; }
    .toolbar select { flex: 1; }
    .filters-toggle { flex: 1; margin-right: 0; }

    .buy__row { flex-wrap: wrap; }
    .qty button { width: 44px; }
    .size-chips--lg .chip span { min-width: 50px; }

    .line { grid-template-columns: 76px 1fr; gap: 12px; }
    .line__img img { width: 76px; height: 96px; }
    .line__total { grid-column: 2; margin: 0; }
    .coupon { grid-template-columns: 1fr; }
    .coupon .btn { margin-top: 0; }
    .mini-line { grid-template-columns: 44px 1fr auto; }
    .mini-line img { width: 44px; height: 56px; }

    .timeline li { font-size: 11px; }
    .account { gap: 16px; }
    .account__name { margin-bottom: 8px; }
    .account__nav nav { margin: 0 0 8px; scrollbar-width: none; }
    .address-cards { grid-template-columns: 1fr; }
    .split > .btn, .split > .actions { width: 100%; }
    .actions .btn { flex: 1 1 auto; }

    .footer { padding-top: 40px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
    .newsletter { grid-template-columns: 1fr; }
    .footer__legal { flex-direction: column; }

    .contact__info { grid-template-columns: 1fr; gap: 2px; }
    .contact__info dd { margin-bottom: 10px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat__value { font-size: 22px; }
    .filter-bar .field { min-width: 100%; }
    .filter-bar .btn { width: 100%; }
    .upload-preview { max-width: 100%; }
    .offer__code { font-size: 13px; }
}

/* ======================================================================
   Admin extras
   ====================================================================== */
.banner-list { display: grid; gap: 10px; margin-top: 10px; }
.banner-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--stone); border-radius: var(--radius); }
.banner-row__img { aspect-ratio: 16 / 9; background: var(--stone); overflow: hidden; border-radius: 2px; }
.banner-row__img img { width: 100%; height: 100%; object-fit: cover; }
.banner-row__body p { margin: 0 0 4px; }
.banner-row__actions { display: flex; gap: 14px; align-items: center; }
.banner-images { display: grid; gap: 20px; }
@media (min-width: 800px) { .banner-images { grid-template-columns: 1.4fr 1fr; } }
.sticky-save { position: sticky; bottom: 0; z-index: 10; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); }
.perk-edit { border: 1px solid var(--stone); border-radius: var(--radius); padding: 12px 14px 0; }
.perk-edit legend { padding: 0 6px; }
.sections-table .field { margin: 0; }
.sections-table input[type=number] { max-width: 90px; }
.sections-table .check span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) {
    .banner-row { grid-template-columns: 96px 1fr; }
    .banner-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
    .sections-table input[type=number] { max-width: none; }
    .admin-main h1 { font-size: 26px; }
    .admin-top__title { font-size: 11px; }
    .admin-login__brand { padding: 28px 20px; gap: 20px; }
    .admin-login__brand h1 { font-size: 32px; }
    .admin-login__lead { display: none; }
}
@media (max-width: 960px) {
    .nav__item:has(.nav__menu) > a::after { content: ' +'; color: var(--muted); }
    .nav__item.is-open:has(.nav__menu) > a::after { content: " −"; }
    .nav__menu { display: none !important; }
    .nav__item.is-open .nav__menu { display: flex !important; }
}
.nav__all { font-weight: 700; }

.account { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .account { grid-template-columns: 220px minmax(0, 1fr); } }
.account > *, .checkout-grid > *, .shop > *, .pdp > * { min-width: 0; }
@media (max-width: 899px) { .account__nav nav { overflow-x: auto; -webkit-overflow-scrolling: touch; } .account__nav form { display: none; } }
.nav__logout { background: none; border: 0; padding: 12px 0; font: 600 16px var(--sans); color: var(--danger); cursor: pointer; width: 100%; text-align: left; }
code { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 700px) {
    .admin-main .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-main .stat { padding: 14px; }
    .td-value { display: block; text-align: right; min-width: 0; overflow-wrap: anywhere; }
    .table td.right .td-value { display: flex; gap: 16px; justify-content: flex-end; align-items: center; }
}
.slider__arrow { top: auto; bottom: 20px; transform: none; }
.slider__arrow--prev { left: auto; right: 72px; }
.slider__arrow--next { right: 20px; }
.slider__dots { left: 0; right: auto; padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px)); bottom: 32px; }
@media (max-width: 799px) { .slider__dots { left: 0; right: 0; padding: 0; justify-content: center; bottom: 18px; } }

/* Branding (logo & favicon) in settings */
.brand-assets { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 800px) { .brand-assets { grid-template-columns: 1fr 1fr; } }
.brand-asset { border: 1px solid var(--stone); border-radius: var(--radius); padding: 14px; }
.brand-asset__label { font-weight: 700; margin-bottom: 10px; }
.brand-asset__preview { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px; background: var(--paper); border-radius: var(--radius); margin-bottom: 14px; }
.brand-asset__preview img { max-height: 56px; width: auto; }
.brand-asset__preview .logo { font-size: 22px; }
.favicon-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px 8px 0 0; font-size: 13px; max-width: 70%; overflow: hidden; white-space: nowrap; }
.favicon-tab img { width: 16px; height: 16px; }
.brand-asset__preview .favicon-app { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow); object-fit: cover; }

/* ======================================================================
   UPI apps & payment page
   ====================================================================== */
.pill--success { background: var(--success-bg); color: var(--success); vertical-align: 2px; margin-left: 4px; }
.pay-pick__body { display: grid; gap: 6px; }
.pay-options .pay-pick { align-items: flex-start; }
@media (min-width: 640px) { .pay-options { grid-template-columns: 1fr; } }
.upi-strip { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.upi-strip img { border-radius: 7px; box-shadow: 0 1px 2px rgba(0,0,0,.14); background: #fff; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-marks span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink-2); }
.pay-marks--center { justify-content: center; }

.upi-page { max-width: 980px; }
.upi-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; }
.upi-summary p { margin: 0; }
.upi-summary__amount { font-family: var(--serif); font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.upi-summary__timer { text-align: right; }
.upi-summary .pay-box__timer { margin: 0; font-size: 26px; font-variant-numeric: tabular-nums; }
.pay-box__timer.is-urgent { color: var(--danger); }
.upi-status { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); border-radius: var(--radius); font-size: 14px; }
.upi-status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #c98a1a; animation: upi-pulse 1.4s ease-in-out infinite; }
.upi-status__dot--ok { background: var(--success); animation: none; }
@keyframes upi-pulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .upi-status__dot { animation: none; } }

.upi-layout { display: grid; gap: 0 20px; }
@media (min-width: 820px) { .upi-layout { grid-template-columns: 1.15fr 1fr; } .upi-page--desktop .upi-qr-panel { order: -1; } }
.upi-apps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 360px) { .upi-apps__grid { grid-template-columns: repeat(3, 1fr); } }
.upi-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.upi-app img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
a.upi-app:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
a.upi-app:active { transform: scale(.97); }
.upi-app.is-static { cursor: default; border-color: transparent; background: transparent; padding: 6px 2px; }
.upi-app.is-static img { width: 36px; height: 36px; }
.upi-payee { margin: 6px 0 12px; border-top: 1px solid var(--stone); }
.upi-payee > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--stone); font-size: 14px; }
.upi-payee dt { color: var(--muted); }
.upi-payee dd { margin: 0; text-align: right; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.upi-qr-panel .qr { margin: 10px auto 12px; }
.upi-qr-panel .qr img, .upi-qr-panel .qr canvas { display: block; }
.upi-qr-panel .upi-strip { justify-content: center; margin-top: 6px; }
.upi-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
/* Phones: QR is secondary (you can't scan your own screen) */
@media (max-width: 819px) { .upi-qr-panel .qr { width: 180px; } .upi-qr-panel .qr img, .upi-qr-panel .qr canvas { width: 160px !important; height: 160px !important; } }
/* Option cards inside form fields (payment, return item, saved address) */
.field label.pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 0 10px; font-size: 14px; font-weight: 400; color: var(--ink); }
.field label.pick input { flex: none; margin-top: 3px; }
.pay-options .pay-pick { margin: 0; }
.pay-pick__body strong { font-size: 15px; }
/* Real app icons are square PNGs; the UPI wordmark is wide, so fit it on a white tile. */
.upi-app img, .upi-strip img { object-fit: cover; background: #fff; }
img[src*="upi-apps/upi-logo.svg"] { object-fit: contain; padding: 9px 5px; border: 1px solid var(--stone); }
.setup-checks { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; font-size: 14px; }
.setup-checks li::before { content: '✕'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); font-size: 11px; font-weight: 700; }
.setup-checks li.ok::before { content: '✓'; background: var(--success-bg); color: var(--success); }

/* ======================================================================
   Shop filters
   ====================================================================== */
.facet-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters .radio { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.filters summary .facet-count { margin-left: 8px; }
.filters .field--check { margin: 4px 0; }
.chips-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card); }
.filter-chip span { font-size: 16px; line-height: 1; color: var(--muted); }
.filter-chip:hover { background: var(--ink); color: #fff; }
.filter-chip:hover span { color: #fff; }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.filters__head { display: none; }
.toolbar { align-items: center; }
.toolbar__sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filters-toggle__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; }
.filters-scrim { display: none; }
@media (max-width: 959px) {
    .filters { display: block !important; position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(360px, 88vw); overflow-y: auto; background: var(--paper); border: 0; padding: 0 18px 90px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
    .filters-open .filters { transform: none; }
    .filters-open .filters-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(22, 20, 18, .45); }
    .filters-open { overflow: hidden; }
    .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: var(--paper); padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
    .filters__head .h3 { margin: 0; }
    .filters__actions { position: fixed; left: 0; bottom: 0; width: min(360px, 88vw); padding: 12px 18px; background: var(--paper); border-top: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: center; transform: translateX(-105%); transition: transform .22s ease; }
    .filters-open .filters__actions { transform: none; }
    .toolbar__sort span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .filters, .filters__actions { transition: none; } }

/* ======================================================================
   Header v2: mega menu, live search, account dropdown, mobile drawer
   ====================================================================== */
.header { transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(22, 20, 18, .07); }
.header__row { position: static; display: flex; align-items: center; gap: 28px; min-height: 72px; transition: min-height .2s; }
.header.is-scrolled .header__row { min-height: 60px; }
.header .logo { flex: none; }
.nav { display: flex; align-items: stretch; gap: 2px; margin: 0 auto 0 8px; position: static; }
.nav__item { position: static; display: flex; }
.nav__link { position: relative; display: flex; align-items: center; gap: 4px; padding: 0 12px; min-height: 72px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.header.is-scrolled .nav__link { min-height: 60px; }
.nav__link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .2s; }
.nav__link:hover::after, .nav__link.is-active::after, .nav__item--mega.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link.nav__sale { color: var(--danger); }
.nav__link.nav__sale::after { background: var(--danger); }
.nav__chev { display: inline-flex; transition: transform .2s; color: var(--muted); }
.nav__item--mega.is-open .nav__chev { transform: rotate(180deg); }
.nav__drawer-head, .nav__drawer-foot, .nav-scrim, .search-toggle, .search__close { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(22, 20, 18, .08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; z-index: 50; }
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.mega__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; }
.mega__title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px solid transparent; }
.mega__list a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.mega__list a:hover { color: var(--clay); }
.mega__col:first-child .mega__list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.mega__feature { position: relative; display: block; overflow: hidden; border-radius: var(--radius); min-height: 240px; background: var(--stone); }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font: 500 22px var(--serif); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.mega__feature small { display: block; font: 700 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f0c3a6; margin-bottom: 4px; }

.header__actions { display: flex; align-items: center; gap: 2px; margin-left: 0; }
.search { position: relative; width: clamp(200px, 22vw, 300px); margin: 0 8px 0 0; flex: none; order: 0; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 40px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,20,18,.07); }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.search__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(440px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px rgba(22,20,18,.14); padding: 8px; z-index: 60; max-height: 70vh; overflow-y: auto; }
.search__group { padding: 6px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.search__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; font-size: 14px; }
.search__item img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--stone); }
.search__item small { display: block; color: var(--muted); font-size: 12px; }
.search__item s { color: var(--muted); font-size: 12px; margin-left: 4px; }
.search__item--cat { grid-template-columns: 1fr auto; }
.search__item[aria-selected="true"], .search__item:hover { background: var(--paper); }
.search__all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--stone); font-weight: 600; font-size: 14px; }
.search__empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }
.search__item mark { background: #f6e3d6; color: inherit; border-radius: 2px; }

.account-menu { position: relative; }
.header__login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-weight: 600; font-size: 14px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 40px rgba(22,20,18,.12); padding: 6px; z-index: 60; }
.dropdown__head { padding: 8px 10px 6px; margin: 0; font-weight: 700; border-bottom: 1px solid var(--stone); margin-bottom: 4px; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; font: 500 14px var(--sans); background: none; border: 0; cursor: pointer; color: var(--ink); }
.dropdown a:hover, .dropdown button:hover { background: var(--paper); }
.dropdown form { border-top: 1px solid var(--stone); margin-top: 4px; padding-top: 4px; }
.dropdown button { color: var(--danger); }
.icon-btn { position: relative; }

@media (max-width: 1100px) {
    .header__row { gap: 16px; }
    .nav__link { padding: 0 9px; }
    .search { width: 190px; }
}

@media (max-width: 960px) {
    .header__row { min-height: 60px; gap: 4px; flex-wrap: nowrap; }
    .header .logo { order: 1; margin: 0 auto; font-size: 20px; }
    .menu-toggle { order: 0; display: inline-grid; margin-left: -8px; }
    .header__actions { order: 2; margin-left: 0; }
    .header__login span, .header__wishlist { display: none; }
    .search-toggle { display: inline-grid; }
    .search { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); flex-basis: auto; }
    .search-open .search { display: flex; align-items: center; gap: 6px; }
    .search-open .search__icon { left: 28px; }
    .search__close { display: inline-grid; flex: none; }
    .search__panel { left: 16px; right: 16px; width: auto; }

    .nav { display: flex !important; flex-direction: column; align-items: stretch; position: fixed; inset: 0 auto 0 0; width: min(340px, 86vw); margin: 0; padding: 0 20px 24px; background: var(--paper); overflow-y: auto; z-index: 80; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); max-height: none; }
    .nav-open .nav { transform: none; }
    .nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(22,20,18,.45); }
    .nav__drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); padding: 14px 0; border-bottom: 1px solid var(--line); z-index: 1; }
    .nav__drawer-head .logo { font-size: 18px; }
    .nav__item { display: block; border-bottom: 1px solid var(--stone); }
    .nav__link { min-height: 54px !important; padding: 0; font-size: 17px; justify-content: space-between; }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--clay); }
    .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; background: none; }
    .nav__item--mega.is-open .mega { display: block; }
    .mega__grid { grid-template-columns: 1fr; gap: 14px; padding: 0 0 16px; }
    .mega .container { padding: 0; }
    .mega__col:first-child .mega__list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .mega__list a { font-size: 15px; padding: 8px 0; }
    .mega__feature { min-height: 150px; }
    .mega__feature span { font-size: 18px; }
    .nav__drawer-foot { display: grid; gap: 4px; padding-top: 18px; }
    .nav__drawer-foot > a:not(.btn) { padding: 10px 0; font-weight: 600; }
    .nav__drawer-foot .btn { margin-bottom: 6px; }
    .nav__logout { padding: 10px 0; }
    body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .nav, .mega, .header__row { transition: none !important; } }
/* backdrop-filter would trap the fixed drawer and search panel inside the header box on phones */
@media (max-width: 960px) { .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); } }
@media (max-width: 960px) {
    .nav-open .header { z-index: 90; }
    .nav-open .header__row > :not(.nav) { visibility: hidden; }
}
@media (max-width: 360px) {
    .header__row { gap: 0; }
    .header .icon-btn { width: 38px; height: 38px; }
    .header .logo { font-size: 17px; letter-spacing: .12em; }
    .menu-toggle { margin-left: -10px; }
}

/* ======================================================================
   Variants: colour swatches & per-size stock
   ====================================================================== */
.swatches { margin: 18px 0 4px; }
.swatches__label { margin: 0 0 10px; font-size: 14px; }
.swatches__list { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; display: block; width: 58px; height: 72px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch:hover { border-color: var(--ink); }
.swatch.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.swatch.is-soldout img { opacity: .45; }
.swatch.is-soldout::after { content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: var(--muted); transform: rotate(-50deg); }
.chip--soldout span { text-decoration: line-through; color: var(--muted); background: var(--paper); }
.chip span { position: relative; }
.chip__dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #c98a1a; }
.size-status { margin-top: 8px; }
.size-status.stock--low { color: var(--warn); font-weight: 600; }
.card__colours { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.variant-grid { width: 100%; }
.variant-grid td { vertical-align: top; }
.variant-grid .field { margin: 0; }
.variant-grid input[name$="[size]"] { max-width: 110px; text-transform: uppercase; }
.variant-grid input[name$="[stock]"] { max-width: 120px; }
.variant-grid__total { font-weight: 700; }
.variant-row--low td:nth-child(2) input { border-color: #e2c27d; }
.variant-row--out td:nth-child(2) input { border-color: #e4a39f; }
@media (max-width: 700px) { .swatch { width: 52px; height: 64px; } .variant-grid input[name$="[size]"], .variant-grid input[name$="[stock]"] { max-width: none; } }
.size-stock { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.size-stock__item { font-size: 10.5px; padding: 1px 5px; border-radius: 3px; background: var(--success-bg); color: var(--success); font-variant-numeric: tabular-nums; }
.size-stock__item.is-low { background: #fdf3e2; color: var(--warn); }
.size-stock__item.is-out { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; }
.variant-grid .variant-row--out .field input[data-variant-stock] { border-color: var(--danger); background: var(--danger-bg); }
.variant-grid .variant-row--low .field input[data-variant-stock] { border-color: #d9a441; background: #fdf6e6; }

/* Admin: stock by size grid */
.stock-cells { display: flex; flex-wrap: wrap; gap: 6px; }
.stock-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: var(--success-bg); }
.stock-cell__size { font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.stock-cell input { width: 58px; padding: 4px 6px; text-align: center; font-variant-numeric: tabular-nums; }
.stock-cell.is-low { background: #fdf3e2; }
.stock-cell.is-out { background: var(--danger-bg); }
.stock-cell.is-dirty { border-color: var(--ink, #1c1917); box-shadow: 0 0 0 1px var(--ink, #1c1917); }
.stock-cell input[aria-invalid="true"] { border-color: var(--danger); background: #fff; outline: 2px solid var(--danger); }
.stock-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 12px 14px; margin: -8px 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
.table .right { text-align: right; }

@media (min-width: 701px) { .admin-main .stats--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
    .admin-main .stats--3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .admin-main .stats--3 .stat { padding: 12px 10px; }
    .stats--3 .stat__value { font-size: 22px; }
    .stats--3 .small { font-size: 11.5px; line-height: 1.3; }

    /* Stock grid rows: photo + name on top, full-width size boxes, total underneath */
    .stock-grid .table tr { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 12px; }
    .stock-grid .table td { border-bottom: 0; padding: 0; }
    .stock-grid .table td.stock-grid__thumb { grid-row: 1; grid-column: 1; }
    .stock-grid .table td.stock-grid__thumb img { width: 48px; height: 60px; object-fit: cover; }
    .stock-grid .table td.stock-grid__name, .stock-grid .table td.stock-grid__name * { text-align: left; }
    .stock-grid .table td.stock-grid__name { grid-row: 1; grid-column: 2; display: block; align-self: center; line-height: 1.35; }
    .stock-grid .table td.stock-grid__sizes, .stock-grid .table td.stock-grid__total { grid-column: 1 / -1; }
    .stock-grid .table td.stock-grid__sizes { display: block; margin-top: 12px; }
    .stock-grid .table td.stock-grid__total { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--stone); justify-content: space-between; }
    .stock-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
    .stock-cell input { width: 100%; font-size: 16px; padding: 6px 4px; }
    .stock-bar { justify-content: space-between; margin: 0 -16px 16px; border-radius: 0; border-left: 0; border-right: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}

/* Phones: comfortable tap targets and no iOS zoom on the quantity box */
@media (max-width: 700px) {
    .qty input { font-size: 16px; }
    .announce a { display: inline-block; padding: 6px 2px; margin: -6px 0; }
    .slider__dots { gap: 2px; }
    .slider__dots button { position: relative; background-clip: padding-box; }
    .slider__dots button::after { content: ""; position: absolute; inset: -12px -8px; }
}
