/* Browse All Categories — vertical list + subcategory flyout (header only) */

.main-categories-wrap {
    position: relative;
}

.categories-dropdown-wrap.categories-dropdown-list-mode {
    min-width: 300px;
    max-width: 340px;
    padding: 12px 0 8px;
    overflow: visible;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .categories-dropdown-inner {
    display: block;
    min-width: 0;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li {
    position: relative;
    display: block;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    height: auto;
    min-height: 44px;
    line-height: 44px;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li:last-child {
    border-bottom: 0;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li:hover {
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
    background: rgba(var(--color-brand-rgb), 0.07);
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: #253d4e;
    background: transparent;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li > a:hover {
    color: var(--color-brand);
    background: transparent;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li > a .cat-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li > a .cat-arrow {
    flex: 0 0 auto;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children:hover > a .cat-arrow,
.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children.open > a .cat-arrow {
    color: var(--color-brand);
}

/* Hide Nest's default ::after chevron — we use .cat-arrow */
.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children > a::after {
    content: none !important;
    display: none !important;
}

/* Subcategory flyout panel */
.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children > .dropdown-menu {
    display: none;
    position: absolute;
    left: calc(100% - 4px);
    top: -8px;
    z-index: 130;
    min-width: 240px;
    width: max-content;
    max-width: 300px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(var(--color-brand-rgb), 0.25);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children:hover > .dropdown-menu,
.categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children.open > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-panel {
    padding: 10px 0 8px;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-title {
    display: block;
    padding: 6px 18px 10px;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-brand);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-list li {
    display: block;
    border: 0 !important;
    height: auto !important;
    min-height: 0;
    line-height: 1.35;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-list li:hover {
    border: 0 !important;
    box-shadow: none;
    background: transparent;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-list li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #253d4e;
    text-decoration: none;
}

.categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-list li a:hover {
    color: var(--color-brand);
    background: rgba(var(--color-brand-rgb), 0.07);
}

.categories-dropdown-wrap.categories-dropdown-list-mode .more_categories {
    justify-content: flex-start;
    margin: 8px 0 4px;
    padding: 0 16px;
}

/* Homepage product banner sections — readable overlay on promo images */
.section-flash-sale-products .banner-img.style-2 {
    position: relative;
}

.section-flash-sale-products .banner-img.style-2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(var(--color-brand-rgb), 0.92) 0%,
        rgba(var(--color-brand-rgb), 0.82) 45%,
        rgba(37, 61, 78, 0.85) 100%
    );
}

.section-flash-sale-products .banner-img.style-2 .banner-text {
    z-index: 2;
}

.section-flash-sale-products .banner-img.style-2 .banner-text h2 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.section-flash-sale-products .banner-img.style-2 .banner-text .btn {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-brand);
}

.section-flash-sale-products .banner-img.style-2 .banner-text .btn:hover {
    background-color: var(--color-brand-2);
    border-color: var(--color-brand-2);
    color: #fff;
}

/* Mobile header browse accordion */
@media (max-width: 991px) {
    .categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children > .dropdown-menu {
        position: static;
        left: auto;
        top: auto;
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 6px 12px;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
    }

    .categories-dropdown-wrap.categories-dropdown-list-mode ul.categories-dropdown-list > li.has-children.open > .dropdown-menu {
        display: block !important;
    }

    .categories-dropdown-wrap.categories-dropdown-list-mode .dropdown-menu .submenu-title {
        display: none;
    }
}

/* Storefront: never hide products/sections behind scroll-triggered WOW fades */
.wow,
.wow.animate__animated,
.wow.animated {
    visibility: visible !important;
    animation-name: none !important;
    -webkit-animation-name: none !important;
}

/* Chozhan Deals Of The Day — keep Nest card size, stop column stretch void */
.section-deals-of-the-day .row > [class*='col-'] {
    display: flex;
    align-items: flex-start;
}

.section-deals-of-the-day .product-cart-wrap.style-2 {
    width: 100%;
    height: auto;
}
