/* ==========================================================================
   RIWAYAT — Responsive Stylesheet
   Breakpoints: 1200px, 992px, 768px, 576px, 480px
   ========================================================================== */

/* Large Tablets & Small Laptops (Max 1200px) */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(2, 1fr) 1.5fr;
    gap: 2.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
}

/* Tablets (Max 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 74px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 95;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-content {
    max-width: 100%;
    text-align: left;
  }

  .shop-layout {
    grid-template-columns: 1fr !important;
  }

  .shop-sidebar {
    display: none; /* Accessible via mobile filter drawer */
  }

  .mobile-filter-trigger {
    display: flex !important;
  }
}

/* Small Tablets & Large Phones (Max 768px) */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-lg {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(18, 3, 7, 0.88) 0%,
      rgba(18, 3, 7, 0.8) 55%,
      rgba(18, 3, 7, 0.92) 100%
    );
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

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

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

  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-box {
    margin: 0 auto;
    padding: 1.25rem;
    max-width: 100%;
  }

  .modal-box.quick-view-box {
    padding: 1.25rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-view-media {
    max-height: 380px;
    aspect-ratio: 3/4;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .quick-view-thumbs {
    justify-content: center;
  }

  .quick-view-title {
    font-size: 1.3rem;
  }

  .announcement-bar .free-shipping-text {
    display: none;
  }

  .product-details-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

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

/* Mobile Phones (Max 576px) */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Extra Small Phones (Max 380px) */
@media (max-width: 380px) {
  .brand-logo .logo-title {
    font-size: 1.45rem;
  }

  .brand-logo .logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .action-btn {
    width: 34px;
    height: 34px;
  }
}
