/*
 * Điện Lạnh Như Ý – reference visual pass.
 * Header stays Flatsome-managed. UX Builder page content remains editable.
 * Colors: #1e6db6 / #0a578d.
 */

/* 1. WordPress Flatsome header: structure retained, visual treatment aligned */
#header { color:#173b58; box-shadow:0 6px 22px rgba(8,45,74,.055); }
#header #masthead { background:#03a0e2; border-bottom:1px solid #e8f0f7; }
#header #masthead .header-inner { min-height:82px; }
#header #logo img { max-height:69px; width:auto; object-fit:contain; }
#header #masthead .header-search-form { flex:1; max-width:580px; min-width:220px; }
#header #masthead .searchform-wrapper { border:1px solid #dbe9f4; background:#f8fbfe; border-radius:10px; overflow:hidden; }
#header #masthead .searchform .flex-row { align-items:stretch; }
#header #masthead .searchform input.search-field {
 height:43px!important; min-height:43px; border:0!important;
 background:#f8fbfe!important; box-shadow:none!important;
 font-size:14px!important; color:#284c66; padding:0 14px!important;
}
#header #masthead .searchform select.search_categories {
 height:43px!important; border:0!important; border-right:1px solid #dae7f3!important;
 background:#f1f7fc!important; font-size:14px!important;
}
#header #masthead .searchform button.ux-search-submit {
 min-height:43px!important; height:43px!important;
 border:0!important; border-radius:0!important; margin:0!important;
 background:#1e6db6!important; color:#fff!important; box-shadow:none!important;
 min-width:52px;
}
#header #masthead .header-block-hotline,
#header #masthead .header-block-hotline p,
#header #masthead .header-block-hotline a,
#header #masthead .header-block-hotline span {
 color:#0a578d!important; font-family:'Be Vietnam Pro',sans-serif; font-size:13px;
 font-weight:800; line-height:1.6;
}
#header #masthead .header-block .icon-inner,
#header #masthead .header-block .icon-inner svg { color:#1e6db6!important; fill:#1e6db6!important; }
#header #masthead .header-block .icon-box-img { margin-right:7px; }
#header #wide-nav {
 background:#0a578d!important; border:0!important;
 min-height:53px;
 box-shadow:0 8px 16px #082d4a0e;
}
#header #wide-nav > .container { max-width:1240px; min-height:53px; }
#header #wide-nav .header-nav > li > a,
#header #wide-nav .header-nav > li > a.nav-top-link {
 color:#fff!important; font-size:15px!important; font-weight:700!important;
 line-height:53px!important; padding:0 13px!important; letter-spacing:0;
 text-transform:none!important; min-height:53px;
}
#header #wide-nav .header-nav > li.active > a.nav-top-link,
#header #wide-nav .header-nav > li > a.nav-top-link:hover {
 background:#ffffff16!important; color:#fff!important;
}
#header #wide-nav .header-vertical-menu__opener {
 display:flex;align-items:center;gap:10px;min-height:53px;
 padding:0 18px!important;background:#1e6db6!important;
 color:#fff!important; font-size:12px!important;font-weight:800!important;
 border:0!important;border-radius:0!important;
}
#header #wide-nav .header-vertical-menu__title {font-size:15px!important;color:#fff!important;font-weight:800!important;white-space:nowrap}
#header #wide-nav .header-vertical-menu__opener .icon-menu{color:#fff!important}
#header #wide-nav .nav-dropdown, #header #wide-nav .header-vertical-menu__fly-out {box-shadow:0 18px 45px #0a36552c;}
#header #wide-nav ul.sub-menu a {font-size:15px;color:#31546f!important}
#header #wide-nav ul.sub-menu a:hover {background:#eef6fd!important;color:#1e6db6!important;}
#header #top-bar {background:#082d4a!important;color:#c7e1f1!important;}
#header #top-bar a {color:#e1f0fb!important;font-size:11px;}
#header .mobile-nav .nav-icon a, #header .mobile-nav i {color:#0a578d!important;}

