/* ==========================================================================
   MAMUCART - Responsive Media Queries
   Ensures zero horizontal scrolling, seamless layout adaptions
   ========================================================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1380px;
    }
}

/* Medium Desktop & Laptop (992px to 1199px) */
@media (max-width: 1199.98px) {
    .header-delivery-loc {
        display: none;
    }
    .main-image-display {
        height: 360px;
    }
}

/* Tablets (768px to 991.98px) */
@media (max-width: 991.98px) {
    /* Switch Desktop Header to Mobile Header */
    .mamucart-header .main-header,
    .mamucart-header .secondary-navbar {
        display: none;
    }
    
    .mobile-header-wrap {
        display: block;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .gallery-wrapper {
        position: static;
        margin-bottom: 2rem;
    }
    
    .summary-card {
        position: static;
        margin-top: 1.5rem;
    }
    
    .filter-desktop-col {
        display: none;
    }
    
    .btn-mobile-filter {
        display: inline-flex;
    }
}

/* Mobile Devices (320px to 767.98px) */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }
    
    .top-notice-bar {
        display: none;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
    }
    
    /* 2 columns on mobile for product grids */
    .row-cols-mobile-2 > * {
        flex: 0 0 auto;
        width: 50% !important;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }
    
    .product-image-container {
        height: 145px;
        padding: 0.75rem;
    }
    
    .product-image-container img {
        max-height: 125px;
    }
    
    .product-card-body {
        padding: 0.65rem;
    }
    
    .product-title {
        font-size: 0.82rem;
        min-height: 2.2rem;
        margin-bottom: 0.25rem;
    }
    
    .current-price {
        font-size: 1.05rem;
    }
    
    .mrp-price {
        font-size: 0.75rem;
    }
    
    .discount-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.35rem;
    }
    
    .btn-card-add-cart {
        font-size: 0.78rem;
        padding: 0.4rem;
    }
    
    .quick-view-overlay {
        display: none !important;
    }
    
    .main-image-display {
        height: 280px;
    }
    
    .main-image-display img {
        max-height: 250px;
    }
    
    .product-detail-title {
        font-size: 1.2rem;
    }
    
    .price-main-val {
        font-size: 1.5rem;
    }
    
    .cart-item-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-item-img {
        width: 80px;
        height: 80px;
    }
    
    .order-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stepper-text {
        font-size: 0.65rem;
    }
    
    .stepper-date {
        display: none;
    }
    
    .auth-wrapper-box {
        margin: 1.5rem 1rem;
        padding: 1.5rem 1.25rem;
    }
    
    .footer-main-columns {
        padding: 2rem 0 1rem;
    }
    
    .footer-col-title {
        margin-top: 1rem;
    }
    
    .footer-middle-bar {
        text-align: center;
    }
    
    .footer-social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-badges {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .footer-bottom-bar {
        text-align: center;
    }
}

/* Extra Small Phones (320px to 375px) */
@media (max-width: 375px) {
    .btn-primary-mc, .btn-teal, .btn-outline-mc {
        padding: 0.5rem 0.85rem;
        font-size: 0.825rem;
    }
    
    .product-image-container {
        height: 130px;
    }
    
    .product-image-container img {
        max-height: 110px;
    }
}

/* MAMUCART CATEGORY PRODUCT CARD POLISH */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7ebef;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
    border-color: #ffd2b5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}

.product-card .product-image-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 34px 14px 12px;
    background: #fff;
    text-decoration: none;
}

.product-card .product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.product-card .product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.product-card:hover .product-image {
    transform: scale(1.045);
}

.product-card .product-badge,
.product-card .product-discount {
    position: absolute;
    z-index: 2;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(50% - 16px);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-card .product-badge {
    left: 10px;
    color: #002E38;
    background: #fff0e5;
}

.product-card .product-discount {
    right: 10px;
    color: #b42318;
    background: #fff0ed;
}

.product-card .product-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 12px 13px 14px;
}

.product-card .product-title {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #202b38;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .product-title:hover {
    color: #fb6802;
}

.product-card .product-tags {
    min-height: 0;
    line-height: 1.8;
}

.product-card .product-tags .badge {
    max-width: 100%;
    font-size: 10px;
    font-weight: 500;
    white-space: normal;
}

