/**
 * BCM Additions — v2.1.0
 * Hero slider, mega-menu, category archive, related products, RV redesign
 * + Watsons-style category grid (fully responsive, clickable)
 * Appended after main style.css
 */

/* ============================================
   HERO SLIDER — Multi-image carousel style
   Shows left + center + right simultaneously
============================================ */
.bcm-hero-slider {
  padding: 0;
  background: #f4f4f7;
  overflow: hidden;
  position: relative;
}
.bcm-hero-slider .swiper {
  overflow: visible;
  padding: 20px 0 40px;
}
.bcm-hero-slider .swiper-wrapper { align-items: stretch; }
.bcm-hero-slider .swiper-slide {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s, opacity 0.4s;
  opacity: .55;
  transform: scale(.92);
}
.bcm-hero-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.bcm-hero-slider .swiper-slide-prev,
.bcm-hero-slider .swiper-slide-next { opacity: .7; transform: scale(.95); }
.bcm-hero-slide-inner {
  display: block;
  width: 100%;
  aspect-ratio: 16/6.5;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bcm-light);
}
.bcm-hero-slide-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}
.bcm-hero-slide-inner:hover img { transform: scale(1.03); }
.bcm-hero-slider .swiper-button-next,
.bcm-hero-slider .swiper-button-prev {
  color: white;
  background: var(--bcm-primary);
  border-radius: 50%;
  width: 40px; height: 40px;
  top: 50%;
  transform: translateY(-60%);
  display: flex; align-items: center; justify-content: center;
}
.bcm-hero-slider .swiper-button-next::after,
.bcm-hero-slider .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
.bcm-hero-slider .swiper-button-prev { left: 12px; }
.bcm-hero-slider .swiper-button-next { right: 12px; }
.bcm-hero-slider .swiper-pagination { bottom: 12px; }
.bcm-hero-slider .swiper-pagination-bullet { background: var(--bcm-primary); width: 8px; height: 8px; opacity: .4; }
.bcm-hero-slider .swiper-pagination-bullet-active { opacity: 1; width: 24px; border-radius: 4px; }

@media (max-width: 480px) {
  .bcm-hero-slider .swiper { overflow: hidden; padding: 0 0 36px; }
  .bcm-hero-slide-inner { aspect-ratio: 16/9; border-radius: 0; }
  .bcm-hero-slider .swiper-slide { border-radius: 0; }
}

/* ============================================
   PROMO TICKER BAND
============================================ */
.bcm-promo-ticker {
  background: var(--bcm-secondary);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
}
.bcm-promo-ticker-inner {
  display: inline-block;
  animation: bcmPromoTicker 35s linear infinite;
  white-space: nowrap;
  color: var(--bcm-yellow);
  font-size: 12px;
  font-weight: 600;
}
.bcm-promo-ticker:hover .bcm-promo-ticker-inner { animation-play-state: paused; }
.bcm-promo-ticker-inner span { margin: 0 32px; }
@keyframes bcmPromoTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   CATEGORIES MEGA MENU (Desktop)
============================================ */
.bcm-mega-trigger {
  position: relative;
  flex-shrink: 0;
}
.bcm-mega-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  background: var(--bcm-primary);
  color: white;
  border: none;
  border-radius: var(--bcm-radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--bcm-transition);
}
.bcm-mega-btn:hover { background: var(--bcm-primary-dark); }
.bcm-mega-arrow { transition: transform 0.25s; flex-shrink: 0; }
.bcm-mega-btn[aria-expanded="true"] .bcm-mega-arrow { transform: rotate(180deg); }

.bcm-mega-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 860px;
  background: white;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
