/* Accessory Warehouse — responsive, no framework (layout from Yanoggin) */
/* Colours follow the 2006 accessorywarehouse.com store: blue-grey box titles, lavender menus, navy links,
   orange-red prices, an orange page frame */
:root {
  --bg: #d6d7d9;
  --page: #ffffff;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5b6070;
  --line: #b5b5b7;
  --brand: #4a65a5;
  --brand-dark: #081589;
  --accent: #081589;
  --link-hover: #e00000;
  --heading: #003399;
  --hot: #e64a00;
  --price: #d42a00;
  --danger: #c0392b;
  --warn-bg: #fff6d6;
  --ok-bg: #e7f6ee;
  --err-bg: #fdecea;
  --info-bg: #e7e7f7;
  --menu-bg: #e7e7f7;
  --title-bg: #4a65a5;
  --title-top: #6a86c8;
  --navy: #081589;
  --frame: #d67e3e;
  --head-1: #c4dcfa; --head-2: #7fa3df; --head-3: #4a65a5;
  --logo: #0a2a8a; --logo-edge: #ffffff; --tag: #fff2c4;
  --radius: 4px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e14; --page: #121722; --card: #1a2030; --text: #e6ebf1; --muted: #9aa6b5; --line: #343d52;
  --accent: #a9c1ff; --link-hover: #ff8a8a; --heading: #a9c1ff; --price: #ff7a59; --hot: #e2600f;
  --warn-bg: #3a3220; --ok-bg: #1d3a2c; --err-bg: #3d2120; --info-bg: #222a40; --menu-bg: #20283b;
  --title-bg: #3b5290; --title-top: #4d66a8; --navy: #0b1a5c; --frame: #9c5a2a;
  --head-1: #2c4378; --head-2: #1f3163; --head-3: #15214a; --logo: #e8eeff; --logo-edge: #0b1a5c; --tag: #ffd88a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --page: #121722; --card: #1a2030; --text: #e6ebf1; --muted: #9aa6b5; --line: #343d52;
    --accent: #a9c1ff; --link-hover: #ff8a8a; --heading: #a9c1ff; --price: #ff7a59; --hot: #e2600f;
    --warn-bg: #3a3220; --ok-bg: #1d3a2c; --err-bg: #3d2120; --info-bg: #222a40; --menu-bg: #20283b;
    --title-bg: #3b5290; --title-top: #4d66a8; --navy: #0b1a5c; --frame: #9c5a2a;
    --head-1: #2c4378; --head-2: #1f3163; --head-3: #15214a; --logo: #e8eeff; --logo-edge: #0b1a5c; --tag: #ffd88a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; }
a { color: var(--accent); }
img { max-width: 100%; }
h1 { font-size: 1.6rem; margin: .4em 0; line-height: 1.25; }
h2 { font-size: 1.2rem; margin: .8em 0 .4em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.hidden { display: none !important; }
.danger-text { color: var(--danger); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Header */
.top { background: var(--card); border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); line-height: 1.1; }
.brand-logo { height: 42px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--brand); letter-spacing: -.4px; }
:root[data-theme="dark"] .brand-name { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-name { color: var(--accent); } }
.tagline { font-size: .75rem; color: var(--muted); }
.search { flex: 1; display: flex; min-width: 220px; }
.search input { flex: 1; border-radius: var(--radius) 0 0 var(--radius); margin-top: 0 !important; }
.search button { border-radius: 0 var(--radius) var(--radius) 0; }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-weight: 600; flex: none; }
.cart-btn:hover { color: var(--brand); }
.mainnav { display: flex; align-items: center; gap: 14px; }
.mainnav a { text-decoration: none; color: var(--text); font-weight: 500; }
.mainnav a:hover { color: var(--brand); }
.menu-btn { display: none; background: none; color: var(--text); font-size: 1.4rem; padding: 4px 10px; }
.menu-btn:hover { background: none; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--text); width: 38px; height: 38px; padding: 0;
  border-radius: 50%; font-size: 1.1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.theme-btn:hover { border-color: var(--brand); background: none; }
