/**
 * Eseller 前台顶栏 / 主导航：亮橙实心底 + 白字（对齐参考图，非暗色渐变）
 * 主色：#FF4E20
 */

:root {
    --eseller-header-orange: #FF4E20;
    --eseller-header-search-btn: #FF5C2E;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.eseller-header-skin {
    background-color: var(--eseller-header-orange) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.eseller-logo-bar {
    background: transparent !important;
}

header.eseller-header-skin .eseller-header-menu-row {
    background: transparent !important;
}

/* 顶栏整体略增高（最上行 + Logo/搜索行 + 分类条） */
html body .top-navbar.eseller-header-skin > .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

html body header.eseller-header-skin .logo-bar-area.eseller-logo-bar {
    padding-top: 12px;
    padding-bottom: 12px;
}

html body header.eseller-header-skin .eseller-header-menu-row .py-2 {
    padding-top: 0.75rem !important;
    padding-bottom:      0.75rem !important;
}

/* 顶栏文字、下拉触发器：强制白色（覆盖 Bootstrap .text-reset / .opacity-60 发灰） */
.top-navbar.eseller-header-skin a:not(.btn),
.top-navbar.eseller-header-skin .dropdown-toggle {
    color: #fff !important;
}

.top-navbar.eseller-header-skin .dropdown-menu a {
    color: #333 !important;
}

.top-navbar.eseller-header-skin span:not(.badge):not(.language),
.top-navbar.eseller-header-skin .opacity-60 {
    color: #fff !important;
    opacity: 1 !important;
}

/* 主导航行内凡用 opacity 类的一律白字 */
header.eseller-header-skin .text-reset:not(.dropdown-item):not(.btn-primary),
header.eseller-header-skin a.text-reset:not(.eseller-btn-login):not(.btn-primary),
header.eseller-header-skin .opacity-60,
header.eseller-header-skin .opacity-70,
header.eseller-header-skin .opacity-80 {
    color: #fff !important;
}

header.eseller-header-skin .opacity-60,
header.eseller-header-skin .opacity-70,
header.eseller-header-skin .opacity-80 {
    opacity: 1 !important;
}

.eseller-follow-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

.eseller-social-wrap .align-middle {
    color: #ffffff !important;
}

.eseller-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background 0.2s;
}

