/* ============================================================
   SOLITAIRE JEWELLERS — main.css
   Palette: Warm black · Crimson red · Gold · Cream
   Tone: Luxury editorial — bold, warm, luminous
   ============================================================ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
  /* Brand reds — variable names kept as --blue/--navy so existing
     CSS rules that reference them continue to work without churn.
     The values now map to the red palette. */
  --blue:         #C41E3A;   /* primary action — deep crimson */
  --blue-light:   #E8293F;   /* hover state — bright red */
  --blue-pale:    #FFF0F1;   /* backgrounds, badges — blush */
  --blue-glow:    #FFD8DC;   /* subtle glow accent — pale rose */
  --navy:         #1A1012;   /* header, footer — warm black */
  --navy-2:       #2D1B1E;   /* footer secondary — warm charcoal */

  /* Neutrals */
  --charcoal:     #3A3A3A;   /* body text */
  --mid:          #6B7280;   /* secondary text */
  --light:        #FAF4F0;   /* page background — warm cream */
  --white:        #FFFFFF;
  --border:       #E8D8DA;   /* blush-tinted border */
  --border-light: #F4E8E9;

  /* Accent gold — kept from the original palette for diamond/CTA accents */
  --gold:         #C9963A;
  --gold-light:   #E8B85A;

  /* Status */
  --error:        #8B0000;
  --success:      #1B4D2E;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Sizing */
  --radius:       4px;
  --radius-lg:    8px;
  --shadow:       0 2px 12px rgba(196,30,58,0.08);
  --shadow-lg:    0 8px 40px rgba(196,30,58,0.16);
  --max-width:    1240px;
  --header-h:     72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--light); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--mid); }

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: .9rem;
  position: fixed; top: var(--header-h); left: 50%; transform: translateX(-50%);
  z-index: 9999; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 600px;
  animation: slideDown .3s ease;
}
.flash--success { background: #E8F5EC; border: 1px solid #A8D5B5; color: var(--success); }
.flash--error   { background: #F5E8E8; border: 1px solid #D5A8A8; color: var(--error); }
.flash--info    { background: var(--blue-pale); border: 1px solid var(--blue-glow); color: var(--navy); }
.flash__icon    { font-size: 1rem; }
.flash__close   { margin-left: auto; font-size: 1.2rem; cursor: pointer; opacity: .6; }
.flash__close:hover { opacity: 1; }
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-10px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(74,142,194,.25);
  box-shadow: 0 2px 20px rgba(26,46,66,.3);
}
.site-header__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 32px;
}

/* Logo — uses the Solitaire image */
.site-logo {
  display: flex; align-items: center;
  text-decoration: none; flex: none;
}
.site-logo img {
  height: 38px; width: auto;
  transition: filter .2s;
}
.site-logo:hover img { filter: drop-shadow(0 0 8px rgba(168,212,240,.8)); }
/* Fallback text if image fails */
.site-logo__fallback {
  color: var(--white); font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: .08em;
  display: none;
}
.site-logo img + .site-logo__fallback { display: none; }

.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav__link {
  color: rgba(255,255,255,.75); font-size: .88rem;
  letter-spacing: .04em; transition: color .2s;
}
.site-nav__link:hover { color: var(--white); }
.site-nav__cta {
  padding: 8px 20px;
  background: var(--blue); color: var(--white);
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radius); transition: background .2s;
}
.site-nav__cta:hover { background: var(--blue-light); color: var(--white); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-icon { color: rgba(255,255,255,.75); display: flex; position: relative; transition: color .2s; }
.header-icon:hover { color: var(--white); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--blue); color: var(--white);
  width: 16px; height: 16px; border-radius: 50%;
  font-size: .65rem; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,.75); }

