/*
Theme Name: Nem Dalat
Theme URI: https://nemdalat.vn/
Author: NemDalat.vn
Description: Giao diện WooCommerce bán nệm, chăn ga gối theo phong cách hiện đại, tối giản và ưu tiên di động.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: nemdalat
*/
:root{--nd-green:#245b45;--nd-green-dark:#173e30;--nd-lime:#d8e9bd;--nd-cream:#f7f7f1;--nd-ink:#24312a;--nd-muted:#68756d;--nd-line:#e6eae4;--nd-white:#fff;--nd-radius:16px;--nd-shadow:0 12px 35px rgba(26,60,42,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--nd-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65}a{color:var(--nd-green);text-decoration:none}a:hover{color:var(--nd-green-dark)}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.nd-container{width:min(1200px,calc(100% - 40px));margin-inline:auto}.nd-topbar{background:var(--nd-green-dark);color:#fff;font-size:12px;text-align:center;padding:7px 12px;letter-spacing:.03em}.nd-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--nd-line)}.nd-head-inner{min-height:82px;display:flex;align-items:center;gap:28px}.nd-brand{display:flex;align-items:center;gap:10px;min-width:190px;color:var(--nd-green-dark);font-weight:800;font-size:24px;letter-spacing:-.04em}.nd-brand-mark{width:40px;height:40px;border-radius:13px;background:var(--nd-green);color:white;display:grid;place-items:center;font-size:22px}.nd-brand small{display:block;font-size:10px;letter-spacing:.18em;line-height:1;color:var(--nd-muted);font-weight:600}.nd-search{flex:1;display:flex;max-width:500px;border:1px solid var(--nd-line);border-radius:999px;background:#fafbf8;overflow:hidden}.nd-search input{width:100%;border:0;background:transparent;padding:11px 17px;outline:0}.nd-search button{border:0;background:var(--nd-green);color:white;padding:0 18px;cursor:pointer}.nd-head-actions{display:flex;align-items:center;gap:18px;white-space:nowrap;font-size:13px;font-weight:650}.nd-head-actions a{color:var(--nd-ink)}.nd-phone{display:flex;align-items:center;gap:8px}.nd-phone b{display:block;color:var(--nd-green);font-size:15px}.nd-nav{border-top:1px solid #f2f3ef}.nd-nav .nd-container{display:flex;align-items:center;gap:28px;min-height:45px}.nd-nav a{font-size:13px;font-weight:700;color:#34483b}.nd-nav a:hover{color:#8b9d4c}.nd-menu-label{color:var(--nd-green);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.nd-hero{padding:46px 0 28px;background:linear-gradient(110deg,#f3f7ed 0%,#fbfcf8 54%,#e8f0dc 100%);overflow:hidden}.nd-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;min-height:360px}.nd-eyebrow{display:inline-flex;align-items:center;gap:8px;background:#e5efd9;color:var(--nd-green);border-radius:999px;padding:6px 12px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.nd-hero h1{font-size:clamp(34px,4.4vw,58px);line-height:1.08;letter-spacing:-.055em;color:var(--nd-green-dark);margin:18px 0}.nd-hero h1 em{font-style:normal;color:#81994b}.nd-hero p{max-width:520px;color:#5d6b60;font-size:16px;margin:0 0 24px}.nd-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:999px;padding:12px 22px;background:var(--nd-green);color:#fff;font-size:13px;font-weight:750;border:1px solid var(--nd-green);transition:.2s}.nd-btn:hover{background:var(--nd-green-dark);color:#fff;transform:translateY(-1px)}.nd-btn-light{background:transparent;color:var(--nd-green);margin-left:8px}.nd-btn-light:hover{color:#fff}.nd-hero-art{min-height:310px;border-radius:34px;background:radial-gradient(ellipse at 70% 28%,#fff 0 12%,transparent 13%),linear-gradient(145deg,#d8e5c6,#b4c99d 55%,#789b76);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.nd-hero-art:before{content:"";position:absolute;width:70%;height:54%;left:12%;top:26%;border-radius:50% 50% 18px 18px;background:linear-gradient(160deg,#fff,#e9eee5);box-shadow:0 22px 30px rgba(38,75,47,.17);transform:rotate(-9deg)}.nd-hero-art:after{content:"NGỦ NGON • SỐNG KHỎE";position:absolute;bottom:22px;right:24px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.18em}.nd-art-label{position:absolute;z-index:2;top:23px;left:25px;background:#fff;color:var(--nd-green);padding:9px 14px;border-radius:999px;font-size:11px;font-weight:800;box-shadow:var(--nd-shadow)}.nd-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:22px 0}.nd-benefit{display:flex;align-items:center;gap:12px;padding:12px 15px;border:1px solid var(--nd-line);border-radius:13px;background:#fff}.nd-benefit-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;background:#eef4e7;border-radius:12px;color:var(--nd-green);font-size:18px}.nd-benefit strong{display:block;font-size:12px;line-height:1.3}.nd-benefit span{display:block;color:var(--nd-muted);font-size:10px;margin-top:3px}.nd-section{padding:48px 0}.nd-section-soft{background:var(--nd-cream)}.nd-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.nd-kicker{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#8a9b58}.nd-section h2{font-size:clamp(25px,3vw,36px);line-height:1.15;letter-spacing:-.04em;color:var(--nd-green-dark);margin:5px 0 0}.nd-section-head p{margin:6px 0 0;color:var(--nd-muted);font-size:13px}.nd-text-link{font-size:12px;font-weight:800;white-space:nowrap}.nd-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.nd-category{border:1px solid var(--nd-line);border-radius:var(--nd-radius);padding:18px;background:#fff;min-height:178px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 4px 15px rgba(20,55,35,.025);transition:.2s}.nd-category:hover{transform:translateY(-3px);box-shadow:var(--nd-shadow)}.nd-category-art{height:80px;border-radius:12px;background:linear-gradient(135deg,#eff4e8,#d7e5ca);display:grid;place-items:center;color:var(--nd-green);font-size:32px}.nd-category strong{font-size:14px;color:var(--nd-ink)}.nd-category span{font-size:11px;color:var(--nd-muted)}.nd-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.nd-product{position:relative;border:1px solid var(--nd-line);border-radius:15px;background:#fff;overflow:hidden;transition:.2s}.nd-product:hover{transform:translateY(-3px);box-shadow:var(--nd-shadow)}.nd-product-image{display:block;aspect-ratio:1/1;background:#f3f5f0;overflow:hidden}.nd-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.nd-product:hover .nd-product-image img{transform:scale(1.04)}.nd-product-body{padding:13px}.nd-product-cat{font-size:10px;color:#82915e;text-transform:uppercase;font-weight:800;letter-spacing:.08em}.nd-product-title{font-size:13px;line-height:1.45;font-weight:750;color:var(--nd-ink);display:block;margin:4px 0 7px;min-height:38px}.nd-price{color:#b35b35;font-weight:800;font-size:15px}.nd-old-price{color:#9aa39b;font-size:11px;text-decoration:line-through;margin-left:5px}.nd-product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:var(--nd-muted);font-size:10px}.nd-product-cta{display:block;margin-top:11px;text-align:center;border:1px solid #dce6d7;border-radius:999px;padding:7px;color:var(--nd-green);font-weight:800;font-size:11px}.nd-product-cta:hover{background:var(--nd-green);color:white}.nd-promo{border-radius:24px;padding:30px;background:var(--nd-green-dark);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;position:relative}.nd-promo:after{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:18%;top:-160px;box-shadow:0 0 0 35px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025)}.nd-promo h2{color:#fff;font-size:clamp(22px,3vw,34px);margin:4px 0}.nd-promo p{color:#d6e1d7;font-size:13px;margin:0}.nd-promo .nd-btn{background:#e2edcf;color:var(--nd-green-dark);border-color:#e2edcf;z-index:1}.nd-content{padding:34px 0}.nd-breadcrumb{font-size:11px;color:var(--nd-muted);margin:0 0 18px}.nd-page-title{font-size:32px;line-height:1.2;color:var(--nd-green-dark);letter-spacing:-.04em}.nd-footer{background:#f2f5ee;border-top:1px solid var(--nd-line);padding:40px 0 18px}.nd-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}.nd-footer h3{font-size:13px;color:var(--nd-green-dark);margin:0 0 12px}.nd-footer p,.nd-footer a{font-size:11px;color:#657268}.nd-footer a{display:block;margin:5px 0}.nd-footer-bottom{border-top:1px solid #dfe6dc;margin-top:25px;padding-top:14px;color:#7c887f;font-size:10px;display:flex;justify-content:space-between;gap:10px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;padding:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;border:1px solid var(--nd-line);border-radius:15px;padding:12px;overflow:hidden}.woocommerce ul.products li.product a img{border-radius:10px;background:#f3f5f0}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px;font-weight:750;color:var(--nd-ink)}.woocommerce ul.products li.product .price{color:#b35b35;font-weight:800}.woocommerce span.onsale{background:var(--nd-green);padding:4px 9px;min-height:0;line-height:1.5}.woocommerce div.product .product_title{font-size:30px;line-height:1.2;color:var(--nd-green-dark);letter-spacing:-.04em}.woocommerce div.product p.price,.woocommerce div.product span.price{color:#b35b35;font-weight:800}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--nd-green);color:#fff;border-radius:999px;font-weight:750;padding:12px 20px}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--nd-green-dark);color:#fff}.woocommerce .quantity .qty{border:1px solid var(--nd-line);border-radius:8px;min-height:42px}.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--nd-green)}.woocommerce-message{border-top-color:var(--nd-green)}.woocommerce-message:before{color:var(--nd-green)}.nd-mobile-bar{display:none}@media(max-width:900px){.nd-head-inner{gap:14px}.nd-brand{min-width:auto;font-size:20px}.nd-head-actions .nd-help{display:none}.nd-benefits{grid-template-columns:repeat(2,1fr)}.nd-categories{grid-template-columns:repeat(2,1fr)}.nd-products,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nd-footer-grid{grid-template-columns:repeat(2,1fr)}.nd-hero-grid{gap:18px}.nd-nav .nd-container{gap:17px;overflow:auto}.nd-nav a{white-space:nowrap}}@media(max-width:600px){body{font-size:14px}.nd-container{width:calc(100% - 28px)}.nd-topbar{font-size:10px}.nd-head-inner{min-height:66px;flex-wrap:wrap;gap:10px;padding:9px 0}.nd-brand{font-size:18px;flex:1}.nd-brand-mark{width:34px;height:34px}.nd-search{order:3;flex-basis:100%;max-width:none}.nd-search input{padding:8px 13px;font-size:12px}.nd-head-actions{gap:12px;font-size:11px}.nd-phone b{font-size:12px}.nd-phone small{display:none}.nd-nav .nd-container{min-height:39px;gap:16px}.nd-nav a{font-size:11px}.nd-menu-label{display:none}.nd-hero{padding:27px 0 18px}.nd-hero-grid{grid-template-columns:1fr;min-height:0}.nd-hero h1{font-size:35px;margin:13px 0}.nd-hero p{font-size:13px;margin-bottom:17px}.nd-hero-art{min-height:185px;border-radius:22px}.nd-hero-art:before{height:53%;top:24%}.nd-art-label{top:13px;left:14px;font-size:9px}.nd-benefits{gap:8px;padding:13px 0}.nd-benefit{padding:9px;gap:8px}.nd-benefit-icon{width:31px;height:31px;font-size:15px}.nd-benefit strong{font-size:10px}.nd-benefit span{font-size:9px}.nd-section{padding:32px 0}.nd-section-head{margin-bottom:16px}.nd-section h2{font-size:24px}.nd-section-head p{font-size:11px}.nd-categories{gap:10px}.nd-category{padding:12px;min-height:145px}.nd-category-art{height:64px;font-size:25px}.nd-category strong{font-size:12px}.nd-category span{font-size:10px}.nd-products,.woocommerce ul.products{gap:9px!important}.nd-product-body{padding:10px}.nd-product-title{font-size:11px;min-height:34px}.nd-price{font-size:13px}.nd-product-cta{font-size:10px;padding:6px}.nd-promo{padding:22px;display:block;border-radius:18px}.nd-promo .nd-btn{margin-top:15px}.nd-footer-grid{gap:18px;grid-template-columns:repeat(2,1fr)}.nd-footer{padding-top:30px}.nd-footer-bottom{font-size:9px;display:block}.nd-mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;border-top:1px solid var(--nd-line);padding:8px 14px;justify-content:space-around;box-shadow:0 -5px 20px rgba(0,0,0,.06)}.nd-mobile-bar a{font-size:10px;font-weight:750;color:var(--nd-green);text-align:center}.nd-mobile-bar span{display:block;font-size:17px;line-height:1.2}.site-content{padding-bottom:58px}.woocommerce div.product .product_title{font-size:24px}}

/* NemDalat 1.1.0 enhancements */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link:focus{position:fixed!important;top:10px;left:10px;width:auto;height:auto;margin:0;padding:10px 14px;clip:auto;background:#fff;z-index:99999}.nd-header{position:relative;z-index:20}.nd-topbar{background:#f4f1e8;font-size:13px}.nd-topbar-inner{display:flex;justify-content:space-between;gap:20px;padding:7px 20px}.nd-topbar a{color:inherit}.nd-header-main{display:grid;grid-template-columns:auto 1fr minmax(260px,520px) auto;align-items:center;gap:24px;padding:18px 20px}.nd-brand{display:flex;align-items:center;gap:10px;color:#214634;text-decoration:none}.nd-brand img{max-height:54px;width:auto}.nd-logo-mark{width:42px;height:42px;border-radius:12px;background:#35624a;color:#fff;display:grid;place-items:center;font-weight:800}.nd-brand strong{display:block;font-size:18px}.nd-brand small{display:block;color:#778579;font-size:11px}.nd-header-search .nd-search{margin:0}.nd-search{display:flex;border:1px solid #dce2da;border-radius:999px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(35,61,46,.06)}.nd-search input{min-width:0;flex:1;border:0;padding:12px 16px;outline:0}.nd-search button{width:48px;border:0;background:#35624a;color:#fff;font-size:20px}.nd-header-actions{display:flex;align-items:center;gap:14px}.nd-call{color:#35624a;font-weight:700;text-decoration:none}.nd-cart{position:relative;text-decoration:none;color:#244735;font-size:20px}.nd-cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d9a441;color:#fff;font-size:11px;line-height:1}.nd-menu-toggle{display:none}.nd-nav{border-top:1px solid #edf0eb;border-bottom:1px solid #e8ece7;background:#fff}.nd-nav-inner{display:flex;gap:28px;align-items:center;padding:0 20px}.nd-nav-inner ul{display:flex;list-style:none;margin:0;padding:0;gap:28px}.nd-nav-inner a{display:block;padding:13px 0;color:#294938;text-decoration:none;font-weight:600}.nd-hero-art{min-height:380px;border-radius:28px;background:linear-gradient(145deg,#e9f0e5,#cbdcc9);display:grid;place-items:center;position:relative;overflow:hidden;color:#35624a;font-size:12px;letter-spacing:.18em}.nd-bed-shape{position:absolute;width:72%;height:34%;bottom:18%;left:14%;border-radius:80px 80px 18px 18px;background:#fff;box-shadow:0 20px 40px rgba(40,70,50,.14)}.nd-bed-shape:before{content:"";position:absolute;left:8%;right:8%;top:-22%;height:45%;border-radius:40px;background:#f7f5ef}.nd-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.nd-benefit{min-width:0}.nd-benefit>span{flex:0 0 auto}.nd-benefit small{display:block;color:#718073;margin-top:3px}.nd-category strong{display:block}.nd-category small{display:block;color:#778579;margin-top:3px}.nd-image-placeholder{display:grid;place-items:center;height:100%;min-height:220px;background:#eef2ec;color:#718073}.nd-content{padding:48px 20px}.nd-content-inner{max-width:900px;margin:auto}.nd-post{margin-bottom:48px}.nd-post h1{margin-bottom:18px}.nd-post h1 a{color:#264b38;text-decoration:none}.nd-entry{line-height:1.75}.nd-woocommerce-main{padding-top:36px;padding-bottom:60px}.nd-footer a{display:block;margin:7px 0;color:inherit}.nd-footer-brand{font-size:24px;font-weight:800}.nd-footer-phone{font-size:20px;font-weight:800}.nd-footer-bottom{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.nd-product-image img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1}.nd-product-image{display:block;overflow:hidden}.nd-product-image img{transition:transform .25s ease}.nd-product:hover .nd-product-image img{transform:scale(1.03)}
@media(max-width:900px){.nd-header-main{grid-template-columns:auto 1fr auto;gap:12px}.nd-header-search{grid-column:1/-1;grid-row:2}.nd-menu-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid #dce2da;background:#fff;border-radius:10px;padding:9px 11px;color:#294938}.nd-nav{display:none}.nd-nav.is-open{display:block}.nd-nav-inner,.nd-nav-inner ul{flex-direction:column;align-items:stretch;gap:0}.nd-nav-inner a{padding:12px 4px;border-bottom:1px solid #eef1ed}.nd-call span{display:none}.nd-hero-grid{grid-template-columns:1fr}.nd-hero-art{min-height:280px}.nd-benefits{grid-template-columns:1fr 1fr}.nd-topbar-inner{padding-left:20px;padding-right:20px}}
@media(max-width:560px){.nd-topbar{display:none}.nd-header-main{padding:12px 14px}.nd-brand strong{font-size:16px}.nd-brand small{font-size:10px}.nd-benefits{grid-template-columns:1fr}.nd-hero-art{min-height:230px}.nd-section-head{align-items:flex-start;gap:10px}.nd-section-head .nd-text-link{white-space:nowrap}.nd-footer-grid{grid-template-columns:1fr}.nd-footer-bottom{font-size:12px}.nd-products{grid-template-columns:1fr 1fr}.nd-product-title{font-size:14px}.nd-product-body{padding:12px}.nd-product-image img,.nd-image-placeholder{min-height:0}.nd-hero{padding-top:48px;padding-bottom:48px}}
