@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@200;300;400&display=swap');

/* ── PERFORMANCE & ACCESSIBILITY ── */
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
img { max-width: 100%; height: auto; }
/* Improve tap targets on mobile */
a, button { min-height: 44px; display: inline-flex; align-items: center; }
a.listing-card, a.collection-card, a.nav-logo { min-height: unset; display: block; }
.nav-links li a, .nav-cta, .mobile-nav a { min-height: 44px; display: inline-flex; align-items: center; }

:root {
  --cream:       #f0f4f8;
  --parchment:   #e4edf5;
  --linen:       #d0e0ee;
  --linen-dark:  #b8cfe0;
  --gold:        #2a6fa8;
  --gold-light:  #3d84be;
  --gold-bright: #7eb8e8;
  --gold-pale:   #c0d8ee;
  --ink:         #091c33;
  --ink-mid:     #0d2a4a;
  --muted:       #3a5a78;
  --muted-light: #5a7d9a;
  --white:       #ffffff;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', sans-serif;
  --max-w:       960px;
  --side-pad:    3vw;
  --r-sm:        6px;
  --r-md:        10px;
  --r-lg:        16px;
  --r-xl:        22px;
  --shadow-sm:   0 2px 8px rgba(9,28,51,0.07);
  --shadow-md:   0 4px 20px rgba(9,28,51,0.10);
  --shadow-lg:   0 8px 32px rgba(9,28,51,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: #fff;
  text-shadow: none;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ── SITE NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--side-pad);
  background: rgba(240,244,248,0.98);
  border-bottom: 1px solid var(--linen-dark);
  transition: background 0.3s;
  max-width: 100%;
}
.site-nav.scrolled { background: rgba(240,244,248,0.98); border-bottom: 1px solid var(--linen-dark); }
.nav-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.nav-logo:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-cta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.nav-cta:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.nav-hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 26px; height: 1px; background: var(--ink); transition: all 0.3s; }


/* ── SALE ANNOUNCEMENT BAR ── */
.md-sale-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 260;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.md-sale-banner__inner {
  min-height: 40px;
  width: 100%;
  padding: 0.55rem var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
a.md-sale-banner__inner:hover,
a.md-sale-banner__inner:focus {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body:has(.md-sale-banner) .site-nav {
  top: 40px;
}
@supports not selector(body:has(.md-sale-banner)) {
  .md-sale-banner + .site-nav { top: 40px; }
}
@media (max-width: 768px) {
  .md-sale-banner__inner {
    min-height: 38px;
    padding: 0.48rem 1rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
  body:has(.md-sale-banner) .site-nav {
    top: 38px;
  }
  @supports not selector(body:has(.md-sale-banner)) {
    .md-sale-banner + .site-nav { top: 38px; }
  }
}

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--cream); z-index: 300; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 300; color: var(--ink); letter-spacing: 0.1em; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }

/* ── HERO ── */
.hero { min-height: 75vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .hero-left {
    padding: 6rem 5vw 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); word-break: break-word; }
  .hero-subtitle { max-width: 100%; word-break: break-word; }
  .hero-buttons { flex-wrap: wrap; gap: 0.75rem; }
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem var(--side-pad) 5rem var(--side-pad);
  background: var(--cream);
}
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  font-weight: 300; line-height: 1.02; color: var(--ink); margin-bottom: 2rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.9; max-width: 520px; margin-bottom: 3.5rem; }
.hero-buttons { display: flex; gap: 2rem; align-items: center; }
.btn-primary {
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); background: var(--ink); padding: 1.1rem 2.8rem;
  display: inline-block; transition: background 0.3s; border-radius: var(--r-md);
}
.btn-primary:hover { background: var(--gold); }
.btn-ghost {
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 0.6rem; transition: color 0.3s;
  border: 1.5px solid var(--linen-dark); padding: 1.05rem 1.8rem; border-radius: var(--r-md);
}
.btn-ghost::after { content: '→'; transition: transform 0.3s; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::after { transform: translateX(4px); }
.hero-right { position: relative; overflow: visible; background: var(--parchment); min-height: 500px; border-radius: 0 0 0 var(--r-xl); }
.hero-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── MARQUEE ── */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--linen-dark); border-bottom: 1px solid var(--linen-dark); padding: 1.2rem 0; background: var(--parchment); }
.marquee-track { display: flex; gap: 5rem; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-item { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; display: flex; align-items: center; gap: 1.5rem; }
.marquee-item::after { content: '◆'; color: var(--gold-pale); font-size: 0.55rem; }

/* ── SECTIONS ── */
.section { padding: 7rem 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.section-label { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 300; color: var(--ink); line-height: 1.1; }
.section-title em { font-style: italic; color: var(--gold); }
.section-link { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 2px; white-space: nowrap; transition: color 0.3s; }
.section-link:hover { color: var(--gold-bright); }

/* ── COLLECTIONS GRID ── */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) {
  .collections-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .collections-grid { grid-template-columns: 1fr; }
}
.collection-card { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--linen); display: block; border-radius: var(--r-lg); }
.collection-card-bg { position: absolute; inset: 0; }
.collection-card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.collection-card:hover .collection-card-bg img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,26,20,0.78) 0%, rgba(30,26,20,0.04) 55%); }
.collection-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem; }
.collection-card-tag { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.7rem; }
.collection-card-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 300; color: var(--cream); margin-bottom: 1rem; }
.collection-card-cta { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-light); display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.3s; }
.collection-card-cta::after { content: '→'; }
.collection-card:hover .collection-card-cta { color: var(--gold-pale); }

/* ── PHILOSOPHY ── */
.philosophy { background: var(--linen); padding: 8rem 0; }
.philosophy-quote { font-family: var(--font-serif); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.35; color: var(--ink); }
.philosophy-quote em { color: var(--gold); font-style: italic; }
.philosophy-attribution { margin-top: 2rem; font-size: 0.82rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 1rem; }
.philosophy-attribution::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold-pale); }
.philosophy-body p { font-size: 1rem; line-height: 2; color: var(--muted); margin-bottom: 1.5rem; }
.philosophy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--linen-dark); }
.stat-number { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ── FEATURED WATCHES GRID ── */
.watches-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
@media (max-width: 768px) {
  .watches-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
.watch-card { background: var(--white); border: 1px solid rgba(184,207,224,0.5); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.watch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.watch-card-img-link { display: block; }
.watch-card-img { aspect-ratio: 3/4; overflow: hidden; background: var(--parchment); border: none; margin-bottom: 0; }
.watch-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.watch-card:hover .watch-card-img img { transform: scale(1.05); }
.watch-card-body { padding: 1.2rem 1.4rem 1.5rem; }
.watch-card-ref { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.watch-card-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 300; color: var(--ink); margin-bottom: 0.8rem; }
.watch-card-cta { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 2px; transition: color 0.25s; }
.watch-card-cta:hover { color: var(--gold-bright); }

/* ── NEWSLETTER ── */
.newsletter { background: var(--cream); padding: 8rem 0; }
.newsletter-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.5vw, 3.5rem); font-weight: 300; line-height: 1.2; color: var(--ink); }
.newsletter-title em { font-style: italic; color: var(--gold); }
.newsletter-sub { font-size: 1rem; line-height: 1.9; color: var(--muted); margin-top: 1.2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-row { display: flex; border-bottom: 1px solid var(--linen-dark); align-items: center; }
.newsletter-input { flex: 1; background: transparent; border: none; outline: none; padding: 1rem 0; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); font-weight: 300; }
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-submit { background: none; border: none; color: var(--gold); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; padding: 0 0 0 1rem; transition: color 0.3s; font-family: var(--font-sans); }
.newsletter-submit:hover { color: var(--gold-light); }
.newsletter-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ── FOOTER ── */
.site-footer { background: #0a1628; padding: 6rem 0 3rem; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; letter-spacing: 0.15em; color: #ffffff; margin-bottom: 1.2rem; }
.footer-tagline { font-size: 0.92rem; line-height: 1.9; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-col-title { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 1.4rem; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col-links a { font-size: 0.92rem; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-col-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2.5rem; border-top: 1px solid var(--linen-dark); }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-socials { display: flex; gap: 2.5rem; }
.footer-socials a { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.footer-socials a:hover { color: var(--gold); }

/* ── ARCHIVE PAGES ── */
/* ── ARCHIVE HERO ── */
.archive-header {
  position: relative;
  border-bottom: 1px solid var(--linen-dark);
  padding: 9rem 0 4rem;
  background: var(--parchment);
  overflow: hidden;
}
.archive-header.has-hero {
  padding: 11rem 0 5rem;
  background: var(--ink);
  border-bottom: none;
}
.archive-header.hero-small  { min-height: 400px; }
.archive-header.hero-medium { min-height: 550px; }
.archive-header.hero-large  { min-height: 700px; }
.archive-header.hero-full   { min-height: 100vh; }
.archive-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.archive-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,8,6,0.82) 0%, rgba(10,8,6,0.45) 70%, rgba(10,8,6,0.2) 100%);
  z-index: 1;
}
.archive-header-content { position: relative; z-index: 2; }
.archive-header.has-hero .breadcrumb { color: rgba(255,255,255,0.55); }
.archive-header.has-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.archive-header.has-hero .breadcrumb a:hover,
.archive-header.has-hero .breadcrumb span { color: var(--gold-bright); }
.archive-header.has-hero .section-label { color: var(--gold-bright); }
.archive-header.has-hero .archive-title { color: #ffffff; font-weight: 400; }
.archive-header.has-hero .archive-title em { color: var(--gold-bright); }
.archive-header.has-hero .archive-subtitle { color: rgba(255,255,255,0.8); }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted-light); transition: color 0.2s; }
.breadcrumb a:hover, .breadcrumb span { color: var(--gold); }
.archive-title { font-family: var(--font-serif); font-size: clamp(3rem, 5.5vw, 5.5rem); font-weight: 400; color: var(--ink); margin-bottom: 1rem; }
.archive-title em { font-style: italic; color: var(--gold); }
.archive-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.9; max-width: 640px; }
.archive-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; max-width: var(--content-w); margin: 0 auto; padding: 2rem; background: var(--white); }

/* ── FILTER SIDEBAR ── */
.filter-sidebar {
  background: transparent;
  border-right: 1px solid var(--linen-dark);
  padding: 2rem 1.5rem 2rem 0;
  position: sticky; top: 75px;
  height: calc(100vh - 75px);
  overflow-y: auto;
  border-radius: 0;
}
.filter-sidebar::-webkit-scrollbar { width: 2px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }
.filter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linen-dark); }
.filter-top-label { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 300; letter-spacing: 0.06em; color: var(--ink); font-style: italic; }
.filter-clear-all { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-light); cursor: pointer; background: none; border: none; font-family: var(--font-sans); transition: color 0.25s; padding: 0; min-height: unset; }
.filter-clear-all:hover { color: var(--gold); }
.filter-group { margin-bottom: 0; }
.filter-group-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; display: block; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-chip {
  font-size: 0.7rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--linen-dark);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: 0.07em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: unset;
  line-height: 1;
  border-radius: var(--r-sm);
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.filter-chip.active { background: var(--gold); color: var(--white); border-color: var(--gold); border-radius: var(--r-sm); }
.filter-divider { height: 1px; background: var(--linen-dark); margin: 1rem 0; }
.filter-range { width: 100%; accent-color: var(--gold); margin-bottom: 0.5rem; }
.filter-range-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }

/* ── LISTING AREA ── */
.listing-area { padding: 2.5rem 2rem; background: var(--white); }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linen-dark); }
.listing-count { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.listing-sort { font-size: 0.9rem; color: var(--ink); background: var(--white); border: 1px solid var(--linen-dark); padding: 0.5rem 1rem; font-family: var(--font-sans); outline: none; cursor: pointer; border-radius: var(--r-sm); }
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.listing-empty { color: var(--muted); font-size: 1rem; line-height: 2; padding: 3rem 0; }

/* ── LISTING CARD ── */
.listing-card { background: transparent; border: none; border-radius: 0; box-shadow: none; transition: transform 0.3s; display: block; overflow: hidden; }
.listing-card:hover { transform: translateY(-4px); }
.listing-card-thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--white); position: relative; }
.listing-card-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s; }
.listing-card:hover .listing-card-thumb img { transform: scale(1.04); }
.listing-card-badge { position: absolute; top: 0.85rem; left: 0.85rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--gold-bright); padding: 0.28rem 0.65rem; border-radius: var(--r-sm); }
.listing-card-body { padding: 0.7rem 0 0; }
.listing-card-type { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.listing-card-ref-eyebrow { font-size: 0.95rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.listing-card-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 300; color: var(--ink); margin-bottom: 0.7rem; }
.listing-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem; margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--linen-dark); }
.listing-card-spec { display: flex; flex-direction: column; gap: 0.25rem; }
.listing-card-spec-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); }
.listing-card-spec-value { font-size: 0.9rem; color: var(--ink); }
.listing-card-cta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s, letter-spacing 0.25s; }
.listing-card-cta:hover { color: var(--gold-bright); border-color: var(--gold-bright); letter-spacing: 0.18em; }

/* ── SINGLE LISTING ── */
.single-hero { display: grid; grid-template-columns: 0.7fr 1fr; min-height: unset; height: calc(100vh - 80px); max-height: 800px; }
.single-gallery { position: relative; overflow: hidden; background: #ffffff; }
.single-gallery > img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.single-gallery .listing-card-badge { top: 1.5rem; left: 1.5rem; font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.gallery-slider { position: relative; width: 100%; height: 100%; }
.gallery-slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.gallery-slide { flex-shrink: 0; width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(250,247,242,0.92); border: 1px solid var(--linen-dark);
  color: var(--ink); font-size: 1.1rem; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: background 0.2s;
}
.gallery-prev { left: 1.2rem; }
.gallery-next { right: 1.2rem; }
.gallery-prev:hover, .gallery-next:hover { background: var(--cream); }
.gallery-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--linen-dark); cursor: pointer; transition: background 0.2s; }
.gallery-dot.active { background: var(--gold); }
.gallery-count { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 0.82rem; color: var(--muted); background: rgba(250,247,242,0.88); padding: 0.35rem 0.8rem; border: 1px solid var(--linen-dark); }
.single-info { padding: 3rem 2rem; display: flex; flex-direction: column; justify-content: flex-start; background: var(--cream); overflow-y: auto; }
.single-type { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.single-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 300; color: var(--ink); line-height: 1.1; margin-bottom: 2rem; }
.single-desc { font-size: 1rem; line-height: 2; color: var(--muted); margin-bottom: 2.5rem; }
.single-specs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; margin-bottom: 2.5rem;
  border: 1px solid var(--linen-dark); border-radius: var(--r-md);
}
.single-spec-item {
  padding: 1.2rem 1.5rem;
  border-right: 1px solid var(--linen-dark);
  border-bottom: 1px solid var(--linen-dark);
}
.single-spec-item:nth-child(3n) { border-right: none; }
.single-spec-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.single-spec-value { font-size: 0.95rem; color: var(--ink); font-weight: 300; }
.single-inquire {
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 3px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.25s, border-color 0.25s, letter-spacing 0.25s; align-self: flex-start;
}
.single-inquire:hover { color: var(--gold-bright); border-color: var(--gold-bright); letter-spacing: 0.2em; }
.related-section { padding: 6rem 0; background: var(--parchment); border-top: 1px solid var(--linen-dark); }

/* ── ATELIER PAGE ── */
.atelier-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; overflow: hidden; }
.atelier-hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 0; background: var(--parchment);
}
.atelier-hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--linen-dark); }
.atelier-hero-img { aspect-ratio: 1/1; overflow: hidden; background: var(--linen); }
.atelier-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.atelier-hero-img:hover img { transform: scale(1.05); }
.quote-band { background: var(--parchment); border-top: 1px solid var(--linen-dark); border-bottom: 1px solid var(--linen-dark); padding: 5rem 0; text-align: center; }
.quote-band blockquote { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 300; color: var(--ink); line-height: 1.45; max-width: 800px; margin: 0 auto; }
.quote-band em { font-style: italic; color: var(--gold); }
.quote-band cite { display: block; margin-top: 1.5rem; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.at-process { background: var(--ink); padding: 8rem 0; }
.at-process-label { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.at-process-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.5vw, 3.5rem); font-weight: 300; color: var(--cream); margin-bottom: 5rem; }
.at-process-title em { font-style: italic; color: var(--gold-bright); }
.at-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.at-step-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; color: #6a5028; line-height: 1; margin-bottom: 1.2rem; }
.at-step-rule { width: 30px; height: 1px; background: #6a5028; margin-bottom: 1.2rem; }
.at-step-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 300; color: var(--cream); margin-bottom: 0.8rem; }
.at-step-body { font-size: 0.92rem; line-height: 1.9; color: #c8bfb0; }
.at-gallery { padding: 7rem 0; background: var(--cream); }
.at-gallery-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.at-gallery-title { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300; color: var(--ink); }
.at-gallery-title em { font-style: italic; color: var(--gold); }
.at-gallery-sub { font-size: 0.92rem; color: var(--muted); max-width: 320px; text-align: right; line-height: 1.9; }
.at-tabs { display: flex; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.at-tab { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.55rem 1.3rem; border: 1px solid var(--linen-dark); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--font-sans); transition: all 0.2s; }
.at-tab:hover, .at-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.at-pieces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; }
.at-piece { background: var(--white); border: 1px solid var(--linen-dark); transition: box-shadow 0.3s, transform 0.3s; }
.at-piece:hover { box-shadow: 0 8px 28px rgba(30,26,20,0.1); transform: translateY(-3px); }
.at-piece-thumb { aspect-ratio: 1/1; overflow: hidden; background: #f8f6f2; position: relative; }
.at-piece-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.at-piece:hover .at-piece-thumb img { transform: scale(1.04); }
.at-piece-tag { position: absolute; top: 0.85rem; left: 0.85rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--cream); color: var(--gold); padding: 0.35rem 0.75rem; border: 1px solid var(--gold-pale); }
.at-piece-body { padding: 1.6rem 1.6rem 1.8rem; }
.at-piece-cat { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.at-piece-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 300; color: var(--ink); margin-bottom: 0.85rem; }
.at-piece-desc { font-size: 0.92rem; line-height: 1.9; color: var(--muted); margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--linen-dark); }
.at-piece-specs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.at-piece-spec-tag { font-size: 0.75rem; border: 1px solid var(--linen-dark); color: var(--muted); padding: 0.3rem 0.75rem; }
.at-piece-cta { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-pale); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s, letter-spacing 0.25s; }
.at-piece-cta:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.at-enquiry { background: var(--linen); padding: 8rem 0; }
.at-enq-label { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.at-enq-title { font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 1.5rem; }
.at-enq-title em { font-style: italic; color: var(--gold); }
.at-enq-body { font-size: 1rem; line-height: 2; color: var(--muted); margin-bottom: 2.5rem; }
.at-promises { display: flex; flex-direction: column; gap: 1.1rem; }
.at-promise { display: flex; align-items: flex-start; gap: 1rem; }
.at-promise-gem { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; margin-top: 6px; }
.at-promise-text { font-size: 0.92rem; line-height: 1.9; color: var(--muted); }
.at-form { display: flex; flex-direction: column; }
.at-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.at-field { display: flex; flex-direction: column; margin-bottom: 2rem; }
.at-field label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.65rem; }
.at-field input, .at-field select, .at-field textarea { background: transparent; border: none; border-bottom: 1px solid var(--linen-dark); outline: none; padding: 0.7rem 0; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); font-weight: 300; transition: border-color 0.2s; width: 100%; }
.at-field input:focus, .at-field select:focus, .at-field textarea:focus { border-color: var(--gold); }
.at-field input::placeholder, .at-field textarea::placeholder { color: var(--muted-light); }
.at-field textarea { resize: none; height: 100px; }
.at-selector-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.at-selector-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.at-selector-btn { font-size: 0.85rem; padding: 0.52rem 1.1rem; border: 1px solid var(--linen-dark); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--font-sans); transition: all 0.2s; }
.at-selector-btn:hover { border-color: var(--gold); color: var(--gold); }
.at-selector-btn.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.at-submit { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); background: var(--ink); border: none; padding: 1.2rem 3rem; cursor: pointer; font-family: var(--font-sans); transition: background 0.25s; align-self: flex-start; margin-top: 0.5rem; }
.at-submit:hover { background: var(--gold); }
.at-form-note { font-size: 0.85rem; color: var(--muted-light); margin-top: 1rem; }

/* ── ANIMATIONS ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --side-pad: 2.5vw; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
  .hero, .single-hero, .atelier-hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .philosophy, .newsletter, .at-enquiry { grid-template-columns: 1fr; gap: 3rem; }
  .watches-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .at-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .single-specs { grid-template-columns: 1fr 1fr; }
  .single-spec-item:nth-child(3n) { border-right: 1px solid var(--linen-dark); }
  .single-spec-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 680px) {
  :root { --side-pad: 5vw; }
  .archive-layout { grid-template-columns: 1fr !important; padding: 1rem !important; }
  .filter-sidebar { position: static !important; height: auto !important; border-right: none !important; border-bottom: 1px solid var(--linen-dark); padding-right: 0 !important; }
  .collections-grid, .watches-grid, .footer-grid { grid-template-columns: 1fr; }
  .at-steps, .at-form-row, .philosophy-stats, .single-specs { grid-template-columns: 1fr; }
  .single-spec-item { border-right: none; }
  .single-info { padding: 3rem var(--side-pad); }
}

/* ── COMMISSION MODAL ── */
.commission-modal {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(30,26,20,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 2rem;
}
.commission-modal.open { display: flex; }
.commission-modal-inner {
  background: var(--cream); max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 3rem;
  position: relative; border-radius: var(--r-lg);
}
.commission-modal-inner::-webkit-scrollbar { width: 3px; }
.commission-modal-inner::-webkit-scrollbar-thumb { background: var(--linen-dark); }
.commission-modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; font-size: 0.82rem;
  letter-spacing: 0.12em; color: var(--muted); cursor: pointer;
  font-family: var(--font-sans);
}
.commission-modal-close:hover { color: var(--gold); }
.commission-modal-title { font-family: var(--font-serif); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 300; color: var(--ink); margin-bottom: 0.5rem; }
.commission-modal-title em { font-style: italic; color: var(--gold); }
.commission-modal-sub { font-size: 0.9rem; color: var(--muted); line-height: 1.9; margin-bottom: 2rem; }
.commission-form { display: flex; flex-direction: column; gap: 0; }
.commission-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.commission-field { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.commission-field label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.commission-field input,
.commission-field select,
.commission-field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--linen-dark);
  outline: none; padding: 0.65rem 0; font-family: var(--font-sans);
  font-size: 0.95rem; color: var(--ink); font-weight: 300;
  transition: border-color 0.2s; width: 100%;
}
.commission-field input:focus,
.commission-field select:focus,
.commission-field textarea:focus { border-color: var(--gold); }
.commission-field input::placeholder,
.commission-field textarea::placeholder { color: var(--muted-light); }
.commission-field textarea { resize: none; }
.commission-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.commission-chip {
  font-size: 0.78rem; padding: 0.45rem 1rem; border: 1px solid var(--linen-dark);
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-sans); transition: all 0.2s;
}
.commission-chip:hover { border-color: var(--gold); color: var(--gold); }
.commission-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.commission-footer { margin-top: 0.5rem; }
.commission-submit {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); background: var(--ink); border: none;
  padding: 1.1rem 3rem; cursor: pointer; font-family: var(--font-sans);
  transition: background 0.25s; border-radius: var(--r-md);
}
.commission-submit:hover { background: var(--gold); }
.commission-note { font-size: 0.78rem; color: var(--muted-light); margin-top: 0.8rem; }
@media (max-width: 680px) {
  .commission-row { grid-template-columns: 1fr; }
  .commission-modal-inner { padding: 2rem 1.5rem; }
}

/* ── NIVODA INTEGRATION ── */

/* Number inputs in filter sidebar */
.nivoda-num-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15); outline: none; border-radius: 0;
  padding: 0.55rem 0; font-family: var(--font-sans);
  font-size: 0.85rem; color: var(--cream); font-weight: 300;
  transition: border-color 0.2s; -moz-appearance: textfield;
}
.nivoda-num-input::-webkit-outer-spin-button,
.nivoda-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nivoda-num-input:focus { border-color: var(--gold); }
.nivoda-num-input::placeholder { color: rgba(255,255,255,0.35); }

/* Skeleton loading cards */
@keyframes nivodaShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.nivoda-skeleton { pointer-events: none; }
.nivoda-skeleton-thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--linen) 25%, var(--parchment) 50%, var(--linen) 75%);
  background-size: 600px 100%;
  animation: nivodaShimmer 1.4s infinite linear;
}
.nivoda-skeleton-body { padding: 1.6rem; }
.nivoda-skeleton-line {
  height: 0.75rem; border-radius: 2px; margin-bottom: 0.6rem;
  background: linear-gradient(90deg, var(--linen) 25%, var(--parchment) 50%, var(--linen) 75%);
  background-size: 600px 100%;
  animation: nivodaShimmer 1.4s infinite linear;
}

/* No-image placeholder */
.nivoda-no-img {
  width: 100%; aspect-ratio: 1/1; background: var(--linen);
  display: flex; align-items: center; justify-content: center;
}
.nivoda-no-img span {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-light); text-align: center; line-height: 1.8;
}

/* Empty / error state message */
.nivoda-state-msg {
  grid-column: 1 / -1; text-align: center;
  padding: 5rem var(--side-pad); color: var(--muted);
  font-size: 0.9rem; line-height: 1.9;
}

/* Pagination */
.nivoda-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; padding: 3rem var(--side-pad); grid-column: 1 / -1;
  flex-wrap: wrap;
}
#page-indicator {
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}

/* Close button inside right column */
.jl-close-btn {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 0.78rem;
  letter-spacing: 0.12em; color: var(--muted); cursor: pointer;
  font-family: var(--font-sans); z-index: 10;
}
.jl-close-btn:hover { color: var(--gold); }

/* ── Stone / Jewelry detail modal ── */
.stone-modal-inner {
  background: var(--cream);
  position: relative;
  max-width: 1160px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-sizing: border-box;
}
.stone-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 86vh;
  max-height: 800px;
}

/* ── Left column: two equal halves using absolute positioning ── */
.stone-modal-media {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}

/* Top 50%: featured image */
.jl-main-img-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  background: var(--linen);
}
.jl-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s ease;
  transform-origin: 50% 50%;
}
.jl-main-img-wrap img.zoomed { transform: scale(2.2); cursor: zoom-out; }

/* Bottom 50%: gallery slider */
.jl-gallery-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: var(--parchment);
  border-top: 1px solid var(--linen-dark);
  overflow: hidden;
}
.jl-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jl-gallery-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em;
}
/* Prev / Next arrows */
.jl-gallery-prev,
.jl-gallery-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(30,26,20,0.45);
  color: var(--cream);
  border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  border-radius: 2px;
  z-index: 2;
}
.jl-gallery-prev { left: 8px; }
.jl-gallery-next { right: 8px; }
.jl-gallery-prev:hover,
.jl-gallery-next:hover { background: rgba(154,117,53,0.85); }
.jl-gallery-count {
  position: absolute;
  bottom: 6px; right: 10px;
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em;
}

/* ── Right column — scrolls independently ── */
.stone-modal-info {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}
.stone-modal-info::-webkit-scrollbar { width: 3px; }
.stone-modal-info::-webkit-scrollbar-thumb { background: var(--linen-dark); }
.stone-modal-back {
  width: 100%; background: none; border: 1px solid var(--linen-dark);
  padding: 1.1rem; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: var(--font-sans);
  cursor: pointer; color: var(--muted); transition: border-color 0.2s, color 0.2s;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md);
}
.stone-modal-back:hover { border-color: var(--gold); color: var(--gold); }

/* Responsive adjustments */
@media (max-width: 860px) {
  .stone-modal-grid { grid-template-columns: 1fr; }
  .stone-modal-inner { max-width: 520px; }
  .stone-modal-info { max-height: none; padding: 2rem 1.5rem; }
}
@media (max-width: 680px) {
  .nivoda-pagination { gap: 1rem; padding: 2rem var(--side-pad); }
}

/* ── FEATURED DIAMONDS (homepage) ── */
.fd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .fd-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .fd-grid { grid-template-columns: 1fr; }
}
.fd-card { display: block; background: var(--white); border: 1px solid rgba(184,207,224,0.5); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; }
.fd-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.fd-card-img { aspect-ratio: 1/1; overflow: hidden; background: var(--linen); position: relative; }
.fd-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.fd-card:hover .fd-card-img img { transform: scale(1.04); }
.fd-card-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fd-card-no-img span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); text-align: center; line-height: 1.8; }
.fd-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.fd-card-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 300; color: var(--ink); margin-bottom: 1rem; }
@media (max-width: 1100px) {
  .fd-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 680px) {
  .fd-grid { grid-template-columns: 1fr; }
}

/* ── WATCH MODAL SLIDER ── */
.wm-slider { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--parchment); }
.wm-slides { display: flex; height: 100%; transition: transform 0.4s ease; }
.wm-slide { min-width: 100%; height: 100%; }
.wm-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(9,28,51,0.5); color: var(--cream); border: none; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 2; min-height: unset; }
.wm-nav:hover { background: rgba(9,28,51,0.85); }
.wm-prev { left: 0.8rem; }
.wm-next { right: 0.8rem; }
.wm-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4rem; z-index: 2; }
.wm-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(240,244,248,0.4); cursor: pointer; transition: background 0.2s; }
.wm-dot.active { background: var(--cream); }

/* ═══════════════════════════════════════════════════════════════
   DIAMONDS TOP FILTER BAR
═══════════════════════════════════════════════════════════════ */
.diamonds-topbar {
  background: var(--white);
  padding: 2rem 0 1rem;
  position: static;
}

/* Origin toggle */
.dtb-origin {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 860px;
}
.dtb-origin-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 2.4rem;
  border: 1.5px solid var(--linen-dark);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.dtb-origin-btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); border-right: none; }
.dtb-origin-btn:last-child  { border-radius: 0 var(--r-md) var(--r-md) 0; }
.dtb-origin-btn.active { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* Shared label */
.dtb-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
  display: block;
}

/* Shape icons */
.dtb-shapes-wrap { margin-bottom: 1.2rem; display: flex; flex-direction: column; align-items: center; }
.dtb-shapes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dtb-shape-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1.5px solid var(--linen-dark);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.7rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 52px;
}
.dtb-shape-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  transition: fill 0.2s;
}
.dtb-shape-btn span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.dtb-shape-btn:hover { border-color: var(--gold-bright); }
.dtb-shape-btn:hover svg { fill: var(--gold-bright); }
.dtb-shape-btn:hover span { color: var(--gold-bright); }
.dtb-shape-btn.active { border-color: var(--gold); background: rgba(42,111,168,0.1); }
.dtb-shape-btn.active svg { fill: var(--gold-bright); }
.dtb-shape-btn.active span { color: var(--gold-bright); }

/* Sliders row */
.dtb-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 3rem;
  align-items: start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--linen-dark);
}
.dtb-slider-group { }
.dtb-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.dtb-slider-val {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 400;
  font-family: var(--font-serif);
}

/* Dual-range track */
.dtb-range-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.dtb-range-track {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--linen-dark);
  border-radius: 2px;
  pointer-events: none;
}
.dtb-range-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--gold);
  border-radius: 2px;
}
.dtb-range {
  position: absolute;
  width: 100%;
  height: 3px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}
.dtb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.15s;
}
.dtb-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.dtb-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  cursor: pointer;
  pointer-events: all;
}
.dtb-range-min { z-index: 3; }
.dtb-range-max { z-index: 4; }

/* Step labels under slider */
.dtb-step-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}
.dtb-step-labels span {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  text-transform: uppercase;
}

/* Bottom bar */
.dtb-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0 0.8rem;
  max-width: 860px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.dtb-advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--linen-dark);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.dtb-advanced-btn svg { stroke: var(--muted-light); flex-shrink:0; }
.dtb-advanced-btn:hover, .dtb-advanced-btn.active { border-color: var(--gold); color: var(--gold); }
.dtb-advanced-btn.active svg { stroke: var(--gold); }
.dtb-adv-count {
  background: var(--gold);
  color: var(--cream);
  font-size: 0.5rem;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.04em;
}
.dtb-clear-btn {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s;
  padding: 0;
}
.dtb-clear-btn:hover { color: var(--gold); }

