/* Header theo thiết kế 17/10 (A2, A3, A17, A36). */

/* ---------- Hàng xanh ---------- */
html body #masthead.header-main{background:#34c759 !important}
html body #masthead .header-inner{max-width:1230px}
html body #masthead .flex-left{flex:1 1 auto}
html body #masthead .header-search-form{flex:1 1 auto;max-width:620px;width:100%}
html body #masthead .header-search-form .searchform-wrapper,html body #masthead .header-search-form form{width:100%}
html body #masthead .header-search-form .searchform{background:#fff;border-radius:10px;padding:4px;display:flex;align-items:center;box-shadow:0 1px 2px rgba(0,0,0,.06)}
html body #masthead .header-search-form .searchform .flex-row{width:100%;align-items:center}
html body #masthead .header-search-form input.search-field{height:38px;border:0 !important;box-shadow:none !important;background:transparent;font-size:14px;color:#1c2a1e;padding-left:12px}
html body #masthead .header-search-form input.search-field::placeholder{color:#5a6b5c}
html body #masthead .header-search-form button.ux-search-submit{height:38px;min-width:107px;border-radius:8px !important;background:#ffe14d !important;color:#1c2a1e !important;font-weight:700;font-size:14px;margin:0;padding:0 16px}
html body #masthead .header-search-form button.ux-search-submit .icon-search{display:none}
html body #masthead .header-search-form button.ux-search-submit::after{content:"Tìm kiếm"}
.lc-hotline{display:flex;align-items:center;gap:10px;color:#fff !important;text-decoration:none !important;white-space:nowrap}
.lc-hotline-ic{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center}
.lc-hotline-txt{display:flex;flex-direction:column;line-height:1.2}
.lc-hotline-txt small{font-size:12px;font-weight:400;opacity:.95}
.lc-hotline-txt strong{font-size:15px;font-weight:700}
html body #masthead .cart-item .header-cart-link{color:#fff !important;font-weight:700;font-size:14px;text-transform:none}
html body #masthead .cart-item .header-cart-title{color:#fff !important;font-weight:700;text-transform:none;font-size:14px}
html body #masthead .cart-item .cart-price{display:none}
html body #masthead .cart-icon strong{background:#ff6a00 !important;border-color:#ff6a00 !important;color:#fff !important}

/* ---------- Hàng trắng ---------- */
html body #wide-nav.header-bottom{background:#fff !important;border-bottom:1px solid #e6efe8;min-height:52px}
html body #wide-nav .flex-row{max-width:1230px}
html body #wide-nav .nav > li > a{color:#1c2a1e !important;font-weight:600;font-size:14px;text-transform:none;padding:0 10px}
html body #wide-nav .nav > li > a:hover{color:#14803a !important}
html body #wide-nav li.lc-menu-new > a::after{content:"NEW";display:inline-block;margin-left:6px;padding:1px 6px;border-radius:4px;background:#ff6a00;color:#fff;font-size:11px;font-weight:800;line-height:16px}
.lc-freeship{display:inline-flex;align-items:center;gap:8px;color:#146b2a;font-weight:600;font-size:14px;white-space:nowrap}

/* Nút Danh mục sản phẩm + mega menu */
.lc-catalog{position:relative}
.lc-catalog-btn{display:inline-flex;align-items:center;gap:10px;height:38px;margin:0 16px 0 0;padding:0 16px;border-radius:8px;background:#34c759;color:#fff;font-weight:700;font-size:14px;text-transform:none;letter-spacing:0;border:0;min-width:223px;justify-content:flex-start}
.lc-catalog-btn .lc-caret{margin-left:auto;transition:transform .15s}
.lc-catalog.is-open .lc-caret{transform:rotate(180deg)}
.lc-mega{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:1000;width:min(1200px,calc(100vw - 32px));grid-template-columns:184px 1fr 168px;gap:24px;background:#fff;border-radius:0 0 12px 12px;padding:24px;box-shadow:0 18px 40px rgba(28,42,30,.16)}
.lc-catalog.is-open .lc-mega,.lc-catalog:hover .lc-mega,.lc-catalog:focus-within .lc-mega{display:grid}
.lc-mega-kicker{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:.06em;color:#5a6b5c;text-transform:uppercase}
.lc-mega-quick{display:flex;flex-direction:column;gap:10px;padding-right:16px;border-right:1px solid #edf1ed}
.lc-mega-card{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #e6efe8;border-radius:8px;color:#1c2a1e !important;text-decoration:none !important}
.lc-mega-card:hover{border-color:#34c759;background:#f6fcf7}
.lc-mega-card b{display:block;font-size:13px;font-weight:700}
.lc-mega-card small{display:block;font-size:12px;color:#5a6b5c}
.lc-mega-mark{flex:0 0 32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.lc-mega-mark.is-new{background:#fff1e6;color:#ff6a00}
.lc-mega-mark.is-fav{background:#ffe9ec;color:#e5484d;font-size:16px}
.lc-mega-mark.is-season{background:#eaf9ee;font-size:16px}
.lc-mega-all{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:8px;background:#34c759;color:#fff !important;font-weight:700;font-size:14px;text-decoration:none !important}
.lc-mega-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:24px}
.lc-mega-col{display:flex;flex-direction:column;gap:12px}
.lc-mega-title{display:flex;align-items:center;gap:8px;padding:0 0 10px;border-bottom:2px solid #34c759;font-weight:700;font-size:14px;text-transform:uppercase;color:#1c2a1e !important;text-decoration:none !important}
.lc-mega-title i{width:8px;height:8px;border-radius:50%;background:#34c759}
.lc-mega-link{font-size:14px;color:#3f5242 !important;text-decoration:none !important}
.lc-mega-link:hover{color:#14803a !important}
.lc-mega-more{font-size:14px;font-weight:700;color:#14803a !important;text-decoration:none !important}
.lc-mega-promo-card{display:block;border:1px solid #e6efe8;border-radius:10px;overflow:hidden;background:#fdffeb;color:#1c2a1e !important;text-decoration:none !important}
.lc-mega-promo-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.lc-mega-promo-card b{display:block;padding:10px 10px 0;font-size:14px}
.lc-mega-promo-card small{display:block;padding:2px 10px 12px;font-size:12px;color:#3f5242}
@media (max-width:849px){.lc-catalog{display:none}}

/* ---------- Mobile ---------- */
@media (max-width:849px){
	html body #masthead .mobile-nav .nav-icon > a{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 6px !important;border-radius:999px;background:rgba(255,255,255,.22);color:#fff !important;font-weight:700;font-size:14px}
	html body #masthead .mobile-nav .nav-icon > a .icon-menu{width:24px;height:24px;border-radius:50%;background:#fff;color:#34c759 !important;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
	html body #masthead .mobile-nav .nav-icon > a .icon-menu:before{color:#34c759 !important}
	html body #masthead .mobile-nav .nav-icon > a::after{content:"Danh mục"}
	html body #masthead .mobile-nav .menu-title{display:none !important}
	html body #masthead .mobile-nav .header-search > a,html body #masthead .mobile-nav .cart-item > a{color:#fff !important}
	html body #masthead .mobile-nav li.bond-m-search{display:none !important}
	.lc-m-subbar{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 12px;background:#fff;border-bottom:1px solid #e6efe8;font-size:clamp(10.5px,3.2vw,12px);color:#3f5242;white-space:nowrap}
	.lc-m-subbar span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;min-width:0}
	.lc-m-subbar b{margin-left:-2px}
	.lc-m-subbar svg{color:#14803a}
	.lc-m-subbar b{color:#146b2a}
	.lc-m-subbar i{width:1px;height:14px;background:#d9e2da}
	.lc-m-subbar .lc-freeship{font-size:inherit;font-weight:600}
}
@media (min-width:850px){.lc-m-subbar{display:none !important}}
/* Ô tìm kiếm luôn hiện trên desktop (CSS cũ ẩn dưới 1400px để dùng nút bật/tắt) */
@media (min-width:850px){
	html body #masthead li.header-search-form{display:flex !important;align-items:center;margin:0 24px}
	html body #masthead .header-search-form .searchform-wrapper{width:100%}
	html body #wide-nav .nav{flex-wrap:nowrap}
	html body #wide-nav .nav > li{margin:0}
	html body #wide-nav .nav > li > a{padding:0 12px;white-space:nowrap}
	html body #masthead .cart-item .cart-icon{font-size:20px}
	html body #masthead .cart-item .header-cart-link .icon-shopping-cart,html body #masthead .cart-item .header-cart-link i{font-size:22px}
}
@media (min-width:850px){
	html body #masthead li.header-search-form{flex:1 1 560px !important;max-width:620px !important;width:auto !important}
	html body #masthead li.header-search-form :is(.header-search-form-wrapper,.searchform-wrapper,form.searchform){width:100% !important;max-width:none !important;flex:1 1 auto !important}
	html body #masthead li.header-search-form .searchform{background:#fff !important;border-radius:10px !important;padding:4px 4px 4px 36px !important;position:relative}
	html body #masthead li.header-search-form .searchform::before{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;transform:translateY(-50%);background:no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b5c' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
	html body #masthead li.header-search-form input.search-field{height:38px !important;background:transparent !important;border:0 !important;font-size:14px !important;padding:0 8px !important;color:#1c2a1e !important}
	html body #masthead li.header-search-form button.ux-search-submit{width:auto !important;min-width:107px !important;height:38px !important;padding:0 18px !important;border-radius:8px !important;background:#ffe14d !important;color:#1c2a1e !important;font-size:14px !important;font-weight:700 !important;line-height:38px !important;box-shadow:none !important}
	html body #masthead li.header-search-form button.ux-search-submit i{display:none !important}
	html body #masthead li.header-search-form button.ux-search-submit::after{content:"Tìm kiếm";font-family:"Be Vietnam Pro",sans-serif}
	html body #masthead li.header-search-form .flex-col:last-child{flex:0 0 auto !important}
}
@media (max-width:849px){
	html body #masthead .mobile-nav .nav-icon > a{font-size:14px !important;line-height:1 !important;height:34px !important;padding:0 12px 0 5px !important}
	html body #masthead .mobile-nav .nav-icon > a::after{content:"Danh mục" !important;font-size:14px !important;font-weight:700 !important;color:#fff !important}
	html body #masthead .mobile-nav .nav-icon > a .icon-menu{font-size:12px !important;width:24px !important;height:24px !important}
	html body #masthead .mobile-nav .header-search > a{border:0 !important;background:transparent !important;font-size:20px !important}
	html body #masthead .mobile-nav .header-search > a i{font-size:20px !important}
	html body #masthead #logo img{max-height:44px}
}
