:root {
  --bg: #070707;
  --panel: #0d0e10;
  --panel-2: #121316;
  --panel-3: #18191d;
  --text: #f5f5f5;
  --muted: #9b9da3;
  --line: #26282d;
  --line-strong: #363940;
  --red: #e31b2d;
  --red-dark: #b81120;
  --green: #38c976;
  --danger: #ff5757;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }

.store-body { min-height: 100vh; background: var(--bg); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 96px;
  padding: 12px var(--pad);
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(5,5,5,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-logo { width: min(300px, 100%); }
.site-logo img { width: 100%; height: 72px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 28px; color: #c8c9cd; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.nav-links a:hover { color: #fff; }
.cart-button { border: 1px solid var(--line-strong); background: #111216; color: #fff; min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 700; }
.cart-button:hover { border-color: #5c5f66; }
.cart-count { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 10px; }

.flash-wrap { width: min(100% - 40px, 900px); margin: 20px auto 0; }
.flash { border: 1px solid var(--line-strong); background: #121316; padding: 13px 15px; font-size: 13px; }
.flash.success { border-color: rgba(56,201,118,.45); background: rgba(56,201,118,.08); }
.flash.error { border-color: rgba(255,87,87,.45); background: rgba(255,87,87,.08); }

.eyebrow { display: inline-block; color: #8f9197; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.merch-hero { width: min(var(--max), 100%); margin: 0 auto; padding: 74px var(--pad) 48px; display: flex; align-items: end; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line); }
.merch-hero h1 { margin: 10px 0 0; font-size: clamp(48px, 8vw, 96px); line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.merch-hero p { margin: 0 0 6px; max-width: 440px; color: var(--muted); line-height: 1.7; font-size: 14px; }

.shop-section { width: min(var(--max), 100%); margin: 0 auto; padding: 44px var(--pad) 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 310px)); gap: 26px; align-items: start; }
.product-card { width: 100%; }
.product-card-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: #0a0a0b; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-card-image img { transform: scale(1.025); }
.product-card-info { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-top: 14px; align-items: start; }
.product-card-info a { font-size: 13px; line-height: 1.45; font-weight: 600; }
.product-card-info strong { color: #fff; font-size: 13px; }
.store-empty-state { min-height: 280px; border: 1px dashed var(--line-strong); display: grid; place-items: center; align-content: center; text-align: center; padding: 30px; }
.store-empty-state h3 { margin: 0 0 8px; }
.store-empty-state p { color: var(--muted); margin: 0; }

.product-detail-page { width: min(1260px, 100%); margin: 0 auto; padding: 42px var(--pad) 110px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: #fff; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 610px) minmax(330px, 470px); gap: clamp(38px, 7vw, 90px); justify-content: center; align-items: start; }
.product-gallery { width: 100%; max-width: 610px; }
.product-main-image { aspect-ratio: 4 / 5; background: #0b0b0c; border: 1px solid var(--line); overflow: hidden; }
.product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.product-thumb { aspect-ratio: 1; border: 1px solid var(--line); padding: 0; background: #0d0d0e; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb.active { border-color: #d7d8da; }
.product-info-panel { position: sticky; top: 126px; padding-top: 8px; }
.product-info-panel h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.detail-price { font-size: 24px; font-weight: 700; margin: 8px 0 22px; }
.detail-description { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 0 0 26px; }
.add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.add-form label { display: grid; gap: 7px; }
.add-form label span { font-size: 10px; color: #b7b9be; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.add-form label:nth-of-type(3) { grid-column: 1 / -1; }
.add-form select { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); background: #111216; color: #fff; padding: 0 13px; }
.add-form .button, .add-status { grid-column: 1 / -1; }
.add-status { min-height: 17px; color: var(--muted); font-size: 11px; }
.purchase-notes { margin-top: 22px; border-top: 1px solid var(--line); }
.purchase-notes > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.purchase-notes span { color: var(--muted); text-align: right; }

.button { min-height: 46px; border: 1px solid var(--line-strong); background: #15161a; color: #fff; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.button:hover { border-color: #555962; background: #1b1c21; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: #f2263a; border-color: #f2263a; }
.button-primary:disabled { opacity: .42; cursor: not-allowed; }
.button-muted { background: #111216; color: #c6c7ca; }
.button-danger { background: rgba(255,87,87,.08); border-color: rgba(255,87,87,.45); color: #ff8c8c; }
.button-small { min-height: 35px; padding: 0 12px; font-size: 9px; }
.button-full { width: 100%; }

.site-footer { border-top: 1px solid var(--line); width: min(var(--max), 100%); margin: 0 auto; padding: 50px var(--pad); display: grid; grid-template-columns: minmax(180px, 260px) 1fr auto; align-items: center; gap: 35px; }
.footer-logo img { width: 220px; max-height: 80px; object-fit: contain; object-position: left center; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #686a70; font-size: 10px; }

.cart-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; transition: .2s ease; }
.cart-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 80; right: 0; top: 0; bottom: 0; width: min(480px, 100%); background: #0c0d0f; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .23s ease; display: grid; grid-template-rows: auto 1fr auto; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 25px 26px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h2 { margin: 5px 0 0; font-size: 24px; }
.icon-button { border: 1px solid var(--line-strong); background: #121316; color: #fff; width: 38px; height: 38px; font-size: 24px; }
.cart-drawer-body { overflow-y: auto; padding: 22px 26px; }
.mini-cart-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 13px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.mini-cart-row img { width: 76px; aspect-ratio: 4 / 5; object-fit: contain; background: #09090a; border: 1px solid var(--line); }
.mini-cart-info { display: grid; gap: 6px; font-size: 11px; }
.mini-cart-info > span { color: var(--muted); }
.mini-cart-row > strong { font-size: 11px; }
.mini-cart-controls, .cart-line-controls { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.mini-cart-controls button, .cart-line-controls button { min-width: 28px; height: 28px; border: 1px solid var(--line-strong); background: #141519; color: #fff; }
.remove-link { border: 0 !important; background: transparent !important; min-width: auto !important; padding: 0 3px !important; color: var(--muted) !important; text-decoration: underline; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: 22px 26px 26px; }
.subtotal-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 13px; }
.cart-note, .stripe-note { color: var(--muted); font-size: 10px; line-height: 1.6; }
.view-cart-link { display: block; margin-top: 14px; text-align: center; color: var(--muted); font-size: 11px; text-decoration: underline; }
.empty-cart { min-height: 240px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-cart h3, .empty-cart h2 { margin: 12px 0 2px; }
.empty-cart p { color: var(--muted); font-size: 12px; }
.empty-icon { width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }

.cart-page, .policy-page { width: min(1200px, 100%); margin: 0 auto; min-height: 65vh; padding: 64px var(--pad) 110px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 8px 0 0; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; }
.page-heading > a { color: var(--muted); font-size: 11px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 46px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 110px; aspect-ratio: 4 / 5; object-fit: contain; background: #0a0a0b; border: 1px solid var(--line); }
.cart-line h3 { margin: 4px 0 7px; font-size: 15px; }
.cart-line p { color: var(--muted); margin: 0; font-size: 11px; }
.order-summary { align-self: start; position: sticky; top: 126px; border: 1px solid var(--line); background: var(--panel); padding: 26px; }
.order-summary p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 12px 0 18px; }
.stripe-note { text-align: center; margin-top: 12px; }
.empty-cart-page { min-height: 420px; }

.status-page { min-height: 68vh; padding: 90px var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.status-mark { width: 62px; height: 62px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 27px; font-weight: 800; margin-bottom: 18px; }
.status-page h1, .policy-page h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; margin: 8px 0 16px; }
.status-page p, .policy-page p { color: var(--muted); line-height: 1.75; }
.policy-page { max-width: 900px; }
.text-link { display: inline-block; margin-top: 24px; color: #ccc; text-decoration: underline; font-size: 11px; }

/* Admin */
.admin-body { min-height: 100vh; background: #08090b; color: #f5f5f5; }
.admin-topbar { min-height: 78px; padding: 9px clamp(18px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #050506; border-bottom: 1px solid #23252a; }
.admin-logo { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; }
.admin-logo img { width: 185px; height: 58px; object-fit: contain; object-position: left center; }
.admin-logo span { color: #9a9ca2; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.admin-nav { display: flex; align-items: center; gap: 22px; color: #a9abb0; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.admin-nav a, .admin-link-button { color: inherit; }
.admin-nav a:hover, .admin-nav a.active, .admin-link-button:hover { color: #fff; }
.admin-link-button { border: 0; background: transparent; padding: 0; font-size: inherit; text-transform: uppercase; letter-spacing: inherit; }
.admin-login-shell { width: min(500px, calc(100% - 36px)); min-height: 100vh; margin: 0 auto; padding: 65px 0; display: grid; align-content: center; gap: 20px; }
.admin-login-logo { display: block; width: 300px; max-width: 85%; margin: 0 auto; }
.admin-login-logo img { width: 100%; }
.admin-shell { width: min(1260px, calc(100% - 36px)); margin: 0 auto; padding: 50px 0 90px; }
.admin-shell-narrow { max-width: 620px; }
.admin-page-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.admin-page-title h1 { margin: 5px 0 10px; font-size: clamp(40px, 7vw, 70px); line-height: .95; letter-spacing: -.055em; }
.admin-page-title p { margin: 0; color: #94969c; max-width: 720px; line-height: 1.55; font-size: 13px; }
.admin-kicker { margin: 0 !important; color: #777a81 !important; font-size: 9px !important; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.admin-back-link { display: inline-block; margin-bottom: 18px; color: #9a9ca2; font-size: 11px; }
.admin-card { background: #101115; border: 1px solid #282a30; padding: clamp(22px, 3vw, 34px); }
.admin-login-card { border-color: #30333a; }
.admin-card-head { margin-bottom: 22px; }
.admin-card-head h1, .admin-card-head h2 { margin: 6px 0 9px; letter-spacing: -.035em; }
.admin-card-head h1 { font-size: 36px; }
.admin-card-head h2 { font-size: 27px; }
.admin-card-head > p:last-child { color: #92949a; font-size: 12px; line-height: 1.65; }
.admin-card-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.admin-card-row > span { color: #7c7e84; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.admin-alert { border: 1px solid #353840; background: #111216; padding: 13px 15px; margin-bottom: 18px; font-size: 12px; line-height: 1.5; }
.admin-alert.success { border-color: rgba(56,201,118,.42); background: rgba(56,201,118,.07); }
.admin-alert.error { border-color: rgba(255,87,87,.42); background: rgba(255,87,87,.07); }
.admin-form { display: grid; gap: 15px; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.admin-field-span { grid-column: 1 / -1; }
.admin-form label:not(.admin-toggle):not(.zip-drop):not(.product-upload-box):not(.admin-checkbox-line):not(.admin-radio):not(.admin-remove-check) { display: grid; gap: 7px; color: #b8bac0; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-form input:not([type=file]):not([type=checkbox]):not([type=radio]), .admin-form textarea, .admin-form select { width: 100%; min-height: 45px; border: 1px solid #383b42; background: #0b0c0e; color: #fff; padding: 0 12px; outline: none; }
.admin-form textarea { min-height: 110px; padding: 12px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus { border-color: #686c76; }
.price-input { position: relative; }
.price-input > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #777a81; }
.price-input input { padding-left: 28px !important; }
.admin-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.admin-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.admin-toggle > span { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #2b2d32; border: 1px solid #3b3e45; }
.admin-toggle > span::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; left: 2px; top: 2px; background: #8a8d94; transition: .18s ease; }
.admin-toggle input:checked + span { background: rgba(56,201,118,.16); border-color: rgba(56,201,118,.55); }
.admin-toggle input:checked + span::after { left: 20px; background: var(--green); }
.admin-toggle div { display: grid; gap: 3px; }
.admin-toggle strong { font-size: 11px; }
.admin-toggle small { color: #81838a; font-size: 10px; line-height: 1.45; }
.admin-back { display: inline-block; margin-top: 18px; color: #85878d; font-size: 11px; }
.version-chip { white-space: nowrap; background: #15161a; border: 1px solid #2e3036; padding: 10px 13px; color: #a3a5aa; font-size: 10px; }
.version-chip strong { color: #fff; margin-left: 5px; }

.admin-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); gap: 12px; margin-bottom: 20px; }
.admin-stat-row > div { background: #0f1013; border: 1px solid #25272c; padding: 16px 18px; display: grid; gap: 5px; }
.admin-stat-row span { color: #777a80; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.admin-stat-row strong { font-size: 23px; }
.admin-product-list { border: 1px solid #282a30; background: #0e0f12; }
.admin-product-row { display: grid; grid-template-columns: 84px minmax(0,1fr) auto auto; gap: 18px; align-items: center; padding: 16px; border-bottom: 1px solid #25272c; }
.admin-product-row:last-child { border-bottom: 0; }
.admin-product-thumb { width: 84px; aspect-ratio: 4/5; background: #08090a; border: 1px solid #24262b; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.admin-product-main { display: grid; gap: 7px; min-width: 0; }
.admin-product-name-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-product-name-line > a { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-main > span { color: #7f8187; font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border: 1px solid #3c3f45; font-size: 8px; letter-spacing: .1em; font-weight: 800; }
.status-pill.live { color: #70e59f; border-color: rgba(56,201,118,.45); background: rgba(56,201,118,.07); }
.status-pill.hidden { color: #a0a2a7; }
.admin-product-price { font-size: 14px; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; }
.admin-row-actions form { margin: 0; }

.admin-product-form { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.admin-form-main { display: grid; gap: 20px; }
.admin-form-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.admin-save-card h3, .admin-danger-card h3 { margin: 0 0 8px; font-size: 17px; }
.admin-save-card p, .admin-danger-card p { margin: 0 0 20px; color: #85878d; font-size: 11px; line-height: 1.6; }
.admin-save-card .button + .button { margin-top: 10px; }
.admin-danger-card { border-color: rgba(255,87,87,.3); }
.admin-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-image-card { background: #090a0c; border: 1px solid #292b31; padding: 8px; }
.admin-image-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #050506; }
.admin-radio, .admin-remove-check { display: flex; gap: 6px; align-items: center; margin-top: 8px; color: #a0a2a8; font-size: 9px; }
.admin-remove-check { color: #d88a8a; }
.product-upload-box { min-height: 140px; border: 1px dashed #43464e; background: #0b0c0e; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 22px; cursor: pointer; }
.product-upload-box:hover { border-color: #666a74; }
.product-upload-box strong { font-size: 12px; }
.product-upload-box span { color: #777a81; font-size: 10px; }
.product-upload-box input { margin-top: 8px; max-width: 100%; color: #9c9ea4; font-size: 10px; }
.admin-checkbox-line { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #92949a; font-size: 10px; }

.zip-drop { min-height: 220px; border: 1px dashed #44474f; background: #0b0c0e; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; cursor: pointer; padding: 24px; }
.zip-drop:hover { border-color: #686c75; }
.zip-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zip-drop strong { max-width: 90%; overflow-wrap: anywhere; font-size: 13px; }
.zip-drop > span:last-of-type { color: #777a81; font-size: 10px; }
.zip-icon { width: 56px; height: 56px; display: grid; place-items: center; background: #1a1b1f; border: 1px solid #34363d; color: #fff; font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.admin-check-list { list-style: none; padding: 0; margin: 0; }
.admin-check-list li { position: relative; padding: 13px 0 13px 28px; border-top: 1px solid #27292e; color: #b3b5ba; font-size: 11px; line-height: 1.5; }
.admin-check-list li::before { content: '✓'; position: absolute; left: 1px; top: 12px; color: var(--green); font-weight: 800; }
.admin-check-list code, .admin-alert code { background: #1a1b20; padding: 2px 5px; color: #ddd; }
.admin-backup-card { margin-top: 20px; }
.backup-table-wrap { overflow-x: auto; }
.backup-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.backup-table th { text-align: left; color: #777a81; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 11px; border-bottom: 1px solid #34363c; }
.backup-table td { padding: 13px 11px; border-bottom: 1px solid #24262b; white-space: nowrap; }
.backup-table td:first-child { min-width: 280px; white-space: normal; }
.backup-table a { text-decoration: underline; }
.admin-empty { text-align: center; color: #8b8d93; }
.admin-empty h2 { color: #fff; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: minmax(170px, 240px) 1fr auto; }
  .nav-links { gap: 16px; }
  .product-detail-layout { grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; }
  .product-info-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .admin-nav { gap: 14px; }
  .admin-product-form { grid-template-columns: 1fr; }
  .admin-form-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 78px; grid-template-columns: 1fr auto; padding-block: 7px; }
  .site-logo { max-width: 220px; }
  .site-logo img { height: 62px; }
  .nav-links { display: none; }
  .merch-hero { padding-top: 48px; flex-direction: column; align-items: start; }
  .shop-section { padding-top: 34px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 12px; }
  .product-card-info { grid-template-columns: 1fr; gap: 5px; }
  .product-detail-page { padding-top: 28px; }
  .product-thumbs { gap: 7px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line img { width: 84px; }
  .cart-line > strong { grid-column: 2; }

  .admin-topbar { align-items: start; flex-direction: column; padding-block: 10px 14px; }
  .admin-logo img { width: 165px; height: 50px; }
  .admin-nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .admin-nav > * { flex: 0 0 auto; }
  .admin-page-title { align-items: start; flex-direction: column; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-product-row { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .admin-product-thumb { width: 72px; }
  .admin-row-actions { grid-column: 2 / -1; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field-span { grid-column: auto; }
  .admin-form-side { grid-template-columns: 1fr; }
  .admin-stat-row { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 480px) {
  .site-logo { max-width: 185px; }
  .site-logo img { height: 56px; }
  .cart-button { min-height: 38px; padding-inline: 10px; font-size: 9px; }
  .merch-hero h1 { font-size: 52px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card-info a, .product-card-info strong { font-size: 11px; }
  .add-form { grid-template-columns: 1fr; }
  .add-form label:nth-of-type(3), .add-form .button, .add-status { grid-column: auto; }
  .product-thumbs { grid-template-columns: repeat(4, 1fr); }
  .mini-cart-row { grid-template-columns: 68px 1fr; }
  .mini-cart-row img { width: 68px; }
  .mini-cart-row > strong { grid-column: 2; }
  .admin-stat-row { gap: 7px; }
  .admin-stat-row > div { padding: 12px; }
  .admin-stat-row strong { font-size: 19px; }
  .admin-product-row { grid-template-columns: 64px 1fr; }
  .admin-product-thumb { width: 64px; }
  .admin-product-price { grid-column: 2; }
  .admin-row-actions { grid-column: 2; flex-wrap: wrap; }
}
.button-dark { background: #15161a; border-color: #363940; color: #fff; }
.button-dark:hover { background: #1c1e22; border-color: #555962; }
