/* ===== TOP INFO BAR ===== */
.top-info-bar {
    background-color: #FF6E3A;
    padding: 6px 0;
    font-family: Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

/* Inner container */
.top-info-content {
    max-width: 98%;
    margin: auto;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* Text & Links */
.top-info-content span,
.top-info-content a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-header {
    background-color: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* Hover effect */
.top-info-content a:hover {
    text-decoration: underline;
}

/* Right side menu spacing */
.top-info-content .d-flex.align-items-center {
    gap: 12px;
}

a {
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* =========================
   Header Bar Stylish Update
========================= */
.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #FF6E3A;
    color: #ffffff;
    min-height: 80px;
    padding: 10px 25px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* Logo area adjustment */
.logo {
    padding-left: 80px;
    flex-shrink: 0;
}

/* Desktop Links Styling */
.desktop-links {
    display: flex;
    gap: 15px;
    margin: 0 15px;
}

.desktop-links .desktop-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 15px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

/* .desktop-links .desktop-link:hover {
    background: #ffffff;
    color: #FF6E3A;
    border-color: #ffffff;
    text-decoration: none;
} */

/* Search Wrapper Enhancement */
.search-wrapper {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 350px;
    width: 100%;
}

.search-wrapper input {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    flex: 1;
}

.search-wrapper button {
    background: #f0c14b;
    border: none;
    padding: 0 18px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.search-wrapper button:hover {
    background: #e6b347;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 15px;
}

.account-lists {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 15px !important;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
}

.account-lists:hover {
    background: rgba(255, 255, 255, 0.15);
}

.account-lists div:first-child {
    font-size: 11px;
    color: #ffe6d5;
}

.account-lists div:last-child a {
    font-weight: 600;
    font-size: 14px;
}

.cart a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.2s;
    text-decoration: none;
    color: white;
}

.cart a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.cart .fa-shopping-cart {
    font-size: 22px;
}

.cart-badge {
    background: #f08804;
    color: #000;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 4px;
}

/* Logout button */
.logout a {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: 0.2s;
    text-decoration: none;
}

.logout a:hover {
    background: #ffffff;
    color: #FF6E3A;
    text-decoration: none;
}

.custom-cart {
    padding-right: 80px;
}

.custom-cart a {
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.custom-cart a:hover {
    background-color: #218838;
    color: #fff;
}

/* Default (Desktop) */
.logo:nth-of-type(1) {
    display: block;
}

.logo:nth-of-type(2) {
    display: none;
}

/* Desktop header links */
.desktop-links {
    gap: 20px;
}

.desktop-links .desktop-link {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    /* background-color: #f4f4f4; */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.desktop-links .desktop-link i {
    font-size: 14px;
}

/* Body padding for fixed header */
body {
    padding-top: 116px;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {

    /* Show image logo */
    .header-bar .logo:nth-of-type(2) {
        display: block !important;
        order: 1;
        flex: 0 0 auto !important;
        /* IMPORTANT */
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide text logo */
    .header-bar .logo:nth-of-type(1) {
        display: none !important;
    }

    /* Smaller logo size */
    .header-bar .logo:nth-of-type(2) img {
        max-width: 80px;
        /* image choto */
        height: auto;
        display: block;
    }

    /* First row layout */
    .header-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        margin-top: 10px;
    }

    /* Account + Cart same row */
    .header-icons {
        order: 2;
        flex: 1;
        display: flex !important;
        justify-content: flex-end;
        /* right side */
        align-items: center;
        gap: 6px;
        margin: 0 !important;
    }

    /* Search full width second row */
    .header-bar>div:has(.search-wrapper) {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 8px;
    }

}
/* Extra small devices */
@media (max-width: 480px) {
    .header-bar>.logo:last-of-type img {
        max-width: 70px;
    }

    .account-lists {
        padding: 2px 5px !important;
    }

    .account-lists div:first-child {
        display: none;
    }

    .account-lists div:last-child a {
        font-size: 12px !important;
    }

    .cart.custom-cart a {
        padding: 3px 6px !important;
        font-size: 9px;
    }

    .cart.custom-cart a i {
        font-size: 10px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .header-icons {
        gap: 3px;
    }

    .account-lists div:last-child a {
        font-size: 8px !important;
    }

    .cart.custom-cart a {
        padding: 2px 4px !important;
    }
}

/* Responsive touch-ups for tablet */
@media (max-width: 1100px) and (min-width: 769px) {
    .header-bar {
        padding: 10px 15px;
    }

    .desktop-links {
        gap: 8px;
    }

    .desktop-links .desktop-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .header-bar {
        min-height: auto;
    }

    .logo {
        padding-left: 20px;
    }

    .custom-cart {
        padding-right: 20px;
    }
}






/* -------------------- */
/* Slider & Sidebar Professional Style */
/* -------------------- */

.slider-container {
    padding: 20px 0;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Desktop Sidebar */
.side-space.left-space {
    /* width: 280px; */
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

.all-categories-menu.always-visible {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    z-index: 9999;
}

.category-item,
.subcategory-item {
    position: relative;
}

.category-link,
.subcategory-item>a,
.childcategory-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-link:hover,
.subcategory-item>a:hover,
.childcategory-menu a:hover {
    background: #fffbf0;
    color: #ff9900;
}

/* Desktop Submenus */
.subcategory-menu,
.childcategory-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 5px 0;
    z-index: 1000;
}

.category-item:hover>.subcategory-menu,
.subcategory-item:hover>.childcategory-menu {
    display: block;
}

.child-toggle {
    float: right;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Slider */
.slider-main {
    flex: 1;
}

.amazon-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 20px 25px;
    border-radius: 6px;
    max-width: 350px;
}

/* Controls & Dots */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: #ff9900;
    color: #fff;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff9900;
}

/* Mobile Categories Accordion */
.mobile-categories {
    width: 100%;
}

.mobile-categories .accordion-button {
    background: #ff9900;
    color: white;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 6px !important;
}

.mobile-categories .accordion-button:not(.collapsed) {
    background: #e68a00;
    color: white;
    box-shadow: none;
}

.mobile-categories .accordion-button:focus {
    box-shadow: none;
    border-color: #ff9900;
}

.mobile-categories .accordion-collapse {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.mobile-category-item {
    border-bottom: 1px solid #eee;
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background: #fff;
    cursor: pointer;
}

.mobile-category-header a {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    pointer-events: auto;
}

.mobile-category-header a:hover {
    color: #ff9900;
}

.mobile-toggle-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-toggle-btn i {
    transition: transform 0.3s ease;
}

.mobile-subcategory-menu {
    background: #f8f9fa;
    padding-left: 25px;
}

.mobile-subcategory-item {
    border-bottom: 1px solid #eaeaea;
}

.mobile-subcategory-item:last-child {
    border-bottom: none;
}

.mobile-subcategory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    cursor: pointer;
}

.mobile-subcategory-header a {
    flex: 1;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    pointer-events: auto;
}

.mobile-childcategory-menu {
    background: #f1f1f1;
    padding-left: 35px;
}

.mobile-child-link {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-child-link:hover {
    background: #fff;
    color: #ff9900;
}

.mobile-child-link:last-child {
    border-bottom: none;
}


/* Fix mobile dropdown scroll issue */
.mobile-categories {
    position: relative;
    z-index: 1000;
}

.mobile-categories .accordion-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.mobile-categories .accordion-body {
    max-height: 380px;
    overflow-y: auto;
}

/* Fix for mobile view */
@media (max-width: 991px) {
    .slider-wrapper {
        flex-direction: column;
        position: relative;
    }

    .mobile-categories {
        order: 1;
        margin-bottom: 0;
        position: relative;
    }

    .slider-main {
        order: 2;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .side-space.left-space {
        display: none !important;
    }

    .slide-content {
        max-width: 90%;
        bottom: 20px;
        left: 15px;
        padding: 15px 20px;
    }

    .slide img {
        height: 300px;
        object-fit: cover;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-controls {
        padding: 0 10px;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .slider-wrapper {
        flex-direction: column;
    }

    .mobile-categories {
        order: 1;
        margin-bottom: 15px;
    }

    .slider-main {
        order: 2;
        width: 100%;
    }

    .side-space.left-space {
        display: none !important;
    }

    .slide-content {
        max-width: 90%;
        bottom: 20px;
        left: 15px;
        padding: 15px 20px;
    }

    .slide img {
        height: 220px;
        object-fit: cover;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-controls {
        padding: 0 10px;
    }
}

@media (min-width: 992px) {
    .mobile-categories {
        display: none !important;
    }
}




/* Ensure mobile categories dropdown appears above slider */
.mobile-categories {
    position: relative;
    /* required for z-index */
    z-index: 2000;
    /* above slider */
}

/* Make the main accordion expand properly */
.mobile-categories .accordion-collapse {
    position: static !important;
    /* don't let it absolute inside hidden parent */
    max-height: none !important;
    /* allow full expansion */
    overflow: visible !important;
}

/* Make subcategory & childcategory menus expand correctly */
.mobile-subcategory-menu,
.mobile-childcategory-menu {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Optional: make background visible on dropdowns */
.mobile-subcategory-menu,
.mobile-childcategory-menu {
    background: #fff;
}

/* Rotate toggle icon on collapse */
.mobile-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.mobile-toggle-btn i {
    transition: transform 0.3s ease;
}

/* Mobile only: move categories above slider */
@media (max-width: 991.98px) {
    .slider-container {
        display: flex;
        flex-direction: column;
    }

    .mobile-categories {
        order: -1;
        /* Moves it to the top on mobile */
        margin-bottom: 1rem;
        /* Optional spacing */
    }
}
