/* === LAB GROWN DIAMONDS PAGE STYLES === */
/* ========================================================= */
/* --- ELEGANT GLASS BREADCRUMBS --- */
/* ========================================================= */

.breadcrumb {
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Forces the text to match your glass navbar */
.breadcrumb,
.breadcrumb a,
.breadcrumb span {
  font-family: "Instrument Sans", sans-serif !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.breadcrumb a:hover {
  color: #d4af37 !important;
}

/* ========================================================= */
/* --- ELEGANT GLASS BACK BUTTON --- */
/* ========================================================= */

.back-btn {
  align-items: center;
  font-family: "Instrument Sans", sans-serif !important;
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Make the specific Lab Grown title elegant */
.category-header .er-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  margin-bottom: 50px;
}

/* ================================================= */
/* --- THE NEW PRODUCT GRID SETUP --- */
/* ================================================= */

/* 1. DEFAULT GRID: For Lab Grown & Engagement Rings (3 COLUMNS) */


/* 2. EXCLUSIVE GRID: ONLY for Wedding Bands (2 COLUMNS) */


.product-item {
  scroll-snap-align: center;
  position: relative;
  border-right: 1px solid #dcd1c4;
}

/* ================================================= */
/* --- PRODUCT STYLING --- */
/* ================================================= */

/* Product Typography */
.product-name {
  font-size: 1.8rem;
  letter-spacing: 5px;
  color: #8b796d;
  margin-bottom: 20px;
}

/* Accent lines and star (for the bottom rows) */
.title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #8b796d;
  font-size: 0.8rem;
}

.title-accent::before,
.title-accent::after {
  content: "";
  height: 1px;
  width: 30px;
  background-color: #8b796d;
  margin: 0 10px;
}

/* Product Images */
.product-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: none !important;
}

/* "View Details" Button */
.view-details-btn {
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.view-details-btn:hover {
  background-color: #e8dfd3;
}

/* ================================================= */
/* --- MINI PRODUCT IMAGE SLIDER --- */
/* ================================================= */

.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

/* Hides scrollbar for Chrome/Safari */
.image-slider::-webkit-scrollbar {
  display: none;
}

/* Forces each image to take up exactly 100% of the slider box */
.image-slider .product-image {
  flex: 0 0 100% !important;
  scroll-snap-align: center;
  margin-bottom: 0;
}

/* ================================================= */
/* --- SLIDER CONTROLS (DOTS & ARROWS) --- */
/* ================================================= */

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -10px;
  margin-bottom: 20px;
}

.dot {
  background-color: #dcd1c4;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #8b796d;
}

.carousel-container {
  position: relative;
}

.slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}






/* ================================================= */
/* --- PRODUCT DETAILS PAGE LAYOUT --- */
/* ================================================= */

.product-details-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 60px auto;
  gap: 60px;
  padding: 0 20px;
}

.details-left {
  flex: 1;
  min-width: 300px;
}

.details-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Details Typography & Button */
.details-right .er-title {
  font-family: "Fraunces", serif !important;
  font-size: 2.8rem;
  letter-spacing: 5px;
  color: #3a3b36;
  margin-bottom: 10px;
}

.details-right .price {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.4rem;
  color: #8b796d;
  margin-bottom: 30px;
  font-weight: 500;
}

.add-to-cart-btn {
  background-color: #3a3b36;
  color: #ffffff;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 18px 30px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  width: 100%;
  max-width: 350px;
}

.add-to-cart-btn:hover {
  background-color: #8b796d;
}

/* ================================================= */
/* --- GLOBAL ALIGNMENT --- */
/* ================================================= */

h1 {
  text-align: center;
  width: 100%;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

/* ================================================= */
/* --- CUSTOM MIN/MAX PRICE INPUTS --- */
/* ================================================= */
.price-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 90px;
  background-color: transparent;
  font-family: "Fraunces", serif;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
  font-variant-numeric: lining-nums;
}

