/* ════════════════════════════════════════════
   REZA AUDIO — iPhone / Mobile optimisation
   Loaded AFTER each page's inline <style> so
   these rules win at equal specificity.
   Breakpoints:
     ≤768px  tablet / large phones landscape
     ≤600px  existing phone breakpoint (refined here)
     ≤480px  iPhone portrait (390/414/430)
     ≤375px  small iPhone (SE / mini)
   ════════════════════════════════════════════ */

/* Global iOS niceties */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
* { -webkit-tap-highlight-color: rgba(255,106,0,0.18); }
img, video { max-width: 100%; height: auto; }

/* Kill sticky :hover on touch devices */
@media (hover: none) {
  .btn-cta:hover { background: var(--orange); transform: none; }
  .btn-ghost:hover { border-color: var(--border); color: var(--muted); }
  .hero-product-img:hover,
  .prod-card:hover,
  .product-card:hover,
  .cat-card:hover,
  .kit-card:hover,
  .g-card:hover { transform: none; box-shadow: none; }
}

/* ─── ≤768px ─── */
@media (max-width: 768px) {
  body::before { opacity: 0.018; }            /* lighter grain for perf */

  /* Navbar */
  .header { padding: 0 1rem; gap: 0; }
  .header-nav { display: none !important; }
  .header-actions { display: none !important; }
  .hamburger { display: flex !important; }

  /* Sticky breadcrumb */
  .breadcrumb { padding: 0 1rem; font-size: 0.62rem; }

  /* Page hero on shop pages — never 120vh on phones */
  .page-hero { min-height: 38vh !important; padding: 4.5rem 1rem 2.5rem !important; }
  .page-title { font-size: clamp(3rem, 14vw, 5.5rem); }

  /* Product hero stacks (already in some pages, normalise) */
  .prod-hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .prod-hero-info { padding: 3rem 1.2rem !important; order: 1; }
  .prod-hero-img-panel { padding: 2.5rem 1.2rem !important; order: 2; border-bottom: none; }
  .prod-hero-cover { max-width: 320px; margin: 0 auto; }

  /* Kit / content grids */
  .kit-cards { grid-template-columns: 1fr !important; }
  .content-grid { grid-template-columns: 1fr !important; }
  .guarantee-cards { grid-template-columns: 1fr !important; }

  /* Section paddings */
  .inside-sec, .value-sec, .final-cta, .compat-sec, .guarantee-sec,
  .bundles-showcase, .about, .testimonials, .audio-sec, .video-sec, .faq-sec,
  .footer { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ─── ≤600px ─── refine homepage / shop / product ─── */
@media (max-width: 600px) {
  /* Homepage hero strip */
  .hero { padding: 80px 1rem 3rem !important; }
  .hero-brand-strip { gap: 0.9rem; }
  .hero-wave { height: 36px; gap: 4px; }
  .hero-wave-bar { width: 3px; }
  .hero-title, .brand-title {
    font-size: clamp(2.6rem, 13vw, 4.2rem) !important;
    line-height: 0.9 !important;
  }
  .hero-sub, .hero-desc { font-size: 0.72rem; line-height: 1.85; }

  /* Offer block stacks */
  .hero-offer-block { grid-template-columns: 1fr !important; gap: 2rem; padding-top: 2rem; }

  /* CTA buttons full-width feel + bigger touch target */
  .btn-cta, .btn-ghost {
    padding: 1rem 1.4rem;
    font-size: 0.78rem;
    min-height: 48px;
  }

  /* Product detail title */
  .prod-hero-title { font-size: clamp(2.6rem, 11vw, 4.2rem) !important; line-height: 0.92; }
  .prod-hero-desc { font-size: 0.72rem; }
  .prod-hero-chips, .prod-hero-tags { flex-wrap: wrap; gap: 0.4rem; }
  .prod-chip, .prod-tag { font-size: 0.6rem; padding: 0.35rem 0.7rem; }

  /* Price block */
  .prod-price-row { flex-wrap: wrap; gap: 0.6rem 1rem; align-items: baseline; }
  .prod-price-now { font-size: 2.4rem !important; }
  .prod-price-was { font-size: 1rem; }
  .prod-save-badge { font-size: 0.6rem; padding: 0.3rem 0.55rem; }

  /* CTA stack */
  .prod-hero-ctas { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .prod-hero-ctas .btn-cta,
  .prod-hero-ctas .btn-ghost { width: 100%; justify-content: center; }

  /* Listen-box pill */
  .sec-divider { padding: 0 1rem; }
  .listen-box { font-size: 0.6rem; padding: 0.7rem 1rem; gap: 0.6rem; }

  /* Section eyebrows / titles */
  .sec-eyebrow { font-size: 0.6rem; }
  .sec-title, .inside-title, .final-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem) !important;
    line-height: 0.94;
  }

  /* Kit cards */
  .kit-card { padding: 1.6rem 1.3rem; }
  .kit-num { font-size: 4rem; }
  .kit-title { font-size: 1.6rem; }
  .kit-list li { font-size: 0.7rem; }

  /* Content blocks (single-kit pages) */
  .content-block { padding: 1.6rem 1.3rem; }
  .cb-count { font-size: 5rem; }
  .cb-label { font-size: 0.62rem; }
  .cb-list li { font-size: 0.7rem; }

  /* Value table — keep readable, allow horizontal scroll if very narrow */
  .value-table { font-size: 0.72rem; }
  .value-table td, .value-table th { padding: 0.7rem 0.5rem; }

  /* Compatibility pills wrap */
  .compat-pills { gap: 0.4rem; }
  .compat-pill { font-size: 0.6rem; padding: 0.45rem 0.8rem; }

  /* Guarantee cards */
  .g-card { padding: 1.6rem 1.3rem; }
  .g-card h3 { font-size: 1rem; }
  .g-card p { font-size: 0.7rem; }

  /* Final CTA */
  .final-price-inline { flex-wrap: wrap; gap: 0.5rem 0.9rem; justify-content: center; }
  .final-cta .btn-cta, .final-cta .btn-ghost { width: 100%; max-width: 320px; }

  /* Shop page carousel cards */
  .prod-card { flex: 0 0 calc(100% - 1rem) !important; }

  /* Products grid (shop pages) */
  .products-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .products-area { padding: 0 1rem 5rem !important; }

  /* Categories grid */
  .categories { grid-template-columns: 1fr !important; padding: 1.5rem 1rem !important; }

  /* Testimonials / about / FAQ */
  .test-grid { grid-template-columns: 1fr !important; }
  .about { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .faq-q { font-size: 0.82rem; }
  .faq-a { font-size: 0.72rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer { padding: 3rem 1rem 1.5rem !important; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }

  /* Free download form (Vol 1) */
  .free-form { flex-direction: column; }
  .free-form-input, .free-form-btn { width: 100%; }

  /* Cart panel full-width */
  .cart-panel { width: 100vw !important; }

  /* Mobile-nav links tighter */
  .mobile-nav a { font-size: 2.3rem !important; }
  .mobile-nav { gap: 1.3rem !important; padding: 1.5rem; }

  /* Discount/email card */
  .discount-card { grid-template-columns: 1fr !important; width: calc(100% - 1.6rem) !important; }
  .discount-right { display: none !important; }
  .discount-left { padding: 2rem 1.4rem !important; border-right: none !important; }
}

/* ─── ≤480px — iPhone portrait fine-tune ─── */
@media (max-width: 480px) {
  .header { height: 64px; }
  .breadcrumb { top: 64px !important; }

  .brand-title, .hero-title { font-size: clamp(2.4rem, 14vw, 3.6rem) !important; }
  .prod-hero-title { font-size: clamp(2.4rem, 12vw, 3.6rem) !important; }
  .prod-price-now { font-size: 2.1rem !important; }

  .kit-num { font-size: 3.4rem; }
  .cb-count { font-size: 4.2rem; }

  .listen-box span { display: inline-block; max-width: 60vw; }

  /* iOS safe-area padding for fixed footer-y stuff */
  .footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important; }
  .cart-panel { padding-bottom: env(safe-area-inset-bottom); }
}

/* ─── ≤375px — iPhone SE / mini ─── */
@media (max-width: 375px) {
  .header { padding: 0 0.8rem; }
  .hero { padding: 70px 0.8rem 2.5rem !important; }
  .hero-eyebrow { font-size: 0.58rem; letter-spacing: 0.22em; }
  .btn-cta, .btn-ghost { font-size: 0.72rem; padding: 0.95rem 1rem; letter-spacing: 0.15em; }
  .prod-price-now { font-size: 1.9rem !important; }
  .sec-title, .inside-title, .final-title { font-size: clamp(2rem, 10vw, 2.8rem) !important; }
}

/* ─── Landscape orientation, short height ─── */
@media (max-width: 900px) and (orientation: landscape) {
  .page-hero { min-height: 70vh !important; }
  .prod-hero-info, .prod-hero-img-panel { padding: 2.5rem 1.5rem !important; }
}
