/* Premium E-Commerce - Responsive Stylesheet */

/* Ultra-Wide Screens (Above 1600px) */
@media screen and (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
}

/* Notebook / Laptop Screens (Under 1200px) */
@media screen and (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .categories-bento {
    grid-auto-rows: 240px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Screens (Under 992px) */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 24px;
  }

  .site-header {
    height: 70px;
  }

  /* Navigation burger visibility */
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
  }

  .hero-slider {
    height: 500px;
  }

  .slide-content {
    padding: 0 40px;
  }

  .slide-title {
    font-size: 40px;
  }

  .categories-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .bento-card-1 { grid-column: span 2; grid-row: span 1; }
  .bento-card-2 { grid-column: span 2; }
  .bento-card-3 { grid-column: span 1; }
  .bento-card-4 { grid-column: span 1; }

  .flash-sale {
    flex-direction: column;
    padding: 40px;
    text-align: center;
  }

  .flash-showcase {
    width: 320px;
    height: 320px;
  }

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

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .filters-sidebar {
    display: none; /* Hide sidebar in mobile shop view, can toggle or use bottom sheet if requested */
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cart-split-layout {
    grid-template-columns: 1fr;
  }

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

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

/* Small Screens / Mobile Phones (Under 768px) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .promo-bar {
    padding: 6px 16px;
    font-size: 10px;
  }

  .promo-bar span:last-child {
    display: none; /* Hide secondary bar text */
  }

  .hero-slider {
    height: 450px;
  }

  .slide-content {
    padding: 0 24px;
  }

  .slide-title {
    font-size: 32px;
  }

  .slide-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .product-card-content {
    padding: 16px;
  }

  .product-title {
    font-size: 13px;
    height: 38px;
  }

  .price {
    font-size: 15px;
  }

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

  .brand-logo {
    font-size: 18px;
  }

  .blog-bento-grid {
    grid-template-columns: 1fr;
  }

  .cart-item-row {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cart-item-img {
    width: 80px;
    height: 80px;
  }

  .cart-item-row > *:not(.cart-item-img):not(.cart-item-details) {
    grid-column: span 2;
    margin-top: 8px;
  }

  .cart-item-row .qty-selector {
    width: 120px;
    height: 40px;
  }

  .cart-remove-item {
    justify-content: flex-end;
  }

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

  .qv-content {
    padding: 24px;
  }

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

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

  .footer-legal-links {
    justify-content: center;
  }

  .success-screen-box {
    padding: 40px 20px;
    margin: 40px auto;
  }

  .checkout-section-card {
    padding: 24px;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .form-full-width {
    grid-column: span 1;
  }

  .toast {
    right: 16px;
    left: 16px;
    bottom: 24px;
    max-width: none;
  }
}

/* Extra Small Phones (Under 480px) */
@media screen and (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .categories-bento {
    grid-template-columns: 1fr;
  }

  .bento-card-1, .bento-card-2, .bento-card-3, .bento-card-4 {
    grid-column: span 1;
  }

  .flash-showcase {
    width: 240px;
    height: 240px;
  }

  .countdown-item {
    width: 60px;
    height: 60px;
  }

  .countdown-num {
    font-size: 20px;
  }
}
