/* ── DESIGN TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --bg:       #ffffff;
  --surface:  #f4f4f4;
  --border:   #e0e0e0;
  --mint:     #4DE88A;
  --mint-rgb: 77, 232, 138;
  --text:     #111111;
  --gray:     #222222;
  --dim:      #333333;

  --ease: ease;
  --t:    200ms;

  --header-h: 76px;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────────────────────── */

/* Large display / headline — aggressive brush-stroke style */
.display-text {
  font-family: 'Permanent Marker', cursive;
  font-style: italic;
  font-size: clamp(30px, 8vw, 80px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.05;
}

/* Accent highlight within display text */
.display-text .accent {
  color: #6FCF97;
}


/* Small subtitle / tagline — clean minimal sans-serif */
.subtitle-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 15px);
  text-transform: uppercase;
  letter-spacing: 7px;
  color: #FFFFFF;
  line-height: 1.6;
}

/* Accent highlight within subtitle text */
.subtitle-text .accent {
  color: #6FCF97;
}

/* ── ACCESSIBILITY / SEO UTILITIES ────────────────────────────────────────────── */
/* Visually hidden but readable by screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── SHARED ─────────────────────────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
}

/* ── SITE HEADER ──────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 500;
}

/* ── NAV ────────────────────────────────────────────────────────────────────── */
#nav {
  position: relative;
  height: 76px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 350ms ease, border-color 350ms ease, backdrop-filter 350ms ease;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e8e8e8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── PRODUCT TABS (sticky, all viewports) ───────────────────────────────────── */
#product-tabs {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e0e0e0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-100%);
  transition: transform 220ms ease;
  pointer-events: none;
  justify-content: center;
}

#product-tabs.visible {
  transform: translateY(var(--header-h));
  pointer-events: auto;
}

.product-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 48px;
  gap: 1px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: border-color 200ms ease;
}

.product-tab.active {
  border-bottom-color: var(--mint);
}

.tab-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #bbb;
  transition: color 200ms ease;
}

.product-tab.active .tab-label {
  color: var(--text);
}

.tab-price {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ccc;
  transition: color 200ms ease;
}

.product-tab.active .tab-price {
  color: var(--gray);
}

#stone-build,
#glass-build {
  scroll-margin-top: calc(var(--header-h) + 54px);
}

@media (max-width: 767px) {
  .product-tab {
    flex: 1;
    padding: 10px 16px;
  }

  #stone-build,
  #glass-build {
    scroll-margin-top: calc(var(--header-h) + 60px);
  }
}

/* ── NAV INNER ──────────────────────────────────────────────────────────────── */
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 767px) { .nav-inner { padding: 0 16px; } }

.nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: color var(--t) var(--ease);
  flex-shrink: 0;
}
.nav-cart-btn:hover { color: var(--mint); }

/* White icon when floating over dark hero */
#nav:not(.scrolled) .nav-cart-btn { color: #ffffff; }

.nav-cart-badge {
  display: none;
  position: absolute;
  top: 2px; right: 2px;
  background: var(--mint);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-cart-badge.visible { display: flex; }

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 64px) 24px 80px;
  background:
    radial-gradient(ellipse 55% 45% at 18% 25%, rgba(77, 232, 138, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 82% 72%, rgba(77, 232, 138, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 55% 55%, rgba(77, 232, 138, 0.07) 0%, transparent 60%),
    #0a0a0a;
}


.hero-content {
  max-width: 560px;
  width: 100%;
}

.hero-brand-logo {
  width: 300px;
  height: auto;
  margin: 0 auto 48px;
  animation: logo-pulse 2s ease-in-out infinite;
}
@media (min-width: 768px) {
  .hero-brand-logo { width: 420px; }
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(77, 232, 138, 0));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 28px rgba(77, 232, 138, 0.65));
  }
}

.hero-art-text {
  margin-bottom: 40px;
  text-align: center;
  line-height: 1;
}

.hero-art-line1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 6.5vw, 58px);
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 2px;
}

.hero-art-line2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(46px, 10vw, 88px);
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 0.95;
}

.hero-art-line3 {
  font-size: clamp(10px, 2.2vw, 14px);
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-cta  { width: 100%; justify-content: center; }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}

.hero-cta--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
}
.hero-cta--outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.1); }

