/* --- Base CSS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif, Arial;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

header {
    /* background: white; */
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    /* color: #0d6efd; */
    text-decoration: none;
}

.logo img {
    /* background: #0d6efd; */
    /* color: white; */
    padding: 8px;
    border-radius: 8px;
}

.search-container {
    flex-grow: 1;
    display: flex;
    max-width: 600px;
    order: 2;
}

.search-container input {
    width: 100%;
    padding: 10px;
    border: 2px solid #0d6efd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-container select {
    border: 2px solid #0d6efd;
    border-left: 1px solid #ddd;
    border-right: none;
    padding: 0 10px;
    background: white;
}

.search-container button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    gap: 20px;
    color: #8b96a5;
    text-align: center;
    font-size: 12px;
    order: 3;
}

.user-actions i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* --- Sidebar --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    background: #f7f8f9;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #8b96a5;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
}

.sub-menu {
    background: #f9f9f9;
    display: none;
    list-style: none;
    padding-left: 20px;
}

.has-dropdown.open .sub-menu {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* --- Nav --- */
nav {
    display: flex;
    align-items: center;
    padding: 12px 5%;
    background: white;
    border-bottom: 1px solid #eee;
}

.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 25px;
    font-weight: 500;
}

/* --- Main Layout --- */
.container {
    display: flex;
    padding: 20px 5%;
    gap: 20px;
}

