/**
 * Responsive Mobile & Tablet Styles
 * Indian Pet Supplies & Pet Care
 */

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--primary-green);
}
.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 2100;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translateX(320px);
}
.mobile-drawer-header {
  padding: 16px 20px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--warm-cream);
}
.mobile-drawer-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
}
.mobile-drawer-menu {
  list-style: none;
  padding: 14px 0;
}
.mobile-drawer-link {
  display: block;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dark-text);
  border-bottom: 1px solid var(--soft-bg);
}
.mobile-drawer-link:hover {
  background-color: var(--warm-cream);
  color: var(--primary-green);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--light-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 1500;
  padding: 6px 0;
}
.bottom-bar-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-bar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-text);
  position: relative;
  padding: 4px;
}
.bottom-bar-link.active, .bottom-bar-link:hover {
  color: var(--primary-green);
}
.bottom-bar-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-bottom: 2px;
}
.bottom-bar-link .badge-count {
  position: absolute;
  top: 0;
  right: 6px;
  background-color: var(--coral);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breakpoint 1024px (Tablets / Laptops) */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .pet-avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Breakpoint 768px (Mobile & Portrait Tablets) */
@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for bottom nav bar */
  }
  .mobile-menu-toggle {
    display: block;
  }
  .site-nav {
    display: none; /* Collapsed into mobile drawer */
  }
  .mobile-bottom-bar {
    display: block;
  }
  .pincode-picker {
    display: none; /* Moved into drawer or banner */
  }
  .header-main {
    padding: 10px 0;
    gap: 10px;
  }
  .brand-logo .logo-title {
    font-size: 16px;
  }
  .search-container {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
  .header-actions {
    gap: 10px;
  }
  .header-main {
    flex-wrap: wrap;
  }
  .hero-card {
    flex-direction: column;
    min-height: auto;
  }
  .hero-content {
    padding: 30px 20px;
    text-align: center;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-image {
    height: 240px;
    padding: 0 20px 20px;
  }
  .pet-avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .pet-avatar-card {
    padding: 10px 6px;
  }
  .pet-avatar-icon {
    width: 48px;
    height: 48px;
  }
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-media {
    padding: 8px;
  }
  .card-body {
    padding: 10px;
  }
  .card-title {
    font-size: 13px;
    height: 34px;
  }
  .price-current {
    font-size: 15px;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none; /* Handled via modal or toggle on mobile */
  }
  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* Breakpoint 480px (Small Mobile) */
@media (max-width: 480px) {
  .pet-avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}
