 /* ==========================================================================
   Global Theme Styles - Amazon / Noon Inspired Design
   Project: Millat Mart
   File: /assets/css/style.css
   ========================================================================== */

:root {
    --primary-color: #131921;       /* Amazon Dark Charcoal Header */
    --secondary-color: #232f3e;     /* Sub-header Dark Navy */
    --footer-bottom-bg: #0d1117;    /* Deep Dark Footer Bottom */
    --accent-yellow: #febd69;      /* Amazon Accent Gold */
    --noon-yellow: #feee00;        /* Noon Signature Yellow */
    --text-light: #ffffff;
    --text-muted: #a6b2c2;
    --body-bg: #f2f4f8;            /* Light Gray Background */
    --text-color: #0f1111;         /* High Contrast Dark Text */
    --border-color: #3a4553;       /* Divider Color */
    --card-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================================
   Header Component Styles
   ========================================================================== */

/* Top Utility Header Bar */
.header-top-bar {
    background-color: #0d1117;
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #222;
}

.header-top-bar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.header-top-bar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.main-header {
    background-color: var(--primary-color);
    padding: 10px 0;
    color: var(--text-light);
}

/* Logo Styling */
.navbar-brand-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-brand-text span {
    color: var(--noon-yellow);
}

/* Amazon / Noon Style Search Bar */
.header-search-form {
    display: flex;
    width: 100%;
}

.header-search-form .category-select {
    max-width: 150px;
    background-color: #f3f3f3;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    padding-left: 8px;
    cursor: pointer;
}

.header-search-form .search-input {
    border: none;
    border-radius: 0;
    font-size: 14px;
    padding: 8px 12px;
}

.header-search-form .search-input:focus {
    box-shadow: none;
    outline: none;
}

.header-search-form .search-btn {
    background-color: var(--accent-yellow);
    border: none;
    border-radius: 0 4px 4px 0;
    color: #111;
    padding: 0 18px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.header-search-form .search-btn:hover {
    background-color: #f3a847;
}

/* Navigation Links & Action Items */
.header-action-item {
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid transparent; /* Keeps layout stable */
    border-radius: 3px;
    display: inline-block;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.header-action-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.header-action-item .action-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    line-height: 1.1;
}

.header-action-item .action-main {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.sub-header-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 18px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 2px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.sub-header-nav a:hover {
    color: var(--noon-yellow);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Cart Badge */
.cart-icon-container {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: 8px;
    background-color: var(--noon-yellow);
    color: #000000;
    font-weight: 800;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

/* Wishlist Badge (Header) */
.wishlist-icon-container {
    position: relative;
}

.wishlist-badge {
    position: absolute;
    top: -4px;
    right: 4px;
    background-color: #dc3545;
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}

/* Wishlist Heart Button (Product Cards) */
.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e3e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: color 0.15s ease, transform 0.15s ease;
}

.wishlist-btn:hover {
    color: #dc3545;
    transform: scale(1.08);
}

.wishlist-btn.active {
    color: #dc3545;
}

/* Sub Navigation Bar */
.sub-header-nav {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 6px 0;
    font-size: 13px;
}

.sub-header-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 18px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.sub-header-nav a:hover {
    color: var(--accent-yellow);
}

/* Mobile Offcanvas Drawer */
.mobile-nav-header {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
   UI Components & Cards
   ========================================================================== */

.custom-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}
/* Live Viewers Row Single-Line Adjustments */
.product-card .card-body .text-danger.fs-12 {
    font-size: 11px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Optional: Slight pulse animation for the live fire icon */
@keyframes pulseGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; }
}

.animate-pulse {
    animation: pulseGlow 1.8s infinite ease-in-out;
}
/* ==========================================================================
   Footer & Value Proposition Banner Styles
   ========================================================================== */

/* Value Proposition Banner */
.value-props-banner {
    background-color: #ffffff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    padding: 20px 0;
}

.value-prop-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    background-color: #fff9e6;
    color: #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Back to Top Button Bar */
.back-to-top-bar {
    background-color: #37475a;
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.back-to-top-bar:hover {
    background-color: #485769;
}

/* Main Footer Container */
.main-footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 40px 0 20px 0;
    font-size: 13px;
}

.main-footer h6 {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer ul li {
    margin-bottom: 8px;
}

.main-footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-footer ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer Middle Branding & Payments Bar */
.footer-middle-bar {
    background-color: var(--primary-color);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
}

.payment-badge {
    background-color: #ffffff;
    color: #111;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Bottom Copyright Bar */
.footer-bottom-bar {
    background-color: var(--footer-bottom-bg);
    color: var(--text-muted);
    font-size: 12px;
    padding: 15px 0;
}

.footer-bottom-bar a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.footer-bottom-bar a:hover {
    color: #ffffff;
}

/* Responsive Overrides */
/* Mobile Sticked Footer Bar */
@media (max-width: 768px) {
    /* Make the bottom/middle bar stay stuck to the bottom of the screen */
    .footer-middle-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030; /* Keep it above other content */
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }

    /* Collapse/hide the heavy multi-column footer and extra banners on mobile to save space */
    .value-props-banner,
    #backToTop,
    .main-footer,
    .footer-bottom-bar {
        display: none !important;
    }

    /* Ensure body has bottom padding so content isn't hidden behind the sticky footer */
    body {
        padding-bottom: 70px; 
    }

    /* Format the sticky mobile row content neatly into one single line */
    .footer-middle-bar .container-fluid {
        padding: 0 10px !important;
    }
    
    .footer-middle-bar .d-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        font-size: 11px;
    }

    /* Shrink elements to fit nicely on smaller screens */
    .footer-middle-bar .navbar-brand-text {
        font-size: 14px !important;
    }

    .footer-middle-bar .text {
        display: none; /* Hide tagline on tiny mobile screens to save space */
    }

    .payment-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }
}
/* ==========================================================================
   Millat Custom Hero Grid Section (PC & Mobile Optimized)
   ========================================================================== */

.millat-hero-wrapper {
    display: flex;
    gap: 16px;
    width: 100%;
}

/* Main Hero Banner Styles */
.millat-hero-main {
    flex: 0 0 70%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.millat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,17,17,0.85) 0%, rgba(15,17,17,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, #feee00);
    color: #0f1111;
    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, #febd69);
    color: #0f1111;
    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: #f3a847;
    transform: translateY(-2px);
}

/* Side Promotional Stack Styles */
.millat-hero-side {
    flex: 0 0 calc(30% - 16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.millat-side-tile {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 212px;
    display: flex;
    align-items: center;
    padding: 24px;
}

.millat-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,17,17,0.8) 0%, rgba(15,17,17,0.3) 100%);
    z-index: 1;
}

.millat-side-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.millat-side-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.millat-side-content span {
    font-size: 12px;
    color: var(--text-muted, #a6b2c2);
    display: block;
    margin-bottom: 12px;
}

.tile-link {
    color: var(--noon-yellow, #feee00);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tile-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Mobile Layout adjustments */
@media (max-width: 991.98px) {
    .millat-hero-wrapper {
        flex-direction: column;
    }
    .millat-hero-main {
        flex: 1;
        min-height: 340px;
        padding: 24px;
    }
    .millat-hero-content h2 {
        font-size: 1.6rem;
    }
    .millat-hero-side {
        flex: 1;
        flex-direction: row;
    }
    .millat-side-tile {
        min-height: 160px;
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .millat-hero-side {
        flex-direction: column;
    }
}
  
/* Sidebar Filter Styling */
.filter-card {
    background: #ffffff;
    border: 1px solid #e3e6e6;
    border-radius: 6px;
    padding: 1rem;
}

.filter-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1111;
    border-bottom: 2px solid #febd69;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Amazon-style Card & Typography */
.product-card {
    background: #ffffff;
    border: 1px solid #e3e6e6;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f1111;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #c7511f;
}

.price-symbol {
    font-size: 0.75rem;
    vertical-align: super;
    font-weight: 500;
}

.price-main {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f1111;
}

.price-fraction {
    font-size: 0.75rem;
    vertical-align: super;
    font-weight: 600;
}
.category-card{
    border-radius:16px;
    overflow:hidden;
    transition:all .3s ease;
    background:#fff;
}

.category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,.12)!important;
}

.category-card img{
    height:180px;
    width:100%;
    object-fit:cover;
    transition:transform .3s ease;
}

.category-card:hover img{
    transform:scale(1.05);
}

.category-card .card-body{
    padding:15px;
}

.category-card h6{
    font-size:16px;
    margin-bottom:5px;
}

.category-card small{
    font-size:13px;
}
/* Sub-Category Specific Styles */
.subcategory-banner {
    background: linear-gradient(135deg, #232f3e 0%, #131921 100%);
    color: #ffffff;
    border-radius: 6px;
    padding: 1.5rem 2rem;
}

.sibling-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sibling-list-item {
    padding: 0.4rem 0;
    border-bottom: 1px border-dashed #e3e6e6;
    font-size: 0.875rem;
}

.sibling-list-item a {
    color: #0f1111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sibling-list-item a:hover {
    color: #c7511f;
}

.sibling-list-item.active a {
    font-weight: 700;
    color: #c7511f;
}

/* Product Catalog Page Styles */
.catalog-header-bar {
    background-color: #ffffff;
    border: 1px solid #e3e6e6;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
}

.filter-card {
    background-color: #ffffff;
    border: 1px solid #e3e6e6;
    border-radius: 6px;
    padding: 1.25rem;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1111;
    border-bottom: 1px solid #e3e6e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.pagination-custom .page-item .page-link {
    color: #0f1111;
    border-color: #d5d9d9;
    font-size: 0.875rem;
    font-weight: 600;
}

.pagination-custom .page-item.active .page-link {
    background-color: #febd69;
    border-color: #a88734;
    color: #111111;
}

.pagination-custom .page-item.disabled .page-link {
    color: #888888;
    background-color: #f7f7f7;
}

/* ================================================= */
/* Custom Product Page Styles (Amazon/Noon Standard) */
/* ================================================= */

body {
    background-color: #f8f9fa;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sticky layout rules for columns */
.sticky-top {
    position: sticky;
  
    z-index: 100;
}

/* Main Image presentation container */
.product-main-img-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eaeaea;
}

/* Thumbnail gallery borders */
.thumbnail-box {
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.thumbnail-box:hover, .thumbnail-box.active {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Buy Box Customization */
.card.shadow-sm {
    border-radius: 10px;
}

/* Button enhancements matching modern retail standards */
.btn-warning {
    background-color: #ffd814;
    border-color: #fcd200;
}

.btn-warning:hover {
    background-color: #f7ca00;
    border-color: #f2c200;
}
/* ================================================= */
/* Cart Page Professional Enhancements               */
/* ================================================= */

.table tbody tr td {
    vertical-align: middle;
}

.table-light {
    background-color: #fcfcfc !important;
}

/* Quantity input look adjustments inside cart */
.table input[type="number"] {
    border-color: #ced4da;
    border-radius: 4px;
}

.table input[type="number"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* =================================================================atea
   Checkout Page Layout & Sticky Fixes
   ================================================================ */

/* 1. Ensure the site header wrapper behaves properly as a sticky anchor */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1030; /* Keeps header above all content */
    background-color: #ffffff; /* Prevents transparency issues */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 2. Critical: Prevent parent elements from clipping sticky children */
/* If body, html, or main container have overflow: hidden, sticky fails. */
 

/* 3. Checkout Container & Row Structure */
.container {
    max-width: 1200px;
}

/* Ensure columns allow the sticky element to calculate height relative to the row */
.row.gx-4 {
    align-items: flex-start; 
}

/* 4. Right Column Sticky Order Summary Card */
.col-lg-4 .card[style*="position: sticky"] {
    transition: top 0.2s ease;
}

/* 5. Form Elements Polish */
.form-control:focus, 
.form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Interactive Payment Box Effects */
.form-check.border {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-check.border:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 991.98px) {
    /* Disable position sticky on mobile viewports where columns stack vertically */
    .col-lg-4 .card[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
        z-index: 1 !important;
        margin-top: 1.5rem;
    }
}

/* Dashboard Specific Styles */
.dashboard-nav .list-group-item {
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s ease-in-out;
}

.dashboard-nav .list-group-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dashboard-nav .list-group-item.active {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.avatar-placeholder {
    background-color: #e2e8f0;
}

 /* --- Professional Redesign Styles --- */

.mag-spotlight-card {
    background: linear-gradient(135deg, #2b1f1a 0%, #150f0d 100%) !important; /* Replaced pure black with a rich gourmet dark gradient */
    min-height: 450px;
    border: 1px solid rgba(255, 193, 7, 0.15);
    position: relative;
    overflow: hidden;
}

/* Editorial Tag */
.editorial-tag {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: rgba(255, 255, 255, 0.03);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    z-index: 0;
    pointer-events: none;
}

/* The Product Image Container */
.mag-image-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    mask-image: linear-gradient(to left, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 75%, transparent 100%);
}

/* The Content Card - Professional Polish */
.mag-content-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 50%; 
    margin-left: 3rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    padding: 2.5rem !important;
    color: #2b2b2b;
}

@media (max-width: 992px) {
    .mag-content-card {
        width: 90%;
        margin: 2rem auto;
    }
    .mag-image-container {
        width: 100%;
        opacity: 0.25;
        mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    }
    .editorial-tag {
        display: none;
    }
}

/* Clean Inline Price Box (Professional & Stable) */
.professional-price-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 18px;
}

/* Buttons */
.btn-mag-dark {
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-mag-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-mag-outline {
    background: transparent;
    color: #333;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}
.btn-mag-outline:hover {
    border-color: #333;
    background: rgba(0,0,0,0.04);
}

/* ==========================================================================
   Order Tracking Timeline (orders.php, order_success.php)
   ========================================================================== */
.tracking-steps {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 8px 0 4px;
}
.tracking-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.tracking-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 0;
}
.tracking-step.done:not(:last-child)::after {
    background: #198754;
}
.tracking-step-dot {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e9ecef;
}
.tracking-step.done .tracking-step-dot {
    background: #198754;
    color: #fff;
    box-shadow: 0 0 0 1px #198754;
}
.tracking-step.current .tracking-step-dot {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 0 0 1px #ffc107;
}
.tracking-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}
.tracking-step.done .tracking-step-label,
.tracking-step.current .tracking-step-label {
    color: #212529;
}
@media (max-width: 576px) {
    .tracking-step-label { font-size: 10px; }
    .tracking-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .tracking-step:not(:last-child)::after { top: 14px; }
}
/* ==========================================================================
   Homepage: Promotional Banner (Section 3)
   ========================================================================== */
.promo-banner {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(19,25,33,0.88) 0%, rgba(19,25,33,0.55) 55%, rgba(19,25,33,0.15) 100%);
}
.promo-banner-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

/* ==========================================================================
   Homepage: 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;
}

/* ==========================================================================
   Homepage: 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;
}

/* ==========================================================================
   Floating Chat Assistant Widget (Section 7)
   ========================================================================== */
.millat-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    font-family: inherit;
}

.chatbot-toggle-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}
.chatbot-toggle-btn:hover {
    transform: scale(1.06);
}

.chatbot-toggle-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #ffffff;
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.millat-chatbot.chatbot-open .chatbot-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chatbot-panel-header {
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-status {
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
}
.chatbot-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    margin-right: 4px;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    opacity: 0.8;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
}
.chatbot-close-btn:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.chatbot-msg a {
    color: inherit;
    text-decoration: underline;
}

.chatbot-msg-bot {
    background: #ffffff;
    border: 1px solid #e3e6e6;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-msg-user {
    background: var(--primary-color);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -2px;
}

.chatbot-chip {
    background: #ffffff;
    border: 1px solid var(--accent-yellow);
    color: var(--text-color);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.chatbot-chip:hover {
    background: var(--accent-yellow);
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}
.chatbot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a6b2c2;
    animation: chatbotBlink 1.2s infinite ease-in-out;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotBlink {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

.chatbot-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e3e6e6;
    border-radius: 12px;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease;
}
.chatbot-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.chatbot-product-card img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f8fa;
    flex-shrink: 0;
}
.chatbot-product-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.25;
}
.chatbot-product-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c7511f;
}

.chatbot-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e3e6e6;
    background: #ffffff;
    flex-shrink: 0;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #d9dce1;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.85rem;
    outline: none;
}
.chatbot-input:focus {
    border-color: var(--accent-yellow);
}