.bcm-mega-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.bcm-mega-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2px;
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}
.bcm-mega-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--bcm-radius);
  overflow: hidden;
}
.bcm-mega-cat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  text-align: center;
  color: var(--bcm-text);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bcm-radius);
  transition: background 0.2s;
  text-decoration: none;
}
.bcm-mega-cat-main:hover { background: var(--bcm-primary-light); color: var(--bcm-primary); }
.bcm-mega-cat-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bcm-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}
.bcm-mega-cat-icon img { width: 100%; height: 100%; object-fit: contain; }
.bcm-mega-sub {
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  gap: 1px;
}
.bcm-mega-sub li a {
  font-size: 11px;
  color: var(--bcm-text-muted);
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1.4;
  text-decoration: none;
}
.bcm-mega-sub li a:hover { background: var(--bcm-light); color: var(--bcm-primary); }
@media (max-width: 768px) { .bcm-mega-trigger { display: none; } }

/* ============================================
   MOBILE CATEGORIES ACCORDION
============================================ */
.bcm-mobile-cats-section { border-bottom: 1px solid var(--bcm-border); }
.bcm-mobile-cats-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bcm-text);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid var(--bcm-border);
}
.bcm-mobile-cats-arrow { font-size: 18px; transition: transform 0.25s; }
.bcm-mobile-cats-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.bcm-mobile-cats-list.open { max-height: 400px; overflow-y: auto; }
.bcm-mobile-cat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 28px;
  font-size: 14px;
  color: var(--bcm-text);
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
  text-decoration: none;
}
.bcm-mobile-cat-link:hover { background: var(--bcm-primary-light); color: var(--bcm-primary); }
.bcm-mobile-cat-link img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: var(--bcm-light); }
.bcm-mobile-cat-emoji { font-size: 18px; }

/* ============================================
   WATSONS-STYLE CATEGORY GRID
   — homepage + shop page "Shop By Category"
   — Fully clickable, responsive all devices
============================================ */
.bcm-categories-section,
.bcm-shop-cats-section {
  padding: 32px 0 28px;
  background: #f8f9fa;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

/* Section header with "View All" link */
.bcm-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive grid — 7 cols desktop → 2 cols phone */
.bcm-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
@media (max-width: 1400px) { .bcm-cat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1100px) { .bcm-cat-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .bcm-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 720px)  { .bcm-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 520px)  { .bcm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 360px)  { .bcm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* Category card */
.bcm-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1.5px solid #ebebeb;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(233,30,140,0.12);
}
.bcm-cat-card:hover,
.bcm-cat-card:focus {
  box-shadow: 0 6px 24px rgba(233,30,140,.20);
  transform: translateY(-4px);
  border-color: rgba(233,30,140,.35);
  outline: none;
}
.bcm-cat-card:active { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(233,30,140,.15); }

/* Image area */
.bcm-cat-card-img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.bcm-cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.bcm-cat-card:hover .bcm-cat-card-img img { transform: scale(1.08); }

/* Emoji fallback */
.bcm-cat-card-emoji { font-size: 44px; line-height: 1; }

/* "Shop Now" overlay on hover */
.bcm-cat-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(233,30,140,.85) 0%, transparent 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 14px 8px 6px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.bcm-cat-card:hover .bcm-cat-card-overlay { opacity: 1; }

/* Info area below image */
.bcm-cat-card-info {
  padding: 9px 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.bcm-cat-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}
.bcm-cat-card-count {
  font-size: 11px;
  color: #999;
}

/* Small screen: tighten info */
@media (max-width: 680px) {
  .bcm-cat-card-name  { font-size: 12px; }
  .bcm-cat-card-count { font-size: 10px; }
  .bcm-cat-card-emoji { font-size: 32px; }
}
@media (max-width: 420px) {
  .bcm-cat-card-img   { aspect-ratio: 1/1; }
  .bcm-cat-card-name  { font-size: 11px; }
  .bcm-cat-card-count { display: none; }
  .bcm-cat-card-info  { padding: 7px 8px 9px; }
}

/* ============================================
   PRODUCT CAROUSEL — auto-sliding, infinite loop
   Replaces the old "Shop by Category" grid on the homepage
============================================ */
/* ============================================
   SHOP OUR PRODUCTS — 2-row continuous carousel
   Row 1 scrolls left, Row 2 scrolls right
   Cards are small and sit compactly side by side
============================================ */
.bcm-carousel-section {
  padding: 28px 0 36px;
  background: #fff;
  overflow: hidden;
}
.bcm-carousel-section .bcm-section-header-row {
  padding: 0 20px;
}
.bcm-carousel-section .bcm-swiper-carousel {
  overflow: hidden;
  padding: 4px 0 4px;
  width: 100%;
}
.bcm-carousel-section .bcm-swiper-row2 {
  margin-top: 10px;   /* gap between the two rows */
}
/* Structural fallback: cards sit side-by-side before Swiper loads */
.bcm-carousel-section .swiper-wrapper {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
/* Individual slide — smaller card for compact grid feel */
.bcm-carousel-section .swiper-slide,
.bcm-carousel-slide {
  flex-shrink: 0;
  width: 120px;       /* compact card width */
  height: auto;
  margin-right: 10px;
}
.bcm-carousel-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.bcm-carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(233,30,140,.18);
  border-color: rgba(233,30,140,.35);
}
.bcm-carousel-card-img {
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}
.bcm-carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bcm-carousel-card-info { padding: 6px 8px 10px; }
.bcm-carousel-card-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #333;
  margin: 0 0 3px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcm-carousel-card-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--bcm-primary);
  margin: 0;
}
@media (max-width: 640px) {
  .bcm-carousel-slide { width: 100px; }
  .bcm-carousel-card-name { font-size: 10px; }
  .bcm-carousel-card-price { font-size: 11.5px; }
}
@media (max-width: 400px) {
  .bcm-carousel-slide { width: 88px; }
}

