/* ==========================================================================
   LUMEN & STONE — NEW VISUAL DIRECTION
   Concept: Modern gem atelier
   Mood: warm, artistic, trustworthy, colorful, quietly luxurious
   Typography: Cormorant Garamond / Manrope / DM Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Main palette */
  --bg: #fcfaf7;
  --bg-warm: #f6efe7;
  --bg-card: #ffffff;
  --ink: #302b2b;
  --ink-soft: #746c68;

  /* Jewel tones */
  --rose: #b85f78;
  --rose-dark: #91445c;
  --plum: #624b67;
  --sage: #718878;
  --teal: #4e7d7b;
  --amber: #c48a43;
  --amber-soft: #ead2ad;
  --sky: #718eaa;

  /* UI */
  --line: #e7ddd5;
  --stone: #9b918b;
  --ok: #66846d;
  --danger: #b66a63;

  /* Reserved for the hero only — keeps the boldness in one place */
  --midnight: #241d2b;
  --midnight-2: #2f2438;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tag: 'DM Mono', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 28px rgba(57, 43, 38, .065);
  --shadow-card: 0 10px 32px rgba(57, 43, 38, .085);
  --shadow-lift: 0 18px 42px rgba(57, 43, 38, .13);

  --transition: 220ms cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 4% 0%, rgba(234,210,173,.23), transparent 24rem),
    radial-gradient(circle at 96% 20%, rgba(184,95,120,.075), transparent 28rem),
    radial-gradient(circle at 75% 100%, rgba(78,125,123,.055), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: .95; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
h3 { font-size: 1.35rem; line-height: 1.1; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  color: var(--rose);
  font-family: var(--font-tag);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- focus ---------- */

:focus-visible {
  outline: 3px solid rgba(78,125,123,.32);
  outline-offset: 3px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .87rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 7px 18px rgba(184,95,120,.17);
}

.btn-primary:hover {
  background: var(--rose-dark);
  box-shadow: 0 11px 25px rgba(184,95,120,.22);
}

.btn-secondary {
  color: var(--plum);
  background: rgba(255,255,255,.7);
  border-color: #cbbdc9;
}

.btn-secondary:hover {
  color: #fff;
  background: var(--plum);
  border-color: var(--plum);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  background: #fff;
  border-color: #cfc1b7;
}

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

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.08), transparent 18rem),
    linear-gradient(135deg, #62526c 0%, #536f78 100%);
  box-shadow: 0 5px 24px rgba(57,43,38,.12);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-soft), transparent);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  transition: opacity var(--transition);
}

.brand:hover { opacity: .86; }

.brand small {
  color: #f0d8b0;
  font-family: var(--font-tag);
  font-size: .57rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: .84rem;
}

.nav-links a {
  position: relative;
  padding: 5px 0;
  color: rgba(255,255,255,.78);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.link-as-nav {
  padding: 5px 0;
  color: rgba(255,255,255,.78);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: color var(--transition);
}

.link-as-nav:hover { color: #fff; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -5px;
  height: 2px;
  border-radius: 99px;
  background: #efd4a7;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 999px;
  font-family: var(--font-tag);
  font-size: .7rem;
  transition: all var(--transition);
}

.nav-cart:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.45);
}

/* ---------- category navigation ---------- */

.category-strip {
  background: rgba(255,255,255,.075);
  border-top: 1px solid rgba(255,255,255,.10);
}

.category-strip .container {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 11px;
  scrollbar-width: none;
}

.category-strip .container::-webkit-scrollbar { display: none; }

.category-strip a {
  position: relative;
  white-space: nowrap;
  color: rgba(255,255,255,.68);
  font-size: .77rem;
  transition: color var(--transition);
}

.category-strip a:hover,
.category-strip a.active {
  color: #f0d5aa;
}

/* ---------- messages ---------- */

.messages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.messages .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}

.msg {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--stone);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(57,43,38,.035);
  font-size: .84rem;
}

.msg.success {
  border-left-color: var(--ok);
  background: #f2f7f3;
}

.msg.error {
  border-left-color: var(--danger);
  background: #fbf0ee;
}

/* ---------- gem shapes ---------- */

.facet-frame {
  clip-path: polygon(
    8% 0%, 92% 0%, 100% 8%,
    100% 92%, 92% 100%, 8% 100%,
    0% 92%, 0% 8%
  );
}

.facet-frame-sm {
  --facet: 7px;
}

/* ---------- page heading ---------- */

.page-head {
  position: relative;
  padding: 58px 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--amber));
}

.page-head p {
  max-width: 58ch;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: .94rem;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 27px 0;
}

