/* ==========================================================================
   Mộc An Furniture — main stylesheet
   ========================================================================== */
:root {
	--accent: #2f3a33;
	--accent-2: #b08d5b;
	--ink: #1f1d1a;
	--ink-2: #5b564f;
	--muted: #8a847b;
	--line: #e6e1d8;
	--bg: #ffffff;
	--bg-soft: #f6f3ee;
	--sale: #b4532a;
	--radius: 4px;
	--container: 1320px;
	--gutter: clamp(16px, 3vw, 32px);
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Cormorant Garamond", Georgia, serif;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); font-weight: 400; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 500; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: .8em; }
.icon { flex: none; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Buttons ---------------------------------------------------------------- */
.btn, .button, button.button, a.button, input[type="submit"], .wp-block-button__link,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 26px; border: 1px solid var(--accent); border-radius: var(--radius);
	background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .02em;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s; line-height: 1.2; text-decoration: none;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, input[type="submit"]:hover {
	background: #000; border-color: #000; color: #fff;
}
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost, .woocommerce a.button.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order { background: var(--accent); border-color: var(--accent); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #000; border-color: #000; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; cursor: pointer; position: relative; color: var(--ink); }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

/* Forms ------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"],
textarea, select, .woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container .select2-selection--single {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 24px; padding-left: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
label { font-size: 14px; font-weight: 500; }

/* Top bar & header ------------------------------------------------------- */
.topbar { background: var(--accent); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-text { margin: 0; opacity: .92; }
.topbar-nav ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topbar-nav a:hover { color: #fff; opacity: .75; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; }
.brand img { max-height: 46px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-toggle { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.cart-count.is-empty { display: none; }

/* Primary nav + mega menu */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav .drawer-head, .drawer-call { display: none; }
.primary-nav > .menu { display: flex; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; height: var(--header-h); }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a { display: flex; align-items: center; gap: 4px; padding: 0 14px; height: 100%; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.primary-nav .menu > li > a .icon { transition: transform .2s; }
.primary-nav .menu > li:hover > a .icon { transform: rotate(180deg); }
.primary-nav .menu-sale > a { color: var(--sale); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li > .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; padding: 14px 0; background: #fff; border: 1px solid var(--line);
	box-shadow: 0 18px 40px -20px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 7px 22px; font-size: 14px; color: var(--ink-2); }
.primary-nav .sub-menu a:hover { color: var(--ink); background: var(--bg-soft); }
.primary-nav .menu > li.mega { position: static; }
.primary-nav .menu > li.mega > .sub-menu {
	left: 0; right: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
	padding: 32px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
	border-left: 0; border-right: 0;
}
.primary-nav .mega > .sub-menu > li > a { padding: 0 0 10px; font-weight: 600; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; background: none; }
.primary-nav .mega > .sub-menu .sub-menu a { padding: 5px 0; background: none; }
.primary-nav .mega > .sub-menu .sub-menu a:hover { color: var(--accent-2); }

/* Search panel */
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; }
.search-form-lg { display: flex; align-items: center; gap: 12px; }
.search-form-lg input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 18px; padding-left: 0; }
.search-form-lg input:focus { border-color: var(--ink); }

/* Main sections ---------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tint { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.15) 60%, transparent); }
.hero-content { position: relative; z-index: 1; padding-top: 80px; padding-bottom: clamp(48px, 8vw, 110px); }
.hero-content > * { max-width: 600px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .lead { font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; opacity: .95; margin-bottom: 28px; }

.usp { border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; align-items: center; gap: 12px; padding: 22px 16px; font-size: 14px; color: var(--ink-2); }
.usp-item + .usp-item { border-left: 1px solid var(--line); }
.usp-item .icon { color: var(--accent-2); }

.cat-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 20px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; }
.cat-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); margin-bottom: 10px; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-name { font-weight: 500; }
.cat-count { font-size: 13px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-soft); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--ink-2); max-width: 46ch; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { margin: 0; padding: 28px; background: #fff; border: 1px solid var(--line); }
.stars { display: flex; gap: 2px; color: var(--accent-2); margin-bottom: 14px; }
.review blockquote { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.review figcaption { font-size: 13px; font-weight: 600; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.post-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); margin-bottom: 14px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover img { transform: scale(1.04); }
.post-card .eyebrow { margin-bottom: 6px; }
.post-card h3 { font-size: 18px; margin-bottom: 6px; }

/* Generic pages ---------------------------------------------------------- */
.page-wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-narrow { max-width: 860px; }
.page-head { margin-bottom: 32px; }
.entry-content { font-size: 16px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-hero { margin: 0 0 32px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 500; }
.pagination, .woocommerce nav.woocommerce-pagination { margin-top: 48px; text-align: center; }
.nav-links, .woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0 !important; }
.page-numbers, .woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.nav-links .page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line) !important; border-radius: var(--radius);
}
.nav-links .current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.empty { padding: 40px 0; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #1f2420; color: #d9d6cf; padding-top: clamp(48px, 6vw, 80px); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-text { color: #fff; display: inline-block; margin-bottom: 8px; }
.site-footer .muted { color: #9c988f; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.socials a { border-bottom: 1px solid rgba(255,255,255,.3); }
.showroom-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.showroom { display: flex; gap: 12px; }
.showroom .icon { margin-top: 3px; color: var(--accent-2); }
.showroom strong { display: block; color: #fff; font-weight: 500; }
.showroom span, .showroom a { display: block; color: #a9a59c; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-bottom p { margin: 0; }

/* Floating contact */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.fc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); font-weight: 700; font-size: 13px; transition: transform .2s; }
.fc:hover { color: #fff; transform: scale(1.06); }
.fc-zalo { background: #0068ff; }
.fc-mess { background: #7b4cff; }
.fc-call { background: var(--accent-2); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(176,141,91,.5); } 50% { box-shadow: 0 0 0 12px rgba(176,141,91,0); } }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb, .breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }
.shop-wrap { padding-top: 28px; padding-bottom: clamp(48px, 7vw, 96px); }
.shop-wrap.has-filters { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop-wrap.has-filters .shop-main { min-width: 0; }
.shop-filters { position: sticky; top: calc(var(--header-h) + 24px); }
.shop-filters .drawer-head { display: none; }
.filter-block { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.filter-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.filter-block ul { list-style: none; margin: 0; padding: 0; }
.filter-block li { padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.filter-block ul.children { padding-left: 14px; }
.filter-block .count { color: var(--muted); font-size: 12px; }
.filter-block .current-cat > a { color: var(--ink); font-weight: 600; }
.filter-toggle { display: none; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--ink); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--line); }
.woocommerce .widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 0 16px; font-size: 13px; }

.woocommerce-products-header { margin-bottom: 16px; }
.woocommerce-products-header__title { margin: 0; }
.term-description { color: var(--ink-2); max-width: 70ch; }
.woocommerce .woocommerce-result-count { margin: 0; font-size: 14px; color: var(--muted); line-height: 46px; }
.woocommerce .woocommerce-ordering { margin: 0 0 28px; }
.woocommerce .woocommerce-ordering select { width: auto; }

/* Product grid & card */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 22px; margin: 0; padding: 0; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); margin-bottom: 14px; }
.card-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: opacity .45s, transform .7s; }
.card-media .card-alt { opacity: 0; }
li.product:hover .card-media .card-alt { opacity: 1; }
li.product:hover .card-media img:first-of-type:not(:only-of-type) { transform: scale(1.03); }
.badge-sale { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 600; border-radius: 2px; }
.card-cat { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font); font-size: 15px; font-weight: 500; padding: 0; margin: 0 0 6px; }
.woocommerce ul.products li.product .price { color: var(--ink); font-size: 15px; font-weight: 500; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-size: 13px; font-weight: 400; opacity: 1; order: 2; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sale); }
.woocommerce ul.products li.product .button { margin-top: auto; min-height: 40px; padding: 0 16px; font-size: 13px; background: transparent; color: var(--ink); border-color: var(--line); align-self: flex-start; }
.woocommerce ul.products li.product .button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce ul.products li.product .added_to_cart { font-size: 13px; margin-top: 6px; text-decoration: underline; }
.woocommerce a.button.loading::after { top: auto; right: 10px; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); position: relative; }
.woocommerce div.product > .badge-sale { top: 16px; left: 16px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: var(--bg-soft); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; }
.woocommerce div.product div.images img { background: var(--bg-soft); }
.woocommerce div.product div.summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3vw, 40px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 24px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: var(--sale); }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: 17px; color: var(--muted); order: 2; }
.woocommerce-product-details__short-description { color: var(--ink-2); margin: 16px 0 24px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 16px; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations th { padding-bottom: 8px; }
.woocommerce div.product form.cart .variations td { padding-bottom: 14px; }
.woocommerce div.product form.cart .reset_variations { font-size: 13px; margin-left: 8px; }
.woocommerce-variation-add-to-cart, .woocommerce div.product form.cart:not(.variations_form) { display: flex !important; gap: 12px; }
.woocommerce .quantity .qty { width: 80px; min-height: 50px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; min-height: 50px; float: none; }
.woocommerce-variation-price { margin-bottom: 12px; }
.consult { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.consult .btn { flex: 1; min-width: 150px; }
.trust { list-style: none; margin: 0 0 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; font-size: 13px; color: var(--ink-2); }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .icon { color: var(--accent-2); }
.product_meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 28px; padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 500; color: var(--muted); white-space: nowrap; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 820px; color: var(--ink-2); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); background: none !important; padding: 12px 0; font-style: normal; text-align: left; }
.woocommerce table.shop_attributes th { width: 200px; font-weight: 500; }
.related > h2, .upsells > h2 { margin: 48px 0 28px; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > * {
	border-top: 0 !important; background: var(--bg-soft) !important; border-left: 3px solid var(--accent) !important; padding: 16px 20px 16px 52px !important; margin: 0 0 24px !important; border-radius: var(--radius); list-style: none;
}
.woocommerce-error { border-left-color: var(--sale) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; top: 16px !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 0 16px; float: right; }

/* Cart & checkout */
.page-woo { max-width: var(--container); }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; border-radius: 0; }
.woocommerce table.shop_table th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 0; border-bottom: 1px solid var(--line); padding: 16px 12px; }
.woocommerce-cart table.cart img { width: 90px; background: var(--bg-soft); }
.woocommerce table.cart td.actions .coupon .input-text { width: 180px; min-height: 46px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--bg-soft); padding: 28px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 26px; }
.woocommerce-checkout #customer_details { margin-bottom: 32px; }
.woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 0 0 16px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ink-2); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #place_order { width: 100%; min-height: 54px; font-size: 15px; }
.wc-block-components-button:not(.is-link) { background: var(--accent); color: #fff; border-radius: var(--radius); }
.wc-block-components-button:not(.is-link):hover { background: #000; }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-family: var(--font); }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--radius) !important; }

.vietqr { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 24px; margin: 0 0 32px; border: 1px solid var(--line); background: var(--bg-soft); }
.vietqr img { width: 240px; background: #fff; border-radius: var(--radius); }
.vietqr > div { flex: 1; min-width: 240px; }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.woocommerce-MyAccount-navigation li.is-active a { font-weight: 600; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.primary-nav .menu > li > a { padding: 0 10px; }
}

@media (max-width: 960px) {
	:root { --header-h: 62px; }
	.nav-toggle { display: inline-grid; margin-left: -10px; }
	.header-inner { gap: 8px; }
	.brand { flex: 1; }
	.brand-text { font-size: 23px; }
	.header-actions { margin-left: 0; }
	.primary-nav {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(86vw, 360px); background: #fff; display: block; overflow-y: auto;
		transform: translateX(-100%); transition: transform .28s ease; padding: 0 0 24px;
	}
	.primary-nav.is-open { transform: none; }
	.primary-nav .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
	.primary-nav .drawer-head .brand-text { font-size: 20px; }
	.primary-nav > .menu { display: block; height: auto; }
	.primary-nav .menu > li { display: block; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { padding: 16px 20px; justify-content: space-between; font-size: 15px; }
	.primary-nav .menu > li > .sub-menu, .primary-nav .menu > li.mega > .sub-menu {
		position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 20px 14px; min-width: 0;
	}
	.primary-nav .menu > li.is-expanded > .sub-menu { display: block; }
	.primary-nav .menu > li.is-expanded > a .icon { transform: rotate(180deg); }
	.primary-nav .menu > li:hover > a .icon { transform: none; }
	.primary-nav .mega > .sub-menu > li { margin-bottom: 10px; }
	.primary-nav .sub-menu a { padding: 7px 0; }
	.primary-nav .mega > .sub-menu .sub-menu { padding-left: 12px; }
	.drawer-call { display: flex; align-items: center; gap: 10px; margin: 20px; font-weight: 600; }
	.hide-sm { display: none; }
	.admin-bar .site-header { top: 0; }

	.usp-grid { grid-template-columns: 1fr 1fr; }
	.usp-item { padding: 16px 8px; font-size: 13px; }
	.usp-item:nth-child(3) { border-left: 0; }
	.usp-item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.split { grid-template-columns: 1fr; }

	.shop-wrap.has-filters { display: block; }
	.filter-toggle { display: inline-flex; float: left; margin: 0 12px 20px 0; min-height: 42px; }
	.shop-filters { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(86vw, 340px); background: #fff; overflow-y: auto; padding: 0 20px 24px; transform: translateX(-100%); transition: transform .28s; }
	.shop-filters.is-open { transform: none; }
	.shop-filters .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
	.woocommerce .woocommerce-result-count { display: none; }
	.woocommerce .woocommerce-ordering { margin-bottom: 20px; }

	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.summary { position: static; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
	body { font-size: 14px; }
	.topbar-nav { display: none; }
	.topbar-text { font-size: 12px; text-align: center; width: 100%; }
	.hero { min-height: 72vh; }
	.hero::after { background: linear-gradient(0deg, rgba(20,18,15,.7) 0%, rgba(20,18,15,.2) 70%); }
	.section-head { flex-wrap: wrap; margin-bottom: 22px; }
	.usp-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 12px; line-height: 1.4; }
	.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.woocommerce ul.products li.product .price { font-size: 14px; }
	.woocommerce ul.products li.product .button { width: 100%; padding: 0 8px; font-size: 12px; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.footer-brand { grid-column: 1 / -1; }
	.trust { grid-template-columns: 1fr; }
	.woocommerce table.shop_table_responsive tr td { padding: 10px 0; }
	.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { padding: 20px 16px; }
	.float-contact { right: 12px; bottom: 12px; }
	.fc { width: 46px; height: 46px; }
	.vietqr img { width: 100%; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Woo overrides that need higher specificity */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { z-index: 5; }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled:hover { background: var(--accent); border-color: var(--accent); color: #fff; opacity: .45; }

/* Checkout: details left, order summary right */
@media (min-width: 961px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	.woocommerce-checkout form.checkout #customer_details .col-1, .woocommerce-checkout form.checkout #customer_details .col-2 { width: 100%; float: none; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 28px 28px 0; background: var(--bg-soft); }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 24px); }
}
.woocommerce-checkout #order_review_heading { font-size: 26px; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3, #ship-to-different-address { font-family: var(--font); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; }

/* Loop buttons: keep label centred */
.woocommerce ul.products li.product .button { display: inline-flex !important; align-items: center; justify-content: center; line-height: 1.2; }

@media (max-width: 960px) {
	/* backdrop-filter would trap the fixed-position drawers inside the header */
	.site-header { backdrop-filter: none; background: #fff; }
	.woocommerce .woocommerce-ordering select { max-width: 200px; }
}

/* The header is its own stacking context; lift it above the backdrop while a drawer is open */
body.drawer-open .site-header { z-index: 90; }

/* ==========================================================================
   v1.1 — blanc-style header & typography
   ========================================================================== */
:root { --ink: #232734; --bg-soft: #f9f8f7; --line: #e7e3dd; }
h1, h2 { font-family: var(--font); font-weight: 600; letter-spacing: -.015em; }
.topbar { background: var(--accent); }
.topbar-inner.is-centered { justify-content: center; }
.topbar-nav ul { gap: 44px; font-size: 13px; }
.brand-text { font-family: var(--font); font-weight: 700; letter-spacing: .28em; font-size: 24px; }
.primary-nav .menu > li > a { text-transform: uppercase; font-size: 13px; font-weight: 400; letter-spacing: .03em; }
@media (min-width: 961px) { .primary-nav .menu > li > a { padding: 0 10px; } }
.search-pill { display: flex; align-items: center; width: 210px; height: 38px; border: 1px solid #cfc9c0; border-radius: 19px; padding: 0 6px 0 14px; margin-right: 8px; }
.search-pill input { border: 0 !important; min-height: 0; height: 36px; padding: 0; font-size: 13px; background: transparent; }
.search-pill button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); }
.search-icon-sm { display: none; }
.product_title, .woocommerce-products-header__title, .page-head h1 { font-weight: 600; }
@media (max-width: 1180px) { .search-pill { width: 160px; } }
@media (max-width: 960px) {
	.search-pill { display: none; }
	.search-icon-sm { display: inline-grid; }
	.brand-text { font-size: 20px; }
	.topbar-nav { display: block; }
	.topbar-nav ul { gap: 22px; font-size: 12px; justify-content: center; }
}
@media (max-width: 680px) { .topbar-nav { display: block; } }
.site-footer { background: #241911; }

/* ==========================================================================
   v1.2 — Projects, quote/contact forms, CTA
   ========================================================================== */
/* Menu CTA ("Nhận báo giá") */
.primary-nav .menu > li.menu-cta { margin-left: 10px; }
.primary-nav .menu > li.menu-cta > a { height: auto; padding: 9px 16px; background: var(--accent); color: #fff; border-radius: 2px; }
.primary-nav .menu > li.menu-cta > a:hover { background: #000; color: #fff; }

/* Project listing */
.pj-hero { background: var(--bg-soft); padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.pj-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 4vw, 56px); }
.pj-lead { max-width: 62ch; font-size: 16px; margin: 0; }
.pj-wrap { padding-top: 28px; padding-bottom: clamp(48px, 6vw, 88px); }
.pj-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.pj-filter a { flex: none; padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; white-space: nowrap; }
.pj-filter a:hover { border-color: var(--ink); color: var(--ink); }
.pj-filter a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pj-styles { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 32px; }
.pj-styles a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.pj-card { display: flex; flex-direction: column; gap: 6px; }
.pj-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #ebe6de; margin-bottom: 8px; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pj-card:hover .pj-img img { transform: scale(1.04); }
.pj-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: rgba(255,255,255,.92); font-size: 12px; border-radius: 2px; color: var(--ink); }
.pj-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.pj-meta { font-size: 13px; color: var(--muted); }
.pj-subtitle { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin: 48px 0 24px; }
.pj-wrap > .pj-subtitle:first-of-type { margin-top: 12px; }

/* Project detail */
.pj-single { padding: 24px 0 clamp(48px, 6vw, 80px); }
.pj-head h1 { font-size: clamp(30px, 3.6vw, 50px); margin: 0 0 10px; }
.pj-head { margin-bottom: 28px; }
.pj-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 250px)); gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.pj-gallery a { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #ebe6de; }
.pj-gallery a[hidden] { display: none; }
.pj-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pj-gallery a:hover img { transform: scale(1.03); }
.pj-g0 { grid-row: span 2; }
.pj-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; font-weight: 500; }
.pj-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pj-facts { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-soft); padding: 28px; border-radius: 6px; }
.pj-facts h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.pj-facts dl { margin: 0 0 22px; }
.pj-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pj-facts dt { color: var(--muted); }
.pj-facts dd { margin: 0; font-weight: 500; text-align: right; }
.pj-cta { width: 100%; margin-top: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,12,10,.92); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }

/* CTA band */
.cta-quote { background: var(--accent); color: #f3ece4; padding: clamp(36px, 5vw, 64px) 0; }
.cta-quote-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-quote h2 { color: #fff; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; margin-bottom: 8px; }
.cta-quote p { margin: 0; opacity: .85; max-width: 60ch; }
.cta-quote-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-quote .btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.cta-quote .btn-white:hover { background: transparent; color: #fff; }
.cta-quote .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.cta-quote .btn-outline-light:hover { background: #fff; color: var(--ink); }

/* Lead forms */
.lead-form-wrap { max-width: 760px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lf-grid p { margin: 0 0 16px; display: grid; gap: 6px; }
.lf-wide { grid-column: 1 / -1; }
.lf-submit { width: 100%; min-height: 52px; }
.lf-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-ok, .lead-err { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 6px; margin-bottom: 16px; }
.lead-ok { background: #edf5ee; color: #24502c; }
.lead-err { background: #fbeeea; color: #8a2d16; }
.entry-content .lead-form-wrap a { text-decoration: none; }

/* Contact / service pages built from demo content */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.contact-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.contact-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; padding: 20px; background: var(--bg-soft); border-radius: 6px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 28px; font-weight: 600; color: var(--accent-2); margin-bottom: 6px; }
.entry-content .wp-block-columns { gap: 24px; }

@media (max-width: 1100px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
	.pj-body, .contact-grid { grid-template-columns: 1fr; }
	.pj-facts { position: static; }
	.pj-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 130px 130px; }
	.pj-g0 { grid-column: 1 / -1; grid-row: auto; }
	.primary-nav .menu > li.menu-cta { margin: 16px 20px; border: 0; }
	.primary-nav .menu > li.menu-cta > a { justify-content: center; padding: 14px; }
}
@media (max-width: 680px) {
	.pj-grid { grid-template-columns: 1fr; gap: 28px; }
	.lf-grid { grid-template-columns: 1fr; }
	.pj-gallery { grid-template-rows: 220px 110px 110px; gap: 6px; }
}

/* Longer menu (projects-first): keep labels on one line */
.primary-nav .menu > li > a { white-space: nowrap; }
@media (max-width: 960px) { .primary-nav .menu > li > a { padding: 16px 20px; font-size: 14px; } .admin-bar .primary-nav { top: 46px; } }
@media (max-width: 1360px) {
	.search-pill { display: none; }
	.search-icon-sm { display: inline-grid; }
}
@media (max-width: 1180px) and (min-width: 961px) {
	.primary-nav .menu > li > a { padding: 0 7px; font-size: 12px; }
	.primary-nav .menu > li.menu-cta { margin-left: 4px; }
	.header-inner { gap: 12px; }
	.brand-text { letter-spacing: .18em; }
}
.pj-body .entry-content h2 { font-size: 22px; margin: 1.4em 0 .4em; }
.pj-body .entry-content h2:first-child { margin-top: 0; }
.page-narrow:has(.contact-grid) { max-width: var(--container); }
.contact-grid h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 18px; }

/* v1.3: topbar items never wrap; on phones show hotline + survey only. */
.topbar-nav li { white-space: nowrap; }
@media (max-width: 680px) {
	.topbar-nav ul { gap: 16px; font-size: 12px; }
	.topbar-nav li:nth-child(2):not(:last-child) { display: none; }
}
