/* ===================================================
   BUILDMART GLOBAL DESIGN SYSTEM - theme.css
   Matches: HARDWARE E-Commerce Reference Image
   =================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Brand Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-ring: rgba(37,99,235,0.20);
  --navy: #172F52;
  --accent: #f97316;
  --accent-light: #fff7ed;

  /* Neutral Palette */
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  /* Text */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  /* State Colors */
  --success: #16a34a;
  --success-bg: #dcfce7;
  --success-border: #86efac;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --error: #dc2626;
  --error-bg: #fee2e2;
  --error-border: #fca5a5;
  --new-badge: #2563eb;
  --sale-badge: #ef4444;
  --featured-badge: #f97316;
  --star: #f59e0b;

  /* Layout */
  --container-max: 1280px;
  --header-h: 80px;
  --navbar-h: 56px;
  --topbar-h: 38px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-search: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-header: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-btn: 0 4px 12px rgba(37, 99, 235, 0.15);
  
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.14);
  --shadow-primary: 0 4px 14px rgba(37,99,235,0.35);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }

/* --- Container --- */
.bm-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ===================================================
   TOPBAR
   =================================================== */
.bm-topbar {
  background: var(--text-primary);
  color: var(--text-faint);
  font-size: 12px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-10);
}
.bm-topbar a { color: var(--text-faint); transition: var(--transition-fast); }
.bm-topbar a:hover { color: white; }
.bm-topbar-links { display: flex; gap: var(--s-5); align-items: center; }

/* ===================================================
   MAIN HEADER
   =================================================== */
.bm-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--s-10);
  gap: var(--s-6);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-header);
}

/* Logo */
.bm-logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
}
.bm-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

/* Search Bar */
.bm-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition: var(--transition);
  max-width: 600px;
}
.bm-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.bm-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}
.bm-search-wrap input::placeholder { color: var(--text-faint); }
.bm-search-select {
  border: none;
  border-left: 1px solid var(--border);
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #f9fafb;
  cursor: pointer;
}
.bm-search-btn {
  background: var(--primary);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
}
.bm-search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.bm-header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
}
.bm-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-secondary);
}
.bm-icon-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.bm-icon-btn .bm-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}

/* ===================================================
   NAV BAR (below header)
   =================================================== */
.bm-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--s-10);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  height: 48px;
  font-size: 14px;
}
.bm-shop-by {
  background: var(--primary);
  color: white;
  padding: 0 var(--s-4);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.bm-shop-by:hover { background: var(--primary-dark); }
.bm-nav-links { display: flex; align-items: center; gap: var(--s-6); }
.bm-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.bm-nav-link:hover, .bm-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.bm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.bm-breadcrumb a { color: var(--text-muted); transition: var(--transition-fast); }
.bm-breadcrumb a:hover { color: var(--primary); }
.bm-breadcrumb-sep { color: var(--text-faint); }
.bm-breadcrumb-current { color: var(--text-primary); font-weight: 600; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
  color: white;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  background: var(--error-bg); color: var(--error); border: 1.5px solid var(--error-border);
  border-radius: var(--radius-md); padding: 10px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-danger:hover { background: var(--error); color: white; }

/* ===================================================
   CARDS
   =================================================== */
.bm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===================================================
   FORMS
   =================================================== */
.form-group { margin-bottom: var(--s-4); }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  transition: var(--transition);
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-control::placeholder { color: var(--text-faint); }

/* ===================================================
   ALERTS
   =================================================== */
.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: var(--s-4); font-size: 14px; font-weight: 600; }
.alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: var(--s-4); font-size: 14px; font-weight: 600; }
.alert-warning { background: var(--warning-bg); border: 1px solid #fcd34d; color: var(--warning); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: var(--s-4); font-size: 14px; font-weight: 600; }

/* ===================================================
   BADGES
   =================================================== */
.badge { display: inline-block; padding: 3px 9px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; line-height: 1.4; }
.badge-new { background: var(--new-badge); color: white; }
.badge-sale { background: var(--sale-badge); color: white; }
.badge-featured { background: var(--featured-badge); color: white; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-bestseller { background: #fbbf24; color: #78350f; }

/* ===================================================
   PRODUCT CARD
   =================================================== */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f9fafb;
  aspect-ratio: 1 / 1;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px; height: 32px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  z-index: 2;
  text-decoration: none;
}
.product-wishlist-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
  transform: scale(1.12);
}
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card-cat { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.product-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.product-card-stars { color: var(--star); display: flex; gap: 1px; font-size: 12px; }
.product-card-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card-price { font-size: 17px; font-weight: 900; color: var(--text-primary); }
.product-card-mrp { font-size: 13px; color: var(--text-faint); text-decoration: line-through; }
.product-card-discount { font-size: 11px; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 2px 7px; border-radius: var(--radius-full); }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-light); }
.product-card-atc {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.product-card-atc:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* ===================================================
   SECTION HEADINGS
   =================================================== */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--s-5); }
