/* "Amiga Workbench" theme.
   A blue Workbench desktop with grey, hard-bevelled windows. The front window's title bar is orange; cards and the sidebar are
   inactive (grey) until you point at them. Windows have a close gadget on the left and depth + zoom gadgets on the right (zoom
   rolls the window up). Gadgets press in, disabled ones are ghosted with the classic checker pattern, errors are Guru Meditations.
   Type: Press Start 2P (8x8 pixel face, like Topaz) for the chrome and VT323 for reading text — both SIL OFL, self-hosted
   in assets/fonts/. CSS + inline SVG only. */

@font-face { font-family: "Press Start 2P"; src: url("fonts/press-start-2p.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/vt323.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    --blue: #0055aa;          /* Workbench 1.x desktop blue */
    --blue2: #6688bb;
    --g: #aaaaaa;             /* Workbench grey */
    --gd: #7a7a7a;
    --gl: #c9c9c9;
    --k: #000;
    --w: #fff;
    --orange: #ff8800;
    --red: #ff2a1a;
    --err: #ff2a1a;
    --ok: #1b7a32;
    --link: #0044aa;
    --chrome: "Press Start 2P", "Topaz", "Topaz New", "Courier New", monospace;
    --body: "VT323", "Topaz", "Topaz New", "Courier New", monospace;
    --mono: var(--body);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #7a7a7a #c9c9c9; }
body {
    margin: 0; color: var(--k); font: 20px/1.15 var(--body);
    background: var(--blue);
    min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--link); }
a:hover { background: var(--k); color: var(--w); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--chrome); font-weight: 400; line-height: 1.5; margin: 0 0 .6em; }
h1 { font-size: 18px; } h2 { font-size: 14px; } h3 { font-size: 12px; }
p { margin: 0 0 .7em; }
.mono { font-family: var(--body); }
.muted { color: #333; }
.small { font-size: 16px; }
.sr { position: absolute; left: -9999px; }

/* ---- Scrollbars: dithered track, bevelled thumb ---- */
::-webkit-scrollbar { width: 18px; height: 18px; }
::-webkit-scrollbar-track { background-color: var(--gd); background-image: repeating-conic-gradient(var(--g) 0% 25%, var(--gd) 0% 50%); background-size: 4px 4px; border-left: 2px solid var(--k); }
::-webkit-scrollbar-thumb { background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); outline-offset: -1px; }
::-webkit-scrollbar-corner { background: var(--g); }
::-webkit-scrollbar-button { display: none; }

