/* =====================================================
   DazzleMart — Main Stylesheet
   Dazzle.com.bd inspired: dark navbar, gold accents
   ===================================================== */

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

/* ── Variables ────────────────────────────────────── */
:root {
  --gold:        #C8A951;
  --gold-light:  #E8C96A;
  --gold-dark:   #A8893A;
  --gold-bg:     #FFF9EC;
  --dark:        #1A1A1A;
  --dark-2:      #111111;
  --dark-nav:    #0D0D0D;
  --dark-card:   #1E1E1E;
  --primary:     #E63946;
  --primary-dark:#C1121F;
  --success:     #2DC653;
  --warning:     #F9A825;
  --info:        #3A86FF;
  --white:       #FFFFFF;
  --gray-50:     #FAFAFA;
  --gray-100:    #F5F5F5;
  --gray-200:    #EEEEEE;
  --gray-300:    #E0E0E0;
  --gray-500:    #9E9E9E;
  --gray-700:    #616161;
  --border:      #E8E8E8;
  --text:        #212121;
  --text-muted:  #757575;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-gold: 0 4px 20px rgba(200,169,81,.25);
  --font:        'Inter', 'Noto Sans Bengali', sans-serif;
  --font-display:'Poppins', 'Noto Sans Bengali', sans-serif;
  --transition:  all .2s ease;
}

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--gray-100);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* ── Top Bar ──────────────────────────────────────── */
.topbar {
  background: var(--dark-2);
  color: rgba(255,255,255,.65);
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a { color: rgba(255,255,255,.65); }
.topbar a:hover { color: var(--gold); }
.topbar-phone { color: var(--gold); font-weight: 600; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-link { display: flex; align-items: center; gap: 5px; }
.topbar-link:hover { color: var(--gold); }

/* ── Main Navbar ──────────────────────────────────── */
.navbar-main {
  background: var(--dark);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
a.mega-nav-exclusive {
    z-index: 9 !important;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -0.5px;
}
.nav-logo sup {
  font-size: .55rem;
  font-weight: 400;
  color: var(--gold);
  vertical-align: super;
  margin-left: 1px;
}

/* Search bar */
.nav-search { position: relative; flex: 1; max-width: 600px; }
.nav-search-input {
  width: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 9px 48px 9px 16px;
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.nav-search-input:focus { border-color: var(--gold); }
.nav-search-btn {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  padding: 0 16px;
  background: var(--gold);
  border: none;
  border-radius: 0 6px 6px 0;
  color: var(--dark);
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-search-btn:hover { background: var(--gold-light); }

/* Nav action buttons */
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-action-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.nav-action-btn:hover { background: rgba(255,255,255,.14); color: var(--gold); }
.nav-action-btn.gold { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 700; }
.nav-action-btn.gold:hover { background: var(--gold-light); color: var(--dark); }
.nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ── Category Nav Bar ────────────────────────────── */
.cat-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-toggle {
  padding: 0 16px;
  border-right: 1px solid var(--border);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--dark);
  color: #fff;
}
.cat-nav-toggle:hover { background: var(--dark-2); }
.cat-nav-link {
  padding: 0 14px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border-right: 1px solid var(--gray-200);
  text-decoration: none;
  transition: var(--transition);
}
.cat-nav-link i { font-size: 14px; color: var(--gold); }
.cat-nav-link:hover, .cat-nav-link.active { color: var(--gold); background: var(--gold-bg); }
.cat-nav-link.online-exclusive {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.cat-nav-link.online-exclusive:hover { background: var(--dark-2); color: var(--gold); }

/* ── Trust Bar ────────────────────────────────────── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item i { font-size: 18px; color: var(--gold); }

/* ── Hero Swiper ─────────────────────────────────── */
.hero-swiper { height: 420px; }
.hero-slide {
  background: #1a1a2e;
  height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(200,169,81,.15), transparent 60%);
  pointer-events: none;
}
.hero-content { z-index: 2; padding: 0 48px; }
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.hero-title span { color: var(--gold); }
.hero-price { font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.hero-old-price { font-size: .9rem; color: rgba(255,255,255,.45); text-decoration: line-through; margin-bottom: 18px; }
.hero-img {
  position: absolute;
  right: 60px; bottom: 0;
  height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}
.hero-btn {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.hero-btn:hover { background: var(--gold-light); color: var(--dark); transform: translateY(-1px); }
.hero-btn-outline {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section Header ──────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--gold);
  border-radius: 2px;
}
.see-all-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 5px 14px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.see-all-btn:hover { background: var(--gold); color: var(--dark); }

/* ── Category Grid ───────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 10px; }
.cat-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.cat-item-img {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.cat-item-img.placeholder {
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gold);
}
.cat-item-name { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ── Product Card ────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #ddd; }

.product-card-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge-discount {
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge-tag {
  background: var(--dark);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.badge-tag i { font-size: 9px; }

.product-card-actions {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.card-action-btn {
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-action-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.card-action-btn.wishlisted { color: var(--primary); border-color: var(--primary); }

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
  display: block;
  position: relative;
  width: 100%;
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
  display: block;
}
/* SVG placeholder — contain so it doesn't stretch */
.product-card-img img[src$=".svg"],
.product-card-img img[src*="no-product"] {
  object-fit: contain;
  padding: 20%;
  background: #f8f8f8;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .4px; }
.product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 8px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--gold-dark); }

.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-old-price { font-size: .8rem; color: var(--gray-500); text-decoration: line-through; }

.product-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--gray-500); margin-bottom: 10px; }
.product-rating .stars { color: var(--warning); font-size: 11px; }

/* Card footer — kept for backward compat on non-dazzle cards */
.product-card-footer { padding: 10px 14px; border-top: 1px solid var(--gray-200); display: flex; gap: 8px; }
.btn-view {
  flex: 1;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-view:hover { background: var(--dark-2); color: var(--gold); }
.btn-cart {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-cart:hover { background: var(--gold-light); }

/* Compare button in card footer */
.btn-compare-card {
  background: #f5f5f5;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-compare-card:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* ── Flash Sale ──────────────────────────────────── */
.flash-sale-banner {
  background: linear-gradient(135deg, #1a0a00, #3d1a00);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}
.flash-sale-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.flash-sale-title .fire { font-size: 1.2rem; }
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown-block {
  background: var(--dark);
  border-radius: 6px;
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
  border: 1px solid rgba(200,169,81,.3);
}
.countdown-num { font-size: 1.1rem; font-weight: 800; color: var(--gold); line-height: 1; }
.countdown-label { font-size: 9px; color: rgba(255,255,255,.4); text-transform: uppercase; margin-top: 2px; }
.countdown-sep { color: var(--gold); font-weight: 800; font-size: 1.1rem; align-self: flex-start; margin-top: 6px; }

/* ── Price Range Slider ──────────────────────────── */
.range-slider-wrap { position: relative; height: 6px; margin: 12px 0; }
.range-slider-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gray-300);
  border-radius: 3px;
}
.range-slider-fill {
  position: absolute;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
}
input[type="range"].price-range {
  position: absolute;
  top: -5px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
input[type="range"].price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--gold);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ── Filters ─────────────────────────────────────── */
.filter-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.filter-header {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-header a { color: var(--gold); font-size: 11px; font-weight: 500; }
.filter-section { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.filter-section-title i { font-size: 12px; color: var(--gray-500); transition: var(--transition); }
.filter-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.filter-check input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; cursor: pointer; }
.filter-check:hover { color: var(--gold-dark); }
.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 3px 3px 3px 0;
  background: #fff;
}
.brand-pill:hover, .brand-pill.active { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 700; }
.price-inputs { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.price-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: var(--font);
  outline: none;
}
.price-input:focus { border-color: var(--gold); }
.btn-filter {
  width: 100%;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}
.btn-filter:hover { background: var(--gold); color: var(--dark); }

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breadcrumb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary-gold {
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary-gold:hover { background: var(--gold-light); color: var(--dark); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-dark {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-dark:hover { background: var(--dark-2); color: var(--gold); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--dark); }

.btn-red {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-red:hover { background: var(--primary-dark); color: #fff; }

/* ── Search Dropdown ─────────────────────────────── */
#searchDropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-height: 420px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.search-item:hover { background: var(--gold-bg); }
.search-item img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; border-radius: 4px; background: var(--gray-100); }
.search-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.search-item-price { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.search-item-cat { font-size: 10px; color: var(--text-muted); }

/* ── Toast ───────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-item {
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp .25s ease;
  pointer-events: all;
  max-width: 320px;
  border-left: 3px solid var(--gold);
}
.toast-item.error { border-color: var(--primary); }
.toast-item.success { border-color: var(--success); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* Mobile Bottom Nav styles are in footer.php inline <style> */

/* ── Product Detail ──────────────────────────────── */
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: zoom-in;
}
.gallery-main img { max-height: 340px; object-fit: contain; transition: transform .3s; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { max-height: 100%; object-fit: contain; }

.product-detail-price { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.product-detail-old-price { font-size: 1rem; color: var(--gray-500); text-decoration: line-through; }
.product-detail-discount {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.variant-btn {
  padding: 6px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}
.variant-btn:hover, .variant-btn.active { border-color: var(--gold); background: var(--gold-bg); color: var(--gold-dark); }

.stock-bar-wrap { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.stock-bar-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--gold)); border-radius: 3px; }

/* ── Spec Table ──────────────────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) td { background: var(--gray-50); }
.spec-table td { padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
.spec-table td:first-child { font-weight: 600; color: var(--text-muted); width: 38%; }

/* ── Cart / Checkout ─────────────────────────────── */
.cart-table td { padding: 12px 8px; vertical-align: middle; border-bottom: 1px solid var(--gray-200); font-size: 13px; }
.cart-qty-btn {
  width: 28px; height: 28px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.cart-qty-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.cart-qty-num { min-width: 32px; text-align: center; font-weight: 700; font-size: 14px; }

/* ── Order Summary ───────────────────────────────── */
.order-summary {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--gray-100);
}
.order-summary-row:last-child { border-bottom: none; }
.order-summary-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--dark-2); color: rgba(255,255,255,.6); padding: 48px 0 16px; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo sup { font-size: .45rem; color: var(--gold); }
.footer h6 { color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.5); font-size: 13px; display: block; margin-bottom: 8px; transition: var(--transition); }
.footer a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; margin-top: 32px; font-size: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--dark); }
.footer-payment { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.payment-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}

/* ── User Sidebar ────────────────────────────────── */
.user-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}
.user-sidebar-link:hover, .user-sidebar-link.active {
  background: var(--gold-bg);
  color: var(--gold-dark);
  border-color: var(--gold);
}
.user-sidebar-link i { width: 18px; text-align: center; color: var(--gold); }

/* ── Misc ────────────────────────────────────────── */
.card-white { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.section-wrap { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-gold { color: var(--gold-dark); }
.text-red  { color: var(--primary); }
.bg-gold   { background: var(--gold-bg); }
.tag-new   { background: var(--success); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.tag-hot   { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.tag-sale  { background: var(--warning); color: var(--dark); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }

/* ── Responsive ──────────────────────────────────── */
/* ══════════════════════════════════════════════════
   TABLET (≤ 991px)
   ══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .hero-img { opacity: .25; }
  .hero-title { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════
   MOBILE (≤ 767px) — App-like experience
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* ── Spacing / body ── */
  .topbar { display: none; }
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    font-size: 13.5px;
  }

  /* ── Navbar: compact app-style top bar ── */
  .navbar-main { padding: 8px 0; }

  /* Hide desktop action text buttons, show only icons */
  .nav-actions .nav-action-btn span:not(.nav-badge) { display: none; }
  .nav-actions .nav-action-btn { padding: 7px 10px; min-width: 38px; justify-content: center; }
  .nav-actions { gap: 4px; }

  /* Search bar full width on mobile */
  .nav-search { max-width: 100%; }

  /* ── Category nav ── */
  .cat-nav-toggle span { display: none; }
  .cat-nav-toggle { padding: 0 12px; }

  .cat-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .cat-item-img,
  .cat-item-img.placeholder { width: 44px; height: 44px; font-size: 20px; }

  /* ── Hero ── */
  .hero-swiper { height: 200px; border-radius: 10px; }
  .hero-slide  { height: 200px; }
  .hero-content { padding: 0 16px; }
  .hero-title  { font-size: 1.15rem; line-height: 1.3; }
  .hero-price  { font-size: 1.1rem; }
  .hero-badge  { font-size: 10px; padding: 3px 8px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 7px 14px; font-size: 12px; }

  /* ── Section titles ── */
  .section-title { font-size: 1rem; }
  .section-header { margin-bottom: 12px; }

  /* ── Product cards — mobile-first layout ── */
  .product-card { border-radius: 8px; }
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); } /* disable lift on touch */

  /* Always show action buttons on mobile (no hover) */
  .product-card-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  .card-action-btn { width: 28px; height: 28px; font-size: 12px; }

  /* Tighter image */
  /* product-card-img padding handled globally */
  /* product-card-img img handled globally */

  /* Card body tighter */
  .product-card-body { padding: 8px 10px; }
  .product-brand { font-size: 10px; }
  .product-name { font-size: 12px; margin: 3px 0 6px; }
  .product-price { font-size: .95rem; }
  .product-old-price { font-size: .75rem; }
  .product-rating { font-size: 10px; margin-bottom: 6px; }

  /* Card footer — dazzle style stays as 2-col grid */
  .product-card-footer-dazzle { border-radius: 0; }
  .btn-view-dazzle, .btn-cart-dazzle { font-size: 11px; padding: 8px 4px; }

  /* Legacy footer */
  .product-card-footer { padding: 7px 8px; gap: 5px; }
  .btn-view { font-size: 11px; padding: 6px 6px; gap: 4px; }
  .btn-compare-card { font-size: 12px; padding: 6px 8px; }
  .btn-cart  { font-size: 13px; padding: 6px 9px; }

  /* ── Compare bar — sits above mobile bottom nav ── */
  #compareBar {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 8px 12px !important;
    z-index: 9998 !important;
  }
  #compareBar .flex-wrap { flex-wrap: nowrap !important; gap: 8px !important; }

  /* ── Breadcrumbs ── */
  .breadcrumb-bar { padding: 8px 0; }
  .breadcrumb { font-size: 12px; }

  /* ── Flash sale banner ── */
  .flash-sale-banner { padding: 12px 14px; }
  .flash-sale-title { font-size: .9rem; }
  .countdown-num { font-size: .9rem; }
  .countdown-block { padding: 4px 7px; min-width: 36px; }

  /* ── Filter sidebar (mobile sheet style) ── */
  .products-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 84vw;
    max-width: 320px;
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    border-radius: 0 16px 16px 0;
  }
  .products-sidebar.open { transform: translateX(0); }

  /* ── Hide desktop-only sidebar ── */
  .d-none-mobile { display: none !important; }

  /* ── Page padding ── */
  .container { padding-left: 12px !important; padding-right: 12px !important; }
  .py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }

  /* ── Floating sidebar: hide on mobile (bottom nav replaces it) ── */
  #floatSidebar { display: none !important; }

  /* ── Product detail page ── */
  .product-gallery { position: static; }
  .gallery-main img { max-height: 260px; }
}

/* ══════════════════════════════════════════════════
   SMALL PHONES (≤ 480px)
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(4,1fr); gap: 6px; }
  .cat-item  { padding: 8px 4px 7px; gap: 4px; }
  .cat-item-name { font-size: 9.5px; }
  .hero-swiper { height: 175px; }
  .hero-slide  { height: 175px; }
  .hero-title  { font-size: 1rem; }

  /* Compact 2-col card grid on very small screens */
  .product-card-body { padding: 6px 8px; }
  .product-name { font-size: 11.5px; }

  /* Compare bar text shortened */
  #compareNames { display: none !important; }
}


