/*your custom css goes here*/

/* Force main wrapper background */
.aiz-main-wrapper { background: #fff !important; }

/* ===== Hide Left Floating Sidebar ===== */
.aiz-sidebar-left,
.left-sidebar,
body > .position-fixed.d-none.d-xl-block,
.d-none.d-xl-block[style*="left"],
.aiz-category-menu-sidebar {
    display: none !important;
}

/* Hide category menu icon on homepage */
.category-menu-icon-box {
    display: none !important;
}

/* Category menu hover dropdown */
#hover-category-menu {
    min-width: 250px !important;
}

#hover-category-menu .aiz-category-menu {
    min-width: 250px !important;
}

.aiz-category-menu .category-nav-element {
    white-space: nowrap !important;
    padding: 10px 20px !important;
}

/* ===== Top Navbar (Language/Currency Bar) - Always Visible ===== */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ===== Header (Logo + Search) - Always Visible ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ===== Bottom Menu Bar (首页、分类、商品等) - Smooth Hide on Scroll ===== */
header .bg-white.border-top.border-gray-200 {
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, max-height 0.6s ease-in-out;
    max-height: 100px;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
}

/* Hide bottom menu links on scroll with smooth animation */
body.scrolled header .bg-white.border-top.border-gray-200 {
    transform: translateY(-100%);
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

/* ===== Logo Bar Area Layout ===== */
header .logo-bar-area {
    padding: 20px 0;
}

header .logo-bar-area .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

header .logo-bar-area .d-flex {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
}

/* ===== Logo Styling ===== */
header .logo-bar-area .col-auto:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    margin-right: 110px !important;
}

header .logo-bar-area a[href*="home"] {
    display: flex;
    align-items: center;
}