/* ============================================
   CATEGORY ARCHIVE PAGE (Watsons-style)
============================================ */
.bcm-archive-wrap { min-height: 60vh; }

/* Category hero banner */
.bcm-cat-hero {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.bcm-cat-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
.bcm-cat-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px 20px;
  max-width: var(--bcm-container);
  margin: 0 auto;
  width: 100%;
}
.bcm-cat-hero-title {
  font-size: 36px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  letter-spacing: 1px;
}
.bcm-cat-hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  margin-top: 8px;
  max-width: 480px;
}
@media (max-width: 768px) {
  .bcm-cat-hero-title { font-size: 26px; }
  .bcm-cat-hero { min-height: 110px; }
}

/* Sub-categories horizontal tab bar */
.bcm-sub-cats-bar {
  background: white;
  border-bottom: 1px solid var(--bcm-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.bcm-sub-cats-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
}
.bcm-sub-cats-scroll::-webkit-scrollbar { display: none; }
.bcm-sub-cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bcm-text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
.bcm-sub-cat-chip img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bcm-light);
}
.bcm-sub-cat-count {
  font-size: 10px;
  color: #bbb;
  margin-left: 2px;
}
.bcm-sub-cat-chip:hover { color: var(--bcm-primary); border-bottom-color: var(--bcm-primary-light); }
.bcm-sub-cat-chip.active { color: var(--bcm-primary); border-bottom-color: var(--bcm-primary); font-weight: 700; }

/* Archive layout */
.bcm-archive-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bcm-archive-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .bcm-archive-layout { grid-template-columns: 1fr; }
  .bcm-shop-sidebar { display: none; }
  .bcm-shop-sidebar.bcm-sidebar-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.5);
    padding: 20px;
    overflow-y: auto;
  }
  .bcm-shop-sidebar.bcm-sidebar-open .bcm-sidebar-inner {
    background: white;
    border-radius: var(--bcm-radius-lg);
    padding: 20px;
    max-width: 320px;
    margin-left: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
}
.bcm-shop-sidebar { position: sticky; top: 100px; }
.bcm-sidebar-inner {
  background: white;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius-lg);
  padding: 16px;
}
.bcm-sidebar-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--bcm-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bcm-primary);
}
/* Close button (mobile sidebar overlay) */
.bcm-sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 900px) { .bcm-sidebar-close-btn { display: block; } }