/* ══════════════════════════════════════════════════
   PRODUCT ROW SWIPER — Professional Layout
   ══════════════════════════════════════════════════ */

/* ── prs-wrap: relative container, arrows absolute inside ── */
.prs-wrap {
  position: relative;
  overflow: hidden; /* clip swiper */
}

/* Swiper fills full width, padding makes room for arrows */
.product-row-swiper {
  width: 100%;
  min-width: 0;
  overflow: visible; /* cards peek out but clipped by prs-wrap */
  padding: 0 42px; /* space for inside arrows */
  box-sizing: border-box;
}

/* Nav buttons — absolute inside prs-wrap */
.prs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  user-select: none;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.prs-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  box-shadow: 0 3px 10px rgba(200,169,81,.35);
}
.prs-btn.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}
.prs-prev { left: 4px; }
.prs-next { right: 4px; }

/* Card: ensure equal height in swiper row */
.product-row-swiper .swiper-slide {
  height: auto;
}
.product-row-swiper .product-card {
  height: 100%;
}

/* Mobile: hide arrows, remove padding so cards use full width */
@media (max-width: 767px) {
  .prs-btn { display: none !important; }
  .product-row-swiper { padding: 0 !important; }
}

/* ══════════════════════════════════════════════════
   PRODUCT CARD — Responsive image sizes
   ══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  /* product-card-img img handled globally */
  .product-name a       { font-size: 12px; }
  .product-price        { font-size: 13px; }
  .product-old-price    { font-size: 11px; }
  .product-brand        { font-size: 10px; }
  .btn-view             { font-size: 11px; padding: 6px 8px; }
}

