/* JIC Marketplace - Responsive Styles */

/* Extra Small Devices (Phones) */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section .lead { font-size: 0.875rem; }
    .product-image { height: 150px !important; }
    .product-title { font-size: 0.75rem; min-height: 2rem; }
    .product-price { font-size: 0.875rem; }
    .section-title { font-size: 1.25rem; }
    .btn-lg { font-size: 0.875rem; padding: 0.5rem 1rem; }
    
    .table-responsive { font-size: 0.8rem; }
    .card-body { padding: 1rem; }
    
    .display-4 { font-size: 2rem !important; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
}

/* Small Devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .product-image { height: 180px !important; }
}

/* Medium Devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 { font-size: 2rem; }
    .product-image { height: 200px !important; }
}

/* Large Devices */
@media (min-width: 992px) {
    .hero-section { min-height: 400px; }
    .hero-section h1 { font-size: 2.5rem; }
    .product-image { height: 220px !important; }
}

/* Extra Large */
@media (min-width: 1200px) {
    .container { max-width: 1200px; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --dark: #f9fafb;
        --border: #333;
    }
    body { background-color: var(--light) !important; color: var(--dark) !important; }
    .bg-white { background-color: #2d2d2d !important; }
    .text-dark { color: #f9fafb !important; }
    .card { background-color: #2d2d2d; border-color: #333; }
    .bg-light { background-color: #1a1a1a !important; }
}

/* Print */
@media print {
    .main-header, .category-nav, footer, .no-print, .mobile-bottom-nav { 
        display: none !important; 
    }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        z-index: 1000;
        padding: 8px 0 5px;
    }
    body { padding-bottom: 70px; }
}
