.shringr-shop-wrapper {
  --noir: #0B0A08;
  --noir-soft: #17140F;
  --gold: #B08A45;
  --gold-bright: #D9B876;
  --gold-pale: #F2E4C4;
  --gold-glow: rgba(217, 184, 118, 0.35);
  --bordeaux: #6E2430;
  --ivory: #FBF8F2;
  --stone: #F1EBDD;
  --line: #E4DAC2;
  --ink: #17140F;
  --ink-muted: #7A7166;
  --shadow-soft: 0 20px 50px rgba(23, 20, 15, 0.06);
  --ease: cubic-bezier(0.25, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Jost', sans-serif !important;
  color: var(--ink) !important;
  background-color: var(--ivory) !important;
  padding-bottom: 70px;
}

.shringr-shop-wrapper * { box-sizing: border-box; }

.shringr-shop-wrapper .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sparkle Icon */
.style-icon-sparkle {
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1;
  display: inline-block;
}

/* =========================================================
   TOP CONTROLS BAR (SINGLE-LINE BREADCRUMB + H1 WITH INLINE COUNT)
========================================================== */
.shop-controls-bar { 
  background-color: #ffffff !important; 
  border-bottom: 1px solid var(--line) !important; 
  padding: 30px 0 30px 0 !important; 
/*   position: sticky; 
  top: 77px;  */
  z-index: 50; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
}

.shop-controls-header-wrap {
  margin-bottom: 12px;
  text-align: left;
  min-height: 90px;
}

/* Horizontal Single Line Breadcrumbs */
.shringr-rank-math-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  font-size: 0.72rem !important;
  color: var(--ink-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
}

.shringr-rank-math-breadcrumb p,
.shringr-rank-math-breadcrumb div {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.shringr-rank-math-breadcrumb span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.shringr-rank-math-breadcrumb a {
  color: var(--ink-muted) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.shringr-rank-math-breadcrumb a:hover {
  color: var(--gold) !important;
}

.shringr-rank-math-breadcrumb .separator {
  color: var(--gold) !important;
  margin: 0 2px !important;
}

.shringr-rank-math-breadcrumb span.last {
  color: var(--gold) !important;
  font-weight: 600 !important;
}

/* Integrated H1 Title with Count */
.shop-main-integrated-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.9rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: 0.5px;
  margin-bottom: 20px !important;
  margin-top: 0px !important;
  line-height: 1.15;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.title-designs-count {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--ink-muted) !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

.title-designs-count #resultsCount {
  color: var(--gold) !important;
  font-weight: 700 !important;
}

.controls-wrap { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 20px; 
}

.search-input-box { position: relative; flex: 1; max-width: 440px; min-width: 220px; }
.search-input-box input { 
  width: 100% !important; 
  padding: 11px 18px 11px 44px !important; 
  border-radius: 40px !important; 
  border: 1px solid var(--line) !important; 
  background-color: var(--ivory) !important; 
  font-size: 0.82rem !important; 
  outline: none !important; 
  font-family: 'Jost', sans-serif !important; 
  color: var(--ink) !important; 
  transition: var(--ease); 
}
.search-input-box input:focus { 
  border-color: var(--gold) !important; 
  background-color: #fff !important; 
  box-shadow: 0 0 0 3px var(--gold-glow) !important; 
}
.search-input-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }

.controls-actions-group { display: flex; align-items: center; gap: 12px; }

/* Filter Drawer Trigger */
.shringr-shop-wrapper button.filter-drawer-trigger,
.shringr-shop-wrapper .filter-drawer-trigger { 
  display: inline-flex !important; 
  align-items: center; 
  gap: 8px; 
  padding: 10px 20px !important; 
  border-radius: 30px !important; 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border: 1px solid var(--gold) !important; 
  font-size: 0.74rem !important; 
  font-weight: 600 !important; 
  letter-spacing: 1px !important; 
  text-transform: uppercase !important; 
  cursor: pointer; 
  transition: var(--ease);
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.filter-drawer-trigger:hover { 
  background-color: var(--gold) !important; 
  color: var(--noir) !important; 
  border-color: var(--gold) !important; 
}

.sort-select-pill { 
  padding: 10px 20px !important; 
  border-radius: 30px !important; 
  background-color: var(--ivory) !important; 
  border: 1px solid var(--line) !important; 
  font-size: 0.75rem !important; 
  font-weight: 600 !important; 
  letter-spacing: 1px !important; 
  text-transform: uppercase !important; 
  cursor: pointer; 
  outline: none !important; 
  font-family: 'Jost', sans-serif !important; 
  color: var(--ink) !important; 
  transition: var(--ease); 
}
.sort-select-pill:hover, .sort-select-pill:focus { border-color: var(--gold) !important; }

/* Active Filter Chips */
.active-filters-bar { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; flex-wrap: wrap; }
.filter-chip { 
  background-color: #ffffff !important; 
  border: 1px solid var(--gold) !important; 
  padding: 5px 12px 5px 14px !important; 
  border-radius: 20px !important; 
  font-size: 0.72rem !important; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--ink) !important; 
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-chip span.chip-remove { 
  cursor: pointer; 
  font-weight: 700; 
  font-size: 0.85rem; 
  line-height: 1;
  color: #ffffff !important;
  background-color: var(--noir) !important;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.filter-chip span.chip-remove:hover { 
  background-color: var(--bordeaux) !important;
  transform: scale(1.15) rotate(90deg);
}

/* =========================================================
   OFF-CANVAS SIDEBAR DRAWER & FIXED BOTTOM ACTION BAR
========================================================== */
.filter-sidebar-drawer { 
  position: fixed; 
  top: 0 !important; 
  left: -440px; 
  width: 370px; 
  max-width: 90vw; 
  height: 100vh; 
  z-index: 1000; 
  background-color: #ffffff !important; 
  box-shadow: 10px 0 45px rgba(0,0,0,0.25); 
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.25, 1, 0.3, 1); 
  padding: 0;
  overflow: hidden;
}
.filter-sidebar-drawer.is-open { left: 0; }

.filter-sidebar-overlay { 
  position: fixed; 
  inset: 0; 
  background-color: rgba(11, 10, 8, 0.65) !important; 
  backdrop-filter: blur(4px); 
  z-index: 999; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.35s ease; 
}
.filter-sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }

.sidebar-header-row { 
  display: flex !important; 
  justify-content: space-between !important; 
  align-items: center !important; 
  padding: 24px 24px 16px 24px !important; 
  border-bottom: 1px solid var(--line) !important; 
  background-color: #ffffff;
  flex-shrink: 0;
}
.sidebar-header-row h3 { 
  font-family: 'Cormorant Garamond', serif !important; 
  font-size: 1.6rem !important; 
  font-weight: 600 !important; 
  color: var(--ink) !important; 
  margin: 0 !important; 
}

/* Circular Close Button */
.close-sidebar-btn {
  background-color: var(--ivory) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  transition: var(--ease) !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.close-sidebar-btn:hover {
  background-color: var(--noir) !important;
  color: var(--gold-bright) !important;
  border-color: var(--noir) !important;
  transform: rotate(90deg);
}

/* Scrollable Drawer Body */
.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Fixed Bottom Action Footer */
.drawer-fixed-footer {
  padding: 16px 20px;
  background-color: #ffffff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.drawer-btn-clear {
  background-color: #ffffff !important;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
  padding: 12px 14px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: var(--ease);
}
.drawer-btn-clear:hover {
  background-color: var(--stone) !important;
  border-color: var(--bordeaux) !important;
  color: var(--bordeaux) !important;
}

.drawer-btn-apply {
  background-color: var(--noir) !important;
  border: 1.5px solid var(--gold) !important;
  color: var(--gold-bright) !important;
  padding: 12px 16px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.drawer-btn-apply:hover {
  background-color: var(--gold) !important;
  color: var(--noir) !important;
}

.filter-widget { border-bottom: 1px solid #EDE4D3 !important; padding-bottom: 22px; margin-bottom: 22px; }
.filter-widget:last-child { border-bottom: none !important; margin-bottom: 0; padding-bottom: 0; }

/* H2 Widget Heading */
h2.widget-title { 
  font-family: 'Cormorant Garamond', serif !important; 
  font-size: 1.2rem !important; 
  font-weight: 600 !important; 
  color: var(--ink) !important; 
  margin-bottom: 14px; 
  margin-top: 0; 
  line-height: 1.2;
}

.sidebar-category-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-category-item { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 10px 14px !important; 
  border: 1px solid var(--line) !important; 
  border-radius: 8px !important; 
  background-color: var(--ivory) !important; 
  cursor: pointer; 
  transition: var(--ease); 
  font-size: 0.8rem !important; 
  font-weight: 500 !important; 
  color: var(--ink) !important; 
}
.sidebar-category-item:hover, .sidebar-category-item.active { 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border-color: var(--noir) !important; 
}
.sidebar-category-item.active .cat-count { 
  background-color: var(--gold) !important; 
  color: var(--noir) !important; 
}
.cat-count { 
  font-size: 0.68rem !important; 
  background-color: var(--stone) !important; 
  color: var(--ink-muted) !important; 
  padding: 2px 8px !important; 
  border-radius: 12px !important; 
  font-weight: 600 !important; 
  transition: var(--ease); 
}

/* =========================================================
   PERFECT CIRCLE METAL SWATCHES (SQUISH / FLATTEN FIX)
========================================================== */
.metal-swatch-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.metal-swatch-item { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 10px 14px !important; 
  border: 1px solid var(--line) !important; 
  border-radius: 8px !important; 
  cursor: pointer; 
  transition: var(--ease); 
  background-color: var(--ivory) !important; 
}
.metal-swatch-item:hover, .metal-swatch-item.selected { 
  border-color: var(--gold) !important; 
  background-color: #fff !important; 
  box-shadow: 0 4px 12px rgba(176, 138, 69, 0.12) !important; 
}

/* Guaranteed Strict Circle Dimensions */
.metal-swatch-dot { 
  width: 22px !important; 
  min-width: 22px !important; 
  max-width: 22px !important;
  height: 22px !important; 
  min-height: 22px !important;
  max-height: 22px !important;
  border-radius: 50% !important; 
  aspect-ratio: 1 / 1 !important;
  border: 1px solid rgba(0,0,0,0.18) !important; 
  flex-shrink: 0 !important; 
  display: inline-block !important; 
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.12) !important;
}
.dot-22k { background: linear-gradient(135deg, #FFD700, #DAA520) !important; }
.dot-18k-rose { background: linear-gradient(135deg, #ECC4B2, #C78B78) !important; }
.dot-polki { background: linear-gradient(135deg, #FFF8DC, #C9AE5D) !important; }
.metal-swatch-item span { font-size: 0.8rem !important; font-weight: 500 !important; color: var(--ink) !important; flex: 1; }
.metal-swatch-item input { display: none !important; }
.metal-swatch-item.selected .custom-check-dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--gold) !important; flex-shrink: 0; }

.facet-shape-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shringr-shop-wrapper button.facet-chip-btn,
.shringr-shop-wrapper .facet-chip-btn { 
  display: flex; 
  align-items: center; 
  gap: 7px; 
  padding: 9px 12px !important; 
  background-color: var(--ivory) !important; 
  border: 1px solid var(--line) !important; 
  border-radius: 8px !important; 
  font-size: 0.76rem !important; 
  color: var(--ink) !important; 
  font-weight: 500 !important; 
  cursor: pointer; 
  transition: var(--ease); 
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.facet-chip-btn:hover,
.shringr-shop-wrapper button.facet-chip-btn.active { 
  border-color: var(--gold) !important; 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
}

.price-slider-wrap input[type="range"] { width: 100%; height: 4px; background-color: var(--line) !important; border-radius: 4px; outline: none; accent-color: var(--gold); cursor: pointer; }
.price-meta-labels { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--ink-muted); margin-top: 8px; font-weight: 500; }
.price-meta-labels strong { color: var(--gold) !important; }

.occasion-list { display: flex; flex-direction: column; gap: 8px; }
.occasion-chip { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 9px 14px !important; 
  border-radius: 8px !important; 
  border: 1px solid var(--line) !important; 
  background-color: var(--ivory) !important; 
  font-size: 0.8rem !important; 
  cursor: pointer; 
  transition: var(--ease); 
}
.occasion-chip:hover, .occasion-chip.active { 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border-color: var(--noir) !important; 
}

/* =========================================================
   FULL WIDTH PRODUCT GRID & ACCURATE IMAGE COVERAGE
========================================================== */
.shop-layout-full { 
  padding: 50px 0 0; 
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.product-card {
  background: #ffffff;
  border: 1px solid #E4DAC2;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px rgba(11, 10, 8, 0.08);
  border-color: #B08A45;
}

.product-img-box {
  position: relative;
  width: 100%;
  height: 300px;
  background: #F1EBDD;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  display: block;
}

.product-img-box a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.product-img-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.3, 1);
  border-radius: 15px 15px 0 0;
  display: block;
}

.product-card:hover .product-img-box img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #0B0A08;
  color: #F2E4C4;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid #B08A45;
  z-index: 2;
  font-family: 'Jost', sans-serif;
}

.badge.bordeaux {
  border-color: #6E2430;
  background: #6E2430;
  color: #FBF8F2;
}

.shringr-shop-wrapper button.wishlist-btn,
.shringr-shop-wrapper .wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50% !important;
  border: 1px solid #E4DAC2 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  color: #17140F !important;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  outline: none;
  padding: 0 !important;
  text-decoration: none !important;
}

.shringr-shop-wrapper .wishlist-btn svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s, stroke 0.3s;
  width: 17px;
  height: 17px;
}

.shringr-shop-wrapper .wishlist-btn:hover {
  background: #ffffff !important;
  transform: scale(1.08);
  border-color: #B08A45 !important;
  box-shadow: 0 6px 16px rgba(176, 138, 69, 0.2) !important;
}

.shringr-shop-wrapper .wishlist-btn.active {
  border-color: #6E2430 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(110, 36, 48, 0.25) !important;
}

.shringr-shop-wrapper .wishlist-btn.active svg {
  fill: #6E2430 !important;
  stroke: #6E2430 !important;
}

.shringr-shop-wrapper .wishlist-btn.heart-pop {
  animation: heartSpringPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.shringr-shop-wrapper .wishlist-btn.heart-pop svg {
  animation: heartInnerBeat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes heartSpringPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32); border-color: #D9B876 !important; }
  65% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes heartInnerBeat {
  0% { transform: scale(1); }
  40% { transform: scale(1.4) rotate(-8deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.shringr-shop-wrapper .wishlist-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #D9B876;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

.shringr-shop-wrapper .wishlist-btn.heart-pop::after {
  animation: wishlistRipple 0.55s ease-out forwards;
}

@keyframes wishlistRipple {
  0% { opacity: 0.9; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.85); }
}

.wish-glitter {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1002;
  transition: transform 0.55s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.55s ease-out;
}

.shringr-shop-wrapper button.quick-view-btn,
.shringr-shop-wrapper .quick-view-btn {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(11, 10, 8, 0.88) !important;
  backdrop-filter: blur(8px);
  color: #F2E4C4 !important;
  border: 1px solid #B08A45 !important;
  padding: 7px 18px !important;
  border-radius: 30px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
  z-index: 3;
  text-decoration: none !important;
}
.product-card:hover .quick-view-btn { bottom: 14px; }
.shringr-shop-wrapper button.quick-view-btn:hover {
  background-color: #B08A45 !important;
  color: #0B0A08 !important;
}

.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.66rem;
  color: #B08A45;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  line-height: 1.2;
}

.product-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #17140F;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.product-title:hover {
  color: #6E2430;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #7A7166;
  margin-bottom: 12px;
  min-height: 18px;
  font-family: 'Jost', sans-serif;
}

.product-rating .stars,
.modal-rating-badge .stars {
  color: #B08A45;
  letter-spacing: 2px;
  font-size: 14px;
  line-height: 1;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 14px;
}

.current-price,
.price-box ins,
.price-box ins .woocommerce-Price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #17140F;
  text-decoration: none;
}

.old-price,
.price-box del,
.price-box del .woocommerce-Price-amount {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: #7A7166;
  text-decoration: line-through;
  opacity: 0.85;
}

.shringr-shop-wrapper button.add-to-cart-btn,
.shringr-shop-wrapper a.add-to-cart-btn,
.shringr-shop-wrapper .add-to-cart-btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  background-color: rgba(176, 138, 69, 0.08) !important;
  color: #17140F !important;
  padding: 5px 18px 5px 6px !important;
  border-radius: 40px !important;
  border: 1px solid rgba(176, 138, 69, 0.35) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.25, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  font-family: 'Jost', sans-serif !important;
  text-decoration: none !important;
  outline: none;
}

.shringr-shop-wrapper .add-to-cart-btn .hero-btn-circle-gold {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: #D9B876 !important;
  color: #0B0A08 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), background-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.shringr-shop-wrapper .add-to-cart-btn:hover {
  background-color: #0B0A08 !important;
  border-color: #0B0A08 !important;
  color: #D9B876 !important;
  box-shadow: 0 10px 25px rgba(176, 138, 69, 0.35) !important;
}

.shringr-shop-wrapper .add-to-cart-btn:hover .hero-btn-circle-gold {
  transform: rotate(45deg);
  background-color: #D9B876 !important;
  color: #0B0A08 !important;
}

.shringr-shop-wrapper .add-to-cart-btn.added {
  background-color: #B08A45 !important;
  color: #0B0A08 !important;
  border-color: #B08A45 !important;
}

/* Pagination */
.shringr-pagination-wrap {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.shringr-pagination-wrap ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shringr-pagination-wrap ul.page-numbers li a,
.shringr-pagination-wrap ul.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--ease);
}

.shringr-pagination-wrap ul.page-numbers li span.current {
  background: var(--noir);
  color: var(--gold-bright);
  border-color: var(--noir);
  font-weight: 700;
}

.shringr-pagination-wrap ul.page-numbers li a:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--noir);
}

