/* Tony's Tech Support shop – matches tonystechsupport.com.au (Space Grotesk headings, Raleway body, orange accent) */
:root {
  --bg: #f4f4f3;
  --card: #ffffff;
  --ink: #111111;
  --muted: #4a4a4a;
  --line: #dcdcd8;
  --accent: #ec5c39;
  --accent-dark: #c9431f;
  --accent-soft: #fde9e3;
  --ok: #1f7a3f;
  --warn: #8a4b00;
  --radius: 6.4px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Raleway", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 500; line-height: 1.55; letter-spacing: .01em; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; letter-spacing: -.05em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--accent); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* guarantee strip */
.gbar { background: var(--ink); color: #fff; font-size: .9rem; text-align: center; padding: 8px 16px; }
.gbar strong { color: #ffb39f; font-family: var(--head); font-weight: 500; letter-spacing: -.02em; }

/* header */
header.site { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { font-family: var(--head); font-size: 1.15rem; letter-spacing: -.04em; line-height: 1.1; }
.brand small { display: block; color: var(--accent); font-size: .85rem; }
nav.top { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav.top a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: var(--radius); }
nav.top a:hover { background: #e9e9e6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); padding: 14px 22px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.cartbtn { position: relative; }
.cartbtn .count { background: #fff; color: var(--accent-dark); border-radius: 999px; padding: 0 8px; font-size: .85rem; }

/* hero */
.hero { padding: 40px 0 24px; text-align: center; }
.hero p.lead { font-size: 1.15rem; max-width: 760px; margin: 0 auto 18px; }
.search { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search input { flex: 1; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #9a9a96; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
label { font-weight: 600; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* tiles + grid */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 28px; }
.cat { background: var(--card); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cat:hover, .cat.on { border-color: var(--accent); }
.cat svg { width: 38px; height: 38px; color: var(--accent); }
.cat b { font-family: var(--head); font-weight: 500; letter-spacing: -.03em; font-size: 1.05rem; }
.cat small { color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.toolbar select { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.card:hover { border-color: var(--accent); }
.card .pic { aspect-ratio: 4/3; background: #fafaf8; display: grid; place-items: center; padding: 12px; }
.card .pic img { max-height: 100%; object-fit: contain; }
.card .pic svg { width: 64px; height: 64px; color: #c9c9c4; }
.card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .name { font-size: 1rem; line-height: 1.35; }
.price { font-family: var(--head); font-size: 1.6rem; letter-spacing: -.04em; }
.card .price { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #efefec; border-radius: 999px; padding: 2px 10px; font-size: .82rem; }
.low { color: var(--warn); font-weight: 600; font-size: .9rem; }
.empty { background: var(--card); padding: 24px; border-radius: var(--radius); text-align: center; }

/* product */
.crumbs { margin: 18px 0; font-size: .95rem; }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.prod .gallery { background: var(--card); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; min-height: 320px; box-shadow: var(--shadow); }
.prod .gallery svg { width: 120px; height: 120px; color: #c9c9c4; }
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h3 { margin-bottom: .4em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.meta { display: grid; gap: 6px; margin: 12px 0 18px; }
.desc { white-space: pre-line; color: var(--muted); }
.note { background: var(--accent-soft); border-left: 5px solid var(--accent); padding: 14px 16px; border-radius: var(--radius); margin: 16px 0; }
.drives { display: grid; gap: 10px; }
.drive { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.drive span { flex: 1; }

/* cart & checkout */
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 72px; height: 60px; background: #fafaf8; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.line .thumb img { max-height: 60px; object-fit: contain; }
.line .thumb svg { width: 32px; height: 32px; color: #c9c9c4; }
.qty { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qty button { width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid #9a9a96; background: #fff; font-size: 1.1rem; cursor: pointer; }
.linkbtn { background: none; border: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
legend { font-family: var(--head); font-size: 1.15rem; letter-spacing: -.03em; padding: 0 6px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px dashed var(--line); }
.opt:last-child { border-bottom: 0; }
.opt input[type=checkbox], .opt input[type=radio] { width: 24px; height: 24px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--accent); }
.opt .t { flex: 1; }
.opt .t b { font-weight: 600; }
.opt .amt { font-weight: 700; white-space: nowrap; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary .row.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-family: var(--head); font-size: 1.4rem; letter-spacing: -.03em; }
.summary .sticky { position: sticky; top: 96px; }
.calc { display: flex; gap: 8px; }
.calc input { flex: 1; }
.status { margin-top: 8px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: #b00020; }
.paybox { border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; background: #fff; }
.paybox dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; }
.paybox dt { font-weight: 700; }

/* guarantee + faq */
section.guarantee { margin-top: 36px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
section.guarantee .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
details { background: var(--card); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-family: var(--head); letter-spacing: -.02em; font-size: 1.05rem; }
details p { margin-top: 0; }

footer.site { background: #ffffff; margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line); font-size: .95rem; }
footer.site .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
footer.site a { color: var(--ink); }

@media (max-width: 820px) {
  .prod, .layout { grid-template-columns: 1fr; }
  .summary .sticky { position: static; }
  nav.top { margin-left: 0; width: 100%; }
  header.site { position: static; }
}
@media (max-width: 480px) {
  html { font-size: 17px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .body { padding: 10px; }
  .price { font-size: 1.3rem; }
  .line { grid-template-columns: 56px 1fr; }
  .line .lineprice { grid-column: 2; }
  .brand img { width: 44px; height: 44px; }
  nav.top { gap: 2px; }
  nav.top a { padding: 6px 8px; font-size: .9rem; }
  nav.top .cartbtn { margin-left: auto; }
}
@media print { header.site, .gbar, footer.site, .noprint { display: none; } }