/* Advanced drawer */
.dtb-advanced-drawer {
  background: var(--white);
  border-bottom: 1px solid var(--linen-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.dtb-advanced-drawer.open { max-height: 200px; }
.dtb-advanced-inner {
  display: flex;
  gap: 3rem;
  padding: 1.2rem 2rem;
  max-width: var(--content-w);
  margin: 0 auto;
}
.dtb-adv-group { }
.dtb-adv-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.dtb-chip {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--linen-dark);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  transition: all 0.2s;
  min-height: unset;
}
.dtb-chip:hover { border-color: var(--gold); color: var(--gold); }
.dtb-chip.active { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* Full-width listing area */
.dtb-listing-wrap {
  padding: 0.75rem 0 4rem !important;
  background: var(--white);
  min-height: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .dtb-sliders { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .listing-area .listing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 580px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .listing-area .listing-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dtb-shapes { gap: 0.35rem; }
  .dtb-shape-btn { min-width: 44px; padding: 0.45rem 0.5rem 0.35rem; }
  .dtb-sliders { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .dtb-advanced-inner { flex-wrap: wrap; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .dtb-sliders { grid-template-columns: 1fr; }
}

/* ── DIAMONDS FILTER — MOBILE STACKED & COLLAPSIBLE ── */

/* Desktop: header row elements lay out normally inline, body always visible */
.dtb-bar-group-header {
  display: contents; /* renders children as if they were siblings of the parent — no layout impact */
}
.dtb-bar-group-header-left { display: contents; }
.dtb-bar-chevron { display: none; }   /* hidden on desktop */
.dtb-bar-group-body { display: contents; } /* always visible on desktop */

@media (max-width: 680px) {

  /* Bar: stack each filter group vertically */
  .dtb-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Each bar-group becomes a collapsible row */
  .dtb-bar-group {
    border-bottom: 1px solid var(--linen-dark);
    padding: 0;
  }

  /* Dividers are hidden — borders on groups replace them */
  .dtb-bar-divider { display: none; }

  /* Header row: tappable label + value + chevron */
  .dtb-bar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .dtb-bar-group-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .dtb-bar-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
  }
  .dtb-bar-val {
    font-size: 0.82rem;
    color: var(--gold);
    font-family: var(--font-serif);
  }
  .dtb-bar-chevron {
    display: block;
    width: 14px;
    height: 14px;
    stroke: var(--muted);
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .dtb-bar-group.open .dtb-bar-chevron { transform: rotate(180deg); }

  /* Body: hidden by default, shown when open */
  .dtb-bar-group-body {
    display: none;
    padding-bottom: 1rem;
  }
  .dtb-bar-group.open .dtb-bar-group-body { display: block; }

  /* Shape buttons: allow wrapping */
  .dtb-shapes-wrap { align-items: flex-start; }
  .dtb-shapes { flex-wrap: wrap; justify-content: flex-start; }
  .dtb-shape-btn { min-width: 52px; }

  /* Advanced filter drawer: stack groups */
  .dtb-advanced-inner { flex-direction: column; gap: 1.2rem; }
  .dtb-adv-group { width: 100%; }

  /* Bottom bar: stack buttons */
  .dtb-bottom { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .dtb-advanced-btn,
  .dtb-clear-btn { width: 100%; justify-content: center; }
}

/* ── COLLAPSIBLE FILTER GROUPS (timepiece archive) ── */
.filter-group--collapsible { }
.filter-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  min-height: unset;
}
.filter-group-toggle .filter-group-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}
.filter-group-toggle:hover .filter-group-label { color: var(--ink); }
.filter-group-arrow {
  stroke: var(--muted-light);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.filter-chips--collapsed {
  display: none;
}

/* ── LISTING CARDS ── */
.listing-area .listing-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* ══════════════════════════════════════════════════════════
   CENTRE ALL SECTION CONTENT — constrains inner content
   to --content-w so backgrounds remain full-width
══════════════════════════════════════════════════════════ */

/* Hero — left panel gets max-width via padding */
.hero-left {
  padding-left: max(2rem, calc((100vw - var(--content-w)) / 2));
  padding-right: min(5vw, calc((100vw - var(--content-w)) / 2 + 4rem));
}

/* All .section children constrained */
.section > * {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.section > .section-header,
.section > .collections-grid,
.section > .featured-diamonds-grid,
.section > .watches-grid,
.section > .fd-grid,
.section > p,
.section > h2,
.section > div {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Philosophy inner */
.philosophy-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
@media (max-width: 768px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-left: 5vw;
    padding-right: 5vw;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
}

/* Newsletter inner */
.newsletter-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
@media (max-width: 768px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-left: 5vw;
    padding-right: 5vw;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
}

/* Footer inner */
.site-footer > * {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
}
.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Archive header inner */
.archive-header-content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Diamonds topbar inner */
.diamonds-topbar-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Diamonds listing inner */
.dtb-listing-wrap > * {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Related section */
.related-section > * {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* at-* pages */
.at-intro-inner,
.at-process-inner,
.at-gallery-inner,
.at-enquiry-inner,
.quote-band > * {
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.at-enquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7rem;
  align-items: start;
}



/* ═══════════════════════════════════════════════════════════
   DEFINITIVE PAGE WIDTH — overrides all previous padding rules
   Sections keep full-width backgrounds; this centres their content
═══════════════════════════════════════════════════════════ */
:root { --content-w: 1100px; }

/* Every major full-bleed section: strip horizontal padding,
   let the .page-center inner handle it */
.hero-left,
.section,
.philosophy,
.newsletter,
.site-footer,
.archive-header-content,
.archive-header.has-hero .archive-header-content,
.related-section > .related-header,
.related-section > .related-grid,
.at-intro, .at-process, .at-gallery, .at-enquiry, .quote-band,
.dtb-listing-wrap,
.diamonds-topbar-inner,
.dtb-advanced-inner {
  box-sizing: border-box;
}

/* The single source of truth for page width */
.page-center {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3rem) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Apply page-center behaviour to every section's direct content wrapper */
.section > .section-header,
.section > .collections-grid,
.section > .featured-diamonds-grid,
.section > .fd-grid,
.section > .watches-grid,
.section > .related-grid {
  max-width: 1650px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
}

/* Hero left: align left edge with all other content */
.hero-left {
  padding-left: clamp(1.5rem, calc((100vw - 1650px) / 2 + 4rem), 10vw) !important;
  padding-right: 4rem !important;
}

/* Archive layout (timepiece page): constrain and centre */
.archive-layout {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3rem) !important;
  box-sizing: border-box;
}

/* listing-area border handled in main rule above */



/* Diamonds topbar and listing: constrain inner content */
.diamonds-topbar-inner {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3rem) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.dtb-advanced-inner {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3rem) !important;
}

.dtb-listing-wrap .inner {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 4vw, 3rem) !important;
  padding-right: clamp(1.5rem, 4vw, 3rem) !important;
}

/* Philosophy and newsletter: already have .philosophy-inner / .newsletter-inner */
.philosophy-inner,
.newsletter-inner {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
}

/* Site footer inner */
.footer-inner {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
}

/* Archive header */
.archive-header-content {
  max-width: 1650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.5rem, 5vw, 4rem) !important;
  padding-right: clamp(1.5rem, 5vw, 4rem) !important;
}

/* Marquee stays full-width — no change needed */


/* ── WATCH LISTING CARDS — minimal: image + eyebrow + title only ── */
.listing-card-specs,
.listing-card-cta,
.listing-card-spec,
.listing-card .listing-card-body > div:last-child,
.listing-card > .listing-card-body > div[style*="display:flex"] {
  display: none !important;
}
.listing-card-name {
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}
.listing-card-type {
  font-size: 0.62rem !important;
  margin-bottom: 0.3rem !important;
}
.listing-card-ref-eyebrow {
  font-size: 0.62rem !important;
}

/* Page background white on timepiece archive */
body.post-type-archive-md_timepiece {
  background: var(--white);
}

/* Price slider spans both columns on row 3 */
.dtb-slider-group--wide {
  grid-column: 1 / -1;
  max-width: 50%;
}
@media (max-width: 768px) {
  .dtb-slider-group--wide { max-width: 100%; }
}

/* ── UNIFIED FILTER GRID (diamonds page) ── */
.dtb-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 5rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--linen-dark);
  border-bottom: 1px solid var(--linen-dark);
  max-width: 860px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.dtb-filter-cell {
  display: flex;
  flex-direction: column;
}
/* Shape cell — shapes wrap naturally */
.dtb-filter-cell .dtb-shapes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
}
/* Slider cells — range fills the cell width (capped by grid) */
.dtb-filter-cell .dtb-range-wrap {
  width: 100%;
}
@media (max-width: 768px) {
  .dtb-filter-grid { grid-template-columns: 1fr; max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   RARE CARAT STYLE FILTER BAR
═══════════════════════════════════════════════════ */

/* Topbar: white, generous padding */
.diamonds-topbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--linen-dark) !important;
  padding: 1.2rem 0 0 !important;
  position: static !important;
}

/* Shape row: centered, icons spaced out */
.dtb-shapes-row {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--linen-dark);
  margin-bottom: 1rem;
  width: 100%;
}

.dtb-shapes-row .dtb-shape-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  padding: 0.5rem 0.9rem 0.4rem;
  cursor: pointer;
  transition: background 0.15s;
  min-width: 56px;
}
.dtb-shapes-row .dtb-shape-btn:hover { background: var(--parchment); }
.dtb-shapes-row .dtb-shape-btn.active { background: var(--linen); }
.dtb-shapes-row .dtb-shape-btn svg {
  width: 26px; height: 26px;
  fill: var(--ink);
  transition: fill 0.15s;
}
.dtb-shapes-row .dtb-shape-btn span {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dtb-shapes-row .dtb-shape-btn.active svg { fill: var(--gold); }
.dtb-shapes-row .dtb-shape-btn.active span { color: var(--gold); }

/* Compact horizontal filter bar */
.dtb-bar {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding-bottom: 1rem;
}

.dtb-bar-divider {
  width: 1px;
  background: var(--linen-dark);
  align-self: stretch;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.dtb-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0 0.75rem;
}
.dtb-bar-group:first-child { padding-left: 0; }
.dtb-bar-group:last-child  { padding-right: 0; }

.dtb-bar-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-sans);
}

.dtb-bar-val {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 300;
  white-space: nowrap;
}

/* Range wrap inside bar groups fills the group width */
.dtb-bar-group .dtb-range-wrap {
  width: 100%;
}

/* Step labels inside bar — smaller */
.dtb-bar-group .dtb-step-labels {
  display: flex;
  justify-content: space-between;
}
.dtb-bar-group .dtb-step-labels span {
  font-size: 0.42rem;
  letter-spacing: 0.03em;
  color: var(--muted-light);
  text-transform: uppercase;
}

/* dtb-bottom stays centred, borderless */
.dtb-bottom {
  border-top: none !important;
  padding: 0.4rem 0 0.6rem !important;
  justify-content: center !important;
  gap: 2rem !important;
}

/* Hide old filter grid and shapes-wrap if they still exist */
.dtb-filter-grid, .dtb-shapes-wrap, .dtb-sliders { display: none !important; }


body.post-type-archive-md_diamond { background: var(--white); }

/* Diamonds page heading */
.dtb-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

/* ── JEWELRY VARIATION SELECTORS ── */
.jl-options { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 1.4rem; }
.jl-option-group {}
.jl-option-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.jl-option-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jl-chip {
  padding: 0.45rem 1rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 300;
  border: 1px solid var(--linen-dark); background: transparent; color: var(--ink);
  cursor: pointer; letter-spacing: 0.06em; transition: all 0.18s;
  border-radius: var(--r-md);
}
.jl-chip:hover { border-color: var(--gold); color: var(--gold); }
.jl-chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); border-radius: var(--r-md); }
.jl-price { transition: opacity 0.2s; }


/* ═══════════════════════════════════════════════════════════════
   DEFINITIVE MOBILE FIX — single authoritative block
   Replaces all previous mobile patches
   ═══════════════════════════════════════════════════════════════ */

/* 1. Lock the document width — overflow-x:clip is stronger than hidden
      and doesn't create a scroll context that breaks sticky elements */