/* 2. Match reference hero structure with full-width Flatsome section wrapper */
body.home #main.nhuy-home-legacy .ny-ref-hero-section {
 margin:0!important; padding:0!important; background:#f3f8fd!important;
}
body.home #main.nhuy-home-legacy .ny-ref-hero-section .section-content,
body.home #main.nhuy-home-legacy .ny-ref-category-section .section-content,
body.home #main.nhuy-home-legacy .ny-ref-products-section .section-content {
 max-width:none!important; padding:0!important; margin:0!important;
}
body.home #main.nhuy-home-legacy .ny-ref-hero-section .ny-ref-hero-text,
body.home #main.nhuy-home-legacy .ny-ref-category-section .ny-ref-category-content,
body.home #main.nhuy-home-legacy .ny-ref-products-section .ny-ref-products-content {
 margin:0!important; padding:0!important; max-width:none!important;
}
body.home #main.nhuy-home-legacy .store-hero {
 background:#f3f8fd!important; padding:23px 0 34px!important; overflow:hidden;
}
body.home #main.nhuy-home-legacy .store-hero-grid {height:410px; width:min(1240px,calc(100% - 64px));margin:auto;}
body.home #main.nhuy-home-legacy .store-hero-main {border-radius:15px;box-shadow:0 11px 26px #092e5514;}
body.home #main.nhuy-home-legacy .store-hero-copy {width:64%; padding:49px 0 35px 46px;}
body.home #main.nhuy-home-legacy .store-hero h1 {
 color:#fff!important; font-size:clamp(32px,3.5vw,47px)!important;
 font-weight:800; margin:15px 0 12px;line-height:1.23;
}
body.home #main.nhuy-home-legacy .store-hero h1 em {color:#bfe4ff!important;}
body.home #main.nhuy-home-legacy .store-hero .store-eyebrow {color:#c3e2fa!important;font-size:9px!important;}
body.home #main.nhuy-home-legacy .store-hero p {
 font-size:12px!important;color:#e0effa!important;margin:0;max-width:380px;line-height:1.9;
}
body.home #main.nhuy-home-legacy .store-hero .hero-actions {
 display:flex;gap:9px;flex-wrap:wrap;margin-top:23px;
}
body.home #main.nhuy-home-legacy .store-hero .hero-actions .button {
 min-height:45px!important;padding:0 15px!important;border-radius:7px!important;
 font-size:10px!important;box-shadow:none!important;white-space:nowrap;
 text-decoration:none!important;display:inline-flex;align-items:center;gap:13px;
}
body.home #main.nhuy-home-legacy .store-hero .hero-actions .button.white {
 color:#0a578d!important;background:#fff!important;border:1px solid #fff!important;
}
body.home #main.nhuy-home-legacy .store-hero .hero-actions .button.transparent {
 color:#fff!important;background:transparent!important;border:1px solid #ffffffb3!important;
}
body.home #main.nhuy-home-legacy .store-hero .store-hero-side {gap:14px;}
body.home #main.nhuy-home-legacy .store-hero .mini-promo {
 border-radius:13px;transition:box-shadow .2s ease,transform .2s ease;
}
body.home #main.nhuy-home-legacy .store-hero .mini-promo:hover{
 box-shadow:0 12px 24px #0a578d28;transform:translateY(-2px);
}
body.home #main.nhuy-home-legacy .store-hero .mini-promo strong{color:#0a3d67!important;font-size:19px!important;}
body.home #main.nhuy-home-legacy .store-hero .mini-promo small{color:#0a578d!important;}
body.home #main.nhuy-home-legacy .store-hero .mini-promo span{color:#1e6db6!important;}
body.home #main.nhuy-home-legacy .store-hero .mini-promo img{border-radius:0!important;}

