/* ==========================================================================
   CouponCodeXYZ.in - Responsive Breakpoints & Mobile Drawer
   ========================================================================== */

/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* Mobile & Small Tablet (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .site-header .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border);
    transition: left 0.3s ease;
    z-index: 999;
  }

  .site-header .nav-menu.open {
    left: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  /* Coupon Card Stack on Mobile */
  .coupon-card {
    flex-direction: column;
  }

  .coupon-discount-side {
    width: 100%;
    border-right: none;
    border-bottom: 1px dashed var(--border);
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .coupon-discount-side .coupon-type-badge {
    margin-top: 0;
  }

  .coupon-details-side {
    padding: 1.25rem 1rem;
  }

  .coupon-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .btn-get-code, .btn-get-deal {
    width: 100%;
    justify-content: center;
  }

  .stores-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

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

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

  .footer-brand {
    grid-column: span 1;
  }

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

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .search-bar {
    padding: 0.35rem 0.5rem 0.35rem 1rem;
  }

  .search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}