.search-box {
  display: flex;
  overflow: hidden;
  min-width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 4px 15px rgba(57,43,38,.035);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(78,125,123,.09);
}

.search-box input {
  width: 100%;
  min-width: 220px;
  padding: 11px 14px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
}

.search-box button {
  padding: 0 15px;
  color: var(--plum);
  background: #f5efe9;
  border: none;
  cursor: pointer;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 38px 24px;
  padding: 8px 0 55px;
}

.product-card {
  display: block;
  min-width: 0;
}

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--amber);
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, rgba(255,255,255,.55) 26%, transparent 52%),
    linear-gradient(145deg, #f4e9e0, #e7e2da 52%, #e2ece8);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .38s var(--transition), box-shadow .38s var(--transition);
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 82%, rgba(184,95,120,.10), transparent 25%),
    radial-gradient(circle at 82% 15%, rgba(78,125,123,.10), transparent 24%);
  pointer-events: none;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: inherit;
  pointer-events: none;
}

.product-card:hover .product-media {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
}

.product-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--transition);
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-media .placeholder-mark {
  position: relative;
  z-index: 1;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 2.7rem;
  opacity: .55;
}

.stock-flag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 5px 10px;
  color: #fff;
  background: var(--sage);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(50,60,50,.12);
  font-family: var(--font-tag);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stock-flag.out {
  background: var(--danger);
}

.product-info {
  padding: 14px 3px 0;
}

.product-info .cat {
  color: var(--stone);
  font-family: var(--font-tag);
  font-size: .63rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.product-info h3 {
  margin-top: 5px;
  color: var(--plum);
  transition: color var(--transition);
}

.product-card:hover .product-info h3 {
  color: var(--rose);
}

.product-price {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 7px;
  color: var(--rose-dark);
  font-family: var(--font-tag);
  font-size: .82rem;
}
/* ---------- discount pricing ---------- */

.price-original {
  margin-right: 10px;
  color: var(--stone);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  font-weight: 400;
}

.price-final {
  color: var(--rose-dark);
  font-weight: 700;
}

.discount-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  font-family: var(--font-tag);
  font-size: .68rem;
  letter-spacing: .05em;
  vertical-align: middle;
}

.stock-flag.discount {
  right: 13px;
  left: auto;
  background: var(--rose);
}

/* ---------- pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 44px;
  font-family: var(--font-tag);
  font-size: .76rem;
}

.pagination a,
.pagination span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.pagination .current {
  color: #fff;
  background: var(--plum);
  border-color: var(--plum);
}

/* ---------- product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  padding: 52px 0 30px;
}

.detail-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--amber);
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, rgba(255,255,255,.55) 27%, transparent 54%),
    linear-gradient(145deg, #f4e9e0, #e7e2da 52%, #e2ece8);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media .placeholder-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  opacity: .45;
}

.detail-body {
  padding-top: 8px;
}

.detail-body .cat {
  color: var(--stone);
  font-family: var(--font-tag);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-body h1 {
  margin-top: 7px;
  color: var(--plum);
}

.detail-price {
  margin: 15px 0;
  color: var(--rose-dark);
  font-family: var(--font-tag);
  font-size: 1.25rem;
}

.detail-desc {
  max-width: 55ch;
  margin: 17px 0 24px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.stone-row {
  margin: 22px 0;
}

.stone-row .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.stone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stone-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: var(--plum);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(57,43,38,.025);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .81rem;
  font-weight: 600;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.stone-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.stone-chip:nth-child(2n)::before { background: var(--rose); }
.stone-chip:nth-child(3n)::before { background: var(--teal); }
.stone-chip:nth-child(4n)::before { background: var(--plum); }

.stone-chip:hover,
.stone-chip:focus-visible {
  transform: translateY(-2px);
  border-color: #cdbeb4;
  box-shadow: 0 8px 18px rgba(57,43,38,.07);
}

.stock-line {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: .82rem;
}

.stock-line.in { color: var(--ok); }
.stock-line.out { color: var(--danger); }

.qty-form {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 9px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qty-stepper button {
  width: 36px;
  height: 40px;
  color: var(--plum);
  background: #f6f0eb;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}

.qty-stepper button:hover {
  background: #eee3db;
}

.qty-stepper input {
  width: 45px;
  height: 40px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-tag);
}

/* ---------- benefits drawer ---------- */

.facet-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(48,43,43,.26);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.facet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.facet-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(450px, 94vw);
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 45px rgba(57,43,38,.13);
  transform: translateX(100%);
  transition: transform .3s var(--transition);
}

.facet-drawer.is-open {
  transform: translateX(0);
}

.facet-drawer-head {
  position: relative;
  padding: 25px 25px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(234,210,173,.24), transparent 13rem),
    linear-gradient(135deg, #66526d, #55757a);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 94% 100%, 0 100%);
}