.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chatbot-send-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 480px) {
    .millat-chatbot { 
        right: 12px; 
        bottom: 80px; /* Increased from 12px to 80px to clear mobile footers */
    }
    .chatbot-panel { 
        width: calc(100vw - 24px); 
        right: -8px; 
        height: 65vh; 
        bottom: 64px; /* Adjusts the panel position relative to the higher toggle button */
    }
}



  /* --- Millat Mart Category Component Styling --- */

.mm-category-section {
    background-color: #fcfcfc;
}

/* Card Base Design */
.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;
}

/* Image Container Wrapper for Uniform Scaling */
.mm-img-wrapper {
    width: 100%;
    height: 140px; /* Fixed height for uniform presentation on desktop */
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.mm-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Card Body Customization */
.mm-cat-card .card-body {
    padding: 0.75rem 0.5rem;
}

.mm-cat-card h6 {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

/* --- Interactive Hover Effects (Desktop) --- */
@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(255, 193, 7, 0.3) !important;
    }

    .mm-cat-card:hover .mm-img-wrapper img {
        transform: scale(1.08);
    }

    .mm-cat-card:hover h6 {
        color: #d97706 !important;
    }
}

/* --- Mobile Responsiveness & Horizontal Swipe Carousel --- */
@media (max-width: 768px) {
    .mm-img-wrapper {
        height: 110px;
    }
    
    .mm-cat-card h6 {
        font-size: 0.85rem;
    }

    /* Transform grid into a smooth touch-scroll horizontal carousel */
    .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; /* Hide scrollbar for Chrome, Safari, Opera */
    }

    .mm-category-grid {
        -ms-overflow-style: none;  /* Hide scrollbar for IE, Edge */
        scrollbar-width: none;     /* Hide scrollbar for Firefox */
    }

    .mm-category-grid > .col {
        flex: 0 0 38%; /* Shows roughly 2.5 cards on screen for a natural swipe peek */
        max-width: 38%;
        scroll-snap-align: start;
    }
}