/* ══════════════════════════════════════════════════
   HERO SECTION — max-width on big screens
   ══════════════════════════════════════════════════ */
.main-hero-swiper { border-radius: 8px; overflow: hidden; }


/* ══════════════════════════════════════════════════
   SKELETON LOADING — App-like loading states
   ══════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.skeleton-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.skeleton-img   { height: 160px; }
.skeleton-line  { height: 12px; margin: 8px 12px; }
.skeleton-line.short { width: 55%; }
.skeleton-price { height: 16px; width: 45%; margin: 6px 12px; }

/* ══════════════════════════════════════════════════
   PAGE TRANSITIONS
   ══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-fade { animation: fadeInUp .32s ease both; }
section { animation: fadeInUp .3s ease both; }
section:nth-child(2) { animation-delay: .04s; }
section:nth-child(3) { animation-delay: .08s; }
section:nth-child(4) { animation-delay: .12s; }

/* ══════════════════════════════════════════════════
   RIPPLE EFFECT — touch feedback
   ══════════════════════════════════════════════════ */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(200,169,81,.25);
  transform: scale(0);
  animation: rippleAnim .5s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   PRODUCT CARD — Enhanced touch targets
   ══════════════════════════════════════════════════ */
.product-card { -webkit-tap-highlight-color: transparent; }
.btn-view, .btn-cart, .btn-compare-card {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-cart:active    { transform: scale(.93); }
.btn-compare-card:active { transform: scale(.93); }

/* Card footer 3-button layout */
.product-card-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: stretch;
}

