:root {
    --bg: #f2f5f8;
    --bg-deep: #e4ebf1;
    --surface: #ffffff;
    --ink: #101828;
    --ink-soft: #667085;
    --line: #d7e0ea;
    --accent: #0f766e;
    --accent-dark: #0b5a54;
    --accent-soft: #daf5f1;
    --clay: #c2410c;
    --shadow: 0 20px 48px rgba(16, 24, 40, 0.08);
    --radius: 20px;
    --font: "Sora", "Segoe UI", sans-serif;
    --display: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.10), transparent 28%),
        linear-gradient(180deg, #f7fafc 0%, var(--bg) 42%, #eef3f7 100%);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: #d7efe3; }

.skip {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: var(--ink);
    color: #fff;
    padding: 0.5rem 0.8rem;
    z-index: 80;
    border-radius: 8px;
}
.skip:focus { top: 1rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.announce {
    background: var(--ink);
    color: #f6f1e8;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 0.48rem 1rem;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 250, 252, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}
.header-bar {
    display: grid;
    grid-template-columns: auto 1fr minmax(180px, 280px) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    min-height: 76px;
}
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: center;
    justify-content: center;
}
.icon-close { display: none; }
body.nav-open .icon-menu { display: none; }
body.nav-open .icon-close { display: inline-flex; }
.logo {
    font-family: var(--display);
    font-weight: 620;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    line-height: 1;
}
.site-nav { display: flex; gap: 0.35rem 1rem; flex-wrap: wrap; }
.site-nav a { font-weight: 650; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { color: var(--accent-dark); }
.search {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.search input {
    border: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    padding: 0.7rem 0.95rem;
}
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; padding: 0 0.85rem; color: var(--ink-soft); display: grid; place-items: center; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-tools { display: flex; align-items: center; gap: 0.35rem; }
.account-menu { position: relative; }
.account-menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-weight: 700;
}
.account-menu summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 0.4rem;
    z-index: 30;
}
.menu-panel a, .menu-panel button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: none;
    border: 0;
    font-weight: 650;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg); }
.cart-link {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.page { padding-bottom: 3rem; }
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    padding: 2.4rem 0 1.5rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 0.55rem;
}
.hero h1, .page-head h1, .section-head h2, .auth-card h1 {
    font-family: var(--display);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.02;
}
.hero h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); margin: 0 0 1rem; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; padding: 0; margin: 1.6rem 0 0; list-style: none; color: var(--ink-soft); font-size: 0.92rem; }
.trust li { display: flex; align-items: center; gap: 0.4rem; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-stage { position: relative; }
.hero-stage img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; background: var(--bg-deep); }
.hero-float {
    position: absolute;
    left: -1.2rem;
    bottom: 1.4rem;
    background: var(--surface);
    border-radius: 18px;
    padding: 0.95rem 1.05rem;
    box-shadow: var(--shadow);
    min-width: 190px;
}
.hero-float p { margin: 0; }
.hero-float strong { display: block; margin: 0.15rem 0 0.35rem; }

