/* 
  JEWELRYSTORE - Luxury eCommerce Responsive Stylesheet
*/

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .mega-menu {
    width: 750px;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  /* Header & Navigation */
  .search-header {
    width: 200px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-bar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-champagne);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 40px;
    transition: var(--transition-smooth);
    overflow-y: auto;
  }
  
  .nav-bar.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    padding: 15px 10px;
    width: 100%;
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Disable mega menu hover on mobile, expand lists inside drawer */
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border-top: none;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item.active-mobile-submenu .mega-menu {
    display: flex;
  }
  
  .mega-menu-banner {
    display: none; /* Hide banner in mobile menu */
  }
  
  .mega-menu-title {
    margin-bottom: 10px;
    font-size: 0.85rem;
  }
  
  /* Hero section */
  .hero-slide {
    height: 480px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  /* Grids */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .promo-banner {
    height: 300px;
  }
  
  /* Catalog */
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .catalog-sidebar {
    display: none; /* Collapsible sidebar trigger in JS */
  }
  
  .catalog-sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  
  /* Product detail */
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .reviews-tab-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Cart & Checkout */
  .cart-layout, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Profile layout */
  .profile-layout {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .header-main {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .search-header {
    order: 3;
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-slide {
    height: 400px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .review-text {
    font-size: 1.1rem;
  }
  
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) {
    display: none; /* Hide Subtotal column on smaller tablets, keep grand total */
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-col-full {
    grid-column: span 1;
  }
  
  .payment-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-view-content {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .container {
    padding: 0 15px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card-body {
    padding: 12px;
  }
  
  .product-title-link {
    font-size: 0.9rem;
    height: 40px;
  }
  
  .price-current {
    font-size: 0.95rem;
  }
  
  .price-old {
    font-size: 0.8rem;
  }
  
  .hero-slide {
    height: 350px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    padding: 12px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .product-gallery {
    flex-direction: column-reverse;
  }
  
  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
  }
  
  .thumb-item {
    width: 60px;
  }
  
  .detail-title {
    font-size: 1.8rem;
  }
  
  .detail-actions-box {
    flex-direction: column;
  }
  
  .detail-actions-box button {
    width: 100%;
  }
  
  .quantity-selector {
    justify-content: center;
  }
  
  .cart-table th, .cart-table td {
    padding: 8px;
  }
  
  .cart-item-info {
    gap: 10px;
  }
  
  .cart-item-img {
    width: 50px;
    height: 50px;
  }
  
  .cart-item-details h4 {
    font-size: 0.9rem;
  }
  
  .address-grid {
    grid-template-columns: 1fr;
  }
  
  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