.bcm-filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bcm-primary);
  color: white;
  border: none;
  border-radius: var(--bcm-radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .bcm-filter-toggle-btn { display: flex; } }

/* ============================================
   PRODUCT ARCHIVE GRID
============================================ */
.bcm-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .bcm-archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .bcm-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ============================================
   RELATED PRODUCTS — Fixed layout on single product
============================================ */
.bcm-related-products {
  padding: 32px 0;
  background: var(--bcm-light);
}
.bcm-related-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.bcm-related-products-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--bcm-text);
}
.bcm-related-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .bcm-related-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .bcm-related-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .bcm-related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ─── BCM Product Card (used inside related products grid) ─── */
.bcm-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bcm-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.bcm-product-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.bcm-product-card-sale {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--bcm-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  z-index: 2;
}
.bcm-product-card-img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bcm-light);
}
.bcm-product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.bcm-product-card:hover .bcm-product-card-img-wrap img { transform: scale(1.04); }
.bcm-product-card-body {
  padding: 10px 10px 4px;
  flex: 1;
}
.bcm-product-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--bcm-text);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.bcm-product-card-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--bcm-primary);
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.bcm-product-card-price .price-now { color: var(--bcm-primary); }
.bcm-product-card-price .bcm-price-original {
  font-size: 11px;
  font-weight: 500;
  color: var(--bcm-text-muted);
  text-decoration: line-through;
}
.bcm-product-card-footer {
  padding: 8px 10px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.bcm-card-add-btn {
  flex: 1;
  display: block;
  text-align: center;
  background: var(--bcm-primary);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.bcm-card-add-btn:hover { background: var(--bcm-primary-dark, #c2006a); }
.bcm-card-add-btn--out { background: var(--bcm-text-muted); }
.bcm-card-wish-btn {
  background: none;
  border: 1px solid var(--bcm-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.bcm-card-wish-btn:hover { background: #fff0f5; }
.bcm-see-all-link {
  font-size: 13px;
  color: var(--bcm-primary);
  font-weight: 700;
  text-decoration: none;
}
.bcm-see-all-link:hover { text-decoration: underline; }

/* Override WooCommerce default related section */
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bcm-text);
}
.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
}
@media (max-width: 820px) {
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 560px) {
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .single-product .related.products ul.products li.product a.woocommerce-loop-product__link img { width: 100%; }
  .single-product .related.products ul.products li.product .woocommerce-loop-product__title { font-size: 11px !important; }
  .single-product .related.products ul.products li.product .price { font-size: 12px !important; }
  .single-product .related.products ul.products li.product .button { font-size: 10px !important; padding: 6px 4px !important; }
}

/* ============================================
   RECENTLY VIEWED — Improved card design
============================================ */
.bcm-rv-section {
  padding: 32px 0;
  background: white;
  border-top: 4px solid var(--bcm-primary);
}
.bcm-rv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.bcm-rv-tabs {
  display: flex;
  border-bottom: 2px solid var(--bcm-border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bcm-rv-tabs::-webkit-scrollbar { display: none; }
.bcm-rv-tab-btn {
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--bcm-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--bcm-transition);
  white-space: nowrap;
}
.bcm-rv-tab-btn:hover { color: var(--bcm-text); }
.bcm-rv-tab-btn.active {
  color: var(--bcm-primary);
  border-bottom-color: var(--bcm-primary);
}
.bcm-rv-clear-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--bcm-text-muted);
  background: none;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--bcm-transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bcm-rv-clear-btn:hover { color: var(--bcm-red); border-color: var(--bcm-red); }
.bcm-rv-panel-main { display: none; }
.bcm-rv-panel-main.active { display: block; }
.bcm-rv-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  align-items: flex-start;
}
/* Improved card */
.bcm-rv-card {
  flex-shrink: 0;
  width: 160px;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius-lg);
  overflow: hidden;
  transition: all var(--bcm-transition);
  background: white;
  text-decoration: none;
  color: inherit;
  display: block;
}
.bcm-rv-card:hover {
  box-shadow: var(--bcm-shadow-hover);
  transform: translateY(-4px);
  border-color: var(--bcm-primary-light);
}
.bcm-rv-card-img {
  height: 130px;
  background: var(--bcm-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.bcm-rv-card-img img { width: 100%; height: 100%; object-fit: contain; }
.bcm-rv-card-info { padding: 10px; }
.bcm-rv-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--bcm-text);
  margin: 0 0 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcm-rv-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--bcm-primary);
  margin: 0 0 8px;
}
.bcm-rv-add-btn {
  display: block;
  background: var(--bcm-primary);
  color: white;
  text-align: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px;
  text-decoration: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background var(--bcm-transition);
}
.bcm-rv-add-btn:hover { background: var(--bcm-primary-dark); color: white; }
.bcm-rv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--bcm-text-muted);
  text-align: center;
  width: 100%;
}
.bcm-rv-empty span { font-size: 40px; }
.bcm-rv-empty p { font-size: 13px; }
.bcm-rv-empty a { color: var(--bcm-primary); font-weight: 700; font-size: 13px; margin-top: 4px; }

