/*
Theme Name:   Flatsome Child
Theme URI:    https://webrt.vn
Description:  Theme con của Flatsome. Mọi tuỳ chỉnh CSS/PHP của web mẫu viết ở đây, không sửa theme chính.
Author:       webRT.vn
Template:     flatsome
Version:      1.4.202611171657
Text Domain:  flatsome-child
*/

/* ===== Header kiểu Uscom: logo trái, ô tìm kiếm giữa, giỏ hàng + tài khoản phải; thanh menu xám full ===== */
html body #header .header-main .header-inner,html body #header .header-bottom>.flex-row,html body #header .header-bottom .header-bottom-inner,html body #header .header-bottom .header-inner{max-width:1170px!important;width:100%;margin-left:auto;margin-right:auto;padding-left:30px;padding-right:30px}
#header .header-main{background:#0b9b72}
#header .header-main .header-inner{justify-content:space-between}
#header .header-main #logo{width:auto;margin-right:0}
#header .header-main #logo{margin-right:16px}
#header .header-main #logo img{max-height:50px;width:auto}
/* tìm kiếm ở giữa */
#header .header-main .header-nav-main.nav-left{justify-content:center}
#header .header-main .header-search-form{width:100%;max-width:430px;margin:0 auto}
#header .header-search-form .searchform{border:2px solid #fff;border-radius:4px;background:#fff;overflow:hidden}
#header .header-search-form .search-field,#header .searchform input[type=search]{height:44px;font-size:15px;padding:0 16px}
#header .searchform .ux-search-submit,#header .searchform button[type=submit]{height:44px;min-width:58px;background:#0b9b72!important;color:#fff!important;border-radius:2px;border:2px solid #fff;margin:0}
/* giỏ hàng + tài khoản: icon viền trắng bo góc đứng trước chữ */
#header .header-main .header-button a,#header .header-main .account-item>a{display:flex!important;flex-direction:row-reverse;align-items:center;gap:10px;color:#fff!important;font-size:15px;font-weight:400;text-transform:none;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 8px!important;height:auto;line-height:1}
#header .header-main .header-cart-link i,#header .header-main .account-item>a i{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:2px solid #fff;border-radius:5px;font-size:19px;margin:0;color:#fff}
#header .header-main .header-cart-link i:after{top:-8px;right:-8px}
#header .header-main .cart-price{display:none}
/* thanh menu: nền xám nhạt, chữ rộng rãi, mục đang chọn có gạch chân xanh */
html body #header .header-bottom{background:#e6e6e6!important;border-bottom:0!important;min-height:52px}
#header .header-bottom .header-inner{justify-content:flex-start}
html body #header .header-bottom .nav>li>a{font-size:15px!important;color:#222;padding:0 12px!important;height:52px;white-space:nowrap;display:flex;align-items:center;border-bottom:3px solid transparent}
html body #header .header-bottom .nav>li.active>a,html body #header .header-bottom .nav>li:hover>a{color:#0b9b72!important;border-bottom-color:#0b9b72}
html body #header .header-bottom .nav>li:first-child>a{padding-left:0!important}
html body #header .header-bottom .header-nav-main{justify-content:flex-start}
html body #header .header-bottom .flex-col{flex:1 1 100%;margin:0;justify-content:flex-start}
html body #header .header-bottom .header-bottom-nav{justify-content:flex-start}
html body #header .header-bottom .header-bottom-inner{display:flex;flex-wrap:nowrap}
/* icon tài khoản (chưa đăng nhập chỉ có chữ) */
#header .header-main a.nav-top-not-logged-in{flex-direction:row!important}
#header .header-main a.nav-top-not-logged-in:before{content:"";width:40px;height:40px;border:2px solid #fff;border-radius:5px;background:no-repeat center/24px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><circle cx='12' cy='8' r='4.5'/><path d='M3.5 21c0-4.6 3.8-7.5 8.5-7.5s8.5 2.9 8.5 7.5z'/></svg>");display:block}
@media (max-width:849px){html body #header .header-main .header-inner{padding-left:12px;padding-right:12px}#header .header-main .header-cart-link i{width:38px;height:38px;font-size:18px}#header .header-main .header-button a{padding:0!important}#header .header-main #logo img{max-height:44px}}

/* ===== khung chung: banner nằm trong khung 1170 như header ===== */
html body .cn-hero{max-width:1110px;margin:16px auto 0;border-radius:6px;overflow:hidden}
html body .cn-hero .flickity-viewport{border-radius:6px}
html body #header .header-bottom .header-bottom-nav{width:100%;justify-content:space-between}
html body #header .header-main .header-nav-main.nav-left{min-width:0;flex:1 1 auto}
html body #header .header-main .header-search-form{min-width:0}
@media (max-width:1280px){html body #header .header-bottom .nav>li>a{padding:0 7px!important;font-size:14px!important}}

/* ===== thẻ sản phẩm kiểu Uscom: chỉ ảnh + tên + giá, hover mới hiện nút ===== */
html body .product-small.box{position:relative;background:#fff;border:1px solid #dcdcdc;border-radius:6px;padding:14px 12px 16px;overflow:hidden}
html body .product-small.box:hover{box-shadow:0 4px 18px rgba(0,0,0,.12)}
html body .product-small.box .cn-card-sub,html body .product-small.box .box-text>.add-to-cart-button,html body .product-small.box .box-text .add_to_cart_button:not(.cn-hb),html body .product-small.box .box-text .button:not(.cn-hb){display:none!important}
html body .product-small.box .box-text{padding:8px 4px 0}
html body .product-small.box .name.product-title,html body .product-small.box .name.product-title a{font-size:15px;line-height:1.35;font-weight:700;color:#1d1d1d;min-height:60px;-webkit-line-clamp:2}
html body .product-small.box .price{font-size:15px;font-weight:400;margin:6px 0 0}
html body .product-small.box .price .amount{font-weight:400}
html body .product-small.box .cn-hover-btns{position:absolute;left:0;right:0;bottom:104px;display:flex;justify-content:center;gap:8px;padding:0 10px;opacity:0;transform:translateY(8px);transition:.22s;pointer-events:none;z-index:5}
html body .product-small.box:hover .cn-hover-btns{opacity:1;transform:none;pointer-events:auto}
html body .cn-hb{display:inline-flex!important;align-items:center;justify-content:center;height:36px;padding:0 16px!important;margin:0!important;border-radius:4px;font-size:13.5px!important;font-weight:600;line-height:1;text-transform:none;border:2px solid #0b9b72;white-space:nowrap}
html body .cn-hb-buy{background:#0b9b72!important;color:#fff!important}
html body .cn-hb-view{background:#fff!important;color:#0b9b72!important}
html body .cn-hb-buy:hover{background:#087a5a!important}html body .cn-hb-view:hover{background:#0b9b72!important;color:#fff!important}
html body .cn-hb.loading{opacity:.6}
html body .added_to_cart{display:none!important}

/* ===== nút "Xem tất cả" kiểu Uscom ===== */
html body .cn-more{display:inline-flex;align-items:stretch;gap:0;margin-top:18px;padding:0;height:38px;background:#0b9b72;border:2px solid #0b9b72;border-radius:6px;overflow:hidden;color:#fff!important;font-size:15px;font-weight:400;line-height:1}
html body .cn-more{padding-left:26px;align-items:center}
html body .cn-more span{display:flex;align-items:center;justify-content:center;align-self:stretch;margin-left:26px;width:36px;padding:0;background:#fff;color:#0b9b72;border:0;border-radius:4px;font-size:20px;font-weight:400}
html body .cn-more:hover{background:#087a5a;border-color:#087a5a}

/* ===== mobile ===== */
@media (max-width:849px){
 html body .cn-hero{margin:10px 10px 0;max-width:none;width:auto}
 html body .product-small.box{padding:8px 8px 12px}
 html body .product-small.box .name.product-title,html body .product-small.box .name.product-title a{font-size:13.5px;min-height:0}
 html body .product-small.box .cn-hover-btns{display:none}
 html body .product-small.box .price{font-size:14px}
 html body .cn-more{height:34px;font-size:14px;padding-left:18px}
 html body .cn-more span{width:32px;margin-left:18px}
}
html body .product-small.box .image-tools,html body .product-small.box .quick-view{display:none!important}
html body .product-small.box .cn-hover-btns{bottom:auto;top:calc(100% - 150px)}
@media (max-width:849px){
 html body #header .header-main #logo img,html body #header.stuck #logo img{max-height:40px!important}
 html body .row.row-slider{margin-left:0!important;margin-right:0!important}
 html body .row-slider .flickity-prev-next-button{display:none}
 html body .row-slider .col{padding-left:5px;padding-right:5px}
 html body .section .row .col{padding-bottom:0}
}

html body #header .header-bottom .header-bottom-nav{flex-wrap:nowrap}
html body #header .header-bottom .nav>li>a{padding:0 9px!important}
