/**
 * Rani Saree Store - Custom Sections Stylesheet
 * Match reference design: Shop by Collection & New Arrivals
 */

:root {
  --rani-primary-maroon: #580f1e;
  --rani-primary-maroon-hover: #430915;
  --rani-gold: #d4af37;
  --rani-gold-light: #e6c86e;
  --rani-new-badge-bg: #e2b96f;
  --rani-new-badge-color: #382006;
  --rani-off-badge-bg: #fff1f0;
  --rani-off-badge-border: #f8c8c4;
  --rani-off-badge-text: #b02a20;
  --rani-text-dark: #1f1d1b;
  --rani-text-muted: #736b63;
  --rani-card-border: #eee7e0;
  --rani-card-bg: #ffffff;
  --rani-font-heading: "Playfair Display", "Cinzel", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --rani-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rani-radius-sm: 6px;
  --rani-radius-md: 10px;
  --rani-radius-lg: 14px;
}

/* ==========================================================================
   Base Container
   ========================================================================== */
.rani-custom-product-sections {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
  font-family: var(--rani-font-body);
  color: var(--rani-text-dark);
}

.rani-section {
  width: 100%;
  box-sizing: border-box;
}

.rani-section-spacer {
  height: 40px;
}

.rani-empty-notice {
  padding: 30px;
  text-align: center;
  background: #fdfaf6;
  border: 1px dashed var(--rani-card-border);
  border-radius: var(--rani-radius-md);
  color: var(--rani-text-muted);
}

/* ==========================================================================
   Section 1: SHOP BY COLLECTION
   ========================================================================== */
.rani-collection-header {
  text-align: center;
  margin-bottom: 24px;
}

.rani-section-title {
  font-family: var(--rani-font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.rani-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rani-ornament-line {
  display: inline-block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.rani-ornament-icon {
  display: flex;
  align-items: center;
}

/* Collection Grid */
.rani-collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

.rani-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}
.rani-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.rani-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.rani-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rani-category-card {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  text-decoration: none !important;
  background: #1c1514 !important;
  aspect-ratio: 16 / 11 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  outline: none !important;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease !important;
}

.rani-category-card:hover,
.rani-category-card:focus,
.rani-category-card:visited,
.rani-category-card * {
  text-decoration: none !important;
}

.rani-category-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
}

.rani-cat-image-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.rani-cat-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.rani-category-card:hover .rani-cat-image-wrap img {
  transform: scale(1.08) !important;
}

.rani-cat-gradient-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.62) 36%,
    rgba(0, 0, 0, 0.1) 68%,
    transparent 100%
  ) !important;
  pointer-events: none !important;
  transition: background 0.3s ease !important;
}

.rani-category-card:hover .rani-cat-gradient-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.72) 42%,
    rgba(0, 0, 0, 0.15) 75%,
    transparent 100%
  ) !important;
}

.rani-cat-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 10px 12px 12px 12px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 8px !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
}

.rani-cat-name {
  font-family: var(--rani-font-heading, "Playfair Display", serif) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  max-width: 95px !important;
  word-break: break-word !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  flex: 1 !important;
}

.rani-cat-arrow-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  border: 1.5px solid #d4af37 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #d4af37 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
}

.rani-cat-arrow-btn svg {
  width: 11px !important;
  height: 11px !important;
  max-width: 11px !important;
  max-height: 11px !important;
  stroke: #d4af37 !important;
  display: block !important;
  margin: 0 !important;
  stroke-width: 2.4px !important;
}

.rani-category-card:hover .rani-cat-arrow-btn {
  background: #d4af37 !important;
  color: #1a1a1a !important;
  transform: translateX(2px) scale(1.06) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6) !important;
}

.rani-category-card:hover .rani-cat-arrow-btn svg {
  stroke: #1a1a1a !important;
}


/* ==========================================================================
   Section 2: NEW ARRIVALS
   ========================================================================== */
.rani-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rani-arrivals-title {
  font-family: var(--rani-font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1c1a18;
  margin: 0;
}

.rani-view-all-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4a453f;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.rani-view-all-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.8);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.rani-view-all-link:hover {
  color: var(--rani-primary-maroon);
}

.rani-view-all-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Products Grid */
.rani-products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  box-sizing: border-box;
}

/* Product Card */
.rani-product-card {
  background: var(--rani-card-bg);
  border: 1px solid var(--rani-card-border);
  border-radius: var(--rani-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.rani-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #dfd5cb;
}

/* Product Image Area */
.rani-prod-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  background: #f7f4ef;
  overflow: hidden;
}