/* ══════════════════════════════════════════════════
   HERO — Mobile proper aspect ratio
   ══════════════════════════════════════════════════ */
.hero-banner-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 767px) {
  .hero-banner-img { aspect-ratio: 16/9; }
}

/* ══════════════════════════════════════════════════
   CAROUSEL — 1.3 items visible on mobile (peek)
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .product-row-swiper,
  .brand-swiper {
    overflow: visible !important;
  }
  .product-row-swiper .swiper-wrapper,
  .brand-swiper .swiper-wrapper {
    padding-right: 0;
  }
  /* Clip to container so peek doesn't bleed page edge */
  .prs-wrap { overflow: hidden; }
}

/* ══════════════════════════════════════════════════
   TAKA SYMBOL — &#2547; wrapped in .tk span
   ══════════════════════════════════════════════════ */
.tk {
  font-family: 'Noto Sans Bengali', 'Vrinda', 'SolaimanLipi', Arial, sans-serif;
  font-weight: 600;
  font-style: normal;
  display: inline;
  line-height: 1;
  font-size: .95em;
}
.price-taka,
.product-price,
.product-old-price {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ══════════════════════════════════════════════════
   CATEGORY GRID — responsive
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cat-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
  }
  .cat-item {
    padding: 8px 4px;
    border-radius: 10px;
    transition: background .15s;
  }
  .cat-item:active { background: var(--gold-bg); }
}
@media (max-width: 380px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ══════════════════════════════════════════════════
   SEARCH — Mobile full-screen feel
   ══════════════════════════════════════════════════ */
.mob-search-bar { position: sticky; top: 56px; z-index: 999; }
#hdSearchDropMob {
  position: fixed;
  top: 113px; left: 0; right: 0;
  background: #fff;
  z-index: 9998;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: none;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #222;
  transition: background .1s;
}
.search-result-item:active { background: var(--gold-bg); }
.search-result-thumb {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f5f5f5;
}
.search-result-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
}
.search-match { color: var(--gold-dark); font-weight: 800; }

