/* ==========================================================================
   Bebohar.com - Universal Mobile Responsive Stylesheet
   Engineered for seamless mobile experiences (320px - 768px) and tablets
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESKTOP GUARDS (HIDDEN ON DESKTOP > 768px)
   -------------------------------------------------------------------------- */
.mobile-toggle-btn {
  display: none !important;
}

.mobile-bottom-app-bar {
  display: none !important;
}

/* --------------------------------------------------------------------------
   1. GLOBAL MOBILE RESETS & LAYOUT CONSTRAINTS (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-bottom: 74px !important; /* Prevents Fixed Mobile App Bar from covering page content */
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Hide mobile search toggle on desktop */
.mobile-search-toggle-btn {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. MOBILE HEADER & NAVIGATION (<= 768px)
   Row 1: [Logo] ---------------- [Search Icon] [Cart Icon] [Hamburger Menu]
   Row 2 (when opened): [============== Full-Width Pill Search Input ===============]
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header {
    height: auto !important;
    min-height: unset !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 10000 !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header-top-row {
    height: 58px !important;
    min-height: 58px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-header.mobile-search-open .header-top-row {
    height: auto !important;
    min-height: 58px !important;
    flex-wrap: wrap !important;
    padding: 8px 14px 10px 14px !important;
  }

  /* Row 1 Left: Brand Logo */
  .brand-logo {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 38px !important;
    margin: 0 !important;
    text-decoration: none !important;
  }

  .brand-logo img {
    width: auto !important;
    height: 32px !important;
    max-height: 32px !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* Row 1 Right: Single Line Action Buttons (Search + Cart + Hamburger) */
  .header-right-actions {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 0 0 auto !important;
    flex: 0 0 auto !important;
  }

  /* Mobile Search Icon Toggle Button */
  .mobile-search-toggle-btn {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  .mobile-search-toggle-btn:active,
  .site-header.mobile-search-open .mobile-search-toggle-btn {
    background: #E8F7F0 !important;
    color: #00A859 !important;
    border-color: #A7F3D0 !important;
  }

  .site-header.mobile-search-open .mobile-search-toggle-btn .search-open-icon {
    display: none !important;
  }

  .site-header.mobile-search-open .mobile-search-toggle-btn .search-close-icon {
    display: block !important;
  }

  /* Cart Icon Button */
  .header-cart-icon-btn {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    position: relative !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  .header-cart-icon-btn:active {
    transform: scale(0.92) !important;
    background: #F1F5F9 !important;
  }

  .header-cart-icon-btn svg {
    width: 19px !important;
    height: 19px !important;
    stroke: #0F172A !important;
  }

  /* Floating Red Pill Count Badge with Crisp White Border Ring */
  .header-cart-icon-btn .cart-pill-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    background: #FF2E56 !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 3px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(255, 46, 86, 0.4) !important;
    line-height: 1 !important;
  }

  /* Modern Hamburger Menu Toggle Button */
  .mobile-toggle-btn {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 38px !important;
    height: 38px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  .mobile-toggle-btn:active {
    transform: scale(0.92) !important;
    background: #F1F5F9 !important;
  }

  .mobile-toggle-btn span {
    display: block !important;
    width: 16px !important;
    height: 2px !important;
    background: #0F172A !important;
    border-radius: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide Desktop-Only Clutter from Header */
  .header-link-btn,
  .header-lang-pill,
  .header-action-label,
  .header-login-btn,
  .header-login-btn-solid,
  .header-user-profile-menu,
  .header-icon-action-btn:not(.header-cart-icon-btn) {
    display: none !important;
  }

  /* Row 2: Full-Width Search Pill - Hidden by default on mobile */
  div.header-search-wrap,
  .header-top-row .header-search-wrap,
  .header-search-wrap {
    display: none !important;
  }

  /* Show Search Pill smoothly when mobile search button is clicked */
  .site-header.mobile-search-open div.header-search-wrap,
  .site-header.mobile-search-open .header-top-row .header-search-wrap,
  .site-header.mobile-search-open .header-search-wrap {
    display: block !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0 10px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    animation: expandSearch 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes expandSearch {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .search-pill-form {
    width: 100% !important;
    height: 44px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 5px 0 16px !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .search-pill-form:focus-within {
    border-color: #00A859 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.12) !important;
  }

  .search-pill-form input {
    font-size: 13.5px !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #0F172A !important;
    padding: 0 !important;
    font-weight: 500 !important;
  }

  .search-pill-form input::placeholder {
    color: #64748B !important;
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  .search-submit-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00A859 0%, #008F41 100%) !important;
    border: none !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 168, 89, 0.3) !important;
    transition: transform 0.15s ease !important;
  }

  .search-submit-btn:active {
    transform: scale(0.92) !important;
  }

  /* Secondary Category Horizontal Swipe Nav Bar - Completely Removed on Mobile */
  .category-nav-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE OFFCANVAS NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: #FFFFFF;
  z-index: 10002;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  background: linear-gradient(135deg, #0A5C36 0%, #00875A 100%);
  color: #FFFFFF;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
}

.mobile-user-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #FFFFFF;
}

.mobile-user-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 6px;
}

.mobile-qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  text-decoration: none;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}

.mobile-qa-icon {
  font-size: 18px;
}

.mobile-qa-badge {
  font-size: 9px;
  font-weight: 700;
  background: #00A86B;
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 8px;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.mobile-menu-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94A3B8;
  margin: 16px 0 8px 8px;
}

.mobile-menu-section-title:first-child {
  margin-top: 0;
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1E293B;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.mobile-link-item:hover,
.mobile-link-item.active {
  background: #E8F8F0;
  color: #00A86B;
  font-weight: 600;
}

.mobile-pill-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 10px;
}

.mobile-pill-badge-hot {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: #FF5E3A;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 8px;
}

.mobile-pill-badge-green {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: #00A86B;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 10px;
}

.mobile-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mobile-drawer-footer {
  padding: 14px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.mobile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #FEF2F2;
  color: #EF4444;
  border: 1px solid #FEE2E2;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. FIXED MOBILE BOTTOM APP NAVIGATION BAR (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .mobile-bottom-app-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid #E2E8F0 !important;
    z-index: 9998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  .mobile-bar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    text-decoration: none !important;
    color: #64748B !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    width: 20% !important;
    height: 100% !important;
    transition: all 0.15s ease !important;
    position: relative !important;
  }

  .mobile-bar-item svg {
    stroke-width: 2 !important;
    transition: transform 0.15s ease !important;
  }

  .mobile-bar-item.active {
    color: #00A86B !important;
    font-weight: 700 !important;
  }

  .mobile-bar-item.active svg {
    stroke: #00A86B !important;
    transform: translateY(-2px) !important;
  }

  .mobile-fire-icon {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .mobile-bar-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: #EF4444 !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   5. DASHBOARD PAGES MOBILE HORIZONTAL SUB-NAV STRIP
   Applies to profile, orders, wishlist, reviews, addresses, payments, wallet, coupons, help
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .profile-container,
  .orders-container,
  .wishlist-container,
  .coupons-container,
  .help-container,
  .reviews-container,
  .addresses-container,
  .payments-container,
  .wallet-container {
    flex-direction: column !important;
    gap: 14px !important;
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .profile-sidebar,
  .orders-sidebar,
  .wishlist-sidebar,
  .coupons-sidebar,
  .help-sidebar,
  .reviews-sidebar,
  .addresses-sidebar,
  .payments-sidebar,
  .wallet-sidebar {
    width: 100% !important;
    position: static !important;
    margin-bottom: 0 !important;
  }

  /* Compact User Card on mobile */
  .sidebar-user-card {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    padding: 12px 14px !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }

  .sidebar-avatar-wrap {
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .sidebar-verified-badge {
    width: 18px !important;
    height: 18px !important;
  }

  .sidebar-user-name {
    font-size: 15px !important;
    margin: 0 0 2px !important;
  }

  .sidebar-user-email {
    font-size: 12px !important;
    margin: 0 0 4px !important;
  }

  .sidebar-edit-link {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  /* Horizontal Swipeable Sub-Nav Pill Strip */
  .sidebar-nav-menu {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    margin: 0 0 14px 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar-nav-menu::-webkit-scrollbar {
    display: none !important;
  }

  .nav-menu-item {
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .nav-menu-link {
    padding: 7px 14px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #475569 !important;
    border-left: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .nav-menu-item.active .nav-menu-link,
  .nav-menu-link.active {
    background: #00A86B !important;
    color: #FFFFFF !important;
    border-color: #00A86B !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
  }

  .nav-menu-item.active .nav-menu-link .nav-link-icon,
  .nav-menu-link.active .nav-link-icon {
    stroke: #FFFFFF !important;
  }

  .nav-badge-pill,
  .nav-badge-pill-green {
    font-size: 10px !important;
    padding: 1px 6px !important;
  }

  .nav-menu-item.active .nav-badge-pill {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
  }

  /* Hide refer promo card on mobile to save vertical scrolling */
  .sidebar-refer-card {
    display: none !important;
  }

  /* Main content full width */
  .profile-main-content,
  .orders-main-content,
  .wishlist-main-content,
  .coupons-main-content,
  .help-main-content,
  .reviews-main-content,
  .addresses-main-content,
  .payments-main-content,
  .wallet-main-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* KPI Grids 2 columns */
  .profile-kpi-grid,
  .orders-kpi-grid,
  .wallet-kpi-grid,
  .coupons-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .profile-hero-card {
    padding: 20px 16px !important;
  }

  .profile-hero-content h1 {
    font-size: 18px !important;
  }
}

/* --------------------------------------------------------------------------
   6. 2-COLUMN PRODUCT GRIDS (HOME, SEARCH, TRENDING)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .product-cards-row,
  .products-grid,
  .product-grid,
  .trending-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card,
  .trending-card {
    border-radius: 10px !important;
  }

  .card-media-box,
  .trending-card-media {
    aspect-ratio: 1 / 1 !important;
  }

  .card-content,
  .trending-card-body {
    padding: 10px !important;
  }

  .card-title,
  .trending-card-title {
    font-size: 12px !important;
    line-height: 1.35 !important;
    height: 32px !important;
    margin-bottom: 6px !important;
  }

  .price-current {
    font-size: 15px !important;
  }

  .price-old {
    font-size: 11px !important;
  }

  .btn-add-cart {
    height: 32px !important;
    font-size: 11px !important;
    padding: 0 6px !important;
  }

  .btn-quick-view {
    width: 32px !important;
    height: 32px !important;
  }

  /* Trending banner on mobile */
  .trending-hero-banner {
    padding: 22px 16px !important;
    border-radius: 12px !important;
  }

  .trending-hero-title {
    font-size: 20px !important;
  }

  .trending-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .metric-pill-card {
    padding: 8px 10px !important;
  }

  .metric-pill-val {
    font-size: 13px !important;
  }

  .metric-pill-label {
    font-size: 10px !important;
  }

  /* Search page category pills */
  .category-pills-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   7. PRODUCT DETAIL PAGE MOBILE OPTIMIZATION
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .p-gallery-col {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .p-thumbs-vertical {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: none !important;
    width: 100% !important;
    padding-bottom: 4px !important;
  }

  .p-thumb-btn {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }

  .p-main-stage {
    aspect-ratio: 1 / 1 !important;
  }
}

/* --------------------------------------------------------------------------
   8. CART & CHECKOUT PAGES MOBILE OPTIMIZATION
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .cart-page-header,
  .checkout-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   9. FOOTER MOBILE OPTIMIZATION
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .newsletter-section {
    padding: 20px 0 !important;
  }

  .newsletter-card {
    padding: 20px 16px !important;
  }

  .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .newsletter-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .footer-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 14px !important;
    padding: 28px 14px !important;
  }

  .brand-col {
    grid-column: span 2 !important;
    margin-bottom: 4px !important;
  }

  .footer-logo img {
    width: 140px !important;
  }

  .footer-about {
    font-size: 12px !important;
    margin: 8px 0 14px !important;
  }

  .footer-heading {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }

  .footer-links li {
    margin-bottom: 6px !important;
  }

  .footer-links a {
    font-size: 12px !important;
  }

  .footer-bottom-inner {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 14px 0 !important;
  }

  .footer-selectors {
    justify-content: center !important;
  }
}