.hero-cta--filled {
  background: var(--mint);
  color: #0a0a0a;
  font-weight: 700;
  border: 1.5px solid var(--mint);
}
.hero-cta--filled:hover { background: #3dda78; border-color: #3dda78; }

.hero-scroll-hint {
  display: block;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.4);
  width: 32px;
  animation: bounce-hint 2s ease-in-out infinite;
  transition: color 200ms ease;
}
.hero-scroll-hint:hover { color: var(--mint); }
.hero-scroll-hint svg { display: block; }

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────────── */
.how-section {
  padding: 80px 24px;
  scroll-margin-top: 70px;
  background: #f8f8f8;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.how-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.how-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.how-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--mint);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.how-cta {
  margin-top: 48px;
  text-align: center;
}

.how-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 12px;
}

.how-step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}

.how-step-body {
  font-size: 14px;
  color: #111111;
  line-height: 1.6;
}

/* ── SECTION DIVIDER ─────────────────────────────────────────────────────────── */
.section-divider {
  padding: 40px 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.section-divider span::before,
.section-divider span::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--mint);
  border-radius: 2px;
}

/* ── PRODUCT SECTIONS ────────────────────────────────────────────────────────── */
.product-section {
  background: var(--bg);
  padding-bottom: 80px;
  scroll-margin-top: 70px;
}

.product-section--alt { background: var(--surface); }

.product-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

@media (max-width: 767px) { .product-inner { padding: 40px 16px 0; } }

/* Two-column layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ── PRODUCT MEDIA ───────────────────────────────────────────────────────────── */
.product-media { min-width: 0; }

@media (min-width: 768px) {
  .product-media { position: sticky; top: 110px; align-self: start; }
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity var(--t) var(--ease);
}

.img-swap-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.swap-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background var(--t) var(--ease);
  flex-shrink: 0;
}
.swap-dot:hover  { background: #999; }
.swap-dot.active { background: var(--mint); }

.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
  z-index: 2;
}
.img-nav-btn:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: #0D0D0D;
}
.img-prev { left: 10px; }
.img-next { right: 10px; }

/* ── PRODUCT CONFIG ──────────────────────────────────────────────────────────── */
.product-config {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 767px) { .product-config { padding-bottom: 80px; } }

/* Product header */
.product-header { display: flex; flex-direction: column; gap: 4px; }

.product-type-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.product-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--text);
  line-height: 1;
}

.product-meta {
  font-size: 13px;
  color: var(--gray);
}

/* Config step */
.config-step { display: flex; flex-direction: column; gap: 10px; }

.config-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Mode picker */
.mode-picker {
  display: flex;
  flex: 1;
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.mode-btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: transparent;
  border: none;
  color: #bbb;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.mode-btn.active {
  background: var(--mint);
  color: #0a0a0a;
}
.mode-btn:not(.active):hover {
  background: #e8e8e8;
  color: var(--text);
}

/* Artist pick active state */
.chips-grid.artist-pick-active {
  opacity: 0.3;
  pointer-events: none;
}

/* Artist pick badge */
.artist-pick-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(77, 232, 138, 0.1);
  border: 1px solid rgba(77, 232, 138, 0.4);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1a9e55;
  animation: fadeIn 0.2s ease;
}
.artist-pick-cancel {
  background: none;
  border: none;
  color: rgba(77, 232, 138, 0.6);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--t) var(--ease);
}
.artist-pick-cancel:hover { color: #1a9e55; }

.config-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

/* Dot counter */
.config-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.config-counter.shake { animation: counter-shake 320ms ease; }

.counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: transparent;
  transition: background var(--t), border-color var(--t);
  flex-shrink: 0;
}
.counter-dot.filled { background: var(--mint); border-color: var(--mint); }

/* ── SEARCH INPUT ─────────────────────────────────────────────────────────────── */
.chip-search {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--t) var(--ease);
}

.product-section--alt .chip-search { background: #ffffff; }

.chip-search::placeholder { color: #bbb; }
.chip-search:focus        { border-color: var(--mint); }

/* ── SELECTED PREVIEW TAGS ───────────────────────────────────────────────────── */
.selected-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.sel-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(var(--mint-rgb), 0.1);
  border: 1px solid rgba(var(--mint-rgb), 0.3);
  border-radius: 20px;
  padding: 3px 8px 3px 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}

.sel-tag-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.sel-tag-remove {
  background: none;
  border: none;
  color: #bbb;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 2px;
  transition: color var(--t);
  font-family: inherit;
}
.sel-tag-remove:hover { color: var(--text); }

/* ── CHIPS GRID ───────────────────────────────────────────────────────────────── */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.chips-grid::-webkit-scrollbar       { width: 4px; }
.chips-grid::-webkit-scrollbar-track { background: transparent; }
.chips-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ── CHIP ─────────────────────────────────────────────────────────────────────── */
.stone-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  user-select: none;
  min-height: 40px;
}

