/* =============================================================================
   AROMA SIGNATURE+ — RESPONSIVE MEDIA QUERIES
   ============================================================================= */

/* ─── 1440px+ (Ultra Wide Desktop) ────────────────────────────────────────── */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

/* ─── 1200px (Desktop standard) ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .desktop-nav {
    gap: 1.5rem;
  }

  .search-container {
    width: 220px;
  }

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

  .carousel-btn-prev {
    left: 10px;
  }
  .carousel-btn-next {
    right: 10px;
  }

  .product-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
  }

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

/* ─── 1024px (Tablet Landscape / Small Laptops) ────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --header-height: 100px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .shop-layout-container {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  .filter-mobile-bar {
    display: flex;
  }

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

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

  .hero-banner {
    min-height: auto;
    background-color: #F4ECE4;
  }

  .hero-slides-wrap {
    min-height: 420px;
    max-height: 540px;
  }

  .hero-banner-img-wrap img {
    max-height: 540px;
  }

  .carousel-slide-img {
    max-height: 420px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─── 768px (Tablet Portrait & Mobile) ────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --announcement-height: 34px;
    --header-height: 88px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .announcement-bar {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .search-container {
    width: 180px;
  }

  .search-input {
    height: 38px;
    font-size: 0.8rem;
  }

  .header-logo img {
    height: 65px;
  }

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

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

  /* CRITICAL MOBILE REQUIREMENT: ONE PRODUCT PER ROW */
  .product-grid-4,
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .product-card-body {
    padding: 1.2rem;
  }

  .product-title {
    font-size: 1.2rem;
  }

  /* Hero Mobile */
  .hero-banner {
    min-height: auto;
    background-color: #F4ECE4;
  }

  .hero-slides-wrap {
    min-height: 280px;
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }

  .hero-banner-img-wrap img {
    max-height: 420px;
    object-fit: cover;
    object-position: center right;
  }

  .hero-banner-overlay {
    background: linear-gradient(180deg, rgba(20, 61, 12, 0.75) 0%, rgba(20, 61, 12, 0.3) 50%, rgba(20, 61, 12, 0.9) 100%);
    pointer-events: none;
  }

  .hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  /* Benefits 2 x 2 Grid on Mobile */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .benefit-card {
    padding: 1.5rem 1rem;
  }

  .benefit-icon-wrap {
    width: 56px;
    height: 56px;
  }

  .benefit-name {
    font-size: 1.1rem;
  }

  /* Carousel Mobile */
  .carousel-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .carousel-slide-img {
    max-height: 320px;
  }

  .carousel-nav-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-btn-prev {
    left: 5px;
  }

  .carousel-btn-next {
    right: 5px;
  }

  /* Phase 5 Product Detail Mobile */
  .product-control-group .pack-option-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.65rem 0.8rem;
  }

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

  /* Phase 6 Checkout Form Mobile */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-modal-container {
    max-height: 96vh;
    border-radius: 14px;
  }

  .checkout-modal-header {
    padding: 1.1rem 1.2rem;
  }

  .checkout-modal-title {
    font-size: 1.5rem;
  }

  .checkout-modal-body {
    padding: 1.2rem;
  }

  /* Floating WhatsApp — icon only on mobile to avoid covering content */
  .whatsapp-float-widget {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float-link {
    padding: 0;
    border-radius: 50%;
    animation: floatPulse 3s ease-in-out infinite;
  }

  .whatsapp-float-icon {
    width: 54px;
    height: 54px;
    background-color: transparent;
  }

  /* Phase 7 Mobile Breakpoints */
  .before-after-grid,
  .reviews-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ba-images-container {
    aspect-ratio: 16 / 9;
  }

  .faq-accordion-header {
    font-size: 1.15rem;
    padding: 1.1rem 1.2rem;
  }

  .faq-accordion-content {
    padding: 0 1.2rem 1.2rem;
  }

  /* Phase 8 Social Cards Breakpoint */
  .social-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* ─── 430px (iPhone 14/15 Pro Max / Large Mobile) ─────────────────────────── */
@media (max-width: 430px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .search-container {
    width: 140px;
  }

  .search-input {
    padding-left: 0.8rem;
    padding-right: 2.2rem;
  }

  .carousel-slide-img {
    max-height: 280px;
  }
}

/* ─── 390px (iPhone 12/13/14 / Standard Mobile) ───────────────────────────── */
@media (max-width: 390px) {
  .header-logo img {
    height: 36px;
  }

  .search-container {
    width: 125px;
  }

  .current-price {
    font-size: 1.15rem;
  }

  .hero-banner {
    min-height: auto;
  }

  .hero-slides-wrap {
    min-height: 250px;
    max-height: 340px;
  }

  .hero-banner-img-wrap img {
    max-height: 340px;
  }

  .carousel-slide-img {
    max-height: 250px;
  }
}

/* ─── 360px (Compact Android / Small Mobile) ──────────────────────────────── */
@media (max-width: 360px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .search-container {
    width: 110px;
  }

  .benefits-grid {
    gap: 0.75rem;
  }

  .carousel-slide-img {
    max-height: 220px;
  }
}
