/* Mobile First Responsive Styles */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .filter-section {
        margin-bottom: 1rem;
    }
    
    .filter-chips {
        justify-content: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .list-view .product-image {
        width: 150px;
        height: 120px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .btn-add-to-cart {
        --bs-btn-font-size: 0.9rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }

    .btn-add-to-cart {
        --bs-btn-font-size: 0.9rem;
    }
}

/* Specific Mobile Adjustments */
@media (max-width: 767.98px) {
    /* Navigation */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Search Form */
    .navbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .navbar .d-flex form {
        width: 100%;
        margin-right: 0 !important;
    }
    
    /* Product Grid */
    .products-grid .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Cart Page */
    .cart-section .row {
        flex-direction: column-reverse;
    }
    
    /* Product Details */
    .product-gallery {
        margin-bottom: 1.5rem;
    }
    
    .product-actions .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .filter-section {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}