.category-sidebar {
    width: 240px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.category-sidebar li {
    padding: 12px 20px;
    list-style: none;
    cursor: pointer;
    color: #505050;
}

.category-sidebar li:hover {
    background: #e5f1ff;
    color: #0d6efd;
    font-weight: bold;
}

.hero-banner {
    flex-grow: 1;
    min-height: 380px;
    border-radius: 8px;
    padding: 40px;
    background: #e3f0ff url('./public/Image/backgrounds/Banner-board-800x420\ 2.png') no-repeat right;
    background-size: cover;
}

.hero-text h1 {
    font-size: 32px;
    margin: 10px 0 20px;
}

.hero-text button {
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.right-cards {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card {
    background: #e3f0ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.login-card button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-join {
    background: #0d6efd;
    color: white;
}

.promo-card {
    padding: 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
}

.mobile-chips {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 5%;
    gap: 10px;
    scrollbar-width: none;
}

.mobile-chips::-webkit-scrollbar {
    display: none;
}

/* Hide Scrollbar */
.chip {
    background: #eff2f4;
    color: #0d6efd;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

/* --- Deals & Home Sections --- */
.section-wrapper {
    padding: 0 5% 40px;
}

.deals-container {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    margin-bottom: 20px;
}

.deals-info {
    padding: 20px;
    width: 280px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.deals-info h3 {
    font-size: 20px;
    font-weight: bold;
}

.deals-info p {
    color: #8b96a5;
    margin-bottom: 15px;
}

.timer {
    display: flex;
    gap: 6px;
}

.timer-box {
    background: #606060;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 45px;
}

.timer-box span {
    display: block;
    font-size: 16px;
    font-weight: bold;
}

.timer-box label {
    font-size: 10px;
}

/* Scroll functionality without bar */
.deals-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.deals-scroll::-webkit-scrollbar {
    display: none;
}

/* Bar Remove Here */

.deal-card {
    min-width: 250px;
    padding: 20px;
    border-right: 1px solid #eee;
    text-align: center;
    scroll-snap-align: start;
}

.deal-card img {
    height: 190px;
    object-fit: contain;
    margin-bottom: 15px;
}

.deal-card p {
    font-size: 14px;
    margin-bottom: 8px;
}

.discount-tag {
    background: #FFE3E3;
    color: #EB001B;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.grid-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.grid-banner {
    width: 280px;
    background: url('./public/Image/backgrounds/Group\ 969.png') no-repeat center;
    background-size: cover;
    padding: 20px;
    flex-shrink: 0;
    color: #1c1c1c;
}

.grid-banner h3 {
    font-size: 20px;
    margin-bottom: 15px;
    max-width: 150px;
}

.grid-banner button {
    background: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}


.grid-bannerr {
    width: 280px;
    background: url('./public/Image/backgrounds/image\ 98.png') no-repeat center;
    background-size: cover;
    padding: 20px;
    flex-shrink: 0;
    color: #1c1c1c;
}

.grid-bannerr h3 {
    font-size: 20px;
    margin-bottom: 15px;
    max-width: 150px;
}

.grid-bannerr button {
    background: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.grid-item {
    padding: 20px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.grid-item h4 {
    font-size: 14px;
    font-weight: 500;
}

.grid-item span {
    color: #8b96a5;
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

.grid-item img {
    width: 180px;
    height: 180px;
    /* object-fit: contain; */
}

/* Mobile Adjustments */
@media (max-width: 992px) {

    .deals-container,
    .grid-section {
        flex-direction: column;
    }

    .deals-info,
    .grid-banner {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .grid-items {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Bar Remove */
        -ms-overflow-style: none;
    }

    .grid-items::-webkit-scrollbar {
        display: none;
    }

    /* Bar Remove */

    .grid-item {
        min-width: 50%;
        border-bottom: none;
        scroll-snap-align: start;
    }

    .deals-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
    }

    .deals-info .timer {
        scale: 0.8;
    }

    .grid-banner {
        height: 150px;
    }

    .user-actions {
        order: 3;
        width: 100%;
        justify-content: space-around;
        border-top: 1px solid #f1f1f1;
        padding-top: 10px;
    }

    .search-container {
        order: 2;
        width: 100%;
        margin-bottom: 15px;
    }

    .logo-section {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }

    .hamburger {
        display: block;
        margin-right: 10px;
    }

    .container {
        flex-direction: column;
        padding: 10px 5%;
    }

    .category-sidebar,
    .right-cards,
    .nav-links-desktop {
        display: none;
    }

    .mobile-chips {
        display: flex;
    }

    /* }
.products-imgs img{
    width: 189px;
    height: 200%;
    object-fit: contain;
} */


    /* --- Extra services --- */
    .rec-section-title {
        font-size: 24px;
        font-weight: bold;
        color: #1c1c1c;
        margin-bottom: 20px;
    }

    .rec-grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        /* Desktop: 5 items */
        gap: 20px;
    }

    .rec-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        transition: 0.3s;
        cursor: pointer;
    }

    .rec-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-color: #0d6efd;
    }

    .rec-image-box {
        width: 100%;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .rec-image-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .rec-price {
        font-size: 16px;
        font-weight: 600;
        color: #1c1c1c;
        margin-bottom: 5px;
    }

    .rec-desc {
        font-size: 14px;
        color: #8b96a5;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;


        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- EXTRA SERVICES SECTION --- */
    .extra-services-title {
        font-size: 24px;
        font-weight: bold;
        margin: 40px 0 20px;
    }

    .extra-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }

    .extra-card {
        background: white;
        border: 1px solid #b4b2b2;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }

    .extra-img {
        height: 150px;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .extra-icon-circle {
        position: absolute;
        bottom: -20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: #D1E7FF;
        border: 2px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1c1c1c;
    }

    .extra-content {
        padding: 25px 20px 20px;
        font-size: 14px;
        font-weight: 500;
        color: #1c1c1c;
        line-height: 1.3;
    }

    .section-wrapper {
        padding: 20px 5%;
    }

    /* --- RESPONSIVE DESIGN --- */
    @media (max-width: 992px) {
        .rec-grid-container {
            grid-template-columns: repeat(2, 1fr);
            /* Mobile: 2 items per row */
            gap: 10px;
        }

        .rec-card {
            padding: 10px;
        }

        .rec-image-box {
            height: 120px;
        }

        .extra-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .rec-section-title {
            font-size: 18px;
        }

        .extra-grid {
            grid-template-columns: 1fr;
        }
    }





    /* flags section */
    /* --- SUPPLIERS BY REGION SECTION --- */
    .sbr-wrapper {
        padding: 30px 5%;
        background-color: #f8f9fa;
    }

    .sbr-title {
        font-size: 24px;
        font-weight: bold;
        color: #1c1c1c;
        margin-bottom: 24px;
    }

    .sbr-grid {
        display: grid;
        /* Desktop: 5 columns */
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .sbr-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .sbr-flag {
        width: 28px;
        height: 20px;
        object-fit: cover;
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .sbr-info {
        display: flex;
        flex-direction: column;
    }

    .sbr-country {
        font-size: 16px;
        color: #1c1c1c;
        line-height: 1.2;
    }

    .sbr-domain {
        font-size: 13px;
        color: #8b96a5;
    }

    /* --- RESPONSIVE DESIGN --- */

    /* Tablet & Small Desktop */
    @media (max-width: 1024px) {
        .sbr-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* Mobile View: EXACT 3 FLAGS PER ROW */
    @media (max-width: 768px) {
        .sbr-title {
            font-size: 18px;
            margin-bottom: 15px;
        }

        .sbr-grid {
            grid-template-columns: repeat(3, 1fr);
            /* Row mein 3 items */
            gap: 15px 10px;
        }

        .sbr-country {
            font-size: 13px;
        }

        .sbr-domain {
            font-size: 11px;
        }

        .sbr-flag {
            width: 22px;
            height: 16px;
        }
    }

    /* Very small screens */
        @media (max-width: 400px) {
            .sbr-grid {
                gap: 10px 5px;
            }
    
            .sbr-country {
                font-size: 11px;
            }
        }
    }




     /* ── SUPPLIERS BY REGION ────────────────────── */
    .region-card {
      background: #fff;
      border: 1px solid #e8e8e8;
      border-radius: 8px;
      padding: 18px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      height: 100%;
    }

    .region-card img {
      width: 32px;
      height: 24px;
      border-radius: 3px;
      object-fit: cover;
    }

    .region-card .info .title {
      font-size: 0.88rem;
      font-weight: 600;
      color: #222;
      margin-bottom: 2px;
    }

    .region-card .info .subtitle {
      font-size: 0.72rem;
      color: #888;
    }

/* 
<!-- ===========Coded BY MZ-WEBDEV============ -->
<!-- ===========Coded BY MZ-WEBDEV============ -->
<!-- ===========Coded BY MZ-WEBDEV============ -->
<!-- ===========Coded BY MZ-WEBDEV============ --> */