/* --- Mobile Horizontal Swipe Styles --- */
@media (max-width: 767.98px) {
    .product-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
        padding-bottom: 10px; /* Space for touch momentum */
        margin-right: -1.5rem; /* Bleed to the edge of the screen */
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .product-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .product-grid-track {
        display: flex;
        gap: 12px; /* Spacing between cards */
        scroll-snap-type: x mandatory;
    }

    .product-item-col {
        /* Forces roughly 2.3 cards to show on screen at once */
        flex: 0 0 42%; 
        max-width: 42%;
        scroll-snap-align: start;
    }
}

/* --- Desktop Grid Styles (MD and up) --- */
@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%;
    }
}

/* --- Best Sellers: Mobile Horizontal Swipe Styles --- */
@media (max-width: 767.98px) {
    .bestseller-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
        padding-bottom: 10px; /* Space for touch momentum */
        margin-right: -1.5rem; /* Edge-to-edge bleed on mobile screens */
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .bestseller-scroll-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari/Opera */
    }

    .bestseller-grid-track {
        display: flex;
        gap: 12px; /* Consistent spacing between cards */
        scroll-snap-type: x mandatory;
    }

    .bestseller-item-col {
        /* Shows ~2 full cards and a peek of the 3rd card */
        flex: 0 0 42%; 
        max-width: 42%;
        scroll-snap-align: start;
    }
}

/* --- Best Sellers: Desktop Grid Styles (MD and up) --- */
@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%;
    }
}

/* --- Unique Mobile Swipe Layout for Trending Section --- */
@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; /* Edge-to-edge mobile bleed */
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }

    .trending-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .trending-grid-track {
        display: flex;
        gap: 16px; /* Generous gap for breathing room */
        scroll-snap-type: x mandatory;
    }

    .trending-item-col {
        /* Makes each promo card wide (80% of viewport) like an immersive app card */
        flex: 0 0 80%; 
        max-width: 80%;
        scroll-snap-align: center; /* Snaps cards nicely to the center/start */
    }

    /* Give the promo image a bit more height on mobile for visual impact */
    .promo-tile-img {
        height: 220px; 
        background-size: cover;
        background-position: center;
    }
}

/* --- Desktop Grid Styles (MD and up) --- */
@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;
    }
}
