/* ==========================================================================
   Melody & Masterpiece Studios - Responsive Enhancements
   ========================================================================== */

.header-book-cta {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: var(--transition-fast);
}

@media (max-width: 1399.98px) {
  .header-nav-link {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.5rem !important;
  }
  .brand-logo-text {
    font-size: 1.15rem !important;
  }
  .header-book-cta {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 1199.98px) {
  .header-book-cta {
    padding: 0.38rem 0.8rem !important;
    font-size: 0.82rem !important;
  }
  .header-cart-pill {
    padding: 0.38rem 0.75rem !important;
  }
}

@media (max-width: 991.98px) {
  .hero-luxury-section {
    padding: 3.5rem 0 3rem;
    text-align: center;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead-title {
    font-size: 2.4rem;
  }

  .leadership-spotlight-box {
    padding: 2rem 1.5rem;
  }

  .cart-drawer, .offcanvas-luxury {
    width: 100% !important;
    max-width: 380px;
  }

  .navbar-brand-group {
    gap: 0.5rem;
  }

  .brand-logo-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .top-announcement-bar {
    font-size: 0.74rem;
    padding: 5px 0;
  }

  .hero-lead-title {
    font-size: 1.95rem;
  }

  .hero-subtext {
    font-size: 0.98rem;
  }

  .collection-pill-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  .pricing-amount {
    font-size: 2.1rem;
  }

  .footer-luxury {
    padding: 3rem 0 1.5rem;
  }

  .header-book-btn span {
    font-size: 0.78rem;
  }
}

@media (max-width: 575.98px) {
  .header-main-row {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .category-drawer-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .category-drawer-btn i {
    font-size: 1.25rem !important;
  }

  .navbar-brand-group {
    gap: 0.4rem !important;
  }

  .navbar-brand-group img {
    width: 34px !important;
    height: 34px !important;
  }

  .brand-logo-text {
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
  }
  
  .header-cart-pill {
    padding: 0.32rem 0.6rem !important;
    font-size: 0.8rem !important;
    gap: 0.3rem !important;
  }

  .header-cart-pill i {
    font-size: 1rem !important;
  }

  .header-cart-badge {
    min-width: 17px !important;
    height: 17px !important;
    font-size: 0.65rem !important;
  }

  .header-book-cta {
    padding: 0.32rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  .btn-gold, .btn-wine, .btn-outline-gold {
    padding: 0.6rem 1.15rem;
    font-size: 0.82rem;
  }

  .pillar-card {
    padding: 1.5rem 1.2rem;
  }
}

/* Global overflow-x prevention */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

header.main-header {
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}