.section-title { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.section-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
.section-view-all { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.section-view-all:hover { text-decoration: underline; }

/* ===================================================
   FILTER SIDEBAR
   =================================================== */
.bm-filter-sidebar {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
}
.filter-block { border-bottom: 1px solid var(--border); padding: var(--s-4) 0; }
.filter-block:last-child { border-bottom: none; }
.filter-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s-3);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.filter-option { display: flex; align-items: center; gap: var(--s-2); margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; border-radius: 4px; }
.filter-option-count { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.filter-price-range { display: flex; flex-direction: column; gap: 10px; }
.filter-price-range input[type="range"] { accent-color: var(--primary); width: 100%; }
.filter-price-inputs { display: flex; gap: 8px; }
.filter-price-inputs input { flex: 1; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.filter-actions { display: flex; gap: 8px; margin-top: var(--s-4); }
.filter-apply { background: var(--primary); color: white; border: none; border-radius: var(--radius-md); padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; flex: 1; transition: var(--transition); }
.filter-apply:hover { background: var(--primary-dark); }
.filter-clear { background: var(--surface); color: var(--text-secondary); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.filter-clear:hover { border-color: var(--error); color: var(--error); }

/* ===================================================
   SHOP LAYOUT
   =================================================== */
.shop-layout { display: flex; gap: var(--s-5); align-items: flex-start; }
.shop-main { flex: 1; min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); flex-wrap: wrap; gap: var(--s-3); }
.shop-results-count { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.shop-sort-wrap { display: flex; align-items: center; gap: var(--s-2); font-size: 13px; }
.shop-sort-wrap select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 13px; background: var(--surface); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }

/* ===================================================
   HERO BANNER
   =================================================== */
.heroSwiper {
  border-radius: 0 !important;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.heroSwiper .swiper-slide {
  height: 100%;
  border-radius: 0 !important;
}
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  top: 50% !important;
  transform: translateY(-50%);
  margin-top: 0 !important;
}
.heroSwiper .swiper-pagination {
  bottom: 16px !important;
}
.bm-hero {
  border-radius: 0 !important; /* Changed to full width */
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.bm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #172F52 0%, rgba(23,47,82,0.78) 50%, rgba(23,47,82,0.20) 100%);
  z-index: 1;
}
.bm-hero-content {
  padding-left: 8%;
  z-index: 2;
  flex: 1;
  max-width: 600px;
  color: white;
  position: relative;
  animation: fadeInUp 0.5s ease forwards;
}
.bm-hero-content::after {
  content: "";
  position: absolute;
  top: 50%; left: 15%;
  width: 400px; height: 300px;
  background: rgba(37, 99, 235, 0.20);
  filter: blur(80px);
  z-index: -1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bm-hero-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #93c5fd; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bm-hero-label::before { content: ""; width: 6px; height: 6px; background: #93c5fd; border-radius: 50%; }
.bm-hero-title { font-size: 42px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.5px; }
.bm-hero-sub { font-size: 16px; color: #DCE8F8; margin-bottom: 24px; line-height: 1.5; max-width: 500px; font-weight: 400; }
.bm-hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: 24px; }
.bm-hero-actions .btn-primary, .bm-hero-actions .btn-secondary { padding: 10px 24px !important; font-size: 14px !important; }
.bm-hero-trust { display: flex; align-items: center; gap: 16px; font-size: 12px; color: white; font-weight: 500; opacity: 0.9; margin-top: 0 !important; }
.bm-hero-trust span { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
    .bm-hero { height: 100%; }
    .heroSwiper { height: 260px; }
    .heroSwiper .swiper-slide { height: 100%; }
    .heroSwiper .swiper-button-next, .heroSwiper .swiper-button-prev { display: flex !important; transform: translateY(-50%) scale(0.85) !important; margin-left: 10px !important; margin-right: 10px !important; }
    .bm-hero-title { font-size: 34px; margin-bottom: 8px; }
    .bm-hero-sub { font-size: 15px; margin-bottom: 16px; }
    .bm-hero-actions { margin-bottom: 16px; }
}
@media (max-width: 768px) {
    .bm-hero { height: 100%; padding: 0; }
    .heroSwiper { height: 230px; }
    .heroSwiper .swiper-slide { height: 100%; }
    .heroSwiper .swiper-button-next, .heroSwiper .swiper-button-prev { display: flex !important; transform: translateY(-50%) scale(0.7) !important; margin-left: 5px !important; margin-right: 5px !important; }
    .bm-hero::before { background: linear-gradient(90deg, #172F52 20%, rgba(23,47,82,0.85) 60%, rgba(23,47,82,0.50) 100%); }
    .bm-hero-content { padding-left: var(--s-4); padding-right: var(--s-4); width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .bm-hero-label { justify-content: center; margin-bottom: 8px; font-size: 11px; }
    .bm-hero-title { font-size: 26px; margin-bottom: 8px; }
    .bm-hero-sub { font-size: 14px; margin-bottom: 16px; line-height: 1.4; }
    .bm-hero-actions { gap: 8px; margin-bottom: 16px; justify-content: center; }
    .bm-hero-actions .btn-primary, .bm-hero-actions .btn-secondary { padding: 8px 16px !important; font-size: 13px !important; }
    .bm-hero-trust { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 11px; }
}

/* ===================================================
   TRUST BARS / INFO STRIPS
   =================================================== */
.bm-trust-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 20px var(--s-8);
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.bm-trust-item { display: flex; align-items: center; gap: var(--s-3); }
.bm-trust-icon { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.bm-trust-text-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.bm-trust-text-sub { font-size: 12px; color: var(--text-muted); }

/* ===================================================
   CATEGORY STRIP
   =================================================== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s-4); }
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-card-img { width: 64px; height: 64px; object-fit: contain; }
.category-card-name { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.category-card-count { font-size: 11px; color: var(--text-muted); }

/* ===================================================
   PROMO BANNER
   =================================================== */
.bm-promo {
  background: linear-gradient(135deg, #1e3a5f 60%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--s-8);
  color: white;
}
.bm-promo-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #93c5fd; margin-bottom: 8px; }
.bm-promo-title { font-size: 36px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.bm-promo-sub { font-size: 14px; opacity: 0.75; margin-bottom: 22px; }
.bm-promo-img { width: 280px; object-fit: contain; }

/* ===================================================
   BRANDS STRIP
   =================================================== */
.brands-strip { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.brand-logo { height: 32px; object-fit: contain; opacity: 0.65; filter: grayscale(1); transition: var(--transition); }
.brand-logo:hover { opacity: 1; filter: grayscale(0); }

/* ===================================================
   FOOTER
   =================================================== */
.bm-footer {
  background: var(--text-primary);
  color: #9ca3af;
  margin-top: 24px;
}
.bm-footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding: 56px var(--s-10) 40px; max-width: var(--container-max); margin: 0 auto; }
.bm-footer h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.bm-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bm-footer ul a { font-size: 14px; color: #9ca3af; transition: var(--transition-fast); }
.bm-footer ul a:hover { color: white; }
.bm-footer-brand-desc { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.bm-footer-social { display: flex; gap: 10px; }
.bm-footer-social a {
  width: 36px; height: 36px;
  background: #1f2937; border: 1px solid #374151;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  transition: var(--transition);
}
.bm-footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }
.bm-footer-newsletter-input { display: flex; gap: 8px; }
.bm-footer-newsletter-input input { flex: 1; padding: 10px 14px; background: #1f2937; border: 1px solid #374151; border-radius: var(--radius-md); color: white; font-size: 14px; outline: none; }
.bm-footer-newsletter-input input:focus { border-color: var(--primary); }
.bm-footer-newsletter-input button { padding: 10px 14px; background: var(--primary); border: none; border-radius: var(--radius-md); color: white; cursor: pointer; transition: var(--transition); }
.bm-footer-newsletter-input button:hover { background: var(--primary-dark); }
.bm-footer-bottom { border-top: 1px solid #1f2937; padding: 20px var(--s-10); display: flex; justify-content: space-between; align-items: center; font-size: 13px; max-width: var(--container-max); margin: 0 auto; flex-wrap: wrap; gap: 12px; }
.bm-footer-bottom-links { display: flex; gap: 20px; }
.bm-footer-bottom-links a { color: #9ca3af; transition: var(--transition-fast); }
.bm-footer-bottom-links a:hover { color: white; }
.bm-footer-payments { display: flex; gap: 8px; align-items: center; }
.bm-footer-payment-badge { background: white; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 800; color: #1f2937; }

/* ===================================================
   PAGINATION
   =================================================== */
.bm-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-8); }
.bm-page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-secondary); background: var(--surface); text-decoration: none; }
.bm-page-btn:hover, .bm-page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===================================================
   PRODUCT DETAIL PAGE
   =================================================== */
.pd-layout { display: flex; gap: var(--s-8); flex-wrap: wrap; }
.pd-gallery { width: 420px; flex-shrink: 0; }
.pd-thumb-list { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.pd-thumb:hover, .pd-thumb.active { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-img-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f9fafb;
  aspect-ratio: 1/1;
  cursor: crosshair;
}
.pd-main-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.pd-info { flex: 1; min-width: 320px; }
.pd-brand { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.pd-title { font-size: 26px; font-weight: 900; color: var(--text-primary); line-height: 1.2; margin-bottom: 12px; }
.pd-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pd-rating-row { display: flex; align-items: center; gap: 6px; }
.pd-rating-stars { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.pd-sold { font-size: 13px; color: var(--text-secondary); }
.pd-price-block { margin-bottom: 20px; }
.pd-price { font-size: 36px; font-weight: 900; color: var(--text-primary); line-height: 1; }
.pd-mrp { font-size: 16px; color: var(--text-faint); text-decoration: line-through; margin-right: 8px; }
.pd-discount-badge { background: var(--sale-badge); color: white; padding: 3px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 24px; }
.pd-spec-row { display: flex; gap: 8px; font-size: 14px; }
.pd-spec-label { color: var(--text-muted); white-space: nowrap; }
.pd-spec-val { font-weight: 600; color: var(--text-primary); }
.pd-qty-row { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.pd-qty-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.pd-qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.pd-qty-ctrl button { width: 36px; height: 36px; background: #f9fafb; border: none; font-size: 18px; cursor: pointer; color: var(--text-secondary); transition: var(--transition); }
.pd-qty-ctrl button:hover { background: var(--primary-light); color: var(--primary); }
.pd-qty-ctrl input { width: 44px; height: 36px; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); text-align: center; font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif; }
.pd-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.pd-atc { background: var(--primary); color: white; border: none; border-radius: var(--radius-md); padding: 13px 28px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); flex: 2; justify-content: center; text-decoration: none; }
.pd-atc:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); color: white; }
.pd-buy-now { background: var(--accent); color: white; border: none; border-radius: var(--radius-md); padding: 13px 28px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); flex: 2; justify-content: center; text-decoration: none; }
.pd-buy-now:hover { background: #ea6c00; box-shadow: 0 4px 14px rgba(249,115,22,0.35); transform: translateY(-1px); color: white; }
.pd-wishlist-btn { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.pd-wishlist-btn:hover { color: #ef4444; border-color: #ef4444; transform: scale(1.08); }
.pd-delivery-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.pd-delivery-item { background: #f9fafb; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; text-align: center; font-size: 12px; }
.pd-delivery-item-icon { margin: 0 auto 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.pd-delivery-item-title { font-weight: 700; color: var(--text-primary); margin-bottom: 2px; font-size: 12px; }
.pd-delivery-item-sub { color: var(--text-muted); font-size: 11px; }

/* ===================================================
   TABS (Product Detail)
   =================================================== */
.bm-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: var(--s-5); }
.bm-tab { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition-fast); background: none; border-top: none; border-left: none; border-right: none; }
.bm-tab.active, .bm-tab:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ===================================================
   CART PAGE
   =================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s-6); align-items: flex-start; }
.cart-item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5); border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); background: #f9fafb; flex-shrink: 0; }
.cart-item-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.cart-qty-ctrl a, .cart-qty-ctrl button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-secondary); background: #f9fafb; border: none; border-right: 1px solid var(--border); cursor: pointer; text-decoration: none; transition: var(--transition-fast); }
.cart-qty-ctrl a:last-child, .cart-qty-ctrl button:last-child { border-right: none; border-left: 1px solid var(--border); }
.cart-qty-ctrl a:hover, .cart-qty-ctrl button:hover { background: var(--primary-light); color: var(--primary); }
.cart-qty-val { width: 32px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.cart-item-total { font-size: 16px; font-weight: 900; color: var(--text-primary); min-width: 80px; text-align: right; }
.cart-item-remove { color: var(--text-muted); cursor: pointer; background: none; border: none; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: 50%; }
.cart-item-remove:hover { color: var(--error); background: var(--error-bg); }
.order-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-6); position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 48px + 16px); }
.order-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 12px; }
.order-summary-label { color: var(--text-muted); }
.order-summary-val { font-weight: 700; }
.order-summary-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 900; padding-top: 14px; border-top: 1px solid var(--border); }
.order-summary-discount { color: var(--success); }

/* ===================================================
   CHECKOUT STEPS
   =================================================== */
.checkout-steps { display: flex; align-items: center; gap: 0; margin-bottom: var(--s-8); }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.checkout-step.active { color: var(--primary); }
.checkout-step.done { color: var(--success); }
.checkout-step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.checkout-step-sep { flex: 1; height: 2px; background: var(--border); margin: 0 10px; min-width: 30px; }
.checkout-step.done .checkout-step-sep { background: var(--success); }

/* ===================================================
   ACCOUNT / DASHBOARD SIDEBAR
   =================================================== */
.account-layout { display: flex; gap: var(--s-6); align-items: flex-start; }
.account-sidebar { width: 240px; flex-shrink: 0; }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.account-nav-item { display: flex; align-items: center; gap: var(--s-3); padding: 13px 16px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: var(--transition-fast); cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--border-light); }
.account-nav-item:last-child { border-bottom: none; }
.account-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.account-nav-item.active { background: var(--primary-light); color: var(--primary); }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes staggerIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.animate-fade-up { animation: fadeInUp 0.5s cubic-bezier(.4,0,.2,1) both; }
.animate-fade { animation: fadeIn 0.4s ease both; }

/* ===================================================
   HEADER PREMIUM DROPDOWNS
   =================================================== */
/* User Account Dropdown */
.bm-user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  z-index: 300;
  overflow: hidden;
}
.bm-user-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.bm-user-dropdown-trigger:hover .bm-user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bm-user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.bm-user-dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Category Navigation Dropdown */
.bm-nav-category-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  z-index: 290;
  display: flex;
  flex-direction: column;
}
.bm-nav-category-wrapper:hover .bm-nav-category-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bm-nav-category-dropdown a {
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}
.bm-nav-category-dropdown a:last-child {
  border-bottom: none;
}
.bm-nav-category-dropdown a::after {
  content: '>';
  font-size: 12px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s;
  color: var(--primary);
}
.bm-nav-category-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 24px;
}
.bm-nav-category-dropdown a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .bm-footer-main { grid-template-columns: 1fr 1fr; }
  .pd-gallery { width: 360px; }
}
@media (max-width: 768px) {
  .bm-topbar { display: none; }
  .bm-header { padding: 0 var(--s-4); height: 58px; }
  .bm-card { padding: var(--s-4) !important; }
  .bm-navbar { padding: 0 var(--s-4); gap: var(--s-4); overflow-x: auto; }
  .bm-hero-content { padding: 40px 28px; }
  .bm-hero-title { font-size: 30px; }
  .bm-hero-img-container { display: none; }
  .bm-footer-main { grid-template-columns: 1fr; gap: 28px; padding: 36px var(--s-5) 28px; }
  .shop-layout { flex-direction: column; }
  .bm-filter-sidebar { width: 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .pd-layout { flex-direction: column; }
  .pd-gallery { width: 100%; }
  .account-layout { flex-direction: column; }
  .account-sidebar { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .bm-trust-bar { padding: 16px var(--s-5); }
  .pd-delivery-info { grid-template-columns: 1fr 1fr; }
  .bm-promo { flex-direction: column; padding: 32px 28px; }
  .bm-promo-img { width: 100%; max-width: 260px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .bm-hero { min-height: 280px; }
  .bm-hero-title { font-size: 24px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   MOBILE FILTER DRAWER
   =================================================== */
.filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 400; opacity: 0; transition: opacity 0.3s; }
.filter-drawer { position: fixed; left: -300px; top: 0; bottom: 0; width: 300px; background: var(--surface); z-index: 401; overflow-y: auto; transition: left 0.3s cubic-bezier(.4,0,.2,1); padding: var(--s-5); box-shadow: var(--shadow-xl); }
.filter-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.filter-drawer-title { font-size: 18px; font-weight: 800; }
.filter-drawer-close { background: none; border: none; cursor: pointer; color: var(--text-muted); }
body.filter-open .filter-overlay { display: block; opacity: 1; }
body.filter-open .filter-drawer { left: 0; }

/* ===================================================
   UTILITY
   =================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: var(--s-4) 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state-sub { font-size: 14px; margin-bottom: 20px; }

/* AUTH MODAL */
.bm-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.bm-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.bm-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.bm-modal-overlay.active .bm-modal-content {
    transform: translateY(0);
}
.bm-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 20px; color: #94a3b8;
    cursor: pointer; transition: color 0.2s;
}
.bm-modal-close:hover { color: #0f172a; }
.bm-modal-header { text-align: center; margin-bottom: 24px; }
.bm-modal-header h3 { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.bm-modal-header p { font-size: 14px; color: #64748b; line-height: 1.5; }
.bm-form-group { margin-bottom: 16px; }
.bm-form-group label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.bm-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}
.bm-input:focus { border-color: var(--primary); background: #ffffff; box-shadow: 0 0 0 3px var(--primary-light); }
@media (max-width: 1024px) { 
  html, body { overflow-x: hidden !important; width: 100% !important; margin: 0; padding: 0; }
  .bm-breadcrumb { flex-wrap: wrap; }
  .bm-nav-links { display: none !important; } 
  .bm-mobile-toggle { display: flex !important; padding: 4px !important; position: relative !important; z-index: 9999 !important; pointer-events: auto !important; } 
  .bm-search-select { display: none !important; } 
  .bm-header { height: auto !important; padding: 8px 12px !important; } 
  .bm-header > div { flex-wrap: nowrap !important; gap: 8px !important; } 
  .bm-search-wrap { order: unset !important; flex: 1 !important; max-width: none !important; min-width: 0 !important; height: 38px !important; border-radius: 4px !important; border: 1px solid #e5e7eb !important; } 
  .bm-logo { display: none !important; } 
  .bm-logo-text { display: none !important; } 
  .bm-icon-btn { width: 34px !important; height: 34px !important; }
  .bm-icon-btn svg { width: 20px !important; height: 20px !important; }
}
@media (max-width: 768px) { #desktopSidebar { display: none !important; } #mobileFilterToggle { display: flex !important; } .shop-layout { flex-direction: column !important; } }


@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; }
  .product-card { border-radius: 4px !important; border: 1px solid #f1f5f9 !important; box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; }
  .product-card-body { padding: 8px !important; gap: 4px !important; }
  .product-card-name { font-size: 12px !important; font-weight: 500 !important; color: #4b5563 !important; }
  .product-card-price-row { gap: 4px !important; }
  .product-card-price { font-size: 15px !important; font-weight: 700 !important; }
  .product-card-mrp { font-size: 11px !important; }
  .product-card-discount { font-size: 10px !important; padding: 1px 4px !important; }
  .product-card-footer { display: none !important; } /* Hide Add to Cart like Meesho */
  .product-wishlist-btn { width: 28px !important; height: 28px !important; top: 6px !important; right: 6px !important; }
  .product-wishlist-btn svg { width: 14px !important; height: 14px !important; }
}

@media (max-width: 480px) {
  .product-card-rating { flex-wrap: wrap !important; }
  .product-card-rating span:first-child { 
      background: #22c55e !important; 
      color: white !important; 
      padding: 2px 6px !important; 
      border-radius: 4px !important; 
      font-weight: 700 !important; 
      font-size: 11px !important;
  }
  .product-card-stars { display: none !important; }
}

@media (max-width: 768px) {
  .bm-trust-bar { display: none !important; }
}

@media (max-width: 768px) {
  .category-grid { 
    display: flex !important; 
    overflow-x: auto !important; 
    flex-wrap: nowrap !important;
    gap: 12px !important; 
    padding-bottom: 12px !important; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; /* Firefox */
  }
  .category-grid::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
  .category-card { 
    flex: 0 0 auto !important; 
    width: 90px !important; 
    padding: 10px 8px !important; 
    scroll-snap-align: start; 
    justify-content: center;
  }
  .category-card svg { width: 28px !important; height: 28px !important; }
  .category-card-name { font-size: 11px !important; margin-top: 4px; }
  .category-card-count { display: none !important; } /* Hide '10+ products' on mobile to save space */
}


.drawer-open { left: 0 !important; }
.overlay-open { display: block !important; opacity: 1 !important; }

@media (max-width: 768px) {
  .bm-header-login-btn { display: none !important; }
  .bm-mobile-toggle svg { pointer-events: none !important; }
}

/* ===================================================
   HOME PAGE — CATEGORY PRODUCT CARDS (MOBILE)
   Make category product scroll containers behave like
   Shop page's 2-column product grid on mobile
   =================================================== */
@media (max-width: 768px) {
  /* Convert horizontal scroll to 2-column grid */
  .home-cat-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 10px !important;
    scroll-snap-type: unset !important;
    padding-bottom: 0 !important;
  }
  /* Remove the fixed flex card width, let grid control it */
  .home-cat-product-card {
    flex: unset !important;
    min-width: unset !important;
    width: 100% !important;
    scroll-snap-align: unset !important;
  }
  /* Hide scroll buttons (prev/next arrows) on mobile since we are now grid */
  .home-cat-scroll + * button[onclick*="scrollContainer"],
  button[onclick*="scrollContainer"] {
    display: none !important;
  }
  /* Show only 10 cards on mobile */
  .home-cat-scroll > .home-cat-product-card:nth-child(n+11) {
    display: none !important;
  }
}

