/* ===========================================================
   JSCB TAHITI — stylesheet
   Palette pulled from the brand's own neon/UV product art:
   near-black base, hot magenta + electric cyan as the two
   working accents, a warm yellow reserved for rare highlights.
=========================================================== */

:root{
  --bg:        #0a0a0e;
  --bg-raise:  #131318;
  --surface:   #17171e;
  --surface-2: #1e1e27;
  --border:    #2b2b36;
  --text:      #f2f0ea;
  --text-dim:  #a5a2b0;
  --pink:      #ff1f7a;
  --pink-dim:  #6e1338;
  --cyan:      #19e3ff;
  --yellow:    #ffcf33;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: .01em;
}

p{ margin: 0 0 1em; color: var(--text-dim); max-width: 62ch; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- top nav ---------- */

.topnav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,10,14,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topnav .wrap{
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .04em;
  font-weight: 600;
  white-space: nowrap;
}

.brand img{ height: 38px; width: auto; }

.brand span.tahiti{ color: var(--pink); }

.navlinks{
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
}

.navlinks a{
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.navlinks a:hover, .navlinks a.active{
  color: var(--text);
  border-color: var(--pink);
}

.cart-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 14px !important;
  border-radius: var(--radius);
}

.cart-count{
  background: var(--pink);
  color: #10060b;
  font-weight: 700;
  font-size: .75rem;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.navtoggle{
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: 1.1rem;
}

@media (max-width: 760px){
  .navlinks{
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 22px;
    gap: 14px;
    display: none;
  }
  .navlinks.open{ display: flex; }
  .navtoggle{ display: inline-flex; align-items:center; justify-content:center; }
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: var(--pink); color: #150109; }
.btn-primary:hover{ background: #ff4a8f; }

.btn-outline{ background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover{ border-color: var(--cyan); color: var(--cyan); }

.btn-cyan{ background: var(--cyan); color: #002229; }
.btn-cyan:hover{ background: #58ecff; }

.btn[disabled]{ opacity: .4; cursor: not-allowed; }
.btn-block{ width: 100%; }

/* ---------- hero ---------- */

.hero{
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(255,31,122,.16), transparent 60%),
    radial-gradient(50% 45% at 8% 92%, rgba(25,227,255,.12), transparent 60%),
    var(--bg);
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow{
  color: var(--pink);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.hero h1{
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  text-transform: uppercase;
  color: var(--text);
}
.hero h1 em{
  font-style: normal;
  color: var(--pink);
}

.hero p.lead{
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin-top: 18px;
}

.hero-ctas{
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-art{
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img{
  max-width: 340px;
  filter: drop-shadow(0 0 46px rgba(255,31,122,.28)) drop-shadow(0 0 80px rgba(25,227,255,.14));
  animation: emerge .9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes emerge{
  from{ opacity: 0; transform: scale(.9) translateY(14px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; text-align: left; }
  .hero-art{ order: -1; }
  .hero-art img{ max-width: 220px; }
}

/* ---------- section scaffolding ---------- */

section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-transform: uppercase;
}

.section-head p{ margin: 0; }

.rule{
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- manifesto / statement band ---------- */

.statement{
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement .wrap{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.statement img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.statement blockquote{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}
.statement blockquote span{ color: var(--cyan); }
.statement .cite{
  margin-top: 18px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .95rem;
  font-style: normal;
}
@media (max-width: 860px){
  .statement .wrap{ grid-template-columns: 1fr; }
}

/* ---------- product grid ---------- */

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  position: relative;
}
.card-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card-tag{
  position: absolute;
  top: 12px; left: 12px;
  background: var(--pink);
  color: #150109;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 2px;
}
.card-tag.cyan{ background: var(--cyan); color: #002229; }

.card-body{
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-title{
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
}

.card-desc{ font-size: .9rem; margin: 0; }

.card-price{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}
.card-price .was{
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 8px;
}

.option-row{ display: flex; flex-direction: column; gap: 6px; }
.option-label{ font-size: .78rem; color: var(--text-dim); }
.pill-group{ display: flex; flex-wrap: wrap; gap: 8px; }

.pill{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .82rem;
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.pill.selected{ border-color: var(--pink); color: var(--pink); background: rgba(255,31,122,.08); }
.pill.swatch{ display:inline-flex; align-items:center; gap:6px; }
.pill.swatch .dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }

.card-foot{ margin-top: auto; padding-top: 4px; }

.stock-note{ font-size: .78rem; color: var(--text-dim); }

/* ---------- pack callout ---------- */

.pack-card{
  grid-column: span 3;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--pink-dim);
}
@media (max-width: 980px){ .pack-card{ grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 620px){ .pack-card{ grid-column: span 1; } }

.pack-card .card-media{ aspect-ratio: auto; }
.pack-card .card-body{ padding: 26px 26px 28px; }
.pack-card .card-title{ font-size: 1.4rem; }

.save-note{
  display: inline-block;
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- social / footer strip ---------- */

.social-strip{
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
}
.social-strip .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 46px 24px;
}
.social-strip h3{ text-transform: uppercase; font-size: 1.3rem; margin: 0; }
.social-strip p{ margin: 4px 0 0; }
.social-icons{ display: flex; gap: 14px; }
.social-icons a{
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.social-icons a:hover{ border-color: var(--cyan); color: var(--cyan); }

footer{
  padding: 34px 0 44px;
  color: var(--text-dim);
  font-size: .85rem;
}
footer .wrap{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
footer a:hover{ color: var(--text); }

/* ---------- boutique page ---------- */

.page-head{
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--border);
}
.page-head h1{
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.breadcrumb{
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.breadcrumb a:hover{ color: var(--cyan); }

/* ---------- cart page ---------- */

.cart-layout{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px){ .cart-layout{ grid-template-columns: 1fr; } }

.cart-item{
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item img{ width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.cart-item-name{ font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; margin: 0 0 4px; }
.cart-item-meta{ font-size: .82rem; color: var(--text-dim); }
.cart-item-actions{ display: flex; align-items: center; gap: 10px; }
.qty-btn{
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}
.remove-link{ color: var(--text-dim); font-size: .8rem; text-decoration: underline; cursor: pointer; background:none; border:none; padding:0; }
.remove-link:hover{ color: var(--pink); }

.summary-box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.summary-row{ display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .95rem; color: var(--text-dim); }
.summary-total{ font-size: 1.3rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }

.order-note{
  font-size: .84rem;
  color: var(--text-dim);
  margin-top: 14px;
}

textarea.order-summary{
  width: 100%;
  min-height: 160px;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: .85rem;
  padding: 12px;
  border-radius: var(--radius);
  resize: vertical;
}

.empty-state{
  text-align: center;
  padding: 90px 0;
}
.empty-state h2{ text-transform: uppercase; }

/* ---------- contact page ---------- */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 780px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3{ text-transform: uppercase; }
.contact-card .btn{ margin-top: 14px; }

.toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--pink);
  color: #150109;
  font-weight: 600;
  font-size: .9rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: transform .25s ease;
  z-index: 60;
  white-space: nowrap;
}
.toast.show{ transform: translateX(-50%) translateY(0); }
