/* ============================================
   RESPONSIVE STYLES
   Mobile-first, breakpoints: 576px, 768px, 992px, 1200px
   ============================================ */

/* ============================================
   SMALL DEVICES (phones, < 576px)
   ============================================ */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .d-flex {
        justify-content: center;
    }
    .category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    .category-icon img {
        width: 32px;
        height: 32px;
    }
    .product-card .card-img-top {
        height: 150px;
    }
    .navbar .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        padding: 12px 14px;
        font-size: 1.8rem;
    }
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
    .cart-qty {
        width: 60px !important;
    }
    /* Checkout: stack fields */
    .checkout-form .row {
        flex-direction: column;
    }
    /* Tabs: scrollable */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-tabs .nav-item {
        white-space: nowrap;
    }
}

/* ============================================
   MEDIUM DEVICES (tablets, 576px - 768px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .category-icon {
        width: 72px;
        height: 72px;
        font-size: 1.7rem;
    }
    .product-card .card-img-top {
        height: 180px;
    }
}

/* ============================================
   LARGE DEVICES (desktops, 768px - 992px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .category-icon {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   EXTRA LARGE (>= 1200px) - minimal tweaks
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .btn {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    .product-card {
        break-inside: avoid;
    }
}
/* ============================================
   HOME V2 SECTIONS — MOBILE
   ============================================ */
@media (max-width: 575.98px) {
    .hero-section-v2::after {
        display: none;
    }
    .hero-heading {
        font-size: 1.9rem;
        text-align: center;
    }
    .hero-lead,
    .hero-pillars {
        text-align: center;
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .why-choose-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-300);
        width: 100%;
        justify-content: center;
        padding: 0.6rem 0.5rem;
    }
    .why-choose-item:last-child {
        border-bottom: none;
    }
    .donate-photo {
        max-width: 160px;
        margin-top: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .why-choose-item {
        border-right: none;
        width: 50%;
        justify-content: flex-start;
        padding: 0.6rem 1rem;
    }
}