.section { padding: 1.2rem 0 0.4rem; }
.section-head, .page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.section-head h2, .page-head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.page-head { padding-top: 1.6rem; align-items: start; }
.page-head p { margin: 0.35rem 0 0; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.cat-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--bg-deep); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    background: rgba(255, 252, 248, 0.94);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bg-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-sale { background: var(--clay); color: #fff; }
.badge-sold { background: var(--ink); color: #fff; }
.card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { margin: 0 0 0.2rem; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.product-card h3 { font-size: 1rem; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 0.55rem; line-height: 1.35; }
.card-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card-price { margin: 0; }
.price { font-weight: 800; }
.compare { color: var(--ink-soft); text-decoration: line-through; margin-left: 0.4rem; font-weight: 600; }
.card-add { margin: 0; }
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
}
.icon-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.promo {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #1c1915;
    color: #f6f1e8;
    border-radius: 28px;
    overflow: hidden;
    margin: 2rem 0 0.5rem;
}
.promo-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.promo h2 { font-family: var(--display); font-weight: 560; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 0 0 0.8rem; }
.promo p { color: #ddd4c6; max-width: 36rem; }
.promo .btn-primary { background: #f3efe7; color: #1c1915; }
.promo .btn-primary:hover { background: #fff; }
.promo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -0.01em;
    background: transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: #9b2c2c; color: #fff; }
.btn-small { min-height: 36px; padding: 0.3rem 0.75rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.4rem; align-items: start; }
.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    position: sticky;
    top: 92px;
}
.filters h2 { font-size: 1rem; margin: 0 0 0.8rem; }
.filter-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.result-count { color: var(--ink-soft); margin: -0.4rem 0 1rem; }

.detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; align-items: start; padding-top: 1.5rem; }
.detail-photo img { width: 100%; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-deep); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 0.8rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 0.15em; }
.detail h1 { font-family: var(--display); font-weight: 560; font-size: clamp(2.1rem, 4vw, 3.3rem); letter-spacing: -0.03em; margin: 0 0 0.6rem; }
.detail-price { font-size: 1.25rem; margin: 0 0 0.4rem; }
.stock-in { color: var(--accent-dark); font-weight: 750; }
.stock-low { color: var(--clay); font-weight: 750; }
.stock-out { color: #9b2c2c; font-weight: 750; }
.prose { color: var(--ink-soft); white-space: pre-wrap; }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.2rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; }
.stepper input { width: 52px; border: 0; text-align: center; padding: 0; border-radius: 0; background: transparent; }
.stepper input:focus { outline: none; }
.stepper input[type=number]::-webkit-outer-spin-button,
.stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { appearance: textfield; -moz-appearance: textfield; }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 92px; height: 112px; object-fit: cover; border-radius: 14px; background: var(--bg-deep); }
.cart-item h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.line-total { font-weight: 800; text-align: right; }
.remove-form { margin: 0.45rem 0 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.15em; font-weight: 650; }
.summary, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.15rem;
}
.summary { position: sticky; top: 92px; }
.summary h2, .panel h2 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0; }
.summary-row.total { font-weight: 800; font-size: 1.12rem; border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.7rem; }
.summary-note { color: var(--accent-dark); font-weight: 700; font-size: 0.92rem; }