/* ── Main ────────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - var(--header-h) - 200px); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.6); margin-top: 80px; }
.site-footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
}
.site-footer__brand .site-logo__text { color: var(--white); font-size: 1.1rem; }
.site-footer__brand img { height: 32px; margin-bottom: 12px; }
.site-footer__tagline { font-size: .85rem; margin-top: 10px; font-style: italic; }
.site-footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-footer__links div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links strong { color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer__links a { font-size: .85rem; color: rgba(255,255,255,.55); }
.site-footer__links a:hover { color: var(--blue-glow); }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 24px; text-align: center; }
.site-footer__base p { font-size: .8rem; }
.footer-admin-link { font-size: .75rem; color: rgba(255,255,255,.25) !important; margin-top: 4px; }
.footer-admin-link:hover { color: rgba(255,255,255,.5) !important; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body); font-size: .88rem; letter-spacing: .05em;
  border-radius: var(--radius); transition: all .2s; cursor: pointer;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); color: var(--white); }
.btn--gold, .btn--blue { background: var(--blue); color: var(--white); border: none; }
.btn--gold:hover, .btn--blue:hover { background: var(--blue-light); color: var(--white); }
.btn--ghost { background: transparent; color: var(--charcoal); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--outline-gold, .btn--outline-blue { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn--outline-gold:hover, .btn--outline-blue:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 8px 18px; font-size: .82rem; }
.btn--lg { padding: 16px 40px; font-size: 1rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-text { background: none; border: none; color: var(--mid); font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.btn-text:hover { color: var(--charcoal); }

/* ── Build Steps ─────────────────────────────────────────────── */
.build-steps { padding: 28px 24px; border-bottom: 1px solid var(--border); background: var(--white); }
.build-steps__track {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center;
}
.build-step { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.build-step__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 500; flex: none;
  transition: all .3s;
}
.build-step__label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
.build-step__line { flex: 1; height: 1px; background: var(--border); margin: 0 12px; }
.build-step--active .build-step__num { background: var(--blue); color: var(--white); }
.build-step--active .build-step__label { color: var(--navy); font-weight: 500; }
.build-step--done .build-step__num { background: var(--navy); color: var(--white); }
.build-step--done .build-step__label { color: var(--mid); }

/* ── Browse layout ───────────────────────────────────────────── */
.browse-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ── Filter sidebar ──────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 3px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); }
.filter-sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.filter-sidebar__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--navy); }
.filter-clear { font-size: .78rem; color: var(--mid); text-decoration: underline; cursor: pointer; background: none; border: none; }
.filter-clear:hover { color: var(--blue); }
.filter-group { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-group__label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 12px; font-family: var(--font-body); font-weight: 500;
}

/* ── Shape grid ──────────────────────────────────────────────── */
.shape-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.shape-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--light); cursor: pointer; transition: all .15s;
  font-size: .62rem; color: var(--mid);
}
.shape-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.shape-btn.active { border-color: var(--blue); background: var(--blue-pale); color: var(--navy); }
.shape-btn svg { width: 22px; height: 18px; }

/* ── Grade pills (colour/clarity/cut) ───────────────────────── */
.grade-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.grade-pill {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px;
  font-size: .78rem; color: var(--mid); cursor: pointer; background: var(--white); transition: all .15s;
}
.grade-pill:hover { border-color: var(--blue); color: var(--blue); }
.grade-pill.active { border-color: var(--blue); background: var(--blue-pale); color: var(--navy); font-weight: 500; }
.filter-note { font-size: .68rem; color: var(--mid); margin-top: 6px; font-style: italic; }

/* ── Style list (ring style filter) ─────────────────────────── */
.style-list { display: flex; flex-direction: column; gap: 2px; }
.style-btn {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius);
  font-size: .88rem; color: var(--mid); cursor: pointer; transition: all .15s;
  border: 1px solid transparent; background: none; font-family: var(--font-body);
  text-decoration: none; display: block;
}
.style-btn:hover { background: var(--blue-pale); color: var(--navy); }
.style-btn.active, .style-btn.on { background: var(--blue-pale); color: var(--navy); border-color: var(--blue); }

/* ── Metal buttons ───────────────────────────────────────────── */
.metal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.metal-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .15s; background: var(--white);
  font-size: .82rem; color: var(--charcoal); font-family: var(--font-body);
}
.metal-btn:hover { border-color: var(--blue); }
.metal-btn.active, .metal-btn.on { border-color: var(--blue); background: var(--blue-pale); }
.metal-btn__swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); flex: none; }

/* ── Price range ─────────────────────────────────────────────── */
.range-filter__inputs { display: flex; align-items: center; gap: 8px; }
.range-filter__input-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.range-filter__prefix { padding: 0 6px; color: var(--mid); font-size: .82rem; border-right: 1px solid var(--border); background: var(--light); align-self: stretch; display: flex; align-items: center; }
.range-filter__input { padding: 7px 8px; font-size: .82rem; border: none; outline: none; font-family: var(--font-body); color: var(--charcoal); width: 80px; }
.range-filter__input:focus { box-shadow: inset 0 0 0 1px var(--blue); }
.range-filter__sep { color: var(--mid); font-size: .82rem; flex: none; }