.facet-drawer-head .eyebrow {
  color: #f0d8ae;
}

.facet-drawer-head h2 {
  margin-top: 6px;
  color: #fff;
}

.facet-drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.facet-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 25px;
}

.benefit-entry {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-entry:last-child { border-bottom: none; }

.benefit-entry h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.benefit-entry h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--rose);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.benefit-entry:nth-child(2) h3::before { background: var(--teal); }
.benefit-entry:nth-child(3) h3::before { background: var(--amber); }
.benefit-entry:nth-child(4) h3::before { background: var(--plum); }

.benefit-entry p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: .87rem;
}

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

.cart-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
}

.cart-table th {
  padding: 10px 12px;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-family: var(--font-tag);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cart-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table tbody tr {
  transition: background var(--transition);
}

.cart-table tbody tr:hover {
  background: rgba(197,154,88,.045);
}

.cart-table .item-name {
  color: var(--plum);
  font-weight: 700;
}

.cart-thumb {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, rgba(255,255,255,.55) 26%, transparent 52%),
    linear-gradient(145deg, #f4e9e0, #e7e2da 52%, #e2ece8);
  border-radius: 8px;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb .placeholder-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.3rem;
  opacity: .55;
}

.cart-table .item-sub {
  color: var(--rose-dark);
  font-family: var(--font-tag);
}

.cart-table form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-table input[type="number"] {
  width: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-tag);
}

.link-remove {
  color: var(--danger);
  font-size: .78rem;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 22px 12px;
  border-top: 2px solid var(--plum);
}

.cart-summary .total-label {
  color: var(--stone);
  font-family: var(--font-tag);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cart-summary .total-value {
  color: var(--rose-dark);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.empty-state {
  padding: 75px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state .facet-frame {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--amber-soft), #e7c5cf);
}

/* ---------- forms ---------- */

.form-card {
  width: min(100%, 470px);
  margin: 54px auto;
  padding: 37px 33px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.form-card h1,
.form-card h2 {
  margin-bottom: 7px;
  color: var(--plum);
}

.form-card .lede {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: .86rem;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--plum);
  font-size: .77rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px rgba(78,125,123,.09);
}

.field textarea {
  min-height: 95px;
  resize: vertical;
}

.field-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: .77rem;
}

.non-field-errors {
  margin-bottom: 16px;
}

.otp-code-input input {
  text-align: center;
  letter-spacing: .5em;
  font-family: var(--font-tag);
  font-size: 1.15rem;
}

/* ---------- checkout ---------- */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  padding: 38px 0 65px;
}