.auth-card, .narrow { max-width: 520px; margin: 1.5rem auto; }
.auth-card, .stack > .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem; }
.auth-card h1 { font-size: 2.3rem; margin-bottom: 0.4rem; }
.stack { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-weight: 750; font-size: 0.92rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.invalid { border-color: #9b2c2c; }
.field-error { color: #9b2c2c; font-size: 0.82rem; margin: 0.25rem 0 0; font-weight: 700; }
.help { font-weight: 550; color: var(--ink-soft); font-size: 0.82rem; }
.check { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.check input { width: auto; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
legend { font-weight: 750; padding: 0; }
.totals { margin-top: 1rem; }
.choice { display: flex; gap: 0.55rem; align-items: center; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; }
.choice input { width: auto; }
.alert { padding: 0.85rem 1rem; border-radius: 14px; margin: 1rem 0; }
.alert-success { background: var(--accent-soft); color: var(--accent-dark); }
.alert-error { background: #f8e8e6; color: #8a2b24; }
.empty {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 20px;
    padding: 2rem 1.2rem;
    text-align: center;
}
.issue-list { margin: 0 0 1rem; padding-left: 1.1rem; color: #8a2b24; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
.thumb { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--bg-deep); }
.status {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: capitalize;
}
.status-pending { background: #f8efe0; color: #8a5a12; }
.status-processing { background: #e7eef8; color: #1e4f8a; }
.status-shipped { background: #efe8f8; color: #5b348a; }
.status-delivered { background: var(--accent-soft); color: var(--accent-dark); }
.status-cancelled { background: #f8e8e6; color: #8a2b24; }
.pager { display: flex; gap: 0.4rem; margin-top: 1.2rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 0.7rem;
}
.pager span[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-gap { border: 0 !important; background: transparent !important; min-width: 0 !important; }

.order-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.order-line img { width: 64px; height: 78px; object-fit: cover; border-radius: 10px; background: var(--bg-deep); }

.site-footer { margin-top: 2.5rem; border-top: 1px solid var(--line); padding: 2.4rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-logo { margin-bottom: 0.4rem; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.footer-base { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.9rem; }
.owner-only-link {
  margin-left: 0.75rem;
  color: inherit;
  opacity: 0.45;
  font-size: 0.8rem;
  text-decoration: none;
}
.owner-only-link:hover { opacity: 1; }

.toast {
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    z-index: 60;
    transition: transform 0.25s ease;
    max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: #d7efe3; font-weight: 800; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.admin { background: #edf2f7; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #0f172a; color: #e2e8f0; padding: 1.2rem 0.9rem; }
.admin-logo { color: #fff; display: inline-block; margin: 0.2rem 0.4rem 0.2rem; }
.admin-kicker { margin: 0.2rem 0.5rem 0.8rem; color: #94a3b8; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-side nav { display: grid; gap: 0.2rem; }
.admin-side a { color: inherit; display: block; padding: 0.62rem 0.7rem; border-radius: 12px; font-weight: 700; }
.admin-side a.active, .admin-side a:hover { background: rgba(255, 255, 255, 0.08); }
.admin-main { padding: 1.3rem 1.3rem 2.5rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-top h1 { font-family: var(--display); font-weight: 560; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; letter-spacing: -0.03em; }
.admin-user { display: flex; align-items: center; gap: 0.7rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.05rem; }
.stat span { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; margin-top: 0.25rem; font-weight: 560; }
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 0.9rem; }
.toolbar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 0; }
.stock-form, .inline-actions { display: flex; gap: 0.35rem; align-items: center; }
.stock-form input { width: 76px; padding: 0.4rem 0.5rem; }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.preview-img { width: 120px; height: 150px; object-fit: cover; border-radius: 14px; background: var(--bg-deep); margin-bottom: 0.6rem; }
.form-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 1rem; align-items: start; }

@media (max-width: 1000px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split, .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .header-bar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "toggle logo tools"
            "search search search"
            "nav nav nav";
        min-height: 0;
        padding: 0.7rem 0;
    }
    .nav-toggle { display: inline-flex; grid-area: toggle; }
    .logo { grid-area: logo; }
    .header-tools { grid-area: tools; justify-self: end; }
    .search { grid-area: search; }
    .site-nav { grid-area: nav; display: none; flex-direction: column; padding-bottom: 0.6rem; }
    body.nav-open .site-nav { display: flex; }
    .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .hero, .promo, .shop-layout, .detail, .cart-layout, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
    .filters, .summary { position: static; }
    .hero-float { left: 1rem; bottom: 1rem; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side nav { display: flex; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.3rem; }
    .admin-side a { white-space: nowrap; }
}
.form-row.thirds { grid-template-columns: repeat(3, 1fr); }

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}
.settings-tabs a {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 700;
    font-size: 0.9rem;
}
.settings-tabs a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.settings-intro h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.55rem;
}
.chip-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font-weight: 650;
}
.chip-check input { width: auto; }
.chip-check em {
    font-style: normal;
    color: var(--ink-soft);
    font-size: 0.78rem;
    margin-left: 0.25rem;
}
.toggle-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.toggle-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fbfc);
}
.toggle-card input { width: auto; margin-top: 0.2rem; }
.toggle-card strong { display: block; }
.toggle-card small { color: var(--ink-soft); font-weight: 500; }
.card-brands-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    background: #f8fbfc;
}
.choice-card { border-color: #b7e4de; background: #f3fffc; }
.hero-stage img { box-shadow: var(--shadow); }
.product-card, .panel, .summary, .filters, .auth-card { box-shadow: 0 10px 30px rgba(16, 24, 40, 0.03); }

@media (max-width: 720px) {
    .toggle-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .product-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row, .form-row.thirds { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 76px 1fr; }
    .line-total { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .product-card:hover { transform: none; }
}
