/* ==============================================
   RESPONSIVE SYSTEM - ESSENCE DE BONBON
   Structural overrides only
   Breakpoints:
   1200px -> small desktop
   900px  -> tablet
   600px  -> mobile
============================================== */


/* ==========================================
   <= 1200px - Small desktop adjustments
========================================== */

@media (max-width: 1200px) {

  /* Slight grid breathing for large tablets */
  .product-grid {
    gap: 36px;
  }

  .checkout-grid {
    gap: 40px;
  }

}


/* ==========================================
   <= 900px - Tablet / large mobile
========================================== */

@media (max-width: 900px) {

  /* ==============================
     Page Container
  ============================== */

  .page-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ==============================
     Header and Navigation
  ============================== */

  header {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 18px 0 16px;
  }

  .logo {
    min-width: 0;
  }

  .logo-wordmark {
    font-size: clamp(14px, 3.2vw, 24px);
    letter-spacing: .16em;
  }

  nav.primary-nav {
    display: none !important;
  }

  .menu-toggle {
    order: 3;
    display: inline-flex !important;
    align-items: center;
    margin-left: 12px;
  }

  .mobile-nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(201, 178, 124, .25);
  }

  .mobile-nav a {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .84;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .nav-cart {
    order: 2;
    margin-left: auto;
  }

  .cart-preview {
    display: none !important;
  }

  /* ==============================
     Hero
  ============================== */

  .hero {
    --hero-flow-2: 20px;
    --hero-flow-3: 30px;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--hero-flow-3);
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .hero-text {
    max-width: none;
  }

  .hero-image {
    text-align: center;
  }

  .hero-image img {
    width: min(82vw, 440px);
    max-width: 100%;
  }

  /* ==============================
     PRODUCT GRID
  ============================== */

  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ==============================
     COLLECTION GRID
  ============================== */

  .collection-grid {
    grid-template-columns: 1fr;
  }

  /* ==============================
     SIGNATURE PAGE
  ============================== */

  .signature-details {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* ==============================
     CART PAGE
  ============================== */

  .cart-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ==============================
     CHECKOUT
  ============================== */

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    margin-top: 40px;
  }

}


/* ==========================================
   <= 600px - Small mobile
========================================== */

@media (max-width: 600px) {

  .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ==============================
     Typography Scaling
  ============================== */

  .logo-wordmark {
    font-size: 18px;
    letter-spacing: .18em;
  }

  .hero {
    --hero-flow-1: 8px;
    --hero-flow-2: 16px;
    --hero-flow-3: 24px;
  }

  .hero-inner {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .shop-title {
    font-size: 2.4rem;
  }

  /* ==============================
     Button Width (targeted)
  ============================== */

  .signature-actions .btn,
  .checkout-actions .btn,
  .confirmation-actions .btn,
  .confirmation-actions .btn-text {
    width: 100%;
    text-align: center;
  }

  /* ==============================
     Cart Items
  ============================== */

  .cart-item {
    flex-direction: column;
    gap: 18px;
  }

  .cart-item-right {
    width: 100%;
    justify-content: space-between;
  }

  /* ==============================
     Checkout Summary Padding
  ============================== */

  .checkout-summary {
    padding: 32px 24px;
  }

  /* ==============================
     Footer
  ============================== */

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

}


/* ==========================================
   Motion Accessibility
========================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