.product-card .product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 9px;
    margin-top: auto;
    padding-top: 8px;
}

.product-card .product-price {
    color: #002E38;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-card .product-mrp {
    color: #89919b;
    font-size: 12px;
    text-decoration: line-through;
}

.product-card .product-save {
    margin-top: 5px;
    color: #fb6802;
    font-size: 11px;
    font-weight: 650;
}

.product-card .product-stock {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 650;
}

.product-card .product-stock.out-of-stock {
    color: #b42318;
}

.product-card .product-stock.low-stock {
    color: #b45309;
}

.product-card .btn.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 12px !important;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fb6802;
    border-color: #fb6802;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

.product-card .btn.btn-primary:hover,
.product-card .btn.btn-primary:focus {
    background: #d95700;
    border-color: #d95700;
}

@media (max-width: 767.98px) {
    .product-card {
        border-radius: 11px;
    }

    .product-card .product-image-link {
        padding: 31px 8px 8px;
    }

    .product-card .product-image-wrapper {
        height: 145px;
    }

    .product-card .product-card-body {
        padding: 9px 9px 11px;
    }

    .product-card .product-title {
        min-height: 2.65em;
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.35;
    }

    .product-card .product-price-row {
        gap: 4px 7px;
        padding-top: 5px;
    }

    .product-card .product-price {
        font-size: 17px;
    }

    .product-card .product-mrp {
        font-size: 11px;
    }

    .product-card .product-save {
        font-size: 10px;
    }

    .product-card .product-badge,
    .product-card .product-discount {
        top: 7px;
        padding: 4px 6px;
        font-size: 9px;
    }

    .product-card .product-badge {
        left: 7px;
    }

    .product-card .product-discount {
        right: 7px;
    }

    .product-card .btn.btn-primary {
        min-height: 35px;
        padding: 7px 5px;
        font-size: 11px;
    }
}

@media (max-width: 359.98px) {
    .product-card .product-image-wrapper {
        height: 120px;
    }

    .product-card .product-card-body {
        padding-right: 7px;
        padding-left: 7px;
    }

    .product-card .product-price {
        font-size: 15px;
    }
}


/* MAMUCART: EQUAL PRODUCT IMAGE SIZES */
.product-card .product-image-link {
    width: 100%;
    height: 220px;
    padding: 34px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.product-card .product-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 767.98px) {
    .product-card .product-image-link {
        height: 175px;
        padding: 31px 8px 8px;
    }
}

@media (max-width: 359.98px) {
    .product-card .product-image-link {
        height: 150px;
    }
}

/* MAMUCART MOBILE HEADER - MATCH DESKTOP BRAND COLORS */
@media (max-width: 991.98px) {
    .mamucart-header .mobile-header-wrap {
        background-color: #003EAB !important;
        color: #ffffff !important;
    }

    .mamucart-header .mobile-header-wrap .mobile-actions a,
    .mamucart-header .mobile-header-wrap .mobile-hamburger-btn {
        color: #ffffff !important;
    }

    .mamucart-header .mobile-header-wrap .mobile-row-3 .mobile-cat-pill {
        background-color: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }

    .mamucart-header .mobile-header-wrap .mobile-row-3 .mobile-cat-pill.bg-warning {
        background-color: #F58220 !important;
        color: #ffffff !important;
    }

    .mamucart-header .mobile-header-wrap .mobile-row-2 .header-search-form {
        border-color: #F58220 !important;
    }

    .mamucart-header .mobile-header-wrap .mobile-row-2 .search-btn,
    .mamucart-header .mobile-header-wrap .mobile-row-2 .search-btn:hover {
        background-color: #F58220 !important;
        border-color: #F58220 !important;
        color: #ffffff !important;
    }
}


/* MAMUCART MOBILE ACTIVE TAB - ORANGE */
@media (max-width: 991.98px) {
    .mamucart-header .mobile-header-wrap .mobile-cat-pill.active,
    .mamucart-header .mobile-header-wrap .mobile-cat-pill[aria-current="page"] {
        background-color: #F58220 !important;
        border-color: #F58220 !important;
        color: #ffffff !important;
    }
}
