/* ---------------------------------------------------------------------------
 * 1:1 EXACT MATCH: CIRCULAR PURPLE OUTLINE SHOPPING BAG CART BUTTON
 * Colors sampled 1:1 from user reference:
 * - Icon Stroke: #7F22FE (Electric Violet / Purple)
 * - Circle Border: #DDD6FF (Soft Lavender Outline)
 * - Background: #FFFFFF (Pure White)
 * ------------------------------------------------------------------------ */
html body #react-home-root .rh-card__cart-btn,
html body #react-home-root .mv-cart-btn,
.mv-cart-btn,
.rh-card__cart-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #7f22fe !important;
  border: 1.5px solid #ddd6ff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

html body #react-home-root .rh-card__cart-btn:hover,
html body #react-home-root .mv-cart-btn:hover,
.mv-cart-btn:hover,
.rh-card__cart-btn:hover {
  background: #7f22fe !important;
  border-color: #7f22fe !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(127, 34, 254, 0.25) !important;
}

html body #react-home-root .rh-card__cart-btn svg,
html body #react-home-root .mv-cart-btn svg,
.mv-cart-btn svg,
.rh-card__cart-btn svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: #7f22fe !important;
  stroke-width: 2.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: stroke 0.2s ease !important;
}

html body #react-home-root .rh-card__cart-btn:hover svg,
html body #react-home-root .mv-cart-btn:hover svg,
.mv-cart-btn:hover svg,
.rh-card__cart-btn:hover svg {
  stroke: #ffffff !important;
}

@media (max-width: 991.98px) {
  html body #react-home-root .rh-card__cart-btn,
  html body #react-home-root .mv-cart-btn,
  .mv-cart-btn,
  .rh-card__cart-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  html body #react-home-root .rh-card__cart-btn svg,
  html body #react-home-root .mv-cart-btn svg,
  .mv-cart-btn svg,
  .rh-card__cart-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* ---------------------------------------------------------------------------
 * MODERN TECHLAND-STYLE HERO SLIDER & BANNER LAYOUT (MATCHED 1:1 TO REFERENCE)
 * ------------------------------------------------------------------------ */

/* Edge-to-Edge Container: Removes Left & Right Side Spaces */
.rh-root,
.rh-initial-skeleton {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 16px 48px !important;
  box-sizing: border-box !important;
}

/* 2-Column Hero Grid: Wide Slider + 2 Stacked Side Banners (Edge-to-Edge) */
.rh-hero, .rh-sk-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin: 16px 0 20px !important;
  max-width: 100% !important;
  width: 100% !important;
  height: clamp(360px, 25vw, 440px) !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Remove redundant vertical category rail from under the category navbar */
.rh-rail, .rh-sk-rail {
  display: none !important;
}

/* Main Slider Container */
.rh-slider, .rh-sk-slider {
  position: relative !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
  height: 100% !important;
}

.rh-slider__slide, .rh-sk-slider img {
  border-radius: 10px !important;
}

.rh-slider__slide img, .rh-sk-slider img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Floating Navigation Arrows (< and >) identical to reference */
.rh-slider__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  color: #1e293b !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease !important;
  outline: none !important;
  padding: 0 !important;
}

.rh-slider__arrow:hover {
  background: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32) !important;
  color: #f4511e !important;
}

.rh-slider__arrow--prev {
  left: 16px !important;
}

.rh-slider__arrow--next {
  right: 16px !important;
}

/* Bottom indicator dots */
.rh-slider__dots {
  position: absolute !important;
  bottom: 14px !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 15 !important;
}

.rh-slider__dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.rh-slider__dot.is-active {
  width: 26px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Right Stacked Side Banners */
.rh-side, .rh-sk-side {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 14px !important;
  width: 340px !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.rh-side__card, .rh-sk-side-box {
  display: block !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  height: 100% !important;
  max-height: 100% !important;
  position: relative !important;
}

.rh-side__card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

.rh-side__card img, .rh-sk-side-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

/* Category Tiles: 100% Contained & Aligned with Hero Slider */
.rh-tiles, .rh-sk-tiles {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0 32px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.rh-tile, .rh-sk-tile {
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 14px 6px 12px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
  color: #1e293b !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.rh-tile:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.rh-tile__name {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 28px !important;
}

/* Sections below (Today's Deal, Featured, etc.) aligned inside container */
.rh-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Product Grid: PC/Laptop 1 line with 6 products; Mobile 2 per line, total 6 products */
@media (min-width: 992px) {
  html body #react-home-root .rh-section,
  html body #react-home-root .rh-cats,
  html body #react-home-root .rh-cat {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body #react-home-root .rh-grid,
  html body #react-home-root .rh-skeleton-row {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  html body #react-home-root .rh-grid > :nth-child(-n+6),
  html body #react-home-root .rh-skeleton-row > :nth-child(-n+6) {
    display: flex !important;
  }
  html body #react-home-root .rh-grid > :nth-child(n+7),
  html body #react-home-root .rh-skeleton-row > :nth-child(n+7) {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  html body #react-home-root .rh-section,
  html body #react-home-root .rh-cats,
  html body #react-home-root .rh-cat {
    padding: 0 !important;
    margin: 12px 0 18px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body #react-home-root .rh-grid,
  html body #react-home-root .rh-skeleton-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  html body #react-home-root .rh-grid > :nth-child(-n+6),
  html body #react-home-root .rh-skeleton-row > :nth-child(-n+6) {
    display: flex !important;
  }
  html body #react-home-root .rh-grid > :nth-child(n+7),
  html body #react-home-root .rh-skeleton-row > :nth-child(n+7) {
    display: none !important;
  }
}

/* Responsive Breakpoints for Tablet & Mobile */
@media (max-width: 1200px) {
  .rh-hero, .rh-sk-hero {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    height: 340px !important;
  }
  .rh-side, .rh-sk-side {
    width: 280px !important;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .rh-tiles, .rh-sk-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 767px) {
  .rh-root, .rh-initial-skeleton {
    padding: 0 10px 30px !important;
    width: 100% !important;
  }
  .rh-hero, .rh-sk-hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 10px auto 14px !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .rh-slider, .rh-sk-slider {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 8px !important;
  }
  .rh-side, .rh-sk-side {
    display: grid !important;
    grid-template-rows: none !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 10px !important;
    height: auto !important;
  }
  .rh-side__card, .rh-sk-side-box {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 8px !important;
  }
  .rh-slider__arrow {
    width: 32px !important;
    height: 32px !important;
  }
  .rh-slider__arrow svg {
    width: 16px !important;
    height: 16px !important;
  }
  .rh-tiles, .rh-sk-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 14px 0 20px !important;
  }
}