/* ================= header css Start ================= */
html,
body {
    overflow-x: hidden;
}

.desktop-space {
    height: 102px;
}

/* Desktop Header */
.desktop-top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.desktop-category-header {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid #ddd;

}

@media(min-width:992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }
}

.dropdown {
    position: static;
}

.dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1060;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.mobile-space {
    height: 110px;
}

body.offcanvas-open .mobile-header {
    display: none !important;
}

.accordion-button::after,
.dropdown-toggle::after {
    display: none !important;
}

.offcanvas {
    max-width: 78%;
}

/* ===== DESKTOP HEADER CATEGORY GAP FIX ===== */
.desktop-category-header .nav {
    gap: 0px;
}

.desktop-category-header .nav-link {
    padding: 4px 8px;
    font-size: 14px;
}

/* ================= MOBILE CHILD CATEGORY ================= */
.mobile-child a {
    display: block;
    padding: 6px 0 6px 12px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    /* ✅ Remove underline */
}

.mobile-child a:hover {
    color: #80aef3;
}

/* ================= DESKTOP DROPDOWN CHILD CATEGORY ================= */
.dropdown-item {
    text-decoration: none;
    /* ✅ Remove underline */
}

.dropdown-item:hover {
    color: #9fbff0;
}

.wishlist-header i {
    transition: 0.2s ease;
}

.wishlist-header:hover i {
    color: #d6003d;
}

.wishlist-header,
.wishlist-header * {
    text-decoration: none !important;
}

.wishlist-header::before,
.wishlist-header::after {
    content: none !important;
}
/* scroll */
.header-category-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 18px;
}

.header-category-scroll::-webkit-scrollbar {
    display: none;
}

.header-category-scroll .nav-item {
    white-space: nowrap;
}

/* scroll buttons */
.cat-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.cat-scroll-btn.left { left: 0; }
.cat-scroll-btn.right { right: 0; }

.header-icon a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    text-decoration: none;
}

.header-icon i {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

/* Profile Dropdown Wrapper */
.profile-dropdown{
    position: relative;
    display: inline-block;
}

/* POPUP */
.profile-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 12px;
    display: none;
    z-index: 999;
    text-align: center;
}

/* LINKS */
.profile-menu a{
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: #1d1b1b;
    text-decoration: none;
}

.profile-menu a:hover{
    background: #e2dede;
    border-radius: 6px;
}

/* DIVIDER */
.profile-menu hr{
    margin: 2px 0;  
    border: none;
    border-top: 2px solid #c2baba;
}

/* SHOW CLASS */
.profile-menu.show{
    display: block;
}