.product-section--alt .stone-chip { background: #ffffff; }

.stone-chip:hover {
  border-color: #bbb;
  background: #fafafa;
}
.stone-chip:hover > span:not(.stone-dot) { color: var(--text); }

.stone-chip.selected {
  border-color: var(--mint);
  background: rgba(var(--mint-rgb), 0.07);
}
.stone-chip.selected > span:not(.stone-dot) {
  color: #1a9e55;
  font-weight: 600;
}

.stone-chip.chip-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── SOLD-OUT CHIP ────────────────────────────────────────────────────────────── */
.stone-chip.sold-out {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.stone-chip.sold-out .stone-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.75px),
    #FF5555 calc(50% - 0.75px),
    #FF5555 calc(50% + 0.75px),
    transparent calc(50% + 0.75px)
  );
}
.chip-sold-label {
  font-size: 9px;
  color: #FF5555;
  font-weight: 500;
  line-height: 1.2;
}

.stone-chip.chip-pop { animation: chip-pop 150ms ease; }

/* Swatch dot */
.stone-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  display: block;
}

/* Chip name label */
.stone-chip > span:not(.stone-dot) {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.25;
  transition: color var(--t) var(--ease);
}

/* ── SHADE INPUT ─────────────────────────────────────────────────────────────── */
.shade-input {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  opacity: 0;
  transition: opacity 150ms ease, border-color 200ms ease;
}