html {
  overflow-x: clip;
  max-width: 100%;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

/* 2. Marquee containment — the track is intentionally wider than the
      viewport. The wrap MUST clip it at the boundary. */
.marquee-wrap {
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* ── 768px and below ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* -- Hero ------------------------------------------------ */
  .hero,
  .single-hero,
  .atelier-hero {
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-right { display: none !important; }
  .hero-left {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 6rem 5vw 4rem !important;
    overflow: hidden !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  .hero-subtitle {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .hero-buttons {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  .btn-primary, .btn-ghost {
    box-sizing: border-box !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  /* -- Sections -------------------------------------------- */
  .section { padding: 4rem 0 !important; }
  .section > *,
  .page-center {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .section-link {
    white-space: nowrap;
  }

  /* -- Collections grid ------------------------------------ */
  .collections-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* -- Featured diamonds / watches grid -------------------- */
  .fd-grid,
  .watches-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* -- Philosophy ------------------------------------------ */
  .philosophy { padding: 4rem 0 !important; }
  .philosophy-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .philosophy-quote {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .philosophy-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  /* -- Newsletter ------------------------------------------ */
  .newsletter { padding: 4rem 0 !important; }
  .newsletter-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .newsletter-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* -- Footer ---------------------------------------------- */
  .site-footer {
    overflow: hidden !important;
    max-width: 100% !important;
  }
  .footer-inner {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }

  /* -- Archive header -------------------------------------- */
  .archive-header {
    overflow: hidden !important;
    max-width: 100% !important;
  }
  .archive-header-content {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .archive-header-content h1,
  .archive-header-content p {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* -- Archive layout (timepiece/jewelry sidebar) ---------- */
  .archive-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .filter-sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-right: none !important;
    border-bottom: 1px solid var(--linen-dark) !important;
    padding: 1.25rem 5vw !important;
    box-sizing: border-box !important;
  }
  .filter-chips {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }
  .filter-chip {
    font-size: 0.72rem !important;
    padding: 0.5rem 0.85rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .filter-range {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .listing-area {
    padding: 1.25rem 5vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .listing-toolbar {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .listing-grid,
  .listing-area .listing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .listing-card-name {
    font-size: 0.85rem !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* -- Diamond filter bar ---------------------------------- */
  .dtb-bar {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dtb-bar-divider { display: none !important; }
  .dtb-bar-group {
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--linen-dark) !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .dtb-bar-group-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.85rem 0 !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dtb-bar-group-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 !important;
  }
  .dtb-bar-label { white-space: nowrap !important; flex-shrink: 0 !important; }
  .dtb-bar-val {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }
  .dtb-bar-chevron { display: block !important; flex-shrink: 0 !important; }
  .dtb-bar-group-body {
    display: none !important;
    padding-bottom: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dtb-bar-group.open .dtb-bar-group-body { display: block !important; }
  .dtb-bar-group.open .dtb-bar-chevron { transform: rotate(180deg) !important; }
  .dtb-range-wrap,
  .dtb-bar-group .dtb-range-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dtb-advanced-inner {
    flex-direction: column !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .dtb-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }
  .dtb-listing-wrap,
  .dtb-listing-wrap .inner {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .diamonds-topbar-inner {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* -- Single product pages -------------------------------- */
  .single-info {
    padding: 2rem 5vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .single-specs {
    grid-template-columns: 1fr 1fr !important;
  }
  .single-spec-item {
    border-right: none !important;
    overflow: hidden !important;
  }
  dt, dd {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* -- Atelier page ---------------------------------------- */
  .at-enquiry-inner,
  .at-intro-inner,
  .at-process-inner,
  .at-gallery-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .at-form-row { grid-template-columns: 1fr !important; }
  .at-steps { grid-template-columns: 1fr !important; }

  /* -- Commission modal ------------------------------------ */
  .commission-modal { padding: 0 !important; }
  .commission-modal-inner {
    padding: 2rem 5vw !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }
  .commission-row { grid-template-columns: 1fr !important; }

  /* -- Modals (stone, watch) ------------------------------- */
  .stone-modal-grid { grid-template-columns: 1fr !important; }
  .stone-modal-inner { max-width: 100% !important; border-radius: 0 !important; }

  /* -- Jewelry variation chips ----------------------------- */
  .jl-option-chips { flex-wrap: wrap !important; gap: 0.4rem !important; }
  .jl-chip {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.9rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* -- Global safety net:
        anything using the 1650px wide max-width must not
        exceed the screen on mobile */
  [style*="max-width: 1650px"],
  [style*="max-width:1650px"] {
    max-width: 100% !important;
  }

  /* -- Images and embeds: never wider than their container - */
  img, video, iframe, embed, object, svg {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* -- Tables: scroll instead of blowing out --------------- */
  table {
    display: block !important;
    overflow-x: auto !important;
    max-width: 100% !important;
  }

  /* -- page.php bare main padding is huge on mobile --------- */
  main {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* ── 480px and below ─────────────────────────────────────── */
@media (max-width: 480px) {
  .listing-grid,
  .listing-area .listing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .collections-grid {
    grid-template-columns: 1fr !important;
  }
  .fd-grid,
  .watches-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .dtb-sliders {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   END DEFINITIVE MOBILE FIX
   ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════
   JEWELRY ARCHIVE: WHITE BACKGROUND + TOP FILTER BAR
   Keeps the existing card/listing styling while moving the jewelry filters
   above the product listings.
═══════════════════════════════════════════════════ */
body:has(.jewelry-archive-page),
body:has(.jewelry-archive-page) .site-main,
body:has(.jewelry-archive-page) main,
.jewelry-archive-page,
.jewelry-archive-page .archive-layout,
.jewelry-archive-page .filter-sidebar,
.jewelry-archive-page .listing-area,
.jewelry-archive-page .listing-grid,
.jewelry-archive-page .listing-card,
.jewelry-archive-page .listing-card-thumb {
  background: #ffffff !important;
}

.jewelry-archive-page .archive-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: auto !important;
  max-width: 1650px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 2rem !important;
  padding-bottom: 4rem !important;
}

.jewelry-archive-page .filter-sidebar {
  position: static !important;
  top: auto !important;
  height: auto !important;
  overflow: visible !important;
  width: 100% !important;
  border-right: none !important;
  border-bottom: 1px solid var(--linen-dark) !important;
  padding: 0 0 1.3rem 0 !important;
  margin: 0 0 1.25rem 0 !important;
}

.jewelry-archive-page .filter-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 0 0.75rem 0 !important;
}

.jewelry-archive-page .filter-top-label {
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.jewelry-archive-page .filter-sidebar {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1.25rem 2.25rem !important;
  flex-wrap: wrap !important;
}

.jewelry-archive-page .filter-sidebar .filter-top {
  flex: 0 0 100% !important;
}

.jewelry-archive-page .filter-group {
  margin: 0 !important;
  min-width: 170px !important;
}

.jewelry-archive-page .filter-group-toggle {
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.jewelry-archive-page .filter-group-label {
  font-size: 0.76rem !important;
  letter-spacing: 0.18em !important;
  color: var(--ink) !important;
  margin-bottom: 0.55rem !important;
}

.jewelry-archive-page .filter-divider {
  display: none !important;
}

.jewelry-archive-page .filter-chips {
  display: flex !important;
  gap: 0.4rem !important;
  flex-wrap: wrap !important;
}

.jewelry-archive-page .listing-area {
  padding: 0 !important;
  width: 100% !important;
}

.jewelry-archive-page .listing-toolbar {
  margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
  .jewelry-archive-page .archive-layout {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .jewelry-archive-page .filter-sidebar {
    gap: 1rem !important;
  }
  .jewelry-archive-page .filter-group {
    min-width: 100% !important;
  }
}



/* Jewelry archive refinements: no divider lines, no refine header, collapsed filters */
.jewelry-archive-page .filter-sidebar {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 1.5rem !important;
}
.jewelry-archive-page .filter-top {
  display: none !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.jewelry-archive-page .listing-toolbar {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.jewelry-archive-page .filter-chips.filter-chips--collapsed {
  display: none !important;
}
.jewelry-archive-page .filter-group-toggle[aria-expanded="false"] .filter-group-arrow {
  transform: none !important;
}
.jewelry-archive-page .filter-group-toggle[aria-expanded="true"] .filter-group-arrow {
  transform: rotate(180deg) !important;
}

/* WooCommerce live-feed cart bridge buttons */
.commission-submit[disabled],
.btn-ghost[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.btn-ghost {
  border: 1px solid var(--linen-dark);
  background: #fff;
  color: var(--ink);
  padding: 0.95rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  transition: all .2s ease;
}

.btn-ghost:hover {
  border-color: var(--gold-pale);
  color: var(--gold);
}

/* ── Maison Diamant Cart + Wishlist Enhancements ── */
body, .site, .site-main, .woocommerce, .woocommerce-page { background:#fff; }
.nav-icons { display:flex; align-items:center; gap:0.75rem; }
.nav-icon-link { position:relative; width:42px; height:42px; min-height:42px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(184,207,224,0.8); border-radius:999px; color:var(--ink); background:#fff; transition:background .25s,color .25s,border-color .25s,transform .25s; }
.nav-icon-link:hover { background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-1px); }
.nav-icon-link svg { width:19px; height:19px; stroke:currentColor; fill:none; }
.nav-icon-count { position:absolute; top:-7px; right:-7px; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:var(--gold); color:#fff; font-size:10px; line-height:19px; text-align:center; letter-spacing:0; font-family:var(--font-sans); }
.md-mobile-icons { display:flex; gap:1rem; align-items:center; justify-content:center; }
.md-mobile-icons .nav-icon-link { width:52px; height:52px; min-height:52px; }
.md-wishlist-btn { width:100%; justify-content:center; gap:.65rem; border:1px solid var(--linen-dark); background:#fff; color:var(--ink); border-radius:var(--r-md); padding:1rem 1.2rem; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; font-family:var(--font-sans); cursor:pointer; transition:background .25s,color .25s,border-color .25s; }
.md-wishlist-btn svg { width:17px; height:17px; stroke:currentColor; fill:none; }
.md-wishlist-btn.is-saved, .md-wishlist-btn:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.md-wishlist-card-action { margin-top:.75rem; width:100%; }
.md-wishlist-page { background:#fff; min-height:100vh; padding:135px var(--side-pad) 80px; }
.md-wishlist-shell { max-width:1180px; margin:0 auto; }
.md-wishlist-header { text-align:center; margin-bottom:3rem; }
.md-wishlist-kicker { font-size:.78rem; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-bottom:.9rem; }
.md-wishlist-title { font-family:var(--font-serif); font-size:clamp(2.4rem,4.5vw,4.8rem); font-weight:300; color:var(--ink); line-height:1.05; }
.md-wishlist-sub { max-width:620px; margin:1rem auto 0; color:var(--muted); line-height:1.9; }
.md-wishlist-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.5rem; }
.md-wishlist-card { background:#fff; border:1px solid rgba(184,207,224,.65); border-radius:18px; box-shadow:var(--shadow-sm); overflow:hidden; }
.md-wishlist-img { aspect-ratio:1/1; background:var(--parchment); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.14em; }
.md-wishlist-img img { width:100%; height:100%; object-fit:cover; }
.md-wishlist-body { padding:1.25rem; }
.md-wishlist-type { font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:.5rem; }
.md-wishlist-name { font-family:var(--font-serif); font-size:1.35rem; font-weight:300; color:var(--ink); line-height:1.2; margin-bottom:.7rem; }
.md-wishlist-price { font-family:var(--font-serif); font-size:1.25rem; color:var(--gold); margin-bottom:1rem; }
.md-wishlist-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.md-wishlist-actions button, .md-wishlist-actions a { border:1px solid var(--linen-dark); border-radius:10px; background:#fff; color:var(--ink); padding:.8rem 1rem; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; transition:all .25s; }
.md-wishlist-actions button:hover, .md-wishlist-actions a:hover { background:var(--ink); color:#fff; border-color:var(--ink); }
.md-wishlist-empty { text-align:center; padding:4rem 2rem; border:1px solid rgba(184,207,224,.65); border-radius:22px; background:#fff; box-shadow:var(--shadow-sm); }
.md-wishlist-empty h2 { font-family:var(--font-serif); font-weight:300; font-size:2rem; margin-bottom:.75rem; }
.md-wishlist-empty p { color:var(--muted); margin-bottom:1.5rem; }
.woocommerce-cart, .woocommerce-checkout { background:#fff !important; }
.woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-cart main, .woocommerce-checkout main { background:#fff !important; }
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { max-width:1120px; margin:0 auto; padding:135px var(--side-pad) 80px; background:#fff !important; }
.woocommerce-cart .woocommerce-cart-form, .woocommerce-cart .cart-collaterals, .woocommerce-checkout form.checkout { background:#fff; border:1px solid rgba(184,207,224,.65); border-radius:22px; box-shadow:var(--shadow-sm); padding:1.5rem; }
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table { border:0; border-collapse:separate; border-spacing:0; background:#fff; }
.woocommerce-cart table.shop_table th, .woocommerce-checkout table.shop_table th { font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:400; }
.woocommerce-cart table.shop_table td, .woocommerce-checkout table.shop_table td { border-top:1px solid rgba(184,207,224,.55); color:var(--ink); }
.woocommerce-cart .product-thumbnail img { width:92px; border-radius:14px; background:var(--parchment); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .checkout-button { background:var(--ink) !important; color:#fff !important; border-radius:12px !important; padding:1rem 1.4rem !important; letter-spacing:.12em; text-transform:uppercase; font-size:.78rem !important; font-weight:400 !important; transition:background .25s, transform .25s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce .checkout-button:hover { background:var(--gold) !important; transform:translateY(-1px); }
.woocommerce-cart .cart_totals h2 { font-family:var(--font-serif); font-size:2rem; font-weight:300; color:var(--ink); }
.woocommerce-cart .cart_totals { background:#fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { max-width:1120px; margin-left:auto; margin-right:auto; border-top-color:var(--gold); background:#fff; box-shadow:var(--shadow-sm); }
@media (max-width: 900px) { .md-wishlist-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } .nav-right { gap:1.2rem; } .nav-links { gap:1.25rem; } }
@media (max-width: 768px) { .nav-icons { display:none; } .md-wishlist-grid { grid-template-columns:1fr; } .woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { padding-top:110px; } }

/* Homepage hero background video option */
.hero.has-background-video {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  overflow: hidden;
  background: #050505;
}
.hero.has-background-video .hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero.has-background-video .hero-background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.32) 48%, rgba(0,0,0,.18));
  z-index: 1;
}
.hero.has-background-video .hero-left {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  min-height: auto;
  background: transparent;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.5rem, 7vw, 7rem);
}
.hero.has-background-video .hero-right { display: none !important; }
.hero.has-background-video .hero-eyebrow { color: var(--gold-bright); }
.hero.has-background-video .hero-title,
.hero.has-background-video .hero-title em { color: #fff; }
.hero.has-background-video .hero-subtitle { color: rgba(255,255,255,.84); }
.hero.has-background-video .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero.has-background-video .btn-ghost:hover { border-color: #fff; }
@media (max-width: 768px) {
  .hero.has-background-video { min-height: 76vh; }
  .hero.has-background-video .hero-left { padding: 7rem 1.5rem 4.5rem; }
  .hero.has-background-video .hero-background-overlay { background: rgba(0,0,0,.58); }
}

/* === Update: white site/nav backgrounds + homepage cards matched to listing cards === */
html,
body,
.site,
.site-main,
main,
.home,
.home .site-main,
.front-page,
.page-template-front-page {
  background: #ffffff !important;
}

.site-nav,
.site-nav.scrolled,
.mobile-nav {
  background: #ffffff !important;
}

.site-nav {
  border-bottom: 1px solid rgba(184,207,224,0.5) !important;
  box-shadow: 0 2px 10px rgba(9,28,51,0.035);
}

.hero,
.collections,
.featured-diamonds,
.featured-jewelry,
.featured-watches,
.newsletter,
.archive-layout,
.listing-area,
.woocommerce,
.woocommerce-page {
  background: #ffffff !important;
}

/* Keep homepage collection cards visually consistent with diamond/jewelry cards */
.home .collection-card {
  background: var(--white) !important;
  border: 1px solid rgba(184,207,224,0.5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  aspect-ratio: auto;
  min-height: unset;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}

.home .collection-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.home .collection-card-bg {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--linen);
  overflow: hidden;
}

.home .collection-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home .collection-card:hover .collection-card-bg img {
  transform: scale(1.04);
}

.home .collection-card-overlay {
  display: none !important;
}

.home .collection-card-content {
  position: relative;
  inset: auto;
  padding: 1.4rem 1.4rem 1.6rem;
  background: #ffffff;
}

.home .collection-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.home .collection-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.home .collection-card-cta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 2px;
}

.home .collection-card-cta::after {
  content: none;
}

.home .collection-card:hover .collection-card-cta {
  color: var(--gold-bright);
}

/* Align homepage watch cards with the square image treatment used by diamonds/jewelry */
.home .watch-card {
  background: var(--white);
  border: 1px solid rgba(184,207,224,0.5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.home .watch-card-img {
  aspect-ratio: 1 / 1;
  background: var(--linen);
}

.home .watch-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.home .watch-card-name {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.home .watch-card-cta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-pale);
}

/* Final adjustment: homepage cards should be square/flat; collection text overlays image */
.home .collection-card,
.home .fd-card,
.home .watch-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden;
}
.home .collection-card:hover,
.home .fd-card:hover,
.home .watch-card:hover {
  box-shadow: none !important;
}
.home .collection-card {
  position: relative !important;
  aspect-ratio: 4 / 5 !important;
  display: block !important;
  min-height: unset;
}
.home .collection-card-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background: var(--linen);
  overflow: hidden;
}
.home .collection-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home .collection-card-overlay {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(30,26,20,0.78) 0%, rgba(30,26,20,0.08) 58%, rgba(30,26,20,0.02) 100%);
}
.home .collection-card-content {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.1rem;
  background: transparent !important;
  z-index: 2;
}
.home .collection-card-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.7rem;
}
.home .collection-card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.home .collection-card-cta {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-light);
  border-bottom: none;
  padding-bottom: 0;
}
.home .collection-card-cta::after {
  content: '→';
  margin-left: 0.4rem;
}
.home .fd-card-img,
.home .watch-card-img,
.home .listing-card-thumb {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.home .fd-card-body,
.home .watch-card-body {
  padding: 0.7rem 0 0 !important;
}

/* Editable full-width homepage cover banner between Collections and Diamonds */
.home-cover-banner {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 58vw, 720px);
  overflow: hidden;
  background: var(--ink);
  margin: 0;
}
.home-cover-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-cover-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 20, 0.08) 0%, rgba(10, 14, 20, 0.26) 48%, rgba(10, 14, 20, 0.68) 100%);
  z-index: 1;
}
.home-cover-banner.no-image .home-cover-banner-shade {
  background: linear-gradient(135deg, var(--linen), var(--gold-pale));
}
.home-cover-banner-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  width: min(100% - 3rem, 1400px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5rem 0;
}
.home-cover-banner-content {
  width: min(520px, 100%);
  text-align: right;
  color: var(--white);
}
.home-cover-banner.no-image .home-cover-banner-content {
  color: var(--ink);
}
.home-cover-banner-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.home-cover-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  line-height: 0.98;
  font-weight: 300;
  margin: 0 0 1.25rem;
  color: inherit;
}
.home-cover-banner-body {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  margin: 0 0 2rem auto;
  max-width: 460px;
  color: rgba(255,255,255,0.84);
}
.home-cover-banner.no-image .home-cover-banner-body {
  color: var(--muted);
}
.home-cover-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.3rem;
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.home-cover-banner-link:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.home-cover-banner.no-image .home-cover-banner-link {
  color: var(--ink);
  border-color: var(--gold);
  background: transparent;
}
.home-cover-banner.no-image .home-cover-banner-link:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
@media (max-width: 760px) {
  .home-cover-banner { min-height: 460px; }
  .home-cover-banner-shade { background: linear-gradient(to top, rgba(10,14,20,0.72), rgba(10,14,20,0.18)); }
  .home-cover-banner-inner { justify-content: center; padding: 4rem 0; }
  .home-cover-banner-content { text-align: center; }
  .home-cover-banner-body { margin-left: auto; margin-right: auto; }
}

/* Final update: Crafted for Eternity uses two larger, flat collection tiles */
.home .collections-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.5vw, 2.5rem) !important;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.home .collection-card {
  aspect-ratio: 16 / 10 !important;
  min-height: clamp(360px, 36vw, 520px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.home .collection-card-content {
  padding: clamp(2rem, 3vw, 3.25rem) !important;
}
.home .collection-card-title {
  font-size: clamp(2rem, 3vw, 3rem) !important;
}
@media (max-width: 768px) {
  .home .collections-grid {
    grid-template-columns: 1fr !important;
  }
  .home .collection-card {
    aspect-ratio: 4 / 5 !important;
    min-height: 420px !important;
  }
}

/* Correction: keep the cover image section and make Crafted for Eternity two equal, aligned tiles */
.home .collections-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.5vw, 2.5rem) !important;
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.home .collections-grid > * {
  min-width: 0 !important;
  margin: 0 !important;
}
.home .collection-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  aspect-ratio: 16 / 10 !important;
  min-height: clamp(360px, 36vw, 520px) !important;
}
.home .collection-card-content {
  padding: clamp(2rem, 3vw, 3.25rem) !important;
}
@media (max-width: 768px) {
  .home .collections-grid { grid-template-columns: 1fr !important; }
  .home .collection-card { aspect-ratio: 4 / 5 !important; min-height: 420px !important; }
}

/* Requested update: make Crafted for Eternity tiles larger like full-width editorial tiles */
.home .section:has(.collections-grid) {
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(1rem, 1.4vw, 1.5rem) !important;
  padding-right: clamp(1rem, 1.4vw, 1.5rem) !important;
}
.home .collections-grid {
  max-width: none !important;
  width: 100% !important;
  gap: clamp(0.75rem, 1vw, 1.25rem) !important;
}
.home .collection-card {
  aspect-ratio: 1 / 0.78 !important;
  min-height: clamp(560px, 42vw, 740px) !important;
}
.home .collection-card-content {
  padding: clamp(2.25rem, 3vw, 3.75rem) !important;
}

/* Requested update: bring cover banner text closer to the right edge and reduce title size */
.home-cover-banner-inner {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(1rem, 2vw, 2rem) !important;
  padding-right: clamp(1rem, 2vw, 2rem) !important;
}
.home-cover-banner-content {
  width: min(460px, 100%) !important;
}
.home-cover-banner-title {
  font-size: clamp(1.9rem, 3.4vw, 3.8rem) !important;
  line-height: 1.05 !important;
}
@media (max-width: 768px) {
  .home .section:has(.collections-grid) {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .home .collection-card {
    aspect-ratio: 4 / 5 !important;
    min-height: 520px !important;
  }
  .home-cover-banner-inner {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}


/* Homepage jewelry category filter tiles directly below hero */
.home-jewelry-filter-tiles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #fff;
}
.home-jewelry-filter-tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.home-jewelry-filter-tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--linen);
}
.home-jewelry-filter-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease, opacity .35s ease;
}
.home-jewelry-filter-tile:hover .home-jewelry-filter-tile-media img {
  transform: scale(1.035);
  opacity: .94;
}
.home-jewelry-filter-tile-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7f4ee, #e8dfd0);
}
.home-jewelry-filter-tile-label {
  display: block;
  text-align: center;
  padding: 14px 6px 18px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 1100px) {
  .home-jewelry-filter-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-jewelry-filter-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .home-jewelry-filter-tile-label { font-size: .68rem; letter-spacing: .12em; padding: 11px 4px 14px; }
}

/* Requested update: adjust spacing around homepage jewelry filter tiles */
.home-jewelry-filter-tiles {
  margin-top: clamp(20px, 2.4vw, 38px) !important;
  margin-bottom: 0 !important;
  padding: clamp(10px, 1vw, 14px) 8px 0 !important;
}
.home-jewelry-filter-tile-label {
  padding-bottom: clamp(8px, .8vw, 12px) !important;
}

/* Requested update: make the homepage collections tiles span the full screen width */
.home .section:has(.collections-grid) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.home .collections-grid {
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  gap: 8px !important;
}
.home .collection-card {
  aspect-ratio: 4 / 3 !important;
  min-height: clamp(620px, 48vw, 860px) !important;
}
@media (max-width: 768px) {
  .home .collections-grid {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .home .collection-card {
    aspect-ratio: 4 / 5 !important;
    min-height: 520px !important;
  }
}


/* Show By Collection homepage break section */
.show-by-collection-section {
  width: 100%;
  background: #fff;
  padding: 28px 24px 62px;
  text-align: center;
}
.show-by-collection-inner {
  max-width: 980px;
  margin: 0 auto;
}
.show-by-collection-heading {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.show-by-collection-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.show-by-collection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 62px;
  padding: 1.1rem 2.35rem;
  border: 1px solid rgba(20,20,20,0.22);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.show-by-collection-button:hover,
.show-by-collection-button:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
@media (max-width: 640px) {
  .show-by-collection-section { padding: 24px 18px 48px; }
  .show-by-collection-buttons { gap: 10px; }
  .show-by-collection-button { width: 100%; max-width: 320px; }
}

/* Featured Diamonds homepage refinements */
.home #featured-diamonds-section.featured-diamonds-home {
  background: #fff;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}
.home #featured-diamonds-section .featured-diamonds-heading {
  width: 100%;
  max-width: none !important;
  margin: 0 auto clamp(1.6rem, 3vw, 2.8rem) !important;
  padding-left: clamp(1.25rem, 3vw, 3rem) !important;
  padding-right: clamp(1.25rem, 3vw, 3rem) !important;
  text-align: center;
  box-sizing: border-box;
}
.home #featured-diamonds-section .featured-diamonds-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.home #featured-diamonds-section > .fd-grid {
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(1rem, 2.4vw, 2.5rem) !important;
  padding-right: clamp(1rem, 2.4vw, 2.5rem) !important;
  margin-top: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 2rem);
}
.home #featured-diamonds-section .fd-card {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
.home #featured-diamonds-section .fd-card-img {
  aspect-ratio: 4 / 4.7;
  background: var(--linen);
}
.home #featured-diamonds-section .fd-card-body {
  padding-top: 0.75rem !important;
}
.home #featured-diamonds-section .fd-card-name {
  margin-bottom: 0.22rem !important;
  font-size: clamp(1.05rem, 1.18vw, 1.35rem);
  line-height: 1.25;
}
.home #featured-diamonds-section .fd-card .listing-card-type,
.home #featured-diamonds-section .fd-card .listing-card-specs {
  display: none !important;
}
.home #featured-diamonds-section .fd-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.12rem !important;
}
.home #featured-diamonds-section .fd-card-price-row span:first-child {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-weight: 300;
  color: var(--ink);
}
@media (max-width: 1100px) {
  .home #featured-diamonds-section > .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home #featured-diamonds-section > .fd-grid { grid-template-columns: 1fr; }
  .home #featured-diamonds-section .featured-diamonds-heading h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
}

/* Tighten gap between Collections tiles and Shop By Collection section */
.home .section:has(.collections-grid) {
  padding-bottom: clamp(0.35rem, 0.8vw, 0.9rem) !important;
}
.home .section:has(.collections-grid) > .page-center {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.home .collections-grid {
  margin-bottom: 0 !important;
}
.home .show-by-collection-section {
  padding-top: clamp(0.35rem, 0.8vw, 0.9rem) !important;
  padding-bottom: clamp(1.6rem, 2.6vw, 2.8rem) !important;
}
.home .show-by-collection-heading {
  margin-bottom: clamp(0.8rem, 1.5vw, 1.25rem) !important;
}


/* Featured home sections: 5-card full-width layouts and contained images */
.home #featured-diamonds-section > .fd-grid,
.home #featured-jewelry-section > .fd-grid {
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(1rem, 2.4vw, 2.5rem) !important;
  padding-right: clamp(1rem, 2.4vw, 2.5rem) !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(0.75rem, 1.15vw, 1.45rem) !important;
  box-sizing: border-box;
}
.home #featured-diamonds-section .fd-card-img,
.home #featured-jewelry-section .fd-card-img {
  aspect-ratio: 4 / 4.7 !important;
  background: #fff !important;
}
.home #featured-diamonds-section .fd-card-img img,
.home #featured-jewelry-section .fd-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
.home #featured-diamonds-section .fd-card:hover .fd-card-img img,
.home #featured-jewelry-section .fd-card:hover .fd-card-img img {
  transform: none !important;
}
.home #featured-diamonds-section .fd-card .listing-card-type,
.home #featured-diamonds-section .fd-card .listing-card-specs {
  display: none !important;
}
.home #featured-diamonds-section .fd-card-name,
.home #featured-jewelry-section .fd-card-name {
  margin-bottom: 0.08rem !important;
}
.home #featured-diamonds-section .fd-card-price-row,
.home #featured-jewelry-section .fd-card-body > div[style*="justify-content:space-between"] {
  margin-top: 0.05rem !important;
}
@media (max-width: 1200px) {
  .home #featured-diamonds-section > .fd-grid,
  .home #featured-jewelry-section > .fd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .home #featured-diamonds-section > .fd-grid,
  .home #featured-jewelry-section > .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .home #featured-diamonds-section > .fd-grid,
  .home #featured-jewelry-section > .fd-grid { grid-template-columns: 1fr !important; }
}

/* Philosophy full-width cover image with text overlay */
.home .philosophy.philosophy-has-cover {
  position: relative;
  min-height: clamp(364px, 43vw, 574px);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  padding: clamp(2.75rem, 5.6vw, 5.6rem) 0 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home .philosophy-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,8,12,0.66);
  z-index: 0;
}
.home .philosophy.philosophy-has-cover .philosophy-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none !important;
  padding-left: clamp(1.25rem, 4vw, 5rem) !important;
  padding-right: clamp(1.25rem, 4vw, 5rem) !important;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
}
.home .philosophy.philosophy-has-cover .philosophy-body p,
.home .philosophy.philosophy-has-cover .stat-label {
  color: rgba(255,255,255,0.92) !important;
}
@media (max-width: 768px) {
  .home .philosophy-cover-overlay { background: rgba(4,8,12,0.66); }
}

/* Philosophy cover readability refinements */
.home .philosophy.philosophy-has-cover .philosophy-quote,
.home .philosophy.philosophy-has-cover .philosophy-body p,
.home .philosophy.philosophy-has-cover .stat-label {
  color: rgba(255,255,255,0.92) !important;
}
.home .philosophy.philosophy-has-cover .philosophy-quote em,
.home .philosophy.philosophy-has-cover .philosophy-attribution,
.home .philosophy.philosophy-has-cover .stat-number {
  color: #fff !important;
}
.home .philosophy.philosophy-has-cover .philosophy-stats {
  border-color: rgba(255,255,255,0.26) !important;
}
.home .philosophy.philosophy-has-cover .philosophy-attribution::before {
  background: rgba(255,255,255,0.46) !important;
}

/* Philosophy text wrapping refinements */
.home .philosophy.philosophy-has-cover .philosophy-inner {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr) !important;
  gap: clamp(3rem, 6vw, 7rem) !important;
}
.home .philosophy.philosophy-has-cover .philosophy-inner > div:nth-child(2) {
  max-width: 650px;
}
.home .philosophy.philosophy-has-cover .philosophy-body {
  max-width: 620px;
}
.home .philosophy.philosophy-has-cover .philosophy-body p:first-child {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.75;
}
.home .philosophy.philosophy-has-cover .philosophy-quote-break {
  display: block;
}
@media (max-width: 768px) {
  .home .philosophy.philosophy-has-cover .philosophy-inner {
    grid-template-columns: 1fr !important;
  }
  .home .philosophy.philosophy-has-cover .philosophy-inner > div:nth-child(2),
  .home .philosophy.philosophy-has-cover .philosophy-body {
    max-width: 100%;
  }
}

/* Featured Jewelry heading matches Featured Diamonds */
.home #featured-jewelry-section.featured-jewelry-home {
  background: #fff;
  padding-top: clamp(2.5rem, 5vw, 5rem);
}
.home #featured-jewelry-section .featured-diamonds-heading {
  width: 100%;
  max-width: none !important;
  margin: 0 auto clamp(1.6rem, 3vw, 2.8rem) !important;
  padding-left: clamp(1.25rem, 3vw, 3rem) !important;
  padding-right: clamp(1.25rem, 3vw, 3rem) !important;
  text-align: center;
  box-sizing: border-box;
}
.home #featured-jewelry-section .featured-diamonds-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.045em;
  color: var(--ink);
}


/* === Navigation layout update: centered brand, left product links, search === */
.site-nav {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.nav-logo {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}
.nav-right {
  justify-self: end;
}
.nav-icons .nav-icon-link,
.md-mobile-icons .nav-icon-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-icons .nav-icon-link:hover,
.md-mobile-icons .nav-icon-link:hover {
  color: var(--gold);
}

/* Product search dropdown */
.md-search-modal {
  position: fixed;
  top: var(--nav-height, 82px);
  right: clamp(1rem, 4vw, 3rem);
  z-index: 500;
  width: min(560px, calc(100vw - 2rem));
  display: block;
  pointer-events: none;
}
.md-search-modal.open {
  pointer-events: auto;
}
.md-search-panel {
  position: relative;
  width: 100%;
  max-height: min(72vh, 680px);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(184,207,224,0.72);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(9,28,51,0.14);
  padding: 1.35rem;
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.md-search-modal.open .md-search-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.md-product-search-form label {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 300;
  color: var(--ink);
  margin: 0 2.5rem 1rem 0;
}
.md-product-search-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.3rem;
  border: 1px solid var(--linen-dark);
  border-radius: 999px;
  background: #fff;
}
.md-product-search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}
.md-product-search-row button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  cursor: pointer;
  white-space: nowrap;
}
.md-product-search-results {
  margin-top: 1rem;
  max-height: min(52vh, 470px);
  overflow: auto;
  padding-right: 0.2rem;
}
.md-search-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--linen-dark);
  color: inherit;
  text-decoration: none;
}
.md-search-result:first-child { border-top: 0; }
.md-search-result:hover .md-search-result-title { color: var(--gold); }
.md-search-result-img {
  width: 64px;
  aspect-ratio: 1;
  background: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}
.md-search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.md-search-result-copy { display: block; min-width: 0; }
.md-search-result-type {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.md-search-result-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ink);
  transition: color 180ms ease;
}
.md-search-result-meta {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.22rem;
  line-height: 1.4;
}
.md-search-result-link {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.md-search-empty,
.md-search-loading {
  color: var(--muted);
  line-height: 1.7;
  padding: 0.85rem 0 0.2rem;
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto 1fr;
  }
  .nav-left,
  .nav-right {
    display: none !important;
  }
  .nav-logo {
    grid-column: 2;
  }
  .nav-hamburger {
    justify-self: end;
    display: flex;
  }
  .md-search-modal {
    top: 76px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
  .md-search-panel {
    border-radius: 22px;
    padding: 1.1rem;
  }
  .md-product-search-row {
    border-radius: 24px;
    align-items: stretch;
  }
  .md-product-search-row button {
    min-height: 42px;
  }
  .md-search-result {
    grid-template-columns: 58px 1fr;
  }
  .md-search-result-link {
    grid-column: 2;
  }
  .md-search-result-img {
    width: 58px;
    border-radius: 14px;
  }
}

/* Mobile-only image fill fix: match Philosophy cover behavior on Hero and Cover Banner */
@media (max-width: 768px) {
  .home .hero {
    position: relative !important;
    min-height: clamp(620px, 100svh, 820px) !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background: var(--ink) !important;
  }

  .home .hero-right {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
    z-index: 0 !important;
  }

  .home .hero-right img,
  .home .hero-video,
  .home .hero-background-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .home .hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(4,8,12,0.66) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .home .hero-left {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    color: #fff !important;
    min-height: inherit !important;
    justify-content: center !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.28) !important;
  }

  .home .hero-title,
  .home .hero-subtitle {
    color: rgba(255,255,255,0.92) !important;
  }

  .home .hero-title em,
  .home .hero-eyebrow {
    color: #fff !important;
  }

  .home .home-cover-banner,
  .archive-header.has-hero {
    position: relative !important;
    min-height: clamp(460px, 82svh, 720px) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
  }

  .home .home-cover-banner-img,
  .archive-header.has-hero .archive-hero-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .home .home-cover-banner-shade,
  .archive-header.has-hero .archive-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(4,8,12,0.66) !important;
    z-index: 1 !important;
  }

  .home .home-cover-banner-inner,
  .archive-header.has-hero .archive-header-content {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* Mobile overlay brightness fix: keep Philosophy-style image fill, but reduce dark overlay on Hero + Cover Banner only */
@media (max-width: 768px) {
  .home .hero::before {
    background: rgba(4, 8, 12, 0.34) !important;
  }

  .home .hero.has-background-video .hero-background-overlay {
    background: rgba(4, 8, 12, 0.34) !important;
  }

  .home .home-cover-banner-shade,
  .archive-header.has-hero .archive-hero-overlay {
    background: rgba(4, 8, 12, 0.34) !important;
  }
}

/* Mobile hero brightness correction v5: remove double-darkening on hero only */
@media (max-width: 768px) {
  .home .hero::before {
    background: rgba(4, 8, 12, 0.14) !important;
  }

  .home .hero.has-background-video .hero-background-overlay {
    background: transparent !important;
  }

  .home .hero-left {
    background: transparent !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.22) !important;
  }
}


/* Mobile video/banner framing v8: show more of the media without shrinking it inside the frame */
@media (max-width: 768px) {
  .home .hero,
  .home .hero.has-background-video {
    min-height: 56svh !important;
    height: 56svh !important;
    max-height: 620px !important;
    aspect-ratio: auto !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .home .hero-background-video,
  .home .hero-video,
  .home .hero-right img {
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .home .hero-left {
    min-height: 100% !important;
    padding-top: 5.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .home .home-cover-banner,
  .archive-header.has-hero {
    min-height: 52svh !important;
    height: 52svh !important;
    max-height: 560px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  .home .home-cover-banner-img,
  .archive-header.has-hero .archive-hero-img {
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (max-width: 480px) {
  .home .hero,
  .home .hero.has-background-video {
    min-height: 50svh !important;
    height: 50svh !important;
  }

  .home .hero-left {
    padding-top: 5.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .home .home-cover-banner,
  .archive-header.has-hero {
    min-height: 48svh !important;
    height: 48svh !important;
  }
}

/* Mobile hero nav clearance v10: move the whole hero below the fixed navbar, not just the text */
@media (max-width: 768px) {
  body.home .hero,
  body.home .hero.has-background-video,
  .home .hero,
  .home .hero.has-background-video {
    margin-top: 78px !important;
  }

  body.home .hero-background-video,
  body.home .hero-video,
  body.home .hero-right img,
  .home .hero-background-video,
  .home .hero-video,
  .home .hero-right img {
    object-position: center top !important;
  }
}

@media (max-width: 480px) {
  body.home .hero,
  body.home .hero.has-background-video,
  .home .hero,
  .home .hero.has-background-video {
    margin-top: 82px !important;
  }
}


/* v12 Mobile-only hero copy cleanup and vertical centering */
@media (max-width: 768px) {
  body.home .hero,
  body.home .hero.has-background-video,
  .home .hero,
  .home .hero.has-background-video {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home .hero-left,
  .home .hero-left,
  body.home .hero.has-background-video .hero-left,
  .home .hero.has-background-video .hero-left {
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0 6vw !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  body.home .hero-subtitle,
  .home .hero-subtitle,
  body.home .hero-mobile-remove,
  .home .hero-mobile-remove {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.home .hero-title,
  .home .hero-title {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 92vw !important;
  }

  body.home .hero-buttons,
  .home .hero-buttons {
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1.25rem !important;
    gap: 0 !important;
  }

  body.home .hero-buttons .btn-ghost,
  .home .hero-buttons .btn-ghost {
    display: none !important;
  }

  body.home .hero-buttons .btn-primary,
  .home .hero-buttons .btn-primary,
  body.home .hero-mobile-link,
  .home .hero-mobile-link {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
    text-decoration-thickness: 1px !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }
}


/* v13 mobile hero right align */
@media (max-width:768px){
body.home .hero-left,.home .hero-left{
align-items:flex-end !important;
text-align:right !important;
justify-content:center !important;
position:relative !important;
padding-bottom:70px !important;
}
body.home .hero-title,.home .hero-title{
text-align:right !important;
margin-left:auto !important;
margin-right:0 !important;
}
body.home .hero-buttons,.home .hero-buttons{
position:absolute !important;
right:6vw !important;
bottom:22px !important;
width:auto !important;
justify-content:flex-end !important;
}
body.home .hero-buttons .btn-primary,.home .hero-buttons .btn-primary{
text-align:right !important;
}
}

/* v14 mobile hero left align + remove eyebrow */
@media (max-width:768px){
body.home .hero-eyebrow,.home .hero-eyebrow{display:none !important;}
body.home .hero-left,.home .hero-left{
align-items:flex-start !important;
text-align:left !important;
}
body.home .hero-title,.home .hero-title{
text-align:left !important;
margin-left:0 !important;
margin-right:auto !important;
}
body.home .hero-buttons,.home .hero-buttons{
left:6vw !important;
right:auto !important;
justify-content:flex-start !important;
}
body.home .hero-buttons .btn-primary,.home .hero-buttons .btn-primary{
text-align:left !important;
}
}


/* v16 Mobile-only homepage jewelry filter tiles: horizontal swipe + full image fit */
@media (max-width: 768px) {
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 10px 16px 0 16px !important;
    box-sizing: border-box !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  .home .home-jewelry-filter-tiles::-webkit-scrollbar,
  .home-jewelry-filter-tiles::-webkit-scrollbar {
    display: none !important;
  }

  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex: 0 0 68vw !important;
    width: 68vw !important;
    max-width: 68vw !important;
    min-width: 68vw !important;
    scroll-snap-align: start !important;
  }

  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    width: 100% !important;
    height: 255px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .home .home-jewelry-filter-tile-media img,
  .home-jewelry-filter-tile-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .home .home-jewelry-filter-tile-label,
  .home-jewelry-filter-tile-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.13em !important;
    padding: 12px 4px 12px !important;
  }
}

@media (max-width: 480px) {
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex-basis: 76vw !important;
    width: 76vw !important;
    max-width: 76vw !important;
    min-width: 76vw !important;
  }

  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    height: 235px !important;
  }
}



/* v17 Mobile-only jewelry tiles: smaller free-scroll tiles */
@media (max-width: 768px) {
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    scroll-snap-type: none !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex: 0 0 31vw !important;
    width: 31vw !important;
    max-width: 31vw !important;
    min-width: 31vw !important;
    scroll-snap-align: none !important;
  }

  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    height: 145px !important;
  }
}

@media (max-width: 480px) {
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex-basis: 30.5vw !important;
    width: 30.5vw !important;
    max-width: 30.5vw !important;
    min-width: 30.5vw !important;
  }

  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    height: 128px !important;
  }

  .home .home-jewelry-filter-tile-label,
  .home-jewelry-filter-tile-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    padding: 8px 2px 10px !important;
  }
}



/* v18 Increase jewelry tile text size desktop + mobile */
.home-jewelry-filter-tile-label{
font-size:0.82rem !important;
letter-spacing:0.12em !important;
}
@media (max-width:768px){
.home-jewelry-filter-tile-label{
font-size:0.68rem !important;
}
}
@media (max-width:480px){
.home-jewelry-filter-tile-label{
font-size:0.64rem !important;
}
}


/* v19 Mobile-only collection cards: make text overlay the image */
@media (max-width: 768px) {
  .home-collections,
  .collections-section,
  .shop-by-collection {
    overflow: hidden !important;
  }

  .home-collections-grid,
  .collections-grid,
  .collection-grid {
    gap: 14px !important;
  }

  .home-collection-card,
  .collection-card,
  .collection-tile,
  .home-collections .card,
  .collections-section .card {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    min-height: 430px !important;
    height: 430px !important;
    background: #0b1118 !important;
  }

  .home-collection-card img,
  .collection-card img,
  .collection-tile img,
  .home-collections .card img,
  .collections-section .card img,
  .home-collection-card .collection-image img,
  .collection-card .collection-image img,
  .collection-tile .collection-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    z-index: 1 !important;
  }

  .home-collection-card::after,
  .collection-card::after,
  .collection-tile::after,
  .home-collections .card::after,
  .collections-section .card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    background: linear-gradient(
      to bottom,
      rgba(4, 8, 12, 0.08) 0%,
      rgba(4, 8, 12, 0.18) 42%,
      rgba(4, 8, 12, 0.66) 100%
    ) !important;
  }

  .home-collection-card .collection-content,
  .collection-card .collection-content,
  .collection-tile .collection-content,
  .home-collection-card .card-content,
  .collection-card .card-content,
  .collection-tile .card-content,
  .home-collections .card .card-content,
  .collections-section .card .card-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 3 !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 10vw 46px !important;
    background: transparent !important;
    text-align: left !important;
  }

  .home-collection-card .collection-eyebrow,
  .collection-card .collection-eyebrow,
  .collection-tile .collection-eyebrow,
  .home-collection-card .eyebrow,
  .collection-card .eyebrow,
  .collection-tile .eyebrow {
    color: rgba(190, 220, 245, 0.86) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.24em !important;
    margin: 0 0 16px !important;
  }

  .home-collection-card h2,
  .collection-card h2,
  .collection-tile h2,
  .home-collection-card h3,
  .collection-card h3,
  .collection-tile h3,
  .home-collection-card .collection-title,
  .collection-card .collection-title,
  .collection-tile .collection-title {
    color: #fff !important;
    font-size: clamp(2.35rem, 12vw, 4rem) !important;
    line-height: 0.95 !important;
    margin: 0 0 32px !important;
    text-shadow: 0 2px 14px rgba(0,0,0,0.28) !important;
  }

  .home-collection-card a,
  .collection-card a,
  .collection-tile a,
  .home-collection-card .collection-link,
  .collection-card .collection-link,
  .collection-tile .collection-link {
    color: rgba(190, 220, 245, 0.86) !important;
    text-decoration: none !important;
  }

  .home-collection-card .collection-link,
  .collection-card .collection-link,
  .collection-tile .collection-link,
  .home-collection-card .discover,
  .collection-card .discover,
  .collection-tile .discover {
    font-size: 0.78rem !important;
    letter-spacing: 0.24em !important;
    text-transform: uppercase !important;
  }

  .home-collection-card picture,
  .collection-card picture,
  .collection-tile picture,
  .home-collection-card .collection-image,
  .collection-card .collection-image,
  .collection-tile .collection-image,
  .home-collection-card .card-media,
  .collection-card .card-media,
  .collection-tile .card-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
  }
}

@media (max-width: 480px) {
  .home-collection-card,
  .collection-card,
  .collection-tile,
  .home-collections .card,
  .collections-section .card {
    min-height: 405px !important;
    height: 405px !important;
  }

  .home-collection-card .collection-content,
  .collection-card .collection-content,
  .collection-tile .collection-content,
  .home-collection-card .card-content,
  .collection-card .card-content,
  .collection-tile .card-content,
  .home-collections .card .card-content,
  .collections-section .card .card-content {
    padding: 0 9vw 42px !important;
  }
}


/* v20 Mobile collections full-width */
@media (max-width:768px){
.home-collections,
.collections-section,
.shop-by-collection{
width:100vw !important;
max-width:100vw !important;
margin-left:calc(50% - 50vw) !important;
margin-right:calc(50% - 50vw) !important;
padding-left:0 !important;
padding-right:0 !important;
}
.home-collections-grid,
.collections-grid,
.collection-grid{
gap:12px !important;
padding-left:0 !important;
padding-right:0 !important;
}
.home-collection-card,
.collection-card,
.collection-tile,
.home-collections .card,
.collections-section .card{
width:100vw !important;
max-width:100vw !important;
margin-left:0 !important;
margin-right:0 !important;
border-radius:0 !important;
}
}


/* v21 Mobile collection cards true edge-to-edge */
@media (max-width: 768px) {
  section.collections,
  .collections {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  section.collections > .container,
  .collections > .container,
  .collections .container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .collections-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .collections-grid .collection-card,
  .collection-card {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  .collection-card .collection-image,
  .collection-card picture,
  .collection-card img {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  .collection-card img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .collections .section-header,
  .collections .section-title,
  .collections h2 {
    padding-left: 6vw !important;
    padding-right: 6vw !important;
  }
}



/* v22 Fix left mobile gap + white collection text */
@media (max-width:768px){
.collections-grid,
.collection-card,
.collections-grid .collection-card{
margin-left:calc(50% - 50vw) !important;
left:0 !important;
transform:none !important;
}
.collection-card .collection-content,
.collection-card .collection-content *,
.collection-card h2,
.collection-card h3,
.collection-card .collection-title,
.collection-card .collection-eyebrow,
.collection-card a,
.collection-card .collection-link{
color:#ffffff !important;
}
}


/* v23 Shop By Collection spacing, mobile buttons, and white mobile collection-card text */

/* Desktop + mobile: add a little top padding to Shop By Collection */
.home-jewelry-filter,
.home-jewelry-filter-section,
.shop-by-collection,
.shop-by-collection-section,
section[class*="jewelry-filter"],
section[class*="shop-by-collection"] {
  padding-top: 28px !important;
}

/* Mobile-only collection card text forced white */
@media (max-width: 768px) {
  .collections-grid .collection-card,
  .collection-card {
    color: #ffffff !important;
  }

  .collections-grid .collection-card *,
  .collection-card *,
  .collections-grid .collection-card .collection-content,
  .collection-card .collection-content,
  .collections-grid .collection-card .collection-content *,
  .collection-card .collection-content *,
  .collections-grid .collection-card .collection-eyebrow,
  .collection-card .collection-eyebrow,
  .collections-grid .collection-card .collection-title,
  .collection-card .collection-title,
  .collections-grid .collection-card h1,
  .collection-card h1,
  .collections-grid .collection-card h2,
  .collection-card h2,
  .collections-grid .collection-card h3,
  .collection-card h3,
  .collections-grid .collection-card a,
  .collection-card a,
  .collections-grid .collection-card .collection-link,
  .collection-card .collection-link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .collections-grid .collection-card .discover,
  .collection-card .discover,
  .collections-grid .collection-card [class*="discover"],
  .collection-card [class*="discover"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Mobile-only: keep all three Shop By Collection buttons on one row */
  .home-jewelry-filter-buttons,
  .home-jewelry-filter-nav,
  .home-jewelry-filter-tabs,
  .shop-by-collection-buttons,
  .shop-by-collection-tabs,
  .collection-filter-buttons,
  .collection-tabs,
  .filter-buttons,
  .filter-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .home-jewelry-filter-buttons > *,
  .home-jewelry-filter-nav > *,
  .home-jewelry-filter-tabs > *,
  .shop-by-collection-buttons > *,
  .shop-by-collection-tabs > *,
  .collection-filter-buttons > *,
  .collection-tabs > *,
  .filter-buttons > *,
  .filter-tabs > * {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 33.333% !important;
  }

  .home-jewelry-filter-buttons button,
  .home-jewelry-filter-nav button,
  .home-jewelry-filter-tabs button,
  .shop-by-collection-buttons button,
  .shop-by-collection-tabs button,
  .collection-filter-buttons button,
  .collection-tabs button,
  .filter-buttons button,
  .filter-tabs button,
  .home-jewelry-filter-buttons a,
  .home-jewelry-filter-nav a,
  .home-jewelry-filter-tabs a,
  .shop-by-collection-buttons a,
  .shop-by-collection-tabs a,
  .collection-filter-buttons a,
  .collection-tabs a,
  .filter-buttons a,
  .filter-tabs a {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .home-jewelry-filter,
  .home-jewelry-filter-section,
  .shop-by-collection,
  .shop-by-collection-section,
  section[class*="jewelry-filter"],
  section[class*="shop-by-collection"] {
    padding-top: 24px !important;
  }
}



/* v24 exact mobile Shop By Collection controls in one row */
@media (max-width:768px){
  .home-jewelry-filter-controls,
  .home-jewelry-filter .home-jewelry-filter-controls,
  .home-jewelry-filter-tabs,
  .home-jewelry-filter .filter-controls,
  .home-jewelry-filter .controls {
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .home-jewelry-filter-controls > *,
  .home-jewelry-filter .home-jewelry-filter-controls > *,
  .home-jewelry-filter-tabs > *,
  .home-jewelry-filter .filter-controls > *,
  .home-jewelry-filter .controls > * {
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:33.333% !important;
  }

  .home-jewelry-filter-controls button,
  .home-jewelry-filter-controls a,
  .home-jewelry-filter-tabs button,
  .home-jewelry-filter-tabs a,
  .home-jewelry-filter .filter-controls button,
  .home-jewelry-filter .filter-controls a,
  .home-jewelry-filter .controls button,
  .home-jewelry-filter .controls a,
  .home-jewelry-filter [data-filter],
  .home-jewelry-filter .filter-pill,
  .home-jewelry-filter .filter-button,
  .home-jewelry-filter .tab,
  .home-jewelry-filter .tab-button {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:1 1 0 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    padding:9px 3px !important;
    font-size:0.54rem !important;
    line-height:1.1 !important;
    letter-spacing:0.06em !important;
    white-space:nowrap !important;
    text-align:center !important;
  }
}



/* v25 Mobile only: Shop By Collection buttons in one row */
@media (max-width: 768px) {
  .show-by-collection-section .show-by-collection-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .show-by-collection-section .show-by-collection-buttons,
  .show-by-collection-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
  }

  .show-by-collection-section .show-by-collection-button,
  .show-by-collection-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 14px 4px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

@media (max-width: 390px) {
  .show-by-collection-section .show-by-collection-button,
  .show-by-collection-button {
    font-size: 0.54rem !important;
    letter-spacing: 0.06em !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}



/* v26 Mobile Shop By Collection button height + section spacing */
@media (max-width:768px){
  .show-by-collection-section{
    padding-top:34px !important;
    padding-bottom:34px !important;
  }

  .show-by-collection-section .show-by-collection-heading{
    margin-bottom:18px !important;
  }

  .show-by-collection-section .show-by-collection-buttons{
    gap:6px !important;
  }

  .show-by-collection-section .show-by-collection-button,
  .show-by-collection-button{
    padding-top:9px !important;
    padding-bottom:9px !important;
    min-height:unset !important;
    height:auto !important;
    line-height:1 !important;
  }
}

@media (max-width:390px){
  .show-by-collection-section{
    padding-top:30px !important;
    padding-bottom:30px !important;
  }

  .show-by-collection-section .show-by-collection-button,
  .show-by-collection-button{
    padding-top:8px !important;
    padding-bottom:8px !important;
  }
}


/* v27 More mobile-only spacing for Shop By Collection */
@media (max-width:768px){
  .show-by-collection-section{
    padding-top:56px !important;
    padding-bottom:56px !important;
  }

  .show-by-collection-section .show-by-collection-heading{
    margin-bottom:22px !important;
  }
}

@media (max-width:390px){
  .show-by-collection-section{
    padding-top:48px !important;
    padding-bottom:48px !important;
  }
}


/* v28 Force visible mobile spacing around exact Shop By Collection section */
@media screen and (max-width: 768px) {
  body.home section.show-by-collection-section,
  html body.home section.show-by-collection-section,
  section.show-by-collection-section {
    display: block !important;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
    margin-top: 28px !important;
    margin-bottom: 28px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
  }

  body.home section.show-by-collection-section .show-by-collection-inner,
  html body.home section.show-by-collection-section .show-by-collection-inner,
  section.show-by-collection-section .show-by-collection-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.home section.show-by-collection-section .show-by-collection-heading,
  html body.home section.show-by-collection-section .show-by-collection-heading,
  section.show-by-collection-section .show-by-collection-heading {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
  }
}

@media screen and (max-width: 390px) {
  body.home section.show-by-collection-section,
  html body.home section.show-by-collection-section,
  section.show-by-collection-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
}



/* v29 Refine spacing + stronger Shop By Collection heading */
.show-by-collection-heading{
  font-weight:500 !important;
  letter-spacing:-0.01em !important;
  text-rendering:optimizeLegibility;
}

@media (max-width:768px){
  section.show-by-collection-section{
    padding-top:58px !important;
    padding-bottom:58px !important;
    margin-top:20px !important;
    margin-bottom:20px !important;
  }

  section.show-by-collection-section .show-by-collection-heading{
    margin-bottom:22px !important;
    font-weight:500 !important;
  }
}

@media (max-width:390px){
  section.show-by-collection-section{
    padding-top:52px !important;
    padding-bottom:52px !important;
  }
}


/* v30 Mobile-only featured diamonds + jewelry two-column layout */
@media (max-width: 768px) {
  .home #featured-diamonds-section > .fd-grid,
  .home #featured-jewelry-section > .fd-grid,
  #featured-diamonds-section > .fd-grid,
  #featured-jewelry-section > .fd-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  .home #featured-diamonds-section .fd-card,
  .home #featured-jewelry-section .fd-card,
  #featured-diamonds-section .fd-card,
  #featured-jewelry-section .fd-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .home #featured-diamonds-section .fd-card-img,
  .home #featured-jewelry-section .fd-card-img,
  #featured-diamonds-section .fd-card-img,
  #featured-jewelry-section .fd-card-img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f7f7f5 !important;
  }

  .home #featured-diamonds-section .fd-card-img img,
  .home #featured-jewelry-section .fd-card-img img,
  #featured-diamonds-section .fd-card-img img,
  #featured-jewelry-section .fd-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    transform: none !important;
  }

  .home #featured-diamonds-section .fd-card-body,
  .home #featured-jewelry-section .fd-card-body,
  #featured-diamonds-section .fd-card-body,
  #featured-jewelry-section .fd-card-body {
    padding: 10px 4px 0 !important;
    text-align: center !important;
  }

  .home #featured-diamonds-section .fd-card-name,
  .home #featured-jewelry-section .fd-card-name,
  #featured-diamonds-section .fd-card-name,
  #featured-jewelry-section .fd-card-name {
    font-size: 0.86rem !important;
    line-height: 1.22 !important;
    margin: 0 0 5px !important;
    text-align: center !important;
  }

  .home #featured-diamonds-section .fd-card-price-row,
  .home #featured-jewelry-section .fd-card-price-row,
  #featured-diamonds-section .fd-card-price-row,
  #featured-jewelry-section .fd-card-price-row {
    display: block !important;
    margin-top: 2px !important;
    text-align: center !important;
  }

  .home #featured-diamonds-section .fd-card-price-row span,
  .home #featured-jewelry-section .fd-card-price-row span,
  #featured-diamonds-section .fd-card-price-row span,
  #featured-jewelry-section .fd-card-price-row span {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .home #featured-diamonds-section .fd-card .listing-card-specs,
  .home #featured-jewelry-section .fd-card .listing-card-specs,
  .home #featured-diamonds-section .fd-card .listing-card-type,
  .home #featured-jewelry-section .fd-card .listing-card-type,
  #featured-diamonds-section .fd-card .listing-card-specs,
  #featured-jewelry-section .fd-card .listing-card-specs,
  #featured-diamonds-section .fd-card .listing-card-type,
  #featured-jewelry-section .fd-card .listing-card-type {
    display: none !important;
  }

  .home #featured-diamonds-section .featured-diamonds-heading,
  .home #featured-jewelry-section .featured-diamonds-heading,
  #featured-diamonds-section .featured-diamonds-heading,
  #featured-jewelry-section .featured-diamonds-heading {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-bottom: 18px !important;
  }
}

@media (max-width: 390px) {
  .home #featured-diamonds-section > .fd-grid,
  .home #featured-jewelry-section > .fd-grid,
  #featured-diamonds-section > .fd-grid,
  #featured-jewelry-section > .fd-grid {
    gap: 16px 7px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .home #featured-diamonds-section .fd-card-name,
  .home #featured-jewelry-section .fd-card-name,
  #featured-diamonds-section .fd-card-name,
  #featured-jewelry-section .fd-card-name {
    font-size: 0.8rem !important;
  }

  .home #featured-diamonds-section .fd-card-price-row span,
  .home #featured-jewelry-section .fd-card-price-row span,
  #featured-diamonds-section .fd-card-price-row span,
  #featured-jewelry-section .fd-card-price-row span {
    font-size: 0.76rem !important;
  }
}



/* v31 Featured products: mobile show 6, hide eyebrow tags, remove jewelry Inquire price */

/* Desktop + mobile: remove product/category eyebrow tags like Necklace, Bracelet, Earrings */
.home #featured-diamonds-section .listing-card-type,
.home #featured-jewelry-section .listing-card-type,
.home #featured-diamonds-section .fd-card .listing-card-type,
.home #featured-jewelry-section .fd-card .listing-card-type,
#featured-diamonds-section .listing-card-type,
#featured-jewelry-section .listing-card-type,
#featured-diamonds-section .fd-card .listing-card-type,
#featured-jewelry-section .fd-card .listing-card-type {
  display: none !important;
}