/* ── Quick preset buttons ────────────────────────────────────── */
.quick-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.quick-btn {
  padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px;
  font-size: .75rem; color: var(--mid); cursor: pointer; background: var(--white); transition: all .15s;
}
.quick-btn:hover { border-color: var(--blue); color: var(--blue); }
.quick-btn.active { border-color: var(--blue); background: var(--blue-pale); color: var(--navy); }

/* ── Browse results ──────────────────────────────────────────── */
.browse-results {}
.browse-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.browse-toolbar__count { font-size: .9rem; color: var(--mid); }
.browse-toolbar__count span { color: var(--charcoal); font-weight: 500; }
.browse-sort {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .82rem; font-family: var(--font-body); color: var(--charcoal);
  background: var(--white); cursor: pointer; outline: none;
}
.browse-sort:focus { border-color: var(--blue); }

/* ── Product grid ────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue-glow); }
.product-card__img-wrap {
  display: block; background: #ffffff;
  min-height: 180px; position: relative;
  overflow: hidden; text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}
.product-card__img-wrap img {
  width: 100%; height: 220px;
  object-fit: contain;
  background: #ffffff;
  padding: 20px;
  transition: transform .3s ease;
}
.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}
.product-card__gem-placeholder,
.product-card__ring-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 200px; width: 100%; color: var(--blue); opacity: .4;
}
.product-card__gem-placeholder svg,
.product-card__ring-placeholder svg { width: 64px; height: 64px; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.product-card__video-hint {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(26,46,66,.8); color: var(--white);
  font-size: .7rem; padding: 3px 8px; border-radius: 3px;
}
.product-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.product-card__title a { color: var(--charcoal); }
.product-card__title a:hover { color: var(--blue); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 4px; font-size: .78rem; color: var(--mid); }
.card-spec { display: flex; gap: 3px; }
.card-spec__label { font-weight: 500; color: var(--charcoal); }
.card-spec + .card-spec::before { content: '·'; margin-right: 3px; }
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-light);
}
.product-card__price { font-family: var(--font-display); font-size: 1.3rem; color: var(--charcoal); }
.product-card__currency { font-size: .72rem; font-family: var(--font-body); color: var(--mid); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 8px;
  font-size: .65rem; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 3px; font-weight: 500;
}
.badge--shape { background: var(--navy); color: var(--white); }
.badge--lab { background: var(--blue); color: var(--white); }
.badge--metal { background: var(--navy); color: var(--white); }
.badge--stock { background: #1B4D2E; color: #fff; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 40px 0;
}
.page-header__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.page-header__title { font-size: clamp(2rem,4vw,3rem); color: var(--white); margin-bottom: 8px; }
.page-header__sub { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--mid); }
.empty-state__icon { font-size: 2rem; margin-bottom: 12px; color: var(--blue-glow); }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 8px; color: var(--charcoal); }

/* ── Loading shimmer ─────────────────────────────────────────── */
.loading-shimmer { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.shimmer-card { height: 320px; background: linear-gradient(90deg, var(--border-light) 25%, var(--white) 50%, var(--border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-lg); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pagination__btn {
  padding: 9px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; color: var(--charcoal); transition: all .15s; text-decoration: none;
}
.pagination__btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination__info { font-size: .85rem; color: var(--mid); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); font-weight: 500; }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font-body); color: var(--charcoal);
  background: var(--white); outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-error { font-size: .78rem; color: var(--error); }
.form-hint  { font-size: .78rem; color: var(--mid); }

/* ── Spec boxes (diamond detail) ─────────────────────────────── */
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.spec-box { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.spec-box__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mid); margin-bottom: 4px; }
.spec-box__val { font-size: .95rem; color: var(--charcoal); font-weight: 500; }

/* ── Specs table ─────────────────────────────────────────────── */
.detail-specs-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.specs-table-title { padding: 12px 16px; background: var(--navy); color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.specs-row { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border-light); font-size: .85rem; }
.specs-row:last-child { border-bottom: none; }
.specs-row:nth-child(even) { background: var(--light); }
.specs-row__label { color: var(--mid); }
.specs-row__val { color: var(--charcoal); font-weight: 500; }