/* ══════════════════════════════════════════════════
   TABLET HEADER (768px – 991px)
   ══════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
  .hdr-main { padding: 8px 0; }
  /* cat-nav replaced by mega-nav */
}

/* ══════════════════════════════════════════════════
   MOBILE HEADER — sticky dual-row layout
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hdr-main { padding: 7px 0; }
  .mob-search-bar { top: 52px; }
  
  /* Prevent layout shift */
  .hdr-search-wrap { min-width: 0; }
  
  /* Hamburger larger tap target */
  [data-bs-target="#mobileNav"] {
    padding: 6px 8px !important;
    min-width: 40px;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════
   ADD TO CART BUTTON — loading state
   ══════════════════════════════════════════════════ */
.btn-cart.loading {
  opacity: .6;
  pointer-events: none;
}
.btn-cart.loading i::before { content: '\f130'; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   TRUST BAR — horizontal scroll on mobile
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .trust-bar-inner {
    display: flex !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    gap: 0 !important;
    padding: 0 4px;
  }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-bar-inner > div {
    flex-shrink: 0 !important;
    min-width: 140px !important;
    border-right: 1px solid #eee;
  }
}

/* ══════════════════════════════════════════════════
   TOAST — above bottom nav on mobile
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  #toastStack {
    bottom: calc(62px + env(safe-area-inset-bottom,0px)) !important;
    right: 10px !important;
    left: 10px !important;
  }
  #toastStack > div { max-width: 100% !important; }
}

/* ══════════════════════════════════════════════════
   PRODUCT NAME — no overflow break
   ══════════════════════════════════════════════════ */
.product-name a,
.cart-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ══════════════════════════════════════════════════
   SECTION HEADER — Bold editorial style
   ══════════════════════════════════════════════════ */
.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.sec-hdr-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: -.3px;
  font-family: var(--font-display);
}
.sec-hdr-line {
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200,169,81,.4);
}
.sec-hdr-see-all {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: .15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--gold-bg);
}
.sec-hdr-see-all:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); box-shadow: 0 2px 12px rgba(200,169,81,.35); }