/* Flying Token & Sparkles */
.sparkle-particle { 
  position: fixed; 
  pointer-events: none; 
  border-radius: 50%; 
  z-index: 1001; 
  background: radial-gradient(circle, #FFF7D6 0%, #D9B876 70%, transparent 100%) !important; 
  box-shadow: 0 0 10px #D9B876; 
  transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.6s ease-out; 
}
.flying-token { 
  position: fixed; 
  width: 64px; 
  height: 64px; 
  border-radius: 50%; 
  border: 2px solid var(--gold-bright) !important; 
  background-size: cover; 
  background-position: center; 
  z-index: 1000; 
  pointer-events: none; 
  box-shadow: 0 14px 34px rgba(176, 138, 69, 0.7), 0 0 20px rgba(217, 184, 118, 0.5); 
}
.flying-token::after { 
  content: ""; 
  position: absolute; 
  inset: -4px; 
  border-radius: 50%; 
  border: 1.5px dashed var(--gold-pale) !important; 
  animation: spinTokenRing 3s linear infinite; 
}
@keyframes spinTokenRing { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Vault Capsule */
.vault-capsule-wrapper { 
  position: fixed; 
  bottom: 24px; 
  left: 50%; 
  transform: translateX(-50%) translateY(140px); 
  z-index: 999; 
  transition: transform 0.5s var(--ease-elastic), opacity 0.3s ease; 
  max-width: 92vw;
}
.vault-capsule-wrapper.is-visible { 
  transform: translateX(-50%) translateY(0); 
  opacity: 1;
}
.vault-capsule-wrapper.hide-on-footer { 
  transform: translateX(-50%) translateY(140px) !important; 
  opacity: 0 !important;
  pointer-events: none !important;
}

.vault-capsule-bar { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  background: linear-gradient(135deg, rgba(19, 17, 13, 0.96) 0%, rgba(11, 10, 8, 0.98) 100%) !important; 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1.2px solid rgba(217, 184, 118, 0.6) !important; 
  padding: 6px 8px 6px 14px !important; 
  border-radius: 60px !important; 
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(217, 184, 118, 0.25); 
  color: #fff !important; 
  cursor: pointer; 
  user-select: none; 
  position: relative; 
}
.vault-capsule-bar.bounce { animation: vaultArrivalBounce 0.6s var(--ease-elastic); }
@keyframes vaultArrivalBounce { 0% { transform: scale(1); } 40% { transform: scale(1.12); box-shadow: 0 0 40px rgba(217, 184, 118, 0.6); } 70% { transform: scale(0.96); } 100% { transform: scale(1); } }

.vault-jewel-bezel { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  padding: 2px; 
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)) !important; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 0 15px var(--gold-glow); 
  flex-shrink: 0;
}
.vault-jewel-core { 
  width: 100%; 
  height: 100%; 
  background-color: var(--noir) !important; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--gold-bright) !important; 
}
.vault-info-meta { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.vault-info-meta span { font-size: 0.64rem; color: rgba(251, 248, 242, 0.55); text-transform: uppercase; letter-spacing: 1.4px; white-space: nowrap; }
.vault-info-meta strong { font-family: 'Cormorant Garamond', serif !important; font-size: 1.22rem !important; color: var(--gold-bright) !important; letter-spacing: 0.5px; white-space: nowrap; }

.shringr-shop-wrapper button.vault-view-btn,
.shringr-shop-wrapper .vault-view-btn { 
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)) !important; 
  color: var(--noir) !important; 
  border: none !important; 
  padding: 10px 20px !important; 
  border-radius: 30px !important; 
  font-size: 0.72rem !important; 
  font-weight: 700 !important; 
  letter-spacing: 1.2px !important; 
  text-transform: uppercase !important; 
  cursor: pointer; 
  transition: var(--ease); 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  box-shadow: 0 6px 16px rgba(176, 138, 69, 0.3); 
  text-decoration: none !important; 
  white-space: nowrap; 
  flex-shrink: 0;
}
.shringr-shop-wrapper button.vault-view-btn:hover,
.shringr-shop-wrapper button.vault-view-btn:focus { 
  transform: scale(1.04); 
  background-color: var(--gold-bright) !important; 
  color: var(--noir) !important; 
  text-decoration: none !important; 
}

