/* ============================================================
   RESPONSIVE DESIGN
   Breakpoints: 1280, 1024, 768, 480
   ============================================================ */

/* ---- Large Desktop (1280+): handled by base styles ---- */

/* ---- Medium Desktop / Laptop ---- */
@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-slider { grid-template-columns: repeat(2, 1fr); }
  .faq-section { grid-template-columns: 1fr 320px; }
}

/* ---- Tablet Landscape ---- */
@media (max-width: 1024px) {
  :root {
    --container-pad: 1.5rem;
  }

  /* Header */
  .primary-nav { display: none; }
  .state-selector { display: none; }
  .menu-toggle { display: flex; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid  { grid-template-columns: repeat(2, 1fr); }
  .video-tiles { grid-template-columns: repeat(2, 1fr); }
  .support-strip { grid-template-columns: 1fr; gap: var(--space-8); }

  /* With sidebar */
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  /* FAQ */
  .faq-section { grid-template-columns: 1fr; }
  .faq-image { display: none; }

  /* Product grid */
  .product-grid { grid-template-columns: repeat(3, 1fr); }

  /* Category */
  .category-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Tablet Portrait ---- */
@media (max-width: 768px) {
  :root {
    --container-pad: 1rem;
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
    --space-32: 5rem;
  }

  /* Header */
  .header-inner { height: 56px; }

  /* Hero */
  .hero { padding-block: var(--space-16) var(--space-12); }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  .hero-benefits { gap: var(--space-3); }
  .benefit-chip { font-size: 10px; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter__form { flex-direction: column; }
  .footer-newsletter__input { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card-grid { grid-template-columns: repeat(2, 1fr); }
  .category-strip { gap: var(--space-4); }
  .category-chip__icon { width: 64px; height: 64px; }

  /* Reviews */
  .reviews-slider { grid-template-columns: 1fr; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .video-tiles { grid-template-columns: 1fr; }

  /* Rewards */
  .rewards-banner__body { padding: var(--space-8); }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; }

  /* Mood tabs */
  .mood-tab-btn { font-size: var(--fs-xs); padding: var(--space-2) var(--space-3); }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  :root {
    --container-pad: .875rem;
    --space-24: 3rem;
    --space-16: 2rem;
  }

  .hero__title { letter-spacing: -.02em; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-card__body { padding: var(--space-3); }
  .product-card__title { font-size: var(--fs-sm); }

  .category-card-grid { grid-template-columns: repeat(2, 1fr); }
  .category-strip { gap: var(--space-3); }

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

  .section-header__title { font-size: var(--fs-2xl); }

  .modal { padding: var(--space-5); }
  .rewards-banner__body { padding: var(--space-6); }

  /* Benefit chips — horizontal scroll */
  .hero-benefits {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-3);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-benefits::-webkit-scrollbar { display: none; }
  .benefit-chip { flex-shrink: 0; }

  /* Category chips — horizontal scroll */
  .category-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-3);
    scrollbar-width: none;
  }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-chip { flex-shrink: 0; }

  /* Mood tabs scroll */
  .mood-tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mood-tabs__nav::-webkit-scrollbar { display: none; }
  .mood-tab-btn { flex-shrink: 0; }

  .support-strip { padding: var(--space-6); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .age-gate,
  .toast-container { display: none !important; }
  body { background: white; color: black; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HIGH CONTRAST / DARK MODE SUPPORT
   ============================================================ */
@media (prefers-color-scheme: light) {
  /* Theme is intentionally dark — keep as-is but allow override via class */
}

/* ============================================================
   ADDITIONAL RESPONSIVE — Shop + Single Product (v1.1)
   ============================================================ */
@media (max-width: 1024px) {
	.shop-layout { grid-template-columns: 1fr !important; }
	.shop-sidebar { display: none; }
	.shop-sidebar.open { display: block; }
}
@media (max-width: 768px) {
	.nf-product-layout { grid-template-columns: 1fr !important; }
	.nf-cart-layout    { grid-template-columns: 1fr !important; }
	.nf-checkout-fields + .nf-checkout-summary { margin-top: 2rem; }
	.woocommerce-checkout form.checkout { display: block !important; }
}