/* OPTIONAL ARROW */
.profile-menu::before{
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
.mobile-profile-menu{
    position: absolute;
    top: 100%;
    right: 0;
    width: 190px;
    display: none;
    z-index: 9999;
}
/* DIVIDER */
.mobile-profile-menu hr{
    margin: 2px 0;  
    border: none;
    border-top: 2px solid #c2baba;
}

.mobile-profile-menu a{
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: center;
}

.mobile-profile-menu a:hover{
    color: #0d6efd;
}

/* ================= header css End ================= */

/* ================= Index css Start================= */

/* ================= GENERAL ================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ================= CAROUSEL ================= */
.carousel-img {
    width: 100%;
    height: 70vh;
    min-height: 250px;
    max-height: 500px;
    object-fit: cover;
}

@media(max-width:768px) {
    .carousel-img {
        height: 40vh;
    }
}

/* ================= INFO STRIP ================= */
.info-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 12px;
    background: #dc3545;
    font-size: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

@media(max-width:768px) {
    .info-section {
        gap: 12px;
        padding: 6px 8px;
        font-size: 12px;
    }

    .info-item {
        gap: 4px;
        white-space: nowrap;
    }
}

/* LEFT */
.promo-left {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffa800;
}

/* RIGHT */
.promo-right {
    background: linear-gradient(135deg, #8e0e6f, #c2185b);
    padding: 40px 20px;
}

/* CARD */
.promo-card {
    background: #f7f5f3;
    border-radius: 22px;
    padding: 12px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
}

.promo-card span {
    background: linear-gradient(135deg, #8e0e6f, #c2185b);
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    color: #fff;
}

/* MOBILE */
@media(max-width:768px) {
    .promo-card {
        height: 260px;
    }

    .promo-card img {
        height: 180px;
    }
}

/* ================= CATEGORY & PRODUCTS ================= */
.category-section {
    position: relative;
    width: 100%;
    padding: 1rem 0;
    background: #fff;
}

.category-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px 10px;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-item,
.product-card {
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.category-item {
    width: 300px;
    height: 200px;
    position: relative;
}

.category-item img,
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-item:hover img,
.product-card:hover img {
    transform: scale(1.03);
}

.category-item p {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    white-space: nowrap;
    text-align: center;
}

.category-item a,
.product-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* PRODUCT CARD */
.product-card {
    width: 220px;
    margin-right: 3px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 5px;
    min-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.product-card .price {
    font-size: 14px;
    font-weight: 500;
    min-height: 22px;
    margin-bottom: 8px;
}

.product-card .price del {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.product-card .brand {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.product-card .choose-btn {
    margin-top: auto;
    font-size: 12px;
    padding: 6px 10px;
    background: #000;
    color: #fff;
    border-radius: 20px;
    text-align: center;
    display: inline-block;
    transition: background 0.3s;
}

.product-card .choose-btn:hover {
    background: #444;
}

.discount-badge,
.sold-badge {
    position: absolute;
    top: 10px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    color: #fff;
}

.discount-badge {
    right: 10px;
    background: #28a745;
}

.sold-badge {
    left: 10px;
    background: #dc3545;
}

/* NAV BUTTONS */
.cat-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
}

.cat-btn.left {
    left: 10px;
}

.cat-btn.right {
    right: 10px;
}

@media(max-width:768px) {
    .cat-btn {
        display: none;
    }
}

/* RESPONSIVE */
@media(max-width:768px) {
    .category-item {
        width: 250px;
        height: 160px;
    }

    .product-card {
        width: 180px;
    }
}

/* Product Image */
.product-card img {
    width: 100%;
    height: 190px;
    /* fixed height for all */
    object-fit: cover;
    border-radius: 10px;
}

/* top brands */

.top-brands {
    padding: 30px 0;
    /* background: #f3edff; */
    overflow: hidden;
}

.brand-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-slider {
    width: 100%;
    overflow: hidden;
}

.brand-track {
    display: flex;
    gap: 25px;
    animation: scrollBrands 25s linear infinite;
}

.brand-item {
    min-width: 160px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.brand-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

/* Animation */
@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile */
@media(max-width:768px) {
    .brand-item {
        min-width: 130px;
        height: 70px;
    }
}


.gender-box {
    height: 350px;
    border-radius: 20px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease;
}

.gender-box:hover {
    transform: scale(1.03);
}

.gender-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.gender-box div {
    position: relative;
    z-index: 2;
}


/* Mobile tweak */
@media(max-width:768px) {
    .gender-box {
        height: 220px;
    }
}

.shop-category-title {
    font-size: 28px;
    /* Desktop */
}

@media (max-width: 576px) {
    .shop-category-title {
        font-size: 19px;
        /* Mobile */
    }
}

/* PRODUCTS GRID */
.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* INDIVIDUAL PRODUCT CARD */
.product-box {
    flex: 0 0 calc(16.66% - 12.5px); /* 6 items per row with gap */
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform .3s;
}
.product-box:hover {
    transform: translateY(-5px);
}
.product-img-box {
    width: 100%;
    height: 180px; /* adjust height to fit 6 per row better */
    object-fit: cover;
    border-radius: 8px;
}
.product-title {
    font-size: 13px;
    font-weight: 600;
    margin: 6px 0;
    min-height: 38px;
}
.price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.price-current { font-weight: 600; }
.price-old { text-decoration: line-through; font-size: 12px; color: #777; }
.price-discount { font-size: 12px; color: #28a745; font-weight: 600; }
.view-product-btn {
    margin-top: auto;
    text-align: center;
    padding: 6px 0;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
}

/* RESPONSIVE */
@media(max-width: 1200px){ .product-box { flex: 0 0 calc(20% - 12px); } } /* 5 per row */
@media(max-width: 992px){ .product-box { flex: 0 0 calc(25% - 12px); } }  /* 4 per row */
@media(max-width: 768px){ .product-box { flex: 0 0 calc(33.33% - 10px); } } /* 3 per row */
@media(max-width: 576px){ .product-box { flex: 0 0 calc(50% - 8px); } }    /* 2 per row */
@media(max-width: 400px){ .product-box { flex: 0 0 100%; } }               /* 1 per row */