/* Desktop + mobile: remove the jewelry price row/label that displays Inquire */
.home #featured-jewelry-section .fd-card-price-row,
#featured-jewelry-section .fd-card-price-row,
.home #featured-jewelry-section .listing-card-price,
#featured-jewelry-section .listing-card-price,
.home #featured-jewelry-section .price,
#featured-jewelry-section .price {
  display: none !important;
}

/* Mobile only: show 6 cards in featured diamonds and featured jewelry */
@media (max-width: 768px) {
  .home #featured-diamonds-section .fd-card:nth-child(n+7),
  .home #featured-jewelry-section .fd-card:nth-child(n+7),
  #featured-diamonds-section .fd-card:nth-child(n+7),
  #featured-jewelry-section .fd-card:nth-child(n+7) {
    display: none !important;
  }

  .home #featured-diamonds-section .fd-card:nth-child(-n+6),
  .home #featured-jewelry-section .fd-card:nth-child(-n+6),
  #featured-diamonds-section .fd-card:nth-child(-n+6),
  #featured-jewelry-section .fd-card:nth-child(-n+6) {
    display: block !important;
  }
}


/* v32 force six featured cards visible on mobile */
@media (max-width:768px){
  .home #featured-diamonds-section .fd-card:nth-child(6),
  .home #featured-jewelry-section .fd-card:nth-child(6),
  #featured-diamonds-section .fd-card:nth-child(6),
  #featured-jewelry-section .fd-card:nth-child(6){
    display:block !important;
  }
  .home #featured-diamonds-section .fd-card:nth-child(n+7),
  .home #featured-jewelry-section .fd-card:nth-child(n+7),
  #featured-diamonds-section .fd-card:nth-child(n+7),
  #featured-jewelry-section .fd-card:nth-child(n+7){
    display:none !important;
  }
}


/* v33 Mobile-only Diamonds + Jewelry archive two-column product layout */
@media (max-width: 768px) {
  body.post-type-archive-md_diamond .listing-grid,
  body.post-type-archive-md_jewelry .listing-grid,
  body.tax-md_jewelry_category .listing-grid,
  body.tax-md_diamond_shape .listing-grid,
  body.archive .listing-grid,
  .diamonds-page .listing-grid,
  .jewelry-page .listing-grid,
  .diamond-archive .listing-grid,
  .jewelry-archive .listing-grid,
  .products-grid,
  .archive-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-md_diamond .listing-card,
  body.post-type-archive-md_jewelry .listing-card,
  body.tax-md_jewelry_category .listing-card,
  body.tax-md_diamond_shape .listing-card,
  body.archive .listing-card,
  .diamonds-page .listing-card,
  .jewelry-page .listing-card,
  .diamond-archive .listing-card,
  .jewelry-archive .listing-card,
  .products-grid .listing-card,
  .archive-grid .listing-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .listing-card-img,
  body.post-type-archive-md_jewelry .listing-card-img,
  body.post-type-archive-md_diamond .listing-card-image,
  body.post-type-archive-md_jewelry .listing-card-image,
  body.archive .listing-card-img,
  body.archive .listing-card-image,
  .listing-card-img,
  .listing-card-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f7f7f5 !important;
  }

  body.post-type-archive-md_diamond .listing-card-img img,
  body.post-type-archive-md_jewelry .listing-card-img img,
  body.post-type-archive-md_diamond .listing-card-image img,
  body.post-type-archive-md_jewelry .listing-card-image img,
  body.archive .listing-card-img img,
  body.archive .listing-card-image img,
  .listing-card-img img,
  .listing-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    transform: none !important;
  }

  body.post-type-archive-md_diamond .listing-card-body,
  body.post-type-archive-md_jewelry .listing-card-body,
  body.archive .listing-card-body,
  .listing-card-body {
    padding: 10px 4px 0 !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .listing-card-title,
  body.post-type-archive-md_jewelry .listing-card-title,
  body.archive .listing-card-title,
  .listing-card-title,
  body.post-type-archive-md_diamond .listing-card-name,
  body.post-type-archive-md_jewelry .listing-card-name,
  body.archive .listing-card-name,
  .listing-card-name {
    font-size: 0.86rem !important;
    line-height: 1.22 !important;
    margin: 0 0 5px !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .listing-card-price,
  body.post-type-archive-md_jewelry .listing-card-price,
  body.archive .listing-card-price,
  .listing-card-price,
  body.post-type-archive-md_diamond .listing-card-price-row,
  body.post-type-archive-md_jewelry .listing-card-price-row,
  body.archive .listing-card-price-row,
  .listing-card-price-row {
    display: block !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .listing-card-type,
  body.post-type-archive-md_jewelry .listing-card-type,
  body.archive .listing-card-type,
  .listing-card-type,
  body.post-type-archive-md_diamond .listing-card-specs,
  body.post-type-archive-md_jewelry .listing-card-specs,
  body.archive .listing-card-specs,
  .listing-card-specs {
    display: none !important;
  }
}

@media (max-width: 390px) {
  body.post-type-archive-md_diamond .listing-grid,
  body.post-type-archive-md_jewelry .listing-grid,
  body.archive .listing-grid,
  .diamonds-page .listing-grid,
  .jewelry-page .listing-grid,
  .products-grid,
  .archive-grid {
    gap: 16px 7px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .listing-card-title,
  .listing-card-name {
    font-size: 0.8rem !important;
  }

  .listing-card-price,
  .listing-card-price-row {
    font-size: 0.76rem !important;
  }
}



/* v34 Mobile-only archive tiles full screen width */
@media (max-width:768px){
  body.post-type-archive-md_diamond .listing-grid,
  body.post-type-archive-md_jewelry .listing-grid,
  body.tax-md_jewelry_category .listing-grid,
  body.tax-md_diamond_shape .listing-grid,
  body.archive .listing-grid,
  .products-grid,
  .archive-grid{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding-left:0 !important;
    padding-right:0 !important;
    gap:18px 8px !important;
  }

  body.post-type-archive-md_diamond .listing-grid > *,
  body.post-type-archive-md_jewelry .listing-grid > *,
  body.archive .listing-grid > *,
  .products-grid > *,
  .archive-grid > *{
    min-width:0 !important;
  }

  body.post-type-archive-md_diamond main,
  body.post-type-archive-md_jewelry main,
  body.archive main,
  body.post-type-archive-md_diamond .page-center,
  body.post-type-archive-md_jewelry .page-center,
  body.archive .page-center{
    overflow-x:hidden !important;
  }
}

@media (max-width:390px){
  body.post-type-archive-md_diamond .listing-grid,
  body.post-type-archive-md_jewelry .listing-grid,
  body.archive .listing-grid,
  .products-grid,
  .archive-grid{
    gap:16px 6px !important;
  }
}


/* v35 Mobile-only filter cleanup: keep Lab/Natural visible, put other filters behind More Filters, compact shapes */
@media (max-width: 768px) {
  /* Main filter bars: allow the visible controls to fit cleanly */
  .diamond-filters,
  .jewelry-filters,
  .archive-filters,
  .listing-filters,
  .filters-bar,
  .filters-toolbar,
  .filter-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Hide every direct filter group on mobile by default... */
  .diamond-filters .filter-group,
  .jewelry-filters .filter-group,
  .archive-filters .filter-group,
  .listing-filters .filter-group,
  .filters-bar .filter-group,
  .filters-toolbar .filter-group,
  .filter-toolbar .filter-group,
  .diamond-filters .filter-field,
  .jewelry-filters .filter-field,
  .archive-filters .filter-field,
  .listing-filters .filter-field,
  .filters-bar .filter-field,
  .filters-toolbar .filter-field,
  .filter-toolbar .filter-field {
    display: none !important;
  }

  /* ...except Lab/Natural and More Filters controls */
  .filter-group.lab-natural,
  .filter-group.lab-natural-filter,
  .filter-group.diamond-type,
  .filter-group.diamond-origin,
  .filter-group[data-filter*="lab"],
  .filter-group[data-filter*="natural"],
  .filter-field.lab-natural,
  .filter-field.lab-natural-filter,
  .filter-field.diamond-type,
  .filter-field.diamond-origin,
  .filter-field[data-filter*="lab"],
  .filter-field[data-filter*="natural"],
  [class*="lab-natural"],
  [class*="diamond-origin"],
  [class*="diamond-type"],
  .more-filters,
  .more-filters-button,
  .filter-more,
  .filter-more-button,
  button[class*="more-filter"],
  a[class*="more-filter"] {
    display: flex !important;
  }

  /* Hide common standalone filters unless they are inside the More Filters drawer/panel */
  .diamond-filters .shape-filter,
  .diamond-filters .carat-filter,
  .diamond-filters .color-filter,
  .diamond-filters .clarity-filter,
  .diamond-filters .cut-filter,
  .diamond-filters .price-filter,
  .diamond-filters .metal-filter,
  .diamond-filters .category-filter,
  .archive-filters .shape-filter,
  .archive-filters .carat-filter,
  .archive-filters .color-filter,
  .archive-filters .clarity-filter,
  .archive-filters .cut-filter,
  .archive-filters .price-filter,
  .archive-filters .metal-filter,
  .archive-filters .category-filter,
  .listing-filters .shape-filter,
  .listing-filters .carat-filter,
  .listing-filters .color-filter,
  .listing-filters .clarity-filter,
  .listing-filters .cut-filter,
  .listing-filters .price-filter,
  .listing-filters .metal-filter,
  .listing-filters .category-filter {
    display: none !important;
  }

  /* But keep all fields visible inside the More Filters panel/drawer once opened */
  .more-filters-panel .filter-group,
  .more-filters-panel .filter-field,
  .more-filters-drawer .filter-group,
  .more-filters-drawer .filter-field,
  .filter-drawer .filter-group,
  .filter-drawer .filter-field,
  .filters-drawer .filter-group,
  .filters-drawer .filter-field,
  .mobile-filter-drawer .filter-group,
  .mobile-filter-drawer .filter-field,
  .modal-filters .filter-group,
  .modal-filters .filter-field {
    display: block !important;
  }

  /* Compact shape filters into 1–2 rows on mobile */
  .more-filters-panel .shape-options,
  .more-filters-drawer .shape-options,
  .filter-drawer .shape-options,
  .filters-drawer .shape-options,
  .mobile-filter-drawer .shape-options,
  .modal-filters .shape-options,
  .shape-filter .filter-options,
  .shape-filter-options,
  .diamond-shape-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .more-filters-panel .shape-options > *,
  .more-filters-drawer .shape-options > *,
  .filter-drawer .shape-options > *,
  .filters-drawer .shape-options > *,
  .mobile-filter-drawer .shape-options > *,
  .modal-filters .shape-options > *,
  .shape-filter .filter-options > *,
  .shape-filter-options > *,
  .diamond-shape-options > *,
  .shape-filter button,
  .shape-filter a,
  .shape-filter label {
    flex: 1 1 calc(25% - 6px) !important;
    min-width: 0 !important;
    max-width: calc(25% - 6px) !important;
    height: 34px !important;
    padding: 6px 4px !important;
    font-size: 0.62rem !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 390px) {
  .shape-filter .filter-options > *,
  .shape-filter-options > *,
  .diamond-shape-options > *,
  .shape-filter button,
  .shape-filter a,
  .shape-filter label {
    flex-basis: calc(33.333% - 6px) !important;
    max-width: calc(33.333% - 6px) !important;
    font-size: 0.56rem !important;
  }
}



/* v36 Exact mobile diamond filter layout */
@media (max-width: 768px) {
  /* Keep Lab/Natural visible */
  .diamonds-topbar .dtb-origin,
  .dtb-origin {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 12px !important;
    gap: 0 !important;
  }

  .dtb-origin-btn {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
  }

  /* Hide visible shape row and topbar filter groups on mobile */
  .diamonds-topbar .dtb-shapes-wrap,
  .diamonds-topbar .dtb-bar,
  .diamonds-topbar .dtb-bar-group,
  .dtb-shapes-wrap,
  .dtb-bar {
    display: none !important;
  }

  /* Keep More Filters / Clear row visible */
  .diamonds-topbar .dtb-bottom,
  .dtb-bottom {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .dtb-advanced-btn,
  .dtb-clear-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  /* Advanced drawer layout */
  .dtb-advanced-drawer,
  .dtb-advanced-drawer.open,
  #dtb-advanced-drawer.open {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dtb-advanced-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  /* Shape filters inside drawer/topbar: compact 1-2 rows */
  .dtb-advanced-drawer .dtb-shapes-wrap,
  .dtb-advanced-drawer .dtb-shapes,
  #dtb-advanced-drawer .dtb-shapes-wrap,
  #dtb-advanced-drawer .dtb-shapes {
    display: flex !important;
  }

  .dtb-advanced-drawer .dtb-shapes-wrap,
  #dtb-advanced-drawer .dtb-shapes-wrap {
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  .dtb-advanced-drawer .dtb-shapes,
  #dtb-advanced-drawer .dtb-shapes,
  .dtb-shapes {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: stretch !important;
  }

  .dtb-advanced-drawer .dtb-shape-btn,
  #dtb-advanced-drawer .dtb-shape-btn,
  .dtb-shape-btn {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px 2px 6px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .dtb-shape-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .dtb-shape-btn span {
    font-size: 0.48rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .dtb-advanced-drawer .dtb-shapes,
  #dtb-advanced-drawer .dtb-shapes,
  .dtb-shapes {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .dtb-shape-btn span {
    font-size: 0.44rem !important;
  }
}



/* v37 Correct mobile diamond filters: hide top shapes, keep advanced drawer collapsed, compact opened filters */
@media (max-width: 768px) {
  /* Main mobile filter area */
  .diamonds-topbar {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
  }

  .diamonds-topbar-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Keep only Natural / Lab-Grown visible above More Filters */
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-origin,
  .diamonds-topbar .dtb-origin {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
  }

  .diamonds-topbar .dtb-origin-btn {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    padding: 12px 10px !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.10em !important;
  }

  /* Hide the top shape selector and any regular filter bar on mobile */
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-shapes-wrap,
  .diamonds-topbar .dtb-shapes-wrap:not(#dtb-advanced-drawer .dtb-shapes-wrap),
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-bar,
  .diamonds-topbar .dtb-bar {
    display: none !important;
  }

  /* More Filters / Clear All row */
  .diamonds-topbar .dtb-bottom {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid rgba(12,31,53,0.18) !important;
  }

  .diamonds-topbar .dtb-advanced-btn,
  .diamonds-topbar .dtb-clear-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* CRITICAL: advanced drawer must remain hidden until the existing JS opens it */
  #dtb-advanced-drawer,
  .dtb-advanced-drawer {
    display: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    border-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #dtb-advanced-drawer.open,
  #dtb-advanced-drawer.is-open,
  #dtb-advanced-drawer.active,
  .dtb-advanced-drawer.open,
  .dtb-advanced-drawer.is-open,
  .dtb-advanced-drawer.active,
  body.dtb-advanced-open #dtb-advanced-drawer {
    display: block !important;
    width: 100% !important;
    padding: 18px 0 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner,
  .dtb-advanced-drawer .dtb-advanced-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 18px !important;
    box-sizing: border-box !important;
  }

  #dtb-advanced-drawer .dtb-adv-group,
  .dtb-advanced-drawer .dtb-adv-group {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  #dtb-advanced-drawer .dtb-section-label,
  .dtb-advanced-drawer .dtb-section-label {
    font-size: 0.70rem !important;
    letter-spacing: 0.16em !important;
    margin: 0 0 8px !important;
  }

  #dtb-advanced-drawer .dtb-adv-chips,
  .dtb-advanced-drawer .dtb-adv-chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #dtb-advanced-drawer .dtb-chip,
  .dtb-advanced-drawer .dtb-chip {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 6px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Shape filters only if/when inside the advanced drawer */
  #dtb-advanced-drawer .dtb-shapes-wrap,
  .dtb-advanced-drawer .dtb-shapes-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #dtb-advanced-drawer .dtb-shapes,
  .dtb-advanced-drawer .dtb-shapes {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn,
  .dtb-advanced-drawer .dtb-shape-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 2px !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn svg,
  .dtb-advanced-drawer .dtb-shape-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn span,
  .dtb-advanced-drawer .dtb-shape-btn span {
    font-size: 0.44rem !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 390px) {
  #dtb-advanced-drawer .dtb-adv-chips,
  .dtb-advanced-drawer .dtb-adv-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #dtb-advanced-drawer .dtb-shapes,
  .dtb-advanced-drawer .dtb-shapes {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .diamonds-topbar .dtb-advanced-btn,
  .diamonds-topbar .dtb-clear-btn {
    font-size: 0.66rem !important;
    letter-spacing: 0.09em !important;
  }
}



/* v38 Mobile slide-out Filters drawer */
@media (max-width:768px){
  html body.dtb-advanced-open{
    overflow:hidden !important;
  }

  .diamonds-topbar{
    padding-left:16px !important;
    padding-right:16px !important;
    overflow:visible !important;
  }

  .diamonds-topbar .dtb-origin{
    display:flex !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 16px !important;
  }

  .diamonds-topbar .dtb-origin-btn,
  .dtb-origin-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    flex:1 1 50% !important;
    max-width:50% !important;
    min-width:0 !important;
    padding:12px 8px !important;
    line-height:1 !important;
  }

  /* Hide all main-page filters except origin + Filters trigger */
  .diamonds-topbar .dtb-shapes,
  .diamonds-topbar .dtb-bar{
    display:none !important;
  }

  .diamonds-topbar .dtb-bottom{
    display:flex !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:0 !important;
    width:100% !important;
    padding:0 0 18px !important;
    margin:0 !important;
    border-bottom:1px solid rgba(12,31,53,0.16) !important;
  }

  .diamonds-topbar .dtb-advanced-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:var(--ink) !important;
    font-family:var(--font-sans) !important;
    font-size:0.82rem !important;
    letter-spacing:0.14em !important;
    text-transform:uppercase !important;
    box-shadow:none !important;
  }

  .diamonds-topbar .dtb-advanced-btn svg{
    display:none !important;
  }

  .diamonds-topbar .dtb-clear-btn:not(.dtb-drawer-clear){
    display:none !important;
  }

  /* Slide-out drawer */
  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    display:block !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:min(88vw, 380px) !important;
    max-width:88vw !important;
    height:100dvh !important;
    background:#fff !important;
    z-index:99999 !important;
    transform:translateX(-105%) !important;
    transition:transform .28s ease !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    padding:0 !important;
    margin:0 !important;
    border-right:1px solid rgba(12,31,53,0.16) !important;
    box-shadow:0 18px 60px rgba(0,0,0,.20) !important;
  }

  #dtb-advanced-drawer.open,
  .dtb-advanced-drawer.open,
  body.dtb-advanced-open #dtb-advanced-drawer{
    transform:translateX(0) !important;
  }

  body.dtb-advanced-open::after{
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.34) !important;
    z-index:99998 !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding:18px 18px 34px !important;
    box-sizing:border-box !important;
  }

  .dtb-mobile-drawer-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:0 0 18px !important;
    margin-bottom:18px !important;
    border-bottom:1px solid rgba(12,31,53,0.14) !important;
  }

  .dtb-drawer-clear{
    display:inline-flex !important;
    width:auto !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:var(--ink) !important;
    font-size:.76rem !important;
    letter-spacing:.13em !important;
    text-transform:uppercase !important;
  }

  .dtb-drawer-close{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:34px !important;
    height:34px !important;
    border:1px solid rgba(12,31,53,.18) !important;
    background:#fff !important;
    color:var(--ink) !important;
    font-size:1.35rem !important;
    line-height:1 !important;
    cursor:pointer !important;
  }

  #dtb-advanced-drawer .dtb-adv-group{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 22px !important;
  }

  #dtb-advanced-drawer .dtb-section-label{
    display:block !important;
    color:var(--ink) !important;
    font-size:.72rem !important;
    letter-spacing:.16em !important;
    text-transform:uppercase !important;
    margin:0 0 10px !important;
  }

  #dtb-advanced-drawer .dtb-adv-chips{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }

  #dtb-advanced-drawer .dtb-chip{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:10px 6px !important;
    font-size:.64rem !important;
    letter-spacing:.08em !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }

  /* Shape menu: text only, no icons */
  #dtb-advanced-drawer .dtb-shapes{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:10px 6px !important;
    border:1.5px solid var(--linen-dark) !important;
    border-radius:var(--r-sm) !important;
    background:transparent !important;
    box-sizing:border-box !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn svg{
    display:none !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn span{
    color:var(--ink) !important;
    font-size:.62rem !important;
    letter-spacing:.07em !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
  }
}

@media (max-width:390px){
  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    width:90vw !important;
    max-width:90vw !important;
  }
  #dtb-advanced-drawer .dtb-chip,
  #dtb-advanced-drawer .dtb-shape-btn span{
    font-size:.58rem !important;
  }
}



/* v39 complete mobile diamond filter drawer + hide original shape row */
@media (max-width:768px){
  /* Hide the original shape row below Natural/Lab on mobile */
  .diamonds-topbar-inner > .dtb-shapes,
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-shapes,
  .diamonds-topbar .dtb-shapes:not(#dtb-advanced-drawer .dtb-shapes),
  body:not(.dtb-advanced-open) .diamonds-topbar .dtb-shapes {
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* Keep drawer shape menu visible when drawer is open */
  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shapes{
    display:grid !important;
    visibility:visible !important;
    height:auto !important;
    overflow:visible !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    margin:0 !important;
    padding:0 !important;
  }

  #dtb-advanced-drawer .dtb-adv-group{
    display:block !important;
  }

  #dtb-advanced-drawer .dtb-adv-chips-compact{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }

  #dtb-advanced-drawer .dtb-drawer-carat-group .dtb-range-wrap{
    display:flex !important;
    position:relative !important;
    height:34px !important;
    align-items:center !important;
    width:100% !important;
  }

  #dtb-advanced-drawer .dtb-drawer-carat-group .dtb-range{
    display:block !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn svg{
    display:none !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    width:100% !important;
    padding:10px 6px !important;
  }

  #dtb-advanced-drawer .dtb-shape-btn span{
    display:block !important;
    color:var(--ink) !important;
    font-size:.62rem !important;
    letter-spacing:.07em !important;
  }
}
@media (max-width:390px){
  #dtb-advanced-drawer .dtb-adv-chips-compact{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}


/* v40 Mobile drawer scroll lock + shape visibility correction */
@media (max-width:768px){
  html.dtb-advanced-open,
  body.dtb-advanced-open{
    overflow:hidden !important;
    height:100% !important;
    position:fixed !important;
    width:100% !important;
    touch-action:none !important;
  }

  /* Hide ONLY the original shape row under Lab/Natural on mobile */
  .diamonds-topbar .dtb-main-shapes,
  .diamonds-topbar-inner > .dtb-main-shapes,
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-main-shapes {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    pointer-events:none !important;
  }

  /* Drawer must scroll itself, not the page behind it */
  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    padding-bottom:80px !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner{
    min-height:100% !important;
    padding-bottom:110px !important;
  }

  /* Make Shape visible inside the drawer */
  #dtb-advanced-drawer .dtb-drawer-shapes-group,
  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shapes,
  #dtb-advanced-drawer .dtb-drawer-shapes,
  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shape-btn {
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shapes,
  #dtb-advanced-drawer .dtb-drawer-shapes {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shape-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:10px 6px !important;
    border:1.5px solid var(--linen-dark) !important;
    background:#fff !important;
    box-sizing:border-box !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shape-btn svg{
    display:none !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes-group .dtb-shape-btn span{
    display:block !important;
    color:var(--ink) !important;
    -webkit-text-fill-color:var(--ink) !important;
    font-size:.62rem !important;
    letter-spacing:.07em !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
  }

  #dtb-advanced-drawer.open{
    transform:translateX(0) !important;
  }
}


/* v41 definitive mobile diamond drawer scroll + remove main shape row */
@media (max-width:768px){
  html.dtb-advanced-open,
  body.dtb-advanced-open{
    overflow:hidden !important;
  }

  /* The main page shape row was removed in PHP; this catches any cached/duplicate shape strip */
  .diamonds-topbar .dtb-shapes,
  .diamonds-topbar-inner > .dtb-shapes,
  .diamonds-topbar > .diamonds-topbar-inner > .dtb-shapes{
    display:none !important;
    height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    visibility:hidden !important;
    opacity:0 !important;
    margin:0 !important;
    padding:0 !important;
    pointer-events:none !important;
  }

  /* The drawer itself is the scroll container */
  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    display:block !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:auto !important;
    width:min(88vw,380px) !important;
    max-width:88vw !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:scroll !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior-y:contain !important;
    touch-action:pan-y !important;
    background:#fff !important;
    z-index:99999 !important;
    transform:translateX(-105%) !important;
    transition:transform .28s ease !important;
    padding:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  #dtb-advanced-drawer.open,
  body.dtb-advanced-open #dtb-advanced-drawer{
    transform:translateX(0) !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner{
    display:block !important;
    width:100% !important;
    min-height:calc(100dvh + 1px) !important;
    padding:18px 18px 140px !important;
    box-sizing:border-box !important;
  }

  body.dtb-advanced-open::after{
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.34) !important;
    z-index:99998 !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes-group,
  #dtb-advanced-drawer .dtb-drawer-shapes{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  #dtb-advanced-drawer .dtb-drawer-shapes{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
  }

  #dtb-advanced-drawer .dtb-shape-text-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:10px 6px !important;
    font-size:.62rem !important;
    letter-spacing:.07em !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
}


/* v42 Reliable mobile inner-scroll filter drawer */
@media (max-width:768px){
  html.dtb-advanced-open,
  body.dtb-advanced-open{
    overflow:hidden !important;
    height:100% !important;
  }

  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    display:block !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:min(88vw,380px) !important;
    max-width:88vw !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:hidden !important;
    background:#fff !important;
    z-index:99999 !important;
    transform:translateX(-105%) !important;
    transition:transform .28s ease !important;
    padding:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    touch-action:auto !important;
  }

  #dtb-advanced-drawer.open,
  body.dtb-advanced-open #dtb-advanced-drawer{
    transform:translateX(0) !important;
  }

  #dtb-advanced-drawer .dtb-drawer-scrollarea{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    touch-action:pan-y !important;
    padding:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner{
    display:block !important;
    min-height:calc(100dvh + 260px) !important;
    padding:18px 18px 220px !important;
    box-sizing:border-box !important;
  }

  body.dtb-advanced-open::after{
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.34) !important;
    z-index:99998 !important;
  }

  .diamonds-topbar .dtb-shapes,
  .diamonds-topbar-inner > .dtb-shapes{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
  }
}


/* v43 Desktop restore: mobile drawer additions must not appear on desktop */
@media (min-width: 769px) {
  #dtb-advanced-drawer .dtb-mobile-drawer-head,
  #dtb-advanced-drawer .dtb-drawer-shapes-group,
  #dtb-advanced-drawer .dtb-drawer-carat-group,
  #dtb-advanced-drawer .dtb-drawer-scrollarea > .dtb-advanced-inner > .dtb-adv-group:nth-of-type(2),
  #dtb-advanced-drawer .dtb-drawer-scrollarea > .dtb-advanced-inner > .dtb-adv-group:nth-of-type(3),
  #dtb-advanced-drawer .dtb-drawer-scrollarea > .dtb-advanced-inner > .dtb-adv-group:nth-of-type(4),
  #dtb-advanced-drawer .dtb-drawer-scrollarea > .dtb-advanced-inner > .dtb-adv-group:nth-of-type(5),
  #dtb-advanced-drawer .dtb-drawer-scrollarea > .dtb-advanced-inner > .dtb-adv-group:nth-of-type(6) {
    display: none !important;
  }

  #dtb-advanced-drawer,
  .dtb-advanced-drawer {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    border-right: 0 !important;
    background: transparent !important;
    z-index: auto !important;
  }

  #dtb-advanced-drawer .dtb-drawer-scrollarea {
    position: static !important;
    inset: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  #dtb-advanced-drawer .dtb-advanced-inner {
    min-height: 0 !important;
    padding: initial !important;
  }

  html.dtb-advanced-open,
  body.dtb-advanced-open {
    overflow: auto !important;
    height: auto !important;
  }

  body.dtb-advanced-open::after {
    display: none !important;
    content: none !important;
  }
}

