/* ============================================================
   Airdry — main stylesheet
   Palette: --orange #F09000 | --blue #245490 | --ink #2C3540
   Fonts: Fraunces (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

/* ── Reset & tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #F09000;
  --blue:    #245490;
  --ink:     #2C3540;
  --line:    rgba(24,48,96,.16);
  --bg:      #FAFAF8;
  --white:   #FFFFFF;
  --muted:   #6B7583;
  --success: #1C8045;
  --error:   #C0392B;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(36,84,144,.10);
  --shadow-lg: 0 8px 32px rgba(36,84,144,.14);
  --max:     clamp(1100px, 92vw, 1720px);
  --gap:     clamp(16px, 2vw, 32px);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -48px; left: 12px;
  background: var(--blue); color: #fff; padding: .5em 1em;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--blue);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .75rem var(--gap);
  max-width: var(--max); margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.site-logo span { color: var(--orange); }

.site-nav {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,.88);
  font-size: .9rem; font-weight: 500;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}
.site-nav a.nav-specials { color: var(--orange); font-weight: 600; }

/* Cart icon */
.cart-link {
  position: relative; display: flex; align-items: center;
  color: #fff; padding: .4rem .6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  transition: background .15s;
  margin-left: .5rem;
}
.cart-link:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--orange); color: #fff;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  display: none;
}
.cart-count.has-items { display: flex; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: .4rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Search trigger */
.search-trigger {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .875rem;
  cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
  transition: background .15s;
}
.search-trigger:hover { background: rgba(255,255,255,.22); color: #fff; }
.search-trigger kbd {
  font-size: .7rem; opacity: .7;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px; padding: 0 .3em;
}

/* ── Search overlay ─────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(36,84,144,.75);
  backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }

.search-box {
  background: #fff; border-radius: 12px;
  width: min(680px, 94vw);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  display: flex; align-items: center;
  padding: .75rem 1rem; gap: .75rem;
  border-bottom: 1px solid var(--line);
}
.search-input-wrap svg { color: var(--muted); flex-shrink: 0; }
#search-input {
  flex: 1; border: none; outline: none;
  font-size: 1.1rem; color: var(--ink);
  background: none;
  font-family: var(--font-body);
}
#search-input::placeholder { color: var(--muted); }
.search-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .25rem;
  border-radius: var(--radius);
}
.search-close:hover { color: var(--ink); background: #f0f0ee; }

#search-results {
  max-height: 480px; overflow-y: auto;
  padding: .5rem 0;
}
.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem;
  cursor: pointer;
  transition: background .1s;
}
.search-result-item:hover { background: #f5f5f2; }
.search-result-img {
  width: 48px; height: 48px;
  object-fit: contain; border-radius: 4px;
  border: 1px solid var(--line); flex-shrink: 0;
  background: #f5f5f2;
}
.search-result-name { font-size: .9rem; font-weight: 500; color: var(--ink); }
.search-result-price { font-size: .8rem; color: var(--blue); font-weight: 600; }
.search-result-cat { font-size: .75rem; color: var(--muted); }
.search-no-results { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3d6e 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) var(--gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero p { font-size: clamp(1rem, 1.5vw, 1.2rem); opacity: .88; margin-bottom: 1.75rem; }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer; transition: all .15s;
  text-decoration: none; white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover { background: #d47e00; border-color: #d47e00; color: #fff; }

.btn-secondary {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: #fff; }

.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

.btn-sm { padding: .4rem 1rem; font-size: .875rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

.btn-atc {
  background: var(--orange); color: #fff;
  border: none; padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: .4rem;
  width: 100%;
  justify-content: center;
}
.btn-atc:hover { background: #d47e00; }
.btn-atc:disabled { background: #ccc; cursor: not-allowed; }

.btn-enquire {
  background: var(--blue); color: #fff;
  border: none; padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: .4rem;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.btn-enquire:hover { background: #1b3e6b; text-decoration: none; color: #fff; }

/* ── Category cards ─────────────────────────────────────── */
.section { padding: clamp(32px, 5vw, 64px) var(--gap); }
.section-title { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.section-title p { color: var(--muted); margin-top: .5rem; font-size: 1.05rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  max-width: var(--max); margin: 0 auto;
}

.cat-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  display: flex; flex-direction: column;
}
.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}
.cat-card-img {
  width: 100%; aspect-ratio: 3/2;
  object-fit: cover;
  background: #f0f0ee;
}
.cat-card-body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.cat-card-body h3 { color: var(--blue); margin-bottom: .3rem; font-size: 1rem; }
.cat-card-body p { color: var(--muted); font-size: .85rem; flex: 1; }
.cat-card-arrow {
  color: var(--orange); font-size: .85rem; font-weight: 600;
  margin-top: .75rem; display: flex; align-items: center; gap: .3rem;
}

/* ── Product grid ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.product-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f2;
}
.product-card-img-wrap a { display: block; height: 100%; }
.product-card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .3s;
}
.product-card:hover .product-card-img { transform: scale(1.03); }

.badge-sale {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--orange); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .2em .5em;
  border-radius: 3px;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-oos {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--muted); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .2em .5em;
  border-radius: 3px;
  text-transform: uppercase; letter-spacing: .04em;
}

.product-card-body {
  padding: .9rem 1rem 1rem;
  display: flex; flex-direction: column; flex: 1;
}
.product-card-cat {
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem;
}
.product-card-name {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  margin-bottom: auto; line-height: 1.3;
}
.product-card-name a { color: var(--ink); }
.product-card-name a:hover { color: var(--blue); text-decoration: none; }

.product-card-price {
  margin-top: .75rem; margin-bottom: .75rem;
  display: flex; align-items: baseline; gap: .5rem;
}
.price-current {
  font-size: 1.1rem; font-weight: 700; color: var(--blue);
  font-family: var(--font-display);
}
.price-was {
  font-size: .85rem; color: var(--muted);
  text-decoration: line-through;
}
.price-save {
  font-size: .75rem; color: var(--orange); font-weight: 600;
}

.product-card-actions { display: flex; gap: .5rem; }
.product-card-actions .btn-atc { flex: 1; }
.product-card-actions .btn-enquire { flex: 1; }

/* ── Listing page ───────────────────────────────────────── */
.listing-header {
  background: var(--blue); color: #fff;
  padding: clamp(32px, 5vw, 56px) var(--gap);
}
.listing-header h1 { color: #fff; }
.listing-header p { opacity: .85; margin-top: .5rem; max-width: 640px; }
.listing-meta {
  font-size: .85rem; opacity: .7; margin-top: .75rem;
}

.listing-controls {
  display: flex; gap: 1rem; align-items: center;
  flex-wrap: wrap;
  padding: 1rem var(--gap);
  background: #fff; border-bottom: 1px solid var(--line);
  max-width: 100%; overflow-x: auto;
  position: sticky; top: 60px; z-index: 100;
}

.filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f5f5f2;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .85rem; cursor: pointer;
  transition: all .15s; white-space: nowrap;
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

.sort-select {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .35rem .7rem;
  font-size: .85rem; color: var(--ink);
  cursor: pointer; background: #fff;
  font-family: var(--font-body);
}

.listing-count {
  font-size: .85rem; color: var(--muted);
}

.listing-body {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--gap);
}

/* ── Product page ───────────────────────────────────────── */
.product-page {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.product-images { position: sticky; top: 80px; }

.product-main-img-wrap {
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: zoom-in;
  overflow: hidden;
}
.product-main-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: contain;
  transition: transform .3s;
}
.product-main-img-wrap:hover .product-main-img { transform: scale(1.08); }

.product-thumbs {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.product-thumb {
  width: 72px; height: 72px;
  border-radius: 6px; border: 2px solid var(--line);
  cursor: pointer; object-fit: contain; padding: 4px;
  background: #fff;
  transition: border-color .15s;
}
.product-thumb:hover,
.product-thumb.active { border-color: var(--orange); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none;
  line-height: 1;
}

.product-info h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: .5rem;
}

.product-sku { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }

.product-price-block {
  margin-bottom: 1.25rem;
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}
.product-price-block .price-current { font-size: 1.6rem; }
.product-price-block .price-was { font-size: 1rem; }
.gst-note { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

.product-stock {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.product-stock.in-stock { color: var(--success); }
.product-stock.out-of-stock { color: var(--error); }
.stock-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

.product-actions {
  display: flex; flex-direction: column; gap: .75rem;
  margin-bottom: 1.5rem;
}
.qty-row {
  display: flex; align-items: center; gap: .75rem;
}
.qty-label { font-size: .875rem; color: var(--muted); }
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: #fff;
}
.qty-btn {
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.qty-btn:hover { background: #f5f5f2; }
.qty-input {
  width: 48px; text-align: center;
  border: none; outline: none;
  font-size: .95rem; color: var(--ink);
  font-family: var(--font-body);
}

.product-atc-row {
  display: flex; gap: .75rem;
}
.product-atc-row .btn-atc { flex: 1; padding: .8rem; font-size: 1rem; }
.product-atc-row .btn-enquire { flex: 0 0 auto; padding: .8rem 1.4rem; font-size: .95rem; text-decoration: none; }

.freight-note {
  font-size: .82rem; color: var(--muted);
  background: #f5f5f2; border-radius: var(--radius);
  padding: .6rem .9rem;
  display: flex; align-items: flex-start; gap: .5rem;
}
.freight-note svg { flex-shrink: 0; margin-top: 1px; color: var(--success); }

.product-tabs { margin-top: 2.5rem; }
.tab-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--line);
  overflow-x: auto;
}
.tab-btn {
  padding: .7rem 1.2rem;
  background: none; border: none; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: color .15s;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--orange); }

.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }
.tab-panel p { color: var(--ink); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.spec-table th,
.spec-table td {
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  text-align: left;
}
.spec-table th {
  background: #f5f5f2;
  font-weight: 600;
  color: var(--blue);
  width: 40%;
}

.product-breadcrumb { margin-bottom: 1.5rem; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem; color: var(--muted);
  display: flex; gap: .4rem; align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: .6; }

/* ── Brand strip ────────────────────────────────────────── */
.brand-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px) var(--gap);
}
.brand-strip h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.brand-logos {
  display: flex; gap: 2rem; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.brand-logo {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--muted); opacity: .7; transition: opacity .15s;
  padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-logo:hover { opacity: 1; color: var(--blue); text-decoration: none; }

/* ── Specials strip ─────────────────────────────────────── */
.specials-strip {
  background: linear-gradient(90deg, #1a3d6e 0%, var(--blue) 100%);
  padding: clamp(24px, 3vw, 40px) var(--gap);
  color: #fff;
}
.specials-strip h2 { color: #fff; text-align: center; margin-bottom: 1.5rem; }
.specials-strip .product-card { max-width: 300px; }
.specials-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.specials-strip .view-all {
  text-align: center; margin-top: 1.5rem;
}
.specials-strip .view-all a {
  color: var(--orange); font-weight: 600;
}

/* ── Cart page ──────────────────────────────────────────── */
.cart-page {
  max-width: 880px; margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}
.cart-page h1 { margin-bottom: 1.5rem; }

.cart-table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.cart-table th {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding: .6rem .75rem; border-bottom: 2px solid var(--line);
  text-align: left;
}
.cart-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }

.cart-item-img {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 4px; border: 1px solid var(--line); background: #f5f5f2;
}
.cart-item-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.cart-item-sku { font-size: .75rem; color: var(--muted); }
.cart-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .25rem;
  border-radius: 3px; transition: color .15s;
}
.cart-remove:hover { color: var(--error); }

.cart-qty {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; width: fit-content;
}
.cart-qty-btn {
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; transition: background .1s;
}
.cart-qty-btn:hover { background: #f0f0ee; }
.cart-qty-input {
  width: 40px; text-align: center;
  border: none; outline: none;
  font-size: .9rem; font-family: var(--font-body);
}

.cart-summary {
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  max-width: 360px; margin-left: auto;
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: .45rem 0; font-size: .9rem;
}
.cart-summary-row.total {
  border-top: 2px solid var(--line); margin-top: .5rem;
  padding-top: .75rem; font-weight: 700;
  font-size: 1.1rem; color: var(--blue);
}
.cart-gst-note { font-size: .78rem; color: var(--muted); text-align: right; margin-top: .4rem; }

.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty svg { color: var(--muted); margin: 0 auto 1rem; }
.cart-empty p { color: var(--muted); }

/* ── Checkout page ──────────────────────────────────────── */
.checkout-page {
  max-width: 960px; margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}
.checkout-page h1 { margin-bottom: 1.5rem; }

.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 2rem; align-items: start;
}

.checkout-form-section h2 {
  font-size: 1.1rem; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}

.form-row {
  display: flex; gap: 1rem;
  margin-bottom: .9rem;
}
.form-field {
  flex: 1; display: flex; flex-direction: column; gap: .3rem;
  margin-bottom: .9rem;
}
.form-label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.form-input,
.form-textarea,
.form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  font-size: .9rem; color: var(--ink);
  background: #fff; width: 100%;
  font-family: var(--font-body);
  transition: border-color .15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,84,144,.12);
}
.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: .78rem; color: var(--error); margin-top: .2rem;
}