header .logo-bar-area img {
    width: 340px !important;
    height: 60px !important;
    max-width: 340px !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

/* ===== Search Box - Large Centered Design ===== */
.front-header-search {
    flex: 0 0 369px !important;
    max-width: 369px !important;
    width: 369px !important;
}
.front-header-search .position-relative {
    width: 100% !important;
}

.front-header-search .input-group {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    height: 39px !important;
    width: 369px !important;
    position: relative !important;
}

.front-header-search .input-group::before {
    content: '\f002' !important;
    font-family: 'Line Awesome Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #999 !important;
    font-size: 18px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.front-header-search .input-group:focus-within {
    border-color: #ff9800 !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1) !important;
}

.front-header-search input[type="text"] {
    background: #fff !important;
    border: none !important;
    padding: 10px 16px 10px 40px !important;
    font-size: 14px !important;
    height: 37px !important;
    color: #333 !important;
}

.front-header-search input[type="text"]::placeholder {
    color: #999 !important;
}

.front-header-search .input-group-append {
    display: flex !important;
}

.front-header-search .input-group-append button {
    border-radius: 0 4px 4px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #ff9800 !important;
    color: #fff !important;
    font-weight: 400 !important;
    height: 37px !important;
    transition: background 0.3s ease !important;
    width: 63px !important;
    min-width: 63px !important;
    max-width: 63px !important;
}

.front-header-search .input-group-append button:hover {
    background: #f57c00 !important;
}

.front-header-search .input-group-append button i {
    font-size: 18px !important;
}

/* ===== Right Side Icons Area ===== */
header .logo-bar-area > div > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

header .logo-bar-area > div > div:last-child > div {
    margin: 0 !important;
}

/* ===== Bottom Menu Links Styling (首页、分类、商品等) ===== */
header .bg-white.border-top.border-gray-200 {
    padding: 0 !important;
    margin-top: -20px !important;
}

header .bg-white.border-top.border-gray-200 .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

header .bg-white.border-top.border-gray-200 .list-inline {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

header .bg-white.border-top.border-gray-200 .list-inline-item {
    margin: 0 5px !important;
}

header .bg-white.border-top.border-gray-200 .list-inline-item a {
    padding: 15px 55px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    opacity: 1 !important;
}

header .bg-white.border-top.border-gray-200 .list-inline-item a:hover {
    color: #ff9800 !important;
    opacity: 1 !important;
}

/* Active menu item with yellow underline */
header .bg-white.border-top.border-gray-200 .list-inline-item a.active {
    opacity: 1 !important;
    color: #ff9800 !important;
}

header .bg-white.border-top.border-gray-200 .list-inline-item a.active::after {
    display: none !important;
}

/* ===== Navigation Bar Width Alignment ===== */
header nav,
header .container-fluid {
    max-width: 100% !important;
}

/* ===== Unified Container Width ===== */
.home-banner-area .container,
section .container,
.mb-4 .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* ===== Category Icon Box Styles - NO BORDER ===== */
.category-icon-box {
    transition: all 0.3s ease;
}

.category-icon-box:hover {
    transform: translateY(-5px);
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.category-icon-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Category carousel auto play and hide arrows */
.category-carousel-wrapper .slick-prev,
.category-carousel-wrapper .slick-next {
    display: none !important;
}

/* ===== HIDE Daily Deals Section ===== */
.daily-deals-section {
    display: none !important;
}

/* ===== Section Padding Unified ===== */
.category-section,
#section_newest,
#section_featured,
#section_best_selling,
#section_home_categories,
#section_best_sellers {
    padding: 0 !important;
}

.category-section .container,
#section_newest .container,
#section_featured .container,
#section_best_selling .container,
#section_home_categories .container,
#section_best_sellers .container {
    max-width: 1200px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== Section Background ===== */
section .px-2,
section .px-md-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* ===== Hide Carousel Arrow Buttons ===== */
.home-banner-area .slick-prev,
.home-banner-area .slick-next,
.carousel-control-prev,
.carousel-control-next {
    display: none !important;
}

/* ===== Product Card Styling ===== */

/* Outer carousel-box: transparent, only spacing */
.aiz-carousel .carousel-box,
section .carousel-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px !important;
}

/* Product cards: single border, white background */
.aiz-card-box {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: border 0.2s ease !important;
}

/* Disable shadow on hover from template class */
.aiz-card-box.hov-shadow-md:hover {
    box-shadow: none !important;
}

/* Desktop hover: orange border + slight lift */
@media (min-width: 992px) {
    .aiz-card-box:hover {
        border: 1px solid #ff9800 !important;
        transform: translateY(-3px);
        cursor: pointer;
    }
}

/* Mobile: no hover effect */
@media (max-width: 991px) {
    .aiz-card-box:hover {
        border: 1px solid #eee !important;
    }
}

/* Section header layout - title left, view all right */
section .d-flex.mb-3,
section .d-flex.mb-4,
section .mb-3.mb-md-4 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

/* Section title styling */
section h3,
section .fs-16,
section .fs-18,
section .fw-600 {
    margin: 0 !important;
    font-weight: 600 !important;
    background: transparent !important;
}
/* Remove orange underline under section titles generated by border-bottom utility */
section h3 span.border-bottom { border-bottom-color: transparent !important; }

/* View All button styling - remove all button styles */
section .btn,
section .btn-link,
section .btn-primary,
section .btn-soft-primary,
section a[href*="all"],
section .text-blue,
section .text-reset {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #ff9800 !important;
    font-size: 14px !important;
    padding: 0 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

section .btn:hover,
section .btn-link:hover,
section a[href*="all"]:hover {
    color: #f57c00 !important;
    text-decoration: none !important;
    background: none !important;
}

/* Dedicated view-all link style */
.view-all-link {
    color: #ff9800 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.view-all-link::after {
    content: '\003E'; /* > */
    font-weight: 600;
}
.view-all-link:hover { color: #f57c00 !important; }

/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
    /* Logo Center on Mobile */
    header .logo-bar-area .d-flex {
        justify-content: center !important;
    }
    
    /* Search Box Full Width on Mobile */
    .front-header-search {
        max-width: 100%;
        margin: 10px 0 !important;
    }
    
    .search-box-mobile {
        display: block !important;
        width: 100%;
        padding: 0 15px;
        margin: 10px 0;
    }
    
    .search-box-mobile .form-control {
        width: 100%;
        border-radius: 6px;
    }
    
    /* Category Icons - Square on Mobile too */
    .category-icon-wrapper {
        width: 90px;
        height: 90px;
        border-radius: 8px;
    }
    
    .category-icon-wrapper img {
        width: 90px !important;
        height: 90px !important;
    }
    
    /* Bottom menu links spacing on mobile */
    header .bg-white.border-top.border-gray-200 {
        background: #fff !important;
        position: relative;
        z-index: 10;
    }
    
    header .bg-white.border-top.border-gray-200 .list-inline-item a {
        padding: 10px 12px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }
    
    /* Bottom Navigation - Mobile */
    .aiz-mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 65px;
    }
    
    .aiz-mobile-bottom-nav .row {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .aiz-mobile-bottom-nav .col,
    .aiz-mobile-bottom-nav .col-auto {
        padding: 0 !important;
        margin: 0 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .aiz-mobile-bottom-nav a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 12px 5px !important;
        margin: 0 !important;
        color: #666 !important;
        text-decoration: none !important;
    }
    
    .aiz-mobile-bottom-nav i {
        font-size: 28px !important;
        margin-bottom: 4px !important;
        display: block !important;
    }
    
    .aiz-mobile-bottom-nav span {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    
    .aiz-mobile-bottom-nav .size-50px {
        width: 45px !important;
        height: 45px !important;
        margin-top: -30px !important;
    }
    
    /* Add padding to body to accommodate fixed bottom nav */
    body {
        padding-bottom: 75px;
    }
}

@media (min-width: 769px) {
    /* Hide mobile bottom navigation on desktop */
    .aiz-mobile-bottom-nav {
        display: none !important;
    }
}

/* ===== Fixed Sidebar Tab Buttons (PC Only) ===== */
@media (min-width: 992px) {
    .product-sidebar-tabs {
        position: fixed;
        left: calc((100% - 1200px) / 2 - 70px);
        top: 80%;
        transform: translateY(-50%);
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 5px;
        pointer-events: none;
    }
    
    .product-sidebar-tabs .sidebar-tab-btn {
        pointer-events: auto;
    }
    
    .sidebar-tab-btn {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #e8e8e8;
        border: none;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        color: #888;
        position: relative;
        overflow: visible;
        white-space: nowrap;
    }
    
    .sidebar-tab-btn:hover {
        background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
        color: #fff;
        text-decoration: none;
        width: auto;
        padding: 10px 15px;
        flex-direction: row;
    }
    
    .sidebar-tab-btn.primary {
        background: #e8e8e8;
        color: #888;
    }
    
    .sidebar-tab-btn.primary:hover {
        background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
        color: #fff;
    }
    
    .sidebar-tab-icon {
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-tab-icon i {
        font-size: 22px;
    }
    
    /* NEW badge style */
    .sidebar-tab-btn.new-badge .sidebar-tab-icon {
        background: #fff;
        width: 30px;
        height: 30px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #ff9800;
        font-size: 11px;
    }
    
    /* Hide text by default */
    .sidebar-tab-text {
        display: none;
        font-size: 11px;
        line-height: 1.2;
        margin-left: 8px;
    }
    
    /* Show text on hover */
    .sidebar-tab-btn:hover .sidebar-tab-text {
        display: block;
    }
    
    .sidebar-tab-btn:hover .sidebar-tab-icon {
        margin-right: 0;
    }
}

/* Hide sidebar tabs on mobile */
@media (max-width: 991px) {
    .product-sidebar-tabs {
        display: none !important;
    }
}

/* Ensure dropdowns and tooltips are above sidebar */
.dropdown-menu,
.tooltip,
.popover,
.modal,
.typed-search-box {
    z-index: 1000 !important;
}
