  /* ==========================================================================
   Millat Mart - Home Page Stylesheet
   File: /assets/css/pages/home.css
   Used only by: index.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Hero Grid Section (Full Screen 100% Width)
   -------------------------------------------------------------------------- */
.millat-hero-section {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

.millat-hero-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
 
}

.millat-hero-main {
    flex: 1 1 100%;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.millat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,46,22,0.85) 0%, rgba(5,46,22,0.4) 60%, transparent 100%);
    z-index: 1;
}

.millat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    color: #ffffff;
}

.millat-badge {
    background-color: var(--noon-yellow, #4ade80);
    color: #132119;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.millat-hero-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.millat-hero-content p {
    font-size: 1rem;
    color: #e3e6e6;
    margin-bottom: 20px;
}

.millat-hero-btn {
    background-color: var(--accent-yellow, #22c55e);
    color: #132119;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.millat-hero-btn:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
}

@media (min-width: 1200px) {
    .millat-hero-wrapper {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 991.98px) {
    .millat-hero-main {
        min-height: 340px;
        padding: 24px;
    }
    .millat-hero-content h2 {
        font-size: 1.6rem;
    }
}

/* --------------------------------------------------------------------------
   2. Category Component (mm-cat-card grid / mobile carousel)
   -------------------------------------------------------------------------- */
.mm-category-section {
    background-color: #fcfcfc;
}

.mm-cat-card {
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.mm-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.mm-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mm-cat-card .card-body {
    padding: 0.75rem 0.5rem;
}

.mm-cat-card h6 {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .mm-cat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(22, 163, 74, 0.3) !important;
    }

    .mm-cat-card:hover .mm-img-wrapper img {
        transform: scale(1.08);
    }

    .mm-cat-card:hover h6 {
        color: #16a34a !important;
    }
}

@media (max-width: 768px) {
    .mm-img-wrapper {
        height: 110px;
    }

    .mm-cat-card h6 {
        font-size: 0.85rem;
    }

    .mm-category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        gap: 0.75rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .mm-category-grid::-webkit-scrollbar {
        display: none;
    }

    .mm-category-grid {
        -ms-overflow-style: none; 
        scrollbar-width: none;     
    }

    .mm-category-grid > .col {
        flex: 0 0 38%;
        max-width: 38%;
        scroll-snap-align: start;
    }
}

/* --------------------------------------------------------------------------
   3. Promotional Banner (Section 3)
   -------------------------------------------------------------------------- */
.promo-banner {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}
.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,83,45,0.88) 0%, rgba(20,83,45,0.55) 55%, rgba(20,83,45,0.15) 100%);
}
.promo-banner-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

/* --------------------------------------------------------------------------
   4. Best Sellers & Trending Carousels
   -------------------------------------------------------------------------- */
.codeb-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.codeb-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.0rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.codeb-track::-webkit-scrollbar {
    display: none;
}

.codeb-card-slot {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
}

@media (min-width: 768px) {
    .codeb-card-slot {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 300px;
    }
}

.codeb-scroll-arrow-btn {
    background: #fff;
    border: 1px solid #ced4da;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.codeb-scroll-arrow-btn:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

@media (max-width: 767.98px) {
    .bestseller-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        margin-right: -1.5rem;
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .bestseller-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .bestseller-grid-track {
        display: flex;
        gap: 12px;
        scroll-snap-type: x mandatory;
    }

    .bestseller-item-col {
        flex: 0 0 42%;
        max-width: 42%;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .bestseller-grid-track {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .bestseller-item-col {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .trending-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 15px;
        margin-right: -1.5rem;
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .trending-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .trending-grid-track {
        display: flex;
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    .trending-item-col {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: center;
    }

    .promo-tile-img {
        height: 220px;
        background-size: cover;
        background-position: center;
    }
}

@media (min-width: 768px) {
    .trending-grid-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .trending-item-col {
        width: 100%;
        max-width: 100%;
    }

    .promo-tile-img {
        height: 200px;
        background-size: cover;
        background-position: center;
    }
}

/* --------------------------------------------------------------------------
   5. Three Products Promo Section (Section 5)
   -------------------------------------------------------------------------- */
.promo-tile {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e6e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}
.promo-tile-img {
    height: 220px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f7f8fa;
}

/* --------------------------------------------------------------------------
   6. Reviews / Testimonials (Section 6)
   -------------------------------------------------------------------------- */
.review-card {
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.review-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.review-card-slot {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 340px;
}

@media (max-width: 767.98px) {
    .review-card-slot {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
    }
}

/* --------------------------------------------------------------------------
   7. New Arrivals Section (Mobile Scroll, Desktop Grid & Full Image Fix)
   -------------------------------------------------------------------------- */
.product-card img,
.card-img-top {
    width: 100% !important;
    height: 210px !important;
    object-fit: cover !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 767.98px) {
    .product-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
        margin-right: -1.5rem;
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .product-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .product-grid-track {
        display: flex !important;
        gap: 12px;
        scroll-snap-type: x mandatory;
    }

    .product-item-col {
        flex: 0 0 42%;
        max-width: 42%;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .product-grid-track {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .product-item-col {
        width: 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   8. Marquee Bar & Reviews Badge Section
   -------------------------------------------------------------------------- */
.achar-marquee-bar {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #4ade80 50%, #16a34a 100%);
    background-size: 200% auto;
    animation: acharShimmer 6s linear infinite;
    color: #1c2b22;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 990;
    white-space: nowrap;
}

.achar-marquee-track {
    display: flex;
    width: max-content;
    animation: acharMarqueeScroll 26s linear infinite;
    will-change: transform;
}

.achar-marquee-group {
    display: flex;
    align-items: center;
}

.achar-badge {
    background: #1c2b22;
    color: #16a34a;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.achar-badge-alt {
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.achar-dot {
    color: #fff;
    font-size: 0.85rem;
    opacity: 0.7;
}

@keyframes acharMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes acharShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@media (max-width: 768px) {
    .achar-marquee-bar {
        font-size: 0.75rem;
    }
    .achar-marquee-track {
        animation-duration: 18s;
    }
}

.reviews-showcase-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: -60px;
}

.badge-tag {
    display: inline-block;
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 3px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fw-black {
    font-weight: 900;
}

.feature-metric-box {
    background: #f8f9fa;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
}

.metric-icon {
    font-size: 1.25rem;
    margin-bottom: 0.15rem !important;
}

.metric-value {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0 !important;
}

.metric-label {
    font-size: 0.6rem;
    color: #6c757d;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}

/* --------------------------------------------------------------------------
   9. Mobile UX Polish
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .codeb-track {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scroll-padding-left: 1rem;
    }
    .codeb-card-slot,
    .review-card-slot {
        scroll-snap-align: start;
    }

    .mm-category-section,
    .unique-arrivals-section,
    .codeb-section,
    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .millat-hero-section.py-3 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .unique-section-title,
    .codeb-section-title {
        font-size: 1.15rem;
    }

    .millat-hero-content h2 {
        font-size: 1.35rem;
    }
    .millat-hero-content p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    .millat-hero-btn {
        padding: 8px 18px;
    }

    .reviews-showcase-card {
        margin-top: 0;
    }
}