/* BT-Piercing — design prototype. Light-only is a deliberate decision:
   the brand lives in pale surgical blue, ink and titanium, not in a dark UI. */
:root {
  --paper: #f7f8f7;
  --surface: #ffffff;
  --ice: #cce4fe;
  --ice-deep: #b8d8f7;
  --ink: #0e1c23;
  --muted: #5f7077;
  --line: #d8e1e5;
  --accent: #1f5a70;
  --accent-ink: #174554;
  --coral: #c95645;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 50px -36px rgba(14, 28, 35, 0.5);
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
figure { margin: 0; }

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.muted { color: var(--muted); }

/* Header */
.topbar {
  background: var(--ink);
  color: #f1f6f7;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.topbar p { margin: 0; }
.topbar a { border-bottom: 1px solid rgba(255,255,255,.35); }
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.wordmark span { color: var(--accent); font-size: 10px; letter-spacing: .16em; }
.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}
.nav a { position: relative; padding: 8px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.utilities { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ink);
}
.icon-btn:hover { background: var(--ice); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 1px; right: 0;
  min-width: 16px; height: 16px;
  display: grid; place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 700;
}
.menu-toggle { display: none; }

/* Hero */
.hero { padding: 34px 0 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 8px 34px 0;
}
.hero h1 { margin: 0 0 22px; font-size: clamp(38px, 5.3vw, 70px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { max-width: 46ch; margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}
.hero-meta strong { display: block; color: var(--ink); font-size: 13px; letter-spacing: 0; }
.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.hero-media:hover img { transform: scale(1.025); }
.hero-note {
  position: absolute;
  left: 18px; bottom: 18px;
  max-width: 250px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  background: rgba(247,248,247,.84);
  backdrop-filter: blur(10px);
  font-size: 11px;
  line-height: 1.4;
}
.hero-note strong { display: block; font-size: 12px; }

/* Section primitives */
.section { padding: 54px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); }
.section-head p { max-width: 44ch; margin: 0; color: var(--muted); font-size: 13px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
}
.text-link:hover { color: var(--accent); }

/* Category tiles */
.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.category {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--ice);
  isolation: isolate;
}
.category img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s ease;
}
.category::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(9,24,31,.64) 100%);
}
.category:hover img { transform: scale(1.05); }
.category span {
  color: white;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: -.02em;
}
.category small { color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 14px;
}
.product-card { position: relative; min-width: 0; }
.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius);
  background: var(--ice);
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.media-link { display: block; width: 100%; height: 100%; }
.product-card:hover .product-media img { transform: scale(1.045); }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge.sale { background: var(--coral); color: white; }
.quick-add-form { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.quick-add {
  position: static;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
.quick-add:hover { background: var(--ink); color: white; }
.product-info { padding: 12px 2px 0; }
.product-info h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.product-info p { margin: 0; color: var(--muted); font-size: 11px; }
.price-row { display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; margin-top: 8px; }
.price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price s { margin-left: 5px; color: var(--muted); font-weight: 400; font-size: 11px; }

/* Editorial */
.editorial {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}
.editorial-media {
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius-lg);
  background: var(--ice);
}
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.editorial-copy h2 { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 42px); }
.editorial-copy p { max-width: 48ch; margin: 0 0 22px; color: var(--muted); }
.spec-list { display: grid; gap: 0; margin: 0 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-list span:last-child { color: var(--muted); text-align: right; }

/* Piercing pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.pill:hover, .pill.active { background: var(--ink); border-color: var(--ink); color: white; }

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.trust-item { padding: 20px; background: var(--surface); }
.trust-item strong { display: block; margin-bottom: 5px; font-size: 12px; }
.trust-item span { color: var(--muted); font-size: 11px; line-height: 1.45; }

/* Footer */
.footer { margin-top: 40px; padding: 44px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer h3 { margin: 0 0 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer p, .footer a { color: var(--muted); font-size: 12px; }
.footer a { display: block; margin: 7px 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1040px) {
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; }
}
@media (max-width: 820px) {
  .wrap { width: min(100% - 32px, 680px); }
  .header .wrap { grid-template-columns: 1fr auto; min-height: 64px; gap: 12px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-grid; }
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { padding: 10px 0 6px; }
  .hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .hero-media { min-height: 390px; order: -1; }
  .section { padding: 38px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category { min-height: 180px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-media { min-height: 320px; }
  .editorial-copy { padding: 24px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .topbar .wrap { min-height: 30px; font-size: 9px; }
  .topbar .wrap p:last-child { display: none; }
}
@media (max-width: 430px) {
  .product-grid { gap: 18px 8px; }
  .product-info h3 { font-size: 12px; }
  .product-info p { font-size: 10px; }
  .quick-add { opacity: 1; transform: none; width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Product detail */
.pdp { padding: 26px 0 48px; }
.breadcrumbs { display: flex; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 38px; align-items: start; }
.gallery-main { overflow: hidden; border-radius: var(--radius-lg); background: var(--ice); aspect-ratio: 1 / 1.05; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 72px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--ice); }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { padding-top: 6px; }
.pdp-info h1 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 44px); }
.pdp-price { margin: 0 0 18px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-price span { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
.pdp-lede { max-width: 48ch; margin: 0 0 24px; color: var(--muted); }
.option-label { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.option-label a { color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.option { min-width: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; }
.option.active { border-color: var(--ink); background: var(--ink); color: white; }
.buy-row { display: flex; gap: 8px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 38px; height: 46px; border: 0; background: transparent; font-size: 16px; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.buy-row .btn { flex: 1; min-height: 48px; }
.pdp-meta { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pdp-meta li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.pdp-meta span:last-child { color: var(--muted); text-align: right; }
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; padding: 16px 0; cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--muted); }
.accordion[open] summary::after { content: "−"; }
.accordion p { margin: 0 0 16px; color: var(--muted); font-size: 12px; max-width: 54ch; }
@media (max-width: 820px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .pdp-info h1 { font-size: clamp(28px, 8vw, 38px); }
  .thumbs button { width: 62px; height: 62px; }
}

/* Cart & checkout */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 84px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--ice); }
.cart-line h3 { margin: 0 0 4px; font-size: 13px; }
.cart-line p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.cart-qty input { width: 44px; height: 36px; border: 0; text-align: center; background: transparent; }
.cart-qty button { border: 0; background: transparent; padding: 0 10px; }
.cart-remove { border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; }
.summary { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary h2 { margin: 0 0 16px; font-size: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary-row.total { border-bottom: 0; padding-top: 16px; font-size: 16px; font-weight: 600; }
.summary .btn { width: 100%; margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1fr / -1; }
.field label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.notice { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 12px; }
.notice.error { border-color: #e7b8b8; background: #fdf3f3; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.status.PAID { background: #dff1e6; color: #1f6b43; }
.status.PENDING { background: #f4edda; color: #7a5b22; }
.status.ERP_FAILED { background: #f8dddd; color: #8b2f2f; }
@media (max-width: 820px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 76px; }
  .cart-line .cart-qty, .cart-line .cart-remove { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
}
