/* ===================================================================
   Pagadala Delites - Responsive Layouts & Mobile Navigation
=================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image-card img {
    height: 380px;
  }

  .categories-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promos-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-modal {
    grid-template-columns: 1fr 1.15fr;
    max-width: 800px;
    width: 92%;
    max-height: 88vh;
  }

  .modal-image-col {
    height: 100%;
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .product-modal {
    grid-template-columns: 1fr !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: 95% !important;
    border-radius: 16px !important;
  }

  .modal-image-col {
    height: 220px !important;
    min-height: 220px !important;
  }

  .modal-info-col {
    padding: 1.5rem 1.25rem 2rem !important;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  .nav-wrapper {
    height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2100;
    overflow-y: auto;
    display: flex;
    visibility: hidden;
    transform: translateX(0);
  }

  .main-nav.mobile-active {
    left: 0;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    border-bottom: 1px solid var(--cream-border);
    padding: 0.6rem 0;
    color: var(--primary-dark);
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .btn-header-wa {
    display: none; /* Show icon or compact button on mobile to save header space */
  }

  .hero-section {
    padding: 3rem 0 3.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-whatsapp-hero {
    width: 100%;
    justify-content: center;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-badges-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.25rem 0.75rem;
  }

  .category-icon-box {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .category-card h3 {
    font-size: 1rem;
  }

  .promo-card {
    grid-template-columns: 1fr;
  }

  .promo-img-wrap {
    height: 180px;
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .shop-controls-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-box {
    width: 100%;
  }
/* Ultra-Small Phones (iPhone SE, Galaxy Fold, 320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-wrapper {
    height: 64px;
  }

  .brand-logo .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .brand-name {
    font-size: 1.15rem !important;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-primary {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .cart-toggle-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .auth-container-card {
    padding: 1.5rem 1rem !important;
    margin: 1rem auto !important;
    border-radius: var(--radius-md) !important;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .categories-grid {
    grid-template-columns: 1fr !important;
  }

  .shop-controls-bar {
    padding: 0.75rem 0 !important;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill {
    white-space: nowrap;
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
  }

  .dietary-toggle-group {
    width: 100%;
    justify-content: center;
  }

  .product-modal h3, .product-modal .modal-title {
    font-size: 1.25rem !important;
  }

/* Mobile Bottom Sticky Dock Bar (576px and under) */
@media (max-width: 576px) {
  body {
    padding-bottom: 65px; /* Leave space so bottom dock never covers content */
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    border-top: 1px solid var(--cream-border);
    box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
  }

  .bottom-nav-item i {
    font-size: 1.15rem;
  }

  .bottom-nav-item.active {
    color: var(--caramel);
  }

  .bottom-cart-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: var(--caramel);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