/* v43 Mobile: keep drawer-only additions mobile */
@media (max-width: 768px) {
  #dtb-advanced-drawer .dtb-mobile-drawer-head,
  #dtb-advanced-drawer .dtb-drawer-shapes-group,
  #dtb-advanced-drawer .dtb-drawer-carat-group {
    display: block !important;
  }
}


/* v44 Ensure listings render outside mobile filter drawer */
@media (max-width:768px){
  #dtb-advanced-drawer .listing-grid,
  #dtb-advanced-drawer .diamond-listings,
  #dtb-advanced-drawer .products-grid,
  #dtb-advanced-drawer .archive-grid,
  #dtb-advanced-drawer .listing-card{
    display:none !important;
  }

  body.post-type-archive-md_diamond .listing-grid,
  body.post-type-archive-md_jewelry .listing-grid,
  body.archive .listing-grid{
    position:relative !important;
    z-index:1 !important;
  }

  #dtb-advanced-drawer{
    z-index:99999 !important;
  }
}


/* v45 Mobile: remove excessive gap below Filters before listing toolbar */
@media (max-width:768px){
  .diamonds-topbar,
  .diamonds-topbar-inner{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }

  .diamonds-topbar .dtb-bottom{
    margin-bottom:0 !important;
    padding-bottom:16px !important;
    border-bottom:1px solid rgba(12,31,53,0.16) !important;
  }

  .dtb-listing-wrap{
    margin-top:0 !important;
    padding-top:18px !important;
  }

  .dtb-listing-wrap .inner{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  .listing-toolbar{
    margin-top:0 !important;
    padding-top:0 !important;
    margin-bottom:18px !important;
  }

  /* cancel any accidental mobile drawer spacing leaking into normal document flow */
  #dtb-advanced-drawer:not(.open){
    height:0 !important;
    max-height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    pointer-events:none !important;
  }

  #dtb-advanced-drawer.open{
    height:100dvh !important;
    max-height:100dvh !important;
    pointer-events:auto !important;
  }
}


/* v46 Mobile: fully remove remaining gap between Filters and listings */
@media (max-width:768px){
  /* Keep the closed drawer completely out of page layout */
  #dtb-advanced-drawer:not(.open),
  .dtb-advanced-drawer:not(.open){
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:min(88vw,380px) !important;
    height:100dvh !important;
    max-height:100dvh !important;
    transform:translateX(-105%) !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
    pointer-events:none !important;
    visibility:hidden !important;
  }

  #dtb-advanced-drawer.open,
  .dtb-advanced-drawer.open{
    position:fixed !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateX(0) !important;
  }

  /* Tighten the actual archive layout below the topbar */
  .diamonds-topbar{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }

  .diamonds-topbar-inner{
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }

  .diamonds-topbar .dtb-bottom{
    margin-bottom:0 !important;
    padding-bottom:10px !important;
  }

  .dtb-listing-wrap{
    margin-top:0 !important;
    padding-top:12px !important;
  }

  .dtb-listing-wrap .inner{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  .listing-toolbar{
    margin-top:0 !important;
    padding-top:0 !important;
  }

  /* Remove any inherited min-height/spacing from wrappers */
  .archive-main,
  .diamond-archive,
  .diamonds-archive,
  .listing-section,
  .results-section{
    margin-top:0 !important;
    padding-top:0 !important;
  }
}


/* v47 Global archive spacing fix: remove gap between diamond filters and listings */
.diamonds-topbar,
.diamonds-topbar-inner,
.dtb-bottom,
.dtb-listing-wrap,
.dtb-listing-wrap .inner,
.listing-toolbar {
  margin-top: 0 !important;
}

.diamonds-topbar,
.diamonds-topbar-inner {
  margin-bottom: 0 !important;
}

.dtb-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 14px !important;
}

.dtb-listing-wrap {
  padding-top: 18px !important;
  margin-top: 0 !important;
}

.dtb-listing-wrap .inner {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.listing-toolbar {
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

/* Closed advanced filter drawer must not create document height on desktop or mobile */
#dtb-advanced-drawer:not(.open),
.dtb-advanced-drawer:not(.open) {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Open drawer behavior restored where needed */
#dtb-advanced-drawer.open,
.dtb-advanced-drawer.open {
  display: block !important;
}

@media (max-width:768px){
  #dtb-advanced-drawer:not(.open),
  .dtb-advanced-drawer:not(.open){
    display:block !important;
    position:fixed !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateX(-105%) !important;
    height:100dvh !important;
    max-height:100dvh !important;
  }

  #dtb-advanced-drawer.open,
  .dtb-advanced-drawer.open{
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateX(0) !important;
  }

  .dtb-listing-wrap {
    padding-top: 12px !important;
  }

  .dtb-bottom {
    padding-bottom: 10px !important;
  }
}


/* v48 hard fix: remove archive gap caused by listing wrapper / hidden drawer flow */
.dtb-listing-wrap {
  padding-top: 0.75rem !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

.dtb-listing-wrap .inner,
.dtb-listing-wrap .listing-toolbar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.dtb-advanced-drawer:not(.open),
#dtb-advanced-drawer:not(.open) {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

@media (max-width: 768px) {
  .diamonds-topbar {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .dtb-bottom {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0 !important;
  }

  .dtb-listing-wrap {
    padding-top: 0.75rem !important;
  }
}


/* v49 collapse any extra container between filters and listings */
.dtb-listing-wrap-no-gap,
.dtb-listing-wrap {
  clear: both !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

.dtb-listing-wrap-no-gap > .inner,
.dtb-listing-wrap > .inner {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.diamonds-topbar + .dtb-advanced-drawer:not(.open) + .dtb-listing-wrap,
.diamonds-topbar + .dtb-advanced-drawer:not(.open) + .dtb-listing-wrap-no-gap,
#dtb-advanced-drawer:not(.open) + .dtb-listing-wrap,
#dtb-advanced-drawer:not(.open) + .dtb-listing-wrap-no-gap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#dtb-advanced-drawer:not(.open),
.dtb-advanced-drawer:not(.open) {
  display: none !important;
  position: absolute !important;
  left: -99999px !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width:768px){
  #dtb-advanced-drawer:not(.open),
  .dtb-advanced-drawer:not(.open) {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    width: min(88vw, 380px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-105%) !important;
  }

  #dtb-advanced-drawer.open,
  .dtb-advanced-drawer.open {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .diamonds-topbar {
    padding-bottom: 0 !important;
  }

  .dtb-bottom {
    padding-bottom: 12px !important;
  }

  .dtb-listing-wrap,
  .dtb-listing-wrap-no-gap {
    padding-top: 0 !important;
  }
}


/* v50 definitive drawer fix: overlay only, never affects layout */
#dtb-advanced-drawer,
.dtb-advanced-drawer{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: min(88vw, 380px) !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 99999 !important;
  transform: translateX(-110%) !important;
  transition: transform .28s ease !important;
  pointer-events: none !important;
}

#dtb-advanced-drawer.open,
.dtb-advanced-drawer.open{
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

#dtb-advanced-drawer .dtb-drawer-scrollarea{
  position:absolute !important;
  inset:0 !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
}

/* remove all possible spacing below filters */
.diamonds-topbar,
.diamonds-topbar-inner,
.dtb-bottom,
.dtb-listing-wrap,
.dtb-listing-wrap .inner{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

.dtb-bottom{padding-bottom:12px !important;}
.dtb-listing-wrap{padding-top:0 !important; min-height:0 !important;}

/* v51 Desktop: show only Lab/Natural controls */
@media (min-width:769px){
  .diamonds-topbar .dtb-shapes,
  .diamonds-topbar .dtb-bar,
  .diamonds-topbar .dtb-bottom,
  .dtb-advanced-btn,
  .dtb-clear-btn{
    display:none !important;
  }
  .diamonds-topbar .dtb-origin{
    display:flex !important;
    width:100% !important;
    max-width:420px !important;
    margin:0 auto 16px !important;
  }
  .diamonds-topbar .dtb-origin-btn{
    flex:1 1 50% !important;
    text-align:center !important;
    justify-content:center !important;
  }
}


/* v52 Mobile filter area space collapse */
@media (max-width:768px){
  /* Only origin + Filters row should consume space on mobile */
  .diamonds-topbar{
    padding-top:16px !important;
    padding-bottom:0 !important;
    margin-bottom:0 !important;
  }

  .diamonds-topbar-inner{
    padding:0 !important;
    margin:0 !important;
    min-height:0 !important;
  }

  .diamonds-topbar .dtb-origin{
    margin:0 0 12px !important;
  }

  .diamonds-topbar .dtb-bottom{
    padding:0 0 10px !important;
    margin:0 !important;
    min-height:0 !important;
    border-bottom:1px solid rgba(12,31,53,.16) !important;
  }

  /* Hide every old mobile filter block from the page flow */
  .diamonds-topbar .dtb-shapes,
  .diamonds-topbar .dtb-main-shapes,
  .diamonds-topbar .dtb-bar,
  .diamonds-topbar .dtb-bar-group,
  .diamonds-topbar .dtb-sliders,
  .diamonds-topbar .dtb-shapes-wrap{
    display:none !important;
    height:0 !important;
    max-height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  /* Drawer is fixed overlay and cannot add vertical page space */
  #dtb-advanced-drawer,
  .dtb-advanced-drawer{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:auto !important;
    width:min(88vw,380px) !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:0 !important;
    transform:translateX(-110%) !important;
    pointer-events:none !important;
    overflow:hidden !important;
    display:block !important;
  }

  #dtb-advanced-drawer.open,
  .dtb-advanced-drawer.open{
    transform:translateX(0) !important;
    pointer-events:auto !important;
  }

  #dtb-advanced-drawer .dtb-drawer-scrollarea{
    position:absolute !important;
    inset:0 !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .dtb-listing-wrap,
  .dtb-listing-wrap-no-gap{
    padding-top:0 !important;
    margin-top:0 !important;
    min-height:0 !important;
  }

  .dtb-listing-wrap .inner,
  .dtb-listing-wrap-no-gap .inner,
  .listing-toolbar{
    padding-top:0 !important;
    margin-top:0 !important;
  }
}

/* v77: Jewelry archive filter row copied from diamond archive formatting */
.jewelry-archive-page .archive-layout {
  max-width: 1650px !important;
  padding-top: 1.45rem !important;
}
.jewelry-archive-page .filter-sidebar.jewelry-filter-row {
  width: 100% !important;
  max-width: 1900px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  margin: 0 auto 1.35rem !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}
.jewelry-archive-page .jewelry-filter {
  position: relative !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.jewelry-archive-page .jewelry-filter .filter-group-toggle {
  min-height: auto !important;
  padding: .12rem 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  gap: .45rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  font-size: .95rem !important;
  line-height: 1.9 !important;
}
.jewelry-archive-page .jewelry-filter .filter-group-label {
  font-size: .95rem !important;
  line-height: 1.9 !important;
  letter-spacing: .08em !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
.jewelry-archive-page .jewelry-filter .filter-group-arrow {
  width: 14px !important;
  transition: transform .18s ease !important;
}
.jewelry-archive-page .jewelry-filter .filter-chips {
  position: absolute !important;
  z-index: 50 !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 220px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .35rem !important;
  background: var(--white) !important;
  border: 1px solid var(--linen-dark) !important;
  box-shadow: 0 18px 35px rgba(0,0,0,.08) !important;
  padding: .7rem !important;
  margin-top: .55rem !important;
  flex-wrap: nowrap !important;
}
.jewelry-archive-page .jewelry-filter .filter-chips.filter-chips--collapsed {
  display: none !important;
}
.jewelry-archive-page .jewelry-filter .filter-list-option {
  width: 100% !important;
  display: block !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  text-align: left !important;
  padding: .62rem .75rem !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 6px !important;
}
.jewelry-archive-page .jewelry-filter .filter-list-option.active {
  background: var(--linen) !important;
  font-weight: 600 !important;
}
.jewelry-archive-page .jewelry-sort-filter .filter-list-menu {
  right: 0 !important;
  left: auto !important;
}
.jewelry-archive-page .listing-toolbar.jewelry-count-row {
  width: 100% !important;
  display: block !important;
  text-align: left !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 1.1rem !important;
}
.jewelry-archive-page .jewelry-count-row .listing-count {
  display: block !important;
  text-align: left !important;
  margin: 0 !important;
  font-size: .78rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}
.jewelry-archive-page .jewelry-count-row select.listing-sort {
  display: none !important;
}
@media (max-width: 1180px) {
  .jewelry-archive-page .filter-sidebar.jewelry-filter-row {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: .25rem !important;
  }
}

/* v85: Mobile-only filter dropdown fix for Diamonds and Jewelry archives.
   On small screens, dropdown panels open inline instead of being clipped by horizontal scroll containers. */
@media (max-width: 768px) {
  .diamonds-archive-live-feed .listing-toolbar.diamonds-listing-toolbar,
  .jewelry-archive-page .archive-layout {
    overflow: visible !important;
  }

  .diamonds-archive-live-feed .diamond-filter-row,
  .jewelry-archive-page .filter-sidebar.jewelry-filter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  .diamonds-archive-live-feed .diamonds-filter,
  .jewelry-archive-page .jewelry-filter,
  .jewelry-archive-page .jewelry-sort-filter {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    border-bottom: 1px solid var(--linen-dark) !important;
    padding: .2rem 0 !important;
  }

  .diamonds-archive-live-feed .filter-group-toggle,
  .jewelry-archive-page .filter-group-toggle {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: .45rem 0 !important;
    cursor: pointer !important;
  }

  .diamonds-archive-live-feed .filter-chips,
  .diamonds-archive-live-feed .filter-list-menu,
  .diamonds-archive-live-feed .diamond-range-menu,
  .diamonds-archive-live-feed .diamond-step-range-menu,
  .jewelry-archive-page .jewelry-filter .filter-chips,
  .jewelry-archive-page .jewelry-sort-filter .filter-chips {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 5 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 .75rem 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .diamonds-archive-live-feed .filter-chips:not(.filter-chips--collapsed),
  .diamonds-archive-live-feed .filter-list-menu:not(.filter-chips--collapsed),
  .diamonds-archive-live-feed .diamond-range-menu:not(.filter-chips--collapsed),
  .diamonds-archive-live-feed .diamond-step-range-menu:not(.filter-chips--collapsed),
  .jewelry-archive-page .jewelry-filter .filter-chips:not(.filter-chips--collapsed),
  .jewelry-archive-page .jewelry-sort-filter .filter-chips:not(.filter-chips--collapsed) {
    display: grid !important;
  }

  .diamonds-archive-live-feed .diamond-range-menu:not(.filter-chips--collapsed),
  .diamonds-archive-live-feed .diamond-step-range-menu:not(.filter-chips--collapsed) {
    display: block !important;
  }

  .diamonds-archive-live-feed .filter-chips.filter-chips--collapsed,
  .jewelry-archive-page .filter-chips.filter-chips--collapsed {
    display: none !important;
  }

  .diamonds-archive-live-feed .diamond-count-row,
  .jewelry-archive-page .jewelry-count-row {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


/* === v86 header mobile layout polish === */
.nav-cta,
.nav-cta:hover {
  border-bottom: 0 !important;
  text-decoration: none !important;
  padding-bottom: 0 !important;
}
.mobile-header-cart {
  display: none !important;
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 44px 1fr 44px !important;
    align-items: center !important;
  }
  .nav-hamburger {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .nav-logo {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    line-height: 1 !important;
  }
  .mobile-header-cart {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* === v87 mobile header cart polish: remove cart icon circle === */
@media (max-width: 900px) {
  .site-nav > .mobile-header-cart,
  .site-nav > .mobile-header-cart:hover,
  .site-nav > .mobile-header-cart:focus,
  .site-nav > .mobile-header-cart:active {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
}

/* Mobile cart spacing fix */
@media (max-width: 768px) {
  .cart-icon, .header-cart, .cart-button {
    margin-right: 12px !important;
  }
}

/* Increased mobile cart spacing */
@media (max-width: 768px) {
  .cart-icon, .header-cart, .cart-button {
    margin-right: 20px !important;
  }
}


/* === v90 mobile header cart position: move cart away from right edge === */
@media (max-width: 900px) {
  .site-nav > .mobile-header-cart {
    margin-right: 22px !important;
    transform: translateX(-8px) !important;
  }

  .site-nav > .mobile-header-cart:hover,
  .site-nav > .mobile-header-cart:focus,
  .site-nav > .mobile-header-cart:active {
    transform: translateX(-8px) !important;
  }
}



/* === v91 mobile header cart position: fine-tuned spacing === */
@media (max-width: 900px) {
  .site-nav > .mobile-header-cart {
    margin-right: 14px !important;
    transform: translateX(-3px) !important;
  }

  .site-nav > .mobile-header-cart:hover,
  .site-nav > .mobile-header-cart:focus,
  .site-nav > .mobile-header-cart:active {
    transform: translateX(-3px) !important;
  }
}



/* === v92 move search + wishlist to top of mobile drawer === */
@media (max-width: 900px) {
  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-drawer .nav-search,
  .mobile-nav-drawer .nav-wishlist {
    order: -1;
    margin-bottom: 10px;
  }
}



/* === v93 mobile drawer: place search + wishlist icons above Diamonds link === */
@media (max-width: 900px) {
  .mobile-nav .md-mobile-icons {
    display: flex !important;
    order: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
  }

  .mobile-nav .md-mobile-icons .nav-icon-link {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-nav .md-mobile-icons svg {
    width: 22px !important;
    height: 22px !important;
  }
}



/* === v94 increase spacing between mobile drawer icons === */
@media (max-width: 900px) {
  .mobile-nav .md-mobile-icons {
    gap: 28px !important;
  }
}



/* === v95 mobile-only hero height + background video scaling === */
@media (max-width: 900px) {
  .hero,
  .site-hero,
  .home-hero,
  .hero-section,
  .md-hero {
    min-height: 78vh !important;
    height: 78vh !important;
    max-height: none !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .hero video,
  .site-hero video,
  .home-hero video,
  .hero-section video,
  .md-hero video,
  .hero .hero-video,
  .site-hero .hero-video,
  .home-hero .hero-video,
  .hero-section .hero-video,
  .md-hero .hero-video {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .hero iframe,
  .site-hero iframe,
  .home-hero iframe,
  .hero-section iframe,
  .md-hero iframe {
    width: 100vw !important;
    height: 78vh !important;
    min-width: 100vw !important;
    min-height: 78vh !important;
    object-fit: cover !important;
  }
}


/* === v98 mobile hero height: reduced from previous increase === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video,
  .home .hero.has-background-video,
  main .hero.has-background-video,
  .hero.has-background-video {
    min-height: 76vh !important;
    height: 76vh !important;
    max-height: 76vh !important;
    overflow: hidden !important;
  }

  body.home .hero.has-background-video .hero-left,
  .home .hero.has-background-video .hero-left,
  main .hero.has-background-video .hero-left,
  .hero.has-background-video .hero-left {
    min-height: 76vh !important;
    height: 76vh !important;
    max-height: 76vh !important;
  }

  body.home .hero.has-background-video .hero-background-video,
  .home .hero.has-background-video .hero-background-video,
  main .hero.has-background-video .hero-background-video,
  .hero.has-background-video .hero-background-video {
    height: 76vh !important;
    min-height: 76vh !important;
    max-height: 76vh !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}



/* === v100 mobile hero: bottom align title above CTA === */
@media (max-width: 900px) {
  .hero.has-background-video .hero-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .hero.has-background-video .hero-title {
    margin-bottom: 12px !important;
  }

  .hero.has-background-video .hero-buttons {
    margin-bottom: 0 !important;
  }
}


/* === v101 mobile homepage hero: force title + CTA group to bottom === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video,
  .home .hero.has-background-video,
  main .hero.has-background-video,
  .hero.has-background-video {
    display: flex !important;
    align-items: stretch !important;
  }

  body.home .hero.has-background-video .hero-left,
  .home .hero.has-background-video .hero-left,
  main .hero.has-background-video .hero-left,
  .hero.has-background-video .hero-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 42px !important;
    box-sizing: border-box !important;
  }

  body.home .hero.has-background-video .hero-title,
  .home .hero.has-background-video .hero-title,
  main .hero.has-background-video .hero-title,
  .hero.has-background-video .hero-title {
    margin-top: auto !important;
    margin-bottom: 10px !important;
  }

  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  main .hero.has-background-video .hero-buttons,
  .hero.has-background-video .hero-buttons {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}



/* === v102 mobile hero: prevent title/CTA overlap while keeping bottom alignment === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video .hero-left,
  .home .hero.has-background-video .hero-left,
  main .hero.has-background-video .hero-left,
  .hero.has-background-video .hero-left {
    justify-content: flex-end !important;
    gap: 14px !important;
    padding-bottom: 48px !important;
  }

  body.home .hero.has-background-video .hero-title,
  .home .hero.has-background-video .hero-title,
  main .hero.has-background-video .hero-title,
  .hero.has-background-video .hero-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.05 !important;
  }

  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  main .hero.has-background-video .hero-buttons,
  .hero.has-background-video .hero-buttons {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 3 !important;
  }
}


/* === v103 mobile hero: keep Explore Collections link in place, move title up only === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video .hero-left,
  .home .hero.has-background-video .hero-left,
  main .hero.has-background-video .hero-left,
  .hero.has-background-video .hero-left {
    justify-content: flex-end !important;
    gap: 0 !important;
    padding-bottom: 42px !important;
  }

  body.home .hero.has-background-video .hero-title,
  .home .hero.has-background-video .hero-title,
  main .hero.has-background-video .hero-title,
  .hero.has-background-video .hero-title {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
    line-height: 1.05 !important;
  }

  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  main .hero.has-background-video .hero-buttons,
  
}



/* === v104 mobile hero: increase spacing + align CTA with title === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video .hero-title,
  .home .hero.has-background-video .hero-title,
  .hero.has-background-video .hero-title {
    margin-bottom: 40px !important; /* more space above link */
  }

  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  .hero.has-background-video .hero-buttons {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  body.home .hero.has-background-video .hero-buttons .btn-primary,
  .home .hero.has-background-video .hero-buttons .btn-primary,
  .hero.has-background-video .hero-buttons .btn-primary {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}



/* === v105 mobile hero: move Explore Collections link further left to align with title === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  main .hero.has-background-video .hero-buttons,
  

  body.home .hero.has-background-video .hero-buttons .btn-primary,
  .home .hero.has-background-video .hero-buttons .btn-primary,
  main .hero.has-background-video .hero-buttons .btn-primary,
  .hero.has-background-video .hero-buttons .btn-primary,
  body.home .hero.has-background-video .hero-buttons .hero-mobile-link,
  .home .hero.has-background-video .hero-buttons .hero-mobile-link,
  main .hero.has-background-video .hero-buttons .hero-mobile-link,
  .hero.has-background-video .hero-buttons .hero-mobile-link {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}



/* === v106 fine-tune CTA alignment (+2px further left) === */
@media only screen and (max-width: 900px) {
  
}



/* === v107 correct CTA alignment: move 2px opposite direction === */
@media only screen and (max-width: 900px) {
  
}



/* === v108 CTA: move further left === */
@media only screen and (max-width: 900px) {
  
}



/* === v109 CTA: move even further left === */
@media only screen and (max-width: 900px) {
  
}



/* === v110 FIX: force CTA alignment using margin (overrides transform stacking issue) === */
@media only screen and (max-width: 900px) {
  body.home .hero.has-background-video .hero-buttons,
  .home .hero.has-background-video .hero-buttons,
  .hero.has-background-video .hero-buttons {
    transform: none !important;
    margin-left: -18px !important;
  }
}

/* === v111 mobile archive filter row: horizontal swipe, no stacking === */
@media (max-width: 768px) {
  .diamonds-archive-live-feed .listing-toolbar.diamonds-listing-toolbar,
  .jewelry-archive-page .archive-layout {
    overflow: visible !important;
  }

  .diamonds-archive-live-feed .diamond-filter-row,
  .jewelry-archive-page .filter-sidebar.jewelry-filter-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 16px .3rem 16px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
  }

  .diamonds-archive-live-feed .diamond-filter-row::-webkit-scrollbar,
  .jewelry-archive-page .filter-sidebar.jewelry-filter-row::-webkit-scrollbar {
    display: none !important;
  }

  .diamonds-archive-live-feed .diamonds-filter,
  .diamonds-archive-live-feed .diamonds-sort-filter,
  .jewelry-archive-page .jewelry-filter,
  .jewelry-archive-page .jewelry-sort-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    position: relative !important;
  }

  .diamonds-archive-live-feed .filter-group-toggle,
  .jewelry-archive-page .filter-group-toggle {
    width: auto !important;
    min-height: auto !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    padding: .12rem 0 !important;
  }

  .diamonds-archive-live-feed .filter-group-label,
  .jewelry-archive-page .jewelry-filter .filter-group-label {
    margin-bottom: 0 !important;
    white-space: nowrap !important;
  }

  .diamonds-archive-live-feed .filter-chips,
  .diamonds-archive-live-feed .filter-list-menu,
  .diamonds-archive-live-feed .diamond-range-menu,
  .diamonds-archive-live-feed .diamond-step-range-menu,
  .jewelry-archive-page .jewelry-filter .filter-chips,
  .jewelry-archive-page .jewelry-sort-filter .filter-chips {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 999 !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    margin-top: .55rem !important;
    box-sizing: border-box !important;
  }

  .diamonds-archive-live-feed .filter-list-menu,
  .jewelry-archive-page .jewelry-filter .filter-list-menu,
  .jewelry-archive-page .jewelry-sort-filter .filter-list-menu {
    min-width: 220px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .diamonds-archive-live-feed .diamond-range-menu {
    min-width: min(360px, calc(100vw - 32px)) !important;
  }

  .diamonds-archive-live-feed .diamond-step-range-menu {
    min-width: min(420px, calc(100vw - 32px)) !important;
  }

  .diamonds-archive-live-feed .filter-chips.filter-chips--collapsed,
  .jewelry-archive-page .filter-chips.filter-chips--collapsed {
    display: none !important;
  }

  .diamonds-archive-live-feed .diamond-count-row,
  .jewelry-archive-page .jewelry-count-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* === v112 mobile archive filter drawers: allow popovers outside horizontal scroller === */
@media (max-width: 768px) {
  .diamonds-archive-live-feed .filter-chips:not(.filter-chips--collapsed),
  .jewelry-archive-page .filter-chips:not(.filter-chips--collapsed) {
    max-height: calc(100vh - 180px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* === v113 mobile archive filter drawer fix: force opened menus above horizontal scroller === */
@media (max-width: 768px) {
  .diamonds-archive-live-feed,
  .jewelry-archive-page,
  .diamonds-archive-live-feed .diamonds-listing-toolbar,
  .jewelry-archive-page .archive-layout,
  .jewelry-archive-page .jewelry-filter-row-wrap {
    overflow: visible !important;
  }
}


/* === v114 mobile filter drawer portal: keep opened menus above posts and outside horizontal scroller === */
@media (max-width: 768px) {
  body > .filter-chips.md-filter-portal {
    display: flex !important;
    flex-wrap: wrap !important;
    background: var(--white) !important;
    border: 1px solid var(--linen-dark) !important;
    box-shadow: 0 18px 35px rgba(0,0,0,.14) !important;
    padding: 1rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 160px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
  }
  body > .filter-chips.md-filter-portal.filter-list-menu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .35rem !important;
    min-width: 220px !important;
  }
  body > .filter-chips.md-filter-portal.diamond-range-menu,
  body > .filter-chips.md-filter-portal.diamond-step-range-menu {
    min-width: min(420px, calc(100vw - 32px)) !important;
  }
  body > .filter-chips.md-filter-portal.filter-chips--collapsed {
    display: none !important;
  }
}

/* === v117 mobile filter drawer centering: prevent opened drawers from running off-screen === */
@media (max-width: 768px) {
  body > .filter-chips.md-filter-portal {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    min-width: min(220px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }
  body > .filter-chips.md-filter-portal.diamond-range-menu,
  body > .filter-chips.md-filter-portal.diamond-step-range-menu {
    width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    max-width: 420px !important;
  }
}

/* === v118 active mobile filter trigger: bold currently open drawer button === */
@media (max-width: 768px) {
  .diamond-filter-row .filter-group-toggle.active,
  .jewelry-filter-row .filter-group-toggle.active {
    font-weight: 600;
  }
}

/* === v119 mobile active filter trigger visibility: bold opened filter labels on diamonds + jewelry === */
@media (max-width: 768px) {
  .diamonds-archive-live-feed .diamond-filter-row .filter-group-toggle.active,
  .diamonds-archive-live-feed .diamond-filter-row .filter-group-toggle[aria-expanded="true"],
  .jewelry-archive-page .jewelry-filter-row .filter-group-toggle.active,
  .jewelry-archive-page .jewelry-filter-row .filter-group-toggle[aria-expanded="true"] {
    font-weight: 600 !important;
  }

  .diamonds-archive-live-feed .diamond-filter-row .filter-group-toggle.active .filter-group-label,
  .diamonds-archive-live-feed .diamond-filter-row .filter-group-toggle[aria-expanded="true"] .filter-group-label,
  .jewelry-archive-page .jewelry-filter-row .filter-group-toggle.active .filter-group-label,
  .jewelry-archive-page .jewelry-filter-row .filter-group-toggle[aria-expanded="true"] .filter-group-label {
    font-weight: 600 !important;
  }
}

/* v127 — luxury white listing modal styling */
.commission-modal .stone-modal-inner,
#stone-modal .stone-modal-inner,
#jewelry-modal .stone-modal-inner {
  background: #fff !important;
  border: 1px solid rgba(30,26,20,0.08) !important;
  box-shadow: 0 28px 80px rgba(30,26,20,0.18) !important;
}
#stone-modal .stone-modal-grid,
#jewelry-modal .stone-modal-grid {
  background: #fff !important;
}
#stone-modal .stone-modal-info,
#jewelry-modal .stone-modal-info {
  background: #fff !important;
  padding: clamp(2rem, 4vw, 3.25rem) !important;
}
#stone-modal .stone-modal-media,
#jewelry-modal .stone-modal-media,
#jewelry-modal .jl-main-img-wrap,
#jewelry-modal .jl-gallery-wrap {
  background: #f8f6f1 !important;
}
#stone-modal .listing-card-specs,
#jewelry-modal .single-specs {
  display: grid !important;
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  margin: 1.35rem 0 1.65rem !important;
  gap: 0.75rem !important;
  background: transparent !important;
}
#stone-modal .listing-card-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#jewelry-modal .single-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#stone-modal .listing-card-spec,
#jewelry-modal .single-spec-item {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 72px !important;
  padding: 0.95rem 1rem !important;
  border: 1px solid rgba(154,117,53,0.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%) !important;
  box-shadow: 0 8px 20px rgba(30,26,20,0.035) !important;
  box-sizing: border-box !important;
}
#stone-modal .listing-card-spec-label,
#jewelry-modal .single-spec-label {
  font-size: 0.66rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 0 0.35rem !important;
}
#stone-modal .listing-card-spec-value,
#jewelry-modal .single-spec-value {
  font-family: var(--font-serif) !important;
  font-size: 1.02rem !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  font-weight: 300 !important;
}
#stone-modal .section-label,
#jewelry-modal .section-label {
  color: var(--gold) !important;
}
#stone-modal .commission-submit,
#jewelry-modal .commission-submit,
#stone-modal .btn-ghost,
#jewelry-modal .btn-ghost,
#stone-modal .md-wishlist-btn,
#jewelry-modal .md-wishlist-btn,
#stone-modal .stone-modal-back,
#jewelry-modal .stone-modal-back {
  border-radius: 999px !important;
}
@media (max-width: 860px) {
  #stone-modal .stone-modal-inner,
  #jewelry-modal .stone-modal-inner {
    max-width: calc(100vw - 24px) !important;
    border-radius: 18px !important;
  }
  #stone-modal .stone-modal-grid,
  #jewelry-modal .stone-modal-grid {
    height: auto !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  #stone-modal .stone-modal-media,
  #jewelry-modal .stone-modal-media {
    min-height: 360px !important;
  }
  #stone-modal .stone-modal-info,
  #jewelry-modal .stone-modal-info {
    padding: 1.5rem !important;
  }
  #stone-modal .listing-card-specs,
  #jewelry-modal .single-specs {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }
}
@media (max-width: 520px) {
  #stone-modal .listing-card-specs,
  #jewelry-modal .single-specs {
    grid-template-columns: 1fr !important;
  }
}

/* v129 — refine jewelry modal metal/carat selectors to match luxury detail styling */
#jewelry-modal .jl-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 1.1rem 0 1.55rem !important;
}
#jewelry-modal .jl-option-group {
  border: 1px solid rgba(154,117,53,0.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%) !important;
  box-shadow: 0 8px 20px rgba(30,26,20,0.035) !important;
  padding: 0.95rem 1rem !important;
  min-height: 72px !important;
}
#jewelry-modal .jl-option-label {
  font-size: 0.66rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 0 0.45rem !important;
}
#jewelry-modal .jl-option-chips {
  display: flex !important;
  gap: 0.35rem !important;
  flex-wrap: wrap !important;
}
#jewelry-modal .jl-chip {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 0 !important;
  margin: 0 0.55rem 0.25rem 0 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.02rem !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
  text-align: left !important;
}
#jewelry-modal .jl-chip:hover,
#jewelry-modal .jl-chip.active {
  color: var(--gold) !important;
  background: transparent !important;
  border: 0 !important;
}
#jewelry-modal .jl-chip.active {
  font-weight: 400 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1px !important;
}
@media (max-width: 720px) {
  #jewelry-modal .jl-options {
    grid-template-columns: 1fr !important;
  }
}

/* v130: mobile jewelry modal image carousel + hidden mobile description */
#jewelry-modal .jl-mobile-carousel {
  display: none;
}

@media (max-width: 768px) {
  #jewelry-modal .jl-modal-description {
    display: none !important;
  }

  #jewelry-modal .stone-modal-media .jl-main-img-wrap,
  #jewelry-modal .stone-modal-media .jl-gallery-wrap {
    display: none !important;
  }

  #jewelry-modal .jl-mobile-carousel {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    background: #fff;
  }

  #jewelry-modal .jl-mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  #jewelry-modal .jl-mobile-slide {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  #jewelry-modal .jl-mobile-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}