/* ---- Screen title bar (the menu bar) ---- */
.menubar { background: var(--w); border-bottom: 2px solid var(--k); position: sticky; top: 0; z-index: 20; font: 11px/1 var(--chrome); }
.menubar-in { max-width: 1180px; margin: 0 auto; padding: 0 0 0 10px; display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; min-height: 30px; }
.menubar a, .menubar summary { color: var(--k); text-decoration: none; padding: 0 12px; display: inline-flex; align-items: center; min-height: 30px; cursor: default; list-style: none; }
.menubar summary::-webkit-details-marker { display: none; }
.menubar a:hover, .menubar summary:hover, .menubar details[open] > summary { background: var(--k); color: var(--w); }
.brand { gap: 9px; padding-left: 0 !important; color: var(--blue) !important; }
.brand:hover { color: var(--w) !important; }
.brand svg { width: 22px; height: 22px; }
.menubar .spacer { flex: 1; }
.mem { display: inline-flex; align-items: center; padding: 0 12px; color: #555; font-size: 9px; white-space: nowrap; }
.menu { position: relative; display: flex; }
.menu-list { position: absolute; top: 100%; left: 0; background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); min-width: 250px; padding: 2px; max-height: 70vh; overflow: auto; z-index: 30; }
.menu-list a { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 10px; min-height: 0; }
.menu-list hr { border: 0; border-top: 2px solid var(--gd); border-bottom: 2px solid var(--w); margin: 3px 0; }
.search { display: flex; align-items: center; padding: 0 6px; }
.search input { width: 150px; padding: 1px 6px; font-size: 18px; height: 24px; background: var(--w); }
.cartlink b { font: 9px/1 var(--chrome); background: var(--orange); color: var(--k); padding: 3px 5px; margin-left: 8px; }
.cartlink:hover b { background: var(--w); }
.screen-gadgets { width: 56px; margin-left: 6px; border-left: 2px solid var(--k); background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 26' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h28v26H0z' fill='%23aaa'/%3E%3Cpath d='M0 0h27v2H2v22H0z' fill='%23fff'/%3E%3Cpath d='M27 2h1v24H2v-2h25z' fill='%23666'/%3E%3Cpath d='M7 6h10v8H7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 11h10v8H12z' fill='%23aaa' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M30 0h26v26H30z' fill='%23aaa'/%3E%3Cpath d='M30 0h25v2H32v22h-2z' fill='%23fff'/%3E%3Cpath d='M55 2h1v24H32v-2h23z' fill='%23666'/%3E%3Cpath d='M37 7h12v12H37z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M39 9h4v4h-4z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---- Page frame ---- */
.desktop { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 14px 36px; }
.cols { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.stack > * + * { margin-top: 22px; }
@media (max-width: 860px) { .cols, .cols-2 { grid-template-columns: 1fr; } }

/* ---- Windows ---- */
.win { position: relative; background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); }
.win-title { position: relative; height: 26px; display: flex; align-items: center; background: var(--orange); border-bottom: 2px solid var(--k); padding: 0 66px 0 38px; cursor: default; }
/* close gadget (left) */
.win-title::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 28px; border-right: 2px solid var(--k);
    background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h26v2H2v22H0z' fill='%23fff'/%3E%3Cpath d='M25 2h1v22H2v-2h23z' fill='%23666'/%3E%3Cpath d='M8 7h10v10H8z' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* depth + zoom gadgets (right) */
.win-title::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 58px; border-left: 2px solid var(--k);
    background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h27v2H2v22H0z' fill='%23fff'/%3E%3Cpath d='M26 2h1v22H2v-2h24z' fill='%23666'/%3E%3Cpath d='M6 5h10v8H6z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M11 10h10v9H11z' fill='%23aaa' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M28 0h27v2H30v22h-2z' fill='%23fff'/%3E%3Cpath d='M55 2h1v22H30v-2h25z' fill='%23666'/%3E%3Cpath d='M35 6h13v12H35z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M35 6h6v5h-6z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.win-title h2, .win-title h1, .win-title .t { font: 11px/1 var(--chrome); margin: 0; padding: 0; color: var(--k); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.win-body { margin: 0; padding: 14px; background: var(--g); }
.win-body.paper { background: var(--w); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); outline-offset: 0; margin: 8px; }
.win-status { border-top: 2px solid var(--gd); box-shadow: 0 -2px 0 var(--w); padding: 5px 10px; font-size: 17px; display: flex; justify-content: space-between; gap: 10px; margin: 0 8px 8px; }
/* sizing gadget, bottom-right */
.win::after { content: ""; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; pointer-events: none;
    background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h20v2H2v18H0z' fill='%23fff'/%3E%3Cpath d='M19 2h1v18H2v-2h17z' fill='%23666'/%3E%3Cpath d='M6 14l8-8M10 14l4-4' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat; border-top: 2px solid var(--k); border-left: 2px solid var(--k); }
.win.shaded > :not(.win-title) { display: none; }
.win.shaded::after { display: none; }
.win.shaded .win-title { border-bottom: 0; }
/* inactive windows */
.card > .win-title, aside.win > .win-title { background: var(--g); }
.card > .win-title .t, aside.win > .win-title h2 { color: #333; }
.card:hover > .win-title, .card:focus-within > .win-title, aside.win:hover > .win-title { background: var(--orange); }
.card:hover > .win-title .t, .card:focus-within > .win-title .t, aside.win:hover > .win-title h2 { color: var(--k); }
.card > .win-title { padding-right: 62px; }

.infobar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 12px; font-size: 18px; background: var(--gl); border-bottom: 2px solid var(--k); }

/* ---- Gadgets (buttons) ---- */
.btn, button.btn {
    font: 11px/1.4 var(--chrome); color: var(--k); text-decoration: none; display: inline-block; cursor: pointer; padding: 8px 14px 7px; min-height: 30px; text-align: center;
    background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); outline-offset: 0; margin: 1px;
}
.btn:hover { background: var(--gl); color: var(--k); }
.btn:active { border-color: var(--k) var(--w) var(--w) var(--k); background: var(--gd); padding: 9px 13px 6px 15px; }
.btn.default { background: var(--orange); }
.btn.default:hover { background: #ffa033; }
.btn.default:active { background: #d97300; }
.btn[disabled], .btn.off { color: #555; cursor: not-allowed; background: var(--g) repeating-conic-gradient(transparent 0% 25%, rgba(0,0,0,.28) 0% 50%) 0 0 / 4px 4px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.link { background: none; border: 0; outline: 0; text-decoration: underline; color: var(--link); padding: 0; min-height: 0; font: 18px/1 var(--body); margin: 0; }
.btn.link:active { background: none; padding: 0; }
/* string gadgets */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea {
    font: 20px/1.1 var(--body); color: var(--k); background: var(--gl); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); padding: 4px 6px; border-radius: 0; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; background: var(--w); }
input[type=number] { width: 4em; }
textarea { width: 100%; min-height: 90px; resize: vertical; }
/* cycle/popup gadget */
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px; border-color: var(--w) var(--k) var(--k) var(--w); background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h28v24H2z' fill='%23aaa'/%3E%3Cpath d='M0 0h2v24H0z' fill='%23000'/%3E%3Cpath d='M8 9h14l-7 8z' fill='%23000'/%3E%3C/svg%3E") right center / 30px 100% no-repeat; }
/* check + mutual-exclude gadgets */
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -5px; background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); flex: none; cursor: pointer; outline: 1px solid var(--k); }
input[type=checkbox]:checked { background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' shape-rendering='crispEdges'%3E%3Cpath d='M2 7h2v2h2V7h2V5h2V3h2v2h-2v2h-2v2H8v2H6v2H4V9H2z' fill='%23000'/%3E%3C/svg%3E") center / 14px no-repeat; }
input[type=radio] { border-radius: 0; }
input[type=radio]:checked { background: var(--g) radial-gradient(var(--k) 0 4px, transparent 4.5px); }
label { display: block; font: 11px/1.5 var(--chrome); margin-bottom: 6px; }
label .small, label .muted { font: inherit; color: #333; }   /* “(optional)” notes stay in the same pixel face and size */
.field { margin-bottom: 14px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select { width: 100%; }
.field-err { color: #8a1008; font-size: 17px; margin-top: 3px; }
.field-err::before { content: "! "; font-family: var(--chrome); font-size: 9px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 14px; }
@media (max-width: 560px) { .row, .row3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---- Requesters and Guru Meditations ---- */
.alert {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h28v28H0z' fill='%23000'/%3E%3Cpath d='M2 2h24v24H2z' fill='%230055aa'/%3E%3Cpath d='M12 6h4v4h-4zM12 12h4v10h-4z' fill='%23fff'/%3E%3C/svg%3E");
    position: relative; background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k);
    padding: 14px 16px 14px 62px; min-height: 58px; margin-bottom: 18px; font-size: 21px;
}
.alert::before { content: ""; position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; background: var(--icon) center / contain no-repeat; image-rendering: pixelated; }
.alert.ok { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h28v28H0z' fill='%23000'/%3E%3Cpath d='M2 2h24v24H2z' fill='%231b7a32'/%3E%3Cpath d='M6 14h4v4h2v-2h2v-2h2v-2h2V8h4v4h-2v2h-2v2h-2v2h-2v2h-2v2h-4v-4H6z' fill='%23fff'/%3E%3C/svg%3E"); }
/* Software Failure. Press left mouse button to continue. */
.alert.error { background: var(--k); color: var(--red); border: 4px solid var(--red); outline: 0; padding: 14px 18px; font-size: 22px; letter-spacing: .02em; animation: guru 1.4s steps(1) infinite; }
.alert.error::before { display: none; }
.alert.error::after { content: "Guru Meditation #00000004.0000AAC0"; display: block; margin-top: 8px; font-size: 16px; color: var(--red); opacity: .8; }
@keyframes guru { 0%, 55% { border-color: var(--red); } 56%, 100% { border-color: var(--k); } }
@media (prefers-reduced-motion: reduce) { .alert.error { animation: none; } }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero h1 { font-size: 20px; line-height: 1.4; }
.hero .mac { width: 128px; height: 128px; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .hero .mac { display: none; } }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* ---- List gadget (categories) ---- */
.finder { list-style: none; margin: 0; padding: 0; background: var(--gl); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); }
.finder li a { display: flex; align-items: center; gap: 8px; padding: 3px 8px; text-decoration: none; color: var(--k); font-size: 19px; }
.finder li a:hover, .finder li a.on { background: var(--blue); color: var(--w); }
.finder .n { margin-left: auto; font-size: 17px; opacity: .8; }
.finder li a::before { content: ""; width: 20px; height: 16px; flex: none; image-rendering: pixelated; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 3h20v13H0z'/%3E%3Cpath fill='%23fff' d='M2 5h16v3H2z'/%3E%3Cpath fill='%236688bb' d='M2 8h16v6H2z'/%3E%3Cpath fill='%23ff8800' d='M7 10h6v2H7z'/%3E%3Cpath fill='%23000' d='M2 3h5v2H2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.finder li a.d1 { padding-left: 26px; } .finder li a.d2 { padding-left: 44px; } .finder li a.d3 { padding-left: 62px; }

/* ---- Product grid + cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; }
.card .win-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-bottom: 22px; }
.card .pic { display: block; position: relative; background: var(--w); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); aspect-ratio: 1 / 1; overflow: hidden; }
.card .name { text-decoration: none; color: var(--k); line-height: 1.1; font-size: 21px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .name:hover { background: none; color: var(--link); text-decoration: underline; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 14px; }
.price { font-size: 26px; line-height: 1; }
.price s { color: #444; margin-right: 6px; font-size: .8em; }
.tag { font: 9px/1 var(--chrome); padding: 4px 6px; border: 2px solid var(--k); background: var(--w); display: inline-block; }
.tag.out { background: var(--k); color: var(--w); } .tag.low { background: var(--orange); }
.noimg { display: grid; place-items: center; height: 100%; color: #555; font-size: 18px;
    background: repeating-conic-gradient(var(--gl) 0% 25%, var(--w) 0% 50%) 0 0 / 8px 8px; }

/* ---- Product page ---- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.buy { background: var(--gl); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); padding: 14px; margin: 16px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.buy .price { font-size: 34px; }
.prose { font-size: 21px; line-height: 1.15; }
.prose h2, .prose h3, .prose h4 { margin: 1.1em 0 .5em; font-size: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 .8em; }
.prose table { border-collapse: collapse; margin-bottom: .8em; } .prose td, .prose th { border: 2px solid var(--gd); padding: 3px 8px; }
.crumbs { font-size: 18px; margin-bottom: 14px; color: var(--w); }
.crumbs a { color: var(--w); } .crumbs a:hover { background: var(--w); color: var(--blue); }

/* ---- Tables (cart, orders): list view ---- */
table.t { width: 100%; border-collapse: collapse; background: var(--w); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); }
table.t th { background: var(--g); text-align: left; padding: 6px 8px; font: 9px/1.3 var(--chrome); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); }
table.t td { padding: 7px 8px; border-bottom: 2px solid var(--gl); vertical-align: middle; }
table.t tbody tr:hover td { background: #d8e3f3; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
table.t tfoot td { border-top: 2px solid var(--k); }
.thumb { width: 56px; height: 56px; border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); background: var(--w); }
.item { display: flex; gap: 10px; align-items: center; }

/* ---- Order status ---- */
.status { font: 9px/1 var(--chrome); text-transform: uppercase; border: 2px solid var(--k); padding: 4px 6px; background: var(--w); }
.status.new { background: #ffe08a; } .status.invoiced { background: #bcd3f2; } .status.paid, .status.shipped, .status.completed { background: #b4e6b4; } .status.cancelled { background: var(--g); text-decoration: line-through; }
.steps { display: flex; gap: 0; margin: 12px 0 18px; }
.steps div { flex: 1; text-align: center; font: 9px/1.4 var(--chrome); padding: 8px 2px; border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); margin-left: -2px; background: var(--g); }
.steps div.done { background: var(--blue2); color: var(--w); }
.steps div.cur { background: var(--orange); }

/* ---- Pager ---- */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 7px 10px 6px; font: 10px/1.4 var(--chrome); background: var(--g); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); text-decoration: none; color: var(--k); }
.pager span.on { background: var(--orange); }
.pager a:hover { background: var(--gl); color: var(--k); }

/* ---- Footer + misc ---- */
.statusbar { background: var(--g); border-top: 2px solid var(--w); box-shadow: 0 -2px 0 var(--k); font-size: 18px; }
.statusbar-in { max-width: 1180px; margin: 0 auto; padding: 6px 14px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.statusbar a { color: var(--k); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 6px; align-items: center; }
.inline { display: inline; }
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; align-items: start; }
.subcats a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 56px; background: var(--gl); border: 2px solid; border-color: var(--w) var(--k) var(--k) var(--w); outline: 1px solid var(--k); padding: 8px; text-decoration: none; color: var(--k); }
.subcats a:hover { background: var(--blue); color: var(--w); }
.subcats img { width: 100%; height: 90px; object-fit: contain; }
.cardh { margin: 0; font: inherit; line-height: inherit; }