/* ══════════════════════════════════════════════════
   BANNER GRID — matches Dazzle reference layout
   ══════════════════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 0 0;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.hero-main-banner {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.hero-side-banners {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 767px) {
  .hero-side-banners {
    grid-template-rows: unset;
    grid-template-columns: 1fr 1fr;
  }
}
.side-banner-item {
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.side-banner-item img,
.hero-main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════
   PRODUCT CARD FOOTER — Dazzle reference style
   VIEW (dark) | ADD TO CART (beige/gold outline)
   ══════════════════════════════════════════════════ */
.product-card-footer-dazzle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-200);
  overflow: hidden;
}
.btn-view-dazzle {
  background: #111;
  color: #fff;
  border: none;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-view-dazzle:hover { background: #222; color: var(--gold); }
.btn-cart-dazzle {
  background: #fff;
  color: #111;
  border: none;
  border-left: 1px solid var(--gray-200);
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn-cart-dazzle:hover { background: var(--gold-bg); color: var(--gold-dark); }
.btn-cart-dazzle:active { transform: scale(.97); }
.btn-cart-dazzle.loading {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 575px) {
  .btn-view-dazzle,
  .btn-cart-dazzle {
    font-size: 10.5px;
    padding: 8px 4px;
    letter-spacing: .2px;
  }
}

/* ══════════════════════════════════════════════════════════════
   ══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.brand-section {
  padding: 28px 0 32px;
  position: relative;
  overflow: hidden;
}
.brand-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .03;
  pointer-events: none;
}

/* ── Header row ── */
.brand-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.brand-sec-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* ── Brand logo pill ── */
.brand-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px 18px;
  height: 44px;
  min-width: 90px;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.brand-pill:hover { transform: translateY(-1px); }
.brand-pill img {
  height: 20px;
  max-width: 72px;
  object-fit: contain;
  filter: brightness(10) saturate(0);
}
.brand-pill-name {
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -.4px;
  font-family: var(--font-display);
  white-space: nowrap;
}

/* ── Title + count ── */
.brand-sec-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin: 0;
}
.brand-sec-count {
  font-size: 11.5px;
  color: #999;
  margin-top: 2px;
  font-weight: 500;
}

/* ── View All button ── */
.brand-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s, transform .15s;
  letter-spacing: .2px;
}
.brand-view-all:hover { opacity: .85; transform: translateX(2px); }
.brand-view-all i { font-size: 11px; transition: transform .2s; }
.brand-view-all:hover i { transform: translateX(3px); }

/* ── Carousel wrapper ── */
.brand-carousel-wrap {
  position: relative;
}

/* Navigation arrows — inside carousel */
.bsw-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  font-size: 13px;
  transition: background .15s, box-shadow .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bsw-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(200,169,81,.35);
}
.bsw-btn.swiper-button-disabled { opacity: .25; pointer-events: none; }
.bsw-prev { left: 4px; }
.bsw-next { right: 4px; }

