/* ═══════════════════════════════════════════════════════════
   MAARSSPORTS – Main Stylesheet
   Design tokens, navbar, mega menu, product cards, cart,
   checkout, profile, email-safe utilities.
═══════════════════════════════════════════════════════════ */

/* ── Google Font import (handled in <head>, this is backup) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables / Design Tokens ─────────────────────── */
:root {
  --clr-primary:    #0B2E33;
  --clr-secondary:  #4F7C82;
  --clr-bg:         #F5F5F7;
  --clr-card:       #FFFFFF;
  --clr-text:       #1a1a1a;
  --clr-muted:      #6b7280;
  --clr-success:    #16a34a;
  --clr-danger:     #dc2626;
  --clr-wishlist:   #FF3B5C;
  --clr-whatsapp:   #25D366;
  --gradient-main:  linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  --radius-card:    18px;
  --radius-btn:     50px;
  --shadow-card:    0 4px 20px rgba(11,46,51,.10);
  --shadow-hover:   0 12px 32px rgba(11,46,51,.18);
  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'Inter', sans-serif;
  --navbar-h:       68px;
  --transition:     .25s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.ms-navbar {
  background: var(--clr-primary);
  height: var(--navbar-h);
  padding: 0 !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  z-index: 1050;
}

.ms-navbar .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-navbar .navbar-brand {
  margin-right: auto;
}

.ms-navbar .navbar-toggler {
  order: 3;
}

.ms-navbar .collapse.navbar-collapse.show:not(.show) ~ .navbar-nav.gap-2,
.ms-navbar .navbar-nav.gap-2 {
  display: flex !important;
  gap: 4px;
  margin-right: 0;
  order: 2;
}
.ms-brand { padding: 0; }
.brand-maars  { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.brand-sports { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--clr-secondary); letter-spacing: 2px; }

.ms-nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.ms-nav-link:hover { color: #fff !important; background: rgba(255,255,255,.10); }

/* Search */
.ms-search-form { max-width: 320px; width: 100%; }
.ms-search-input {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: var(--radius-btn) 0 0 var(--radius-btn) !important;
  font-size: 14px;
  padding: 8px 16px;
}
.ms-search-input::placeholder { color: rgba(255,255,255,.5); }
.ms-search-input:focus { background: rgba(255,255,255,.15); border-color: var(--clr-secondary); outline: none; box-shadow: none; color: #fff; }
.ms-search-btn {
  background: var(--clr-secondary);
  border: none;
  color: #fff;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0 !important;
  padding: 8px 16px;
  transition: background var(--transition);
}
.ms-search-btn:hover { background: #3d636a; color: #fff; }

/* Auth buttons in nav */
.ms-btn-outline {
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: var(--radius-btn);
  padding: 6px 18px !important;
  font-size: 13.5px;
  transition: all var(--transition);
}
.ms-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.10); }
.ms-btn-solid {
  background: var(--clr-secondary) !important;
  color: #fff !important;
  border-radius: var(--radius-btn);
  padding: 6px 18px !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}
.ms-btn-solid:hover { background: #3d636a !important; }

/* Icon links */
.ms-icon-link { color: rgba(255,255,255,.85) !important; position: relative; }
.ms-icon-link:hover { color: #fff !important; }

/* Mobile: Icons container (Wishlist, Cart, Hamburger) */
.d-lg-none.d-flex {
  align-items: center;
  gap: 2px;
}

.d-lg-none.d-flex .ms-icon-link {
  display: flex !important;
  align-items: center;
  padding: 8px 8px !important;
  font-size: 18px;
  transition: all var(--transition);
}

.d-lg-none.d-flex .ms-icon-link:hover {
  transform: scale(1.1);
}

.d-lg-none.d-flex .navbar-toggler {
  border: none;
  background: transparent;
  padding: 8px 6px;
}

/* MOBILE: Keep icon links visible in navbar on mobile */
@media (max-width: 991.98px) {
  /* HIDE search form and auth buttons from top navbar on mobile */
  .ms-search-form { 
    display: none !important;
  }
  
  .navbar-nav.gap-2 .ms-btn-outline,
  .navbar-nav.gap-2 .ms-btn-solid {
    display: none !important;
  }
  
  /* Keep only icon links visible at top */
  .navbar-nav.gap-2 {
    display: flex !important;
    flex-direction: row;
    gap: 8px !important;
    align-items: center;
    margin: 0;
    padding: 0 8px;
  }
  
  .navbar-nav.gap-2 .ms-icon-link {
    display: flex !important;
    align-items: center;
    padding: 10px 8px !important;
    font-size: 18px;
    transition: all var(--transition);
  }
  
  .navbar-nav.gap-2 .ms-icon-link:hover {
    transform: scale(1.1);
  }
  
  .navbar-nav.gap-2 .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
  }
  
  /* Show search and auth in dropdown when collapsed menu opens */
  .navbar-collapse.show .ms-search-form {
    display: flex !important;
    width: calc(100% - 16px);
    margin: 14px 8px !important;
  }
  
  .navbar-collapse.show .ms-search-form .input-group {
    width: 100%;
  }
  
  .navbar-collapse.show .ms-search-input {
    border-radius: 50px !important;
    font-size: 14px;
    padding: 10px 16px !important;
  }
  
  .navbar-collapse.show .ms-search-btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 10px 14px !important;
  }
  
  .navbar-collapse.show .ms-btn-outline,
  .navbar-collapse.show .ms-btn-solid {
    display: block !important;
    width: calc(100% - 16px) !important;
    padding: 12px 16px !important;
    margin: 6px 8px !important;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
  }
  
  .navbar-collapse.show .ms-btn-outline {
    border: 1.5px solid rgba(255,255,255,.6) !important;
    color: #fff !important;
  }
  
  .navbar-collapse.show .ms-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.12);
  }
  
  .navbar-collapse.show .ms-btn-solid {
    background: linear-gradient(135deg, var(--clr-secondary), #3d636a) !important;
    color: #fff !important;
  }
  
  .navbar-collapse.show .ms-btn-solid:hover {
    background: var(--clr-secondary) !important;
  }
  
  .ms-navbar .navbar-collapse {
    display: flex !important;
    position: static;
    flex-direction: column;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    box-shadow: none;
    max-height: auto;
    overflow-y: visible;
    padding: 0;
    border-top: none;
    width: 100%;
    gap: 0;
    margin-left: 0;
    align-items: stretch;
  }
  
  .ms-navbar .navbar-collapse.collapse:not(.show) {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--clr-primary);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  
  .ms-navbar .navbar-collapse.collapse.show {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--clr-primary);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  
  /* Hide navbar items when not expanded, but show icons */
  .navbar-nav.me-auto {
    display: none;
  }
  
  .navbar-collapse.show .navbar-nav.me-auto {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: 4px;
  }
  
  /* Navbar items styling in dropdown */
  .navbar-collapse.show .navbar-nav {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  
  .navbar-collapse.show .nav-item {
    width: 100%;
  }
  
  .navbar-collapse.show .nav-link {
    padding: 12px 16px !important;
    border-radius: 8px;
    display: block !important;
    width: calc(100% - 16px);
    margin: 0 8px 4px 8px;
    color: rgba(255,255,255,.9) !important;
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition);
  }
  
  .navbar-collapse.show .nav-link:hover {
    background: rgba(255,255,255,.12);
    color: #fff !important;
    padding-left: 18px !important;
  }
  
  /* Mega menu in dropdown */
  .navbar-collapse.show .ms-mega-menu {
    position: static !important;
    display: block;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.15);
    margin: 8px 8px 0 8px !important;
    padding: 14px !important;
    border-radius: 10px;
    width: calc(100% - 16px);
  }
  
  .navbar-collapse.show .ms-mega-menu .container-xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .navbar-collapse.show .ms-mega-menu .row {
    margin: 0 !important;
  }
  
  .navbar-collapse.show .ms-mega-menu .col-lg {
    margin-bottom: 12px;
  }
  
  .navbar-collapse.show .mega-cat-heading {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,.2);
  }
  
  .navbar-collapse.show .mega-sub-list a {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    padding: 6px 0;
  }
  
  .navbar-collapse.show .mega-sub-list a:hover {
    color: #fff;
    padding-left: 4px;
  }
}

