/* 83DCreate Shop — mirrors main site's design system exactly.
   Tokens copied verbatim from https://83dcreate.com/style.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d1117; --bg-card: #161b22; --border: #1e2a3a;
  --text: #e6edf3; --text-muted: #8b949e;
  --cyan: #00d4ff;
  --cyan-glow: 0 0 20px rgba(0,212,255,0.4), 0 0 40px rgba(0,212,255,0.15);
  --font-display: 'Clash Grotesk', sans-serif;
  --font-body:    'Cabinet Grotesk', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
.grid-bg { background-image: linear-gradient(rgba(30,42,58,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(30,42,58,0.5) 1px, transparent 1px); background-size: 40px 40px; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
.neon { color: var(--cyan); text-shadow: 0 0 10px rgba(0,212,255,0.5); }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--cyan); font-weight: 600; margin-bottom: 10px; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Buttons — verbatim from main site */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 6px; font-size: 14px; font-weight: 700; font-family: var(--font-body); cursor: pointer; text-decoration: none; transition: all 0.2s; border: none; }
.btn-cyan { background: var(--cyan); color: #0d1117; }
.btn-cyan:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--cyan-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Nav — white on inner pages, matches main site */
nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #e5e7eb; background: #ffffff; backdrop-filter: blur(12px); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 170px; }
.nav-logo { line-height: 0; text-decoration: none; }
.nav-logo img { height: 150px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { color: #374151; text-decoration: none; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 4px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #111827; border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 24px 16px; border-top: 1px solid #e5e7eb; background: #ffffff; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #374151; text-decoration: none; font-size: 15px; padding: 10px 8px; border-radius: 4px; }
.mobile-menu a:hover { color: var(--cyan); background: #f9fafb; }

/* Trust bar */
.trust-bar { background: rgba(0,212,255,0.05); border-bottom: 1px solid rgba(0,212,255,0.15); padding: 9px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); }
.trust-item strong { color: var(--text); }
.stars { color: #fbbf24; }

/* Footer */
footer { border-top: 1px solid #e5e7eb; padding: 20px 0; background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo img { height: 100px; width: auto; object-fit: contain; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #6b7280; text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: #6b7280; font-size: 12px; }

/* Page hero — used on category & product pages */
.page-hero { padding: 80px 0 64px; background: var(--bg); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(30,42,58,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(30,42,58,0.4) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 640px; line-height: 1.7; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }

/* Breadcrumbs */
.breadcrumbs { padding: 20px 0 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span.sep { margin: 0 8px; opacity: 0.4; }

/* ─── Shop-specific components ────────────────────────────────────────── */

/* Category grid on shop home */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.cat-tile { display: block; padding: 32px 24px; border-radius: 10px; text-decoration: none; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.2s; position: relative; overflow: hidden; }
.cat-tile:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--cyan-glow); }
.cat-tile h3 { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.cat-tile .count { color: var(--text-muted); font-size: 13px; }
.cat-tile .arrow { position: absolute; top: 24px; right: 24px; color: var(--cyan); opacity: 0.6; transition: opacity 0.2s; }
.cat-tile:hover .arrow { opacity: 1; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all 0.2s; }
.product-card:hover { border-color: rgba(0,212,255,0.4); transform: translateY(-2px); }
.product-card .image { aspect-ratio: 1 / 1; background: #0a0e13; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.product-card .image img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .brand-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cyan); font-weight: 600; }
.product-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--text); margin: 0; }
.product-card .price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-top: auto; }
.product-card .price small { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-left: 6px; font-family: var(--font-body); }

/* Product page */
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 40px 0 96px; }
.product-gallery .hero-img { aspect-ratio: 1 / 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }
.product-info h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.product-info .price { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin: 20px 0; }
.product-info .price .from { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); font-weight: 400; margin-right: 8px; text-transform: uppercase; letter-spacing: 1px; }

.option-group { margin: 24px 0; }
.option-group label.group-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.option-group label.group-label .selected { color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); transition: all 0.15s; user-select: none; }
.chip:hover { border-color: rgba(0,212,255,0.4); }
.chip.selected { background: var(--cyan); color: #0d1117; border-color: var(--cyan); }
.chip.custom-colour { border-style: dashed; border-color: rgba(0,212,255,0.4); }

.qty-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.qty-row button { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 18px; cursor: pointer; }
.qty-row button:hover { border-color: var(--cyan); color: var(--cyan); }
.qty-row input { width: 60px; text-align: center; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font-body); font-size: 15px; }

.add-to-cart { width: 100%; padding: 16px; font-size: 15px; letter-spacing: 0.5px; }

.custom-colour-note { margin-top: 12px; padding: 12px 14px; background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.2); border-radius: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.5; display: none; }
.custom-colour-note.show { display: block; }
.custom-colour-note strong { color: var(--cyan); }

.info-row { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.info-row .row { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 14px; color: var(--text-muted); }
.info-row .row .icon { color: var(--cyan); flex-shrink: 0; font-size: 18px; margin-top: -2px; }
.info-row .row strong { color: var(--text); font-weight: 600; }

.long-description { margin-top: 64px; max-width: 720px; }
.long-description h2 { font-size: 22px; margin-bottom: 16px; }
.long-description p { color: var(--text-muted); margin-bottom: 16px; }

/* Responsive */
@media(max-width:768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 64px 0; }
  .trust-inner { gap: 12px; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { height: 90px; }
  .nav-logo img { height: 70px; }
  .footer-logo img { height: 60px; }
}
@media(max-width:480px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card .body { padding: 12px; }
  .product-card h3 { font-size: 13px; }
  .product-card .price { font-size: 17px; }
}
