/*
Theme Name: VDD Vinhomes Theme v1.0.10
Theme URI: https://dev.com.vn
Author: dev.com.vn
Author URI: https://dev.com.vn
Description: Theme WordPress responsive theo layout Vinhomes HTML, tối ưu dùng cùng plugin VDD Vinhomes Core, WooCommerce và ACF Premium.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vdd-vinhomes
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');

:root{
  --vdd-primary:#062d55;
  --vdd-primary-2:#083a68;
  --vdd-deep:#021f3d;
  --vdd-secondary:#d9ab5a;
  --vdd-secondary-2:#f1c879;
  --vdd-text:#173354;
  --vdd-muted:#6e7d8d;
  --vdd-soft:#f6f9fc;
  --vdd-soft-blue:#eef6fb;
  --vdd-line:#e4edf4;
  --vdd-white:#fff;
  --vdd-shadow:0 12px 30px rgba(10,50,92,.10);
  --vdd-radius:12px;
  --vdd-container:1160px;
  --vdd-ease:200ms ease-in-out;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--vdd-text);font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.55;background:#fff;overflow-x:hidden;font-weight:400}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit}strong,b{font-weight:600}.container{width:min(var(--vdd-container),calc(100% - 40px));margin-inline:auto}.screen-reader-text{position:absolute;left:-9999px}.vdd-site-main{min-height:60vh}.vdd-content-area{padding:28px 0}.vdd-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.vdd-sidebar{position:relative}.vdd-sticky{position:sticky;top:78px}.vdd-card{background:#fff;border:1px solid var(--vdd-line);border-radius:var(--vdd-radius);box-shadow:var(--vdd-shadow);overflow:hidden}.vdd-card-body{padding:18px}.vdd-section{padding:32px 0}.vdd-section.compact{padding:22px 0}.vdd-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:8px;padding:12px 22px;background:var(--vdd-secondary);color:#082747;font-weight:600;cursor:pointer;transition:var(--vdd-ease);box-shadow:0 6px 16px rgba(217,171,90,.18)}.vdd-btn:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(217,171,90,.26)}.vdd-btn.dark{background:var(--vdd-primary);color:#fff;box-shadow:none}.vdd-btn.outline{background:#fff;color:var(--vdd-primary);border-color:#cbd8e5;box-shadow:none}.vdd-btn.sm{padding:8px 13px;font-size:12px;border-radius:7px}.vdd-eyebrow{color:var(--vdd-secondary);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.entry-title,h1,h2,.vdd-serif{font-family:'Playfair Display',Georgia,serif;font-weight:600;line-height:1.12}.entry-title{font-size:clamp(28px,4vw,46px);color:var(--vdd-text);margin:0 0 12px}.entry-content{font-size:15px}.entry-content a{text-decoration:underline;text-decoration-color:var(--vdd-secondary)}.entry-content h2,.entry-content h3{margin:28px 0 12px}.vdd-breadcrumb{font-size:12px;color:var(--vdd-muted);display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px}.vdd-breadcrumb a{color:var(--vdd-primary);font-weight:500}.vdd-page-hero{background:linear-gradient(90deg,var(--vdd-deep),var(--vdd-primary));color:#fff;padding:38px 0}.vdd-page-hero .entry-title{color:#fff}.vdd-page-hero p{max-width:680px;color:#dbe7f2;margin:0}.site-header{position:sticky;top:0;z-index:60;background:linear-gradient(90deg,var(--vdd-deep),var(--vdd-primary));color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.12)}.site-header .nav{height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:8px;font-family:'Playfair Display',Georgia,serif;font-size:23px;font-weight:600;letter-spacing:.02em;color:#f6d28a}.brand-mark{width:24px;height:28px;display:grid;place-items:center;color:var(--vdd-secondary)}.brand small{display:block;font-family:Inter,sans-serif;color:#b9c9d9;font-size:9px;letter-spacing:.16em;margin-top:-5px;text-transform:uppercase}.site-menu,.site-menu ul{list-style:none;margin:0;padding:0}.site-menu{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:500;color:#dce7f1}.site-menu li{position:relative}.site-menu a{display:flex;align-items:center;gap:6px;transition:var(--vdd-ease);white-space:nowrap}.site-menu a:hover,.site-menu .current-menu-item>a,.site-menu .current-menu-ancestor>a{color:var(--vdd-secondary-2)}.site-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:#fff;color:var(--vdd-text);border:1px solid var(--vdd-line);border-radius:10px;box-shadow:var(--vdd-shadow);padding:8px;z-index:70}.site-menu li:hover>.sub-menu,.site-menu li:focus-within>.sub-menu{display:block}.site-menu .sub-menu li{display:block}.site-menu .sub-menu a{padding:9px 11px;border-radius:8px}.site-menu .sub-menu a:hover{background:var(--vdd-soft-blue);color:var(--vdd-primary)}.site-menu .sub-menu .sub-menu{top:0;left:calc(100% + 8px)}.hamburger{display:none;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:8px;padding:8px 10px}.vdd-sidebar-box{background:#fff;border:1px solid var(--vdd-line);border-radius:var(--vdd-radius);box-shadow:var(--vdd-shadow);padding:16px;margin-bottom:16px}.vdd-sidebar-box h3{margin:0 0 10px;font-size:16px;color:var(--vdd-primary)}.vdd-sidebar-box ul{margin:0;padding-left:18px}.vdd-sidebar-box li{margin:7px 0}.vdd-contact-mini a{display:flex;align-items:center;gap:8px;margin:8px 0;color:var(--vdd-primary);font-weight:600}.site-footer{background:#031f3e;color:#dce7f1;padding:34px 0 18px;margin-top:32px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:22px}.footer-brand{font-family:'Playfair Display',Georgia,serif;color:#f6d28a;font-size:22px;margin-bottom:8px}.footer-col h3{font-size:14px;margin:0 0 12px;color:#fff}.footer-col p,.footer-col a{display:block;color:#b9c9d9;margin:0 0 8px}.footer-col a:hover{color:var(--vdd-secondary-2)}.social{display:flex;gap:8px;margin-top:10px}.social a{width:30px;height:30px;border-radius:999px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#fff}.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:22px;padding-top:14px;color:#9fb3c8;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:12px}.vdd-post-card{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;padding:14px;border-bottom:1px solid var(--vdd-line)}.vdd-post-card:last-child{border-bottom:0}.vdd-post-card h2{font-family:Inter,Arial,sans-serif;font-size:17px;line-height:1.35;margin:0 0 7px}.vdd-post-card .thumb{border-radius:10px;overflow:hidden;background:var(--vdd-soft-blue);aspect-ratio:4/3}.vdd-post-meta{font-size:12px;color:var(--vdd-muted);margin-bottom:7px}.vdd-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.vdd-mobile-bottom-nav{display:none}.vdd-filter-toggle{display:none}
@media(max-width:1024px){.footer-grid{grid-template-columns:repeat(3,1fr)}.vdd-layout{grid-template-columns:1fr}.vdd-sidebar{order:2}.vdd-sticky{position:static}.site-menu{gap:16px}}
@media(max-width:768px){body{padding-bottom:64px}.container{width:min(100% - 24px,var(--vdd-container))}.hamburger{display:block}.site-menu{display:none;position:absolute;top:58px;left:12px;right:12px;background:#fff;color:var(--vdd-text);border-radius:12px;box-shadow:var(--vdd-shadow);border:1px solid var(--vdd-line);padding:10px;align-items:stretch;flex-direction:column;gap:0}.site-menu.show{display:flex}.site-menu a{padding:10px;border-radius:8px}.site-menu .sub-menu{position:static;display:block;box-shadow:none;border:0;padding-left:12px;background:transparent}.site-menu .sub-menu .sub-menu{position:static}.footer-grid{grid-template-columns:repeat(2,1fr);gap:18px}.footer-col:first-child{grid-column:1/-1}.copyright{display:block}.vdd-post-card{grid-template-columns:92px 1fr}.vdd-related-grid{grid-template-columns:repeat(2,1fr)}.vdd-filter-toggle{display:inline-flex;position:fixed;right:14px;bottom:78px;z-index:80;border:0;background:var(--vdd-primary);color:#fff;border-radius:999px;padding:10px 14px;box-shadow:var(--vdd-shadow);font-weight:600}.vdd-filter-panel{position:fixed;inset:auto 0 0 0;max-height:78vh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;z-index:90;padding:18px;box-shadow:0 -14px 36px rgba(0,0,0,.18);transform:translateY(110%);transition:220ms ease}.vdd-filter-panel.is-open{transform:translateY(0)}.vdd-mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid var(--vdd-line);box-shadow:0 -8px 24px rgba(10,50,92,.12);display:grid;grid-template-columns:repeat(4,1fr)}.vdd-mobile-bottom-nav a{display:grid;place-items:center;padding:8px 4px 7px;font-size:11px;color:var(--vdd-primary);font-weight:600}.vdd-mobile-bottom-nav span{font-size:18px;line-height:1}}
@media(max-width:480px){.footer-grid{grid-template-columns:repeat(2,1fr)}.vdd-page-hero{padding:28px 0}.entry-title{font-size:30px}.vdd-related-grid{gap:10px}.vdd-post-card{padding:10px}.vdd-post-card h2{font-size:14px}}


/* v1.0.7 WooCommerce overflow fixes */
.woocommerce,.woocommerce-page,.woocommerce div.product,.woocommerce-page div.product{max-width:100%;overflow:hidden;box-sizing:border-box}.woocommerce div.product div.images,.woocommerce div.product div.summary,.woocommerce-page div.product div.images,.woocommerce-page div.product div.summary{box-sizing:border-box;max-width:100%;min-width:0}.woocommerce div.product div.images img{width:100%;height:auto;object-fit:cover;border-radius:12px}.woocommerce div.product .summary,.woocommerce div.product .product_title,.woocommerce div.product .woocommerce-product-details__short-description,.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{overflow-wrap:anywhere;word-break:normal;max-width:100%}.woocommerce div.product form.cart{max-width:100%;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.woocommerce div.product form.cart .quantity{margin:0!important}.woocommerce div.product form.cart .qty{max-width:82px;height:42px;border:1px solid var(--vdd-line);border-radius:8px;padding:8px}.woocommerce div.product form.cart .button{min-height:42px;border-radius:8px;background:var(--vdd-secondary);color:#082747;font-weight:600;border:0;padding:10px 18px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:22px 0 12px;display:flex;gap:8px;flex-wrap:wrap}.woocommerce div.product .woocommerce-tabs ul.tabs li{border:1px solid var(--vdd-line);border-radius:8px;background:#fff;margin:0;padding:0}.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:9px 12px;display:block}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px!important;margin:0!important;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;max-width:100%!important;margin:0!important;clear:none!important;background:#fff;border:1px solid var(--vdd-line);border-radius:var(--vdd-radius);box-shadow:var(--vdd-shadow);overflow:hidden;padding:0 0 14px!important}.woocommerce ul.products li.product a img{width:100%;aspect-ratio:4/3;object-fit:cover;margin:0 0 12px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .button{margin-left:14px!important;margin-right:14px!important}.woocommerce ul.products li.product .button{border-radius:8px}.woocommerce table,.woocommerce iframe{max-width:100%}.woocommerce .vdd-single-sections{clear:both;max-width:100%;overflow:hidden}.woocommerce .vdd-gallery-grid img{width:100%;height:100%;object-fit:cover}
@media(max-width:768px){.woocommerce div.product div.images,.woocommerce div.product div.summary,.woocommerce-page div.product div.images,.woocommerce-page div.product div.summary{float:none!important;width:100%!important}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.woocommerce div.product .product_title{font-size:28px}.woocommerce div.product form.cart .button{flex:1 1 auto;min-width:140px}.woocommerce div.product .woocommerce-tabs ul.tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.woocommerce .vdd-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.woocommerce .vdd-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important}.woocommerce ul.products li.product .price{font-size:13px!important}.woocommerce div.product form.cart{display:grid;grid-template-columns:82px minmax(0,1fr)}.woocommerce .vdd-fact-grid{grid-template-columns:1fr!important}}

/* v1.0.7 safety: hero split alignment handled by plugin; keep 1250px container if plugin CSS loads before theme */
.vdd-hero .container.vdd-hero-inner{width:min(1250px,calc(100% - 40px))!important;max-width:1250px!important;margin-inline:auto!important}


/* v1.0.7: HERO FIX CHUẨN — text trái, search phải, cả hai nằm trong khung ngoài 1250px */
.vdd-hero{
  min-height:460px!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
  background-size:cover!important;
  background-position:center!important;
}
.vdd-hero .container.vdd-hero-inner,
.vdd-hero .vdd-hero-inner.container{
  width:min(1250px, calc(100% - 72px))!important;
  max-width:1250px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:52px 0!important;
  min-height:430px!important;
  display:grid!important;
  grid-template-columns:minmax(0, 1fr) 430px!important;
  gap:56px!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.vdd-hero-copy{
  width:100%!important;
  max-width:620px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  justify-self:start!important;
  align-self:center!important;
}
.vdd-hero-copy .vdd-eyebrow{display:inline-block!important;margin-bottom:10px!important}
.vdd-hero h1{
  max-width:620px!important;
  font-size:clamp(30px,3.05vw,44px)!important;
  line-height:1.12!important;
  margin:0 0 14px!important;
}
.vdd-hero p{max-width:590px!important;margin:0!important}
.vdd-hero .vdd-search-form.compact{
  width:430px!important;
  max-width:430px!important;
  min-width:0!important;
  margin:0!important;
  padding:18px!important;
  justify-self:end!important;
  align-self:center!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  overflow:hidden!important;
}
.vdd-hero .vdd-search-form.compact .field,
.vdd-hero .vdd-search-form.compact > div{min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important}
.vdd-hero .vdd-search-form.compact input,
.vdd-hero .vdd-search-form.compact select,
.vdd-hero .vdd-search-form.compact .vdd-btn{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.vdd-hero .vdd-search-form.compact .vdd-btn{white-space:nowrap!important;text-align:center!important;overflow:hidden!important;text-overflow:clip!important}
@media(max-width:1280px){
  .vdd-hero .container.vdd-hero-inner,
  .vdd-hero .vdd-hero-inner.container{width:min(1180px, calc(100% - 64px))!important;grid-template-columns:minmax(0,1fr) 410px!important;gap:42px!important}
  .vdd-hero .vdd-search-form.compact{width:410px!important;max-width:410px!important}
}
@media(max-width:1024px){
  .vdd-hero .container.vdd-hero-inner,
  .vdd-hero .vdd-hero-inner.container{width:min(100% - 48px, 960px)!important;grid-template-columns:minmax(0,1fr) 380px!important;gap:30px!important}
  .vdd-hero .vdd-search-form.compact{width:380px!important;max-width:380px!important}
}
@media(max-width:900px){
  .vdd-hero{min-height:auto!important}
  .vdd-hero .container.vdd-hero-inner,
  .vdd-hero .vdd-hero-inner.container{width:min(100% - 32px, 720px)!important;grid-template-columns:1fr!important;gap:22px!important;min-height:0!important;padding:38px 0 28px!important}
  .vdd-hero .vdd-search-form.compact{justify-self:start!important;width:100%!important;max-width:520px!important}
}
@media(max-width:520px){
  .vdd-hero .container.vdd-hero-inner,
  .vdd-hero .vdd-hero-inner.container{width:calc(100% - 24px)!important;padding:32px 0 24px!important}
  .vdd-hero h1{font-size:30px!important}
  .vdd-hero .vdd-search-form.compact{max-width:100%!important;padding:15px!important}
}


/* v1.0.7: FIX MOBILE WOOCOMMERCE SCROLL FREEZE
   Không áp overflow:hidden lên body WooCommerce; giữ chống tràn ngang nhưng cho kéo dọc bình thường. */
html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body.woocommerce,
body.woocommerce-page,
body.single-product,
body.tax-product_cat,
body.tax-product_tag,
body.post-type-archive-product{
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  position:static!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
}
body.woocommerce .vdd-site-main,
body.woocommerce-page .vdd-site-main,
body.single-product .vdd-site-main,
body.tax-product_cat .vdd-site-main,
body.tax-product_tag .vdd-site-main,
body.post-type-archive-product .vdd-site-main{
  overflow-x:hidden!important;
  overflow-y:visible!important;
  height:auto!important;
  max-height:none!important;
}
body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce{
  overflow-x:hidden!important;
  overflow-y:visible!important;
  height:auto!important;
  max-height:none!important;
}
body.woocommerce div.product,
body.woocommerce-page div.product,
body.single-product div.product{
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
}
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .summary,
body.single-product .entry-summary{
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
  touch-action:pan-y!important;
}
.vdd-filter-panel{pointer-events:none}
.vdd-filter-panel.is-open{pointer-events:auto}
@media(max-width:768px){
  body.woocommerce,
  body.woocommerce-page,
  body.single-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.post-type-archive-product{
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .woocommerce ul.products{overflow:visible!important;height:auto!important;max-height:none!important}
  .woocommerce div.product form.cart{position:relative!important}
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product .related,
  .woocommerce div.product .upsells{overflow:visible!important;height:auto!important;max-height:none!important}
}


/* v1.0.9 critical Woo/mobile overflow fix */
html,body{max-width:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body.woocommerce,body.woocommerce-page,body.single-product,body.tax-product_cat,body.tax-product_tag,body.post-type-archive-product{overflow-x:hidden!important;overflow-y:auto!important;width:100%!important;max-width:100%!important;position:static!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
body.woocommerce-page .site,body.woocommerce-page #page,body.single-product .site,body.single-product #page{max-width:100%!important;overflow-x:hidden!important}
.vdd-woo-content,body.woocommerce-page .vdd-content-area,body.single-product .vdd-content-area{width:min(1160px,calc(100% - 24px))!important;max-width:1160px!important;margin-inline:auto!important;overflow:visible!important}
body.woocommerce-page .woocommerce,body.single-product .woocommerce{width:100%!important;max-width:100%!important;overflow:visible!important;min-width:0!important}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:0!important;padding:0!important;max-width:100%!important;overflow:visible!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important;content:none!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;clear:none!important;width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.single-product div.product{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important;align-items:start!important;width:100%!important;max-width:100%!important;overflow:visible!important;min-width:0!important}
body.single-product div.product div.images,body.single-product div.product div.summary,body.single-product .woocommerce-product-gallery,body.single-product .summary,body.single-product .entry-summary{float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow:visible!important;height:auto!important;max-height:none!important}
body.single-product div.product .woocommerce-tabs,body.single-product div.product .related,body.single-product div.product .upsells,body.single-product div.product .vdd-single-sections{grid-column:1/-1!important;width:100%!important;max-width:100%!important;overflow:visible!important}
@media(max-width:768px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body.single-product div.product{display:block!important}.vdd-woo-content,body.woocommerce-page .vdd-content-area,body.single-product .vdd-content-area{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;padding-left:0!important;padding-right:0!important}}
@media(min-width:769px){.vdd-filter-panel{pointer-events:auto!important;position:sticky!important;top:78px!important;transform:none!important}.vdd-filter-toggle{display:none!important}}