/* Mobile navbar media query - hide collapse, show hamburger for drawer */
@media (max-width: 991.98px) {
  /* Hide the old collapse navbar on mobile */
  .ms-navbar .collapse.navbar-collapse {
    display: none !important;
  }
  
  /* Hide Store and Shop links on mobile */
  .navbar-nav.me-auto {
    display: none !important;
  }
  
  /* Hamburger button visible only on mobile - shows offcanvas drawer */
  .navbar-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 8px 6px;
    order: 3;
  }
}

@media (min-width: 992px) {
  /* Hide hamburger on desktop */
  .navbar-toggler {
    display: none !important;
  }
  
  /* Show search and nav items on desktop */
  .ms-navbar .collapse.navbar-collapse {
    display: flex !important;
  }
  
  .navbar-nav.me-auto {
    display: flex !important;
  }
}

@media (max-width: 575.98px) {\n  .navbar-nav.gap-2 .ms-icon-link {\n    padding: 8px 6px !important;\n    font-size: 16px;\n  }\n  \n  .navbar-collapse.show .nav-link {\n    margin: 0 6px 4px 6px !important;\n    width: calc(100% - 12px) !important;\n    padding: 11px 14px !important;\n    font-size: 14px;\n  }\n  \n  .navbar-collapse.show .ms-search-form {\n    margin: 12px 6px !important;\n    width: calc(100% - 12px);\n  }\n  \n  .navbar-collapse.show .ms-mega-menu {\n    margin: 8px 6px 0 6px !important;\n    width: calc(100% - 12px) !important;\n  }\n  \n  .navbar-collapse.show .ms-btn-outline,\n  .navbar-collapse.show .ms-btn-solid {\n    margin: 6px 6px !important;\n    width: calc(100% - 12px) !important;\n  }\n}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--clr-secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* User dropdown */
.ms-dropdown {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
}
.ms-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  transition: background var(--transition);
}
.ms-dropdown .dropdown-item:hover { background: var(--clr-bg); }

/* ═══════════════════════════════════════════════════════════
   MEGA MENU (hover-based, NOT click)
   Fix: pseudo-element bridge fills the gap between the
   navbar link and the dropdown so the cursor never leaves
   a hover-able surface while moving between them.
═══════════════════════════════════════════════════════════ */

/* The <li> must be relative so the bridge pseudo-el is placed correctly */
.ms-mega-parent {
  position: static !important;  /* let menu escape navbar bounds */
}

/*
  Mega menu — hidden by default.
  Shown by JS adding .ms-mega-open (not CSS :hover).
  JS uses a 120ms close-delay so the cursor can travel
  from the "Store" link into the dropdown without a gap break.
*/
.ms-mega-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: fixed !important;
  /* Pull menu UP by 4px so it overlaps the navbar bottom edge —
     eliminates the gap that breaks hover. padding-top compensates
     so the inner content still sits at the right visual position. */
  top: calc(var(--navbar-h) - 4px) !important;
  left: 0 !important;
  width: 100vw !important;
  border: none !important;
  border-radius: 0 0 16px 16px !important;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11,46,51,.18) !important;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 1039;           /* sits just under the navbar (z-index 1050) */
  padding: 0 !important;
  /* top 4px padding keeps content clear of the navbar overlap */
  padding-top: 4px !important;
}

/* JS adds this class — menu becomes visible */
.ms-mega-menu.ms-mega-open {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Mega menu desktop: CSS Grid with auto-fit. Scoped to desktop only. */
@media (min-width: 992px) {
  /* Ensure inner container is full width so grid has room for multiple cols */
  .ms-mega-menu > .container-xl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Grid container — override Bootstrap's flex row */
  .ms-mega-menu .container-xl > .row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
  }

  /* Reset Bootstrap col sizing so grid controls each cell */
  .ms-mega-menu .container-xl > .row > [class*="col-"] {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 160px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.mega-cat-heading {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--clr-bg);
  line-height: 1.3;
  white-space: nowrap;
  transition: color var(--transition);
}
.mega-cat-heading:hover { color: var(--clr-secondary); }

.mega-sub-list { list-style: none; padding: 0; margin: 0; }
.mega-sub-list li { margin-bottom: 10px; }
.mega-sub-list a {
  font-size: 13px;
  font-weight: 400;
  color: var(--clr-muted);
  transition: color var(--transition), padding-left var(--transition);
  display: block;
  white-space: nowrap;
}
.mega-sub-list a:hover { color: var(--clr-primary); padding-left: 6px; }

/* ═══════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */
.ms-alert { border-radius: 10px; border: none; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.ms-hero {
  background: var(--gradient-main);
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 80px 0; }
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--clr-secondary); margin-bottom: 16px; }
.hero-title { font-family: var(--font-display); font-size: clamp(52px, 7vw, 80px); font-weight: 800; line-height: 1.0; color: #fff; margin-bottom: 20px; }
.hero-accent { color: var(--clr-secondary); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.80); max-width: 480px; margin-bottom: 8px; }
.ms-hero-btn-primary {
  background: #fff;
  color: var(--clr-primary) !important;
  border-radius: var(--radius-btn);
  padding: 14px 32px !important;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  border: none;
}
.ms-hero-btn-primary:hover { background: var(--clr-secondary); color: #fff !important; transform: translateY(-2px); }
.ms-hero-btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--radius-btn);
  padding: 12px 28px !important;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}