/* ============================================
   PRODUCT CARD — used in archive + best sellers
============================================ */
.bcm-product-card {
  background: white;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--bcm-transition);
  position: relative;
}
.bcm-product-card:hover {
  box-shadow: var(--bcm-shadow-hover);
  transform: translateY(-3px);
  border-color: var(--bcm-primary-light);
}
.bcm-product-card-img-wrap {
  aspect-ratio: 1/1;
  background: var(--bcm-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  position: relative;
}
.bcm-product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.bcm-product-card:hover .bcm-product-card-img-wrap img { transform: scale(1.06); }
.bcm-product-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bcm-product-card-brand { font-size: 10px; font-weight: 700; color: var(--bcm-primary); text-transform: uppercase; letter-spacing: .5px; }
.bcm-product-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--bcm-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.bcm-product-card-price { font-size: 14px; font-weight: 800; color: var(--bcm-primary); }
.bcm-product-card-price .bcm-price-original { font-size: 11px; font-weight: 400; color: var(--bcm-text-muted); text-decoration: line-through; margin-left: 4px; }
.bcm-product-card-footer { padding: 0 12px 12px; display: flex; gap: 6px; }
.bcm-card-add-btn {
  flex: 1;
  background: var(--bcm-primary);
  color: white;
  border: none;
  border-radius: var(--bcm-radius);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--bcm-transition);
}
.bcm-card-add-btn:hover { background: var(--bcm-primary-dark); }
.bcm-card-wish-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  background: white;
  transition: all var(--bcm-transition);
  flex-shrink: 0;
}
.bcm-card-wish-btn:hover { border-color: var(--bcm-primary); background: var(--bcm-primary-light); }
/* Badges */
.bcm-product-card-rank {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--bcm-primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  z-index: 2;
}
.bcm-product-card-sale {
  position: absolute;
  top: 8px; right: 8px;
  background: #ff5722;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  z-index: 2;
}

/* ============================================
   BEST SELLERS SECTION
============================================ */
.bcm-best-sellers { padding: 32px 0; background: #fff; }
.bcm-best-sellers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .bcm-best-sellers-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .bcm-best-sellers-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .bcm-best-sellers-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================
   LEGACY CATEGORIES SCROLL (kept for compatibility)
============================================ */
.bcm-categories { padding: 24px 0; background: var(--bcm-light); }
.bcm-cat-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.bcm-cat-scroll::-webkit-scrollbar { display: none; }
.bcm-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--bcm-text);
  transition: transform 0.2s;
  width: 88px;
}
.bcm-cat-item:hover { transform: translateY(-3px); }
.bcm-cat-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--bcm-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bcm-cat-item:hover .bcm-cat-icon { border-color: var(--bcm-primary); box-shadow: 0 4px 12px rgba(233,30,140,.18); }
.bcm-cat-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bcm-cat-name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; color: var(--bcm-text); }

