:root {
  --bg: #ffffff;
  --band: #f6f8fa;
  --surface: #ffffff;
  --ink: #2b2b2b;
  --ink-soft: #6b7280;
  --line: #e6e8eb;
  --red: #cf3a34;
  --yellow: #f2b01e;
  --blue: #2a67a8;
  --blue-dark: #1f4f83;
  --brand: var(--blue);
  --sale: #cf3a34;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.06);
  --wrap: 1160px;
  --font-head: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--ink); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 16px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: background .18s, border-color .18s; font-family: var(--font-body); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; }
.search { margin-left: auto; display: flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { padding: 10px 16px; border: none; min-width: 220px; font: inherit; background: transparent; }
.search input:focus { outline: none; }
.search button { padding: 10px 16px; border: none; background: #fff; color: var(--blue); cursor: pointer; font-size: 1rem; }
.search button:hover { background: var(--band); }

.cart-widget { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.cart-widget:hover { border-color: var(--blue); text-decoration: none; background: var(--band); }
.cart-widget-total { font-weight: 700; }
.cart-widget-count { color: var(--ink-soft); font-size: .85rem; }
.cart-widget-icon { position: relative; display: inline-flex; color: var(--ink); }
.cart-widget-badge { position: absolute; top: -8px; right: -9px; min-width: 1.2em; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: #1f2933; font-size: .68rem; font-weight: 700; line-height: 1.5; text-align: center; }

/* Nav bar */
.site-nav { background: var(--blue); }
.nav-inner { display: flex; align-items: center; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: #fff; font-weight: 700; padding: 12px 18px; display: inline-block; }
.nav-links a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-weight: 700; padding: 12px 0; cursor: pointer; font-size: 1rem; }

/* Splash */
.splash { background:
    radial-gradient(circle at 15% 20%, rgba(207,58,52,.05), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(42,103,168,.06), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(242,176,30,.06), transparent 45%),
    #fff;
  border-bottom: 1px solid var(--line); }
.splash-inner { text-align: center; padding: 60px 16px 54px; }
.splash-logo { height: 96px; width: auto; margin: 0 auto 18px; }
.splash-tagline { font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--ink); margin: 0 auto 26px; max-width: 640px; }
.splash-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 14px; }
.splash-search input { flex: 1; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.splash-search input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.splash-search button { padding: 13px 24px; border: none; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 700; cursor: pointer; }
.splash-search button:hover { background: var(--blue-dark); }

/* Section titles */
.section-title { font-size: 1.55rem; margin: 0 0 22px; text-align: center; }

/* Category tiles (homepage) */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.category-tile { color: var(--ink); text-align: center; }
.category-tile:hover { text-decoration: none; }
.category-tile-img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--band); border: 1px solid var(--line); box-shadow: var(--shadow); }
.category-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.category-tile:hover .category-tile-img img { transform: scale(1.04); }
.category-tile-label { margin-top: 12px; }
.category-tile-name { display: block; font-weight: 700; font-family: var(--font-head); font-size: .98rem; }
.category-tile-count { display: inline-block; margin-top: 4px; color: var(--ink-soft); font-size: .82rem; }
.category-tile-count::before { content: "("; }
.category-tile-count::after { content: ")"; }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .06s, border-color .18s, box-shadow .18s; }
.product-card:hover { text-decoration: none; transform: translateY(-3px); border-color: #d3d7dc; box-shadow: 0 10px 28px rgba(20,30,50,.10); }
.product-thumb { aspect-ratio: 1 / 1; background: var(--band); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-title { font-size: .95rem; margin: 0; font-family: var(--font-body); font-weight: 700; line-height: 1.35; }
.product-card-price { margin: auto 0 0; font-weight: 800; color: var(--blue); }
.was { color: var(--ink-soft); text-decoration: line-through; font-weight: 400; margin-left: 6px; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.shop-sidebar { position: sticky; top: 150px; }
.sidebar-title { font-size: 1.05rem; margin: 0 0 12px; }
.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.category-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.category-list a:hover { background: var(--band); text-decoration: none; }
.category-list a.active { background: var(--blue); color: #fff; }
.category-list a.active .count { color: #fff; }
.category-list .count { color: var(--ink-soft); font-size: .8rem; }
.shop-head { margin-bottom: 22px; }
.shop-head h1 { font-size: 1.7rem; margin: 0 0 4px; }
.empty { text-align: center; padding: 60px 20px; background: var(--band); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Product detail */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery-thumb.active { border-color: var(--blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.8rem; margin: 0 0 10px; }
.product-price { font-size: 1.5rem; font-weight: 800; color: var(--blue); margin: 0 0 6px; }
.sku { margin: 0 0 16px; }
.short-desc { margin: 16px 0; }
.enquire-box { background: var(--band); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.enquire-box p { margin: 0; }
.chip { display: inline-block; background: var(--band); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; font-size: .8rem; }
.product-description { margin-top: 44px; max-width: 820px; }
.product-description h2 { border-bottom: 3px solid var(--yellow); padding-bottom: 8px; display: inline-block; }
.rich-text img { border-radius: 8px; margin: 12px 0; }
.rich-text { overflow-wrap: anywhere; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 28px; }

/* Footer */
.site-footer { background: #1f2933; color: #cbd5e1; margin-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 34px 16px; }
.footer-brand strong { color: #fff; display: block; }
.footer-balls { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.footer-balls i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.footer-balls i:nth-child(1) { background: var(--red); }
.footer-balls i:nth-child(2) { background: var(--yellow); }
.footer-balls i:nth-child(3) { background: var(--blue); }
.site-footer a { color: #e2e8f0; margin-right: 16px; }
.footer-inner nav { margin-left: auto; }

/* Basket badge in nav */
.basket-badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: #1f2933; font-size: .78rem; line-height: 1.6; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Add to basket */
.add-form { display: flex; align-items: flex-end; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.qty-label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 700; gap: 4px; }
.add-form input[type=number], .qty-input { width: 74px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* Basket */
.table-scroll { overflow-x: auto; }
.basket-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.basket-table th { text-align: left; font-size: .85rem; color: var(--ink-soft); border-bottom: 2px solid var(--line); padding: 8px; }
.basket-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.basket-table .num { text-align: right; white-space: nowrap; }
.basket-thumb { width: 72px; }
.basket-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.link-btn { background: none; border: none; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
.basket-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.basket-total { min-width: 260px; }
.basket-total-line { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 4px; font-size: 1.1rem; }
.basket-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-top: 22px; }
.order-form { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.field-error, .form-error { color: var(--red); margin: 4px 0 0; font-size: .9rem; }
.form-error { margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--red); border-radius: 8px; background: #fdf1f0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-summary { background: var(--band); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.order-summary h2 { font-size: 1.1rem; margin: 0 0 10px; }
.order-summary ul { list-style: none; margin: 0 0 12px; padding: 0; }
.order-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }

/* About pages */
.about-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.about-sidebar { position: sticky; top: 150px; }
.about-content h1 { margin-top: 0; }
.about-content .lead { font-size: 1.15rem; }
.about-photo { float: right; max-width: 300px; height: auto; margin: 4px 0 16px 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-links { padding-left: 20px; }
.about-cta { clear: both; padding-top: 12px; }

/* Responsive */
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .category-list { flex-direction: row; flex-wrap: wrap; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .about-sidebar .category-list { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .search { margin-left: 0; order: 3; flex-basis: 100%; }
  .search input { flex: 1; min-width: 0; }
  .cart-widget-count { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding-bottom: 8px; }
  .nav-inner { flex-wrap: wrap; }
  body.nav-open .nav-links { display: flex; }
  .about-photo { float: none; margin: 0 auto 16px; }
}