#square-card-element {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  min-height: 60px;
  background: #fff;
}
.payment-note {
  font-size: .78rem; color: var(--muted);
  display: flex; align-items: center; gap: .4rem;
  margin-top: .5rem;
}

.checkout-summary {
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1.25rem;
  position: sticky; top: 80px;
}
.checkout-summary h2 { font-size: 1rem; margin-bottom: 1rem; }
.checkout-item-row {
  display: flex; gap: .75rem; align-items: center;
  margin-bottom: .75rem;
}
.checkout-item-img {
  width: 48px; height: 48px; object-fit: contain;
  border-radius: 4px; border: 1px solid var(--line); background: #f5f5f2;
  flex-shrink: 0;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: .85rem; font-weight: 600; color: var(--ink); }
.checkout-item-qty { font-size: .78rem; color: var(--muted); }
.checkout-item-price { font-size: .9rem; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ── Advice / enquiry form ──────────────────────────────── */
.advice-page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}
.advice-intro { margin-bottom: 2rem; }
.advice-contact-bar {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  background: var(--blue); color: #fff;
  border-radius: 10px; padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.advice-contact-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem;
}
.advice-contact-item a { color: var(--orange); font-weight: 600; }
.advice-contact-item svg { flex-shrink: 0; }

/* ── Content / static pages ─────────────────────────────── */
.content-page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}
.content-page h1 { margin-bottom: 1.5rem; }
.content-page h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.3rem; }
.content-page h3 { margin-top: 1.5rem; margin-bottom: .75rem; font-size: 1.1rem; }
.content-page ul, .content-page ol { margin-bottom: 1em; }
.content-page li { margin-bottom: .4em; }