.rani-prod-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.rani-prod-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.rani-product-card:hover .rani-prod-image {
  transform: scale(1.06);
}

/* Dynamic "NEW" Badge */
.rani-badge-new {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: var(--rani-new-badge-bg, #E2B96F) !important;
  color: var(--rani-new-badge-color, #382006) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  z-index: 5 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  text-shadow: none !important;
}

/* Wishlist Button */
.rani-wishlist-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  color: #555555 !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.rani-wishlist-btn svg,
.rani-wishlist-btn .rani-heart-icon {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  stroke: #555555 !important;
  fill: none !important;
  display: block !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.rani-wishlist-btn:hover {
  background: #ffffff !important;
  color: #c02b2b !important;
  transform: scale(1.1) !important;
}

.rani-wishlist-btn:hover svg,
.rani-wishlist-btn:hover .rani-heart-icon {
  stroke: #c02b2b !important;
}

.rani-wishlist-btn.active {
  background: #ffffff !important;
  color: #c02b2b !important;
}

.rani-wishlist-btn.active svg,
.rani-wishlist-btn.active .rani-heart-icon {
  fill: #c02b2b !important;
  stroke: #c02b2b !important;
}

/* Product Info */
.rani-prod-info {
  padding: 14px 14px 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  box-sizing: border-box !important;
}

.rani-prod-title {
  margin: 0 0 4px 0 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rani-prod-title a {
  color: #1f1d1b !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.rani-prod-title a:hover {
  color: var(--rani-primary-maroon, #580f1e) !important;
}

.rani-prod-subtitle {
  font-size: 12px !important;
  color: #78716c !important;
  line-height: 1.35 !important;
  margin-bottom: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-height: 16px !important;
}

/* Pricing Row */
.rani-prod-price-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.rani-current-price {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1 !important;
}

.rani-current-price .woocommerce-Price-currencySymbol {
  font-size: 14.5px !important;
  font-weight: 600 !important;
}

.rani-regular-price {
  font-size: 12.5px !important;
  color: #9e958c !important;
  text-decoration: line-through !important;
  line-height: 1 !important;
}

.rani-discount-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--rani-off-badge-text, #b02a20) !important;
  background: var(--rani-off-badge-bg, #fff1f0) !important;
  border: 1px solid var(--rani-off-badge-border, #f8c8c4) !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  line-height: 1.2 !important;
  margin-left: 2px !important;
}

/* Swatches Row */
.rani-swatches-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
  min-height: 18px !important;
}

.rani-swatches-list {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.rani-swatch-dot {
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 0 0 1px #d6cec7 !important;
  display: inline-block !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.rani-swatch-dot:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 0 0 1.5px var(--rani-primary-maroon, #580f1e) !important;
}

.rani-more-colors {
  font-size: 11px !important;
  color: var(--rani-text-muted, #736b63) !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* Add To Cart Button */
.rani-add-to-cart-wrap {
  margin-top: auto !important;
  width: 100% !important;
}

.rani-cart-btn {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  background-color: var(--rani-primary-maroon, #580F1E) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--rani-radius-sm, 6px) !important;
  padding: 0 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.rani-cart-btn:hover {
  background-color: var(--rani-primary-maroon-hover, #430915) !important;
  box-shadow: 0 4px 12px rgba(88, 15, 30, 0.3) !important;
  color: #ffffff !important;
}

.rani-cart-btn:active {
  transform: scale(0.98) !important;
}

.rani-cart-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.rani-cart-icon svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  stroke: #ffffff !important;
  fill: none !important;
}

.rani-cart-label {
  display: inline-block !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rani-cart-arrow {
  display: inline-block !important;
  font-size: 13.5px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  transition: transform 0.2s ease !important;
}

.rani-cart-btn:hover .rani-cart-arrow {
  transform: translateX(3px) !important;
}

/* Hide third-party duplicate loop elements */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .whishlist-button,
.woocommerce ul.products li.product .yith-wcwl-add-button,
.woocommerce ul.products li.product .compare-button,
.woocommerce ul.products li.product .product-cats {
  display: none !important;
}


/* AJAX Spinner & State */
.rani-btn-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: rani-spin 0.6s linear infinite;
  margin: 0 !important;
}

@keyframes rani-spin {
  to {
    transform: rotate(360deg);
  }
}

.rani-cart-btn.loading .rani-btn-spinner {
  display: inline-block !important;
}
.rani-cart-btn.loading .rani-cart-icon,
.rani-cart-btn.loading .rani-cart-arrow {
  display: none !important;
}

.rani-cart-btn.added {
  background-color: #1e6b37 !important;
}

/* Floating Toast Notification for AJAX cart add */
.rani-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1b1918;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.rani-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.rani-toast a {
  color: var(--rani-gold);
  text-decoration: underline;
  margin-left: 6px;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Tablets / Small Laptops (max-width: 1100px) */
@media (max-width: 1100px) {
  .rani-collection-grid,
  .rani-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .rani-section-title {
    font-size: 20px;
  }
  .rani-arrivals-title {
    font-size: 18px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .rani-custom-product-sections {
    padding: 20px 14px;
  }
  .rani-collection-grid,
  .rani-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rani-category-card {
    aspect-ratio: 16 / 9;
  }
  .rani-cat-name {
    font-size: 11.5px;
  }
  .rani-prod-title {
    font-size: 13px;
  }
  .rani-current-price {
    font-size: 13.5px;
  }
}

/* Mobile Devices (max-width: 540px) */
@media (max-width: 540px) {
  /* Shop By Collection: Pure Sleek Grid Layout (Reduced Height) */
  .rani-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    width: 100% !important;
  }

  .rani-category-card {
    width: 100% !important;
    flex: none !important;
    scroll-snap-align: none !important;
    aspect-ratio: 16 / 8.5 !important;
  }

  .rani-cat-content {
    padding: 6px 8px 8px 8px !important;
  }

  .rani-cat-name {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    max-width: 78% !important;
    letter-spacing: 0.04em !important;
  }

  .rani-cat-arrow-btn {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }

  .rani-cat-arrow-btn svg {
    width: 9px !important;
    height: 9px !important;
  }

  /* Horizontal scroll snapping for products */
  .rani-products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #f0eae1;
  }

  .rani-products-grid::-webkit-scrollbar {
    height: 4px;
  }

  .rani-products-grid::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
  }

  .rani-products-grid::-webkit-scrollbar-track {
    background: #f0eae1;
  }

  .rani-product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }

  .rani-prod-image-container {
    aspect-ratio: 1.15 / 1;
  }
}

/* ==========================================================================
   Section 3: SUNGUDI FEATURE BANNER
   ========================================================================== */
.rani-feature-banner {
  width: 100%;
  background: #440a13;
  background: linear-gradient(90deg, #3d070f 0%, #4a0d17 50%, #3e0811 100%);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  margin: 30px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-sizing: border-box;
}

.rani-banner-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 180px;
  box-sizing: border-box;
}

/* Left Image Column */
.rani-banner-image-col {
  flex: 0 0 32%;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  overflow: hidden;
}

.rani-banner-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.rani-banner-saree-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.rani-feature-banner:hover .rani-banner-saree-img {
  transform: scale(1.04);
}

.rani-banner-image-blend {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(68, 10, 19, 0.4) 30%,
    rgba(68, 10, 19, 0.9) 75%,
    #440a13 100%
  );
  pointer-events: none;
}

/* Center Content Column */
.rani-banner-content-col {
  flex: 0 0 38%;
  padding: 24px 20px 24px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
}

.rani-banner-kicker {
  font-family: var(--rani-font-heading, "Playfair Display", serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e6c86e;
  margin-bottom: 2px;
  display: block;
}

.rani-banner-title {
  font-family: var(--rani-font-heading, "Playfair Display", serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.rani-banner-desc {
  font-family: var(--rani-font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: #ecdccb;
  margin-bottom: 14px;
  max-width: 420px;
}

.rani-banner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6.5px 16px;
  border: 1.2px solid #d4af37;
  border-radius: 4px;
  background: transparent;
  color: #d4af37 !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

.rani-banner-cta-btn:hover {
  background: #d4af37;
  color: #3d070f !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Right Features Column */
.rani-banner-features-col {
  flex: 0 0 28%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding-right: 24px;
  z-index: 2;
  box-sizing: border-box;
}

.rani-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  min-width: 70px;
  box-sizing: border-box;
}

.rani-feature-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.rani-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #d4af37;
  display: block;
}

.rani-feature-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f5eedf;
  white-space: nowrap;
  line-height: 1.2;
}

.rani-feature-sub {
  font-size: 10px;
  color: #c4b09b;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 2px;
}

.rani-feature-divider {
  width: 1px;
  height: 38px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 175, 55, 0.35),
    transparent
  );
  flex-shrink: 0;
}

/* Banner Responsive Breakpoints */
@media (max-width: 1080px) {
  .rani-banner-title {
    font-size: 28px;
  }
  .rani-banner-desc {
    font-size: 12px;
  }
  .rani-feature-item {
    padding: 0 8px;
    min-width: 60px;
  }
}

@media (max-width: 860px) {
  .rani-banner-container {
    flex-wrap: wrap;
    padding: 20px 16px;
    min-height: auto;
  }
  .rani-banner-image-col {
    flex: 0 0 35%;
    max-height: 220px;
  }
  .rani-banner-content-col {
    flex: 0 0 65%;
    padding: 10px 10px 10px 20px;
  }
  .rani-banner-features-col {
    flex: 0 0 100%;
    justify-content: space-around;
    padding: 16px 0 0 0;
    margin-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
  }
}

@media (max-width: 600px) {
  .rani-banner-container {
    flex-direction: column;
    padding: 0 0 24px 0;
  }
  .rani-banner-image-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 160px;
  }
  .rani-banner-image-blend {
    width: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(68, 10, 19, 0.6) 50%, #440a13 100%);
  }
  .rani-banner-content-col {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    align-items: center;
    padding: 16px 20px;
  }
  .rani-banner-cta-btn {
    align-self: center;
  }
  .rani-banner-features-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 20px 0 20px;
    margin-top: 10px;
  }
  .rani-feature-divider {
    display: none;
  }
  .rani-feature-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 6px;
    padding: 10px 8px;
    min-width: unset;
  }
}

/* ==========================================================================
   Global WooCommerce Product Loop Override (Shop, Categories, Related, etc.)
   ========================================================================== */
html,
body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main,
.woocommerce-page .site-main,
.elementor-widget-wc-archive-products,
.elementor-widget-wc-archive-products .woocommerce,
.woocommerce-page .entry-content > .woocommerce {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Shop Toolbar Flexbox Container */
.elementor-widget-wc-archive-products .woocommerce,
.woocommerce-page .site-main > .woocommerce {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  float: none !important;
  font-size: 13.5px !important;
  color: #78716c !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 38px !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
  height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #dfd7ce !important;
  font-size: 12.5px !important;
  padding: 0 12px !important;
  color: #333333 !important;
  background-color: #ffffff !important;
  outline: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease !important;
}

.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select:focus {
  border-color: #580f1e !important;
}

/* Product Grid */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products,
.elementor-products-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 40px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products:before,
.woocommerce ul.products:after,
.woocommerce-page ul.products:before,
.woocommerce-page ul.products:after {
  content: none !important;
  display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
li.product.rani-woo-grid-item {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  list-style: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

.woocommerce ul.products li.product .rani-product-card,
.woocommerce-page ul.products li.product .rani-product-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.woocommerce ul.products li.product .rani-prod-image-container,
.woocommerce-page ul.products li.product .rani-prod-image-container {
  aspect-ratio: 1.15 / 1 !important;
  max-height: 240px !important;
  width: 100% !important;
}

.woocommerce ul.products li.product .rani-prod-image,
.woocommerce-page ul.products li.product .rani-prod-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.woocommerce ul.products li.product > a:not(.rani-prod-img-link):not(.rani-cart-btn),
.woocommerce ul.products li.product > .button:not(.rani-cart-btn),
.woocommerce ul.products li.product .price:not(.rani-prod-price-row .price),
.woocommerce ul.products li.product .added_to_cart {
  display: none !important;
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Small Tablets / Large Phones (max-width: 768px) */
@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .woocommerce ul.products li.product .rani-prod-info,
  .woocommerce-page ul.products li.product .rani-prod-info {
    padding: 12px 10px !important;
  }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products,
  .elementor-products-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .woocommerce ul.products li.product .rani-prod-info,
  .woocommerce-page ul.products li.product .rani-prod-info {
    padding: 10px 8px 12px 8px !important;
  }
  .woocommerce ul.products li.product .rani-cart-btn,
  .woocommerce-page ul.products li.product .rani-cart-btn {
    font-size: 10px !important;
    padding: 0 8px !important;
    height: 34px !important;
  }
}

/* Pagination */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination {
  width: 100% !important;
  margin: 40px 0 20px 0 !important;
  text-align: center !important;
  clear: both !important;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: inline-block !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #dfd7ce !important;
  border-radius: 6px !important;
  color: #333333 !important;
  background-color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li span.current {
  background-color: #580f1e !important;
  color: #ffffff !important;
  border-color: #580f1e !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-page nav.woocommerce-pagination ul li a:hover {
  border-color: #580f1e !important;
  color: #580f1e !important;
  background-color: #fdfaf7 !important;
}

/* ==========================================================================
   Luxury WooCommerce Sidebar & Product Categories Widget
   ========================================================================== */
/* Reset any Elementor inner container duplicate borders */
.elementor-widget-wp-widget-woocommerce_product_categories,
.elementor-widget-wp-widget-woocommerce_layered_nav,
.elementor-widget-wp-widget-woocommerce_price_filter,
.sidebar .widget,
aside.widget {
  background: #ffffff !important;
  border: 1px solid #efeae3 !important;
  border-radius: 12px !important;
  padding: 22px 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

/* Remove duplicate borders from inner wrappers */
.elementor-widget-wp-widget-woocommerce_product_categories .elementor-widget-container,
.elementor-widget-wp-widget-woocommerce_product_categories .widget_product_categories,
.elementor-widget-container > .widget_product_categories,
.widget_product_categories .woocommerce,
.woocommerce.widget_product_categories {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Widget Heading */
.widget_product_categories h5,
.widget_product_categories .widgettitle,
.widget_product_categories .widget-title,
.elementor-widget-wp-widget-woocommerce_product_categories h5,
.elementor-widget-wp-widget-woocommerce_product_categories .widgettitle {
  font-family: var(--rani-font-heading, "Playfair Display", serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #1f1d1b !important;
  margin: 0 0 14px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 1.5px solid #dfb76c !important;
  display: block !important;
  line-height: 1.3 !important;
}

/* Category List Reset */
.widget_product_categories ul.product-categories,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories,
ul.product-categories {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.widget_product_categories ul.product-categories li.cat-item,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories li.cat-item,
ul.product-categories li.cat-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  border: none !important;
  position: relative !important;
}

.widget_product_categories ul.product-categories li.cat-item::before,
.widget_product_categories ul.product-categories li.cat-item::marker,
ul.product-categories li.cat-item::before,
ul.product-categories li.cat-item::marker {
  content: none !important;
  display: none !important;
}

/* Category Item Link */
.widget_product_categories ul.product-categories li.cat-item > a,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories li.cat-item > a,
ul.product-categories li.cat-item > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  color: #38332f !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: capitalize !important;
  border-radius: 6px !important;
  background: transparent !important;
  line-height: 1.35 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.widget_product_categories ul.product-categories li.cat-item > a:hover,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories li.cat-item > a:hover,
ul.product-categories li.cat-item > a:hover {
  background-color: #f7f2ea !important;
  color: #580f1e !important;
  font-weight: 600 !important;
}

/* Active Category State */
.widget_product_categories ul.product-categories li.cat-item.current-cat > a,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories li.cat-item.current-cat > a,
ul.product-categories li.cat-item.current-cat > a {
  background-color: #580f1e !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Sub-categories / Nested Hierarchy */
.widget_product_categories ul.product-categories ul.children,
.elementor-widget-wp-widget-woocommerce_product_categories ul.product-categories ul.children,
ul.product-categories ul.children {
  list-style: none !important;
  list-style-type: none !important;
  margin: 3px 0 6px 10px !important;
  padding: 3px 0 3px 10px !important;
  border-left: 2px solid #eadecf !important;
  transition: border-color 0.2s ease !important;
}

.widget_product_categories ul.product-categories ul.children:hover,
ul.product-categories ul.children:hover {
  border-left-color: #dfb76c !important;
}

.widget_product_categories ul.product-categories ul.children li.cat-item > a,
ul.product-categories ul.children li.cat-item > a {
  font-size: 12.5px !important;
  padding: 5px 10px !important;
  color: #5e564e !important;
}

/* Category Count Badge */
.widget_product_categories span.count,
.elementor-widget-wp-widget-woocommerce_product_categories span.count,
ul.product-categories span.count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f3ede6 !important;
  color: #78716c !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 1.5px 7px !important;
  border-radius: 10px !important;
  min-width: 18px !important;
  line-height: 1 !important;
  margin-left: 8px !important;
  transition: all 0.2s ease !important;
}

.widget_product_categories li.cat-item > a:hover span.count,
ul.product-categories li.cat-item > a:hover span.count {
  background: #ebd8c4 !important;
  color: #580f1e !important;
}

.widget_product_categories li.cat-item.current-cat > a span.count,
ul.product-categories li.cat-item.current-cat > a span.count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Mobile Responsive Header & Navigation Enhancements
   ========================================================================== */
@media (max-width: 768px) {
  header.elementor-location-header {
    width: 100% !important;
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
  }

  /* Top Announcement Bar on Mobile */
  .elementor-location-header .elementor-element-03790cd {
    padding: 6px 12px !important;
  }

  .elementor-location-header .elementor-element-03790cd .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .elementor-location-header .elementor-element-7e05b11,
  .elementor-location-header .elementor-element-07d3365 {
    display: none !important;
  }

  .elementor-location-header .elementor-element-8504b99 {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .elementor-location-header .elementor-element-735e7db .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .elementor-location-header .elementor-element-735e7db .elementor-icon-box-icon {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header .elementor-element-735e7db .elementor-icon-box-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .elementor-location-header .elementor-element-735e7db .elementor-icon-box-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2 !important;
  }

  .elementor-location-header .elementor-element-735e7db .elementor-icon-box-description {
    display: none !important;
  }

  /* Main Navigation Bar on Mobile */
  .elementor-location-header .elementor-element-51df221 {
    padding: 10px 14px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid #efeae3 !important;
  }

  .elementor-location-header .elementor-element-51df221 .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }

  /* 1. Hamburger Menu Toggle on Left */
  .elementor-location-header .elementor-element-f122f71 {
    order: 1 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    position: static !important;
  }

  .elementor-location-header .elementor-element-f122f71 .elementor-widget-wrap,
  .elementor-location-header .elementor-widget-nav-menu,
  .elementor-location-header .elementor-element-3112dce {
    position: static !important;
  }

  .elementor-location-header .elementor-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    background: transparent !important;
    border: none !important;
    color: #1f1d1b !important;
    cursor: pointer !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .elementor-location-header .elementor-menu-toggle svg,
  .elementor-location-header .elementor-menu-toggle i {
    width: 22px !important;
    height: 22px !important;
    fill: #1f1d1b !important;
    color: #1f1d1b !important;
  }

  /* Fix: Toggle between hamburger and close icon without showing both */
  .elementor-location-header .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--open,
  .elementor-location-header .elementor-menu-toggle:not(.elementor-active) svg.elementor-menu-toggle__icon--open {
    display: block !important;
  }

  .elementor-location-header .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close,
  .elementor-location-header .elementor-menu-toggle:not(.elementor-active) svg.elementor-menu-toggle__icon--close {
    display: none !important;
  }

  .elementor-location-header .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open,
  .elementor-location-header .elementor-menu-toggle.elementor-active svg.elementor-menu-toggle__icon--open {
    display: none !important;
  }

  .elementor-location-header .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close,
  .elementor-location-header .elementor-menu-toggle.elementor-active svg.elementor-menu-toggle__icon--close {
    display: block !important;
  }

  /* 2. Site Logo Center */
  .elementor-location-header .elementor-element-19d60d6 {
    order: 2 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 auto 0 6px !important;
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header .elementor-widget-theme-site-logo,
  .elementor-location-header .elementor-widget-theme-site-logo .elementor-widget-container,
  .elementor-location-header .elementor-widget-theme-site-logo a {
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header .elementor-widget-theme-site-logo img {
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* 3. Action Icons on Right (Search, Account, Cart) */
  .elementor-location-header .elementor-element-281b6ae {
    order: 3 !important;
    width: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    margin: 0 !important;
  }

  .elementor-location-header .elementor-element-281b6ae .elementor-widget {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  .elementor-location-header .elementor-element-281b6ae .elementor-icon,
  .elementor-location-header .elementor-element-281b6ae .elementor-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .elementor-location-header .elementor-element-281b6ae svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }

  /* Hide cart amount text on mobile to save space */
  .elementor-location-header .elementor-menu-cart__toggle_button .elementor-button-text {
    display: none !important;
  }

  .elementor-location-header .elementor-menu-cart__toggle_button {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #1f1d1b !important;
  }

  .elementor-location-header .elementor-menu-cart__toggle_button .elementor-button-icon {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .elementor-location-header .elementor-button-icon-qty {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background: #580f1e !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  /* Mobile Full-Width Dropdown Menu */
  .elementor-location-header .elementor-element-51df221 {
    position: relative !important;
  }

  .elementor-location-header .elementor-element-51df221 .e-con-inner {
    position: static !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    margin: 0 !important;
    transform-origin: top center !important;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease !important;
  }

  /* Hidden when closed */
  .elementor-location-header .elementor-menu-toggle:not(.elementor-active) + .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: scaleY(0) !important;
    overflow: hidden !important;
  }

  /* Expanded and styled when open */
  .elementor-location-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown.elementor-nav-menu__container {
    max-height: 80vh !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 8px 0 14px !important;
    border-top: 1px solid #efeae3 !important;
    border-bottom: 3px solid #580f1e !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
    transform: scaleY(1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown ul.elementor-nav-menu {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown ul.elementor-nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item {
    padding: 13px 20px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #211e1c !important;
    border-bottom: 1px solid #f6f1eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item:hover,
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item:focus {
    background-color: #fbf6f0 !important;
    color: #580f1e !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
    margin: 0 !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-arrow svg {
    width: 13px !important;
    height: 13px !important;
    fill: #554e47 !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-menu {
    background: #fdfaf6 !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid #f6f1eb !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-menu .elementor-sub-item {
    padding: 10px 20px 10px 32px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #554e47 !important;
    display: block !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f4ece4 !important;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-menu li:last-child .elementor-sub-item {
    border-bottom: none !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown .sub-menu .elementor-sub-item:hover,
  .elementor-location-header .elementor-nav-menu--dropdown .sub-menu .elementor-sub-item:focus {
    background-color: #f5ece2 !important;
    color: #580f1e !important;
    padding-left: 36px !important;
  }
}

/* ==========================================================================
   Luxury WooCommerce Single Product Page UI
   ========================================================================== */
.single-product .site-main,
.single-product .elementor-location-single,
.single-product .rani-single-product-container,
.single-product div.product {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 1. Gallery Styling (Left Side) */
.single-product .woocommerce-product-gallery,
.single-product .elementor-widget-woocommerce-product-images {
  position: relative !important;
  margin-bottom: 30px !important;
}

.single-product .woocommerce-product-gallery__wrapper {
  border: 1px solid #efeae3 !important;
  border-radius: 12px !important;
  background: #faf7f2 !important;
  overflow: hidden !important;
  margin: 0 0 14px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
}

.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 10px !important;
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto !important;
}

.single-product .flex-control-thumbs li {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background: #fdfaf6 !important;
}

.single-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}

.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li:hover img {
  opacity: 1 !important;
}

.single-product .flex-control-thumbs li:has(img.flex-active),
.single-product .flex-control-thumbs li:hover {
  border-color: #580f1e !important;
}

/* 2. Product Summary (Right Side) */
.single-product .elementor-widget-woocommerce-product-title .elementor-heading-title,
.single-product h1.product_title {
  font-family: var(--rani-font-heading, "Playfair Display", serif) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1f1d1b !important;
  line-height: 1.25 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: 0.02em !important;
}

/* Price */
.single-product .elementor-widget-woocommerce-product-price .price,
.single-product p.price {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #580f1e !important;
  margin: 0 0 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  line-height: 1 !important;
}

.single-product .price del,
.single-product .elementor-widget-woocommerce-product-price .price del {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #9e958c !important;
  text-decoration: line-through !important;
}

.single-product .price ins,
.single-product .elementor-widget-woocommerce-product-price .price ins {
  text-decoration: none !important;
  font-weight: 700 !important;
  color: #580f1e !important;
}

/* Short Description */
.single-product .elementor-widget-woocommerce-product-short-description,
.single-product .woocommerce-product-details__short-description {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #5e564e !important;
  margin: 0 0 22px 0 !important;
}

/* Variations & Swatches */
.single-product table.variations {
  width: 100% !important;
  margin-bottom: 20px !important;
  border: none !important;
}

.single-product table.variations td.label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1f1d1b !important;
  padding-right: 14px !important;
  vertical-align: middle !important;
  width: 80px !important;
}

.single-product table.variations select {
  height: 42px !important;
  border-radius: 6px !important;
  border: 1px solid #dfd7ce !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  background: #ffffff !important;
  color: #333333 !important;
}

/* Quantity & Add to Cart Container */
.single-product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 20px 0 !important;
}

.single-product .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid #dfd7ce !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  height: 46px !important;
  background: #ffffff !important;
}

.single-product .quantity input.qty {
  width: 54px !important;
  height: 100% !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0 !important;
  color: #1f1d1b !important;
  background: transparent !important;
}

.single-product button.single_add_to_cart_button,
.single-product .elementor-button.single_add_to_cart_button {
  height: 46px !important;
  min-height: 46px !important;
  background-color: #580f1e !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  border: none !important;
  padding: 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
  box-shadow: 0 4px 14px rgba(88, 15, 30, 0.25) !important;
}

.single-product button.single_add_to_cart_button:hover,
.single-product .elementor-button.single_add_to_cart_button:hover {
  background-color: #3e0711 !important;
  color: #d4af37 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(88, 15, 30, 0.35) !important;
}

/* 3. Action Buttons Row (Wishlist, Size Guide) */
.rani-single-actions-bar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 22px !important;
  padding: 14px 0 !important;
  margin: 16px 0 20px 0 !important;
  border-top: 1px solid #efeae3 !important;
  border-bottom: 1px solid #efeae3 !important;
}

.rani-action-btn {
  background: transparent !important;
  border: none !important;
  color: #4a443e !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

.rani-action-btn:hover {
  color: #580f1e !important;
}

.rani-action-btn svg {
  stroke: currentColor !important;
}

.rani-single-wishlist-btn.active svg {
  fill: #c02b2b !important;
  stroke: #c02b2b !important;
}

/* 4. Product Meta & Social Share */
.single-product .product_meta {
  font-size: 13px !important;
  color: #78716c !important;
  line-height: 1.8 !important;
  margin: 16px 0 10px 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.single-product .product_meta > span {
  display: block !important;
}

.single-product .product_meta strong,
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in {
  color: #1f1d1b !important;
  font-weight: 600 !important;
}

.single-product .product_meta a {
  color: #5e564e !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.single-product .product_meta a:hover {
  color: #580f1e !important;
}

/* Social Share Row */
.rani-social-share-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 12px 0 24px 0 !important;
}

.rani-share-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1f1d1b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.rani-share-links {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.rani-share-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f4eee7 !important;
  color: #4a443e !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.rani-share-icon:hover {
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.rani-share-icon.rani-whatsapp:hover { background-color: #25d366 !important; }
.rani-share-icon.rani-facebook:hover { background-color: #1877f2 !important; }
.rani-share-icon.rani-twitter:hover { background-color: #000000 !important; }
.rani-share-icon.rani-pinterest:hover { background-color: #e60023 !important; }

/* 5. Luxury Data Tabs */
.single-product .woocommerce-tabs {
  margin: 50px 0 30px 0 !important;
  border-top: 1px solid #efeae3 !important;
  padding-top: 30px !important;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 32px !important;
  border-bottom: 2px solid #efeae3 !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow-x: auto !important;
}

.single-product .woocommerce-tabs ul.tabs:before,
.single-product .woocommerce-tabs ul.tabs:after {
  content: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 2px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #78716c !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition: all 0.2s ease !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #580f1e !important;
  border-bottom-color: #580f1e !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 10px 0 20px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #4a443e !important;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-family: var(--rani-font-heading, "Playfair Display", serif) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1f1d1b !important;
  margin: 0 0 16px 0 !important;
}

/* Shipping & Delivery Grid inside Tab */
.rani-shipping-features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 16px !important;
}

.rani-ship-feature {
  background: #fbf8f4 !important;
  border: 1px solid #efeae3 !important;
  border-radius: 10px !important;
  padding: 18px 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.rani-ship-icon {
  font-size: 24px !important;
  line-height: 1 !important;
}

.rani-ship-feature strong {
  display: block !important;
  font-size: 14px !important;
  color: #1f1d1b !important;
  margin-bottom: 4px !important;
}

.rani-ship-feature p {
  font-size: 12.5px !important;
  color: #6a625a !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

/* Saree Care List inside Tab */
.rani-care-list {
  padding-left: 20px !important;
  margin: 14px 0 !important;
}

.rani-care-list li {
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
}

/* 6. Saree Guide Modal */
.rani-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

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

.rani-modal-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  max-width: 640px !important;
  width: 100% !important;
  padding: 30px !important;
  position: relative !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
  animation: raniModalFade 0.3s ease !important;
}

@keyframes raniModalFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rani-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  background: transparent !important;
  border: none !important;
  font-size: 26px !important;
  line-height: 1 !important;
  color: #78716c !important;
  cursor: pointer !important;
}

.rani-modal-title {
  font-family: var(--rani-font-heading, "Playfair Display", serif) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1f1d1b !important;
  margin: 0 0 6px 0 !important;
}

.rani-modal-sub {
  font-size: 13.5px !important;
  color: #78716c !important;
  margin: 0 0 20px 0 !important;
}

.rani-modal-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
  margin-bottom: 24px !important;
}

.rani-modal-table th {
  background: #fbf7f2 !important;
  color: #580f1e !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border: 1px solid #efeae3 !important;
  text-align: left !important;
}

.rani-modal-table td {
  padding: 10px 12px !important;
  border: 1px solid #efeae3 !important;
  color: #4a443e !important;
  line-height: 1.45 !important;
}

.rani-modal-footer {
  text-align: right !important;
}

.rani-modal-close-btn {
  background: #580f1e !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 22px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.rani-modal-close-btn:hover {
  background: #3e0711 !important;
}

/* Responsive Single Product */
@media (max-width: 900px) {
  .rani-shipping-features-grid {
    grid-template-columns: 1fr !important;
  }
}
