/* ==========================================================================
   Bubobit — design system
   Owl / night-sky theme. Edit the tokens below to re-skin the whole site.
   ========================================================================== */

:root {
  /* Brand palette */
  --night-900: #0b1026;   /* deep night sky (page bg)      */
  --night-800: #141b3c;   /* raised surfaces / cards       */
  --night-700: #1f284f;   /* borders, hover                */
  --glow:      #ffc15e;   /* warm nightlight glow (accent) */
  --glow-soft: #ffd89b;
  --moon:      #cfd6ff;   /* cool secondary accent         */
  --text:      #eef1ff;   /* primary text                  */
  --text-dim:  #9aa3c7;   /* secondary text                */
  --good:      #46d39a;

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -8px rgba(255, 193, 94, 0.45);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--night-900);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.muted { color: var(--text-dim); }
.center { text-align: center; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--glow); color: #2a1c00; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--glow-soft); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--night-700); }
.btn-ghost:hover { background: var(--night-800); }
.btn-block { width: 100%; justify-content: center; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 38, 0.78);
  border-bottom: 1px solid var(--night-700);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px;
  background: var(--glow); color: #2a1c00; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
}
.cart-count[data-empty="true"] { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(255,193,94,0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(120,140,255,0.16), transparent 55%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 90px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--glow); }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); margin-top: 18px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { aspect-ratio: 1; border-radius: 24px; background: var(--night-800); border: 1px solid var(--night-700);
  display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Product cards / grid ---------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--night-800); border: 1px solid var(--night-700); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--glow); }
.card .thumb { aspect-ratio: 4/3; background: #0d1430; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.card .price { font-family: var(--font-head); font-weight: 600; color: var(--glow); font-size: 1.1rem; }
.card .card-foot { margin-top: auto; padding-top: 14px; }

.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--glow); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 8px; }
.section-head p { color: var(--text-dim); margin-top: 12px; }

/* Product detail layout --------------------------------------------------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gallery .main-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--night-700);
  background: #0d1430; aspect-ratio: 4/3; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button { padding: 0; border: 2px solid var(--night-700); border-radius: var(--radius-sm);
  overflow: hidden; background: none; cursor: pointer; width: 84px; aspect-ratio: 1; }
.thumbs button.active { border-color: var(--glow); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.product-info .price-lg { font-family: var(--font-head); font-size: 1.8rem; color: var(--glow); font-weight: 600; margin: 12px 0 18px; }
.product-info p { color: var(--text-dim); }

.variants { margin: 24px 0; }
.variants .label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opts button {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--night-700);
  background: var(--night-800); color: var(--text); cursor: pointer; font-weight: 500; transition: all .15s;
}
.variant-opts button.active { border-color: var(--glow); background: rgba(255,193,94,0.1); color: var(--glow); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--night-700); vertical-align: top; }
.spec-table th { color: var(--text-dim); font-weight: 500; width: 42%; }

/* Feature row ------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,193,94,0.12);
  display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* Cart -------------------------------------------------------------------- */
.cart-row { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--night-700); }
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--night-700); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--night-800); color: var(--text); border: 0; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 34px; text-align: center; }
.cart-remove { background: none; border: 0; color: var(--text-dim); cursor: pointer; }
.cart-remove:hover { color: #ff7a7a; }
.cart-summary { background: var(--night-800); border: 1px solid var(--night-700); border-radius: var(--radius); padding: 26px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--night-700); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--night-700);
  background: var(--night-900); color: var(--text); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--glow); border-color: transparent; }

/* Language switcher (EN / FR / NL) ---------------------------------------- */
.lang-switch { display: inline-flex; gap: 2px; align-items: center;
  border: 1px solid var(--night-700); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: none; color: var(--text-dim);
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 999px; cursor: pointer; line-height: 1; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--glow); color: #2a1c00; }

/* Order-by-email box (shop disabled — shows address instead of a checkout) -- */
.order-box { background: rgba(255,193,94,0.1); border: 1px solid rgba(255,193,94,0.35);
  border-radius: var(--radius-sm); padding: 16px 18px; text-align: center; }
.order-box .order-label { display: block; color: var(--text-dim); font-size: .9rem; margin-bottom: 4px; }
.order-box .order-email { font-family: var(--font-head); font-weight: 600; color: var(--glow);
  font-size: 1.15rem; user-select: all; }

/* Notice banner ----------------------------------------------------------- */
.notice { background: rgba(255,193,94,0.1); border: 1px solid rgba(255,193,94,0.35); color: var(--glow-soft);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { margin-top: auto; border-top: 1px solid var(--night-700); background: var(--night-800); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.footer-grid h4 { font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--night-700); padding-block: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-dim); font-size: .88rem; }

/* Toast ------------------------------------------------------------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%);
  background: var(--night-700); color: var(--text); padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow); transition: transform .3s ease; z-index: 100; border: 1px solid var(--glow); }
.toast.show { transform: translate(-50%, 0); }

/* Long-form content (manual, privacy, legal) ------------------------------ */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 8px; }
.prose .lead { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 12px; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; margin-bottom: 12px; padding-top: 24px;
  border-top: 1px solid var(--night-700); }
.prose h3 { font-size: 1.2rem; color: var(--glow-soft); margin-top: 30px; margin-bottom: 8px; }
.prose p { color: var(--text-dim); margin-top: 14px; }
.prose ul, .prose ol { color: var(--text-dim); margin-top: 14px; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--glow); }
.prose a { color: var(--glow); }
.prose strong { color: var(--text); }
.prose em { color: var(--moon); }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--glow);
  background: var(--night-800); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-dim); }
.prose blockquote p { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--night-700); margin: 36px 0; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--night-700);
  vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--night-800); }
.prose td { color: var(--text-dim); }
.prose .meta { color: var(--text-dim); font-size: .95rem; margin-top: 0; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-inner, .product { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-height: 360px; }
  .grid-2, .grid-3, .features, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--night-800); border-bottom: 1px solid var(--night-700); padding: 8px 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; }
  .nav-toggle { display: block; }
  .cart-row { grid-template-columns: 64px 1fr auto; }
  .cart-row img { width: 64px; height: 64px; }
}
@media (min-width: 861px) {
  .grid-2-md { grid-template-columns: repeat(2,1fr); }
}
