/* ========================================
   Novolene — Responsive Breakpoints
   ======================================== */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --text-hero: clamp(2rem, 5vw, 3.5rem);
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .hero-content {
    padding: 0 var(--space-md);
  }

  .hero-stats {
    gap: var(--space-xl);
  }
}

/* ── Mobile Large (max-width: 768px) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--text-xl);
  }

  .menu-toggle {
    display: flex;
  }

  /* Grid */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
    min-height: 85vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-stat {
    flex-direction: row;
    gap: var(--space-md);
  }

  /* Section headers */
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  /* Product grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  /* Cart drawer */
  .cart-drawer {
    width: 100vw;
  }

  /* How it works */
  .steps-container {
    flex-direction: column;
  }

  .step-connector {
    display: none;
  }

  /* Bundle section */
  .bundle-content {
    flex-direction: column;
  }

  .bundle-image {
    order: -1;
  }

  /* Testimonials */
  .testimonials-scroll {
    gap: var(--space-md);
  }

  /* Toast */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ── Mobile Small (max-width: 480px) ── */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-info {
    padding: var(--space-md);
  }

  .section-badge {
    font-size: var(--text-xs);
    padding: 6px 14px;
  }

  .btn-lg {
    padding: 16px 28px;
    font-size: var(--text-base);
  }

  .popup {
    padding: var(--space-xl);
    margin: var(--space-md);
  }

  .popup h3 {
    font-size: var(--text-xl);
  }

  /* Quiz */
  .quiz-option {
    padding: var(--space-md);
  }
}

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}
