/* ===================================================
   MGL Shuddha Spices — Global CSS
   Brand: Deep Maroon #5C0A17 | Saffron Gold #C9A84C | Cream #FAF6F0
   Fonts: Cormorant Garamond (display) | DM Sans (body)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --maroon:        #5C0A17;
  --maroon-dark:   #3E0610;
  --maroon-light:  #8C1528;
  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-pale:     #F5E9C8;
  --cream:         #FAF6F0;
  --cream-dark:    #F0E8DC;
  --white:         #FFFFFF;
  --text-dark:     #1A1A1A;
  --text-mid:      #4A4A4A;
  --text-muted:    #7A7A7A;
  --text-light:    #AAAAAA;
  --border:        #E5DDD0;
  --border-dark:   #C9B99A;
  --success:       #2D7A3A;
  --success-bg:    #EAF5EC;
  --error:         #C0392B;
  --error-bg:      #FDECEA;
  --warning:       #D97706;
  --warning-bg:    #FEF3C7;
  --info:          #1D6FA4;
  --info-bg:       #EBF4FB;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --shadow-sm:     0 1px 3px rgba(92,10,23,0.08);
  --shadow-md:     0 4px 16px rgba(92,10,23,0.12);
  --shadow-lg:     0 8px 32px rgba(92,10,23,0.16);

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --radius-full:   9999px;

  --transition:    0.22s ease;
  --max-width:     1320px;
  --header-h:      72px;
  --topbar-h:      36px;
  --annbar-h:      36px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1400px) { .container { padding: 0 40px; } }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p { line-height: 1.7; color: var(--text-mid); }

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--maroon);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
  margin-top: 6px;
}
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 10px; }
.section-link i { font-size: 0.75rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--maroon);
  color: var(--white);
  border: 2px solid var(--maroon);
}
.btn-primary:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--maroon-dark);
  border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- Badge / Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-sale { background: var(--maroon); color: var(--white); }
.badge-new  { background: var(--gold); color: var(--maroon-dark); }
.badge-hot  { background: #E84B2A; color: var(--white); }
.badge-out  { background: var(--text-light); color: var(--white); }

/* --- Star Rating --- */
.stars { display: flex; align-items: center; gap: 2px; color: var(--gold); font-size: 0.8rem; }
.stars-count { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }

/* --- Product Card --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-pale);
}
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.card-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-mid);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-action-btn:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.card-action-btn.active { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.product-card-body { padding: 14px; }
.product-brand { font-size: 0.72rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.product-name { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price-current { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--maroon); }
.price-original { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 0.75rem; font-weight: 700; color: var(--success); }
.product-card-footer { padding: 0 14px 14px; }
.btn-add-cart {
  width: 100%;
  padding: 9px;
  background: var(--cream);
  color: var(--maroon);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-add-cart:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }

/* --- Quantity Selector --- */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--cream);
  border: none;
  font-size: 1rem;
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--maroon); color: var(--white); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  background: var(--white);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
}

/* --- Form Elements --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-label .required { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(92,10,23,0.08); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-error { font-size: 0.78rem; color: var(--error); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb .sep { color: var(--text-light); font-size: 0.7rem; }
.breadcrumb .current { color: var(--text-dark); font-weight: 500; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.page-btn.dots { border: none; background: transparent; cursor: default; }
.page-btn.dots:hover { background: transparent; color: var(--text-mid); }

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--maroon);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  animation: slideInRight 0.3s ease;
  font-size: 0.875rem;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }
.toast.warning { border-color: var(--warning); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i   { color: var(--error); }
.toast.warning i { color: var(--warning); }
.toast-text { flex: 1; font-weight: 500; color: var(--text-dark); }
.toast-close { color: var(--text-muted); font-size: 0.8rem; padding: 2px; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- Overlay & Modal --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-maroon { color: var(--maroon); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-small  { font-size: 0.82rem; }
.font-display{ font-family: var(--font-display); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; } }

/* --- Section Spacing --- */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 800;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 800;
  width: 40px;
  height: 40px;
  background: var(--maroon);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--maroon-dark); }

/* --- Responsive Helpers --- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .section { padding: 40px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ===================================================
   MOBILE FIXES — comprehensive responsive overrides
   =================================================== */