/* =========================================================
   VAULT TRAY MODAL & QUANTITY STEPPER
========================================================== */
.vault-tray-modal { 
  position: fixed; 
  bottom: 100px; 
  left: 50%; 
  transform: translateX(-50%) scale(0.92); 
  width: 440px; 
  max-width: calc(100vw - 32px); 
  background-color: #ffffff !important; 
  border: 1px solid var(--gold) !important; 
  border-radius: 20px !important; 
  box-shadow: 0 25px 60px rgba(11, 10, 8, 0.3); 
  z-index: 998; 
  opacity: 0; 
  pointer-events: none; 
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); 
  padding: 24px; 
  display: flex; 
  flex-direction: column; 
}
.vault-tray-modal.is-open { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; }
.tray-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line) !important; padding-bottom: 14px; margin-bottom: 14px; }
h2.tray-title-text { 
  font-family: 'Cormorant Garamond', serif !important; 
  font-size: 1.4rem !important; 
  font-weight: 600 !important; 
  color: var(--ink) !important; 
  margin: 0; 
}

.shringr-shop-wrapper button.tray-close,
.shringr-shop-wrapper .tray-close { 
  background-color: transparent !important; 
  border: none !important; 
  padding: 0 !important; 
  font-size: 1.3rem !important; 
  cursor: pointer; 
  color: var(--ink-muted) !important; 
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.tray-close:hover,
.shringr-shop-wrapper button.tray-close:focus { 
  background-color: transparent !important; 
  color: var(--bordeaux) !important; 
  text-decoration: none !important; 
}

.tray-items-list { max-height: 270px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.tray-item { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--stone) !important; padding-bottom: 12px; }
.tray-item-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.tray-item-details { flex: 1; }
.tray-item-details h5 { font-size: 0.85rem; font-weight: 600; margin: 0 0 4px; color: var(--ink); line-height: 1.2; }
.tray-item-details p { font-size: 0.8rem; color: var(--gold); font-weight: 700; margin: 0 0 6px 0; }

/* Stepper & Actions in Cart */
.tray-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tray-qty-stepper {
  display: inline-flex;
  align-items: center;
  background-color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 4px;
}

.shringr-shop-wrapper button.tray-qty-btn,
.shringr-shop-wrapper .tray-qty-btn {
  background: transparent !important;
  border: none !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  cursor: pointer;
  padding: 0 !important;
  border-radius: 50%;
  transition: var(--ease);
}
.shringr-shop-wrapper button.tray-qty-btn:hover {
  background-color: var(--gold) !important;
  color: #ffffff !important;
}

.tray-qty-value {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}

.shringr-shop-wrapper button.tray-remove-btn,
.shringr-shop-wrapper .tray-remove-btn { 
  background-color: transparent !important; 
  border: none !important; 
  padding: 0 !important; 
  color: var(--bordeaux) !important; 
  font-size: 0.7rem !important; 
  cursor: pointer; 
  text-decoration: underline !important; 
  font-weight: 500;
}
.shringr-shop-wrapper button.tray-remove-btn:hover,
.shringr-shop-wrapper button.tray-remove-btn:focus { 
  background-color: transparent !important; 
  color: var(--gold) !important; 
  text-decoration: underline !important; 
}

.shringr-shop-wrapper button.tray-checkout-btn,
.shringr-shop-wrapper .tray-checkout-btn { 
  margin-top: 16px; 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border: 1px solid var(--gold) !important; 
  padding: 13px !important; 
  border-radius: 40px !important; 
  font-size: 0.78rem !important; 
  font-weight: 600 !important; 
  letter-spacing: 1.5px !important; 
  text-transform: uppercase !important; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  transition: var(--ease); 
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.tray-checkout-btn:hover,
.shringr-shop-wrapper button.tray-checkout-btn:focus { 
  background-color: var(--gold) !important; 
  color: var(--noir) !important; 
  border-color: var(--gold) !important; 
  text-decoration: none !important; 
}

/* =========================================================
   ULTRA-LUXURY QUICK VIEW MODAL
========================================================== */
.modal-overlay { 
  position: fixed; 
  inset: 0; 
  background-color: rgba(11, 10, 8, 0.82) !important; 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9999; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.35s var(--ease); 
  padding: 24px; 
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-box { 
  background-color: #ffffff !important; 
  border: 1px solid var(--gold) !important; 
  border-radius: 20px !important; 
  max-width: 860px; 
  width: 100%; 
  display: grid; 
  grid-template-columns: 1fr 1.15fr; 
  overflow: hidden; 
  position: relative; 
  max-height: 90vh; 
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 30px rgba(217, 184, 118, 0.2); 
  transform: scale(0.96); 
  transition: transform 0.35s var(--ease-elastic); 
}
.modal-overlay.open .modal-box { transform: scale(1); }

.shringr-shop-wrapper button.modal-close-btn,
.shringr-shop-wrapper .modal-close-btn { 
  position: absolute; 
  top: 14px; 
  right: 14px; 
  background-color: #fff !important; 
  border: 1px solid var(--line) !important; 
  width: 34px !important; 
  height: 34px !important; 
  padding: 0 !important; 
  border-radius: 50% !important; 
  cursor: pointer; 
  z-index: 100; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--ink) !important; 
  transition: var(--ease); 
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.modal-close-btn:hover,
.shringr-shop-wrapper button.modal-close-btn:focus { 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border-color: var(--noir) !important; 
  text-decoration: none !important; 
}

.modal-img-wrap { 
  background-color: var(--stone) !important; 
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  height: 100%;
  min-height: 100%;
}
.modal-img-wrap img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important; 
  object-position: center !important;
  display: block !important;
}

.modal-body { 
  padding: 32px 28px; 
  display: flex; 
  flex-direction: column; 
  overflow-y: auto; 
  max-height: 90vh; 
  -webkit-overflow-scrolling: touch;
}
.modal-category-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; line-height: 1.3; }
.modal-title { font-family: 'Cormorant Garamond', serif !important; font-size: 1.9rem !important; font-weight: 600 !important; color: var(--ink) !important; line-height: 1.15; margin: 0; }
.modal-price-rating-row { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 16px; border-bottom: 1px solid var(--stone) !important; padding-bottom: 12px; }
.modal-price { font-family: 'Cormorant Garamond', serif !important; font-size: 1.6rem !important; font-weight: 700 !important; color: var(--ink); }
.modal-rating-badge { font-size: 0.75rem; color: var(--gold); display: flex; align-items: center; gap: 6px; }

.jewel-specs-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background-color: var(--ivory) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; padding: 12px; margin-bottom: 18px; }
.spec-item-box { display: flex; flex-direction: column; }
.spec-item-box span { font-size: 0.62rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.spec-item-box strong { font-size: 0.78rem; color: var(--ink); font-weight: 600; }

.selector-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 6px; display: flex; justify-content: space-between; }
.selector-label a { color: var(--gold) !important; font-weight: 500; text-decoration: underline !important; font-size: 0.68rem; }