.ms-hero-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Decorative cricket balls */
.hero-ball { position: absolute; border-radius: 50%; opacity: .06; }
.hero-ball-1 { width: 400px; height: 400px; background: #fff; right: -80px; top: -80px; }
.hero-ball-2 { width: 250px; height: 250px; background: #fff; right: 200px; bottom: -80px; }

/* ═══════════════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════════════ */
.ms-trust-strip { background: var(--clr-primary); }
.trust-item-box {
  padding: 18px 12px;
  border-right: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-item-box:last-child { border-right: none; }
.trust-item-box i { font-size: 22px; color: var(--clr-secondary); }
.trust-item-box span { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════════ */
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--clr-secondary); margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--clr-primary); line-height: 1.1; }
.ms-link-more { font-size: 14px; font-weight: 600; color: var(--clr-secondary); transition: gap var(--transition); }
.ms-link-more:hover { color: var(--clr-primary); }
.bg-light-section { background: #fff; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY PILLS
═══════════════════════════════════════════════════════════ */
.category-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: var(--clr-primary);
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.category-pill:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.category-pill-sm {
  display: inline-block;
  background: var(--clr-bg);
  color: var(--clr-primary);
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid #e5e7eb;
}
.category-pill-sm:hover { background: var(--clr-primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════ */
.ms-product-card {
  background: var(--clr-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ms-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* Wishlist */
.wishlist-btn {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
  transition: all var(--transition);
  color: #aaa;
  font-size: 16px;
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--clr-wishlist); transform: scale(1.15); }

/* Product image */
.product-img-link { display: block; overflow: hidden; }
.product-card-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.ms-product-card:hover .product-card-img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #e8ecee, #c8d4d6);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #aab5b7;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-btn);
}
.discount-badge-lg {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
}

/* Card body */
.product-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-category-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-secondary); margin-bottom: 6px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--clr-text); margin-bottom: 10px; flex: 1; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--clr-secondary); }
.product-pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--clr-primary); }
.product-mrp { font-size: 13px; color: var(--clr-muted); text-decoration: line-through; }