/* ── City / landing pages ───────────────────────────────── */
.city-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3d6e 100%);
  color: #fff; padding: clamp(40px, 6vw, 72px) var(--gap);
}
.city-hero h1 { color: #fff; }
.city-hero p { opacity: .85; max-width: 640px; margin-top: .75rem; }

.local-cta {
  background: #fff; border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1.5rem; text-align: center;
  margin: 2rem 0;
}
.local-cta h2 { font-size: 1.3rem; margin-bottom: .75rem; }

/* ── Guides / pillar pages ──────────────────────────────── */
.guide-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px) var(--gap);
}
.guide-hero .wrap { max-width: 800px; }

.guide-body {
  max-width: 800px; margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gap);
}
.guide-body h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.faq-item { margin-bottom: 1.25rem; }
.faq-q {
  font-family: var(--font-display);
  font-weight: 600; color: var(--blue);
  font-size: 1rem; margin-bottom: .4rem;
}
.faq-a { color: var(--ink); }
.faq-source { font-size: .75rem; color: var(--muted); }

/* ── Specials page ──────────────────────────────────────── */
.specials-page {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--gap);
}
.specials-hero {
  background: linear-gradient(90deg, var(--orange) 0%, #d47e00 100%);
  color: #fff; padding: clamp(32px, 5vw, 56px) var(--gap);
  text-align: center;
}
.specials-hero h1 { color: #fff; }
.specials-hero p { opacity: .9; margin-top: .5rem; }

/* ── Thank you page ─────────────────────────────────────── */
.thankyou-page {
  max-width: 640px; margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gap);
  text-align: center;
}
.thankyou-icon {
  width: 80px; height: 80px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2.5rem;
}
.thankyou-page h1 { margin-bottom: 1rem; }
.thankyou-page p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── 404 page ───────────────────────────────────────────── */
.notfound-page {
  max-width: 580px; margin: 0 auto;
  padding: clamp(48px, 10vw, 120px) var(--gap);
  text-align: center;
}
.notfound-code {
  font-family: var(--font-display);
  font-size: 7rem; font-weight: 700; color: var(--line);
  line-height: 1; margin-bottom: .5rem;
}
.notfound-page h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.notfound-page p { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #1a2535; color: rgba(255,255,255,.7);
  padding: clamp(40px, 5vw, 64px) var(--gap) 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 2.5rem;
}
.footer-brand { }
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: .75rem; display: inline-flex; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: #fff; font-size: .85rem; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: rgba(255,255,255,.65); font-size: .875rem;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: 1rem; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ── Toast notifications ────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 800; display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--blue); color: #fff;
  padding: .75rem 1.1rem;
  border-radius: 8px; font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  pointer-events: auto;
  animation: slideIn .2s ease;
  min-width: 240px; max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast svg { flex-shrink: 0; }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(120%); }
}
.toast.removing { animation: fadeOut .2s ease forwards; }

/* ── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

.page-header {
  background: var(--blue); color: #fff;
  padding: clamp(32px, 5vw, 56px) var(--gap);
}
.page-header h1 { color: #fff; }
.page-header p { opacity: .85; max-width: 640px; margin-top: .5rem; }

/* ── Consent banner ─────────────────────────────────────── */
#consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a2535; color: rgba(255,255,255,.88);
  padding: 1rem var(--gap);
  z-index: 700;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  font-size: .875rem;
}
#consent-banner a { color: var(--orange); }
.consent-btns { display: flex; gap: .75rem; }
.consent-accept {
  background: var(--orange); color: #fff; border: none;
  padding: .5rem 1.2rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body);
}
.consent-decline {
  background: none; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.3);
  padding: .5rem 1rem; border-radius: var(--radius);
  font-size: .875rem; cursor: pointer;
  font-family: var(--font-body);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-images { position: static; }
  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) { display: none; }
}

@media (max-width: 680px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.mobile-open { display: flex; flex-direction: column; width: 100%; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .product-atc-row { flex-direction: column; }
  .form-row { flex-direction: column; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ── Print / PDF spec sheet ─────────────────────────────── */
@media print {
  .site-header, .site-footer, .product-thumbs,
  .product-actions, .product-card-actions,
  .listing-controls, #toast-container,
  #consent-banner, .search-overlay { display: none !important; }
  body { background: #fff; }
  .product-layout { grid-template-columns: 1fr 1fr; }
  .product-page { padding: 1rem; }
  a[href]::after { content: none; }
  .print-header {
    display: flex !important;
    justify-content: space-between; align-items: center;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 2px solid var(--blue);
  }
}
.print-header { display: none; }
