/* ==========================================================================
   XNIXA - Responsive Media Queries
   Optimized for Mobile (320px+), Tablet (768px), Laptop (1024px), Desktop (1280px+)
   ========================================================================== */

/* --------------------------------------------------------------------------
   LAPTOP & TABLET LANDSCAPE (< 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

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

  .hero-features-bar {
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

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

/* --------------------------------------------------------------------------
   TABLET PORTRAIT (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar-container {
    height: 70px;
  }

  .brand-logo-img {
    height: 38px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #090910;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    flex-direction: column;
    gap: 18px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

  .hamburger-btn {
    display: block;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-img-wrapper {
    height: 200px;
    padding: 12px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 0.98rem;
  }

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

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .modal-container {
    padding: 24px 18px;
  }

  /* Product Details Layout */
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

/* --------------------------------------------------------------------------
   MOBILE SCREENS (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-features-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

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

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

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

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .toast {
    min-width: calc(100vw - 48px);
  }
}
