/* 
==================================================
RAMESH KIRANA STORE - Responsive Styles
==================================================
*/

/* Mobile First - Base styles in style.css */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 250px;
        margin-top: 2rem;
    }
    
    .floating-product {
        padding: 5px;
    }
    
    .floating-product img {
        width: 30px;
        height: 30px;
    }
    
    .floating-product span {
        font-size: 0.7rem;
    }
    
    .quick-categories {
        margin-top: 0;
        border-radius: 0;
        padding: 1rem 0;
    }
    
    /* Horizontal scroll for quick categories */
    .quick-categories .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        scrollbar-width: none; /* Firefox */
    }
    
    .quick-categories .row::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .category-shortcut {
        width: 100px;
        flex-shrink: 0;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1040;
    }
    
    body {
        padding-bottom: 70px; /* Space for sticky CTA */
    }
    
    .cookie-banner {
        bottom: 70px; /* Above sticky CTA */
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .smart-aisle:hover {
        transform: translateY(-5px);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar .nav-link {
        padding: 1.5rem 1rem !important;
    }
    
    .hero-content {
        padding-right: 3rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* XXL Devices (larger desktops, 1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}
