/* Real mobile responsiveness — light theme compatible */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* ——— Tablet / phone nav ——— */
@media (max-width: 992px) {
  .navbar {
    padding: 0.85rem 0 !important;
  }

  .nav-container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem !important;
    position: relative;
  }

  .nav-logo {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1003;
  }

  .brand-logo__mark {
    font-size: 1.45rem !important;
  }

  .brand-logo__sub {
    font-size: 0.52rem;
    letter-spacing: 0.32em;
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 1005;
  }

  .nav-cart__label {
    font-size: 0.72rem !important;
  }

  .nav-cart__icon {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    min-width: 42px !important;
    background: transparent;
    border: 0;
    z-index: 1006;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 0 auto;
  }

  .nav-menu {
    display: none !important;
    position: fixed !important;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    max-width: 100vw;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #000 !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0 !important;
    padding: 5.5rem 1.25rem 2rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 1002;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.95rem 0.15rem !important;
    font-size: 0.95rem !important;
  }

  .nav-menu a::after {
    display: none !important;
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 0 0.5rem !important;
    padding: 0 0 0.6rem 0.85rem !important;
    background: transparent !important;
    border: none !important;
    border-left: 2px solid rgba(85,255,81,0.4) !important;
    box-shadow: none !important;
  }

  .dropdown-menu a {
    padding: 0.5rem 0 !important;
    font-size: 0.86rem !important;
    text-transform: none !important;
    letter-spacing: 0.04em !important;
    color: rgba(255,255,255,0.7) !important;
  }

  body.nav-open {
    overflow: hidden !important;
  }

  body.nav-open .navbar {
    z-index: 1003;
  }
}

/* ——— Page sections ——— */
@media (max-width: 992px) {
  .hero-section {
    min-height: 70vh !important;
    min-height: 70dvh !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
  }

  .fade-section {
    padding: 4.5rem 1.15rem 3rem !important;
    min-height: auto !important;
  }

  .fade-section.hero-section {
    padding: 0 !important;
  }

  .section-title,
  .store-title,
  .cart-title,
  .checkout-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
  }

  .collection-grid,
  .experience-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .story-card-3d,
  .experience-card-3d,
  .section-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    padding: 1.25rem !important;
  }

  .store-section,
  .cart-section,
  .checkout-section,
  .product-section,
  .contact-section,
  .faq-section,
  .auth-section,
  .account-section {
    padding: 5.5rem 1rem 3rem !important;
  }

  .store-content,
  .cart-content,
  .checkout-content,
  .product-container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .store-sidebar,
  .cart-summary,
  .checkout-summary,
  .product-image-wrapper {
    position: relative !important;
    top: 0 !important;
  }

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

  .store-product-image-wrapper {
    height: 150px !important;
    padding: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .store-product-actions {
    flex-direction: column;
    gap: 0.4rem;
  }

  .store-product-actions .btn-primary,
  .store-add-wishlist,
  .product-actions button,
  .wishlist-btn {
    width: 100%;
    min-height: 42px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .checkout-form-wrapper,
  .cart-item {
    padding: 1.1rem !important;
  }

  .cart-item {
    flex-direction: column !important;
  }

  .product-image-wrapper {
    height: min(50vh, 360px) !important;
  }

  .footer {
    padding: 2.5rem 1.15rem 1.25rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  .toast.is-show {
    left: 12px !important;
    right: 12px !important;
    top: 72px !important;
  }
}

@media (max-width: 420px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }

  .store-product-image-wrapper {
    height: 220px !important;
  }

  .nav-cart__label .cart-count-wrap,
  .nav-cart__label {
    /* keep short on tiny screens */
  }

  .footer-content {
    grid-template-columns: 1fr !important;
  }
}

/* Desktop: ensure hamburger stays hidden */
@media (min-width: 993px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    position: static !important;
  }
}
