/* NovaMart Responsive CSS Rules */

@media (max-width: 1024px) {
    .header-wrapper {
        gap: 12px;
    }
    .header-search {
        max-width: 380px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .slide-title {
        font-size: 32px;
    }
    .slide-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar-flex {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .header-wrapper {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .nav-bar {
        display: none; /* Replaced by Mobile Drawer Menu */
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    .slide {
        min-height: 280px;
    }
    .slide-content {
        padding: 24px;
    }
    .slide-title {
        font-size: 24px;
    }
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-content {
        padding: 12px;
    }
    .selling-price {
        font-size: 17px;
    }
    .flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    /* Sticky Mobile Bottom Bar on Product Pages */
    .mobile-sticky-buy {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 12px 16px;
        border-top: 1px solid var(--slate-200);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        display: flex;
        gap: 10px;
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 20px;
    }
    .brand-logo .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .action-item span.text {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