.price-input:focus {
  border-color: #b89728;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Hide the ugly arrows that default number boxes have */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-separator,
.currency-symbol {
  font-family: "Fraunces", serif;
  color: #666666;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ================================================= */
/* --- FILTER LABELS (PRICE & SHAPE TEXT) --- */
/* ================================================= */

.filter-label {
  font-family: "Fraunces", serif;
  text-transform: uppercase;
  margin-left: 15px;
}

/* ================================================= */
/* --- RESPONSIVE MOBILE FIXES --- */
/* ================================================= */

@media (max-width: 900px) {
  /* BOTH grids will safely drop to 2 columns on tablets */
  .product-grid,
  .wedding-bands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .category-header,
  .category-header .er-title,
  h1 {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .breadcrumb {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .back-btn {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 15px 5% !important;
    width: fit-content !important;
  }

  /* --- FORCES 1 COLUMN STRICTLY ON ALL MOBILE PHONES --- */
  .product-grid,
  .wedding-bands-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    margin: 30px auto !important;
  }

  /* --- ELEGANT MOBILE TOOLBAR FIX --- */
  .toolbar-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 25px !important;
    padding: 0 10px !important;
    margin-bottom: 30px !important;
  }

  /* Put Price and Shape side-by-side, perfectly centered */
  .filter-group {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 25px !important;
    width: 100% !important;
  }

  /* Center the "Price" and "Shape" words above the boxes */
  .filter-wrapper {
    align-items: center !important;
  }

  /* Put Min and Max side-by-side on mobile so it looks like desktop! */
  .price-input-stack {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Make the boxes slightly smaller so they fit on small phone screens */
  .price-input {
    width: 75px !important;
    padding: 8px !important;
    font-size: 1rem !important;
  }

  /* Elegant, centered search bar */
  .search-container {
    width: 100% !important;
    max-width: 320px !important; /* Keeps it from stretching too far */
    margin: 0 auto !important;
  }

  .search-container input {
    width: 100% !important;
    text-align: center !important; /* Centers the placeholder text beautifully */
  }
}

/* ========================================================= */
/* CATALOG CARD BREATHING ROOM + DIVIDERS                    */
/* Applies to Engagement Rings and Wedding Bands listings.   */
/* ========================================================= */
.product-grid > .product-item {
  padding-bottom: 38px !important;
  margin-bottom: 18px !important;
  border-bottom: 1px solid rgba(92, 75, 65, 0.22) !important;
}

.product-grid > .product-item .view-details-btn {
  margin-top: 20px !important;
  margin-bottom: 4px !important;
}

.product-grid > .product-item:last-child {
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .product-grid > .product-item {
    border-right: none !important;
    padding: 0 14px 34px !important;
    margin-bottom: 34px !important;
  }

  .product-grid > .product-item .view-details-btn {
    margin-top: 22px !important;
    margin-bottom: 0 !important;
  }

  .product-grid > .product-item:last-child {
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* ========================================================= */
/* CENTER-CARAT RANGE FILTER + CATALOG CARAT SUMMARY          */
/* ========================================================= */
.carat-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carat-unit {
  min-width: 22px;
  font-family: "Fraunces", serif;
  color: #666666;
  font-size: 1rem;
  font-weight: 600;
}

.product-carat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 350px;
  margin: 12px auto 0;
  padding: 11px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.38);
  border-bottom: 1px solid rgba(212, 175, 55, 0.38);
  color: #5c4b41;
}

.product-carat-summary span {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 1.2px;
}

.product-carat-summary strong {
  flex: 0 0 auto;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #8b6f27;
}

@media (max-width: 768px) {
  .carat-input-stack {
    flex-wrap: nowrap !important;
  }

  .product-carat-summary {
    max-width: 320px;
  }
}


/* Wishlist/bag badge + heart icon styling now lives in one place:
   css/figma-refresh.css (search "SINGLE SOURCE OF TRUTH"). Removed six
   layered patches here (V30/V43/V44/V45/V48/V51) that targeted classes
   never present in any page's HTML (.mm-header-wishlist, .header-wishlist,
   bare .wishlist-link/.wishlist-count/.wishlist-toggle, [data-wishlist],
   .mm-wishlist-icon, .nav-cart) or duplicated the live rules. */