.order-recap {
  align-self: start;
  padding: 23px;
  background:
    radial-gradient(circle at 100% 0%, rgba(234,210,173,.27), transparent 12rem),
    linear-gradient(145deg, #f7eee7, #eef1ed);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.order-recap .recap-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}

.order-recap .recap-total {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  color: var(--rose-dark);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

/* ---------- account ---------- */

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0 60px;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 19px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 4px 15px rgba(57,43,38,.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.order-card .order-id {
  color: var(--stone);
  font-family: var(--font-tag);
  font-size: .73rem;
}

.status-pill {
  padding: 5px 10px;
  color: var(--plum);
  background: #eee8e4;
  border-radius: 999px;
  font-family: var(--font-tag);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-pill.paid,
.status-pill.delivered {
  color: var(--ok);
  background: #e8f1e9;
}

.status-pill.cancelled {
  color: var(--danger);
  background: #f7e8e5;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin: 65px auto 0;
  padding: 34px 24px;
  color: var(--stone);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

/* ---------- utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ==========================================================================
   BRAND MARK
   ========================================================================== */

.gem-logo {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
}

/* ==========================================================================
   HERO — the one bold moment on the site
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(196,138,67,.18), transparent 30rem),
    radial-gradient(circle at 8% 92%, rgba(78,125,123,.16), transparent 26rem),
    linear-gradient(160deg, var(--midnight) 0%, var(--midnight-2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding: 78px 0 86px;
}

.hero-copy .eyebrow { color: var(--amber-soft); }

.hero-copy h1 {
  margin-top: 14px;
  color: #fff;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--amber-soft);
}

.hero-copy p {
  max-width: 46ch;
  margin: 20px 0 30px;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.35);
}

.hero .btn-secondary:hover {
  color: var(--midnight);
  background: #fff;
  border-color: #fff;
}

.hero-gem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gem {
  width: min(100%, 420px);
  height: auto;
  animation: gem-drift 9s ease-in-out infinite;
}

.gem-facet { transition: fill-opacity .4s ease; }
.hero-gem:hover .gem-facet { fill-opacity: 1; }

@keyframes gem-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gem { animation: none; }
}

/* ==========================================================================
   SECTION SCAFFOLDING
   ========================================================================== */

.section { padding: 70px 0; }
.section-alt { background: var(--bg-warm); }

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

.section-head h2 { margin-top: 10px; }

.section-head p {
  max-width: 50ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.link-more {
  display: inline-block;
  padding-bottom: 4px;
  color: var(--rose-dark);
  font-family: var(--font-tag);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: var(--bg-card);
  font-size: .81rem;
}

.trust-item .mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.trust-item span.copy { color: var(--ink-soft); }
.trust-item strong { display: block; color: var(--plum); }

/* ==========================================================================
   STONE GRID
   ========================================================================== */

.stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 30px 22px;
}

.stone-card { display: block; }

.stone-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--amber);
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, rgba(255,255,255,.5) 24%, transparent 50%),
    linear-gradient(150deg, #efe6f0, #e4ecec 55%, #f1e7dc);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--transition), box-shadow .35s var(--transition);
}

.stone-card:hover .stone-media {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lift);
}

.stone-media img,
.stone-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stone-media .placeholder-mark {
  font-family: var(--font-display);
  font-size: 2.3rem;
  opacity: .5;
}

.stone-info {
  padding: 16px 6px 0;
  text-align: center;
}

.stone-info h3 { transition: color var(--transition); }
.stone-card:hover .stone-info h3 { color: var(--rose); }

.stone-info p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .83rem;
}

/* ==========================================================================
   STORY BAND
   ========================================================================== */

.story-band {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.story-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-mark svg { width: min(100%, 180px); height: auto; }

.story-copy p {
  max-width: 60ch;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.story-copy p:first-of-type {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ==========================================================================
   MEDIA GALLERY (product / stone detail)
   ========================================================================== */

.gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--amber);
  background:
    radial-gradient(circle at 50% 30%, #fff 0%, rgba(255,255,255,.55) 27%, transparent 54%),
    linear-gradient(145deg, #f4e9e0, #e7e2da 52%, #e2ece8);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .placeholder-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  opacity: .45;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 62px;
  height: 62px;
  overflow: hidden;
  padding: 0;
  background: #f1ece6;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.gallery-thumb.is-active { border-color: var(--rose); }

.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-video { position: relative; }

.gallery-thumb.is-video::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(36,29,43,.35);
  font-size: .6rem;
}

/* ==========================================================================
   STONE DETAIL
   ========================================================================== */

.stone-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding: 52px 0 30px;
}

.stone-detail-body { padding-top: 8px; }

.stone-lede {
  max-width: 55ch;
  margin: 16px 0 26px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.benefits-copy {
  max-width: 60ch;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.85;
}

.benefits-copy p { margin: 0 0 16px; }
.benefits-copy p:last-child { margin-bottom: 0; }

.related-products { padding: 8px 0 60px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   FOOTER (expanded)
   ========================================================================== */

.site-footer-full {
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}

.footer-brand .brand { color: var(--plum); }

.footer-brand p {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.7;
}

.footer-col h4 {
  margin-bottom: 12px;
  color: var(--stone);
  font-family: var(--font-tag);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: .87rem;
}

.footer-col a:hover { color: var(--rose-dark); }

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--stone);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .container {
    width: min(100% - 36px, 1180px);
  }

  .nav-bar {
    flex-wrap: wrap;
    padding: 15px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-top: 3px;
  }

  .product-detail,
  .stone-detail {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-recap {
    position: static;
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding: 56px 0 50px;
    text-align: center;
  }

  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-gem-wrap { order: -1; }
  .hero-gem { width: min(72%, 300px); }

  .trust-strip { grid-template-columns: repeat(2, 1fr); }

  .story-band {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .story-copy p { margin-left: auto; margin-right: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .page-head {
    padding-top: 42px;
  }

  .page-head h1 {
    font-size: 2.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 29px 13px;
  }

  .product-info h3 {
    font-size: 1.16rem;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .search-box input {
    min-width: 0;
  }

  .detail-body h1 {
    font-size: 3rem;
  }

  .form-card {
    margin: 35px 0;
    padding: 30px 22px;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .cart-summary {
    justify-content: space-between;
  }

  .site-footer {
    margin-top: 45px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-copy h1 { font-size: 2.6rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .stone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .stone-detail-body h1 { font-size: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 48px 0; }
}

@media (max-width: 390px) {
  .product-grid,
  .stone-grid {
    gap: 18px 10px;
  }

  .product-info h3 {
    font-size: 1.02rem;
  }

  .product-price {
    font-size: .76rem;
  }
}