/* ============================================
   NAV — PRIMARY
============================================ */
.bcm-nav-inner.container {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.bcm-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex: 1;                          /* take all available width */
  justify-content: space-between;   /* spread items from left edge to right edge */
  overflow: visible;                /* no scroll; items spread evenly */
  scrollbar-width: none;
}
.bcm-nav-list::-webkit-scrollbar { display: none; }
/* On tablet widths where items may be tight, allow scroll again */
@media (max-width: 900px) {
  .bcm-nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0;
  }
}
.bcm-nav-list > li > a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 10px;     /* tighter padding so all items fit across full width */
  font-size: 13px;
  font-weight: 600;
  color: var(--bcm-text);
  white-space: nowrap;
  transition: color var(--bcm-transition);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.bcm-nav-list > li > a:hover,
.bcm-nav-list > li.current-menu-item > a {
  color: var(--bcm-primary);
  border-bottom-color: var(--bcm-primary);
}
.bcm-nav-list > li:first-child > a { color: var(--bcm-primary); font-weight: 700; }
.bcm-nav-list > li { position: relative; }
.bcm-nav-list > li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: white;
  border: 1px solid var(--bcm-border);
  border-radius: var(--bcm-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 500;
  padding: 6px 0;
  list-style: none;
}
.bcm-nav-list > li:hover .sub-menu { display: block; }
.bcm-nav-list > li .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--bcm-text);
  transition: background 0.15s;
  text-decoration: none;
}
.bcm-nav-list > li .sub-menu li a:hover { background: var(--bcm-primary-light); color: var(--bcm-primary); }

/* ============================================
   CHECKOUT FIELDS — Malaysia only
============================================ */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field { display: none !important; }
.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea {
  border: 2px solid var(--bcm-border) !important;
  border-radius: var(--bcm-radius) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: border-color 0.2s !important;
}
.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus,
.woocommerce-checkout .woocommerce-input-wrapper textarea:focus {
  border-color: var(--bcm-primary) !important;
  outline: none !important;
}

/* ============================================
   SECTION TITLE
============================================ */
.section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--bcm-text);
  letter-spacing: .5px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bcm-primary);
  display: inline-block;
}
.section-title span { color: var(--bcm-primary); }

/* ============================================
   SINGLE PRODUCT PAGE — v2.0.5 FIXES
   Belt-and-suspenders: even if the WooCommerce
   wrapper wraps a product page, ensure the inner
   container does not double-pad the layout.
============================================ */

/* If the wrapper still fires (edge case), strip its extra padding
   so the product layout always fills the full container width. */
