@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-variable.woff2") format("woff2"); }

:root {
  --bg: #0b0d10; --panel: #15191f; --muted-bg: #1d2229; --border: #2b3038;
  --text: #fff; --muted: #9ca3af; --primary: #e63946; --primary-dark: #c62f3b; --ok: #34d399;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 28px 64px; }
a { color: inherit; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, .section-title, .page-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .6em; }
h2 { font-size: 22px; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--primary); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
code, .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.notice-bar { background: var(--primary); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 13, 16, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 38px; height: 34px; color: var(--primary); }
.logo b { font: 700 26px/1 var(--display); letter-spacing: .05em; display: block; }
.logo em { font-style: normal; color: var(--primary); margin-left: 5px; }
.logo small { display: block; font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 600; }
.main-nav a { text-decoration: none; color: #c7cbd2; }
.main-nav a:hover { color: #fff; }
.cart-link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); padding: 8px 12px; border-radius: 2px; }
.badge { background: var(--primary); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; display: inline-grid; place-items: center; }
.admin-nav { background: var(--panel); border-top: 1px solid var(--border); }
.admin-nav .container { display: flex; gap: 22px; overflow-x: auto; padding: 10px 0; font-size: 13px; font-weight: 600; }
.admin-nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.admin-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: 1px solid var(--primary); padding: 10px 18px; border-radius: 2px; font: 700 13px/1.2 var(--body); text-decoration: none; cursor: pointer; letter-spacing: .02em; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { background: var(--muted-bg); }
.btn-lg { padding: 14px 24px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--primary); }
.danger { color: #f2a0a7; }

.hero { padding: 36px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); margin: 0; }
.hero h1 span { color: var(--primary); }
.lead { color: #c0c4cb; max-width: 560px; margin: 14px 0 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.toolbar .pills { margin: 0; }
.pills a { text-decoration: none; border: 1px solid var(--border); padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: #c7cbd2; border-radius: 99px; }
.pills a[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; }
input, select, textarea { width: 100%; background: #101317; color: #e5e7eb; border: 1px solid var(--border); border-radius: 2px; padding: 11px 12px; font: 14px var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
.section-title { font-size: 30px; display: flex; align-items: baseline; gap: 12px; }
.section-title small { font: 500 13px var(--body); color: var(--muted); text-transform: none; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; transition: border-color .2s, transform .2s; }
.card a:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; }
.thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #fff; }
.placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #232931, #12161b 70%); color: #4b5360; }
.placeholder svg { width: 38%; height: auto; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-category { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-title { font-weight: 700; line-height: 1.35; }
.card-price { margin-top: auto; padding-top: 8px; font: 700 20px var(--display); color: #fff; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--border); }

.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-image { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.product-info h1 { font-size: clamp(34px, 4vw, 50px); }
.price { font: 700 34px var(--display); margin: 0 0 14px; }
.description { color: #c7cbd2; }
.options { border: 0; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.options legend { font-weight: 700; margin-bottom: 8px; }
.option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 10px 14px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--primary); background: rgba(230, 57, 70, .08); }
.option span { flex: 1; }
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.qty-row input { width: 80px; }

.page-title { font-size: clamp(34px, 4vw, 48px); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.title-row .page-title { margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--border); padding: 22px; border-radius: 2px; margin-bottom: 18px; }
.narrow, .narrow-panel { max-width: 560px; }
.auth { max-width: 440px; margin: 20px auto; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.summary { position: sticky; top: 92px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #d1d5db; }
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.form-row .grow { grid-column: span 2; }
.form h2 { margin-top: 10px; }
.card-container { min-height: 90px; background: #fff; padding: 12px 12px 0; border-radius: 2px; }
[hidden] { display: none !important; }
.wallets { position: relative; display: grid; gap: 10px; }
.wallets.is-busy { opacity: .55; pointer-events: none; }
.wallet-slot { min-height: 48px; }
#google-pay-button { height: 48px; }
.apple-pay-button { display: block; width: 100%; height: 48px; border: 0; border-radius: 4px; cursor: pointer;
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: plain; -apple-pay-button-style: white; }
.wallets:has(> .wallet-guard:not([hidden])) > :not(.wallet-guard) { opacity: .45; }
.wallet-guard { position: absolute; inset: 0; z-index: 2; width: 100%; background: transparent; border: 0; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.flash { padding: 12px 16px; border: 1px solid var(--border); border-left: 3px solid var(--primary); background: var(--panel); margin-bottom: 16px; font-size: 14px; }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-color: rgba(230, 57, 70, .4); color: #f6b1b7; }
.confirm { border-left: 3px solid var(--ok); padding-left: 18px; margin-bottom: 22px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); padding: 10px 8px; }
.table td { border-bottom: 1px solid var(--border); padding: 12px 8px; vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.inactive td { opacity: .55; }
.table .actions { white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.qty { width: 70px; padding: 8px; }
.cart-table { margin-bottom: 14px; }
.totals { margin: 0 0 12px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font: 700 22px var(--display); }
.totals .grand dt { color: #fff; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: 14px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--muted-bg); color: #d1d5db; }
.status-paid { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.status-shipped, .status-completed { background: rgba(96, 165, 250, .15); color: #93c5fd; }
.status-failed, .status-cancelled, .status-refunded { background: rgba(230, 57, 70, .15); color: #f6b1b7; }
.status-pending { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--border); padding: 16px; text-decoration: none; }
.stat b { display: block; font: 700 30px var(--display); }
.stat span { color: var(--muted); font-size: 12.5px; }
.admin-filter { justify-content: flex-start; }
.admin-filter select, .admin-filter input { width: auto; min-width: 200px; }
.current-image { display: flex; align-items: center; gap: 12px; }
.current-image img { width: 90px; height: 90px; object-fit: cover; background: #fff; }
.danger-zone { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.note { white-space: normal; background: var(--muted-bg); padding: 12px; }

.site-footer { border-top: 1px solid var(--border); background: #080a0d; font-size: 12.5px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

@media (max-width: 820px) {
  .product, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hide-sm { display: none; }
  .main-nav { gap: 14px; font-size: 13px; }
  .form-row .grow { grid-column: auto; }
  .table { font-size: 13px; }
}
@media (max-width: 520px) {
  .logo small { display: none; }
  .logo b { font-size: 22px; }
  .container { width: calc(100% - 28px); }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