/* ── General mobile typography ── */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  .section { padding: 32px 0; }
  .section-title::after { width: 36px; }

  /* Product grid — 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card-body { padding: 10px; }
  .product-card-footer { padding: 0 10px 10px; }
  .product-name { font-size: 0.8rem; }
  .price-current { font-size: 1rem; }
  .btn-add-cart { font-size: 0.75rem; padding: 8px 6px; }
  .product-card-actions { opacity: 1; transform: none; }

  /* Section headers */
  .section-header { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .section-title { font-size: 1.3rem; }

  /* Badges */
  .badge { font-size: 0.65rem; padding: 2px 7px; }

  /* Pagination */
  .pagination { gap: 4px; margin-top: 24px; }
  .page-btn { width: 34px; height: 34px; font-size: 0.8rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.75rem; padding: 10px 0; }

  /* Qty selector */
  .qty-selector { border-radius: var(--radius-md); }
  .qty-btn { width: 32px; height: 32px; }
  .qty-input { width: 40px; }

  /* Buttons */
  .btn-lg { padding: 12px 24px; font-size: 0.875rem; }

  /* Toast */
  .toast-container { bottom: 70px; right: 10px; left: 10px; }
  .toast { min-width: unset; max-width: 100%; font-size: 0.8rem; padding: 10px 14px; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 74px; right: 14px; width: 46px; height: 46px; font-size: 1.2rem; }

  /* Back to top */
  .back-to-top { bottom: 74px; right: 14px; width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ── Hero section mobile ── */
@media (max-width: 767px) {
  .hero-slide { padding: 24px 0 48px !important; min-height: auto !important; }
  .hero-slide-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hero-img-wrap { order: -1; }
  .hero-img-placeholder { height: 180px !important; font-size: 2.8rem !important; border-radius: var(--radius-lg) !important; }
  .hero-img-wrap img { max-height: 200px !important; border-radius: var(--radius-lg) !important; }
  .hero-title { font-size: 1.6rem !important; margin-bottom: 10px !important; }
  .hero-desc { font-size: 0.85rem !important; margin-bottom: 18px !important; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn-lg { padding: 10px 20px; font-size: 0.82rem; }
  .hero-tag { font-size: 0.72rem; padding: 4px 12px; }
  .hero-badges { display: none !important; }
  .hero-controls { bottom: 14px; }
  .hero-dot { width: 6px; height: 6px; }
  .hero-dot.active { width: 20px; }
}

/* ── Categories carousel mobile ── */
@media (max-width: 767px) {
  .categories-section { padding: 28px 0 24px !important; }
  .cat-card { width: 78px !important; }
  .cat-icon-wrap { width: 58px !important; height: 58px !important; font-size: 1.4rem !important; }
  .cat-name { font-size: 0.7rem !important; }
  .cat-count { font-size: 0.62rem !important; }
  .cats-arr { display: none !important; }
}

/* ── Promo banners mobile ── */
@media (max-width: 767px) {
  .promo-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .promo-banners-section { padding: 0 0 28px !important; }
  .promo-card { min-height: 110px !important; padding: 20px !important; border-radius: var(--radius-lg) !important; }
  .promo-card-title { font-size: 1rem !important; }
  .promo-card-emoji { font-size: 2.8rem !important; }
}

/* ── Flash sale mobile ── */
@media (max-width: 767px) {
  .flash-sale-section { padding: 32px 0 !important; }
  .flash-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .flash-card-body { padding: 10px !important; }
  .flash-product-name { font-size: 0.78rem !important; }
  .flash-price { font-size: 1rem !important; }
  .flash-original { font-size: 0.7rem !important; }
  .flash-add-btn { padding: 7px !important; font-size: 0.75rem !important; }
  .countdown-num { font-size: 1.1rem !important; }
  .countdown-block { min-width: 38px !important; padding: 5px 8px !important; }
  .flash-sale-header { flex-direction: column !important; gap: 10px !important; }
  .flash-title-wrap { flex-wrap: wrap !important; gap: 8px !important; }
  .flash-title { font-size: 1.2rem !important; }
}

/* ── Story section mobile ── */
@media (max-width: 767px) {
  .story-section { padding: 36px 0 !important; }
  .story-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .story-collage { grid-template-columns: 1fr 1fr !important; height: 200px; gap: 8px; }
  .story-img.tall { grid-row: span 1 !important; }
  .story-img-placeholder { height: 100% !important; font-size: 1.8rem !important; }
  .story-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; padding: 14px !important; }
  .stat-num { font-size: 1.4rem !important; }
  .stat-label { font-size: 0.65rem !important; }
  .story-desc { font-size: 0.85rem !important; }
}

/* ── Testimonials mobile ── */
@media (max-width: 767px) {
  .testimonials-section { padding: 36px 0 !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .testimonials-badge { flex-direction: column !important; text-align: center !important; gap: 8px !important; }
  .badge-num { font-size: 2rem !important; }
}

/* ── Trust strip mobile ── */
@media (max-width: 767px) {
  .trust-strip { padding: 18px 0 !important; }
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .trust-icon { width: 38px !important; height: 38px !important; font-size: 1.1rem !important; }
  .trust-title { font-size: 0.78rem !important; }
  .trust-desc { font-size: 0.68rem !important; }
  .trust-item { gap: 10px !important; }
}

/* ── Newsletter mobile ── */
@media (max-width: 767px) {
  .newsletter-section { padding: 36px 0 !important; }
  .newsletter-inner { flex-direction: column !important; gap: 20px !important; }
  .newsletter-form { flex-direction: column !important; gap: 10px !important; }
  .newsletter-input { border-radius: var(--radius-md) !important; }
  .newsletter-title { font-size: 1.3rem !important; }
}

/* ── Footer mobile ── */
@media (max-width: 767px) {
  .site-footer { padding-top: 36px; }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-bottom: 24px !important;
  }
  .footer-brand { grid-column: 1 !important; }
  .footer-col-title { font-size: 0.75rem; }
  .footer-link, .footer-contact-item { font-size: 0.78rem; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .footer-socials { gap: 8px; }
  .social-btn { width: 32px; height: 32px; font-size: 0.82rem; }
  .footer-logo-name { font-size: 1rem; }
  .footer-desc { font-size: 0.78rem; }
}

/* ── Shop page mobile ── */
@media (max-width: 767px) {
  .shop-layout { padding: 16px 0 !important; }
  .shop-toolbar { flex-direction: column !important; align-items: flex-start !important; padding: 10px 14px !important; }
  .shop-toolbar-right { width: 100%; justify-content: space-between; }
  .sort-select { font-size: 0.78rem; padding: 6px 28px 6px 10px; }
}

/* ── Product detail mobile ── */
@media (max-width: 767px) {
  .product-page { padding: 16px 0 40px !important; }
  .product-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .product-gallery { position: static !important; }
  .gallery-thumbs { gap: 6px; }
  .gallery-thumb { width: 58px !important; height: 58px !important; }
  .product-info-title { font-size: 1.3rem !important; }
  .product-price-sale { font-size: 1.6rem !important; }
  .product-actions-row { flex-wrap: wrap !important; }
  .btn-add-cart-lg, .btn-buy-now { flex: 1 1 130px !important; padding: 11px 14px !important; font-size: 0.82rem !important; }
  .btn-wishlist-lg { width: 42px !important; height: 42px !important; }
  .product-tab-nav { overflow-x: auto; }
  .product-tab-btn { padding: 10px 14px !important; font-size: 0.78rem !important; white-space: nowrap; }
  .review-summary { grid-template-columns: 1fr !important; gap: 16px !important; }
  .product-tabs-section { padding: 28px 0 !important; }
}

/* ── Cart page mobile ── */
@media (max-width: 767px) {
  .cart-layout { grid-template-columns: 1fr !important; }
  .cart-page { padding: 16px 0 40px !important; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none !important; }
  .order-summary { position: static !important; }
}

/* ── Checkout mobile ── */
@media (max-width: 767px) {
  .checkout-layout { grid-template-columns: 1fr !important; }
  .checkout-page { padding: 16px 0 40px !important; }
  .checkout-order-summary { position: static !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* ── Account page mobile ── */
@media (max-width: 767px) {
  .account-page { padding: 16px 0 40px !important; }
  .account-layout { grid-template-columns: 1fr !important; }
  .account-sidebar { position: static !important; }
  .account-user-card { flex-direction: row !important; }
  .account-nav { flex-direction: row !important; overflow-x: auto !important; border-bottom: 1px solid var(--border); }
  .account-nav-item { border-left: none !important; border-bottom: 3px solid transparent !important; flex-shrink: 0 !important; font-size: 0.78rem !important; padding: 10px 12px !important; }
  .account-nav-item.active { border-bottom-color: var(--maroon) !important; }
  .account-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .addresses-grid { grid-template-columns: 1fr !important; }
}

/* ── Orders page mobile ── */
@media (max-width: 767px) {
  .order-detail-card { border-radius: 0 !important; }
  .order-meta-grid { grid-template-columns: 1fr !important; }
  .progress-steps { min-width: 320px !important; }
  .step-circle { width: 34px !important; height: 34px !important; font-size: 0.8rem !important; }
  .step-label { font-size: 0.6rem !important; }
}

/* ── Policy pages mobile ── */
@media (max-width: 767px) {
  .policy-layout { grid-template-columns: 1fr !important; }
  .policy-toc { display: none !important; }
  .policy-body { padding: 20px !important; }
  .policy-hero { padding: 32px 0 !important; }
  .policy-hero-title { font-size: 1.4rem !important; }
}

/* ── About page mobile ── */
@media (max-width: 767px) {
  .about-hero { padding: 40px 0 !important; }
  .about-hero-title { font-size: 1.5rem !important; }
  .about-hero-badges { gap: 8px !important; }
  .about-hero-badge { font-size: 0.72rem !important; padding: 5px 12px !important; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .about-stat-item { border: none !important; padding: 0 !important; }
  .about-story-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .about-story { padding: 40px 0 !important; }
  .about-values { padding: 36px 0 !important; }
  .certs-grid { flex-direction: column !important; gap: 12px !important; }
}

/* ── Fix body padding for bottom nav ── */
@media (max-width: 991px) {
  body { padding-bottom: 62px; }
  .bottom-nav { display: flex !important; }
}

/* ── Prevent horizontal overflow ── */
@media (max-width: 767px) {
  .ann-bar-track { animation-duration: 18s !important; }
  img { max-width: 100%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Input & form fixes on mobile ── */
@media (max-width: 767px) {
  .form-control { font-size: 16px !important; } /* prevents iOS zoom on focus */
  .search-category { min-width: 90px !important; font-size: 0.75rem !important; }
  .search-input { font-size: 14px !important; }
}

/* ── Fix admin modal on mobile ── */
@media (max-width: 767px) {
  .modal-box {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    max-height: 92vh !important;
    margin-top: auto !important;
  }
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
}
