/* JacanFoods Shop - Modern High-Converting E-Commerce Design System (PriceSmart Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');


:root {
  --jacan-blue: #1e40af;
  --jacan-blue-hover: #1d4ed8;
  --jacan-purple: #7c3aed;
  --jacan-purple-light: #ede9fe;
  --jacan-red: #b91c1c;
  --jacan-red-hover: #991b1b;

  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a; /* Navy Slate */
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --primary: #b91c1c; /* Blood Red */
  --primary-hover: #991b1b;
  --primary-light: #fee2e2;
  --accent-gold: #f59e0b;
  --accent-red: #dc2626;
  
  --border: #e2e8f0;
  --border-dark: #243029;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --max-w: 1280px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* Announcement Bar (Testing Mode) */
.top-bar {
  background: #b91c1c;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.top-bar span.badge {
  background: #ffffff;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-wrap img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

/* Search Bar (Modern, User-Friendly Pill) */
.search-wrap {
  flex: 1;
  max-width: 580px;
  min-width: 200px;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 90px 10px 42px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-light);
  font-size: 0.86rem;
}

.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
}

.search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.02);
}

/* Header Actions: Currency Toggle & Cart Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.currency-toggle-btn, .currency-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.currency-toggle-btn:hover, .currency-toggle:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.cart-trigger-btn, .cart-trigger {
  background: var(--primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.cart-trigger-btn:hover, .cart-trigger:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
}

.cart-label {
  font-weight: 700;
}

.cart-count-badge {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}


.department-mega-nav {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  z-index: 45;
  overflow: visible;
}

.department-mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 6px;
  position: relative;
  overflow: visible;
}

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.dept-link:hover, .dept-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.dept-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dept-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 270px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: 10px 0;
  z-index: 9999;
}

.dept-dropdown-wrapper:hover .dept-dropdown-menu,
.dept-dropdown-wrapper:focus-within .dept-dropdown-menu {
  display: flex;
  flex-direction: column;
  animation: fadeInMenu 0.15s ease forwards;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dept-dropdown-menu a {
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-main);
  display: block;
  transition: var(--transition);
  white-space: nowrap;
}

.dept-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  padding-left: 22px;
}

/* Subcategory Pills Bar (When viewing filtered category) */
.subcat-pills-bar {
  max-width: var(--max-w);
  margin: 14px auto 0;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.subcat-pills-bar::-webkit-scrollbar { display: none; }

.subcat-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.subcat-pill:hover, .subcat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   Hero Multi-Slide Carousel (With Real Product Visuals)
   ========================================================================== */
.hero-slider-wrap {
  max-width: var(--max-w);
  margin: 20px auto 0;
  padding: 0 16px;
  position: relative;
}

.hero-slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slides-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  padding: 44px 44px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
  min-height: 360px;
}

