/* SETATRAN v1.4.0 — approved storefront/admin design layer */
:root {
  --ink: var(--primary, #111111);
  --paper: var(--surface, #fff);
  --soft: var(--background, #f7f6ef);
  --line: var(--border, #e5e5de);
  --accent-2: color-mix(in srgb, var(--accent, #b8ff00) 18%, white);
  --danger: var(--destructive, #c73b35);
  --shadow: 0 18px 55px rgb(17 17 17 / .08);
  --shadow-lg: 0 24px 80px rgb(17 17 17 / .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: var(--primary); background: var(--background); font-size: 15px; }
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3, .brand, .stat strong { font-family: "Arial Black", "Segoe UI", ui-sans-serif, system-ui, sans-serif; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--primary); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.shell { width: min(1280px, calc(100% - 48px)); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .16em; }
.button, .small-button { border-radius: var(--radius); background: var(--primary); color: var(--surface); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover, .small-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(17 17 17 / .14); }
.button.secondary, .small-button.secondary { border: 1px solid var(--border); background: var(--surface); color: var(--primary); }
.button:disabled, .small-button:disabled { transform: none; box-shadow: none; }
.icon-button, .icon-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: inherit; text-decoration: none; }
.icon-button:hover, .icon-link:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.brand-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--accent); color: var(--primary); font: 900 17px/1 "Arial Black", sans-serif; }
.brand-logo { width: 34px; height: 34px; }
.badge { border: 1px solid var(--border); background: var(--background); font-weight: 700; }
.badge.success, .badge.paid, .badge.completed, .badge.delivered, .badge.picked_up { background: color-mix(in srgb, var(--positive) 14%, white); color: var(--positive); border-color: color-mix(in srgb, var(--positive) 32%, white); }
.badge.warning, .badge.pending, .badge.awaiting_verification { background: color-mix(in srgb, var(--warning) 13%, white); color: #7d5000; border-color: color-mix(in srgb, var(--warning) 35%, white); }
.alert { border: 1px solid transparent; box-shadow: 0 8px 24px rgb(17 17 17 / .05); }
.alert.success { background: color-mix(in srgb, var(--positive) 12%, white); color: #155f38; border-color: color-mix(in srgb, var(--positive) 28%, white); }
.alert.error { background: color-mix(in srgb, var(--destructive) 10%, white); color: #8e2521; border-color: color-mix(in srgb, var(--destructive) 25%, white); }
.panel { border-color: var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgb(17 17 17 / .025); }
input, select, textarea, .wide-input { border-color: var(--border) !important; border-radius: calc(var(--radius) - 3px) !important; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important; }

/* Storefront shell */
.storefront { background: var(--background); }
.announcement { min-height: 32px; display: grid; place-items: center; padding: 7px 16px; background: var(--primary); color: var(--surface); text-align: center; font-size: 11px; font-weight: 650; letter-spacing: .035em; }
.site-header { top: 0; background: color-mix(in srgb, var(--background) 88%, transparent); border-color: var(--border); backdrop-filter: blur(18px); }
.header-row { min-height: 66px; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 24px; }
.header-row .brand { font-size: 22px; color: var(--primary); }
.header-search { position: relative; max-width: 620px; }
.header-search > span { position: absolute; left: 14px; top: 50%; z-index: 1; color: var(--muted); font-size: 21px; transform: translateY(-54%); }
.header-search input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--border); border-radius: 999px !important; background: var(--surface); }
.header-actions { gap: 6px !important; }
.header-actions .icon-link { gap: 7px; border: 0; }
.header-actions button { font: inherit; }
.count { min-width: 19px; height: 19px; background: var(--accent); color: var(--primary); font-weight: 900; }
.mobile-menu-button { display: none; flex-direction: column; gap: 4px; }
.mobile-menu-button span { width: 19px; height: 2px; border-radius: 9px; background: currentColor; }
.store-nav { border-top: 1px solid var(--border); }
.store-nav .shell { display: flex; align-items: center; gap: 2px; }
.store-nav a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.store-nav a:hover { color: var(--primary); }
.theme-preview-banner { position: sticky; top: 0; }

.mobile-menu { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(360px, 92vw); padding: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.mobile-menu[hidden], .drawer-scrim[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 4px; margin-top: 18px; }
.mobile-menu nav a { padding: 13px 12px; border-radius: 9px; text-decoration: none; font-weight: 750; }
.mobile-menu nav a:hover { background: var(--background); }
.drawer-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.drawer-head > div { display: grid; }
.drawer-head small { color: var(--muted); }
.drawer-search { display: flex; gap: 8px; margin-top: 18px; }
.drawer-search input { min-width: 0; flex: 1; padding: 10px; }
.drawer-scrim, .admin-scrim { position: fixed; inset: 0; z-index: 90; background: rgb(17 17 17 / .48); backdrop-filter: blur(2px); }
.cart-drawer { width: min(440px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-lg); }
.cart-drawer::backdrop { background: rgb(17 17 17 / .48); backdrop-filter: blur(2px); }
.cart-drawer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: drawer-in .24s ease-out; }
.cart-drawer .drawer-head, .cart-drawer .drawer-foot { padding: 16px 22px; }
.drawer-body { min-height: 0; overflow: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--border); }
.drawer-foot > div { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 17px; }
.drawer-foot small { display: block; margin-bottom: 14px; color: var(--muted); }
.drawer-foot .button + .button { margin-top: 8px; }
.drawer-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 40px 10px; text-align: center; }
.drawer-empty > span { font-size: 48px; }
.drawer-empty h2 { margin-bottom: 0; }
.drawer-empty p { max-width: 280px; color: var(--muted); }
.drawer-cart-line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.drawer-cart-line a { text-decoration: none; }
.drawer-cart-line small { display: block; color: var(--muted); }
.cart-line-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; background: var(--background); font-weight: 900; }

/* Store content */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 132px) 0; background: var(--primary); color: var(--surface); }
.hero::after { content: ""; position: absolute; width: clamp(280px, 42vw, 640px); aspect-ratio: 1; right: -8%; top: 50%; border: clamp(40px, 7vw, 100px) solid var(--accent); border-radius: 50%; opacity: .96; transform: translateY(-50%); }
.hero .shell { position: relative; z-index: 1; max-width: 1280px; }
.hero .eyebrow { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--accent); color: var(--primary); }
.hero h1 { max-width: 780px; margin-bottom: 24px; color: var(--surface); font-size: clamp(48px, 8vw, 104px); letter-spacing: -.075em; }
.hero-copy { max-width: 580px; margin: -8px 0 28px; color: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 16px; }
.hero-search { max-width: 660px; padding: 5px; border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.hero-search input { border: 0 !important; background: transparent; }
.hero-search .button { background: var(--accent); color: var(--primary); }
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { align-items: end; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head > a { font-weight: 800; }
.category-row { gap: 8px; }
.category-pill { border-color: var(--border); border-radius: 999px; background: var(--surface); font-weight: 700; transition: background .18s, border-color .18s; }
.category-pill:hover { border-color: var(--accent); background: var(--accent); }
.product-grid { gap: 28px 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { border-radius: 0; }
.product-image img { transition: transform .35s ease; }
.product-image:hover img { transform: scale(1.045); }
.product-card > div { flex: 1; display: flex; flex-direction: column; padding: 15px 16px 16px; }
.product-card > div > small:first-child { margin-top: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 5px 0 8px; }
.product-card .price { margin-top: auto; }
.product-card .quick-add { margin-top: 13px; }
.product-card .quick-add .small-button { width: 100%; background: var(--primary); }
.product-card .card-link { margin-top: 13px; color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }
.category-card { position: relative; overflow: hidden; min-height: 190px; border-color: var(--border); background: var(--surface); transition: border-color .18s, transform .18s; }
.category-card::after { content: "→"; position: absolute; right: 22px; bottom: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-weight: 900; }
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.filter-bar { border: 1px solid var(--border); background: var(--surface); }
.pagination a.active { background: var(--primary); }
.empty { border: 1px dashed var(--border); background: color-mix(in srgb, var(--surface) 65%, transparent); }
.product-page { padding-block: clamp(34px, 6vw, 80px); }
.main-image { border: 1px solid var(--border); background: var(--surface); }
.thumbs img { border: 1px solid var(--border); background: var(--surface); }
.product-info { align-self: start; }
.product-info h1 { font-size: clamp(40px, 6vw, 72px); }
.price.large { font-size: 34px; }
.stock { color: var(--positive); }
.stock.out { color: var(--destructive); }
.buy-box { border-color: var(--border); }
.summary { border-color: var(--border); background: var(--surface); box-shadow: 0 12px 40px rgb(17 17 17 / .05); }
.auth-wrap { min-height: calc(100dvh - 150px); background: radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 28%), var(--background); }
.auth-card { border: 1px solid var(--border); box-shadow: var(--shadow); }
.account-nav { gap: 5px; }
.account-nav a { padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.account-nav a:hover { background: var(--surface); }
.table-wrap { border-radius: calc(var(--radius) - 2px); }
th { background: color-mix(in srgb, var(--background) 70%, white); }
th, td { border-color: var(--border); }
.timeline { border-color: var(--border); }
.timeline li::before { background: var(--accent); box-shadow: 0 0 0 4px var(--background); }
.site-footer { margin-top: 80px; padding: 58px 0 22px; border: 0; background: var(--primary); color: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(3, 1fr); gap: 42px; }
.footer-grid > div p { max-width: 450px; color: color-mix(in srgb, var(--surface) 62%, transparent); }
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid nav a { color: color-mix(in srgb, var(--surface) 65%, transparent); text-decoration: none; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .14); color: color-mix(in srgb, var(--surface) 55%, transparent); font-size: 12px; }
.footer-brand { color: var(--surface); }

@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Admin analytics shell */
.admin { min-height: 100dvh; background: var(--background); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: 256px; display: flex; flex-direction: column; background: var(--primary); color: #ededed; }
.admin-logo { min-height: 65px; display: flex; align-items: center; gap: 10px; padding: 0 19px; border-bottom: 1px solid rgb(255 255 255 / .13); letter-spacing: -.035em; }
.admin-logo .brand-mark { color: var(--primary); }
.admin-close { display: none; margin-left: auto; }
.admin-sidebar > nav { flex: 1; overflow-y: auto; padding: 18px 12px; }
.admin-sidebar > nav section { margin-bottom: 20px; }
.admin-sidebar > nav h2 { margin: 0; padding: 0 11px 7px; color: rgb(255 255 255 / .42); font: 700 10px/1.3 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.admin-sidebar > nav a { display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 9px 11px; border-radius: 9px; color: rgb(255 255 255 / .68); text-decoration: none; font-size: 13px; font-weight: 650; }
.admin-sidebar > nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.admin-sidebar > nav a.active { background: var(--accent); color: var(--primary); }
.nav-dot { width: 16px; height: 16px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 5px; opacity: .72; }
.active .nav-dot { background: currentColor; box-shadow: inset 0 0 0 4px var(--accent); opacity: 1; }
.admin-user { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px; border-top: 1px solid rgb(255 255 255 / .13); }
.admin-user > div { min-width: 0; }
.admin-user b, .admin-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user b { font-size: 12px; }
.admin-user small { color: rgb(255 255 255 / .48); font-size: 10px; }
.avatar { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--primary); font-size: 11px; font-weight: 900; text-decoration: none; }
.admin-shell { min-height: 100dvh; margin-left: 256px; }
.admin-top { position: sticky; top: 0; z-index: 45; height: 65px; display: flex; align-items: center; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--background) 82%, transparent); color: var(--primary); backdrop-filter: blur(16px); }
.admin-menu { display: none; }
.admin-search { position: relative; width: min(460px, 50vw); }
.admin-search span { position: absolute; left: 13px; top: 50%; color: var(--muted); font-size: 20px; transform: translateY(-53%); }
.admin-search input { width: 100%; height: 38px; padding: 7px 14px 7px 39px; border: 1px solid var(--border); border-radius: 999px !important; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.admin-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.admin-main { max-width: 1460px; padding: 32px clamp(18px, 3vw, 44px) 64px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 5px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.055em; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; overflow: hidden; min-height: 122px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(17 17 17 / .03); }
.stat:first-child { background: var(--accent); border-color: var(--accent); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat:first-child span { color: color-mix(in srgb, var(--primary) 70%, transparent); }
.stat strong { display: block; margin-top: 12px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.05em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; }
.dashboard-stack { display: grid; align-content: start; gap: 18px; }
.trend-chart { height: 250px; display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: clamp(7px, 2vw, 18px); align-items: end; padding-top: 42px; }
.trend-day { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 8px; }
.trend-day i { width: min(44px, 70%); align-self: end; border-radius: 8px 8px 3px 3px; background: var(--accent); min-height: 4px; }
.trend-day > small { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.trend-value { position: absolute; top: -40px; display: none; min-width: 120px; padding: 7px; border-radius: 7px; background: var(--primary); color: var(--surface); text-align: center; z-index: 2; }
.trend-value b, .trend-value span { display: block; font-size: 10px; }
.trend-day:hover .trend-value, .trend-day:focus-within .trend-value { display: block; }
.low-stock-panel ul { margin: 0; padding: 0; list-style: none; }
.low-stock-panel li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.low-stock-panel li:last-child { border: 0; }
.low-stock-panel li b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--warning) 15%, white); color: #704600; }
.muted-copy { color: var(--muted); }
.ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ops-card { margin: 0; }
.ops-card .section-head { margin-bottom: 13px; }
.ops-card strong { font-size: 28px; }
.ops-card p { margin-bottom: 0; color: var(--muted); }
.panel > .section-head h2 { font-size: 20px; }
.admin .panel { margin-bottom: 18px; }
.admin .toolbar { margin-bottom: 18px; }
.admin table { font-size: 13px; }
.admin th { padding-top: 11px; padding-bottom: 11px; }
.admin td { padding-top: 14px; padding-bottom: 14px; }
.admin tbody tr:hover { background: color-mix(in srgb, var(--background) 58%, transparent); }
.admin .sticky-actions { background: color-mix(in srgb, var(--background) 92%, transparent); }
.admin-split > .panel:first-child { width: 350px; }
.admin-form { max-width: 1120px; }

/* Theme editor */
.theme-editor-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 18px; align-items: stretch; margin-bottom: 22px; }
.theme-token-form { margin: 0 !important; }
.theme-token-form > p { color: var(--muted); }
.theme-token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 18px 0; }
.theme-token-grid > label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; }
.color-control { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.color-control input[type="color"] { width: 44px; height: 40px; padding: 3px; }
.color-control input[type="text"], .color-control input:not([type]) { min-width: 0; }
.theme-token-grid input { width: 100%; min-height: 40px; padding: 8px; }
.theme-token-grid label > span:not(.color-control) { display: flex; align-items: center; gap: 10px; }
.theme-token-grid input[type="range"] { padding: 0; }
.theme-live-preview { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; margin: 0 !important; padding: 24px; background: var(--background); }
.preview-top { display: flex; align-items: center; justify-content: space-between; }
.preview-top b { font-family: "Arial Black", sans-serif; font-size: 19px; }
.preview-top span { padding: 6px 10px; border-radius: 999px; background: var(--accent); font-size: 10px; font-weight: 900; }
.preview-copy small { color: var(--muted); }
.preview-copy h2 { max-width: 370px; margin: 10px 0 24px; font-size: clamp(30px, 4vw, 50px); line-height: 1; letter-spacing: -.06em; }
.preview-copy button { padding: 11px 16px; border: 0; border-radius: var(--radius); background: var(--primary); color: var(--surface); font-weight: 750; }
.theme-live-preview form { align-self: start; }
.theme-default-preview { background: var(--background); }
.theme-default-preview i:first-of-type { background: var(--primary); }

/* Supplier workspace uses the same operational system */
.supplier-portal { background: var(--background); }
.supplier-top { min-height: 66px; background: var(--primary); color: var(--surface); }
.supplier-top .brand { color: var(--surface); }
.supplier-top a { color: inherit; }
.supplier-main { width: min(1280px, calc(100% - 48px)); padding-top: 34px; }
.supplier-hero h1 { font-size: clamp(42px, 7vw, 76px); }
.supplier-stat { border-top: 4px solid var(--accent); }
.supplier-job-card { border-color: var(--border); }
.supplier-product-grid > div, .job-facts div { background: var(--background); }
.supplier-notification.unread { border-left-color: var(--accent); }

/* Responsive behavior */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-grid nav:last-child { grid-column: 2; }
}

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-close, .admin-menu { display: inline-flex; }
  .admin-shell { margin-left: 0; }
  .admin-top { padding-inline: 18px; }
  .admin-main { padding-top: 24px; }
  .dashboard-grid, .theme-editor-grid { grid-template-columns: 1fr; }
  .theme-live-preview { min-height: 340px; }
  .admin-split > .panel:first-child { width: auto; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1280px); }
  .announcement { font-size: 10px; }
  .header-row { min-height: 61px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 0; }
  .mobile-menu-button { display: inline-flex; }
  .header-row .brand { overflow: hidden; font-size: 18px; white-space: nowrap; }
  .header-row .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .header-row .brand-mark { display: none; }
  .header-search, .store-nav, .action-label { display: none; }
  .header-actions { grid-column: auto; grid-row: auto; font-size: inherit; }
  .hero { padding-block: 64px; }
  .hero::after { right: -45%; opacity: .45; }
  .hero h1 { font-size: clamp(45px, 15vw, 72px); }
  .hero-search { display: grid; grid-template-columns: 1fr; padding: 7px; }
  .hero-search .button { min-height: 45px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card > div { padding-inline: 12px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 160px; }
  .site-footer { margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-grid nav:last-child { grid-column: auto; }
  .footer-bottom { gap: 12px; flex-direction: column; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading > a { display: none; }
  .admin-search { width: min(100%, 420px); }
  .admin-top-actions .icon-button { display: none; }
  .stat-grid, .ops-grid { grid-template-columns: 1fr 1fr; }
  .theme-token-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { gap: 14px 9px; }
  .product-card h3 { font-size: 13px; }
  .product-card .price { font-size: 13px; }
  .cart-drawer { width: 100%; }
  .stat-grid, .ops-grid { grid-template-columns: 1fr; }
  .stat { min-height: 104px; }
  .admin-search { display: none; }
  .admin-top { justify-content: space-between; }
  .admin-top-actions { margin-left: 0; }
  .admin-main { padding-inline: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav:last-child { grid-column: auto; }
}

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