/* ---- Images can never affect layout or spill out of their box (see the Vintage theme for the reason) ---- */
.gallery { min-width: 0; }
.gallery .main { position: relative; display: block; overflow: hidden; background: var(--w); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); aspect-ratio: 1 / 1; }
.gallery .main img, .gallery .main .noimg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs a { flex: 0 0 66px; width: 66px; height: 66px; position: relative; overflow: hidden; display: block; background: var(--w); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); }
.thumbs a img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.thumbs a:hover { background: var(--w); }
.thumbs a.on { outline: 3px solid var(--orange); outline-offset: 1px; }
.card .pic img, .card .pic .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb { position: relative; display: block; overflow: hidden; flex: 0 0 56px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }

/* The product title on the product page (an inline style in the shared template asks for bold body text; use the pixel face instead). */
.ptitle { font: 400 18px/1.5 var(--chrome) !important; }

/* ---- Product options (add-ons) ---- */
.opts { background: var(--gl); border: 2px solid; border-color: var(--k) var(--w) var(--w) var(--k); outline: 1px solid var(--gd); padding: 14px; margin: 16px 0 0; }
.opts .field { margin-bottom: 12px; } .opts .field:last-child { margin-bottom: 0; }
.opts select, .opts input[type=text] { width: 100%; max-width: 380px; }
.opts label.check { display: flex; align-items: flex-start; font: 20px/1.15 var(--body); margin: 0; }
.opt-line { font-size: 17px; }