/* Hide arrows on mobile — pure swipe */
@media (max-width: 767px) {
  .bsw-btn { display: none; }
}

/* ── Brand product cards — squared image, equal height ── */
.brand-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.brand-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-3px);
  border-color: #e0e0e0;
}
@media (max-width: 767px) {
  /* No lift on touch — feels laggy */
  .brand-card:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .brand-card:active { transform: scale(.98); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
}

/* Discount badge */
.brand-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  letter-spacing: .2px;
}
.brand-card-badge.new-badge {
  background: #2DC653;
}
.brand-card-badge.hot-badge {
  background: #FF6900;
}

/* Wishlist button on card */
.brand-card-wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #bbb;
  z-index: 2;
  transition: color .15s, background .15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.brand-card-wish:hover,
.brand-card-wish.wishlisted { color: var(--primary); background: #fff; }

/* Image area — always square ratio */
.brand-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-shrink: 0;
}
.brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
  display: block;
}
.brand-card:hover .brand-card-img img { transform: scale(1.06); }
@media (max-width: 767px) {
  .brand-card:active .brand-card-img img { transform: scale(1.03); }
  .brand-card:hover .brand-card-img img  { transform: none; }
}

/* Card body */
.brand-card-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-card-brand-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold-dark);
}
.brand-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex: 1;
  margin: 0;
}
.brand-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.brand-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Noto Sans Bengali', var(--font);
}
.brand-card-old-price {
  font-size: .78rem;
  color: #bbb;
  text-decoration: line-through;
  font-family: 'Noto Sans Bengali', var(--font);
}

/* Card footer — 2 buttons */
.brand-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #f0f0f0;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.brand-card-view {
  background: #111;
  color: #fff;
  border: none;
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.brand-card-view:hover { background: #222; color: var(--gold); }
.brand-card-add {
  background: #fff;
  color: #111;
  border: none;
  border-left: 1px solid #f0f0f0;
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.brand-card-add:hover { background: var(--gold-bg); color: var(--gold-dark); }
.brand-card-add:active { transform: scale(.97); }
.brand-card-add.loading { opacity: .5; pointer-events: none; }

@media (max-width: 400px) {
  .brand-card-view,
  .brand-card-add {
    font-size: 10.5px;
    padding: 8px 4px;
    letter-spacing: .1px;
  }
}

/* ── Swiper overflow for peek effect ── */
.brand-swiper-outer {
  overflow: hidden; /* clip at wrap level */
  padding: 0 42px; /* room for inside arrows */
  box-sizing: border-box;
}
.brand-swiper-outer .swiper {
  overflow: visible; /* allow peek */
}
@media (max-width: 767px) {
  .brand-swiper-outer {
    padding: 0; /* full width swipe on mobile */
    margin: 0;
  }
}

/* ── Section alternating backgrounds ── */
.brand-section.alt-bg { background: #f8f8f8; }
.brand-section.white-bg { background: #fff; }

/* ── Section top accent line (brand color) ── */
.brand-section-accent {
  height: 3px;
  border-radius: 0 0 3px 3px;
  margin-bottom: 0;
}

/* #mobileBottomNav styles consolidated in footer.php <style> */

/* ══════════════════════════════════════════════════
   BRAND SECTIONS — extra spacing & separator
   ══════════════════════════════════════════════════ */
.brand-section + .brand-section-accent {
  margin-top: 0;
}

/* Ensure brand cards are same height in a row */
.brand-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.brand-swiper .brand-card {
  width: 100%;
}

/* ══════════════════════════════════════════════════
   CATEGORY GRID — 5 cols visible like screenshot
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cat-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* ══════════════════════════════════════════════════
   LAYOUT — Full-width container system
   All breakpoints: 100% wide, auto-centred.
   Only caps at 1350px on large desktop.
   ══════════════════════════════════════════════════ */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100% !important;
  max-width: 100% !important;      /* mobile/tablet: truly full width */
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Tablet (768px – 1199px): full width, generous padding */
@media (min-width: 768px) and (max-width: 1199px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Desktop (1200px+): constrain to 1350px, centred */
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1350px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* ══════════════════════════════════════════════════
   BOOTSTRAP CONTAINER MAX-WIDTH NULLIFICATION
   Bootstrap sets 540/720/960/1140/1320px at each
   breakpoint. Override ALL of them here so every
   container is 100% wide up to 1350px on desktop.
   ══════════════════════════════════════════════════ */
@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 100% !important;
  }
}
@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 100% !important;
  }
}
@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    max-width: 100% !important;
  }
}
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1350px !important;
  }
}
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1350px !important;
  }
}

