:root {
  --navy: #0A2F5C;
  --deep: #061D3D;
  --teal: #1F9DBC;
  --aqua: #45C4C9;
  --shallow: #8FE3DA;
  --sand: #F3E6C8;
  --sand-light: #FBF6EC;
  --ink: #16263B;
  --muted: #55657A;
  --white: #FFFFFF;
  --radius: 14px;
  --display: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0 0 .75rem;
}
.eyebrow-light { color: var(--shallow); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem;
  background: var(--teal); color: var(--white); text-decoration: none; border: 0;
  padding: .9em 1.5em; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy); transform: translateY(-1px); }
.btn-small { padding: .6em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E8EDF2;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; }
.brand-text .accent { color: var(--teal); }
.brand-text-light { color: var(--white); }
.brand-text-light .accent { color: var(--aqua); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--teal); }

/* Hero */
.hero {
  background: radial-gradient(ellipse at 80% 40%, #0E4A7E 0%, var(--deep) 60%);
  color: #D9E7F2; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 90px; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--shallow); }
.lead { font-size: 1.15rem; max-width: 34em; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art svg { width: 100%; max-width: 420px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }

/* Sections */
.section { padding: 90px 0; }
.section-sand { background: var(--sand-light); }
.section-deep { background: var(--deep); color: #D9E7F2; }
.section-deep h2 { color: var(--white); }
.section-deep a { color: var(--shallow); }
.note { color: var(--muted); margin-top: 2rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.card {
  background: var(--white); border: 1px solid #E3E9EF; border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--shallow), var(--teal), var(--navy));
}
.card:hover { box-shadow: 0 12px 30px rgba(10,47,92,.1); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 800;
  box-shadow: 0 0 0 6px var(--shallow);
}
.steps p { margin: 0; color: var(--muted); }

.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2.5rem; }
.material { border-radius: var(--radius); padding: 24px; background: var(--sand-light); border-left: 4px solid var(--teal); }
.material p { margin: 0; color: var(--muted); }

/* Quote */
.quote-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.quote-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #CCD6E0; border-radius: 10px; padding: .75em .9em; width: 100%; background: var(--white);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,157,188,.2);
}
.quote-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-status.ok { background: #E3F7F2; color: #116149; }
.form-status.err { background: #FDECEC; color: #9B1C1C; }

/* Footer */
.site-footer { background: #041429; color: #9FB3C8; padding: 48px 0 24px; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner p { margin: .5rem 0 0; }
.footer-links { display: grid; gap: 6px; text-align: right; }
.footer-links a { color: var(--shallow); text-decoration: none; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .quote-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .materials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .cards, .steps, .materials { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .footer-links { text-align: left; }
  .quote-form { padding: 22px; }
}

/* ===== Store ===== */
.brand-mark { width: 40px; height: 40px; }
.announce { background: var(--teal); color: var(--white); text-align: center; font-weight: 600; font-size: .92rem; padding: 8px 16px; }
.cart-link { position: relative; color: var(--navy) !important; display: inline-flex; padding: 6px; }
.cart-count {
  position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--teal); color: var(--white); font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.flash { margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash-ok { background: #E3F7F2; color: #116149; }
.flash-err { background: #FDECEC; color: #9B1C1C; }
.page { padding: 48px 0 90px; }
.page-head { margin-bottom: 2rem; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0; font-size: 1.05rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px #CCD6E0; }
.btn-outline:hover { background: var(--sand-light); color: var(--navy); }
.btn-block { display: block; width: 100%; text-align: center; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 2rem 0; }
.product { display: block; text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(10,47,92,.08); transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,47,92,.14); }
.product-img { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--sand-light); }
.product-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.placeholder { background: radial-gradient(circle at 50% 56%, #061D3D 0 6%, #0D4B82 6% 12%, #146FA3 12% 18%, #1F9DBC 18% 24%, #45C4C9 24% 30%, #8FE3DA 30% 36%, #F3E6C8 36% 100%); }
.product-body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.product-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-top strong { font-family: var(--display); color: var(--navy); font-size: 1rem; line-height: 1.3; }
.price { font-family: var(--display); font-weight: 800; color: var(--teal); white-space: nowrap; }
.product-summary { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 0; }
.chip { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1px #D6DEE6; }
.chip.active, .chip:hover { background: var(--navy); color: var(--white); box-shadow: none; }
.empty { padding: 48px 24px; text-align: center; background: var(--sand-light); border-radius: var(--radius); color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--teal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main model-viewer { width: 100%; height: 100%; background: #fbf6ec; --poster-color: #fbf6ec; }
.thumbs .thumb-3d { background: var(--navy, #0a2f5c); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; }
.thumbs .thumb-3d.active { border-color: var(--aqua, #45c4c9); }
.pdp-price { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--teal); margin: .25rem 0 1rem; }
.pdp-desc { color: var(--ink); margin: 1.5rem 0 0; }
.buy-box { display: grid; gap: 14px; margin-top: 1.5rem; padding: 20px; border-radius: var(--radius); background: var(--sand-light); }
.crumbs { font-size: .9rem; margin-bottom: 1.25rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Forms (store) */
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #CCD6E0; border-radius: 10px; padding: .7em .85em; width: 100%; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,157,188,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qty { width: 90px !important; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #D6DEE6; border-radius: 12px; cursor: pointer; background: var(--white); font-weight: 400; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(31,157,188,.25); }
.choice input { margin-top: 4px; accent-color: var(--teal); }
.choice strong { display: block; color: var(--navy); }
.choice small { color: var(--muted); }
.choices { display: grid; gap: 10px; }
.errors { background: #FDECEC; color: #9B1C1C; border-radius: 10px; padding: 12px 16px 12px 32px; margin: 0 0 1rem; }

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid #E3E9EF; }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid #E3E9EF; vertical-align: middle; }
.cart-item { display: flex; gap: 14px; align-items: center; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item a { color: var(--navy); font-weight: 600; text-decoration: none; }
.layout-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.summary { background: var(--sand-light); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary h3 { margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-total { border-top: 1px solid #E3D9C2; margin-top: 8px; padding-top: 12px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.sum-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: .95rem; }
.sum-items li { display: flex; justify-content: space-between; gap: 12px; }
.panel { background: var(--white); border: 1px solid #E3E9EF; border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; margin-bottom: 20px; }
.panel h3 { margin: 0; }
.notice { background: var(--sand-light); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 16px; white-space: pre-line; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #E8EEF4; color: var(--navy); }
.status-pill.paid, .status-pill.completed, .status-pill.ready { background: #E3F7F2; color: #116149; }
.status-pill.unpaid, .status-pill.new { background: #FFF4DB; color: #8A5A00; }
.status-pill.done { background: #E3F7F2; color: #116149; }
.status-pill.queued { background: #FFF4DB; color: #8A5A00; }
.status-pill.printing { background: #E1F1F8; color: #0A4E6A; }
.status-pill.failed { background: #FDE7E7; color: #9B1C1C; }
.status-pill.cancelled, .status-pill.refunded { background: #FDECEC; color: #9B1C1C; }
#paypal-buttons { max-width: 420px; }

@media (max-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .pdp, .layout-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav a[href="/shop.php"]:not(.btn) { display: inline; }
  .nav a[href="/contact.php"]:not(.btn) { display: none; }
  .nav a.cart-link:not(.btn) { display: inline-flex; }
  .brand-text { font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; }
  .field-row { grid-template-columns: 1fr; }
  .products { gap: 12px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid #E3E9EF; }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
}

/* Colour picker */
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: var(--navy); }
.swatches legend span { font-weight: 500; color: var(--muted); }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,47,92,.25); transition: box-shadow .15s; }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(10,47,92,.25), 0 0 0 3px var(--white), 0 0 0 5px var(--teal); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 4px; }
.swatch em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dots { display: flex; gap: 5px; margin-top: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,47,92,.3); }