.quick-size-list { display: flex; gap: 8px; margin-bottom: 16px; }
.shringr-shop-wrapper button.size-btn-pill,
.shringr-shop-wrapper .size-btn-pill { 
  flex: 1; 
  padding: 7px 0 !important; 
  text-align: center; 
  border: 1px solid var(--line) !important; 
  border-radius: 6px !important; 
  background-color: var(--ivory) !important; 
  font-size: 0.74rem !important; 
  font-weight: 600 !important; 
  cursor: pointer; 
  transition: var(--ease); 
  color: var(--ink) !important; 
  text-decoration: none !important; 
}
.shringr-shop-wrapper button.size-btn-pill:hover,
.shringr-shop-wrapper button.size-btn-pill:focus,
.shringr-shop-wrapper button.size-btn-pill.active,
.shringr-shop-wrapper .size-btn-pill.active { 
  border-color: var(--noir) !important; 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  text-decoration: none !important; 
}

.pincode-est-box { 
  background-color: #fafafa !important; 
  border: 1px solid var(--line) !important; 
  border-radius: 10px !important; 
  padding: 10px 12px !important; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 18px; 
}
.pincode-est-box input { flex: 1; background-color: transparent !important; border: none !important; outline: none; font-size: 0.78rem; font-family: 'Jost', sans-serif; color: var(--ink); }