/* Add-to-cart button */
.ms-add-to-cart {
  background: var(--gradient-main);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
  transition: opacity var(--transition), transform var(--transition);
  text-align: center;
  display: block;
}
.ms-add-to-cart:hover:not(.disabled) { opacity: .88; transform: translateY(-1px); }
.ms-add-to-cart.disabled { opacity: .5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
═══════════════════════════════════════════════════════════ */
.product-detail-img-wrap { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.product-detail-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-card); }
.product-detail-placeholder { height: 420px; background: linear-gradient(135deg, #e8ecee, #c8d4d6); display: flex; align-items: center; justify-content: center; font-size: 80px; color: #aab5b7; border-radius: var(--radius-card); }
.product-detail-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--clr-primary); line-height: 1.15; margin-bottom: 16px; }
.product-detail-pricing { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-detail-price { font-size: 34px; font-weight: 800; color: var(--clr-primary); }
.product-detail-mrp { font-size: 18px; color: var(--clr-muted); text-decoration: line-through; }
.product-detail-saving { font-size: 14px; font-weight: 700; color: var(--clr-success); background: #f0fdf4; padding: 4px 12px; border-radius: 20px; }
.stock-badge { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 20px; display: inline-block; margin-bottom: 16px; }
.stock-badge.in-stock { color: var(--clr-success); background: #f0fdf4; }
.stock-badge.out-of-stock { color: var(--clr-danger); background: #fef2f2; }
.product-detail-desc h6 { font-weight: 700; color: var(--clr-primary); margin-bottom: 8px; }
.product-guarantees { display: flex; flex-wrap: wrap; gap: 10px; }
.guarantee-tag { font-size: 13px; font-weight: 600; color: var(--clr-primary); background: var(--clr-bg); padding: 6px 14px; border-radius: 20px; }

/* Large buttons */
.ms-btn-primary-lg {
  background: var(--gradient-main);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 32px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
}
.ms-btn-primary-lg:hover { opacity: .88; transform: translateY(-2px); }
.ms-btn-outline-lg {
  background: transparent;
  color: var(--clr-primary) !important;
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-btn);
  padding: 11px 28px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.ms-btn-outline-lg:hover { background: var(--clr-primary); color: #fff !important; }

/* ═══════════════════════════════════════════════════════════
   FILTER SIDEBAR
═══════════════════════════════════════════════════════════ */
.ms-filter-card { background: #fff; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: 90px; }
.filter-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--clr-primary); }
.filter-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-muted); margin-bottom: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 2px; }
.filter-list a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--clr-text); transition: all var(--transition); }
.filter-list a:hover, .filter-list a.active { background: var(--clr-bg); color: var(--clr-primary); font-weight: 600; }
.filter-sublist { list-style: none; padding-left: 16px; margin: 4px 0 4px; }
.filter-sublist a { font-size: 13px; padding: 5px 12px; }
.shop-heading { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--clr-primary); }
.ms-btn-sm {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   CART PAGE
═══════════════════════════════════════════════════════════ */
.ms-cart-item {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cart-item-img { width: 90px; height: 90px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img-placeholder { width: 90px; height: 90px; background: var(--clr-bg); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #aaa; border-radius: 10px; }
.cart-item-name { font-size: 15px; font-weight: 600; color: var(--clr-primary); margin-bottom: 4px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--clr-primary); }
.cart-mrp { font-size: 12px; color: var(--clr-muted); text-decoration: line-through; margin-left: 6px; }
.qty-btn {
  width: 32px; height: 32px;
  background: var(--clr-bg);
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary);
  font-weight: 700;
}
.qty-btn:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.qty-val { font-size: 16px; font-weight: 700; color: var(--clr-primary); min-width: 28px; text-align: center; }
.cart-line-total { font-size: 16px; font-weight: 800; color: var(--clr-primary); min-width: 80px; text-align: right; }
.cart-remove-btn { color: #aaa; font-size: 18px; transition: color var(--transition); }
.cart-remove-btn:hover { color: var(--clr-danger); }

/* Order Summary Box */
.ms-order-summary {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.summary-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--clr-primary); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14.5px; }
.summary-total { font-size: 18px; font-weight: 800; color: var(--clr-primary); }
.free-delivery-hint { font-size: 12px; color: var(--clr-secondary); background: #f0fdf4; padding: 8px 12px; border-radius: 8px; margin-top: 4px; }
.ms-btn-ghost {
  background: var(--clr-bg);
  color: var(--clr-primary);
  border-radius: var(--radius-btn);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  display: block;
  text-align: center;
  transition: all var(--transition);
}
.ms-btn-ghost:hover { background: #e5e7eb; }
.empty-cart { padding: 60px 20px; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════════ */
.ms-checkout-card { background: #fff; border-radius: var(--radius-card); padding: 28px 32px; box-shadow: var(--shadow-card); }
.checkout-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--clr-primary); }
.ms-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px !important;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color var(--transition);
  width: 100%;
  font-family: var(--font-body);
}
.ms-input:focus { border-color: var(--clr-secondary); outline: none; box-shadow: none; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition);
}
.payment-option-card:has(.payment-radio:checked) { border-color: var(--clr-secondary); background: #f0faf8; }
.payment-option-card:hover { border-color: var(--clr-secondary); }
.payment-radio { accent-color: var(--clr-secondary); width: 18px; height: 18px; cursor: pointer; }
.payment-option-body { font-size: 14px; }
.summary-item-name { font-size: 14px; color: var(--clr-text); max-width: 260px; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
═══════════════════════════════════════════════════════════ */
.ms-auth-card { background: #fff; border-radius: var(--radius-card); padding: 40px 44px; box-shadow: var(--shadow-hover); }
.auth-logo .brand-maars, .auth-logo .brand-sports { font-size: 30px; }
.auth-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--clr-primary); }
.ms-label { font-size: 13px; font-weight: 600; color: var(--clr-text); margin-bottom: 4px; }
.ms-input-group .form-control, .ms-input-group textarea {
  border: 1.5px solid #e5e7eb;
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 10px 14px;
  font-size: 14px;
}
.ms-input-group .form-control:focus { border-color: var(--clr-secondary); box-shadow: none; }
.ms-input-icon {
  background: var(--clr-bg);
  border: 1.5px solid #e5e7eb;
  border-right: none;
  border-radius: 10px 0 0 10px !important;
  color: var(--clr-secondary);
}
.ms-field-error { font-size: 12px; color: var(--clr-danger); margin-top: 4px; }
.ms-auth-link { color: var(--clr-secondary); font-weight: 600; }
.ms-auth-link:hover { color: var(--clr-primary); }

/* ═══════════════════════════════════════════════════════════
   PROFILE / DASHBOARD
═══════════════════════════════════════════════════════════ */
.ms-profile-sidebar { background: #fff; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: 90px; }
.profile-avatar {
  width: 72px; height: 72px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: #fff;
  margin: 0 auto;
}
.profile-nav-list { list-style: none; padding: 0; margin: 0; }
.profile-nav-list li { margin-bottom: 4px; }
.profile-nav-list a { display: flex; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: all var(--transition); }
.profile-nav-list a:hover, .profile-nav-list li.active a { background: var(--clr-bg); color: var(--clr-primary); font-weight: 600; }
.ms-profile-card { background: #fff; border-radius: var(--radius-card); padding: 28px 32px; box-shadow: var(--shadow-card); }
.profile-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--clr-primary); }

/* Order rows in profile */
.ms-order-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.ms-order-row:last-child { border-bottom: none; }
.order-id-badge { font-size: 13px; font-weight: 700; color: var(--clr-primary); background: var(--clr-bg); padding: 4px 10px; border-radius: 20px; }
.order-item-tag { font-size: 12px; background: var(--clr-bg); padding: 3px 10px; border-radius: 20px; color: var(--clr-text); }
.order-row-status { flex: 0 0 auto; }
.order-row-total { flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--clr-primary); }

/* Order status badges */
.order-status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.order-status-badge-lg { display: inline-block; padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-shipped   { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }

/* Small action buttons */
.ms-btn-sm-outline {
  background: transparent; color: var(--clr-primary); border: 1.5px solid var(--clr-primary);
  border-radius: var(--radius-btn); padding: 5px 14px; font-size: 12px; font-weight: 600;
  transition: all var(--transition);
}
.ms-btn-sm-outline:hover { background: var(--clr-primary); color: #fff; }
.ms-btn-sm-danger {
  background: #fef2f2; color: var(--clr-danger); border: 1.5px solid #fca5a5;
  border-radius: var(--radius-btn); padding: 5px 14px; font-size: 12px; font-weight: 600;
  transition: all var(--transition);
}
.ms-btn-sm-danger:hover { background: var(--clr-danger); color: #fff; border-color: var(--clr-danger); }

/* Order success */
.ms-success-card { background: #fff; border-radius: var(--radius-card); padding: 48px 40px; box-shadow: var(--shadow-hover); }
.success-icon-wrap { font-size: 64px; color: var(--clr-success); }
.success-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--clr-primary); }
.order-success-id { font-size: 15px; color: var(--clr-muted); }
.delivery-address-box { background: var(--clr-bg); border-radius: 12px; padding: 16px 20px; text-align: left; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   PROMO BANNER
═══════════════════════════════════════════════════════════ */
.ms-promo-banner { background: var(--gradient-main); }
.promo-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--clr-secondary); margin-bottom: 12px; }
.promo-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px); font-weight: 800; color: #fff; line-height: 1.1; }
.promo-title span { color: var(--clr-secondary); }
.promo-sub { color: rgba(255,255,255,.8); font-size: 16px; }
.promo-cricket-icon { font-size: 120px; opacity: .9; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.ms-footer { background: var(--clr-primary); }
.footer-brand { font-family: var(--font-display); }
.footer-brand .brand-maars { font-size: 24px; }
.footer-brand .brand-sports { font-size: 24px; }
.footer-tagline { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; }
.footer-contact p { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 6px; }
.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--clr-secondary); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.pay-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.trust-item { color: rgba(255,255,255,.75); font-size: 13px; margin-bottom: 6px; }
.footer-divider { border-color: rgba(255,255,255,.1); }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-sub { color: rgba(255,255,255,.4); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--clr-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 9999;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.12); color: #fff; box-shadow: 0 6px 28px rgba(37,211,102,.6); }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════ */
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--clr-secondary); }
.breadcrumb-item.active { color: var(--clr-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

/* ═══════════════════════════════════════════════════════════
   ORDER DETAIL
═══════════════════════════════════════════════════════════ */
.order-detail-item { border-bottom: 1px solid #f0f0f0; }
.order-detail-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  /* ════ MOBILE: HERO SECTION ════ */
  .ms-hero {
    min-height: 380px;
  }
  
  .hero-content {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: clamp(32px, 5vw, 52px);
  }
  
  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
  
  .hero-sub {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero-ball-1,
  .hero-ball-2 {
    opacity: .02;
  }
  
  /* ════ MOBILE: PRODUCT GRID ════ */
  .row.g-4 > [class*="col-"] {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }
  
  .row.g-4 > .col-lg {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }
  
  /* ════ MOBILE: PRODUCT CARD IMPROVEMENTS ════ */
  .ms-product-card {
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(11,46,51,.08);
  }
  
  .ms-product-card:hover {
    box-shadow: 0 8px 24px rgba(11,46,51,.15);
  }
  
  .product-card-img {
    height: 160px;
  }
  
  .product-img-placeholder {
    height: 160px;
  }
  
  .product-card-body {
    padding: 12px 14px;
  }
  
  .product-category-tag {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .product-name {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.6em;
  }
  
  .product-pricing {
    margin-bottom: 10px;
    gap: 6px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .product-mrp {
    font-size: 12px;
  }
  
  .discount-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .wishlist-btn {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
    font-size: 14px;
  }
  
  .ms-add-to-cart {
    padding: 9px 0;
    font-size: 13px;
    margin-top: auto;
  }
  
  .ms-mega-menu { max-height: 70vh; overflow-y: auto; }
  .ms-auth-card { padding: 28px 24px; }
  .ms-cart-item { flex-wrap: wrap; }
  .cart-item-actions { width: 100%; justify-content: flex-end; }
  
  /* HIDE SLIDER ARROWS ON MOBILE */
  .slider-arrow { display: none !important; }
  
  /* Hide footer shop categories section on mobile */
  .footer-col:has(.footer-links a[href*="category"]),
  .footer-col:nth-child(2) { display: none !important; }
  
  /* Mobile navbar toggle button */
  .navbar-toggler {
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    order: 2;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  
  /* Make navbar-collapse full width dropdown */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-basis: 100%;
    background: var(--clr-primary);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  
  .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
  }
  
  .navbar-collapse:not(.show) {
    display: none !important;
  }
  
  /* Hide search when not expanded */
  .ms-search-form { 
    display: none !important;
  }
  
  .navbar-collapse.show .ms-search-form {
    display: flex !important;
    width: 100%;
    margin: 0 0 12px 0 !important;
  }
  
  /* Hide first nav items (Store, Shop) normally */
  .navbar-collapse .navbar-nav.me-auto {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 0 0 8px 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  
  .navbar-collapse.show .navbar-nav.me-auto {
    display: flex !important;
  }
  
  /* Style nav items */
  .navbar-collapse .nav-item {
    width: 100%;
  }
  
  .navbar-collapse .nav-link {
    padding: 12px 14px !important;
    border-radius: 6px;
    display: block !important;
    color: rgba(255,255,255,.85) !important;
    width: 100%;
  }
  
  .navbar-collapse .nav-link:hover {
    background: rgba(255,255,255,.1);
  }
  
  /* Icon nav - always visible */
  .navbar-nav.gap-2 {
    display: flex !important;
    flex-direction: row;
    gap: 4px !important;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .navbar-nav.gap-2 .nav-item {
    width: auto;
  }
  
  .navbar-nav.gap-2 .ms-icon-link {
    padding: 6px 8px !important;
    font-size: 18px;
    display: flex !important;
    align-items: center;
  }
  
  /* Hide auth buttons from top nav */
  .navbar-nav.gap-2 .ms-btn-outline,
  .navbar-nav.gap-2 .ms-btn-solid {
    display: none !important;
  }
  
  /* Show auth in dropdown */
  .navbar-collapse.show .ms-btn-outline,
  .navbar-collapse.show .ms-btn-solid {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 6px 0 !important;
    text-align: center;
    font-size: 14px;
    border-radius: 6px;
  }
  
  /* Mega menu styling */
  .navbar-collapse.show .ms-mega-menu {
    position: static !important;
    display: block;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    margin: 4px 0 0 0 !important;
    padding: 12px !important;
    border-radius: 6px;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 40px 0; }
  .ms-order-row { flex-direction: column; align-items: flex-start; }
  .ms-checkout-card { padding: 20px 16px; }
  
  /* Hide slider arrows on extra small screens */
  .slider-arrow { display: none !important; }
  
  /* ════ EXTRA SMALL: HERO SECTION ════ */
  .ms-hero {
    min-height: 320px;
  }
  
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  
  .hero-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
  }
  
  .hero-sub {
    font-size: 13px;
    margin-bottom: 14px;
  }
  
  .ms-hero-btn-primary,
  .ms-hero-btn-outline {
    font-size: 13px;
    padding: 10px 20px !important;
  }
  
  /* ════ EXTRA SMALL: PRODUCT GRID (2 COLUMNS) ════ */
  .row.g-4 {
    gap: 10px;
  }
  
  .row.g-4 > [class*="col-"] {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    margin-bottom: 0 !important;
  }
  
  .row.g-4 > .col-lg {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }
  
  /* ════ EXTRA SMALL: CARD OPTIMIZATIONS ════ */
  .product-card-img {
    height: 140px;
  }
  
  .product-img-placeholder {
    height: 140px;
  }
  
  .product-card-body {
    padding: 10px 12px;
  }
  
  .product-category-tag {
    font-size: 9px;
    margin-bottom: 3px;
  }
  
  .product-name {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.2;
    min-height: 2.4em;
  }
  
  .product-pricing {
    margin-bottom: 8px;
    gap: 4px;
  }
  
  .product-price {
    font-size: 15px;
    font-weight: 700;
  }
  
  .product-mrp {
    font-size: 11px;
  }
  
  .discount-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }
  
  .wishlist-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
    font-size: 12px;
  }
  
  .ms-add-to-cart {
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
  }
  
  /* ════ EXTRA SMALL: BUTTONS AND SPACING ════ */
  .navbar-nav.gap-2 {
    right: 48px !important;
  }
  
  .navbar-nav.gap-2 .ms-icon-link {
    padding: 4px 6px !important;
    font-size: 16px;
  }
  
  .trust-item-box {
    padding: 12px 8px;
    font-size: 11px;
  }
  
  .trust-item-box i {
    font-size: 18px;
  }
  
  /* ════ EXTRA SMALL: SHOP PAGE ════ */
  .shop-page-title {
    font-size: clamp(20px, 3vw, 26px);
  }
  
  .shop-search-input {
    width: 100px;
  }
  
  .product-count-label {
    font-size: 12px;
  }
  
  /* ════ EXTRA SMALL: FOOTER ════ */
  .footer-links a {
    font-size: 13px;
  }
  
  .footer-heading {
    font-size: 11px;
  }
  
  .navbar-nav.gap-2 {
    right: 48px !important;
  }
  
  .navbar-nav.gap-2 .ms-icon-link {
    padding: 4px 6px !important;
    font-size: 16px;
  }
}

/* ── Filter sidebar: back link ──────────────────────────── */
.filter-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}
.filter-back-link:hover { color: var(--clr-primary); }

/* ── Shop page breadcrumb ───────────────────────────────── */
.ms-breadcrumb {
  background: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 2px 10px rgba(11,46,51,.07);
  font-size: 13.5px;
  margin-bottom: 0;
}
.ms-breadcrumb .breadcrumb-item a {
  color: var(--clr-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.ms-breadcrumb .breadcrumb-item a:hover { color: var(--clr-primary); }
.ms-breadcrumb .breadcrumb-item.active { color: var(--clr-primary); font-weight: 600; }
.ms-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #cbd5e1;
  content: "›";
  font-size: 16px;
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════
   SHOP PAGE — Full-width layout + Filter Drawer
════════════════════════════════════════════════════════════ */

/* ── Shop top bar ──────────────────────────────────────── */
.shop-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.shop-page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.shop-page-sub {
  font-size: 13px;
  color: var(--clr-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.shop-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-count-label {
  font-size: 13px;
  color: var(--clr-muted);
  white-space: nowrap;
}
.shop-divider {
  border-color: #e5e7eb;
  margin: 14px 0 20px;
}

/* ── Shop inline search ────────────────────────────────── */
.shop-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-btn);
  overflow: hidden;
  transition: border-color var(--transition);
}
.shop-search-form:focus-within { border-color: var(--clr-secondary); }
.shop-search-input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 13.5px;
  width: 200px;
  background: transparent;
  font-family: var(--font-body);
}
.shop-search-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  color: var(--clr-primary);
  cursor: pointer;
  font-size: 15px;
  transition: color var(--transition);
}
.shop-search-btn:hover { color: var(--clr-secondary); }

/* ── Filter trigger button ─────────────────────────────── */
.filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-trigger-btn:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
}
/* Red dot indicator when filters are active */
.filter-active-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-secondary);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}

