/* ==========================================================================
   TSA FRAGRANCES - RESPONSIVE & MOBILE STYLESHEET
   ========================================================================== */

/* Prevent horizontal overflow on small screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. TABLET / COMPACT LAPTOP BREAKPOINT (max-width: 1024px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Header: switch to mobile drawer & show 3-line hamburger icon */
  .mobile-menu-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 9px !important;
    background: #ffffff !important;
    border: 1px solid rgba(58, 13, 20, 0.2) !important;
    border-radius: 8px !important;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    background-color: #161213 !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
  }

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

  .nav-right .nav-links {
    display: none !important;
  }

  .header-inner,
  .header-container {
    height: 68px;
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .header-right {
    gap: 1rem;
  }

  .header-actions {
    gap: 1rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

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

  .hero-copy {
    max-width: 580px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin-top: 3rem;
  }

  /* Collections */
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Featured Fragrances */
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* Our Story */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  /* Promo Banner */
  .promo-inner {
    gap: 2rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-col:first-child {
    grid-column: span 2;
  }

  /* Shop Layout & Grids */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .shop-sidebar .sidebar-widget {
    margin-bottom: 0;
    padding: 1rem 1.25rem;
  }

  .shop-sidebar .sidebar-widget:nth-child(2) {
    display: none;
  }

  .shop-sidebar .widget-title {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
  }

  .shop-sidebar .widget-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-sidebar .widget-list::-webkit-scrollbar {
    display: none;
  }

  .shop-sidebar .widget-list li {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .shop-sidebar .widget-list a {
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border-subtle, #eadfce);
    border-radius: 999px;
    font-size: 0.8rem;
    gap: 0.35rem;
    background: #fcfaf6;
  }

  .shop-sidebar .widget-list li.active a {
    background: var(--wine-900, #3A0D14);
    color: var(--gold-light, #e5c687);
    border-color: var(--wine-900, #3A0D14);
  }

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

  /* Product Single & Checkout */
  .product-single-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }

  .product-gallery img {
    max-height: 420px;
  }

  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }

  .checkout-summary-card,
  .cart-summary-box {
    position: static !important;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }

  .shop-layout > *,
  .product-single-grid > *,
  .checkout-grid > *,
  .container [style*="grid-template-columns"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. MOBILE BREAKPOINT (max-width: 768px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .page-banner {
    padding: 2rem 0;
  }

  .page-banner h1 {
    font-size: 1.75rem;
  }

  /* Announcement bar */
  .announcement-bar {
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.6px;
  }

  .announcement-bullet {
    margin: 0 0.4rem;
  }

  /* Header */
  .header-main,
  .site-header {
    min-height: 64px;
  }

  .header-inner,
  .header-container {
    min-height: 64px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .brand-logo-wrap .brand-name {
    font-size: 1.55rem;
    letter-spacing: 2px;
  }

  .brand-logo-wrap .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 3px;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    padding: 3.25rem 0 2.5rem;
  }

  .hero-bg {
    object-position: center center;
  }

  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(252, 250, 246, 0.32) 0%,
      rgba(252, 250, 246, 0.16) 45%,
      rgba(252, 250, 246, 0.38) 100%
    );
    pointer-events: none;
  }

  .hero-copy {
    opacity: 0.94;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
    color: rgba(22, 18, 19, 0.88);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.7);
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    color: rgba(59, 51, 53, 0.82);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-actions .btn-link {
    text-align: center;
    justify-content: center;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
    padding: 1.25rem;
    margin-top: 2.5rem;
  }

  .hero-trust li {
    font-size: 0.8rem;
  }

  .hero-trust li i {
    font-size: 1.05rem;
  }

  .hero-trust li span small {
    font-size: 0.68rem;
  }

  /* Section Headings */
  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.95rem;
  }

  /* Collections */
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .collection-card {
    height: 220px;
  }

  .collection-body h3 {
    font-size: 1.45rem;
  }

  /* Featured Fragrances - 2 Columns on Mobile */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .p-card {
    border-radius: 4px;
  }

  .p-media {
    padding: 1rem 0.5rem;
  }

  .p-quick-add {
    opacity: 1;
    transform: translateY(0);
    padding: 0.55rem;
    font-size: 0.68rem;
    background: rgba(58, 13, 20, 0.92);
  }

  .p-info {
    padding: 0.85rem 0.65rem 1rem;
  }

  .p-brand {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
  }

  .p-name {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    min-height: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .p-price {
    font-size: 0.88rem;
  }

  /* Our Story */
  .story-title {
    font-size: 2.15rem;
  }

  .story-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  .story-badge {
    bottom: -15px;
    right: 15px;
    padding: 0.75rem 1.25rem;
  }

  .story-badge span {
    font-size: 1.45rem;
  }

  /* Oud Promo Banner */
  .promo {
    padding: 3rem 0;
  }

  .promo-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .promo-figure {
    font-size: 3.5rem;
    line-height: 1;
  }

  .promo-rule {
    display: none;
  }

  .promo-copy h3 {
    font-size: 1.45rem;
  }

  .promo-copy p {
    font-size: 0.9rem;
  }

  .promo .btn-ivory {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Testimonials */
  .t-arrow {
    display: none !important;
  }

  .t-wrap {
    padding: 0;
    overflow: hidden;
    max-width: 100%;
    display: block;
  }

  .t-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .t-track::-webkit-scrollbar {
    display: none;
  }

  .t-card {
    flex: 0 0 82%;
    min-width: 82%;
    scroll-snap-align: center;
    padding: 1.75rem 1.4rem;
  }

  .t-card blockquote {
    font-size: 0.95rem;
  }

  /* Newsletter Strip */
  .newsletter {
    padding: 3.5rem 0;
  }

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .newsletter-copy h3 {
    font-size: 1.75rem;
  }

  .newsletter-copy p {
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
    padding: 1.5rem 0;
  }

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

  /* Cart Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  /* WhatsApp Concierge Button */
  .whatsapp-concierge {
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  /* Search Modal */
  .search-results-grid {
    grid-template-columns: 1fr;
    max-height: 350px;
  }

  .site-logo {
    height: 40px;
    width: 40px;
    max-height: 40px;
    max-width: 40px;
  }

  /* Shop Toolbar & 2-Column Product Grid on Mobile */
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .shop-toolbar form {
    width: 100%;
    justify-content: space-between;
  }

  .shop-toolbar .sort-select {
    flex: 1;
  }

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

  .product-card {
    border-radius: 6px;
  }

  .product-thumb {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    padding-top: 100%;
    aspect-ratio: 1 / 1;
    min-height: 155px;
  }

  .product-thumb img {
    padding: 0.75rem;
  }

  .product-details {
    padding: 0.65rem 0.65rem 0.9rem;
  }

  .product-brand {
    font-size: 0.62rem;
    letter-spacing: 1.2px;
  }

  .product-title {
    font-size: 0.85rem;
    line-height: 1.28;
    min-height: 2.2rem;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
  }

  .btn-card-action {
    padding: 0.55rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Single Product Page */
  .product-gallery {
    padding: 1.25rem !important;
  }

  .product-gallery img {
    max-height: 300px;
  }

  .product-summary {
    padding: 1.25rem !important;
  }

  .product-summary h1 {
    font-size: 1.55rem !important;
  }

  .summary-price {
    font-size: 1.45rem;
  }

  /* Checkout, Cart & Order Confirmation */
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }

  .form-row-2 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .checkout-card,
  .checkout-section-card,
  .checkout-summary-card,
  .cart-summary-box,
  .order-confirm-card {
    padding: 1.25rem 1rem !important;
    position: static !important;
  }

  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  .cart-table {
    min-width: 540px;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  /* Prevent grid blowout and stack all inline multi-column grids on mobile */
  .shop-layout > *,
  .product-single-grid > *,
  .checkout-grid > *,
  .contact-grid > *,
  .container [style*="grid-template-columns"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .container [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. SMALL MOBILE BREAKPOINT (max-width: 420px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .story-values {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-grid,
  .products-grid {
    gap: 0.6rem;
  }

  .p-info,
  .product-details {
    padding: 0.65rem 0.5rem 0.85rem;
  }

  .p-name,
  .product-title {
    font-size: 0.8rem;
  }

  .p-price,
  .product-price {
    font-size: 0.82rem;
  }

  .t-card {
    flex: 0 0 90%;
    min-width: 90%;
  }
}