.shringr-shop-wrapper .pincode-est-box button { 
  background-color: var(--noir) !important; 
  color: var(--gold-bright) !important; 
  border: none !important; 
  padding: 6px 12px !important; 
  border-radius: 6px !important; 
  font-size: 0.68rem !important; 
  font-weight: 600 !important; 
  text-transform: uppercase !important; 
  letter-spacing: 1px !important; 
  cursor: pointer; 
  text-decoration: none !important; 
}
.shringr-shop-wrapper .pincode-est-box button:hover,
.shringr-shop-wrapper .pincode-est-box button:focus { 
  background-color: var(--gold) !important; 
  color: var(--noir) !important; 
  text-decoration: none !important; 
}

.shop-layout-full.no-controls {
  padding-top: 10px !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .modal-overlay { padding: 12px; }
  .modal-box { 
    grid-template-columns: 1fr; 
    max-height: 92vh; 
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .modal-img-wrap { 
    height: 280px; 
    min-height: 280px; 
    flex-shrink: 0;
  }
  .modal-body { 
    padding: 20px 16px 24px; 
    overflow-y: visible;
    max-height: none;
  }
  .modal-title { font-size: 1.5rem !important; }
}

@media (max-width: 580px) {
  .shop-layout-full { 
	 padding: 30px 0 0; 
   }
  .shringr-shop-wrapper .container { padding: 0 12px !important; }
  .shop-controls-bar { top: 60px; padding: 30px 0 !important; }

  .shop-main-integrated-title { font-size: 1.45rem !important; }
  .title-designs-count { font-size: 0.75rem !important; }
  .shringr-rank-math-breadcrumb { font-size: 0.65rem !important; }

  .controls-wrap { flex-direction: column; align-items: stretch; gap: 20px; }
  .search-input-box { max-width: 100%; }
  .controls-actions-group { justify-content: space-between; width: 100%; }
  
  .shringr-shop-wrapper button.filter-drawer-trigger,
  .shringr-shop-wrapper .filter-drawer-trigger {
    padding: 8px 14px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
  }
  .sort-select-pill {
    padding: 8px 12px !important;
    font-size: 0.68rem !important;
  }

  .sidebar-header-row {
    padding: 16px 16px 12px 16px !important;
  }
  .sidebar-header-row h3 {
    font-size: 1.3rem !important;
  }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-img-box { height: 280px; }

  /* 320px Floating Vault Capsule */
  .vault-capsule-wrapper { 
    width: calc(100% - 20px) !important; 
    bottom: 12px !important; 
    left: 50% !important;
    transform: translateX(-50%) translateY(130px);
  }
  .vault-capsule-wrapper.is-visible { transform: translateX(-50%) translateY(0); }

  .vault-capsule-bar { 
    width: 100% !important; 
    padding: 5px 6px 5px 8px !important; 
    gap: 6px !important; 
    justify-content: space-between !important; 
  }
  .vault-jewel-bezel {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .vault-info-meta span { 
    font-size: 0.54rem !important; 
    letter-spacing: 0.8px !important; 
  }
  .vault-info-meta strong { 
    font-size: 0.95rem !important; 
  }
  .shringr-shop-wrapper button.vault-view-btn,
  .shringr-shop-wrapper .vault-view-btn { 
    padding: 7px 11px !important; 
    font-size: 0.62rem !important; 
    letter-spacing: 0.6px !important;
    gap: 4px !important;
  }
}



/* =========================================================
   SHRINGR — CLS (LAYOUT SHIFT) FIX BLOCK
   Append this to the END of assets/css/shop-catalogue.css
   Purely additive: reserves vertical space so font swap
   (Jost / Cormorant Garamond) cannot change block heights.
   Nothing above is removed or overridden destructively.
   Works for desktop + mobile.
========================================================== */

/* ---- 1. PRODUCT CARD TEXT BLOCKS (main CLS source, score 0.363) ----
   Before the webfont loads, fallback metrics differ and the title
   flips between 1 and 2 lines, changing card height and pushing the
   whole grid. Reserving 2 lines makes card height font-independent. */

.shringr-shop-wrapper .product-category {
  min-height: 1.2em;
}

.shringr-shop-wrapper .product-title {
  min-height: 2.5em;          /* exactly 2 lines at line-height 1.25 */
  display: block;
}

.shringr-shop-wrapper .price-box {
  min-height: 1.6em;
}

/* Rating row already had min-height:18px — kept, just made font-proof */
.shringr-shop-wrapper .product-rating {
  min-height: 1.4em;
}

/* Keeps the CTA row height locked regardless of font metrics
   (32px circle + 5px top + 5px bottom padding + 2px border) */
.shringr-shop-wrapper button.add-to-cart-btn,
.shringr-shop-wrapper a.add-to-cart-btn,
.shringr-shop-wrapper .add-to-cart-btn {
  min-height: 44px;
}

/* ---- 2. TOP CONTROLS BAR (score 0.032) ---- */

.shringr-shop-wrapper .shringr-rank-math-breadcrumb {
  min-height: 1.2em;
}

.shringr-shop-wrapper .shop-main-integrated-title {
  min-height: 1.15em;
}

/* Pills/selects: lock height so font swap can't resize them */
.shringr-shop-wrapper .sort-select-pill,
.shringr-shop-wrapper button.filter-drawer-trigger,
.shringr-shop-wrapper .filter-drawer-trigger {
  min-height: 38px;
}

.shringr-shop-wrapper .search-input-box input {
  min-height: 42px;
}

/* Active filter chip bar starts empty and is filled by JS after load.
   Reserving nothing is correct here (it should collapse when empty),
   but once chips exist their height must be stable. */
.shringr-shop-wrapper .active-filters-bar:not(:empty) {
  min-height: 30px;
}

/* ---- 3. QUICK VIEW MODAL IMAGE ----
   Modal img starts with an empty src; reserve a square box so it
   cannot report 0 height and trigger the "no explicit dimensions"
   audit or shift the modal body on open. */
.shringr-shop-wrapper .modal-img-wrap img#modalImg {
  aspect-ratio: 1 / 1;
  min-height: 1px;
}

/* ---- 4. MOBILE ----
   Font sizes shrink at <=580px, but all reservations above are in em
   so they scale automatically. Only the fixed-px ones need tuning. */
@media (max-width: 580px) {
  .shringr-shop-wrapper .sort-select-pill,
  .shringr-shop-wrapper button.filter-drawer-trigger,
  .shringr-shop-wrapper .filter-drawer-trigger {
    min-height: 34px;
  }

  .shringr-shop-wrapper .search-input-box input {
    min-height: 40px;
  }
}

/* ---- 5. REDUCE REPAINT COST OF THE OFFSCREEN DRAWER ----
   The drawer is fully rendered but sits at left:-440px. Telling the
   browser it will only ever move lets it be composited instead of
   re-laid-out, which trims the forced-reflow time on load. */
.shringr-shop-wrapper ~ .filter-sidebar-drawer,
.filter-sidebar-drawer {
  will-change: left;
  contain: layout paint;
}