/* Listing modal font increase */
.listing-modal,
.listing-modal p,
.listing-modal span,
.listing-modal div {
    font-size: 16px !important;
}

.listing-modal h1,
.listing-modal h2,
.listing-modal h3 {
    font-size: 20px !important;
    font-weight: 600;
}


/* v134: Jewelry listing-card variation dropdowns */
.jewelry-archive-page .md-card-variation-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
  margin-top: 0.85rem;
}

.jewelry-archive-page .md-card-fixed-spec {
  min-height: 58px;
  height: 58px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(17,17,17,0.10);
  background: rgba(255,255,255,0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.jewelry-archive-page .md-card-fixed-spec .listing-card-spec-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.1;
  margin-bottom: 0.22rem;
  white-space: nowrap;
}

.jewelry-archive-page .md-card-fixed-spec .listing-card-spec-value {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jewelry-archive-page .md-card-variation-select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,0.18);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.08rem 1.15rem 0.12rem 0;
  outline: none;
  cursor: pointer;
  min-width: 0;
}

.jewelry-archive-page .md-card-variation-select:focus {
  border-bottom-color: var(--gold);
}

.jewelry-archive-page .listing-card .md-card-variation-specs {
  max-height: 190px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .jewelry-archive-page .md-card-variation-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .jewelry-archive-page .md-card-fixed-spec {
    min-height: 54px;
    height: 54px;
    padding: 0.5rem 0.55rem;
  }
  .jewelry-archive-page .md-card-variation-select,
  .jewelry-archive-page .md-card-fixed-spec .listing-card-spec-value {
    font-size: 0.78rem;
  }
}


/* v135: force variation dropdown styling on archive and homepage jewelry cards */
.jewelry-archive-page .listing-card-specs.md-card-variation-specs,
.featured-jewelry-home .listing-card-specs.md-card-variation-specs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
  align-items: stretch !important;
  margin-top: 0.85rem !important;
}

.jewelry-archive-page .md-card-fixed-spec,
.featured-jewelry-home .md-card-fixed-spec {
  min-height: 58px !important;
  height: 58px !important;
  padding: 0.55rem 0.65rem !important;
  border: 1px solid rgba(17,17,17,0.10) !important;
  background: rgba(255,255,255,0.78) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.jewelry-archive-page .md-card-variation-select,
.featured-jewelry-home .md-card-variation-select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(17,17,17,0.22) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  padding: 0.08rem 1.15rem 0.12rem 0 !important;
  outline: none !important;
  cursor: pointer !important;
  min-width: 0 !important;
}

.jewelry-archive-page .md-card-fixed-spec .listing-card-spec-label,
.featured-jewelry-home .md-card-fixed-spec .listing-card-spec-label {
  display: block !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  line-height: 1.1 !important;
  margin-bottom: 0.22rem !important;
  white-space: nowrap !important;
}

.jewelry-archive-page .md-card-fixed-spec .listing-card-spec-value,
.featured-jewelry-home .md-card-fixed-spec .listing-card-spec-value {
  display: block !important;
  font-size: 0.82rem !important;
  color: var(--ink) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
  .jewelry-archive-page .listing-card-specs.md-card-variation-specs,
  .featured-jewelry-home .listing-card-specs.md-card-variation-specs {
    gap: 0.45rem !important;
  }
  .jewelry-archive-page .md-card-fixed-spec,
  .featured-jewelry-home .md-card-fixed-spec {
    min-height: 54px !important;
    height: 54px !important;
    padding: 0.5rem 0.55rem !important;
  }
}


/* v136: Jewelry popup variation dropdowns */
#jewelry-modal .jl-popup-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 1.2rem 0 0.25rem !important;
}

#jewelry-modal .jl-popup-option-box {
  height: 66px !important;
  min-height: 66px !important;
  padding: 0.7rem 0.8rem !important;
  border: 1px solid rgba(17,17,17,0.10) !important;
  background: rgba(250,248,244,0.65) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#jewelry-modal .jl-popup-option-label {
  display: block !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  line-height: 1.1 !important;
  margin-bottom: 0.32rem !important;
  white-space: nowrap !important;
}

#jewelry-modal .jl-popup-option-value {
  display: block !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#jewelry-modal .jl-popup-variation-select {
  width: 100% !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(17,17,17,0.24) !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  padding: 0.05rem 1.4rem 0.14rem 0 !important;
  outline: none !important;
  cursor: pointer !important;
  min-width: 0 !important;
}

#jewelry-modal .jl-popup-variation-select:focus {
  border-bottom-color: var(--gold) !important;
}

@media (max-width: 768px) {
  #jewelry-modal .jl-popup-options {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
  #jewelry-modal .jl-popup-option-box {
    height: 62px !important;
    min-height: 62px !important;
  }
}


/* v137: Dedicated jewelry product pages */
.md-single-jewelry-page {
  background: #fff;
  color: var(--ink);
  padding: 104px var(--side-pad) 5rem;
}

.md-product-breadcrumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.md-product-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.md-product-breadcrumb a:hover {
  color: var(--gold);
}

.md-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.md-product-gallery {
  min-width: 0;
}

.md-product-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.md-product-image-tile {
  border: 0;
  padding: 0;
  background: var(--linen);
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  cursor: zoom-in;
}

.md-product-image-tile:first-child {
  grid-column: span 2;
  aspect-ratio: 1.12 / 1;
}

.md-product-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.md-product-image-tile:hover img {
  transform: scale(1.025);
}

.md-product-no-image {
  min-height: 560px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.md-product-info {
  position: sticky;
  top: 96px;
  background: #fff;
  align-self: start;
}

.md-product-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.md-product-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 300;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.md-product-price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.md-product-summary {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.96rem;
  margin: 0 0 1.35rem;
}

.md-product-options {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 1.45rem;
}

.md-product-option {
  border: 1px solid rgba(17,17,17,0.11);
  background: rgba(250,248,244,0.48);
  padding: 0.78rem 0.9rem;
}

.md-product-option label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.md-product-option select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,0.25);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.15rem 1.2rem 0.25rem 0;
  outline: none;
}

.md-product-single-value {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.md-product-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 1.2rem;
}

.md-product-add {
  width: 100%;
  min-height: 52px;
  text-align: center;
}

.md-product-wishlist {
  width: 100%;
  justify-content: center;
}

.md-product-service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(17,17,17,0.10);
  border-bottom: 1px solid rgba(17,17,17,0.10);
  margin: 1.35rem 0 0;
}

.md-product-service-row div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  border-right: 1px solid rgba(17,17,17,0.10);
  padding: 0.75rem 0.5rem;
}

.md-product-service-row div:last-child {
  border-right: 0;
}

.md-product-service-row span {
  color: var(--gold);
  font-size: 1.15rem;
}

.md-product-service-row strong {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
}

.md-product-accordions {
  border-top: 1px solid rgba(17,17,17,0.12);
  margin-top: 1.4rem;
}

.md-product-accordions details {
  border-bottom: 1px solid rgba(17,17,17,0.12);
  padding: 0.95rem 0;
}

.md-product-accordions summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.md-product-accordions summary::-webkit-details-marker {
  display: none;
}

.md-product-accordions summary:after {
  content: '+';
  color: var(--gold);
  font-size: 1.1rem;
}

.md-product-accordions details[open] summary:after {
  content: '–';
}

.md-product-detail-content {
  padding: 1rem 0 0.25rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.md-product-spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.md-product-spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(17,17,17,0.06);
  padding-bottom: 0.45rem;
}

.md-product-spec-list span {
  color: var(--muted);
}

.md-product-spec-list strong {
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}

.md-product-description {
  margin-top: 1rem;
}

.md-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255,255,255,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.md-product-lightbox.open {
  display: flex;
}

.md-product-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
}

.md-product-lightbox-close,
.md-product-lightbox-prev,
.md-product-lightbox-next {
  position: absolute;
  border: 1px solid rgba(17,17,17,0.12);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}

.md-product-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.md-product-lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.md-product-lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 980px) {
  .md-single-jewelry-page {
    padding-top: 88px;
  }
  .md-product-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .md-product-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .md-single-jewelry-page {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3.5rem;
  }
  .md-product-breadcrumb {
    margin-bottom: 1rem;
  }
  .md-product-image-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.7rem;
    padding-bottom: 0.35rem;
  }
  .md-product-image-tile,
  .md-product-image-tile:first-child {
    min-width: 84vw;
    aspect-ratio: 1 / 1.08;
    grid-column: auto;
    scroll-snap-align: start;
  }
  .md-product-info h1 {
    font-size: 2rem;
  }
  .md-product-service-row {
    grid-template-columns: 1fr;
  }
  .md-product-service-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(17,17,17,0.10);
    min-height: 72px;
  }
  .md-product-service-row div:last-child {
    border-bottom: 0;
  }
  .md-product-lightbox {
    padding: 1rem;
  }
  .md-product-lightbox-prev,
  .md-product-lightbox-next {
    display: none;
  }
}


/* v138: Single jewelry product image carousel */
.md-product-carousel {
  width: 100%;
}

.md-product-carousel-main {
  position: relative;
  background: var(--linen);
  overflow: hidden;
}

.md-product-carousel-image {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border: 0;
  padding: 0;
  background: var(--linen);
  display: block;
  cursor: zoom-in;
}

.md-product-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.md-product-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17,17,17,0.12);
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.md-product-carousel-arrow:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.md-product-carousel-prev {
  left: 1rem;
}

.md-product-carousel-next {
  right: 1rem;
}

.md-product-carousel-thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.85rem 0 0.2rem;
}

.md-product-carousel-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(17,17,17,0.10);
  padding: 0;
  background: var(--linen);
  opacity: 0.62;
  cursor: pointer;
  overflow: hidden;
}

.md-product-carousel-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.md-product-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* override previous stacked gallery rules on single jewelry pages */
.md-single-jewelry-page .md-product-image-grid {
  display: none !important;
}

@media (max-width: 768px) {
  .md-product-carousel-image {
    aspect-ratio: 1 / 1.1;
  }

  .md-product-carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .md-product-carousel-prev {
    left: 0.65rem;
  }

  .md-product-carousel-next {
    right: 0.65rem;
  }

  .md-product-carousel-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}


/* v139: Mobile product carousel white background + forced image fill */
@media (max-width: 768px) {
  .md-single-jewelry-page .md-product-carousel-main,
  .md-single-jewelry-page .md-product-carousel-image,
  .md-single-jewelry-page .md-product-carousel-thumb,
  .md-single-jewelry-page .md-product-no-image {
    background: #fff !important;
  }

  .md-single-jewelry-page .md-product-carousel-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.08 !important;
    overflow: hidden !important;
  }

  .md-single-jewelry-page .md-product-carousel-image img,
  .md-single-jewelry-page .md-product-carousel-thumb img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #fff !important;
    display: block !important;
  }
}


/* v140: remove inner line from length selector + center CTA text */

/* remove bottom line inside select (especially length) but keep dropdown arrow */
.md-product-option select {
  border-bottom: none !important;
  background-color: transparent !important;
  appearance: auto;
}

/* ensure select still has dropdown arrow */
.md-product-option select::-ms-expand {
  display: block;
}

/* center text in Add to Cart button */
.md-product-add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}


/* v144: Product customization notes */
.md-product-customization-note {
  margin: 1.1rem 0 1.35rem;
  border: 1px solid rgba(17,17,17,0.11);
  background: rgba(250,248,244,0.48);
  padding: 0.9rem;
}

.md-product-customization-note label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.md-product-customization-note p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.md-product-customization-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  border: 1px solid rgba(17,17,17,0.14);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0.8rem;
  outline: none;
  box-sizing: border-box;
}

.md-product-customization-note textarea:focus {
  border-color: var(--gold);
}


/* v145: SKU/style number and quantity selector */
.md-product-sku-style {
  margin: -0.55rem 0 1.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.md-product-sku-style strong {
  color: var(--ink);
  font-weight: 400;
}

.md-product-quantity {
  margin: 1.15rem 0 1.2rem;
}

.md-product-quantity label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.md-product-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17,17,17,0.13);
  background: #fff;
  height: 46px;
}

.md-product-qty-control button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.md-product-qty-control input {
  width: 58px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(17,17,17,0.10);
  border-right: 1px solid rgba(17,17,17,0.10);
  text-align: center;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  -moz-appearance: textfield;
}

.md-product-qty-control input::-webkit-outer-spin-button,
.md-product-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* v178: variation fields with one possible value are fixed text, not dropdowns */
.md-product-option-fixed .md-product-single-value,
#jewelry-modal .jl-popup-option-fixed .jl-popup-single-value {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  padding: 0.15rem 0 0.25rem 0;
  display: block !important;
  object-fit: initial !important;
  object-position: initial !important;
}

.md-product-option-fixed,
#jewelry-modal .jl-popup-option-fixed {
  cursor: default;
}

/* v179: Product Details now contains jewelry variation selectors */
.md-product-spec-list-selectable .md-product-spec-row {
  align-items: center;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable strong {
  position: relative;
  min-width: 42%;
}

.md-product-spec-control,
.jl-popup-detail-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.md-product-spec-control::after,
.jl-popup-detail-control::after {
  content: '⌄';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-54%);
  pointer-events: none;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
}

.md-product-detail-select,
.jl-popup-detail-select {
  border: 0 !important;
  background: transparent !important;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  text-align-last: right;
  padding: 0 1.1rem 0 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  max-width: 100%;
}

.md-product-spec-row.is-variable {
  cursor: pointer;
}

.md-product-spec-row.is-variable span:first-child::after {
  content: ' Select';
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.45rem;
  white-space: nowrap;
}

.jl-popup-detail-spec.is-variable .single-spec-label::after {
  content: ' Select';
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.jl-popup-detail-spec .single-spec-value {
  overflow: visible;
}

.jl-popup-detail-select {
  width: auto;
  text-align: left;
  text-align-last: left;
}

@media (max-width: 640px) {
  .md-product-detail-select {
    max-width: 48vw;
  }
  .md-product-spec-row.is-variable span:first-child::after {
    display: block;
    margin-left: 0;
    margin-top: 0.1rem;
  }
}


/* v181: Product Details variation rows use detail-row styling with a clean chevron indicator */
.md-product-spec-list-selectable .md-product-spec-row,
#jewelry-modal .jl-popup-detail-spec {
  gap: 1rem;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable strong,
#jewelry-modal .jl-popup-detail-spec.is-variable .single-spec-value {
  min-width: 0;
  overflow: visible;
}

.md-product-spec-row.is-variable span:first-child::after,
.jl-popup-detail-spec.is-variable .single-spec-label::after {
  content: '' !important;
  display: none !important;
}

