/* ==========================================================================
   BATHHUB - RESPONSIVE STYLES & MEDIA QUERIES
   ========================================================================== */

/* --- TABLET & SMALL DESKTOPS (<= 1199px) --- */
@media (max-width: 1199px) {
  .series-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

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

/* --- TABLETS (<= 991px) --- */
@media (max-width: 991px) {
  .section-padding {
    padding: 4.5rem 0;
  }

  /* Hero adjustments */
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 3rem !important;
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-showcase {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  /* Series Grid */
  .series-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  /* Process Timeline (Converts to 2x2 or vertical) */
  .timeline-line {
    display: none;
  }

  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

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

  /* Products page layout */
  .products-layout {
    grid-template-columns: 1fr !important;
  }

  .filter-sidebar {
    position: static !important;
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .filter-accordion-toggle {
    display: flex !important;
  }

  .filter-body {
    display: none;
  }

  .filter-body.active {
    display: block;
  }
}

/* --- MOBILE PHONES (<= 767px) --- */
@media (max-width: 767px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.35rem; }

  /* Series Grid */
  .series-grid {
    grid-template-columns: 1fr;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0.75rem;
  }

  .stat-number {
    font-size: 2.3rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-item::after {
    display: none !important;
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
  }

  /* Timeline */
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* CTA actions */
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Modal */
  .modal-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* --- SMALL MOBILE (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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

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

  .stat-item {
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding-bottom: 1rem;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}