/* Orders split by seller */
.order-group { border: 2px solid currentColor; margin: 0 0 14px; padding: 0; background: rgba(255,255,255,.35); }
.order-group > .t { margin: 0; }
.order-group > p { margin: 8px; }
.order-group-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 10px; background: rgba(0,0,0,.12); border-bottom: 2px solid currentColor; }
.order-group-head.seller-line { border: 2px solid currentColor; margin-bottom: 12px; }
.og-num { font-weight: bold; text-transform: uppercase; font-size: .85em; }
.split-note { margin-bottom: 14px; }

/* Recommended products ("goes well with") */
.recs { margin-top: 18px; }
.rec-list { list-style: none; margin: 0 0 12px; padding: 0; }
.rec { display: grid; grid-template-columns: 24px 64px 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px dotted currentColor; }
.rec:last-child { border-bottom: 0; }
.rec-pick input { width: 18px; height: 18px; }
.rec-pic { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; }
.rec-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rec-info a { font-weight: bold; }
.rec-info .small { display: block; }
.rec-price { white-space: nowrap; font-weight: bold; }
.rec-act:empty { display: none; }
@media (max-width: 620px) { .rec { grid-template-columns: 24px 56px 1fr; } .rec-price, .rec-act { grid-column: 3; } .rec-pic { width: 56px; height: 56px; } }

.backorder-note { margin: 10px 0; }