.eseller-social-icon i,
.eseller-social-icon .lab,
.eseller-social-icon .la {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

.eseller-social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

/* 手机端顶栏：Follow us on + 社交图标 */
@media (max-width: 991.98px) {
    .top-navbar.eseller-header-skin .eseller-social-wrap {
        flex-shrink: 0;
    }

    .top-navbar.eseller-header-skin .eseller-follow-label {
        font-size: 12px;
        font-weight: 600;
        margin-right: 4px !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .top-navbar.eseller-header-skin .eseller-social-icon {
        width: 28px;
        height: 28px;
        margin-right: 4px;
        font-size: 15px;
        background: rgba(255, 255, 255, 0.35) !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .top-navbar.eseller-header-skin .eseller-social-icon i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

.eseller-btn-login {
    background: #fff !important;
    color: var(--eseller-header-orange) !important;
    font-weight: 600;
    border: none !important;
    border-radius: 4px;
}

.eseller-btn-login:hover {
    background: #fff !important;
    color: #e84620 !important;
}

.eseller-btn-register {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 4px;
}

.eseller-btn-register:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.eseller-logo-card {
    background: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.eseller-search-wrap {
    background: transparent !important;
}

.eseller-header-skin .front-header-search .form-control {
    background: #fff !important;
    border: none !important;
    height: 48px;
    border-radius: 6px 0 0 6px;
    color: #333 !important;
}

/* 搜索钮：亮橙（与参考图一致，非深红） */
.eseller-header-skin .front-header-search .input-group-append .btn-primary {
    background-color: var(--eseller-header-search-btn) !important;
    border-color: var(--eseller-header-search-btn) !important;
    color: #fff !important;
    border-radius: 0 6px 6px 0;
    height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.eseller-header-skin .front-header-search .input-group-append .btn-primary:hover {
    background-color: #ff704a !important;
    border-color: #ff704a !important;
    color: #fff !important;
}

.eseller-mobile-search-trigger,
.eseller-search-back {
    color: #fff !important;
}

.eseller-nav-feature a.text-reset {
    color: #fff !important;
}

.eseller-nav-feature a .opacity-80 {
    opacity: 1 !important;
}

.eseller-nav-feature .nav-box-text {
    color: #fff !important;
    opacity: 1 !important;
}

.eseller-nav-feature--compare .la-2x,
.eseller-nav-feature--wishlist .la-2x,
.eseller-nav-feature--cart .la-2x {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    opacity: 1 !important;
}

.eseller-nav-feature--compare .la-2x {
    background: #7c3aed;
}

.eseller-nav-feature--wishlist .la-2x {
    background: #2563eb;
}

.eseller-nav-feature--cart .la-2x {
    background: #16a34a;
}

.eseller-nav-feature .badge-primary {
    background: #ff2d2d !important;
    color: #fff !important;
    font-weight: 700;
}

/* 底栏 Categories：略深于亮橙底（半透明叠层） */
.header-categories-pill {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 10px 18px;
    min-width: 132px;
}

/* 底栏：Categories 与 header 菜单同一行（手机可横滑） */
.eseller-header-menu-bar {
    width: 100%;
    margin: 0;
}

.eseller-header-menu-bar .list-inline-item {
    display: inline-block;
    vertical-align: middle;
}

.eseller-header-menu-categories {
    margin-right: 4px;
}

@media (min-width: 992px) {
    .eseller-header-menu-categories {
        margin-right: 1rem;
    }

    .eseller-header-menu-bar {
        flex-wrap: wrap;
        white-space: normal;
        overflow: visible;
    }
}

@media (max-width: 991.98px) {
    .eseller-header-menu-row .eseller-header-menu-inner {
        overflow: hidden;
    }

    .eseller-header-menu-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eseller-header-menu-row .header-categories-pill {
        min-width: auto;
        padding: 8px 12px;
        margin-right: 4px;
    }
}

.header-categories-pill span {
    color: #fff !important;
}

.eseller-header-menu-link {
    color: #fff !important;
}

.eseller-header-menu-link:hover {
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: underline;
}

#category-menu-icon .dropdown-toggle.navbar-light.bg-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
}

/* ========== 强制白字（压过 a:link / .text-reset 继承 / LineAwesome / WebKit fill）========== */
html body .top-navbar.eseller-header-skin,
html body header.eseller-header-skin {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* 顶栏、Logo 行：所有链接与图标白（不含下拉面板、搜索联想） */
html body .top-navbar.eseller-header-skin a:not(.dropdown-item):not(.eseller-btn-login),
html body header.eseller-header-skin .logo-bar-area a:not(.dropdown-item):not(.eseller-btn-login):not(.btn-primary),
html body header.eseller-header-skin .eseller-header-menu-row a:not(.dropdown-item),
html body .top-navbar.eseller-header-skin .dropdown-toggle,
html body header.eseller-header-skin .logo-bar-area .dropdown-toggle,
html body .top-navbar.eseller-header-skin a.text-reset:not(.dropdown-item),
html body header.eseller-header-skin .logo-bar-area a.text-reset:not(.dropdown-item):not(.btn-primary):not(.eseller-btn-login),
html body header.eseller-header-skin .eseller-header-menu-row a.text-reset:not(.dropdown-item),
html body header.eseller-header-skin .header-categories-pill.text-reset {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body header.eseller-header-skin #compare > a,
html body header.eseller-header-skin #wishlist > a,
html body header.eseller-header-skin #cart_items > a.d-flex {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body .top-navbar.eseller-header-skin i,
html body .top-navbar.eseller-header-skin .la,
html body .top-navbar.eseller-header-skin .las,
html body .top-navbar.eseller-header-skin .lab,
html body header.eseller-header-skin .logo-bar-area i,
html body header.eseller-header-skin .logo-bar-area .la,
html body header.eseller-header-skin .logo-bar-area .las,
html body header.eseller-header-skin .logo-bar-area .lab,
html body header.eseller-header-skin .eseller-header-menu-row .la {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body .top-navbar.eseller-header-skin span:not(.badge):not(.language),
html body .top-navbar.eseller-header-skin .eseller-follow-label,
html body .top-navbar.eseller-header-skin .eseller-social-icon,
html body .top-navbar.eseller-header-skin .eseller-social-icon i,
html body header.eseller-header-skin .logo-bar-area span:not(.badge),
html body header.eseller-header-skin #compare span,
html body header.eseller-header-skin #wishlist span,
html body header.eseller-header-skin #cart_items > a span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body header.eseller-header-skin #compare .nav-box-text,
html body header.eseller-header-skin #wishlist .nav-box-text,
html body header.eseller-header-skin #cart_items .nav-box-text {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* 下拉面板 / 搜索联想：恢复深色字 */
html body .top-navbar.eseller-header-skin .dropdown-menu,
html body .top-navbar.eseller-header-skin .dropdown-menu a,
html body .top-navbar.eseller-header-skin .dropdown-item,
html body header.eseller-header-skin .dropdown-menu,
html body header.eseller-header-skin .dropdown-menu a,
html body header.eseller-header-skin .dropdown-item,
html body header.eseller-header-skin .typed-search-box,
html body header.eseller-header-skin .typed-search-box a {
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
}

html body header.eseller-header-skin .typed-search-box .text-muted {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
}

/* 购物车顶栏下拉：.logo-bar-area 白字规则会误伤内部链接/文字 */
html body header.eseller-header-skin .eseller-cart-dropdown,
html body header.eseller-header-skin #cart_items .dropdown-menu {
    background-color: #fff !important;
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
}

html body header.eseller-header-skin .eseller-cart-dropdown a,
html body header.eseller-header-skin .eseller-cart-dropdown a.text-reset,
html body header.eseller-header-skin .eseller-cart-dropdown span,
html body header.eseller-header-skin .eseller-cart-dropdown .list-group-item,
html body header.eseller-header-skin .eseller-cart-dropdown .fw-600,
html body header.eseller-header-skin .eseller-cart-dropdown h3,
html body header.eseller-header-skin .eseller-cart-dropdown button i,
html body header.eseller-header-skin #cart_items .dropdown-menu a,
html body header.eseller-header-skin #cart_items .dropdown-menu a.text-reset,
html body header.eseller-header-skin #cart_items .dropdown-menu span,
html body header.eseller-header-skin #cart_items .dropdown-menu .list-group-item,
html body header.eseller-header-skin #cart_items .dropdown-menu .fw-600,
html body header.eseller-header-skin #cart_items .dropdown-menu h3,
html body header.eseller-header-skin #cart_items .dropdown-menu button i {
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
}

html body header.eseller-header-skin .eseller-cart-dropdown .opacity-60,
html body header.eseller-header-skin .eseller-cart-dropdown .opacity-70,
html body header.eseller-header-skin #cart_items .dropdown-menu .opacity-60,
html body header.eseller-header-skin #cart_items .dropdown-menu .opacity-70 {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
}

/* 登录白底：字保持橙色 */
html body .top-navbar.eseller-header-skin a.eseller-btn-login {
    color: var(--eseller-header-orange) !important;
    -webkit-text-fill-color: var(--eseller-header-orange) !important;
}

html body .top-navbar.eseller-header-skin a.eseller-btn-login:hover {
    color: #e84620 !important;
    -webkit-text-fill-color: #e84620 !important;
}

html body .top-navbar.eseller-header-skin a.eseller-btn-register {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* 首页区块标题：New Products / Featured / Best Selling */
.home-section-title-red {
    color: #e62d04 !important;
    border-color: #e62d04 !important;
}

/* 限时抢购：双层背景模块（对齐 esellerpurchasestore.com） */
.eseller-flash-sale-section .container.pt-4 {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
}

.eseller-flash-sale-inner {
    background-repeat: no-repeat;
    background-position: center;
}

.eseller-flash-sale-title {
    font-size: 40px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .eseller-flash-sale-section .d-flex.border-bottom .eseller-flash-sale-title {
        margin-left: 210px;
    }
}

/* 首页轮播下方特色小分类：圆形图标 */
.home-featured-cat-circle {
    text-decoration: none;
}

.home-featured-cat-circle__img {
    width: 80px;
    height: 80px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    display: block;
}

/* 手机端：小分类单行横滑 */
@media (max-width: 991.98px) {
    .home-featured-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 12px 4px 6px;
        margin: 0;
        scrollbar-width: none;
    }

    .home-featured-categories::-webkit-scrollbar {
        display: none;
    }

    .home-featured-categories__item {
        flex: 0 0 auto;
        width: 72px;
        min-width: 72px;
        margin: 0;
        padding: 0;
    }

    .home-featured-cat-circle__img {
        width: 64px;
        height: 64px;
    }

    .home-featured-cat-circle .fs-12 {
        font-size: 11px !important;
        line-height: 1.2;
    }
}

/* 平板/桌面：多列均分，可换行 */
@media (min-width: 992px) {
    .home-featured-categories {
        display: flex;
        flex-wrap: wrap;
        margin-left: -5px;
        margin-right: -5px;
    }

    .home-featured-categories__item {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 5px;
        margin-top: 1rem;
    }
}
