/* Dark Mode CSS - override */
@media (prefers-color-scheme: dark){
:root
{--bg:#121212;
--surface:#1b1b1b;
--surface2:#242424;
--text:#e8e8e8;
--muted:#b8b8b8;
--border:#3a3a3a;
--primary:#4da3ff;
}
html,body{background:var(--bg)!important;color:var(--text)!important}
body,header,footer,main,section,article,aside,.container,.container-fluid,.card,.box,.item,.product-item,.product-box,.news-item,.breadcrumb,.modal-content,.submenu,.navigation-wrapper,.navigation-horizontal,.mega-menu,.default
{background:var(--surface)!important;
color:var(--text)!important;
}
a{color:#8fc3ff!important}
a:hover{color:#b8dbff!important}
p,span,li,div,h1,h2,h3,h4,h5,h6,label,strong
{color:inherit!important;
}
input,textarea,select
{background:#222!important;
color:var(--text)!important;
border:1px solid var(--border)!important;
}
button,.btn
{background:#2f2f2f!important;
color:#fff!important;
border-color:#555!important;
}
.table,.table td,.table th
{background:#1c1c1c!important;
color:#e8e8e8!important;
border-color:#444!important;
}
.navigation a,.submenu a,.menu-item__link
{color:#f0f0f0!important;
}
.submenu,.dropdown-menu
{background:#1f1f1f!important;
}
img
{opacity:.96;
}
.product-item,.news-item,.card
{border:1px solid var(--border)!important;
}
hr{border-color:#3a3a3a!important}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#1a1a1a}
::-webkit-scrollbar-thumb{background:#555}
::-webkit-scrollbar-thumb:hover{background:#777}
}
/* Manual toggle support */
.dark,[data-theme="dark"]
{color-scheme:dark;
}
.dark body,[data-theme="dark"] body
{background:#121212!important;
}

@media (prefers-color-scheme: dark){
body{background:#111!important;color:#e5e5e5!important}
.ega-header,.header,.header_sticky,.header-wrap,.ega-header-layer,footer,.footer,.footer-main,.section,.flashsale,.section_feedback,.item_product_main,.product-info,.feedback_item_wrap,.flashsale__container,.title_module_main,.policies-body,.policies-item,.ss_item,.submenu,.submenu__list,.navigation,.navigation-horizontal,.navigation-wrapper
{background:#181818!important;
}
.product-name a,.product-vendor,.price,.compare-price,.heading-bar__title,.policies-title,.policies-desc,.feedback_info,.cusname,.rating-count,.rating-score,.menu-item__link,.submenu a,.link,.btn-main
{color:#f2f2f2!important;
}
.compare-price{color:#999!important}
.product-thumbnail,.image_thumb,.feedback_avatar,.ss_img
{background:#222!important;
}
input.form-control,.search-bar input
{background:#242424!important;
color:#fff!important;
border-color:#444!important;
}
.input-group-btn .btn,.btn-main
{background:#2c2c2c!important;
border-color:#444!important;
}
.label_wrapper
{color:#fff!important;
}
.home-slider,.home-slider .items,.section_slider
{background:#111!important;
}
img:not(.logo-wrapper img):not(#logo img)
{filter:brightness(.92) contrast(1.03);
}
}

/* ===== Mobile menu dark mode fixes ===== */
@media (prefers-color-scheme: dark) and (max-width:991.98px)
{.navigation-wrapper,.navigation,.navigation-horizontal,.navigation-horizontal-wrapper,.navigation-horizontal nav,.navigation .list-group,.navigation .list-group-item,.menu-item,.submenu,.submenu__list,.submenu__col,.submenu__item,.default,.mega-menu,.opacity_menu
{background:#181818!important;
border-color:#333!important;
}

.navigation .list-group-item,.menu-item
{border-bottom:1px solid #2f2f2f!important;
}

.navigation a,.menu-item__link,.submenu a,.submenu__item .link,.toggle-submenu,.toggle-submenu span,.navigation i,.menu-item i
{color:#f2f2f2!important;
}

.toggle-nav,.menu-bar
{background:#181818!important;
color:#fff!important;
}

.submenu
{box-shadow:none!important;
}

}

/* ==== Mobile slide menu header ==== */
@media (prefers-color-scheme: dark){
.mobile-menu-header
{background:#181818 !important;
color:#f5f5f5 !important;
border-bottom:1px solid #333 !important;
}
.mobile-menu-title,.mobile-menu-title *,.mobile-menu-close,.mobile-menu-close:hover,.mobile-menu-close:focus,.menu-icon
{color:#f5f5f5 !important;
}
.mobile-menu-close
{background:transparent !important;
border:none !important;
box-shadow:none !important;
}

/* if parent drawer keeps white background */
.mobile-menu,.mobile-menu-wrap,.mobile-menu-content,.mobile-menu-inner,.offcanvas,.offcanvas-body,.drawer,.drawer-content
{background:#181818 !important;
}
}

@media (prefers-color-scheme: dark)
{.mobile-menu-header
{background:#1c1c1e;
border-bottom:1px solid #3a3a3c;
}

    .mobile-menu-title
{color:#fff;
}

    .mobile-menu-title .menu-icon,.mobile-menu-close
{color:#fff;
}

    .mobile-menu-close:hover
{color:#fff;
}

    #mobile-menu .navigation .list-group-item>a,#mobile-menu .navigation .menu-item .submenu
{background:#1c1c1e;
color:#fff !important;
}

    #mobile-menu .submenu__item a
{color:#fff;
}

    #mobile-menu .menu-item.active>.menu-item__link
{background:#2c2c2e;
color:#ff8c42;
}

    #mobile-menu .submenu__item>a.active
{background:#2c2c2e;
color:#ff8c42;
}

#mobile-menu
{background:#181818 !important;
color:#f5f5f5 !important;
}

#mobile-menu *
{color:#f5f5f5;
}

#mobile-menu,#mobile-menu .mobile-menu-header,#mobile-menu .navigation,#mobile-menu .navigation-wrapper,#mobile-menu .submenu,#mobile-menu .submenu-inner,#mobile-menu .menu-item,#mobile-menu .list-group,#mobile-menu .list-group-item
{background:#181818 !important;
border-color:#333 !important;
}

#mobile-menu .list-group-item>a,#mobile-menu .menu-item>a,#mobile-menu .menu-item__link,#mobile-menu .submenu a
{background:#181818 !important;
color:#f5f5f5 !important;
}

#mobile-menu .mobile-menu-close
{background:transparent !important;
color:#fff !important;
}

#mobile-menu svg,#mobile-menu i
{color:#fff !important;
fill:#fff !important;
}

}

/* =====================================================
   Product Detail Dark Mode
===================================================== */
@media (prefers-color-scheme: dark){

.details-main,
.details-product,
.details-pro,
.product-detail-left,
.product-images,
.product-tabs,
.product-content,
.product_getcontent,
.rte,
.content,
#content,
.large-image,
.slider-for,
.slider-nav,
.wrap-padding-15,
.wp_product_main,
.fixed-layout{
    background:#181818!important;
    color:#ececec!important;
}

.title-product,
.product-meta-top,
.group-status,
.product-stock,
.product-stock i,
.product-sku,
.product-sku *,
.review,
.rating-stars,
.score{
    color:#f1f1f1!important;
}

.price-box{
    border-top:1px solid #303030;
    border-bottom:1px solid #303030;
    padding:14px 0;
}

.product-price{
    color:#ff6b6b!important;
}

.product-price-old,
.old-price del{
    color:#999!important;
}

.label_product{
    background:#d32f2f!important;
    color:#fff!important;
}

.product-promotion{
    background:#202020!important;
    border:1px solid #353535!important;
}

.product-promotion__heading{
    background:#292929!important;
    color:#fff!important;
}

.promotion-box li{
    color:#e6e6e6!important;
    border-bottom:1px dashed #333;
}

.promotion-box li:last-child{
    border-bottom:none;
}

/* Gallery */
.slider-nav .item{
    background:#222!important;
    border:1px solid #333!important;
}

.slider-nav .slick-current .item{
    border-color:#4da3ff!important;
}

.large-image img,
.slider-for img{
    background:#222!important;
}

/* Reading tools */
.reading-tools{
    background:#202020!important;
    border-bottom:1px solid #333!important;
}

.font-btn{
    background:#2b2b2b!important;
    color:#fff!important;
    border:1px solid #444!important;
}

/* Description */
.rte,
.rte p,
.rte li,
.rte td,
.rte th,
.rte span,
.rte strong,
.rte h2,
.rte h3,
.rte h4,
.rte h5,
.rte blockquote{
    color:#e8e8e8!important;
}

.rte table{
    border-color:#444!important;
}

.rte td,
.rte th{
    border-color:#444!important;
    background:#1f1f1f!important;
}

.rte a{
    color:#7fc2ff!important;
}

.rte iframe{
    border:1px solid #333;
}

.rte img{
    border-radius:6px;
}

/* Xem thêm */
.js-seemore .btn{
    background:#2d2d2d!important;
    border:1px solid #444!important;
    color:#fff!important;
}

/* Quantity */
.custom-btn-number,
.input_number_product{
    background:#1e1e1e!important;
}

.button_qty{
    background:#2a2a2a!important;
    color:#fff!important;
    border-color:#444!important;
}

.prd_quantity{
    background:#222!important;
    color:#fff!important;
    border-color:#444!important;
}

/* Buttons */
.btn_add_cart{
    background:#0f7a45!important;
    border-color:#0f7a45!important;
    color:#fff!important;
}

.btn_add_cart:hover{
    background:#119955!important;
}

.buynow{
    background:#d84315!important;
    border-color:#d84315!important;
    color:#fff!important;
}

.buynow:hover{
    background:#ef6c00!important;
}

/* Breadcrumb */
.bread-crumb{
    background:#181818!important;
}

.breadcrumb,
.breadcrumb li,
.breadcrumb a{
    color:#bfbfbf!important;
}

/* Related products */
.ss_item,
.item_product_main,
.product-info{
    background:#181818!important;
}

.product-name a{
    color:#f3f3f3!important;
}

.video-icon{
    color:#fff!important;
}

}

/* ===== Product Promotion ===== */
@media (prefers-color-scheme: dark){

#ega-salebox,
.product-promotion{
    background:#1d1d1d!important;
    border:1px solid #3a3a3a!important;
    box-shadow:none!important;
}

#ega-salebox *,
.product-promotion *{
    color:#ededed!important;
}

.product-promotion__heading{
    background:#2a2a2a!important;
    color:#fff!important;
}

.product-promotion__heading img{
    filter:brightness(.9);
}

.promotion-box{
    background:transparent!important;
}

.promotion-box li{
    background:transparent!important;
    color:#e5e5e5!important;
    border-bottom:1px dashed #3b3b3b!important;
}

.promotion-box li:last-child{
    border-bottom:none!important;
}

}

/* =====================================================
   Search Suggest Dark Mode
===================================================== */
@media (prefers-color-scheme: dark){

.aajZCb{
    background:#1b1b1b!important;
    border:1px solid #3a3a3a!important;
    box-shadow:0 10px 30px rgba(0,0,0,.55)!important;
}

.aajZCb .search-item{
    background:#1b1b1b!important;
    border-bottom:1px solid #2f2f2f!important;
}

.aajZCb .search-item:hover{
    background:#252525!important;
}

.aajZCb .search-item img{
    background:#222!important;
}

.aajZCb .search-name{
    color:#f2f2f2!important;
}

.aajZCb .search-brand{
    color:#9e9e9e!important;
}

.aajZCb .search-rating{
    color:#ffc857!important;
}

.aajZCb .search-price{
    color:#ff6b6b!important;
    font-weight:700;
}

.aajZCb .old-price{
    color:#8a8a8a!important;
}

.aajZCb .sale{
    background:#b71c1c!important;
    color:#fff!important;
}

.aajZCb mark{
    background:#ffb300!important;
    color:#111!important;
    padding:0 2px;
    border-radius:2px;
}

.aajZCb .search-all{
    background:#222!important;
    color:#69b3ff!important;
    border-top:1px solid #333!important;
}

.aajZCb .search-all:hover{
    background:#2b2b2b!important;
}

.aajZCb .search-empty{
    background:#1b1b1b!important;
    color:#cfcfcf!important;
}

}

/* =====================================================
   Bottom Menu Dark Mode
===================================================== */
@media (prefers-color-scheme: dark){

.bottom-nav,
.bottom-nav ul{
    background:#181818!important;
    border-top:1px solid #333!important;
}

.bottom-nav li{
    background:transparent!important;
}

.bottom-nav a,
.bottom-nav .menu{
    color:#f2f2f2!important;
}

.bottom-nav a i,
.bottom-nav .menu i{
    color:#f2f2f2!important;
}

.bottom-nav a:hover,
.bottom-nav .menu:hover{
    color:#4da3ff!important;
}

.bottom-nav a:hover i,
.bottom-nav .menu:hover i{
    color:#4da3ff!important;
}

}

/* ===== Mobile CTA dark mode ===== */
@media (prefers-color-scheme: dark){

.mobile-cta{
    background:#181818!important;
    border-top:1px solid #333!important;
}

.mobile-cta ul{
    background:#181818!important;
}

.mobile-cta li{
    border-color:#333!important;
}

.mobile-cta a,
.mobile-cta .menu{
    background:transparent!important;
    color:#f5f5f5!important;
}

.mobile-cta a:hover{
    background:#252525!important;
}

.mobile-cta i{
    color:#f5f5f5!important;
}

.mobile-cta span{
    color:#f5f5f5!important;
}

.mobile-cta .active a,
.mobile-cta .active i,
.mobile-cta .active span{
    color:#4da3ff!important;
}

}

/* ===== Mobile CTA Dark Mode ===== */
@media (prefers-color-scheme: dark){

.mobile-cta li{
    background:#181818!important;
    border-color:#333!important;
}

.mobile-cta li+li{
    border-left:1px solid #2f2f2f!important;
}

.mobile-cta a{
    background:transparent!important;
    color:#f5f5f5!important;
}

/* Zalo SVG */
.mobile-cta img{
    filter:brightness(.95) contrast(1.05);
}

/* Active */
.mobile-cta a.active,
.mobile-cta li.active a{
    color:#4da3ff!important;
}

.mobile-cta a.active i,
.mobile-cta li.active i,
.mobile-cta a.active span,
.mobile-cta li.active span{
    color:#4da3ff!important;
}

}

/* ===== Slick Arrow Dark Mode ===== */
@media (prefers-color-scheme: dark){

.slick-prev,
.slick-next{
    background:#2a2a2a!important;
    border:1px solid #444!important;
    color:#fff!important;
}

.slick-prev:hover,
.slick-next:hover{
    background:#3a3a3a!important;
    color:#fff!important;
}

.slick-prev:before,
.slick-next:before{
    color:#fff!important;
    opacity:1!important;
}

.slick-prev.slick-disabled,
.slick-next.slick-disabled{
    opacity:.35!important;
}

}

/* ===== Cart page Dark Mode ===== */
@media (prefers-color-scheme: dark){

/* Tiêu đề Giỏ hàng */
.header-cart,
.heading-bar,
.heading-bar__title{
    background:#181818!important;
    color:#f5f5f5!important;
}

.heading-bar__title *{
    color:#f5f5f5!important;
}

/* Nút Mua thêm SP */
.btn-continue-shopping{
    background:#242424!important;
    border:1px solid #444!important;
    color:#f5f5f5!important;
}

.btn-continue-shopping:hover{
    background:#303030!important;
    border-color:#555!important;
    color:#fff!important;
}

.btn-continue-shopping span{
    color:inherit!important;
}

}
.toggle-nav{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px;
    height:44px;
    padding:0!important;
}

.toggle-nav .bar{
    margin:3px 0;
}
.feedback_avatar{
    background:transparent !important;
}