.hero-slide.slide-1 { background: linear-gradient(135deg, #0d2218 0%, #163828 60%, #1e4d36 100%); }
.hero-slide.slide-2 { background: linear-gradient(135deg, #38120b 0%, #521c11 60%, #702617 100%); }
.hero-slide.slide-3 { background: linear-gradient(135deg, #22132b 0%, #391c47 60%, #4e2663 100%); }
.hero-slide.slide-4 { background: linear-gradient(135deg, #332109 0%, #52360f 60%, #704b16 100%); }
.hero-slide.slide-5 { background: linear-gradient(135deg, #0c1a2e 0%, #142a47 60%, #1d3d66 100%); }

.hero-slide-badge {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 12px;
}

.hero-slide-subtitle {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin-bottom: 20px;
  line-height: 1.45;
}

.hero-cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.4);
  transition: var(--transition);
}

.hero-cta-btn:hover {
  background: #00a865;
  transform: translateY(-2px);
}

.hero-product-collage {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.hero-collage-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-align: center;
  transition: transform 0.3s ease;
  width: 135px;
}

.hero-collage-item img {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.hero-collage-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-collage-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
}

/* Slider Controls */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-btn.prev { left: 14px; }
.slider-arrow-btn.next { right: 14px; }

.slider-dots-container {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   PriceSmart-Inspired Department Visual Tiles Grid (Homepage)
   ========================================================================== */
.department-tiles-section {
  max-width: var(--max-w);
  margin: 36px auto 0;
  padding: 0 16px;
}

.department-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.department-tile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.department-tile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.dept-tile-header {
  margin-bottom: 12px;
}

.dept-tile-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.dept-tile-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.dept-tile-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dept-tile-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.dept-tile-img-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.dept-tile-img-box img {
  max-height: 75px;
  max-width: 100%;
  object-fit: contain;
}

.dept-tile-footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Curated Department Showcases on Homepage (Meat Market, Jerk Bar, etc.)
   ========================================================================== */
.department-showcase-section {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 0 16px;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.showcase-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.showcase-header a.view-all-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Trust Bar */
.trust-bar {
  max-width: var(--max-w);
  margin: 28px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1px;
}

.trust-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Product Catalog Grid */
.catalog-section {
  max-width: var(--max-w);
  margin: 32px auto;
  padding: 0 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff !important;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
}

.card-img-wrap img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease;
  display: block !important;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.card-badge.sale { background: var(--accent-red); }
.card-badge.trending { background: var(--primary); }

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.card-rating span.reviews {
  color: var(--text-light);
  font-size: 0.72rem;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-sans);
}

.price-compare {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  background: var(--bg-dark);
  color: #fff;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary);
}

/* ==========================================================================
   Product Carousel Slider (Frequently Bought Together 10 Items)
   ========================================================================== */
.product-slider-wrapper { position: relative; }

.product-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 16px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-slider-track::-webkit-scrollbar { display: none; }

.product-slider-card {
  flex: 0 0 240px;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-slider-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.slider-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  cursor: pointer;
}

.slider-scroll-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slider-scroll-btn.left { left: -14px; }
.slider-scroll-btn.right { right: -14px; }

/* Slide-out AJAX Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 101;
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 { font-size: 1.15rem; font-weight: 700; }
.close-drawer-btn { background: none; font-size: 1.4rem; color: var(--text-muted); line-height: 1; }

.free-shipping-meter {
  background: var(--bg-subtle);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.free-shipping-text {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.cart-item-details { flex: 1; }
.cart-item-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.cart-item-variant { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-price { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }

.cart-item-ctrls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-stepper {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  padding: 4px 9px;
  background: var(--bg-subtle);
  font-size: 0.82rem;
  color: var(--text-main);
}

.qty-stepper span {
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-remove-item {
  background: none;
  font-size: 0.75rem;
  color: #ef4444;
  text-decoration: underline;
}

.cart-drawer-footer {
  padding: 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.btn-checkout-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 135, 81, 0.3);
}

.btn-checkout-primary:hover { background: #00a865; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Product Detail Page */
.product-detail-wrap {
  max-width: var(--max-w);
  margin: 28px auto;
  padding: 0 16px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.gallery-main img { width: 100%; max-height: 480px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  object-fit: cover;
  transition: var(--transition);
  flex-shrink: 0;
}

.gallery-thumb.active { border-color: var(--primary); }

.product-info-panel h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.product-price-box .price-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-sans);
}

.product-variants-box { margin: 18px 0; }
.variant-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; display: block; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }

.variant-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.variant-btn:hover, .variant-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* Accordions */
.accordion { border-top: 1px solid var(--border); margin-top: 20px; }
.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-header {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.accordion-content {
  padding-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: none;
}

.accordion-item.active .accordion-content { display: block; }

/* Checkout Page */
.checkout-wrap {
  max-width: 1060px;
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.checkout-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.payment-method-card:hover { border-color: #cbd5e1; }
.payment-method-card.active { border-color: var(--primary); background: var(--primary-light); }
.payment-method-header { display: flex; align-items: center; justify-content: space-between; }

.discount-badge-3 {
  background: #15803d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   PIXEL-PERFECT MOBILE RESPONSIVE STYLES (iPhone & Android)
   ========================================================================== */
@media (max-width: 768px) {
  /* Announcement Bar (Testing Mode) */
.top-bar {
  background: #b91c1c;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.top-bar span.badge {
  background: #ffffff;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-wrap img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

/* Search Bar (Modern, User-Friendly Pill) */
.search-wrap {
  flex: 1;
  max-width: 580px;
  min-width: 200px;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 90px 10px 42px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-light);
  font-size: 0.86rem;
}

.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
}

.search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.02);
}

/* Header Actions: Currency Toggle & Cart Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.currency-toggle-btn, .currency-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.currency-toggle-btn:hover, .currency-toggle:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.cart-trigger-btn, .cart-trigger {
  background: var(--primary);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.cart-trigger-btn:hover, .cart-trigger:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
}

.cart-label {
  font-weight: 700;
}

.cart-count-badge {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}


.department-mega-nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .department-mega-nav::-webkit-scrollbar { display: none; }

  .department-mega-inner {
    display: inline-flex !important;
    width: max-content !important;
    padding: 0 10px !important;
    gap: 4px !important;
  }

  .dept-dropdown-menu {
    display: none !important;
  }

  /* Subcategory Pills Bar */
  .subcat-pills-bar {
    padding: 0 10px;
    gap: 6px;
    margin: 10px auto 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .subcat-pill {
    padding: 5px 11px;
    font-size: 0.74rem;
  }

  /* Hero Carousel on Mobile */
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px 18px;
    min-height: auto;
    gap: 16px;
  }

  .hero-slide-title {
    font-size: 1.6rem;
  }

  .hero-slide-subtitle {
    font-size: 0.84rem;
    margin-bottom: 16px;
  }

  .hero-product-collage {
    display: none;
  }

  .slider-arrow-btn {
    display: none; /* Swipe & dots for mobile */
  }

  /* 2-Column Mobile Product Grid (Clean & Modern like retail apps) */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .card-body {
    padding: 10px;
  }

  .card-category {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .card-title {
    font-size: 0.8rem;
    height: 2.5em;
    margin-bottom: 4px;
    line-height: 1.25;
  }

  .card-rating {
    display: none; /* Cleaner, uncluttered card face */
  }

  .price-current {
    font-size: 0.95rem;
  }

  .price-compare {
    font-size: 0.72rem;
  }

  .btn-add-cart {
    padding: 7px 8px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .btn-add-cart svg {
    width: 14px;
    height: 14px;
  }

  /* Department Tiles Grid on Mobile */
  .department-tiles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .department-tile-card {
    padding: 12px;
  }

  .dept-tile-title {
    font-size: 0.92rem;
  }

  .dept-tile-subtitle {
    display: none;
  }

  .dept-tile-img-box {
    height: 70px;
  }

  .dept-tile-img-box img {
    max-height: 55px;
  }

  /* Product Detail Page on Mobile */
  .product-detail-wrap {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-main img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 380px !important;
    object-fit: contain !important;
  }

  .product-info-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Checkout on Mobile */
  .checkout-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .checkout-card {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .slider-scroll-btn {
    display: none;
  }
}

/* ==========================================================================
   Global Cart Drawer & Floating WhatsApp Layering
   ========================================================================== */
.cart-drawer {
  z-index: 10000 !important;
}

.cart-drawer-overlay {
  z-index: 9999 !important;
}

.floating-whatsapp-widget {
  z-index: 800 !important;
}

body.cart-open .floating-whatsapp-widget,
.checkout-page .floating-whatsapp-widget {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ==========================================================================
   APP-LIKE MOBILE & TABLET RESPONSIVE SYSTEM (ZERO HORIZONTAL SCROLL)
   ========================================================================== */

/* 1. Global Viewport & Container Containment */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative !important;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, svg, video, iframe {
  max-width: 100% !important;
  height: auto;
}

/* 2. Tablet & Mobile Header (<= 900px) */
@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px 0 6px !important;
  }

  .header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: 
      "logo actions"
      "search search" !important;
    gap: 8px 12px !important;
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .logo-wrap {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem !important;
  }

  .logo-wrap img {
    height: 34px !important;
    width: 34px !important;
  }

  .header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 6px !important;
  }

  .currency-toggle-btn, .currency-toggle {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .cart-trigger-btn, .cart-trigger {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }

  .cart-count-badge {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.7rem !important;
  }

  .search-wrap {
    grid-area: search;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .search-form {
    width: 100% !important;
  }

  .search-input {
    padding: 8px 75px 8px 36px !important;
    font-size: 0.84rem !important;
  }

  .search-icon {
    left: 10px !important;
    width: 16px !important;
    height: 16px !important;
  }

  .search-submit-btn {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
  }

  /* Horizontal App Department Pill Bar */
  .department-mega-nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 4px 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .department-mega-nav::-webkit-scrollbar {
    display: none !important;
  }

  .department-mega-inner {
    display: inline-flex !important;
    width: max-content !important;
    padding: 0 12px !important;
    gap: 6px !important;
  }

  .dept-link {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-pill) !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
  }

  .dept-link.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
  }

  .dept-dropdown-menu {
    display: none !important;
  }
}

/* 3. Mobile Viewport Adjustments (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important; /* Space for Mobile App Bottom Bar */
  }

  .top-bar {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  .top-bar .badge {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
  }

  /* Hero Slider on Mobile */
  .hero-slider-wrap {
    margin: 12px auto 0 !important;
    padding: 0 10px !important;
    max-width: 100vw !important;
  }

  .hero-slide {
    grid-template-columns: 1fr !important;
    padding: 24px 16px !important;
    min-height: auto !important;
    gap: 12px !important;
  }

  .hero-slide-title {
    font-size: 1.45rem !important;
    margin-bottom: 8px !important;
  }

  .hero-slide-subtitle {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
  }

  .hero-product-collage, .slider-arrow-btn {
    display: none !important;
  }

  .hero-cta-btn {
    padding: 9px 18px !important;
    font-size: 0.84rem !important;
  }

  /* Trust Bar (2x2 Clean App Grid) */
  .trust-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 16px auto !important;
    padding: 0 10px !important;
  }

  .trust-item {
    padding: 10px !important;
    gap: 8px !important;
  }

  .trust-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .trust-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .trust-text h4 {
    font-size: 0.76rem !important;
  }

  .trust-text p {
    font-size: 0.68rem !important;
  }

  /* Explore by Department (2-Column Grid) */
  .department-tiles-section {
    margin: 20px auto 0 !important;
    padding: 0 10px !important;
  }

  .section-header h2 {
    font-size: 1.35rem !important;
  }

  .department-tiles-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .department-tile-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .dept-tile-badge {
    font-size: 0.62rem !important;
  }

  .dept-tile-title {
    font-size: 0.88rem !important;
  }

  .dept-tile-subtitle {
    display: none !important;
  }

  .dept-tile-img-box {
    height: 64px !important;
    padding: 4px !important;
  }

  .dept-tile-img-box img {
    max-height: 50px !important;
  }

  .dept-tile-footer {
    padding-top: 6px !important;
    font-size: 0.72rem !important;
  }

  /* Product Showcases & Catalog 2-Column App Grid */
  .department-showcase-section, .catalog-section {
    margin: 24px auto 0 !important;
    padding: 0 10px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card {
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .card-img-wrap {
    height: 150px !important;
  }

  .card-img-wrap img {
    max-height: 130px !important;
  }

  .card-body {
    padding: 8px 10px 10px !important;
  }

  .card-category {
    font-size: 0.64rem !important;
  }

  .card-title {
    font-size: 0.78rem !important;
    height: 2.5em !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .card-rating {
    display: none !important;
  }

  .price-current {
    font-size: 0.9rem !important;
  }

  .price-compare {
    font-size: 0.7rem !important;
  }

  .btn-add-cart {
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
    border-radius: var(--radius-pill) !important;
  }

  /* Floating WhatsApp on Mobile (lifted above bottom bar) */
  .floating-whatsapp-widget {
    bottom: 80px !important;
    right: 14px !important;
  }
}

/* 4. Native App Bottom Bar Navigation (Mobile & Small Tablet) */
.mobile-app-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-app-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 9000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .app-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    position: relative;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .app-bar-item:hover, .app-bar-item.active {
    color: var(--primary);
  }

  .app-bar-item svg {
    width: 20px;
    height: 20px;
  }

  .app-bar-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Hide floating WhatsApp on mobile - Support is in the Bottom App Bar */
  .floating-whatsapp-widget, #floatingWhatsappWidget {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .card-img-wrap {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 6px !important;
    background: #ffffff !important;
  }

  .card-img-wrap img {
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  /* Cart Drawer Mobile Full Height with High Z-Index */
  .cart-drawer {
    z-index: 10000 !important;
    width: 100% !important;
    max-width: 380px !important;
  }

  .cart-drawer-overlay {
    z-index: 9999 !important;
  }
}
