/* ==========================================================================
   LAVISH DESIGNS - CERTIFIED DIAMONDS LUXURY STYLESHEET
   Pure Vanilla CSS for 100% Reliability, Zero Framework Dependency
   ========================================================================== */

/* --- ROOT PALETTE & VARIABLES --- */
:root {
  --ld-bg-main: #140D0A;
  --ld-bg-surface: #1C120F;
  --ld-bg-card: #231612;
  --ld-bg-card-hover: #2E1D18;
  --ld-bg-header: #2B1B16;
  --ld-border: #3A261F;
  --ld-border-gold: rgba(210, 178, 122, 0.4);
  --ld-gold: #D2B27A;
  --ld-gold-light: #E8D5B5;
  --ld-gold-hover: #E5C992;
  --ld-text-white: #FAF4EA;
  --ld-text-muted: #A89587;
  --ld-text-dim: #7A695C;
}

/* --- BASE STYLES --- */
body.diamonds-page {
  background-color: var(--ld-bg-main) !important;
  color: var(--ld-text-white) !important;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  overflow-x: hidden !important;
}

/* --- HERO SECTION --- */
.diamonds-hero {
  position: relative;
  background: radial-gradient(circle at 50% 10%, #2E1D18 0%, #1A100D 50%, #140D0A 100%);
  border-bottom: 1px solid var(--ld-border);
  padding: 56px 20px 48px;
  text-align: center;
}

.diamonds-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(58, 38, 31, 0.8);
  border: 1px solid var(--ld-border-gold);
  color: var(--ld-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.diamonds-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 900px;
}

.diamonds-hero-desc {
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--ld-text-muted);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-weight: 300;
}

/* Section Switcher Tabs */
.section-switcher-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  background: var(--ld-bg-surface);
  border: 1px solid var(--ld-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.switcher-tab-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--ld-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switcher-tab-btn:hover {
  color: var(--ld-gold);
  background: rgba(43, 27, 22, 0.6);
}

.switcher-tab-btn.active {
  background: var(--ld-gold) !important;
  color: #140D0A !important;
  box-shadow: 0 2px 10px rgba(210, 178, 122, 0.35);
}

.switcher-tab-btn .badge-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.switcher-tab-btn.active .badge-pill {
  background: rgba(20, 13, 10, 0.2);
  color: #140D0A;
}

/* Value Props Grid */
.diamonds-value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(58, 38, 31, 0.6);
}

.value-prop-card {
  padding: 8px 12px;
  text-align: center;
}

.value-prop-icon {
  font-size: 26px !important;
  color: var(--ld-gold);
  margin-bottom: 6px;
  display: block;
}

.value-prop-title {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  display: block;
  margin-bottom: 2px;
}

.value-prop-desc {
  font-size: 11px;
  color: var(--ld-text-dim);
}

@media (max-width: 768px) {
  .diamonds-hero {
    padding: 24px 14px 16px !important;
  }
  .diamonds-hero-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }
  .diamonds-hero-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }
  .section-switcher-tabs {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }
  .switcher-tab-btn {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 10.5px !important;
    text-align: center !important;
    justify-content: center !important;
    letter-spacing: 0.04em !important;
  }
  .diamonds-value-props {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
  }
  .value-prop-card {
    padding: 8px 6px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(58, 38, 31, 0.35) !important;
    border-radius: 6px !important;
  }
  .value-prop-icon {
    font-size: 20px !important;
    margin-bottom: 3px !important;
  }
  .value-prop-title {
    font-size: 11px !important;
  }
  .value-prop-desc {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }
}

/* --- STICKY FILTER TOOLBAR (DESKTOP) / RELATIVE (MOBILE) --- */
.diamonds-toolbar-wrap {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: #180F0C;
  border-bottom: 1px solid var(--ld-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  padding: 14px 20px;
}

@media (max-width: 1023px) {
  .diamonds-toolbar-wrap {
    top: 64px;
  }
}

/* CRITICAL MOBILE VIEW: Do NOT stick on mobile to avoid blocking screen */
@media (max-width: 768px) {
  .diamonds-toolbar-wrap {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
    padding: 12px 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  }
}

.shape-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--ld-border) transparent;
}

.shape-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.shape-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--ld-border);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .shape-filter-scroll {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .shape-filter-scroll::-webkit-scrollbar {
    display: none;
  }
}

.shape-label-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-gold);
  white-space: nowrap;
  margin-right: 4px;
}