/* ══════════════════════════════════════════════════
   CAROUSEL — slide height equal
   ══════════════════════════════════════════════════ */
.product-row-swiper .swiper-slide,
.brand-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   CART PAGE — Vertical alignment fix on mobile
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cart-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .cart-item-img {
    flex-shrink: 0 !important;
    align-self: flex-start !important;
  }
  .cart-item-body {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .cart-item-name {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  .cart-item-price {
    font-size: 1rem !important;
    font-weight: 800 !important;
  }
}

/* ══════════════════════════════════════════════════
   COMPARE PAGE — Slot search z-index & styling
   ══════════════════════════════════════════════════ */
.slot-search {
  padding: 10px 14px !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color .15s !important;
  font-family: var(--font) !important;
}
.slot-search:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(200,169,81,.12) !important;
}
.slot-results {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #fff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.14) !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  z-index: 9990 !important; /* above everything */
  text-align: left !important;
}

/* ══════════════════════════════════════════════════
   COMPARE PAGE SLOTS — Better mobile layout
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Stack compare slots vertically on small phones */
  .compare-slots-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ══════════════════════════════════════════════════
   DESKTOP & LARGE SCREEN — Outstanding look
   1200px+ gets elevated spacing, richer shadows,
   and full use of the 1350px canvas.
   ══════════════════════════════════════════════════ */
@media (min-width: 1200px) {

  /* Generous section breathing room */
  body > section { padding-top: 28px; padding-bottom: 28px; }

  /* Product cards — more depth on large screens */
  .product-card {
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.13);
  }

  /* Section header bigger on desktop */
  .sec-hdr-title { font-size: 1.3rem; }

  /* Category nav — full width, no horizontal scroll needed */
  /* Category nav: full width on desktop */

  /* Hero grid — bigger side banners on wide canvas */
  .hero-grid {
    grid-template-columns: 1fr 280px !important;
    gap: 10px !important;
  }

  /* Footer — wider columns, more breathing room */
  footer .row { gap: 0; }
}

@media (min-width: 1400px) {
  /* At true wide screens, hero side banners get more room */
  .hero-grid {
    grid-template-columns: 1fr 320px !important;
  }

  /* Product card images taller on wide screens */
  .product-card-img { height: 200px; }

  /* Bigger section header accent line */
  .sec-hdr-line { height: 26px; width: 6px; }
}

/* ══════════════════════════════════════════════════
   BODY BACKGROUND — Subtle texture so full-bleed
   sections don't look like floating islands
   ══════════════════════════════════════════════════ */
body {
  background: #EBEBEB;
}

/* White and light sections look intentional, not floating */
section[style*="background:#fff"],
section[style*="background: #fff"] {
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 -1px 0 rgba(0,0,0,.03);
}

/* ══════════════════════════════════════════════════
   MOBILE HEADER CART ICON — zero margin, flex aligned
   ══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .d-flex.d-md-none a[href*="cart"] {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }
  .d-flex.d-md-none a[href*="cart"] i {
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }
}

/* ══════════════════════════════════════════════════
   PRODUCT DETAIL TABS — strong override
   ══════════════════════════════════════════════════ */
#pdpTabs {
  border-bottom: 2px solid #e8e8e8;
  gap: 4px;
}
#pdpTabs .nav-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #555;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 20px;
  border-radius: 0;
  background: none;
  transition: color .15s, border-color .15s;
}
#pdpTabs .nav-link:hover { color: var(--gold-dark); border-bottom-color: var(--gold-light); }
#pdpTabs .nav-link.active {
  color: var(--dark);
  border-bottom: 3px solid var(--gold);
  background: none;
}

/* ── Advanced product variation buttons ── */
.var-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.var-btn:hover      { border-color: var(--gold); background: var(--gold-bg); }
.var-btn-active     { border-color: var(--gold) !important; background: var(--gold-bg) !important; color: var(--dark); }