/* 3. Five reference categories + feature strip */
body.home #main.nhuy-home-legacy .ny-ref-category-section {
 padding:0!important;margin:0;background:#fff!important;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-categories {
 margin:auto; padding:64px 0 55px;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-section-head h2,
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-section-head h2 {
 color:#0a3d67!important;font-size:31px!important;letter-spacing:-1.2px!important;line-height:1.3;
 margin:7px 0 0!important;padding:0!important;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category-grid {
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category {
 border:1px solid #e0eaf3;border-radius:13px;background:#fff;
 box-shadow:0 4px 12px #0a578d08;padding:15px;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category img {
 width:100%;height:106px;object-fit:contain;border-radius:0!important;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category strong {
 font-size:12px;color:#153e5e;margin:13px 0 5px;line-height:1.4;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category span {
 font-size:10px;color:#1e6db6;font-weight:800;
}
body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-benefits {
 margin-top:34px;padding:22px 16px;
 background:#eef6fd;border-radius:13px;
}

/* 4. WooCommerce cards, tied to live WP products */
body.home #main.nhuy-home-legacy .ny-ref-products-section {
 padding:0!important;background:#f5f8fc!important;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .store-products.section {
 padding:68px 0 78px!important;background:#f5f8fc!important;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-products-grid {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product {
 border-radius:12px;box-shadow:0 5px 18px #0a4a750a;transition:box-shadow .2s,transform .2s;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product:hover {
 transform:translateY(-3px);box-shadow:0 15px 32px #0a4a751c;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-image {
 height:208px!important;background:#fff;padding:20px;position:relative;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-image img {
 object-fit:contain!important;width:100%!important;height:100%!important;border-radius:0!important;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-content {
 padding:17px;display:flex;flex-direction:column;flex:1;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-content h3 {
 font-size:14px!important;min-height:43px;margin:8px 0 12px;color:#113c59!important;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-price strong {color:#1e6db6!important;}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-card-actions button {
 background:#1e6db6!important;color:#fff!important;font-size:9px!important;
 min-height:38px;border:0;border-radius:6px;
}
body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-demo-note{font-size:10px;}

/* 5. Old homepage content stays editable in UX Builder but follows new rhythm */
body.home #main.nhuy-home-legacy > .section:not(.ny-ref-hero-section):not(.ny-ref-category-section):not(.ny-ref-products-section) {
 border-top:1px solid #eaf2f9;
}
body.home #main.nhuy-home-legacy > .section:not(.ny-ref-hero-section):not(.ny-ref-category-section):not(.ny-ref-products-section) .section-content{
 max-width:1240px;margin:auto;
}
body.home #main.nhuy-home-legacy .row.mb-pd-small .box {border-radius:15px!important;}
body.home #main.nhuy-home-legacy .list-box-style1 > .col > .col-inner {border-radius:15px!important;}
body.home #main.nhuy-home-legacy .bg-shape .col-inner {border-radius:18px!important;}
body.home #main.nhuy-home-legacy .nhuy-news-card,
body.home #main.nhuy-home-legacy .nhuy-project-card {border-radius:15px!important;}
body.home #main.nhuy-home-legacy .ny-ref-hero-text :is(h1,h2,h3,p),
body.home #main.nhuy-home-legacy .ny-ref-category-content :is(h2,h3,p),
body.home #main.nhuy-home-legacy .ny-ref-products-content :is(h2,h3,p){
 word-break:normal;
}

/* 6. Responsive parity, no interfering with Flatsome responsive nav */
@media(max-width:1100px){
 #header #wide-nav .header-nav > li > a.nav-top-link {font-size:11px!important;padding:0 9px!important}
 body.home #main.nhuy-home-legacy .store-hero-grid {grid-template-columns:1.65fr .72fr;}
 body.home #main.nhuy-home-legacy .store-hero-copy {padding:43px 0 28px 30px;}
 body.home #main.nhuy-home-legacy .store-hero h1 {font-size:36px!important}
}
@media(max-width:849px){
 #header #masthead .header-inner{min-height:67px;}
 #header #logo img{max-height:52px;}
 body.home #main.nhuy-home-legacy .ny-ref-hero-section{padding:0!important}
 body.home #main.nhuy-home-legacy .store-hero-grid {
  height:auto!important;grid-template-columns:1fr!important;width:min(100% - 36px,680px);
 }
 body.home #main.nhuy-home-legacy .store-hero-main{height:355px;}
 body.home #main.nhuy-home-legacy .store-hero-copy{padding:35px 0 30px 30px;width:62%}
 body.home #main.nhuy-home-legacy .store-hero-side{grid-template-columns:1fr 1fr;grid-template-rows:180px;gap:11px}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-categories{width:min(100% - 36px,680px);padding:48px 0;}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .store-products.section{padding:52px 0!important;}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:549px){
 #header #masthead .header-inner{min-height:60px;}
 #header #logo img{max-height:46px;}
 body.home #main.nhuy-home-legacy .store-hero {padding:12px 0 24px!important;}
 body.home #main.nhuy-home-legacy .store-hero-grid{width:calc(100% - 30px)!important;gap:9px}
 body.home #main.nhuy-home-legacy .store-hero-main{height:385px!important;border-radius:11px}
 body.home #main.nhuy-home-legacy .store-hero-copy{width:100%;padding:23px 20px}
 body.home #main.nhuy-home-legacy .store-hero h1{font-size:31px!important;line-height:1.15;margin:11px 0!important;}
 body.home #main.nhuy-home-legacy .store-hero p{font-size:10px!important;max-width:285px;line-height:1.7}
 body.home #main.nhuy-home-legacy .store-hero .hero-actions{margin-top:13px;}
 body.home #main.nhuy-home-legacy .store-hero .hero-actions .button{
  min-height:37px!important;font-size:9px!important;padding:0 10px!important;gap:6px;
 }
 body.home #main.nhuy-home-legacy .store-hero-side{grid-template-columns:1fr 1fr;grid-template-rows:140px!important;gap:8px;}
 body.home #main.nhuy-home-legacy .store-hero .mini-promo{padding:10px!important;}
 body.home #main.nhuy-home-legacy .store-hero .mini-promo strong{font-size:14px!important;}
 body.home #main.nhuy-home-legacy .store-hero .mini-promo small{font-size:8px!important;}
 body.home #main.nhuy-home-legacy .store-hero .mini-promo span{font-size:7px!important;}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-categories{
  width:calc(100% - 30px);padding:44px 0 40px!important;
 }
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-section-head h2,
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-section-head h2{
  font-size:24px!important;
 }
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 }
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category{
  padding:11px;border-radius:10px;
 }
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category img{height:83px}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-category strong{font-size:10px}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-benefits{
  margin-top:24px;padding:12px;display:block;
 }
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-benefits>div{border-right:0;border-bottom:1px solid #d2e4f2;padding:10px}
 body.home #main.nhuy-home-legacy .ny-ref-category-section .shop-benefits>div:last-child{border:0}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .store-products.section{padding:45px 0!important;}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .store-products .wrap{width:calc(100% - 30px)}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-products-grid{gap:9px}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-image{height:136px!important;padding:9px}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-content{padding:11px}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-product-content h3{font-size:11px!important;min-height:48px;}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-price strong{font-size:11px!important}
 body.home #main.nhuy-home-legacy .ny-ref-products-section .shop-card-actions button{font-size:8px!important}
}