@media (min-width: 1101px) { .theme-btn { order: 5; } }
.count { background: var(--hot); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .cart-btn { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .mainnav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; order: 4; }
  .mainnav.open { display: flex; }
}

main { padding-top: 16px; padding-bottom: 40px; min-height: 60vh; }
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 18px 0; color: var(--muted); font-size: .9rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: flex-start; max-width: 560px; }

/* Store layout: categories beside the products */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.cat-menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-menu summary { cursor: pointer; font-weight: 700; padding: 10px 14px; background: var(--brand); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.cat-menu:not([open]) summary { border-radius: var(--radius); }
.cat-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.cat-menu ul ul { padding: 0 0 4px 14px; }
.cat-menu a { display: block; padding: 4px 14px; text-decoration: none; color: var(--text); font-size: .92rem; line-height: 1.3; }
.cat-menu a:hover { color: var(--brand); background: var(--info-bg); }
.cat-menu a.on { font-weight: 700; color: var(--brand); }
:root[data-theme="dark"] .cat-menu a.on, :root[data-theme="dark"] .cat-menu a:hover { color: var(--accent); }

/* Forms */
label { display: block; margin: 10px 0; font-weight: 500; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 4px 14px 4px 0; }
input, select, textarea, button { font: inherit; color: inherit; }
select, input[type=file] { max-width: 100%; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card);
}
label.check input, .row input, .row select { margin-top: 0; }
.row input:not([type=checkbox]):not([type=radio]), .row select { width: auto; max-width: 100%; display: inline-block; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; padding: 8px 14px 12px; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; }
button, .btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 9px 16px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.ghost:hover, .btn.ghost:hover { border-color: var(--brand); }
button.hot, .btn.hot { background: var(--hot); }
button.hot:hover, .btn.hot:hover { background: #b23c0b; }
button.danger, .btn.danger { background: var(--danger); }
button.small, .btn.small { padding: 5px 10px; font-size: .875rem; }
button.big, .btn.big { padding: 12px 22px; font-size: 1.05rem; }
button.linklike { background: none; color: var(--text); padding: 0; font-weight: 500; }
button.linklike.danger-text { color: var(--danger); }
button:disabled { opacity: .55; cursor: wait; }
.wide { width: 100%; margin-top: 8px; }
.inline { display: inline; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row > * { min-width: 0; max-width: 100%; }
.grow { flex: 1; min-width: 0; }
.row.fields { align-items: flex-end; gap: 0 12px; }
.row.fields > label { margin: 10px 0 0; flex: 1 1 7rem; }
.row.fields > label.grow { flex: 3 1 12rem; }
.row.fields > label input:not([type=checkbox]):not([type=radio]), .row.fields > label select { display: block; width: 100%; margin-top: 4px; }
.prefix { display: flex; align-items: center; gap: 4px; }
.checks { display: flex; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0 18px; }
.cols.tight { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.counter { display: block; text-align: right; font-size: .75rem; color: var(--muted); font-weight: 400; }
.hint { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; min-height: 1em; }
.cat-checks { max-height: 260px; overflow-y: auto; columns: 2 220px; column-gap: 18px; padding: 4px 0; }
.cat-checks label.check { display: flex; margin: 2px 0; break-inside: avoid; }
.cat-checks .sub { padding-left: 20px; }

/* Cards & alerts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
.alert { padding: 10px 14px; border-radius: var(--radius); margin: 10px 0; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.success { background: var(--ok-bg); }
a.alert-link { display: block; color: var(--text); text-decoration: none; }
a.alert-link span { font-weight: 600; text-decoration: underline; white-space: nowrap; }
.alert.error { background: var(--err-bg); }
.alert.warn { background: var(--warn-bg); }
.alert.info { background: var(--info-bg); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line); margin-left: 4px; vertical-align: middle; }
.badge.hot { background: var(--hot); color: #fff; }
.status { font-weight: 700; }
.status.pending { color: #a16207; }
.status.paid { color: var(--brand); }
.status.shipped { color: #15803d; }
.status.cancelled, .status.refunded { color: var(--muted); }
.status.active { color: #15803d; }
.status.hidden { color: var(--muted); }

/* Home */
.hero { background: linear-gradient(120deg, var(--brand) 0%, #2f74c8 60%, #3b82d6 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.hero h1 { margin: 0 0 4px; font-size: 1.7rem; }
.hero p { margin: 0; opacity: .92; }
.hero .btn { margin-top: 12px; background: #fff; color: var(--brand); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cat-tiles a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--text); font-size: .92rem; font-weight: 500; }
.cat-tiles a:hover { border-color: var(--brand); color: var(--brand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; }
.section-head h2 { margin: 0 0 8px; }

/* Product grid */
.heading-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.heading-row h1 { margin-right: auto; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.toolbar select { width: auto; display: inline-block; margin: 0; }
.toolbar label { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; text-decoration: none; color: var(--text); }
.item:hover { border-color: var(--brand); }
.item .pic { display: block; aspect-ratio: 1 / 1; background: #fff; }
.item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.item .title { padding: 8px 10px 0; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { font-weight: 800; padding: 4px 10px 0; color: var(--price); margin-top: auto; }
.item .meta { padding: 0 10px 8px; font-size: .8rem; color: var(--muted); }
.oos { color: var(--danger); font-weight: 600; }
.grid.list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1000px) { .grid.list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid.list .item { position: relative; min-height: 100px; padding-left: 112px; }
.grid.list .item .pic { position: absolute; left: 0; top: 0; width: 100px; height: 100%; aspect-ratio: auto; }
.grid.list .item .title { padding: 8px 10px 0 0; font-size: 1rem; }
.grid.list .item .price { padding: 2px 10px 0 0; margin-top: 0; }
.grid.list .item .meta { padding: 2px 10px 8px 0; }
.view-switch { display: inline-flex; }
.view-switch button { border-radius: 0; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.view-switch button:first-child { border-radius: 999px 0 0 999px; }
.view-switch button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.view-switch button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; }
.pager { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 20px 0; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
@media (max-width: 820px) { .product { grid-template-columns: minmax(0, 1fr); } }
.zoom { display: block; cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.main-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: var(--radius); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { padding: 0; background: #fff; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 72px; height: 72px; object-fit: contain; display: block; }
.big-price { font-size: 2rem; font-weight: 800; margin: 4px 0; color: var(--price); }
.each { color: var(--muted); font-size: .9rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 12px 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.tier-table { width: auto; min-width: 240px; margin: 10px 0; font-size: .92rem; }
.tier-table th, .tier-table td { padding: 5px 12px; }
.tier-table tr.on td { background: var(--info-bg); font-weight: 700; }
.buy-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.qty { display: inline-flex; align-items: stretch; }
.qty input { width: 70px !important; text-align: center; border-radius: 0 !important; margin: 0 !important; display: inline-block !important; }
.qty button { border-radius: 0; padding: 6px 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); }
.qty button:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.qty button:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.stock-ok { color: #15803d; font-weight: 600; }
.stock-low { color: #a16207; font-weight: 600; }
.cond-box { border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; margin: 10px 0; }
.ship-note { background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.desc ul { padding-left: 20px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.lightbox button { position: absolute; background: rgba(0, 0, 0, .5); color: #fff; font-size: 2rem; line-height: 1; padding: 8px 16px; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; }
.noscroll { overflow: hidden; }

/* Cart, checkout, orders */
.cart-table td { vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); display: block; }
.cart-table .qty input { width: 64px !important; }
.totals { margin-left: auto; max-width: 360px; }
.totals table { background: none; }
.totals td { border: 0; padding: 3px 0; }
.totals td:last-child { text-align: right; }
.totals tr.grand td { font-size: 1.2rem; font-weight: 800; border-top: 2px solid var(--line); padding-top: 8px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.mini-lines { list-style: none; padding: 0; margin: 0 0 10px; }
.mini-lines li { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pay-options { display: grid; gap: 12px; }
.pay-options form { margin: 0; }
.paypal-buttons { min-height: 50px; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-row: span 4; }
}

/* Admin */
.subnav, .tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.subnav a, .tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
.subnav a.on, .tabs a.on { background: var(--text); color: var(--bg); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .9rem; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.thumb-sm { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); display: block; }
tr.low td.stock { color: var(--danger); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }
.stat strong { font-size: 1.4rem; }
a.stat:hover { border-color: var(--brand); }
.logo-preview { max-height: 80px; background: #fff; padding: 6px; border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
@media (max-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.tier-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.tier-grid input { margin: 0 !important; }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.save-bar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 0; margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 5; }
.save-bar button { min-width: 8em; }
.next-steps { background: var(--info-bg); }
.busy-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.busy-box { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 22px 20px 16px; width: min(360px, 100%); text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.busy-box p { margin: 6px 0; }
.busy-title { font-weight: 700; }
.busy-count { font-size: 1.6rem; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }
.busy-stage { color: var(--muted); min-height: 2.6em; }
.busy-slow { color: var(--text); background: var(--warn-bg); border-radius: 6px; padding: 6px 8px; }
.busy-box button { margin-top: 8px; }
.spinner { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.yn-desc { margin: 2px 0 12px 1.8em; }
.yn-desc textarea { margin-bottom: 4px; }
.next-steps-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.file-btn { position: relative; overflow: hidden; margin: 0; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; margin: 0; }
.file-btn:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.url-add { display: flex; gap: 8px; margin: 8px 0 0; }
.url-add input { margin: 0 !important; }
.sort-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.sort-grid:empty { display: none; }
.sort-item { position: relative; width: 120px; display: flex; flex-direction: column; gap: 4px; }
.sortable-on .sort-item { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sort-item img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; border: 3px solid var(--line); background: #fff; }
.sort-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sort-item.is-main img { border-color: var(--brand); }
.sort-item.dragging { opacity: .5; cursor: grabbing; }
.sort-item.removing img { opacity: .35; }
.sort-item label.check { margin: 0; }
.main-tag { display: none; position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sort-item.is-main .main-tag { display: block; }
.make-main { display: none; }
.sortable-on .sort-item:not(.is-main):not(.removing) .make-main { display: block; }
.list-edit td input:not([type=checkbox]), .list-edit td textarea { margin: 0; }
.list-edit tr.cat-top > td { background: var(--info-bg); }

/* Packing slip */
@media print {
  .top, .foot, .subnav, .no-print, .save-bar { display: none !important; }
  body, .card { background: #fff; color: #000; border: 0; }
  main { padding: 0; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* Product helper (admin product form) */
.helper { background: var(--info-bg); }
.helper-ai { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.helper input.w-upc { width: 11em; margin: 0; }
.helper-found { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 8px 12px; margin: 6px 0; }
.helper-images { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.helper-img { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; width: 96px; }
.helper-img img { width: 86px; height: 86px; object-fit: contain; background: #fff; border-radius: 4px; }
.helper-img span { font-size: .75rem; }

/* Two-factor authentication */
fieldset.choices label.check { display: flex; align-items: flex-start; margin: 6px 0; }
fieldset.choices label.check input { margin-top: 4px; }
.twofa-qr { margin: 8px 0 12px; }
.twofa-qr .qr { display: block; width: 220px; max-width: 80vw; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.recovery-codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.recovery-codes li { padding: 2px 0; }

/* Site pages */
.page-body { max-width: 760px; }

/* Small utilities */
.m0 { margin: 0 !important; }
.row input.w6, input.w6 { width: 6em !important; }

.row.end { justify-content: flex-end; flex-wrap: nowrap; }
.bulk-bar { margin: 6px 0 10px; }
/* Admin → Photo station */
.station .photo-add { margin: 8px 0 14px; }
.station h2 { margin-top: 14px; }
.station-seen { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.station-photos { display: flex; gap: 6px; flex-wrap: wrap; max-width: 330px; }
.station-photos img { width: 100px; height: 100px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.station-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.station-match { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card, transparent); }
.station-match img, .station-match .no-photo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.station-match .btn { margin-top: 6px; }
.legacy-note { display: flex; gap: 12px; align-items: flex-start; }
.legacy-note img { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 4px; flex: none; }
@media (max-width: 600px) { .station-seen { grid-template-columns: 1fr; } }
/* Admin → product form: other sales channels */
.channels { margin-top: 10px; }
.error-text { color: var(--price); font-weight: 600; }
.eb-box { margin-top: 6px; }
.eb-fields { margin: 4px 0 6px 26px; padding-left: 10px; border-left: 3px solid var(--line); }
.eb-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0; }
.eb-suggest .eb-cat { text-align: left; white-space: normal; }
@media (max-width: 600px) { .eb-fields { margin-left: 0; } }
/* Admin → Settings → Where we ship */
.state-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }
.state-ticks .check { margin: 2px 0; }
.bulk-btn:disabled { cursor: not-allowed; }
.tick-space { display: inline-block; width: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (max-width: 520px) { .tagline { display: none; } .brand-name { font-size: 1.1rem; } .brand-logo { height: 34px; } .top-row { gap: 10px; } .cart-btn { font-size: .95rem; } }
@media (max-width: 520px) { .cart-word { display: none; } .theme-btn { width: 34px; height: 34px; } .menu-btn { padding: 4px 6px; } }

/* ---- Classic look (the 2006 store), kept responsive ---- */
body { font: 15px/1.45 Verdana, Tahoma, "DejaVu Sans", Geneva, Arial, sans-serif; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { color: var(--heading); font-family: Arial, Verdana, Helvetica, sans-serif; }
h1 { font-size: 1.45rem; }
.page { background: var(--page); }
@media (min-width: 1000px) {
  .page { max-width: 1200px; margin: 14px auto; border: 3px solid var(--frame); box-shadow: 0 0 0 1px var(--line), 0 4px 18px rgba(0, 0, 0, .18); }
  .page .wrap { max-width: none; }
}

/* Banner header */
.top { background: linear-gradient(180deg, var(--head-1) 0%, var(--head-2) 55%, var(--head-3) 100%); border-bottom: 3px solid var(--navy); }
.brand-name { font-family: Arial, Verdana, sans-serif; font-weight: 900; font-style: italic; font-size: 1.55rem; letter-spacing: -.5px; color: var(--logo);
  text-shadow: -1px -1px 0 var(--logo-edge), 1px -1px 0 var(--logo-edge), -1px 1px 0 var(--logo-edge), 1px 1px 0 var(--logo-edge), 2px 3px 3px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .brand-name { color: var(--logo); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-name { color: var(--logo); } }
.tagline { color: var(--tag); font-style: italic; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.top .cart-btn, .top .mainnav a, .top .mainnav .linklike, .top .menu-btn { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.top .cart-btn:hover, .top .mainnav a:hover { color: #ffe08a; }
.top .theme-btn { color: #fff; border-color: rgba(255, 255, 255, .7); }
.top .theme-btn:hover { border-color: #fff; }
.search input { border: 1px solid var(--navy); background: #fff; color: #1a1a1a; }
.search button { background: linear-gradient(#f0a060, var(--frame)); border: 1px solid #a8572a; font-weight: 700; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.search button:hover { background: var(--hot); }
@media (max-width: 1100px) { .mainnav { background: rgba(8, 21, 137, .35); padding: 8px 10px; border-radius: var(--radius); } }
@media (min-width: 1101px) {
  .top-row { padding-bottom: 0; row-gap: 8px; }
  .top .mainnav { order: 6; flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 5px 16px; background: var(--navy); gap: 22px; font-size: .85rem; }
  .top .mainnav a, .top .mainnav .linklike { font-weight: 700; }
}

/* Box titles and the category menu */
.cat-menu { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cat-menu summary { background: linear-gradient(var(--title-top), var(--title-bg)); border-radius: var(--radius) var(--radius) 0 0; font-size: .95rem; padding: 7px 12px; }
.cat-menu ul { padding: 4px 4px 2px; }
.cat-menu ul ul { padding: 0 0 2px 12px; }
.cat-menu li { margin: 0 0 3px; }
.cat-menu a { background: var(--menu-bg); border: 1px solid var(--line); border-radius: 2px; padding: 4px 8px; color: var(--accent); font-size: .82rem; }
.cat-menu a:hover { color: var(--link-hover); background: var(--menu-bg); text-decoration: underline; }
.cat-menu a.on { font-weight: 700; color: var(--accent); border-color: var(--title-bg); }
:root[data-theme="dark"] .cat-menu a.on, :root[data-theme="dark"] .cat-menu a:hover { color: var(--accent); }
.section-head { background: linear-gradient(var(--title-top), var(--title-bg)); border-radius: var(--radius); padding: 5px 12px; margin: 22px 0 12px; align-items: center; }
.section-head h2 { color: #fff; margin: 0; font-size: 1rem; }
.section-head a { color: #fff; font-size: .85rem; }
.section-head a:hover { color: #ffe08a; }

/* Home banner */
.hero { background: linear-gradient(100deg, var(--navy) 0%, var(--title-bg) 55%, #68c1ff 100%); border-radius: var(--radius); border: 1px solid var(--navy); }
.hero h1 { color: #ffd23a; font-style: italic; text-shadow: 1px 2px 2px rgba(0, 0, 0, .5); }
.hero .btn { background: linear-gradient(#ff7a3d, var(--hot)); color: #fff; border: 1px solid #a8572a; }
.hero .btn:hover { background: var(--hot); color: #fff; }

.cat-tiles a { background: var(--menu-bg); border-color: var(--line); border-radius: 2px; color: var(--accent); font-size: .85rem; }
.cat-tiles a:hover { color: var(--link-hover); border-color: var(--title-bg); text-decoration: underline; }

/* Product tiles */
.item { border-radius: 2px; text-align: center; }
.item:hover { border-color: var(--frame); }
.item .title { color: var(--accent); font-weight: 700; font-size: .85rem; }
.item:hover .title { color: var(--link-hover); text-decoration: underline; }
.item .price { color: var(--price); }
.grid.list .item { text-align: left; }
.big-price { color: var(--price); }

/* Buttons */
button, .btn { background: linear-gradient(var(--title-top), var(--title-bg)); border-radius: 3px; }
button:hover, .btn:hover { background: var(--navy); }
button.ghost, .btn.ghost, button.linklike, .view-switch button, .qty button, .thumbs button, .lightbox button, .menu-btn, .theme-btn { background: none; }
.view-switch button { background: var(--card); }
.view-switch button[aria-pressed="true"] { background: var(--title-bg); }
.qty button { background: var(--card); }
.thumbs button { background: #fff; }
.lightbox button { background: rgba(0, 0, 0, .5); }
button.hot, .btn.hot { background: linear-gradient(#ff7a3d, var(--hot)); }
button.danger, .btn.danger { background: var(--danger); }
.subnav a.on, .tabs a.on { background: var(--title-bg); color: #fff; border-color: var(--title-bg); }

/* Footer */
.foot { background: var(--navy); color: #d8e0ff; border-top: 3px solid var(--frame); }
.foot a { color: #fff; }
.foot a:hover { color: #ffe08a; }
@media (max-width: 520px) {
  .brand-name { font-size: 1.12rem; }
  .hero { padding: 16px; }
}
@media (max-width: 420px) {
  .top-row { gap: 8px; }
  .brand { gap: 6px; }
  .brand-name { font-size: .98rem; letter-spacing: -.6px; }
  .brand-logo { height: 30px; }
  .hero h1 { font-size: 1.3rem; }
}