.md-product-spec-control,
.jl-popup-detail-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.md-product-spec-control::after,
.jl-popup-detail-control::after {
  content: '›' !important;
  right: 0.05rem !important;
  color: var(--gold) !important;
  font-size: 1rem !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

.md-product-detail-select,
.jl-popup-detail-select,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select {
  display: block !important;
  width: 100% !important;
  max-width: 260px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(177, 140, 79, 0.35) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: right !important;
  text-align-last: right !important;
  padding: 0.15rem 1.25rem 0.18rem 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.md-product-detail-select:focus,
.jl-popup-detail-select:focus,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select:focus {
  border-bottom-color: var(--gold) !important;
}

.md-product-detail-select option,
.jl-popup-detail-select option,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select option {
  color: var(--ink);
  background: var(--cream);
}

@media (max-width: 640px) {
  .md-product-detail-select,
  .jl-popup-detail-select,
  #jewelry-modal .jl-popup-variation-select.jl-popup-detail-select {
    max-width: 180px !important;
    font-size: 0.9rem !important;
  }
}

/* v182: Product Details selector polish + placement refinements */
.md-product-summary + .md-product-accordions {
  margin-top: 1.15rem;
  margin-bottom: 1.25rem;
}

.md-product-summary + .md-product-accordions details:first-child {
  border-top: 1px solid rgba(17,17,17,0.12);
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable {
  align-items: center;
  border-bottom: 1px solid rgba(17,17,17,0.07);
  padding: 0.48rem 0;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable > span:first-child,
#jewelry-modal .jl-popup-detail-spec.is-variable .single-spec-label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable strong {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.md-product-spec-control,
.jl-popup-detail-control {
  width: auto !important;
  min-width: 138px;
  max-width: min(260px, 55vw) !important;
  border: 1px solid rgba(177, 140, 79, 0.24);
  border-radius: 999px;
  background: rgba(250,248,244,0.72);
  padding: 0;
  overflow: hidden;
}

.md-product-spec-control::after,
.jl-popup-detail-control::after {
  content: '›' !important;
  right: 0.78rem !important;
  color: var(--gold) !important;
  font-size: 0.95rem !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

.md-product-detail-select,
.jl-popup-detail-select,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.015em !important;
  line-height: 1.2 !important;
  text-align: right !important;
  text-align-last: right !important;
  padding: 0.48rem 2rem 0.48rem 0.9rem !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.md-product-detail-select:focus,
.jl-popup-detail-select:focus,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select:focus {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(177,140,79,0.65) !important;
}

.md-product-detail-select option,
.jl-popup-detail-select option,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select option {
  color: var(--ink) !important;
  background: #fff !important;
  font-family: var(--font-sans) !important;
}

.md-product-customization-note {
  margin-top: 1.15rem;
}

@media (max-width: 640px) {
  .md-product-spec-list-selectable .md-product-spec-row.is-variable {
    gap: 0.75rem;
  }

  .md-product-spec-control,
  .jl-popup-detail-control {
    min-width: 126px;
    max-width: 52vw !important;
  }

  .md-product-detail-select,
  .jl-popup-detail-select,
  #jewelry-modal .jl-popup-variation-select.jl-popup-detail-select {
    font-size: 0.82rem !important;
    padding: 0.44rem 1.8rem 0.44rem 0.8rem !important;
  }
}

/* v183: Product Details selectors inherit the existing detail text style; no added borders, pills, outlines, or underlines. */
.md-product-spec-list-selectable .md-product-spec-row.is-variable {
  align-items: center;
  padding: 0 0 0.45rem !important;
  border-bottom: 1px solid rgba(17,17,17,0.06) !important;
  cursor: default !important;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable > span:first-child,
#jewelry-modal .jl-popup-detail-spec.is-variable .single-spec-label {
  color: var(--muted) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.md-product-spec-list-selectable .md-product-spec-row.is-variable strong {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.md-product-spec-control,
.jl-popup-detail-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 55vw !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.md-product-spec-control::after,
.jl-popup-detail-control::after {
  content: none !important;
  display: none !important;
}

.md-product-detail-select,
.jl-popup-detail-select,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select {
  width: auto !important;
  max-width: 260px !important;
  min-width: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-align: right !important;
  text-align-last: right !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: auto !important;
}

.md-product-detail-select:focus,
.jl-popup-detail-select:focus,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.md-product-detail-select option,
.jl-popup-detail-select option,
#jewelry-modal .jl-popup-variation-select.jl-popup-detail-select option {
  color: var(--ink) !important;
  background: #fff !important;
}

.md-product-service-accordions {
  margin-top: 0 !important;
}


/* v187: Product detail cleanup and quantity alignment */
.md-product-qty-control {
  display: inline-grid !important;
  grid-template-columns: 44px 58px 44px !important;
  align-items: stretch !important;
  height: 46px !important;
}

.md-product-qty-control button,
.md-product-qty-control input {
  height: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.md-product-qty-control input {
  display: block !important;
  line-height: 44px !important;
  padding: 0 !important;
}

/* v203 WooCommerce single product template styling */
.md-wc-single-product-page .md-wc-add-to-cart {
  margin: 1.2rem 0 1.25rem;
}

.md-wc-single-product-page .md-wc-add-to-cart form.cart,
.md-wc-single-product-page .md-wc-add-to-cart form.variations_form {
  margin: 0;
}

.md-wc-single-product-page .md-wc-add-to-cart .variations {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
}

.md-wc-single-product-page .md-wc-add-to-cart .variations tr {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.md-wc-single-product-page .md-wc-add-to-cart .variations th,
.md-wc-single-product-page .md-wc-add-to-cart .variations td {
  display: block;
  padding: 0;
  text-align: left;
  border: 0;
}

.md-wc-single-product-page .md-wc-add-to-cart .variations label,
.md-wc-single-product-page .quantity label.screen-reader-text {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.md-wc-single-product-page .md-wc-add-to-cart select,
.md-wc-single-product-page .md-wc-add-to-cart input[type="number"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,0.22);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.25rem 0;
  outline: none;
}

.md-wc-single-product-page .reset_variations {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.md-wc-single-product-page .single_variation_wrap {
  margin-top: 0.75rem;
}

.md-wc-single-product-page .woocommerce-variation-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.md-wc-single-product-page .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0 0.75rem 0.85rem 0;
}

.md-wc-single-product-page .quantity input.qty {
  width: 64px;
  height: 44px;
  text-align: center;
  border: 1px solid rgba(17,17,17,0.13);
  border-radius: 0;
  background: #fff;
}

.md-wc-single-product-page .single_add_to_cart_button {
  min-height: 52px;
  padding: 0 1.4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.md-wc-single-product-page .single_add_to_cart_button.disabled,
.md-wc-single-product-page .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.md-wc-single-product-page .woocommerce-message,
.md-wc-single-product-page .woocommerce-error,
.md-wc-single-product-page .woocommerce-info {
  max-width: min(1180px, calc(100vw - 48px));
  margin: 1rem auto;
  border: 1px solid rgba(17,17,17,0.12);
  background: var(--linen);
  color: var(--ink);
  padding: 1rem;
}

.md-wc-single-product-page .woocommerce-message a,
.md-wc-single-product-page .woocommerce-error a,
.md-wc-single-product-page .woocommerce-info a {
  color: var(--ink);
}

/* v210: Reduce WooCommerce single product gallery sizing */
.md-wc-single-product-page .md-product-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: clamp(1.75rem, 4vw, 4rem);
}

.md-wc-single-product-page .md-product-gallery {
  width: 100%;
  max-width: 680px;
}

.md-wc-single-product-page .md-product-carousel-image {
  aspect-ratio: 1 / 0.92;
  max-height: 620px;
}

.md-wc-single-product-page .md-product-carousel-image img {
  object-fit: contain;
  background: #fff;
}


@media (max-width: 980px) {
  .md-wc-single-product-page .md-product-layout {
    grid-template-columns: 1fr;
  }

  .md-wc-single-product-page .md-product-gallery {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .md-wc-single-product-page .md-product-carousel-image {
    aspect-ratio: 1 / 0.95 !important;
    max-height: 430px;
  }
}

/* v212: Increase WooCommerce product price directly above Add to Cart without changing other layout. */
.md-wc-single-product-page .md-wc-add-to-cart .woocommerce-variation-price,
.md-wc-single-product-page .md-wc-add-to-cart .woocommerce-variation-price .price,
.md-wc-single-product-page .single_variation .woocommerce-variation-price,
.md-wc-single-product-page .single_variation .price {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.95rem;
}

.md-wc-single-product-page .md-wc-add-to-cart .woocommerce-variation-price ins,
.md-wc-single-product-page .single_variation .woocommerce-variation-price ins {
  text-decoration: none;
}

/* v214: WooCommerce product price uses the same refined sans typography as Product Details values, with subtle emphasis only. */
.md-wc-single-product-page .md-product-price,
.md-wc-single-product-page .md-product-price .amount,
.md-wc-single-product-page .md-product-price bdi,
.md-wc-single-product-page .md-wc-add-to-cart .price,
.md-wc-single-product-page .md-wc-add-to-cart .price .amount,
.md-wc-single-product-page .md-wc-add-to-cart .price bdi,
.single-product .md-product-price,
.single-product .md-product-price .amount,
.single-product .md-product-price bdi {
  font-family: var(--font-sans) !important;
  font-size: 1.72rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.18;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.md-wc-single-product-page .md-product-price,
.single-product .md-product-price {
  margin-bottom: 1.25rem;
}

.md-wc-single-product-page .md-product-price ins,
.md-wc-single-product-page .md-wc-add-to-cart .price ins,
.single-product .md-product-price ins {
  text-decoration: none;
  font-weight: 500;
}


/* v215: top jewelry listing price starts at the lowest variation price, updates in-place, and is slightly smaller. */
.md-single-jewelry-page .md-product-price,
.md-single-jewelry-page .md-product-price .amount,
.md-single-jewelry-page .md-product-price bdi,
.md-single-jewelry-page .jl-price {
  font-family: var(--font-sans) !important;
  font-size: 1.42rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.018em !important;
  line-height: 1.18 !important;
  color: var(--ink) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.md-single-jewelry-page .md-product-price {
  margin-bottom: 1.05rem !important;
}
.md-wc-single-product-page .md-wc-add-to-cart .single_variation .woocommerce-variation-price,
.md-wc-single-product-page .md-wc-add-to-cart .woocommerce-variation-price {
  display: none !important;
}

/* v218: homepage featured jewelry count and Inner Circle placement cleanup */
@media (min-width: 761px) {
  .home #featured-jewelry-section .fd-card:nth-child(n+6) {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .home #featured-jewelry-section .fd-card:nth-child(-n+6) {
    display: block !important;
  }
  .home #featured-jewelry-section .fd-card:nth-child(n+7) {
    display: none !important;
  }
}


/* v220: Featured Jewelry homepage cleanup - tighter bottom spacing, no price ranges, centered titles. */
.home #featured-jewelry-section.featured-jewelry-home {
  padding-bottom: clamp(1.25rem, 2vw, 2.25rem) !important;
}
.home #featured-jewelry-section .fd-card-body,
.home #featured-jewelry-section .fd-card-name,
.home #featured-jewelry-section .fd-card-cta-row {
  text-align: center !important;
}
.home #featured-jewelry-section .fd-card-name {
  margin-left: auto !important;
  margin-right: auto !important;
}
.home #featured-jewelry-section .fd-card-body > div[style*="justify-content:space-between"],
.home #featured-jewelry-section .fd-card-price-row,
.home #featured-jewelry-section .listing-card-price,
.home #featured-jewelry-section .price {
  display: none !important;
}
.home #featured-jewelry-section .fd-card-cta-row {
  margin-top: 0.65rem !important;
  display: flex !important;
  justify-content: center !important;
}


/* v221: Diamonds + Jewelry archive product grids - four equal columns like Ring Concierge. */
@media (min-width: 901px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap .inner,
  body.post-type-archive-md_jewelry .jewelry-archive-page .archive-layout,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-area,
  .diamonds-archive-live-feed .dtb-listing-wrap,
  .diamonds-archive-live-feed .dtb-listing-wrap .inner,
  .jewelry-archive-page .archive-layout,
  .jewelry-archive-page .listing-area {
    width: 100% !important;
    max-width: 1650px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(12px, 1.25vw, 22px) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    align-items: stretch !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid > .listing-card,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid > .listing-card,
  .diamonds-archive-live-feed #diamond-grid > .listing-card,
  .jewelry-archive-page #jewelry-grid > .listing-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: visible !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb,
  .diamonds-archive-live-feed .listing-card-thumb,
  .jewelry-archive-page .listing-card-thumb {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    background: #f7f7f5 !important;
    overflow: hidden !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb img,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb img,
  .diamonds-archive-live-feed .listing-card-thumb img,
  .jewelry-archive-page .listing-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-body,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-body,
  .diamonds-archive-live-feed .listing-card-body,
  .jewelry-archive-page .listing-card-body {
    width: 100% !important;
    padding: 0.75rem 0.25rem 0 !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-name,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-name,
  .diamonds-archive-live-feed .listing-card-name,
  .jewelry-archive-page .listing-card-name {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 900px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 8px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid > .listing-card,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid > .listing-card,
  .diamonds-archive-live-feed #diamond-grid > .listing-card,
  .jewelry-archive-page #jewelry-grid > .listing-card {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb,
  .diamonds-archive-live-feed .listing-card-thumb,
  .jewelry-archive-page .listing-card-thumb {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #f7f7f5 !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb img,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb img,
  .diamonds-archive-live-feed .listing-card-thumb img,
  .jewelry-archive-page .listing-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* v222: Diamonds + Jewelry archives full-bleed four-column product tiles. */
@media (min-width: 901px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap .inner,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-area,
  body.post-type-archive-md_jewelry .jewelry-archive-page .archive-layout,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-area,
  .diamonds-archive-live-feed .dtb-listing-wrap,
  .diamonds-archive-live-feed .dtb-listing-wrap .inner,
  .diamonds-archive-live-feed .listing-area,
  .jewelry-archive-page .archive-layout,
  .jewelry-archive-page .listing-area {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-toolbar,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-toolbar,
  body.post-type-archive-md_jewelry .jewelry-archive-page .filter-sidebar,
  .diamonds-archive-live-feed .listing-toolbar,
  .jewelry-archive-page .listing-toolbar,
  .jewelry-archive-page .filter-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: clamp(14px, 2vw, 32px) !important;
    padding-right: clamp(14px, 2vw, 32px) !important;
    box-sizing: border-box !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-grid > .listing-card,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-grid > .listing-card,
  .diamonds-archive-live-feed #diamond-grid > .listing-card,
  .jewelry-archive-page #jewelry-grid > .listing-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb,
  .diamonds-archive-live-feed .listing-card-thumb,
  .jewelry-archive-page .listing-card-thumb {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 0 !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-body,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-body,
  .diamonds-archive-live-feed .listing-card-body,
  .jewelry-archive-page .listing-card-body {
    padding-left: clamp(8px, 1vw, 16px) !important;
    padding-right: clamp(8px, 1vw, 16px) !important;
  }
}

/* v224: force diamonds and jewelry archive product tiles to use the full viewport width. */
body.post-type-archive-md_diamond .diamonds-archive-live-feed,
body.post-type-archive-md_jewelry .jewelry-archive-page,
body.tax-md_jewelry_category .jewelry-archive-page,
body.tax-md_diamond_shape .diamonds-archive-live-feed {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .dtb-listing-wrap > .inner,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-area,
body.post-type-archive-md_jewelry .jewelry-archive-page .archive-layout,
body.post-type-archive-md_jewelry .jewelry-archive-page .listing-area,
body.tax-md_jewelry_category .jewelry-archive-page .archive-layout,
body.tax-md_jewelry_category .jewelry-archive-page .listing-area,
.diamonds-archive-live-feed .dtb-listing-wrap,
.diamonds-archive-live-feed .dtb-listing-wrap > .inner,
.jewelry-archive-page .archive-layout,
.jewelry-archive-page .listing-area {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-toolbar,
body.post-type-archive-md_jewelry .jewelry-archive-page .filter-sidebar,
body.post-type-archive-md_jewelry .jewelry-archive-page .listing-toolbar,
.diamonds-archive-live-feed .listing-toolbar,
.jewelry-archive-page .filter-sidebar,
.jewelry-archive-page .listing-toolbar {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(14px, 2vw, 32px) !important;
  padding-right: clamp(14px, 2vw, 32px) !important;
  box-sizing: border-box !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed .diamond-filter-row,
body.post-type-archive-md_jewelry .jewelry-archive-page .filter-sidebar,
.diamonds-archive-live-feed .diamond-filter-row,
.jewelry-archive-page .filter-sidebar {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid,
.diamonds-archive-live-feed #diamond-grid.listing-grid,
.jewelry-archive-page #jewelry-grid.listing-grid {
  display: grid !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  gap: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid > .listing-card,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
.diamonds-archive-live-feed #diamond-grid.listing-grid > .listing-card,
.jewelry-archive-page #jewelry-grid.listing-grid > .listing-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-thumb,
body.post-type-archive-md_jewelry .jewelry-archive-page .listing-card-thumb,
.diamonds-archive-live-feed .listing-card-thumb,
.jewelry-archive-page .listing-card-thumb {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v225: keep archive tiles nearly full-width while adding gutters/gaps so counts and cards do not hit screen edges. */
body.post-type-archive-md_diamond .diamonds-archive-live-feed .diamond-count-row,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-count,
body.post-type-archive-md_jewelry .jewelry-archive-page .listing-count,
body.tax-md_jewelry_category .jewelry-archive-page .listing-count,
.diamonds-archive-live-feed .diamond-count-row,
.diamonds-archive-live-feed .listing-count,
.jewelry-archive-page .listing-count {
  max-width: calc(100vw - clamp(28px, 4vw, 72px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid,
.diamonds-archive-live-feed #diamond-grid.listing-grid,
.jewelry-archive-page #jewelry-grid.listing-grid {
  width: calc(100vw - clamp(28px, 4vw, 72px)) !important;
  max-width: calc(100vw - clamp(28px, 4vw, 72px)) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  gap: clamp(8px, 0.9vw, 16px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  box-sizing: border-box !important;
}

body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid > .listing-card,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
.diamonds-archive-live-feed #diamond-grid.listing-grid > .listing-card,
.jewelry-archive-page #jewelry-grid.listing-grid > .listing-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed .diamond-count-row,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-count,
  body.post-type-archive-md_jewelry .jewelry-archive-page .listing-count,
  body.tax-md_jewelry_category .jewelry-archive-page .listing-count,
  .diamonds-archive-live-feed .diamond-count-row,
  .diamonds-archive-live-feed .listing-count,
  .jewelry-archive-page .listing-count {
    max-width: calc(100vw - 24px) !important;
  }
}

/* v229 jewelry archive requested fixes: no eyebrow and more row separation. */
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid,
.jewelry-archive-page #jewelry-grid.listing-grid {
  column-gap: clamp(14px, 1.25vw, 22px) !important;
  row-gap: clamp(42px, 4vw, 68px) !important;
}
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid .listing-card-type,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid .listing-card-type,
.jewelry-archive-page #jewelry-grid .listing-card-type {
  display: none !important;
}
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid .listing-card-body,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid .listing-card-body,
.jewelry-archive-page #jewelry-grid .listing-card-body {
  padding-top: 12px !important;
}
@media (max-width: 900px) {
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid,
  .jewelry-archive-page #jewelry-grid.listing-grid {
    row-gap: 34px !important;
    column-gap: 12px !important;
  }
}


/* v232 jewelry count gutter fix: keep the product count inside the same safe page margin as the grid. */
body .jewelry-archive-page .listing-area .jewelry-count-row,
body .md-wc-shop-page .listing-area .jewelry-count-row,
body .jewelry-archive-page .jewelry-count-row,
body .md-wc-shop-page .jewelry-count-row {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin-left: 15px !important;
  margin-right: 15px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
body .jewelry-archive-page .jewelry-count-row .listing-count,
body .md-wc-shop-page .jewelry-count-row .listing-count,
body .jewelry-archive-page #result-count,
body .md-wc-shop-page #result-count {
  display: block !important;
  text-align: left !important;
  margin-left: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  body .jewelry-archive-page .listing-area .jewelry-count-row,
  body .md-wc-shop-page .listing-area .jewelry-count-row,
  body .jewelry-archive-page .jewelry-count-row,
  body .md-wc-shop-page .jewelry-count-row {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

/* v233: Jewelry/shop tile image fill fix. Forces product images to fill square tile containers. */
body .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
body .md-wc-shop-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  display: block !important;
  background: #f7f5f0 !important;
}

body .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb img,
body .md-wc-shop-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb img,
body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb img,
body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* v235: force featured jewelry home images to fully fill their tile image containers. */
.home #featured-jewelry-section .fd-card-img,
#featured-jewelry-section .fd-card-img,
.featured-jewelry-home .fd-card-img {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f7f7f5 !important;
}
.home #featured-jewelry-section .fd-card-img img,
#featured-jewelry-section .fd-card-img img,
.featured-jewelry-home .fd-card-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
}
.home #featured-jewelry-section .fd-card:hover .fd-card-img img,
#featured-jewelry-section .fd-card:hover .fd-card-img img,
.featured-jewelry-home .fd-card:hover .fd-card-img img {
  transform: none !important;
}

/* v236: cart + wishlist styling matched to final jewelry archive layout. */
body.woocommerce-cart,
body.page-template-page-wishlist,
body:has(.md-wishlist-page) {
  background: #fff !important;
  overflow-x: hidden !important;
}

/* Wishlist page uses the same full-width safe gutter, 4-column grid, 15px column spacing, and larger row spacing as jewelry. */
.md-wishlist-page {
  padding: 135px 0 90px !important;
  background: #fff !important;
  min-height: 100vh !important;
}
.md-wishlist-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.md-wishlist-header {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px 44px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.md-wishlist-kicker,
.md-wishlist-type {
  display: none !important;
}
.md-wishlist-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}
.md-wishlist-sub {
  max-width: 660px !important;
  margin: 1rem 0 0 !important;
  color: var(--muted) !important;
  line-height: 1.85 !important;
}
.md-wishlist-grid {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 15px !important;
  row-gap: 80px !important;
  box-sizing: border-box !important;
}
.md-wishlist-card {
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.md-wishlist-img {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  display: block !important;
  background: #f7f5f0 !important;
  border-radius: 0 !important;
}
.md-wishlist-img img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
.md-wishlist-body {
  padding: 12px 0 0 !important;
  text-align: center !important;
}
.md-wishlist-name {
  font-family: var(--font-serif) !important;
  font-size: clamp(1rem, 1.1vw, 1.25rem) !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  margin: 0 0 .55rem !important;
}
.md-wishlist-price {
  font-family: var(--font-sans) !important;
  font-size: .82rem !important;
  color: var(--muted) !important;
  margin: 0 0 .85rem !important;
}
.md-wishlist-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.md-wishlist-actions button,
.md-wishlist-actions a,
.md-wishlist-empty .btn-primary {
  border: 1px solid var(--linen-dark) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  padding: .78rem 1rem !important;
  font-family: var(--font-sans) !important;
  font-size: .7rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .25s, color .25s, border-color .25s !important;
}
.md-wishlist-actions button:hover,
.md-wishlist-actions a:hover,
.md-wishlist-empty .btn-primary:hover {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
.md-wishlist-empty {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px !important;
  border: 1px solid rgba(184,207,224,.65) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Cart page gets the same full-page safe gutter and clean jewelry-page visual language. */
.woocommerce-cart .woocommerce {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px !important;
  padding: 135px 0 90px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.woocommerce-cart table.shop_table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 15px !important;
  background: transparent !important;
  margin: 0 !important;
}
.woocommerce-cart table.shop_table thead th {
  border: 0 !important;
  padding: 0 0 12px !important;
  color: var(--muted) !important;
  font-family: var(--font-sans) !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}
.woocommerce-cart table.shop_table tbody tr.cart_item {
  background: #fff !important;
}
.woocommerce-cart table.shop_table td {
  border-top: 1px solid rgba(184,207,224,.55) !important;
  border-bottom: 1px solid rgba(184,207,224,.55) !important;
  padding: 18px 14px !important;
  vertical-align: middle !important;
  color: var(--ink) !important;
  background: #fff !important;
}
.woocommerce-cart table.shop_table td:first-child {
  border-left: 1px solid rgba(184,207,224,.55) !important;
}
.woocommerce-cart table.shop_table td:last-child {
  border-right: 1px solid rgba(184,207,224,.55) !important;
}
.woocommerce-cart .product-thumbnail {
  width: 132px !important;
  min-width: 132px !important;
}
.woocommerce-cart .product-thumbnail a {
  position: relative !important;
  display: block !important;
  width: 116px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f7f5f0 !important;
}
.woocommerce-cart .product-thumbnail img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #f7f5f0 !important;
}
.woocommerce-cart .product-name a {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem) !important;
  font-weight: 300 !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
}
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal,
.woocommerce-cart .product-quantity {
  font-family: var(--font-sans) !important;
  color: var(--muted) !important;
}
.woocommerce-cart .quantity .qty {
  border: 1px solid var(--linen-dark) !important;
  border-radius: 0 !important;
  min-height: 42px !important;
  padding: .55rem !important;
  font-family: var(--font-sans) !important;
}
.woocommerce-cart .product-remove a.remove {
  color: var(--muted) !important;
  border: 1px solid var(--linen-dark) !important;
  border-radius: 0 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  text-align: center !important;
}
.woocommerce-cart .product-remove a.remove:hover {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
.woocommerce-cart .cart_totals {
  max-width: 520px !important;
  margin-left: auto !important;
  padding-top: 20px !important;
  background: #fff !important;
}
.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.7rem, 2vw, 2.3rem) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  margin-bottom: 1rem !important;
}
.woocommerce-cart .cart_totals table.shop_table {
  border-spacing: 0 !important;
  border: 1px solid rgba(184,207,224,.55) !important;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(184,207,224,.55) !important;
  padding: 16px !important;
}
.woocommerce-cart .actions .coupon input.input-text,
.woocommerce-cart input.input-text,
.woocommerce-cart textarea,
.woocommerce-cart select {
  border: 1px solid var(--linen-dark) !important;
  border-radius: 0 !important;
  min-height: 46px !important;
  padding: .8rem 1rem !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
}
.woocommerce-cart .woocommerce a.button,
.woocommerce-cart .woocommerce button.button,
.woocommerce-cart .woocommerce input.button,
.woocommerce-cart .checkout-button,
.woocommerce-cart a.button,
.woocommerce-cart button.button,
.woocommerce-cart input.button {
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
  font-family: var(--font-sans) !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: .95rem 1.25rem !important;
  line-height: 1 !important;
}
.woocommerce-cart .woocommerce a.button:hover,
.woocommerce-cart .woocommerce button.button:hover,
.woocommerce-cart .woocommerce input.button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-cart a.button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  transform: none !important;
}
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin-left: 15px !important;
  margin-right: 15px !important;
  box-sizing: border-box !important;
  border-top-color: var(--gold) !important;
  background: #fff !important;
}

@media (max-width: 900px) {
  .md-wishlist-page { padding-top: 112px !important; }
  .md-wishlist-header,
  .md-wishlist-grid,
  .md-wishlist-empty,
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .woocommerce-message,
  .woocommerce-cart .woocommerce-info,
  .woocommerce-cart .woocommerce-error {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .md-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 42px !important;
  }
  .woocommerce-cart .woocommerce { padding-top: 112px !important; }
  .woocommerce-cart table.shop_table thead { display: none !important; }
  .woocommerce-cart table.shop_table,
  .woocommerce-cart table.shop_table tbody,
  .woocommerce-cart table.shop_table tr,
  .woocommerce-cart table.shop_table td { display: block !important; width: 100% !important; box-sizing: border-box !important; }
  .woocommerce-cart table.shop_table tr.cart_item {
    border: 1px solid rgba(184,207,224,.55) !important;
    margin-bottom: 15px !important;
    padding: 14px !important;
  }
  .woocommerce-cart table.shop_table td {
    border: 0 !important;
    padding: 8px 0 !important;
    text-align: left !important;
  }
  .woocommerce-cart .product-thumbnail,
  .woocommerce-cart .product-thumbnail a {
    width: 100% !important;
    min-width: 0 !important;
  }
  .woocommerce-cart .cart_totals { max-width: none !important; }
}


/* v237: centered cart + wishlist page titles and refined luxury layout. */
.md-standard-page {
  padding: 135px 0 90px !important;
  min-height: 60vh !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #fff !important;
}
.md-standard-page-header {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px 44px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.md-standard-page-title,
.woocommerce-cart .md-standard-page-title,
.md-wishlist-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}
.md-standard-page-content {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px !important;
  font-size: .9rem !important;
  line-height: 1.9 !important;
  color: var(--muted) !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .woocommerce {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .md-standard-page-header {
  margin-bottom: 42px !important;
}
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.woocommerce-cart .cart-collaterals {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 30px !important;
  padding-top: 30px !important;
}
.woocommerce-cart .cart_totals {
  width: min(520px, 100%) !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  border: 1px solid rgba(184,207,224,.55) !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .cart_totals h2 {
  text-align: center !important;
  margin-top: 0 !important;
}
.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table th {
  text-align: left !important;
}
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-quantity,
.woocommerce-cart table.shop_table .product-subtotal {
  text-align: center !important;
}
.woocommerce-cart table.shop_table .product-remove {
  text-align: center !important;
}
.woocommerce-cart .actions {
  padding-top: 22px !important;
}
.woocommerce-cart .actions .coupon {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.woocommerce-cart .actions .coupon .input-text {
  min-width: 240px !important;
}
.md-wishlist-page {
  padding-top: 135px !important;
}
.md-wishlist-header {
  width: calc(100vw - 30px) !important;
  max-width: calc(100vw - 30px) !important;
  margin: 0 15px 46px !important;
  text-align: center !important;
}
.md-wishlist-sub {
  max-width: 660px !important;
  margin: 1rem auto 0 !important;
  text-align: center !important;
}
.md-wishlist-empty {
  text-align: center !important;
  padding: 4rem 2rem !important;
}
.md-wishlist-grid {
  column-gap: 15px !important;
  row-gap: 80px !important;
}
.md-wishlist-card {
  background: transparent !important;
}
.md-wishlist-body {
  text-align: center !important;
  padding-top: 12px !important;
}

@media (max-width: 900px) {
  .md-standard-page,
  .md-wishlist-page {
    padding-top: 112px !important;
    padding-bottom: 70px !important;
  }
  .md-standard-page-header,
  .md-standard-page-content,
  .md-wishlist-header {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .woocommerce-cart .cart-collaterals {
    display: block !important;
  }
  .woocommerce-cart .cart_totals {
    width: 100% !important;
    padding: 18px !important;
  }
  .woocommerce-cart .actions .coupon,
  .woocommerce-cart .actions .coupon .input-text,
  .woocommerce-cart .actions .coupon .button,
  .woocommerce-cart .actions .button {
    width: 100% !important;
  }
}

/* v209: WooCommerce Letters in Name custom text field */
.md-wc-single-product-page .md-letters-in-name-field {
  margin: 1rem 0 1.25rem;
}
.md-wc-single-product-page .md-letters-in-name-field label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 400;
}
.md-wc-single-product-page .md-letters-in-name-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(184,207,224,.85);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.5;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.md-wc-single-product-page .md-letters-in-name-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 141, 88, .12);
}
.md-wc-single-product-page .md-letters-in-name-help {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.md-wc-single-product-page .md-letters-in-name-field .required {
  color: var(--gold);
}

/* Curated homepage showroom sections */
.home-showroom-intro {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) clamp(20px, 4vw, 64px) clamp(24px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  background: #fff;
}
@media (min-width: 981px) and (max-width: 1520px) {
  .home-showroom-copy {
    transform: translateX(calc(clamp(1rem, 3vw, 2.5rem) - clamp(20px, 4vw, 64px)));
  }
}
@media (min-width: 1521px) {
  .home-showroom-copy {
    transform: translateX(-84px);
  }
}
.home-showroom-copy h2,
.home-custom-content h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  line-height: .96;
  letter-spacing: -0.045em;
  font-weight: 300;
  color: var(--ink);
  max-width: 980px;
}
.home-showroom-copy > p:not(.section-label),
.home-custom-body {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}
.home-showroom-points {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(20,20,20,.13);
}
.home-showroom-point {
  padding: 22px 0;
  border-bottom: 1px solid rgba(20,20,20,.13);
}
.home-showroom-point h3,
.home-custom-step h3 {
  margin: 0 0 .45rem;
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -.02em;
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
}
.home-showroom-point p,
.home-custom-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: .92rem;
}
.home-custom-showroom {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #f8f6f1;
  margin: 0;
}
.home-custom-media {
  min-height: clamp(520px, 48vw, 760px);
  background: #f4f4f4;
  overflow: hidden;
}
.home-custom-media img,
.home-custom-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.home-custom-media-placeholder {
  background: radial-gradient(circle at 48% 42%, rgba(190,170,120,.34), transparent 30%), linear-gradient(135deg, #f4f4f4, #e8dfd0);
}
.home-custom-content {
  padding: clamp(42px, 6vw, 96px) clamp(28px, 5vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-custom-steps {
  margin-top: clamp(28px, 4vw, 46px);
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(20,20,20,.14);
}
.home-custom-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(20,20,20,.14);
}
.home-custom-step > span {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--gold);
  padding-top: .34rem;
}
.home-custom-button {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 54px;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  transition: background .25s ease, color .25s ease;
}
.home-custom-button:hover,
.home-custom-button:focus-visible {
  background: transparent;
  color: var(--ink);
}
@media (max-width: 960px) {
  .home-showroom-intro,
  .home-custom-showroom {
    grid-template-columns: 1fr;
  }
  .home-showroom-intro {
    padding-top: 48px;
  }
  .home-custom-media {
    min-height: 420px;
  }
}
@media (max-width: 640px) {
  .home-showroom-intro {
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-custom-content {
    padding: 42px 20px 52px;
  }
  .home-custom-step {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .home-custom-button {
    width: 100%;
  }
}

/* v240: focused homepage category showroom sections */
.home-category-showcase {
  padding: clamp(2.75rem, 5vw, 5rem) clamp(1rem, 3vw, 2.5rem);
  background: #fbfaf8;
}
.home-category-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}
.home-category-row:last-child {
  margin-bottom: 0;
}
.home-category-heading {
  position: sticky;
  top: 110px;
}
.home-category-heading h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 0.94;
}
.home-category-heading p:not(.section-label) {
  max-width: 430px;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1.1rem);
}
.home-category-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.home-category-card-media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #f4f4f4;
}
.home-category-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 260ms ease, transform 420ms ease;
}
.home-category-card-hover {
  opacity: 0;
  z-index: 2;
}
.home-category-card:hover .home-category-card-primary,
.home-category-card:focus-visible .home-category-card-primary {
  opacity: 0;
}
.home-category-card:hover .home-category-card-hover,
.home-category-card:focus-visible .home-category-card-hover {
  opacity: 1;
}
.home-category-card:hover .home-category-card-media img,
.home-category-card:focus-visible .home-category-card-media img {
  transform: scale(1.025);
}
.home-category-card-title {
  display: block;
  padding-top: 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.home-category-card-placeholder,
.home-category-empty {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #f4f4f4;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}
.home-category-empty {
  grid-column: 1 / -1;
}
@media (max-width: 980px) {
  .home-category-row {
    grid-template-columns: 1fr;
  }
  .home-category-heading {
    position: static;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
  }
  .home-category-heading p:not(.section-label) {
    margin-left: auto;
    margin-right: auto;
  }
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .home-category-showcase {
    padding: 2.25rem 0.65rem;
  }
  .home-category-row {
    margin-bottom: 3rem;
  }
  .home-category-grid {
    gap: 0.55rem;
  }
  .home-category-heading h2 {
    font-size: 2.35rem;
  }
  .home-category-card-title {
    font-size: 0.67rem;
    letter-spacing: 0.07em;
  }
}

/* v241: homepage category inventory carousel arrows */
.home-category-inventory {
  position: relative;
  min-width: 0;
}
.home-category-carousel {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 1px 0.25rem;
}
.home-category-carousel::-webkit-scrollbar {
  display: none;
}
.home-category-carousel .home-category-card {
  flex: 0 0 calc((100% - (clamp(0.65rem, 1.4vw, 1.1rem) * 3)) / 4);
  scroll-snap-align: start;
}
.home-category-arrow {
  position: absolute;
  top: calc(50% - 2.2rem);
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.home-category-arrow:hover,
.home-category-arrow:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}
.home-category-arrow:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.home-category-arrow-prev {
  left: -21px;
}
.home-category-arrow-next {
  right: -21px;
}
.home-category-inventory:not(.is-scrollable) .home-category-arrow {
  display: none;
}
@media (max-width: 980px) {
  .home-category-carousel .home-category-card {
    flex-basis: calc((100% - .65rem) / 2);
  }
  .home-category-arrow-prev {
    left: 8px;
  }
  .home-category-arrow-next {
    right: 8px;
  }
}
@media (max-width: 620px) {
  .home-category-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
  }
  .home-category-carousel {
    gap: 0.55rem;
  }
}


/* v211: keep homepage inventory area white and route homepage CTAs/categories to inventory */
.home #inventory.home-category-showcase,
#inventory.home-category-showcase {
  background: #ffffff !important;
}

/* v212: Cart page title divider + narrower desktop cart width. */
.woocommerce-cart .md-standard-page-header {
  width: min(70vw, 1120px) !important;
  max-width: min(70vw, 1120px) !important;
  margin: 0 auto 42px !important;
  padding: 0 0 26px !important;
  border-bottom: 1px solid var(--linen-dark) !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .md-standard-page-content {
  width: min(70vw, 1120px) !important;
  max-width: min(70vw, 1120px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  width: min(70vw, 1120px) !important;
  max-width: min(70vw, 1120px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 900px) {
  .woocommerce-cart .md-standard-page-header,
  .woocommerce-cart .md-standard-page-content,
  .woocommerce-cart .woocommerce-message,
  .woocommerce-cart .woocommerce-info,
  .woocommerce-cart .woocommerce-error {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* v213: cart title matches jewelry/shop/diamonds archive header; cart width refined; footer collections column removed without shifting remaining columns. */
.woocommerce-cart .md-standard-page {
  padding-top: 88px !important;
  padding-bottom: 90px !important;
}
.woocommerce-cart .md-standard-page-header {
  width: min(70vw, var(--content-w)) !important;
  max-width: min(70vw, var(--content-w)) !important;
  margin: 0 auto 34px !important;
  padding: 2rem 2rem 0 !important;
  text-align: center !important;
}
.woocommerce-cart .md-standard-page-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  text-align: center !important;
  margin: 0 0 1.5rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.02em !important;
}
.woocommerce-cart .md-standard-page-header::after {
  content: "" !important;
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  background: var(--linen-dark) !important;
  margin: 0 auto !important;
}
.woocommerce-cart .md-standard-page-content,
.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  width: min(70vw, var(--content-w)) !important;
  max-width: min(70vw, var(--content-w)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.woocommerce-cart .woocommerce {
  padding: 0 !important;
}
.footer-col-placeholder {
  min-height: 1px !important;
}
@media (max-width: 900px) {
  .woocommerce-cart .md-standard-page {
    padding-top: 76px !important;
  }
  .woocommerce-cart .md-standard-page-header,
  .woocommerce-cart .md-standard-page-content,
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .woocommerce-message,
  .woocommerce-cart .woocommerce-info,
  .woocommerce-cart .woocommerce-error {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* v214: remove footer social links and raise Cart title spacing. */
.footer-socials {
  display: none !important;
}
.woocommerce-cart .md-standard-page {
  padding-top: 56px !important;
}
.woocommerce-cart .md-standard-page-header {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
  padding-top: 0 !important;
}
.woocommerce-cart .md-standard-page-title {
  margin-top: 0 !important;
}
@media (max-width: 900px) {
  .woocommerce-cart .md-standard-page {
    padding-top: 58px !important;
  }
}


/* v215: cart title clears sticky header, cart content stays constrained, and home hero title is forced to two visual lines. */
body.woocommerce-cart .md-standard-page.md-cart-page {
  padding-top: 170px !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-header {
  margin-top: 0 !important;
  margin-bottom: 42px !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-title {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem) !important;
  line-height: 1.05 !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-content {
  width: min(70vw, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.woocommerce-cart .md-cart-page .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.home .hero-title-two-line .hero-title-line,
.home .hero-title-two-line .hero-title-line,
.hero-title-two-line .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
}
body.home .hero-title-two-line,
.home .hero-title-two-line,
.hero-title-two-line {
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  font-size: clamp(3rem, 5.35vw, 6.5rem) !important;
}
@media (max-width: 1200px) {
  body.home .hero-title-two-line,
  .home .hero-title-two-line,
  .hero-title-two-line {
    font-size: clamp(2.45rem, 5.05vw, 5rem) !important;
  }
}
@media (max-width: 900px) {
  body.woocommerce-cart .md-standard-page.md-cart-page {
    padding-top: 132px !important;
  }
  body.woocommerce-cart .md-cart-page .md-standard-page-content {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
  body.home .hero-title-two-line,
  .home .hero-title-two-line,
  .hero-title-two-line {
    font-size: clamp(2.05rem, 8.7vw, 3.6rem) !important;
  }
}
@media (max-width: 480px) {
  body.home .hero-title-two-line,
  .home .hero-title-two-line,
  .hero-title-two-line {
    font-size: clamp(1.85rem, 8.2vw, 2.7rem) !important;
  }
}

/* v217: cart header matches jewelry archive title position; divider is full-bleed edge-to-edge. */
body.woocommerce-cart .md-standard-page.md-cart-page {
  padding-top: 9rem !important;
  padding-bottom: 90px !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-header {
  width: min(70vw, var(--content-w)) !important;
  max-width: min(70vw, var(--content-w)) !important;
  margin: 0 auto 42px !important;
  padding: 0 !important;
  text-align: center !important;
  border-bottom: 0 !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(3rem, 5.5vw, 5.5rem) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
  margin: 0 0 1.5rem !important;
  text-align: center !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-header::after {
  content: "" !important;
  display: block !important;
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  height: 1px !important;
  margin-left: -50vw !important;
  background: var(--linen-dark) !important;
}
body.woocommerce-cart .md-cart-page .md-standard-page-content,
body.woocommerce-cart .md-cart-page .woocommerce,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  width: min(70vw, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 900px) {
  body.woocommerce-cart .md-standard-page.md-cart-page {
    padding-top: 9rem !important;
  }
  body.woocommerce-cart .md-cart-page .md-standard-page-header,
  body.woocommerce-cart .md-cart-page .md-standard-page-content,
  body.woocommerce-cart .md-cart-page .woocommerce,
  body.woocommerce-cart .woocommerce-message,
  body.woocommerce-cart .woocommerce-info,
  body.woocommerce-cart .woocommerce-error {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.woocommerce-cart .md-cart-page .md-standard-page-title {
    font-size: clamp(2.4rem, 10vw, 4rem) !important;
  }
}


/* v218: cart title size matched down to the jewelry page title scale; form handlers fixed in functions.php. */
body.woocommerce-cart .md-cart-page .md-standard-page-title {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem) !important;
  font-weight: 300 !important;
  line-height: 1.05 !important;
}
@media (max-width: 900px) {
  body.woocommerce-cart .md-cart-page .md-standard-page-title {
    font-size: clamp(2.25rem, 8.5vw, 3.6rem) !important;
  }
}

/* v223: responsive cover banner scaling across viewport sizes */
.home-cover-banner {
  min-height: clamp(300px, 48vw, 640px) !important;
}
.home-cover-banner-inner {
  min-height: clamp(300px, 48vw, 640px) !important;
  padding-top: clamp(2.25rem, 6vw, 5rem) !important;
  padding-bottom: clamp(2.25rem, 6vw, 5rem) !important;
}
.home-cover-banner-title {
  font-size: clamp(1.75rem, 3.2vw, 3.6rem) !important;
  line-height: 1.05 !important;
}
.home-cover-banner-body {
  font-size: clamp(0.9rem, 1.15vw, 1.1rem) !important;
  line-height: 1.65 !important;
  max-width: min(420px, 100%) !important;
}
.home-cover-banner-content {
  width: min(440px, 45vw) !important;
}
@media (max-width: 1024px) {
  .home-cover-banner {
    min-height: clamp(320px, 54vw, 520px) !important;
  }
  .home-cover-banner-inner {
    min-height: clamp(320px, 54vw, 520px) !important;
    padding-left: clamp(1rem, 4vw, 2rem) !important;
    padding-right: clamp(1rem, 4vw, 2rem) !important;
  }
  .home-cover-banner-content {
    width: min(420px, 52vw) !important;
  }
}
@media (max-width: 760px) {
  .home-cover-banner {
    min-height: clamp(340px, 92vw, 460px) !important;
  }
  .home-cover-banner-inner {
    min-height: clamp(340px, 92vw, 460px) !important;
    padding-top: clamp(2rem, 10vw, 3.5rem) !important;
    padding-bottom: clamp(2rem, 10vw, 3.5rem) !important;
    justify-content: center !important;
  }
  .home-cover-banner-content {
    width: min(100%, 420px) !important;
    text-align: center !important;
  }
  .home-cover-banner-title {
    font-size: clamp(1.9rem, 8vw, 2.7rem) !important;
  }
  .home-cover-banner-body {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (max-width: 480px) {
  .home-cover-banner {
    min-height: clamp(300px, 100vw, 400px) !important;
  }
  .home-cover-banner-inner {
    min-height: clamp(300px, 100vw, 400px) !important;
  }
  .home-cover-banner-link {
    min-height: 42px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.68rem !important;
  }
}


/* v240: Diamond card readability + bottom Total Price layout rebuilt from full theme */
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
.diamonds-archive-live-feed #diamond-grid.listing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1vw, 18px) !important;
  align-items: stretch !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-result-card,
.diamonds-archive-live-feed .nivoda-result-card {
  display: flex !important; flex-direction: column !important; min-height: 100% !important;
  border: 1px solid rgba(17,17,17,0.10) !important; background: #fff !important;
  box-shadow: 0 10px 24px rgba(17,17,17,0.045) !important; overflow: hidden !important; text-align: left !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-media,
.diamonds-archive-live-feed .nivoda-card-media { position: relative !important; background: #f4f4f4 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-media .listing-card-thumb,
.diamonds-archive-live-feed .nivoda-card-media .listing-card-thumb { aspect-ratio: 1 / 0.92 !important; background: #f4f4f4 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-media img,
.diamonds-archive-live-feed .nivoda-card-media img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center !important; transform: scale(1.08) !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-content,
.diamonds-archive-live-feed .nivoda-card-content { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; padding: .8rem .8rem .85rem !important; text-align: left !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-headline,
.diamonds-archive-live-feed .nivoda-card-headline { display: block !important; width: 100% !important; margin: 0 0 .65rem !important; padding: 0 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-title,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-name.nivoda-card-title,
.diamonds-archive-live-feed .nivoda-card-title,
.diamonds-archive-live-feed .listing-card-name.nivoda-card-title { display: block !important; width: 100% !important; margin: 0 auto !important; text-align: center !important; font-size: clamp(.86rem,.9vw,1rem) !important; line-height: 1.25 !important; letter-spacing: .01em !important; color: var(--ink) !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-list,
.diamonds-archive-live-feed .nivoda-spec-list { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: .38rem !important; margin: 0 0 .65rem !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row,
.diamonds-archive-live-feed .nivoda-spec-row { display: flex !important; flex-direction: column !important; gap: .12rem !important; min-width: 0 !important; padding: .45rem .48rem !important; border: 1px solid rgba(17,17,17,.075) !important; background: #fbfaf8 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row span,
.diamonds-archive-live-feed .nivoda-spec-row span { font-size: .58rem !important; line-height: 1 !important; text-transform: uppercase !important; letter-spacing: .09em !important; color: rgba(17,17,17,.52) !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row strong,
.diamonds-archive-live-feed .nivoda-spec-row strong { font-family: var(--font-sans) !important; font-size: .74rem !important; line-height: 1.15 !important; font-weight: 500 !important; color: var(--ink) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-meta,
.diamonds-archive-live-feed .nivoda-card-meta { display: flex !important; flex-direction: column !important; gap: .22rem !important; margin: 0 0 .75rem !important; text-align: left !important; color: rgba(17,17,17,.68) !important; font-size: .68rem !important; line-height: 1.35 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-footer,
.diamonds-archive-live-feed .nivoda-card-footer { margin-top: auto !important; padding-top: .75rem !important; border-top: 1px solid rgba(17,17,17,.08) !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price,
.diamonds-archive-live-feed .nivoda-total-price { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: .75rem !important; margin: 0 0 .65rem !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price span,
.diamonds-archive-live-feed .nivoda-total-price span { font-size: .62rem !important; text-transform: uppercase !important; letter-spacing: .11em !important; color: rgba(17,17,17,.55) !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price strong,
.diamonds-archive-live-feed .nivoda-total-price strong,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-price,
.diamonds-archive-live-feed .nivoda-card-price { font-family: var(--font-serif) !important; font-size: clamp(1.05rem,1.15vw,1.28rem) !important; line-height: 1 !important; font-weight: 400 !important; color: var(--ink) !important; white-space: nowrap !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-actions,
.diamonds-archive-live-feed .nivoda-card-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: .45rem !important; width: 100% !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-actions button,
.diamonds-archive-live-feed .nivoda-card-actions button,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-cart,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-details,
.diamonds-archive-live-feed .nivoda-card-cart,
.diamonds-archive-live-feed .nivoda-card-details { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; min-height: 42px !important; padding: .65rem .45rem !important; text-align: center !important; font-size: .66rem !important; line-height: 1 !important; letter-spacing: .10em !important; text-transform: uppercase !important; white-space: nowrap !important; }
@media (max-width: 1280px) { body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid, .diamonds-archive-live-feed #diamond-grid.listing-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; } }
@media (max-width: 900px) { body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid, .diamonds-archive-live-feed #diamond-grid.listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px 8px !important; } body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-actions, .diamonds-archive-live-feed .nivoda-card-actions { grid-template-columns: 1fr !important; } body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-content, .diamonds-archive-live-feed .nivoda-card-content { padding: .65rem .55rem .7rem !important; } }


/* v242: Diamond archive card layout reset from provided theme + stacked actions */
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
.diamonds-archive-live-feed #diamond-grid.listing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card.nivoda-result-card,
.diamonds-archive-live-feed .listing-card.nivoda-result-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border: 1px solid rgba(17,17,17,.10) !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(17,17,17,.04) !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-media .listing-card-thumb,
.diamonds-archive-live-feed .nivoda-card-media .listing-card-thumb {
  aspect-ratio: 1 / .64 !important;
  background: #f4f4f4 !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-media img,
.diamonds-archive-live-feed .nivoda-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.03) !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-content,
.diamonds-archive-live-feed .nivoda-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: .75rem .8rem .85rem !important;
  text-align: left !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-title,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .listing-card-name.nivoda-card-title,
.diamonds-archive-live-feed .nivoda-card-title,
.diamonds-archive-live-feed .listing-card-name.nivoda-card-title {
  display: block !important;
  width: 100% !important;
  margin: 0 auto .75rem !important;
  text-align: center !important;
  font-family: var(--font-sans) !important;
  font-size: clamp(.86rem,.88vw,.98rem) !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
  letter-spacing: -.01em !important;
  color: #111 !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-list,
.diamonds-archive-live-feed .nivoda-spec-list {
  display: grid !important;
  gap: .32rem !important;
  margin: 0 0 .72rem !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row,
.diamonds-archive-live-feed .nivoda-spec-row {
  display: grid !important;
  grid-template-columns: minmax(70px, 1fr) auto !important;
  align-items: baseline !important;
  gap: .75rem !important;
  font-size: .74rem !important;
  line-height: 1.15 !important;
  color: rgba(17,17,17,.78) !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row span,
.diamonds-archive-live-feed .nivoda-spec-row span { font-weight: 400 !important; text-align: left !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-spec-row strong,
.diamonds-archive-live-feed .nivoda-spec-row strong { font-weight: 500 !important; text-align: right !important; color: #111 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-meta,
.diamonds-archive-live-feed .nivoda-card-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: .24rem !important;
  margin: 0 0 .78rem !important;
  text-align: left !important;
  font-size: .72rem !important;
  line-height: 1.25 !important;
  color: #111 !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-meta span:last-child,
.diamonds-archive-live-feed .nivoda-card-meta span:last-child { color: #079146 !important; font-weight: 650 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-footer,
.diamonds-archive-live-feed .nivoda-card-footer {
  margin-top: auto !important;
  padding-top: .72rem !important;
  border-top: 1px solid rgba(17,17,17,.10) !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price,
.diamonds-archive-live-feed .nivoda-total-price {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: baseline !important;
  gap: .75rem !important;
  margin: 0 0 .62rem !important;
  text-align: left !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price span,
.diamonds-archive-live-feed .nivoda-total-price span { font-size: .76rem !important; color: rgba(17,17,17,.75) !important; font-weight: 400 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-total-price strong,
.diamonds-archive-live-feed .nivoda-total-price strong { font-size: 1.02rem !important; line-height: 1 !important; font-weight: 700 !important; color: #111 !important; text-align: right !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-actions,
.diamonds-archive-live-feed .nivoda-card-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .45rem !important;
  width: 100% !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-actions button,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-cart,
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-details,
.diamonds-archive-live-feed .nivoda-card-actions button,
.diamonds-archive-live-feed .nivoda-card-cart,
.diamonds-archive-live-feed .nivoda-card-details {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: .68rem .85rem !important;
  text-align: center !important;
  border-radius: 5px !important;
  font-size: .75rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-cart,
.diamonds-archive-live-feed .nivoda-card-cart { background: #050505 !important; color: #fff !important; border: 1px solid #050505 !important; }
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-details,
.diamonds-archive-live-feed .nivoda-card-details { background: #fff !important; color: #111 !important; border: 1px solid rgba(17,17,17,.25) !important; }
@media (max-width: 1200px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid.listing-grid,
  .diamonds-archive-live-feed #diamond-grid.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 8px !important; }
}

/* v245 diamond archive spec alignment lock: label left, value right on same row. */
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-list,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-list{display:block!important;width:100%!important;margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important;}
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:12px!important;align-items:baseline!important;width:100%!important;padding:0!important;margin:0 0 7px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row:last-child,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row:last-child{margin-bottom:0!important;}
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-label,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row>span,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-label,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row>span{grid-column:1!important;justify-self:start!important;width:100%!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:left!important;color:rgba(18,35,52,.68)!important;font-size:12px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;}
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-value,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row>strong,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-value,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row>strong{grid-column:2!important;justify-self:end!important;width:100%!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:right!important;color:#111!important;font-size:12px!important;font-weight:500!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;}

/* v246: match spec font weight to certification text and price numerals to listing spec font */
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-label,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row > span,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-value,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row > strong,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-label,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row > span,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-value,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-spec-row > strong {
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
}
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-total-price strong,
body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-price,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-total-price strong,
body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-price {
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

/* v250: Diamond archive cards use the whole card as the details link; hide/remove the duplicate View Details button. */
body.post-type-archive-md_diamond .diamonds-archive-live-feed .nivoda-card-details,
.diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-details {
  display: none !important;
}

/* v252: Responsive homepage spacing and section sizing.
   Replaces fixed homepage content widths with viewport-aware margins so every home section scales cleanly. */
:root {
  --home-section-max: 1650px;
  --home-section-pad: clamp(18px, 4.5vw, 72px);
  --home-section-pad-tight: clamp(16px, 3.25vw, 52px);
  --home-section-y: clamp(56px, 8vw, 128px);
  --home-section-y-tight: clamp(36px, 5.5vw, 88px);
}

.home .site-main,
.home main {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

.home .container,
.home .site-container,
.home .content-width,
.home .section-inner,
.home .page-center,
.home .section > .section-header,
.home .section > .collections-grid,
.home .section > .featured-diamonds-grid,
.home .section > .fd-grid,
.home .section > .watches-grid,
.home .home-jewelry-filter-tiles,
.home .home-showroom-intro,
.home .home-cover-banner-inner,
.home .home-category-section,
.home .home-category-inventory,
.home .philosophy-inner,
.home .newsletter-inner {
  width: 100% !important;
  max-width: min(var(--home-section-max), calc(100vw - (var(--home-section-pad) * 2))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.home .section,
.home .home-showroom-intro,
.home .philosophy,
.home .newsletter {
  padding-top: var(--home-section-y) !important;
  padding-bottom: var(--home-section-y) !important;
}

.home .home-jewelry-filter-tiles,
.home #inventory.home-category-showcase,
.home .home-category-showcase {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .hero-left {
  padding-left: max(var(--home-section-pad), calc((100vw - var(--home-section-max)) / 2 + var(--home-section-pad-tight))) !important;
  padding-right: var(--home-section-pad-tight) !important;
}

.home .hero-right,
.home .hero-background-video,
.home .hero-background-overlay {
  max-width: 100% !important;
}

.home .home-cover-banner {
  width: 100% !important;
  min-height: clamp(420px, 48vw, 720px) !important;
}

.home .home-cover-banner-inner {
  min-height: inherit !important;
}

.home .home-jewelry-filter-tiles {
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 16vw, 260px), 1fr)) !important;
  gap: clamp(8px, 1.2vw, 18px) !important;
}

.home .home-showroom-intro {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
  gap: clamp(32px, 7vw, 120px) !important;
  align-items: center !important;
}

.home #featured-jewelry-section .fd-grid,
.home .featured-jewelry-home .fd-grid,
.home .collections-grid,
.home .watches-grid {
  gap: clamp(10px, 1.35vw, 24px) !important;
}

@media (max-width: 1180px) {
  :root {
    --home-section-pad: clamp(18px, 4vw, 44px);
    --home-section-y: clamp(48px, 7vw, 96px);
  }
  .home .home-showroom-intro {
    grid-template-columns: 1fr !important;
    gap: clamp(28px, 5vw, 56px) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --home-section-pad: clamp(16px, 5vw, 26px);
    --home-section-y: clamp(40px, 9vw, 72px);
    --home-section-y-tight: clamp(28px, 7vw, 52px);
  }
  .home .container,
  .home .site-container,
  .home .content-width,
  .home .section-inner,
  .home .page-center,
  .home .section > .section-header,
  .home .section > .collections-grid,
  .home .section > .featured-diamonds-grid,
  .home .section > .fd-grid,
  .home .section > .watches-grid,
  .home .home-jewelry-filter-tiles,
  .home .home-showroom-intro,
  .home .home-cover-banner-inner,
  .home .home-category-section,
  .home .home-category-inventory,
  .home .philosophy-inner,
  .home .newsletter-inner {
    max-width: calc(100vw - (var(--home-section-pad) * 2)) !important;
  }
  .home .section,
  .home .home-showroom-intro,
  .home .philosophy,
  .home .newsletter {
    padding-top: var(--home-section-y) !important;
    padding-bottom: var(--home-section-y) !important;
  }
  .home .hero-left {
    padding-left: var(--home-section-pad) !important;
    padding-right: var(--home-section-pad) !important;
  }
  .home .home-cover-banner {
    min-height: clamp(380px, 78vw, 560px) !important;
  }
  .home .home-jewelry-filter-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  :root { --home-section-pad: 18px; }
  .home .home-jewelry-filter-tiles {
    max-width: calc(100vw - 24px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home .section-header {
    gap: 1rem !important;
  }
}

/* v254: Corrected homepage responsive sizing with NARROWER margins
   This override is intentionally placed last so it wins over older layout rules. */
:root {
  --md-home-edge: clamp(12px, 1.55vw, 28px);
  --md-home-edge-tight: clamp(10px, 1.1vw, 20px);
  --md-home-max: 1840px;
  --md-home-section-y: clamp(46px, 5.5vw, 96px);
}

body.home,
.home {
  --home-section-pad: var(--md-home-edge) !important;
  --home-section-pad-tight: var(--md-home-edge-tight) !important;
  --home-section-max: var(--md-home-max) !important;
  --home-section-y: var(--md-home-section-y) !important;
}

body.home .site-main,
body.home main,
.home .site-main,
.home main {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

body.home .container,
body.home .page-center,
body.home .section > .section-header,
body.home .section > .collections-grid,
body.home .section > .featured-diamonds-grid,
body.home .section > .fd-grid,
body.home .section > .watches-grid,
body.home .home-jewelry-filter-tiles,
body.home .home-showroom-intro,
body.home .home-cover-banner-inner,
body.home .home-category-row,
body.home .home-category-inventory,
body.home .philosophy-inner,
body.home .newsletter-inner,
.home .container,
.home .page-center,
.home .section > .section-header,
.home .section > .collections-grid,
.home .section > .featured-diamonds-grid,
.home .section > .fd-grid,
.home .section > .watches-grid,
.home .home-jewelry-filter-tiles,
.home .home-showroom-intro,
.home .home-cover-banner-inner,
.home .home-category-row,
.home .home-category-inventory,
.home .philosophy-inner,
.home .newsletter-inner {
  width: min(100%, var(--md-home-max)) !important;
  max-width: calc(100vw - (var(--md-home-edge) * 2)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.home .page-center,
body.home .section > .section-header,
body.home .section > .collections-grid,
body.home .section > .featured-diamonds-grid,
body.home .section > .fd-grid,
body.home .section > .watches-grid,
body.home .home-cover-banner-inner,
body.home .philosophy-inner,
body.home .newsletter-inner,
.home .page-center,
.home .section > .section-header,
.home .section > .collections-grid,
.home .section > .featured-diamonds-grid,
.home .section > .fd-grid,
.home .section > .watches-grid,
.home .home-cover-banner-inner,
.home .philosophy-inner,
.home .newsletter-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home .section,
body.home .home-showroom-intro,
body.home .home-category-showcase,
body.home .philosophy,
body.home .newsletter,
.home .section,
.home .home-showroom-intro,
.home .home-category-showcase,
.home .philosophy,
.home .newsletter {
  padding-top: var(--md-home-section-y) !important;
  padding-bottom: var(--md-home-section-y) !important;
}

body.home .home-jewelry-filter-tiles,
.home .home-jewelry-filter-tiles {
  max-width: calc(100vw - (var(--md-home-edge-tight) * 2)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(clamp(170px, 17vw, 320px), 1fr)) !important;
  gap: clamp(8px, 1.1vw, 18px) !important;
}

body.home .home-showroom-intro,
.home .home-showroom-intro {
  max-width: calc(100vw - (var(--md-home-edge) * 2)) !important;
  padding-left: clamp(18px, 3vw, 54px) !important;
  padding-right: clamp(18px, 3vw, 54px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(28px, 5vw, 96px) !important;
}

body.home .home-showroom-copy,
.home .home-showroom-copy {
  transform: none !important;
}

body.home #inventory.home-category-showcase,
body.home .home-category-showcase,
.home #inventory.home-category-showcase,
.home .home-category-showcase {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: var(--md-home-edge) !important;
  padding-right: var(--md-home-edge) !important;
}

body.home .home-category-row,
.home .home-category-row {
  max-width: var(--md-home-max) !important;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 2.05fr) !important;
  gap: clamp(18px, 2.6vw, 54px) !important;
}

body.home .home-category-carousel .home-category-card,
.home .home-category-carousel .home-category-card {
  flex-basis: calc((100% - (clamp(0.6rem, 1vw, 1rem) * 3)) / 4) !important;
}

body.home .hero-left,
.home .hero-left {
  padding-left: max(var(--md-home-edge), calc((100vw - var(--md-home-max)) / 2 + var(--md-home-edge))) !important;
  padding-right: var(--md-home-edge) !important;
}

body.home .home-cover-banner,
.home .home-cover-banner {
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 1600px) {
  :root {
    --md-home-edge: 24px;
    --md-home-edge-tight: 16px;
    --md-home-max: 1880px;
  }
}

@media (max-width: 1180px) {
  :root {
    --md-home-edge: clamp(14px, 2.2vw, 24px);
    --md-home-edge-tight: clamp(12px, 1.8vw, 20px);
    --md-home-section-y: clamp(42px, 6vw, 82px);
  }
  body.home .home-showroom-intro,
  .home .home-showroom-intro,
  body.home .home-category-row,
  .home .home-category-row {
    grid-template-columns: 1fr !important;
  }
  body.home .home-category-heading,
  .home .home-category-heading {
    position: static !important;
  }
}

@media (max-width: 768px) {
  :root {
    --md-home-edge: clamp(12px, 3.5vw, 20px);
    --md-home-edge-tight: clamp(10px, 3vw, 16px);
    --md-home-section-y: clamp(34px, 8vw, 62px);
  }
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles {
    display: flex !important;
    width: calc(100vw - (var(--md-home-edge-tight) * 2)) !important;
    max-width: calc(100vw - (var(--md-home-edge-tight) * 2)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }
  body.home .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tile {
    flex: 0 0 clamp(118px, 31vw, 190px) !important;
    width: clamp(118px, 31vw, 190px) !important;
    min-width: clamp(118px, 31vw, 190px) !important;
    max-width: clamp(118px, 31vw, 190px) !important;
  }
  body.home .home-showroom-intro,
  .home .home-showroom-intro {
    padding-left: var(--md-home-edge) !important;
    padding-right: var(--md-home-edge) !important;
  }
  body.home .home-category-carousel .home-category-card,
  .home .home-category-carousel .home-category-card {
    flex-basis: calc((100% - 0.55rem) / 2) !important;
  }
  body.home .hero-left,
  .home .hero-left {
    padding-left: var(--md-home-edge) !important;
    padding-right: var(--md-home-edge) !important;
  }
}

@media (max-width: 480px) {
  :root {
    --md-home-edge: 12px;
    --md-home-edge-tight: 10px;
  }
  body.home .home-category-showcase,
  .home .home-category-showcase {
    padding-left: var(--md-home-edge) !important;
    padding-right: var(--md-home-edge) !important;
  }
}

/* v255: Force homepage category tiles under hero into one responsive row on desktop/tablet, with mobile horizontal scroll. */
@media (min-width: 769px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-template-columns: none !important;
    width: calc(100vw - (var(--md-home-edge-tight, 16px) * 2)) !important;
    max-width: 1880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: clamp(8px, 0.75vw, 14px) 0 0 !important;
    gap: clamp(6px, 0.75vw, 14px) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  body.home .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.02 !important;
  }

  body.home .home-jewelry-filter-tile-label,
  .home .home-jewelry-filter-tile-label,
  .home-jewelry-filter-tile-label {
    font-size: clamp(0.58rem, 0.62vw, 0.82rem) !important;
    letter-spacing: clamp(0.06em, 0.45vw, 0.12em) !important;
    padding: clamp(8px, 0.8vw, 14px) 3px clamp(10px, 0.9vw, 16px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 768px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    flex-wrap: nowrap !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 8px 12px 0 !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: none !important;
    box-sizing: border-box !important;
  }

  body.home .home-jewelry-filter-tiles::-webkit-scrollbar,
  .home .home-jewelry-filter-tiles::-webkit-scrollbar,
  .home-jewelry-filter-tiles::-webkit-scrollbar {
    display: none !important;
  }

  body.home .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex: 0 0 clamp(118px, 31vw, 190px) !important;
    width: clamp(118px, 31vw, 190px) !important;
    min-width: clamp(118px, 31vw, 190px) !important;
    max-width: clamp(118px, 31vw, 190px) !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    height: clamp(122px, 34vw, 160px) !important;
    aspect-ratio: auto !important;
  }
}

/* v256: Full-bleed hero category tiles + align showroom copy with inventory headings */
body.home .home-jewelry-filter-tiles,
.home .home-jewelry-filter-tiles,
.home-jewelry-filter-tiles {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    gap: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
  }

  body.home .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border-right: 1px solid rgba(20, 20, 20, 0.08) !important;
  }

  body.home .home-jewelry-filter-tile:last-child,
  .home .home-jewelry-filter-tile:last-child,
  .home-jewelry-filter-tile:last-child {
    border-right: 0 !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    aspect-ratio: 1 / .92 !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: none !important;
    padding-top: 0 !important;
  }

  body.home .home-jewelry-filter-tiles::-webkit-scrollbar,
  .home .home-jewelry-filter-tiles::-webkit-scrollbar,
  .home-jewelry-filter-tiles::-webkit-scrollbar {
    display: none !important;
  }

  body.home .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tile,
  .home-jewelry-filter-tile {
    flex: 0 0 40vw !important;
    width: 40vw !important;
    min-width: 40vw !important;
    max-width: 40vw !important;
    border-right: 1px solid rgba(20, 20, 20, 0.08) !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    height: clamp(150px, 42vw, 220px) !important;
    aspect-ratio: auto !important;
  }
}

/* Match the Jewelry Showroom left-column starting point to the inventory title grid */
body.home .home-showroom-intro,
.home .home-showroom-intro {
  width: 100% !important;
  max-width: var(--md-home-max, 1880px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--md-home-edge, 24px) !important;
  padding-right: var(--md-home-edge, 24px) !important;
  box-sizing: border-box !important;
}

body.home .home-showroom-copy,
.home .home-showroom-copy {
  transform: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  justify-self: start !important;
  align-self: center !important;
}

body.home .home-category-row,
.home .home-category-row {
  width: 100% !important;
  max-width: var(--md-home-max, 1880px) !important;
}

body.home .home-category-heading,
.home .home-category-heading {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 1180px) {
  body.home .home-showroom-intro,
  .home .home-showroom-intro,
  body.home .home-category-row,
  .home .home-category-row {
    max-width: calc(100vw - (var(--md-home-edge, 16px) * 2)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* v257: Final force category filter tiles into one single desktop/tablet row. Supports any tile count by shrinking equal-width tiles instead of wrapping. */
@media (min-width: 769px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home-jewelry-filter-tiles > .home-jewelry-filter-tile {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: block !important;
    box-sizing: border-box !important;
    border-right: 1px solid rgba(20, 20, 20, 0.08) !important;
  }

  body.home .home-jewelry-filter-tiles > .home-jewelry-filter-tile:last-child,
  .home .home-jewelry-filter-tiles > .home-jewelry-filter-tile:last-child,
  .home-jewelry-filter-tiles > .home-jewelry-filter-tile:last-child {
    border-right: 0 !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / .88 !important;
  }

  body.home .home-jewelry-filter-tile-label,
  .home .home-jewelry-filter-tile-label,
  .home-jewelry-filter-tile-label {
    font-size: clamp(0.52rem, 0.58vw, 0.78rem) !important;
    letter-spacing: clamp(0.04em, 0.32vw, 0.12em) !important;
    padding: clamp(8px, 0.7vw, 13px) 3px clamp(9px, 0.8vw, 15px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 768px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  body.home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home-jewelry-filter-tiles > .home-jewelry-filter-tile {
    flex: 0 0 42vw !important;
    width: 42vw !important;
    min-width: 42vw !important;
    max-width: 42vw !important;
  }
}

/* v258: Clean category tile spacing — remove faint divider lines and increase gutters while preserving one-row desktop and mobile scroll. */
@media (min-width: 769px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    gap: clamp(12px, 1.15vw, 24px) !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  body.home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home-jewelry-filter-tiles > .home-jewelry-filter-tile {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: #fff !important;
  }

  body.home .home-jewelry-filter-tile::before,
  body.home .home-jewelry-filter-tile::after,
  .home .home-jewelry-filter-tile::before,
  .home .home-jewelry-filter-tile::after,
  .home-jewelry-filter-tile::before,
  .home-jewelry-filter-tile::after,
  body.home .home-jewelry-filter-tile-media::before,
  body.home .home-jewelry-filter-tile-media::after,
  .home .home-jewelry-filter-tile-media::before,
  .home .home-jewelry-filter-tile-media::after,
  .home-jewelry-filter-tile-media::before,
  .home-jewelry-filter-tile-media::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: #fff !important;
  }
}

@media (max-width: 768px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    gap: 12px !important;
    background: #fff !important;
    padding: 0 12px !important;
  }

  body.home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  .home-jewelry-filter-tiles > .home-jewelry-filter-tile,
  body.home .home-jewelry-filter-tile-media,
  .home .home-jewelry-filter-tile-media,
  .home-jewelry-filter-tile-media {
    border: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }
}

/* v259: Slightly reduce category tile spacing while keeping dividers removed. */
@media (min-width: 769px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    gap: clamp(7px, 0.65vw, 14px) !important;
  }
}

@media (max-width: 768px) {
  body.home .home-jewelry-filter-tiles,
  .home .home-jewelry-filter-tiles,
  .home-jewelry-filter-tiles {
    gap: 8px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* v260 corrected: reduce cover banner height so it is closer to the philosophy section proportions. */
body.home .home-cover-banner,
.home .home-cover-banner,
.home-cover-banner {
  min-height: clamp(300px, 34vw, 500px) !important;
}

body.home .home-cover-banner-inner,
.home .home-cover-banner-inner,
.home-cover-banner-inner {
  min-height: clamp(300px, 34vw, 500px) !important;
  padding-top: clamp(2rem, 4vw, 4rem) !important;
  padding-bottom: clamp(2rem, 4vw, 4rem) !important;
}

@media (max-width: 1024px) {
  body.home .home-cover-banner,
  .home .home-cover-banner,
  .home-cover-banner,
  body.home .home-cover-banner-inner,
  .home .home-cover-banner-inner,
  .home-cover-banner-inner {
    min-height: clamp(280px, 45vw, 420px) !important;
  }
}

@media (max-width: 760px) {
  body.home .home-cover-banner,
  .home .home-cover-banner,
  .home-cover-banner,
  body.home .home-cover-banner-inner,
  .home .home-cover-banner-inner,
  .home-cover-banner-inner {
    min-height: clamp(280px, 78vw, 380px) !important;
  }

  body.home .home-cover-banner-inner,
  .home .home-cover-banner-inner,
  .home-cover-banner-inner {
    padding-top: clamp(1.75rem, 8vw, 3rem) !important;
    padding-bottom: clamp(1.75rem, 8vw, 3rem) !important;
  }
}


/* v265: definitive mobile cover banner height reduction.
   Uses fixed mobile heights so older clamp/min-height rules cannot keep the section oversized. */
@media (max-width: 760px) {
  body.home section.home-cover-banner,
  body.home .home-cover-banner,
  .home section.home-cover-banner,
  .home .home-cover-banner {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.home .home-cover-banner-img,
  .home .home-cover-banner-img {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home .home-cover-banner-inner,
  .home .home-cover-banner-inner {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home .home-cover-banner-content,
  .home .home-cover-banner-content {
    max-width: min(92vw, 360px) !important;
    text-align: center !important;
  }

  body.home .home-cover-banner-title,
  .home .home-cover-banner-title {
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 0.65rem !important;
  }

  body.home .home-cover-banner-body,
  .home .home-cover-banner-body {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.9rem !important;
    max-width: 330px !important;
  }

  body.home .home-cover-banner-link,
  .home .home-cover-banner-link {
    min-height: 36px !important;
    padding: 0 0.9rem !important;
    font-size: 0.62rem !important;
  }
}

@media (max-width: 480px) {
  body.home section.home-cover-banner,
  body.home .home-cover-banner,
  .home section.home-cover-banner,
  .home .home-cover-banner,
  body.home .home-cover-banner-img,
  .home .home-cover-banner-img,
  body.home .home-cover-banner-inner,
  .home .home-cover-banner-inner {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }

  body.home .home-cover-banner-title,
  .home .home-cover-banner-title {
    font-size: clamp(1.3rem, 6.4vw, 1.75rem) !important;
  }

  body.home .home-cover-banner-body,
  .home .home-cover-banner-body {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
  }
}

/* v266: improve mobile cover banner text readability without increasing mobile banner height. */
@media (max-width: 760px) {
  body.home .home-cover-banner-shade,
  .home .home-cover-banner-shade,
  .home-cover-banner-shade {
    background:
      radial-gradient(circle at center, rgba(10,14,20,0.18) 0%, rgba(10,14,20,0.34) 48%, rgba(10,14,20,0.58) 100%),
      linear-gradient(to top, rgba(10,14,20,0.78) 0%, rgba(10,14,20,0.52) 46%, rgba(10,14,20,0.28) 100%) !important;
  }

  body.home .home-cover-banner-content,
  .home .home-cover-banner-content,
  .home-cover-banner-content {
    max-width: min(90vw, 350px) !important;
    padding: 0.9rem 1rem !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    background: rgba(8, 10, 14, 0.38) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.24) !important;
  }

  body.home .home-cover-banner-title,
  .home .home-cover-banner-title,
  .home-cover-banner-title {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.78), 0 1px 2px rgba(0,0,0,0.95) !important;
  }

  body.home .home-cover-banner-body,
  .home .home-cover-banner-body,
  .home-cover-banner-body {
    color: rgba(255,255,255,0.96) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.88), 0 1px 2px rgba(0,0,0,0.95) !important;
  }

  body.home .home-cover-banner-link,
  .home .home-cover-banner-link,
  .home-cover-banner-link {
    color: #fff !important;
    border-color: rgba(255,255,255,0.84) !important;
    background: rgba(0,0,0,0.32) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.65) !important;
  }
}

@media (max-width: 480px) {
  body.home .home-cover-banner-content,
  .home .home-cover-banner-content,
  .home-cover-banner-content {
    max-width: min(88vw, 320px) !important;
    padding: 0.75rem 0.8rem !important;
  }
}

/* v267: remove mobile cover text box; keep readability with image overlay and text shadow only. */
@media (max-width: 760px) {
  body.home .home-cover-banner-shade,
  .home .home-cover-banner-shade,
  .home-cover-banner-shade {
    background:
      radial-gradient(circle at center, rgba(10,14,20,0.08) 0%, rgba(10,14,20,0.32) 46%, rgba(10,14,20,0.66) 100%),
      linear-gradient(to top, rgba(5,7,10,0.82) 0%, rgba(5,7,10,0.50) 46%, rgba(5,7,10,0.24) 100%) !important;
  }

  body.home .home-cover-banner-content,
  .home .home-cover-banner-content,
  .home-cover-banner-content {
    max-width: min(90vw, 350px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.home .home-cover-banner-title,
  .home .home-cover-banner-title,
  .home-cover-banner-title {
    color: #fff !important;
    text-shadow: 0 3px 22px rgba(0,0,0,0.92), 0 1px 3px rgba(0,0,0,1) !important;
  }

  body.home .home-cover-banner-body,
  .home .home-cover-banner-body,
  .home-cover-banner-body {
    color: rgba(255,255,255,0.98) !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.94), 0 1px 3px rgba(0,0,0,1) !important;
  }
}

@media (max-width: 480px) {
  body.home .home-cover-banner-content,
  .home .home-cover-banner-content,
  .home-cover-banner-content {
    max-width: min(88vw, 320px) !important;
    padding: 0 !important;
  }
}

/* v269: Mobile-only hero video focal point moved to right center. */
@media (max-width: 900px) {
  body.home .hero.has-background-video .hero-background-video,
  .home .hero.has-background-video .hero-background-video,
  main .hero.has-background-video .hero-background-video,
  .hero.has-background-video .hero-background-video,
  body.home .hero-background-video,
  .home .hero-background-video {
    object-position: right center !important;
  }
}

/* v270: Mobile-only hero video focal point tuned closer to center with slight left bias. */
@media (max-width: 767px) {
  body.home .hero.has-background-video .hero-background-video,
  .home .hero.has-background-video .hero-background-video,
  main .hero.has-background-video .hero-background-video,
  .hero.has-background-video .hero-background-video,
  body.home .hero-background-video,
  .home .hero-background-video {
    object-position: 46% center !important;
  }
}

/* v271: hide the homepage cover banner on mobile only */
@media (max-width: 767px) {
  body.home section.home-cover-banner,
  body.home .home-cover-banner,
  .home section.home-cover-banner,
  .home .home-cover-banner {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* v272: Mobile jewelry/shop listing cards use the same white background as the site. */
@media (max-width: 900px) {
  body .jewelry-archive-page,
  body .md-wc-shop-page,
  body.post-type-archive-md_jewelry,
  body.tax-md_jewelry_category,
  body .jewelry-archive-page .archive-layout,
  body .md-wc-shop-page .archive-layout,
  body .jewelry-archive-page .listing-area,
  body .md-wc-shop-page .listing-area,
  body .jewelry-archive-page #jewelry-grid.listing-grid,
  body .md-wc-shop-page #jewelry-grid.listing-grid,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid {
    background: #fff !important;
    background-color: #fff !important;
  }

  body .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
  body .md-wc-shop-page #jewelry-grid.listing-grid > .listing-card,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card,
  body .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-body,
  body .md-wc-shop-page #jewelry-grid.listing-grid > .listing-card .listing-card-body,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-body,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-body {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
  }

  body .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
  body .md-wc-shop-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
  body.post-type-archive-md_jewelry .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
  body.tax-md_jewelry_category .jewelry-archive-page #jewelry-grid.listing-grid > .listing-card .listing-card-thumb,
  body .jewelry-archive-page #jewelry-grid .listing-card-thumb,
  body .md-wc-shop-page #jewelry-grid .listing-card-thumb {
    background: #fff !important;
    background-color: #fff !important;
  }
}

/* v273: Mobile homepage inventory listing cards use the same white background as the site. */
@media (max-width: 900px) {
  body.home #inventory.home-category-showcase,
  body.home .home-category-showcase,
  body.home .home-category-row,
  body.home .home-category-inventory,
  body.home .home-category-grid,
  body.home .home-category-carousel,
  .home #inventory.home-category-showcase,
  .home .home-category-showcase,
  .home .home-category-row,
  .home .home-category-inventory,
  .home .home-category-grid,
  .home .home-category-carousel {
    background: #fff !important;
    background-color: #fff !important;
  }

  body.home .home-category-card,
  body.home .home-category-card-title,
  body.home .home-category-card-media,
  body.home .home-category-card-placeholder,
  body.home .home-category-empty,
  .home .home-category-card,
  .home .home-category-card-title,
  .home .home-category-card-media,
  .home .home-category-card-placeholder,
  .home .home-category-empty {
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: none !important;
  }
}

/* v275: Sale banner participates in page offset instead of covering the first section. */
body.md-sale-banner-active {
  --md-sale-banner-height: 40px;
  padding-top: var(--md-sale-banner-height) !important;
}
body.md-sale-banner-active .md-sale-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 260;
}
body.md-sale-banner-active .site-nav {
  top: var(--md-sale-banner-height) !important;
}
body.md-sale-banner-active .md-search-modal {
  top: calc(var(--nav-height, 82px) + var(--md-sale-banner-height)) !important;
}
@media (max-width: 768px) {
  body.md-sale-banner-active {
    --md-sale-banner-height: 38px;
  }
}

/* v278: Diamond card meta responsive fix. Stack Certification and Type on smaller desktop/tablet card widths before the two inline labels can overlap. */
@media (max-width: 1180px) {
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta,
  body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    justify-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span,
  body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span:first-child,
  body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span:first-child,
  body.post-type-archive-md_diamond .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span:last-child,
  body .diamonds-archive-live-feed #diamond-grid .nivoda-result-card .nivoda-card-meta span:last-child {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}


/* Diamond card wishlist button */
.nivoda-card-media { position: relative; }

.nivoda-card-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.94);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  backdrop-filter: blur(8px);
}

.nivoda-card-wishlist:hover {
  transform: scale(1.05);
  background: #111;
  color: #fff;
}

.nivoda-card-wishlist.is-active {
  background: #111;
  color: #fff;
}