/* ── Active filter chips below title ───────────────────── */
.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.chip-remove {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  line-height: 1;
  transition: color var(--transition);
}
.chip-remove:hover { color: #fff; }
.filter-clear-all-inline {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-danger);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filter-clear-all-inline:hover { color: #b91c1c; }

/* ════════════════════════════════════════════════════════════
   FILTER DRAWER
════════════════════════════════════════════════════════════ */

/* Dark overlay behind drawer */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1100;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.filter-overlay.open {
  display: block;
  opacity: 1;
}

/* The drawer itself — slides in from the left */
.filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(11,46,51,.18);
}
.filter-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.filter-drawer-close {
  background: var(--clr-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--clr-primary);
  transition: all var(--transition);
}
.filter-drawer-close:hover { background: var(--clr-primary); color: #fff; }

/* Drawer scrollable body */
.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.filter-drawer-body::-webkit-scrollbar { width: 4px; }
.filter-drawer-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* Drawer footer (sticky) */
.filter-drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.filter-clear-btn {
  flex: 1;
  background: #f5f5f7;
  color: var(--clr-primary);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  transition: all var(--transition);
}
.filter-clear-btn:hover { background: #e5e7eb; }
.filter-apply-btn {
  flex: 2;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  transition: opacity var(--transition);
}
.filter-apply-btn:hover { opacity: .88; color: #fff; }

/* ── Filter drawer internals ───────────────────────────── */
.filter-section { margin-bottom: 20px; }
.filter-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-muted);
  margin-bottom: 10px;
}
.filter-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-drawer-item {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--clr-text);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.filter-drawer-item:hover {
  background: var(--clr-bg);
  color: var(--clr-primary);
}
.filter-drawer-item.fw-bold { color: var(--clr-primary); }
.text-primary-custom { color: var(--clr-primary) !important; }
.filter-divider { border-color: #f0f0f0; margin: 16px 0; }

/* ── Active filter chips inside drawer ─────────────────── */
.active-chips { }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-bg);
  border: 1.5px solid #e5e7eb;
  color: var(--clr-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition);
}
.active-chip {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.filter-clear-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-danger);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ── Price range slider ────────────────────────────────── */
.price-range-wrap { padding: 4px 0; }
.price-range-slider {
  width: 100%;
  accent-color: var(--clr-primary);
  height: 4px;
  cursor: pointer;
}
.price-range-label { font-size: 13px; color: var(--clr-muted); font-weight: 500; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 575px) {
  .shop-search-input { width: 130px; }
  .filter-drawer { width: 100%; max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   CHECKOUT — Dynamic Payment Method UI
════════════════════════════════════════════════════════════ */

/* Payment option card — selected state */
.payment-option-card {
  cursor: pointer;
  position: relative;
}
.payment-option-card.selected {
  border-color: var(--clr-secondary) !important;
  background: #f0faf8 !important;
}

/* Checkmark icon — hidden by default, shown when selected */
.pay-selected-icon {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  color: var(--clr-secondary);
}
.payment-option-card.selected .pay-selected-icon {
  display: block;
}

/* Extra input field that slides in below payment option */
.payment-extra-field {
  background: #f8fbfa;
  border: 1.5px solid #d1e8e4;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: -6px;
  margin-bottom: 10px;
  animation: fadeSlideIn .2s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* COD message box */
.payment-cod-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #78350f;
  margin-top: -6px;
  margin-bottom: 10px;
  animation: fadeSlideIn .2s ease;
}
.payment-cod-msg i { color: #d97706; font-size: 16px; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════
   HERO SLIDER
════════════════════════════════════════════════════════════ */
.ms-hero-slider {
  position: relative;
  overflow: hidden;
  height: 560px;
}
@media (max-width: 767px) { .ms-hero-slider { height: 420px; } }

.slider-track { position: relative; width: 100%; height: 100%; }

/* Each slide */
.slider-slide {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  display: flex;
  align-items: center;
}
.slider-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Dark overlay so text is always readable over images */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,46,51,.85) 0%,
    rgba(11,46,51,.55) 50%,
    rgba(11,46,51,.15) 100%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 0 0 8px;
}

/* Navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); border-color: #fff; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}
.slider-dot:hover { border-color: #fff; }

/* ── Card detail fields styling ─────────────────────────── */
.card-brand-display {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 22px;
}

/* ═══ WISHLIST ════════════════════════════════════════════ */

/* Navbar wishlist badge — pink/red tint to distinguish from cart */
.wishlist-badge {
  background: var(--clr-wishlist) !important;
}

/* Wishlist button active state (heart filled) */
.wishlist-btn.active,
.wishlist-btn.active i {
  color: var(--clr-wishlist) !important;
}
.wishlist-btn.active i {
  animation: heartPop .25s ease;
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Product detail page wishlist button */
.wishlist-btn-lg {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: var(--clr-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.wishlist-btn-lg:hover,
.wishlist-btn-lg.active {
  border-color: var(--clr-wishlist);
  color: var(--clr-wishlist);
  background: #fff5f6;
}
.wishlist-btn-lg.active i { color: var(--clr-wishlist); }

/* ── Policy / Info pages ─────────────────────────────── */
.policy-page { padding: 10px 0 40px; }
.policy-title {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  color: var(--clr-primary); margin-bottom: 4px;
}
.policy-updated { color: var(--clr-muted); font-size: 13px; margin-bottom: 28px; }
.policy-card {
  background: #fff; border-radius: 14px;
  padding: 22px 26px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.policy-card h4 { font-size: 16px; font-weight: 700; color: var(--clr-primary); margin-bottom: 10px; }
.policy-list { padding-left: 20px; color: #374151; font-size: 14.5px; line-height: 2; }
.text-secondary-custom { color: var(--clr-secondary) !important; }

/* Contact page cards */
.contact-card {
  background: #fff; border-radius: 14px;
  padding: 28px 20px; box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.contact-card:hover { transform: translateY(-4px); }
.contact-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.contact-card h6 { font-weight: 700; color: var(--clr-primary); margin-bottom: 4px; }
.contact-card a { color: var(--clr-secondary); font-weight: 600; }

/* ── OTP Verify page ──────────────────────────────────── */
.otp-input {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 12px;
  padding: 14px 20px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  text-align: center;
  color: var(--clr-primary);
}
.otp-input:focus {
  border-color: var(--clr-secondary) !important;
  box-shadow: 0 0 0 3px rgba(79,124,130,.15) !important;
}

/* ── Cart pricing breakdown styles ──────────────────────── */
.cart-discount-tag {
  background: #dcfce7;
  color: #1a7340;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.cart-save-hint {
  font-size: 12px;
  color: #1a7340;
  margin: 4px 0 0;
  font-weight: 500;
}
.cart-line-mrp-small {
  font-size: 11px;
  color: var(--clr-muted);
  text-decoration: line-through;
  text-align: right;
}
.cart-savings-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1a7340;
  margin-top: 12px;
  text-align: center;
}

/* ── Brand name spacing ──────────────────────────────────── */
.brand-sports,
.footer-brand .brand-sports {
  letter-spacing: 2px;
}

/* ════════════════════════════════════════════════════════════
   COUPON SYSTEM
════════════════════════════════════════════════════════════ */
.coupon-apply-btn {
  background: var(--clr-primary); color: #fff;
  border-radius: var(--radius-btn); padding: 8px 20px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: opacity var(--transition);
}
.coupon-apply-btn:hover { opacity: .85; color: #fff; }

.coupon-msg { font-size: 13.5px; padding: 8px 12px; border-radius: 8px; }
.coupon-success { background: #f0fdf4; color: #1a7340; border: 1px solid #bbf7d0; }
.coupon-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

.coupon-available-toggle {
  background: none; border: 1.5px solid #e5e7eb; border-radius: var(--radius-btn);
  font-size: 13px; font-weight: 600; color: var(--clr-secondary);
  padding: 5px 14px; transition: all var(--transition);
}
.coupon-available-toggle:hover { background: var(--clr-bg); }

.available-coupons-list {
  background: var(--clr-bg); border-radius: 10px; padding: 8px;
}
.available-coupons-list p { 
  padding: 6px 12px; border-radius: 8px; margin: 0;
  cursor: pointer; transition: background var(--transition);
}
.available-coupons-list p:hover { background: #fff; }

/* ── Product gallery ─────────────────────────────────────── */
.product-detail-placeholder {
  height: 420px; background: linear-gradient(135deg, #e8ecee, #c8d4d6);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: #aab5b7; border-radius: var(--radius-card);
}

/* ════════════════════════════════════════════════════════════
   PRODUCT DETAIL — premium overrides
════════════════════════════════════════════════════════════ */

/* Remove old detail placeholder — use new one */
.product-detail-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: #c8d4d6;
  background: linear-gradient(135deg, #f0f2f3, #e4e8ea);
  height: 100%; border-radius: 18px;
}

/* Saving tag */
.product-detail-saving {
  font-size: 13px; font-weight: 700;
  color: #1a7340;
  background: #f0fdf4;
  padding: 4px 12px; border-radius: 20px;
}

/* Category tag in detail */
.product-detail-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; color: var(--clr-primary); line-height: 1.15;
  margin-bottom: 12px;
}

/* Related products section eyebrow */
.section-eyebrow { color: var(--clr-secondary); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE GRID SYSTEM
   Mobile: 2 columns | Tablet: 3 columns | Desktop: 4 columns
════════════════════════════════════════════════════════════ */

/* TABLET: 2-3 columns (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .row.g-4 > [class*="col-"] {
    flex: 0 0 calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
  }
  
  .row.g-4 > .col-lg {
    flex: 0 0 calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
  }
  
  .product-card-img {
    height: 180px;
  }
  
  .product-img-placeholder {
    height: 180px;
  }
  
  .product-name {
    font-size: 14px;
    min-height: 2.8em;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE: WHATSAPP BUTTON POSITIONING
   Adjusted for smaller screens
════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .whatsapp-fab:hover {
    transform: scale(1.15);
  }
}

/* Remove old fixed height from detail image wrap */
.product-detail-img-wrap { position: static; }


/* ── Product gallery fixes ──────────────────────────────── */
.pd-gallery          { position: relative; }
.pd-main-wrap        { position: relative; background: #f8f9fa;
                       border-radius: 16px; overflow: hidden;
                       aspect-ratio: 1/1; border: none !important; }
.pd-main-img         { width:100%; height:100%; object-fit:cover;
                       display:block; padding:0; margin:0;
                       transition: opacity .25s ease; cursor:zoom-in; }
.pd-main-img.fade    { opacity: 0.1; }

/* ── Remove ALL old detail image wrappers that add extra boxes ──── */
.product-detail-img-wrap { all: unset; display: block; }
.product-detail-img      { display: none; } /* replaced by pd-main-img */

/* ── Thumbnail strip — no box shadow on thumb container ─────────── */
.pd-thumbs { box-shadow: none; border: none; }
.pd-thumb  { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ── Ensure main wrap has NO extra border ───────────────────────── */
.pd-main-wrap,
.pd-main-wrap * { box-sizing: border-box; }
.pd-main-wrap   { border: none; outline: none; }

/* ── Profile nav active state ──────────────────────────── */
.profile-nav-list li.active a {
  background: var(--clr-bg);
  color: var(--clr-primary);
  font-weight: 700;
}
/* Address modal overlay */
.addr-modal     { backdrop-filter: blur(3px); }
.addr-modal-box { box-shadow: 0 16px 48px rgba(11,46,51,.2); }

/* ── Order status: out for delivery ──────────────────── */
.status-out_for_delivery,
.status-out-for-delivery { background:#fef3c7; color:#92400e; }

/* ------------------------------------------------------------
   MOBILE DRAWER / OFFCANVAS
------------------------------------------------------------ */

/* Mobile Drawer Wrapper */
.mobile-drawer {
  width: 280px !important;
  max-width: 92vw !important;
}

.mobile-drawer .offcanvas-header {
  background: var(--clr-primary);
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-drawer .offcanvas-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mobile-drawer .btn-close {
  filter: brightness(0) invert(1);
}

.mobile-drawer .offcanvas-body {
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Drawer Sections */
.mobile-drawer-section {
  flex-shrink: 0;
}

/* Search in Drawer */
.mobile-search-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  font-size: 13.5px;
  padding: 10px 14px;
  transition: border-color var(--transition);
}

.mobile-search-input:focus {
  border-color: var(--clr-secondary);
  outline: none;
  box-shadow: none;
}

.mobile-search-btn {
  background: var(--clr-secondary);
  color: #fff;
  border: 1.5px solid var(--clr-secondary);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  transition: background var(--transition);
}

.mobile-search-btn:hover {
  background: #3d636a;
  color: #fff;
}

/* Accordion Styling */
.accordion-button {
  background: transparent;
  border: 1px solid #f0f0f0;
  border-bottom: none;
  color: var(--clr-primary);
  font-size: 14px;
  padding: 12px 16px;
  font-weight: 500;
  transition: background var(--transition);
}

.accordion-button:not(.collapsed) {
  background: var(--clr-bg);
  color: var(--clr-primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: #e5e7eb;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230B2E33' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-item {
  border: none;
  border-top: 1px solid #f0f0f0;
}

.accordion-item:first-child {
  border-top: none;
}

.accordion-body {
  padding: 8px 0;
}

/* Drawer Links */
.mobile-drawer-link {
  display: block;
  padding: 12px 32px;
  color: #555;
  font-size: 14px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.mobile-drawer-link:hover {
  background: var(--clr-bg);
  color: var(--clr-primary);
  border-left-color: var(--clr-secondary);
  padding-left: 35px;
}

.accordion-body ul li a.mobile-drawer-link {
  padding: 10px 16px;
}

.accordion-body ul li a.mobile-drawer-link:hover {
  padding-left: 16px;
  border-left-color: var(--clr-secondary);
}

/* Drawer Buttons */
.mobile-drawer .btn-outline-primary {
  border: 1.5px solid var(--clr-secondary);
  color: var(--clr-secondary);
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
}

.mobile-drawer .btn-outline-primary:hover {
  background: var(--clr-secondary);
  color: #fff;
  border-color: var(--clr-secondary);
}

.mobile-drawer .btn-primary {
  background: var(--clr-secondary);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: background var(--transition);
}

.mobile-drawer .btn-primary:hover {
  background: #3d636a;
}

.mobile-drawer .btn-outline-danger {
  border: 1.5px solid #dc2626;
  color: #dc2626;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
}

.mobile-drawer .btn-outline-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* Scrollbar Styling */
.mobile-drawer .offcanvas-body::-webkit-scrollbar {
  width: 4px;
}

.mobile-drawer .offcanvas-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.mobile-drawer .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-drawer .offcanvas-body {
  -webkit-overflow-scrolling: touch;
}

/* Hide drawer on desktop */
@media (min-width: 992px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ═══ APPLE-STYLE CATEGORY SLIDER ═══════════════════════════════════
   Used on homepage "Browse by Category" section only.
   Keep below existing rules; do not merge with .category-pill styles. */
.category-slider-wrapper {
  position: relative;
  background: #f5f5f7;
  padding: 32px 8px;
  border-radius: 18px;
}

.category-slider-container {
  overflow: hidden;
}

.category-slider {
  display: flex;
  gap: 40px;
  padding: 8px 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.category-slider::-webkit-scrollbar { display: none; }

.category-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform .25s ease;
}

.category-icon-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.category-icon-box i {
  font-size: 34px;
  color: var(--clr-primary);
  transition: color .25s ease;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  text-align: center;
  transition: color .25s ease;
}

.category-card:hover .category-icon-box {
  background: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 46, 51, .22);
}

.category-card:hover .category-icon-box i {
  color: #ffffff;
}

.category-card:hover .category-name {
  color: var(--clr-primary);
}

.category-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  color: #1d1d1f;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 1;
  transition: opacity .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}

.category-slider-arrow:hover {
  background: var(--clr-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.category-slider-prev { left: -8px; }
.category-slider-next { right: -8px; }

.category-slider-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .category-slider-wrapper {
    padding: 22px 4px;
    border-radius: 14px;
  }
  .category-slider {
    gap: 22px;
    padding: 6px 16px;
  }
  .category-icon-box {
    width: 66px;
    height: 66px;
  }
  .category-icon-box i {
    font-size: 26px;
  }
  .category-name {
    font-size: 12px;
  }
}