/* ── Cert callout ────────────────────────────────────────────── */
.cert-callout {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-top: 12px;
  background: var(--blue-pale); border: 1px solid var(--blue-glow);
  border-radius: var(--radius); text-decoration: none; transition: background .2s;
}
.cert-callout:hover { background: var(--blue-glow); }
.cert-callout__icon { color: var(--blue); flex: none; }
.cert-callout__text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cert-callout__label { font-size: .88rem; font-weight: 500; color: var(--charcoal); }
.cert-callout__sub { font-size: .75rem; color: var(--mid); }
.cert-callout__arrow { color: var(--blue); font-size: 1.1rem; flex: none; }

/* ── Media tabs ──────────────────────────────────────────────── */
.media-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.media-tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .82rem; color: var(--mid); cursor: pointer; background: var(--white);
  font-family: var(--font-body); transition: all .15s;
}
.media-tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.media-tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Select diamond/setting buttons ─────────────────────────── */
.btn-select-diamond {
  display: block; width: 100%; padding: 16px; text-align: center;
  background: var(--navy); color: #fff; border: none; border-radius: var(--radius);
  font-size: .95rem; cursor: pointer; transition: all .2s; text-decoration: none;
  font-family: var(--font-body);
}
.btn-select-diamond:hover { background: var(--blue); color: #fff; }

/* ── Detail page layout ──────────────────────────────────────── */
.detail-breadcrumb { font-size: .78rem; color: var(--mid); margin-bottom: 12px; }
.detail-breadcrumb a { color: var(--mid); }
.detail-breadcrumb a:hover { color: var(--blue); }
.detail-title { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1.2; margin-bottom: 16px; color: var(--navy); }
.detail-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--charcoal); }
.detail-price-currency { font-size: 1rem; font-family: var(--font-body); color: var(--mid); }
.detail-price-note { font-size: .78rem; color: var(--mid); margin-bottom: 24px; }
.detail-action { margin-bottom: 28px; }
.detail-action__note { font-size: .78rem; color: var(--mid); margin-top: 8px; text-align: center; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; max-height: none; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .site-nav__link { display: none; }
  .mobile-menu-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Build Start Page ────────────────────────────────────────── */
.build-start { max-width: var(--max-width); margin: 0 auto; }

.build-start__hero {
  text-align: center; padding: 48px 24px 32px;
}
.build-start__eyebrow {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.build-start__heading {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 400; color: var(--navy); margin-bottom: 12px;
}
.build-start__sub { color: var(--mid); max-width: 540px; margin: 0 auto; font-size: .95rem; }

.build-paths {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: stretch;
  max-width: 900px; margin: 0 auto 48px; padding: 0 24px;
}
.build-path {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 32px; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); transition: all .25s; text-align: center;
}
.build-path:hover {
  border-color: var(--blue); box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── KEY FIX: constrain the SVG icons ── */
.build-path__gem {
  width: 100px; height: 100px;
  color: var(--blue); margin-bottom: 24px; flex: none;
}
.build-path__gem svg {
  width: 100%; height: 100%;
}

.build-path__title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--navy); margin-bottom: 10px;
}
.build-path__desc { font-size: .88rem; color: var(--mid); line-height: 1.7; margin-bottom: 16px; }
.build-path__features {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px; width: 100%;
}
.build-path__features li {
  font-size: .82rem; color: var(--mid);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.build-path__features li::before { content: '◇'; color: var(--blue); font-size: .55rem; }
.build-path__cta { font-size: .85rem; color: var(--blue); font-weight: 500; }
.build-path:hover .build-path__cta { color: var(--blue-light); }

.build-paths__or {
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; color: var(--mid); font-size: .85rem; font-style: italic;
}

.build-trust {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--white); margin: 0 0 60px;
}
.build-trust__item {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 28px; font-size: .82rem; color: var(--mid);
  border-right: 1px solid var(--border);
}
.build-trust__item:last-child { border-right: none; }
.build-trust__icon { color: var(--blue); font-size: .6rem; }

@media (max-width: 700px) {
  .build-paths { grid-template-columns: 1fr; }
  .build-paths__or { padding: 16px 0; }
}

/* ── Detail page two-column layout ──────────────────────────── */
.diamond-detail { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 80px; }
.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .detail-inner { grid-template-columns: 1fr; }
}

/* ── Detail media panel ──────────────────────────────────────── */
.detail-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