.shade-input::placeholder { color: #bbb; }
.shade-input:focus        { border-color: var(--mint); }

/* ── COLOR NOT LISTED ─────────────────────────────────────────────────────────── */

/* The chip inside the grid */
.not-listed-chip {
  border-style: dashed !important;
  border-color: #ccc !important;
}
.not-listed-chip:hover {
  border-color: var(--mint) !important;
}
.not-listed-chip > span:not(.not-listed-q) {
  color: var(--dim);
  font-style: italic;
}

/* The "?" dot inside the chip */
.not-listed-q {
  background: transparent !important;
  border: 1.5px dashed #bbb;
  box-shadow: none !important;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  text-align: center;
  line-height: 15px;
}
.not-listed-q::before { content: '?'; }

/* Expanded input panel below the grid */
.not-listed-expand {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.not-listed-expand[hidden] {
  display: none;
}

.not-listed-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease;
}
.not-listed-input::placeholder { color: #bbb; }
.not-listed-input:focus        { border-color: var(--mint); }

.not-listed-add {
  background: var(--mint);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}
.not-listed-add:hover { background: #3dda78; }

.not-listed-cancel {
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
  line-height: 1;
}
.not-listed-cancel:hover { color: var(--text); }

/* ── COLOR NOTE ───────────────────────────────────────────────────────────────── */
.color-note {
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.6;
}

/* ── SIZE SELECTOR ────────────────────────────────────────────────────────────── */
.size-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-btn {
  width: 52px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}

.product-section--alt .size-btn { background: #ffffff; }

.size-btn:hover    { border-color: #999; color: var(--text); }
.size-btn.selected {
  background: var(--mint);
  border-color: var(--mint);
  color: #0D0D0D;
  font-weight: 700;
}

/* ── MEASURE HINT ─────────────────────────────────────────────────────────────── */
.measure-hint {
  font-size: 12px;
  color: var(--dim);
  margin-top: 2px;
}

/* ── CTA ──────────────────────────────────────────────────────────────────────── */
.config-cta { display: flex; flex-direction: column; gap: 10px; }

.build-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #bbb;
  line-height: 1.5;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.product-section--alt .build-summary { background: #ececec; }
.build-summary.has-content { color: var(--gray); }
.build-summary .summary-stones { color: #1a9e55; }
.build-summary .summary-detail { color: var(--text); }
.build-summary .summary-price  { color: var(--text); font-weight: 700; }

.add-to-cart-btn {
  width: 100%;
  padding: 15px 24px;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  border: none;
  transition: all var(--t) var(--ease);
}

.add-to-cart-btn:disabled {
  background: #e8e8e8;
  color: #bbb;
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.add-to-cart-btn:not(:disabled) {
  background: var(--mint);
  color: #0D0D0D;
  cursor: pointer;
}

.add-to-cart-btn:not(:disabled):hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.cta-note {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 24px;
  padding-bottom: max(32px, calc(32px + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
}

.footer-links {
  font-size: 12px;
}

.footer-policy-link {
  color: var(--dim);
  transition: color var(--t) var(--ease);
}
.footer-policy-link:hover { color: var(--gray); }

.footer-credit {
  font-size: 12px;
  color: var(--dim);
}
.footer-credit a {
  color: var(--dim);
  transition: color var(--t) var(--ease);
}
.footer-credit a:hover { color: var(--gray); }

/* ── STICKY BUILD BAR (mobile) ────────────────────────────────────────────────── */
.sticky-summary {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transform: translateY(110%);
  transition: transform var(--t) var(--ease);
}

@media (min-width: 768px) { .sticky-summary { display: none !important; } }
.sticky-summary.visible { transform: translateY(0); }

.sticky-summary-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sticky-dot-row { display: flex; gap: 4px; align-items: center; }

.sticky-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: transparent;
  transition: background var(--t), border-color var(--t);
  flex-shrink: 0;
}
.sticky-dot.filled { background: var(--mint); border-color: var(--mint); }

.sticky-selection-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--text);
  flex-shrink: 0;
  line-height: 1;
}

.sticky-add-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  transition: all var(--t) var(--ease);
}

.sticky-add-btn:disabled       { background: #e8e8e8; color: #bbb; }
.sticky-add-btn:not(:disabled) { background: var(--mint); color: #0D0D0D; }
.sticky-add-btn:not(:disabled):hover { filter: brightness(1.08); }

/* ── CART ─────────────────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: 360px;
  max-width: 100vw;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }

@media (max-width: 400px) { .cart-drawer { width: 100vw; } }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.05em;
  line-height: 1;
}

.cart-count {
  font-family: 'DM Sans', sans-serif;
  background: var(--mint);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 6px;
}

.cart-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--t);
  line-height: 1;
}
.cart-close:hover { color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 0 24px; }

.cart-empty {
  text-align: center;
  color: var(--dim);
  padding: 48px 0;
  font-size: 14px;
  line-height: 2;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-info    { flex: 1; min-width: 0; }
.cart-item-label   { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.cart-item-selections { color: #1a9e55; font-size: 12px; margin-bottom: 2px; line-height: 1.5; word-break: break-word; }
.cart-item-size    { color: var(--gray); font-size: 12px; }

.cart-item-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.cart-item-price   { color: var(--text); font-weight: 700; font-size: 14px; }
.cart-item-remove  {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color var(--t);
  font-family: inherit;
}
.cart-item-remove:hover { color: #FF5555; }

.cart-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  background: var(--mint);
  color: #0D0D0D;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: filter var(--t);
}
.btn-checkout:hover { filter: brightness(1.08); }

.btn-continue-shopping {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn-continue-shopping:hover {
  color: var(--text);
  border-color: #999;
}

.cart-note {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── TOAST ────────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  border: 1px solid var(--mint);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ── SCROLL REVEAL ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ────────────────────────────────────────────────────────────────── */
@keyframes chip-pop {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1);    }
}

@keyframes counter-shake {
  0%   { transform: translateX(0);    }
  20%  { transform: translateX(-4px); }
  40%  { transform: translateX(4px);  }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px);  }
  100% { transform: translateX(0);    }
}

/* ── MOBILE FIXES (< 768px) ──────────────────────────────────────────────────── */
@media (max-width: 767px) {

  .chips-grid {
    max-height: 220px;
  }

  .chips-grid-wrap {
    position: relative;
  }
  .chips-grid-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .product-section--alt .chips-grid-wrap::after {
    background: linear-gradient(transparent, rgba(244, 244, 244, 0.95));
  }
  .chips-grid-wrap.scroll-end::after {
    opacity: 0;
  }

}

/* ── PRODUCT IMAGE BRIGHTNESS ────────────────────────────────────────────────── */
#stone-build .product-img-wrap img {
  filter: brightness(1.05);
}

#glass-build .product-img-wrap img {
  filter: brightness(1.02);
}

/* ── CONTACT SECTION ─────────────────────────────────────────────────────────── */
.contact-section {
  background: #f8f8f8;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 64px 24px;
  text-align: center;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}

.contact-body {
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-email-link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 2px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.contact-email-link:hover {
  color: var(--mint);
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.contact-social-link {
  color: var(--dim);
  display: flex;
  transition: color var(--t) var(--ease);
}
.contact-social-link:hover { color: var(--mint); }