.single-product .bcm-wc-wrapper.container,
.single-product .bcm-wc-main {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Ensure the product layout grid is always correct on desktop */
@media (min-width: 993px) {
  .bcm-product-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}

/* Ensure the gallery image fills the column properly */
.bcm-gallery-main {
  box-sizing: border-box;
  width: 100%;
}

/* Mobile: single column layout — ensure full-width gallery */
@media (max-width: 992px) {
  .bcm-product-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .bcm-product-gallery {
    position: static !important;
    width: 100% !important;
  }
  .bcm-gallery-main {
    width: 100% !important;
    max-height: 420px !important;
    aspect-ratio: 4/3 !important;
  }
}

/* Extra-small screens */
@media (max-width: 480px) {
  .bcm-gallery-main {
    aspect-ratio: 1/1 !important;
    max-height: 340px !important;
    padding: 8px !important;
  }
  .bcm-product-title {
    font-size: 18px !important;
  }
}

/* ============================================
   SINGLE PRODUCT PAGE — v2.0.7 FIXES
   All selectors verified against actual template class names.
============================================ */

/* ── Desktop: give gallery more visual weight (44% gallery / 56% info) ── */
.bcm-product-layout {
  grid-template-columns: 44% 56% !important;
  align-items: start !important;
}

/* ── Gallery image: remove inner padding so image fills the card ────── */
.bcm-gallery-main {
  padding: 0 !important;
}
.bcm-gallery-main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* ── Mobile: gallery stays within the container — no 100vw bleed ──────── */
@media (max-width: 992px) {
  .bcm-product-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bcm-product-gallery {
    position: static !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
  .bcm-gallery-main {
    border-radius: 12px !important;
    margin-bottom: 0 !important;
    aspect-ratio: 1/1 !important;
  }
}

/* ── Hide YITH WooCommerce Wishlist overlay on product image ─────────────
   YITH injects a wishlist button via JS with position:absolute over the image.
   We have our own wishlist button below the gallery. Hide all YITH elements.
───────────────────────────────────────────────────────────────────────── */
/* All YITH wishlist containers and buttons on product pages */
.single-product div.yith-wcwl-add-to-wishlist,
.single-product .yith-wcwl-add-button,
.single-product .yith-wcwl-wishlistaddedbrowse,
.single-product .yith-wcwl-wishlist-added-container,
/* YITH's injected anchor tag */
a.add_to_wishlist.wishlist-icon,
.single-product a.add_to_wishlist,
/* Generic YITH container anywhere in product image area */
.woocommerce-product-gallery .yith-wcwl-add-to-wishlist,
.bcm-product-gallery .yith-wcwl-add-to-wishlist,
/* Nuclear: any element with yith-wcwl class inside single-product */
.single-product [class*="yith-wcwl"] { display: none !important; }

/* ── Related products section ────────────────────────────────────────── */
.bcm-related-products {
  background: var(--bcm-light) !important;
  padding: 40px 0 !important;
  margin-top: 40px !important;
}
.bcm-related-products-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
}
.bcm-related-products-header h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--bcm-text) !important;
  margin: 0 !important;
}
.bcm-see-all-link {
  font-size: 13px !important;
  color: var(--bcm-primary) !important;
  font-weight: 600 !important;
}
.bcm-related-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
@media (max-width: 768px) {
  .bcm-related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ── Product title size bump ─────────────────────────────────────────── */
.bcm-product-title {
  font-size: 24px !important;
  line-height: 1.25 !important;
}
@media (max-width: 480px) {
  .bcm-product-title { font-size: 19px !important; }
}

/* ── Price display ─────────────────────────────────────────────────────
   Template classes: .bcm-product-price-main / .bcm-product-price-original
───────────────────────────────────────────────────────────────────────── */
.bcm-product-price-main {
  font-size: 30px !important;
  font-weight: 800 !important;
}
@media (max-width: 480px) {
  .bcm-product-price-main { font-size: 22px !important; }
}

/* ── Add to Bag button ─────────────────────────────────────────────────
   Template class: .bcm-add-to-bag  (NOT .bcm-atc-btn — that was wrong)
───────────────────────────────────────────────────────────────────────── */
.bcm-add-to-bag {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 15px 24px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border-radius: var(--bcm-radius) !important;
  width: 100% !important;
}

/* ── Quantity row ──────────────────────────────────────────────────────
   Template classes: .bcm-qty-row  /  .bcm-qty  /  .bcm-qty button  /  .bcm-qty input
───────────────────────────────────────────────────────────────────────── */
.bcm-qty button {
  width: 44px !important;
  height: 44px !important;
  font-size: 20px !important;
}
.bcm-qty input {
  width: 52px !important;
  height: 44px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* ============================================================
   SINGLE PRODUCT GALLERY — v2.0.9 FIXES
   Fix: product image looked tiny in a large white square.
   Root causes:
     1. No aspect-ratio on desktop → image height was unconstrained
     2. Mobile aspect-ratio: 1/1 too "square" for portrait bottles
     3. No visible container background → white image merged with page
   ============================================================ */

/* ── Desktop gallery container ────────────────────────────────────── */
.bcm-gallery-main {
  aspect-ratio: 1 / 1 !important;         /* fixed square so image fills properly */
  background: #f5f5f7 !important;          /* light gray — makes white-bg products visible */
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ebebeb !important;
}

/* Image fills the square container while preserving proportions */
.bcm-gallery-main img#bcm-main-img,
.bcm-gallery-main img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 16px !important;              /* breathing room inside the container */
  display: block !important;
  transition: transform 0.35s ease !important;
}

/* Subtle zoom on hover */
.bcm-gallery-main:hover img {
  transform: scale(1.04) !important;
}

/* ── Mobile: portrait-friendly aspect ratio — stays within container ─── */
@media (max-width: 992px) {
  .bcm-gallery-main {
    aspect-ratio: 4 / 5 !important;     /* portrait-friendly: taller than wide */
    border-radius: 12px !important;
    background: #f5f5f7 !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .bcm-gallery-main img#bcm-main-img,
  .bcm-gallery-main img {
    padding: 24px !important;           /* more breathing room on mobile */
  }
}

@media (max-width: 480px) {
  .bcm-gallery-main {
    aspect-ratio: 5 / 6 !important;    /* slightly taller on small phones */
  }
}

/* ── Gallery thumbnails ─────────────────────────────────────────────── */
.bcm-gallery-thumb {
  border-radius: 8px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  background: #f5f5f7 !important;
  transition: border-color 0.2s !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.bcm-gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 4px !important;
}
.bcm-gallery-thumb.active,
.bcm-gallery-thumb:hover {
  border-color: var(--bcm-primary) !important;
}
.bcm-gallery-thumbs {
  display: flex !important;
  gap: 8px !important;
  margin-top: 10px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.bcm-gallery-thumbs::-webkit-scrollbar { display: none; }
.bcm-gallery-thumbs .bcm-gallery-thumb {
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 68px !important;
}

/* ── Pagination — single centered bar ─────────────────────────────── */
.bcm-pagination-wrap {
  text-align: center !important;
  margin-top: 32px !important;
  padding-bottom: 16px !important;
}
/* Ensure WooCommerce's default pagination styling is hidden
   if it ever fires again (belt-and-suspenders against duplicate) */
.bcm-archive-main > .woocommerce-pagination:not(:first-of-type) {
  display: none !important;
}
/* Style the pagination nav nicely */
.bcm-pagination-wrap .woocommerce-pagination ul {
  display: flex !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bcm-pagination-wrap .woocommerce-pagination ul li a,
.bcm-pagination-wrap .woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--bcm-border) !important;
  color: var(--bcm-text) !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  background: white !important;
}
.bcm-pagination-wrap .woocommerce-pagination ul li a:hover {
  border-color: var(--bcm-primary) !important;
  color: var(--bcm-primary) !important;
  background: var(--bcm-primary-light) !important;
}
.bcm-pagination-wrap .woocommerce-pagination ul li span.current {
  background: var(--bcm-primary) !important;
  border-color: var(--bcm-primary) !important;
  color: white !important;
}

/* ── Related products — 4-col desktop, 2-col mobile ───────────────── */
.bcm-related-products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 900px) {
  .bcm-related-products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
  .bcm-related-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* ── Product card image in archive/related: cover for visual consistency ── */
.bcm-product-card-img-wrap {
  background: #f5f5f7 !important;        /* consistent light gray bg */
}
.bcm-product-card-img-wrap img {
  object-fit: contain !important;        /* show full product, no crop */
  padding: 10px !important;
}