.shape-filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--ld-bg-surface);
  color: var(--ld-text-white);
  border: 1px solid var(--ld-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shape-filter-btn:hover {
  border-color: var(--ld-gold);
  color: var(--ld-gold);
}

.shape-filter-btn.active {
  background: var(--ld-gold) !important;
  color: #140D0A !important;
  border-color: var(--ld-gold) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .shape-label-tag {
    font-size: 10.5px;
    margin-right: 2px;
  }
  .shape-filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Secondary Filter Bar Grid */
.filter-controls-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1200px) {
  .filter-controls-row {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
  }
}

@media (max-width: 768px) {
  .filter-controls-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}

/* Search Input Styling */
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box .search-icon {
  position: absolute;
  left: 10px;
  color: var(--ld-text-dim);
  font-size: 18px;
  pointer-events: none;
}

.luxury-input {
  width: 100%;
  height: 38px;
  background: #140D0A !important;
  border: 1px solid var(--ld-border) !important;
  border-radius: 6px !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  padding: 0 12px 0 34px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.luxury-input:focus {
  outline: none !important;
  border-color: var(--ld-gold) !important;
  box-shadow: 0 0 0 2px rgba(210, 178, 122, 0.2) !important;
}

.luxury-input::placeholder {
  color: var(--ld-text-dim) !important;
}

/* Luxury Select Dropdowns */
.luxury-select {
  width: 100%;
  height: 38px;
  background: #140D0A url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23D2B27A'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center !important;
  background-size: 14px !important;
  border: 1px solid var(--ld-border) !important;
  border-radius: 6px !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  padding: 0 28px 0 10px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
}

.luxury-select:focus {
  outline: none !important;
  border-color: var(--ld-gold) !important;
  box-shadow: 0 0 0 2px rgba(210, 178, 122, 0.2) !important;
}

.luxury-select option {
  background: #241612 !important;
  color: #FFFFFF !important;
  padding: 8px !important;
}

/* View Mode Switcher */
.view-mode-group {
  display: inline-flex;
  border: 1px solid var(--ld-border);
  background: #140D0A;
  border-radius: 6px;
  padding: 2px;
}

.view-mode-btn {
  padding: 6px 9px;
  border: none;
  background: transparent;
  color: var(--ld-text-dim);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-mode-btn.active {
  background: var(--ld-bg-card);
  color: var(--ld-gold);
}

/* Reset Button */
.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ld-border);
  background: transparent;
  color: var(--ld-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  border-color: var(--ld-gold);
  color: var(--ld-gold);
}

@media (max-width: 768px) {
  .search-input-box {
    grid-column: 1 / -1 !important;
  }
  .search-input-box .luxury-input {
    height: 40px !important;
    font-size: 12.5px !important;
  }
  .luxury-select {
    height: 40px !important;
    font-size: 12px !important;
  }
  .view-mode-group {
    width: 100% !important;
    display: flex !important;
    height: 40px !important;
    box-sizing: border-box !important;
  }
  .view-mode-btn {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .btn-reset-filters {
    width: 100% !important;
    height: 40px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
  }
}

/* --- SECTION HEADERS --- */
.diamond-section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ld-border);
}

@media (min-width: 768px) {
  .diamond-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tag-natural {
  background: rgba(180, 83, 9, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tag-lab {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.diamond-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.diamond-section-desc {
  font-size: 12.5px;
  color: var(--ld-text-muted);
  margin-top: 4px;
  max-width: 650px;
  line-height: 1.5;
}

.section-count-badge {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ld-gold);
  background: var(--ld-bg-surface);
  border: 1px solid var(--ld-border);
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- ROW-WISE LUXURY DATA TABLE --- */
.diamond-table-wrapper {
  background: var(--ld-bg-surface);
  border: 1px solid var(--ld-border);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.diamond-luxury-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.diamond-luxury-table thead tr {
  background: #20130F;
  border-bottom: 2px solid var(--ld-border);
}

.diamond-luxury-table th {
  padding: 14px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-gold);
  text-align: left;
  white-space: nowrap;
}

.diamond-luxury-table th.text-center {
  text-align: center;
}

.diamond-luxury-table th.text-right {
  text-align: right;
}

/* Table Body Rows */
.diamond-row {
  border-bottom: 1px solid rgba(58, 38, 31, 0.6);
  transition: background-color 0.2s ease;
}

.diamond-row:hover {
  background: rgba(43, 27, 22, 0.75);
}

.diamond-row td {
  padding: 12px;
  vertical-align: middle;
  font-size: 12px;
}

/* Jewel Pedestal Thumbnail */
.jewel-pedestal {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: radial-gradient(circle, #2A1D18 0%, #160E0B 100%);
  border: 1px solid var(--ld-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  padding: 4px;
}

.jewel-pedestal:hover {
  transform: scale(1.08);
  border-color: var(--ld-gold);
}

.jewel-pedestal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Shape & Carat Cell */
.carat-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.carat-badge .unit {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ld-gold);
  text-transform: uppercase;
}

.shape-subtext {
  font-size: 12px;
  color: var(--ld-text-white);
  font-weight: 500;
}

.stone-id-tag {
  font-size: 10px;
  color: var(--ld-text-dim);
  font-family: monospace;
}

/* 4Cs Badges */
.specs-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: #140D0A;
  border: 1px solid var(--ld-border);
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Certificate Link */
.cert-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ld-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cert-verify-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.cert-subtext {
  font-size: 10.5px;
  color: var(--ld-text-dim);
  display: block;
  margin-top: 2px;
}

/* Dimensions */
.dimensions-text {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--ld-text-white);
}

.table-depth-text {
  font-size: 10.5px;
  color: var(--ld-text-dim);
}

/* Price Cell */
.price-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.price-sub {
  font-size: 10.5px;
  color: var(--ld-text-dim);
  display: block;
}

/* Row Action Buttons */
.row-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-table-360 {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #241612;
  border: 1px solid var(--ld-border-gold);
  color: var(--ld-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-360:hover {
  background: var(--ld-gold);
  color: #140D0A;
}

.btn-table-inquire {
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--ld-gold);
  color: #140D0A;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-table-inquire:hover {
  background: var(--ld-gold-hover);
  box-shadow: 0 2px 10px rgba(210, 178, 122, 0.4);
}

/* --- CARD GRID VIEW --- */
.diamonds-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.diamond-card-item {
  background: var(--ld-bg-card);
  border: 1px solid var(--ld-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.diamond-card-item:hover {
  border-color: var(--ld-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.card-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, #2A1D18 0%, #160E0B 100%);
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 14px;
  position: relative;
  cursor: pointer;
}

.card-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.diamond-card-item:hover .card-image-box img {
  transform: scale(1.1);
}

/* ==========================================================================
   MODAL SYSTEMS - FIXED Z-INDEX & ROCK SOLID RESPONSIVENESS
   ========================================================================== */
.luxury-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important; /* Above everything including sticky table headers */
  background: rgba(14, 9, 7, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.luxury-modal-overlay.active {
  display: flex !important;
}

.luxury-modal-dialog {
  position: relative;
  width: 100%;
  background: #1C120F !important;
  border: 1px solid var(--ld-border-gold) !important;
  border-radius: 12px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #241612;
  border-bottom: 1px solid var(--ld-border);
}

.modal-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.modal-header-sub {
  font-size: 11px;
  color: var(--ld-text-dim);
  margin-top: 2px;
}

.modal-close-icon {
  background: transparent;
  border: none;
  color: var(--ld-text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-icon:hover {
  background: var(--ld-border);
  color: #FFFFFF;
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
}

/* 4Cs Spec Grid Inside Preview Modal (Strictly Non-Overlapping) */
.specs-4cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.spec-4c-box {
  background: #140D0A;
  border: 1px solid var(--ld-border);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
}

.spec-4c-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ld-text-dim);
  letter-spacing: 0.08em;
  display: block;
}

.spec-4c-val {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  display: block;
}

/* Extended Specs Table in Modal */
.modal-specs-list {
  border-top: 1px solid var(--ld-border);
  border-bottom: 1px solid var(--ld-border);
  padding: 10px 0;
  margin: 12px 0;
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  color: var(--ld-text-muted);
}

.modal-spec-row .val {
  color: #FFFFFF;
  font-weight: 600;
}

/* 360 Iframe Box */
.iframe-360-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
}

.iframe-360-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   MOBILE VIEW ENHANCEMENTS & QUICK FILTER PILL
   ========================================================================== */
@media (max-width: 640px) {
  .diamonds-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .diamond-card-item {
    padding: 14px !important;
    border-radius: 10px !important;
  }

  .card-image-box {
    height: 220px !important;
    aspect-ratio: auto !important;
  }

  /* Modal on Mobile: Full screen or bottom sheet style */
  .luxury-modal-overlay {
    padding: 8px !important;
    align-items: flex-end !important;
  }

  .luxury-modal-dialog {
    max-height: 94vh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    width: 100% !important;
  }

  .modal-header-bar {
    padding: 14px 16px !important;
  }

  .modal-header-title {
    font-size: 16px !important;
  }

  .modal-body-scroll {
    padding: 14px 16px 20px !important;
  }
}

/* Floating Mobile Quick Filter Button */
.floating-filter-pill {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #241612;
  color: var(--ld-gold);
  border: 1px solid var(--ld-border-gold);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
}

.floating-filter-pill.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-filter-pill:hover,
.floating-filter-pill:active {
  background: var(--ld-gold);
  color: #140D0A;
}

