/*
Theme Name: Hoa Theme
Description: Giao diện shop hoa sáp, hoa lụa, hoa tiền cho WooCommerce: chọn hoa theo chất liệu, dịp, màu, giá, đặt giao đúng giờ. Khung ảnh hình vòm, hợp laptop và điện thoại. Đổi màu, logo, chữ trong Giao diện > Tùy biến.
Version: 1.2.2
Requires at least: 5.7
Requires PHP: 7.2
Author: Shop Hoa
Text Domain: hoa-theme
*/

/* =====================================================================
   NỀN TẢNG
   ===================================================================== */
:root {
  --hoa-primary: #B3174F;   /* hồng đậm: nút, giá, điểm nhấn */
  --hoa-ink: #2B1A2E;       /* tím mận: chữ, chân trang */
  --hoa-bg: #FFFCFD;        /* nền trang */
  --hoa-soft: #F9E6EB;      /* hồng nhạt: dải nền, khung ảnh */
  --hoa-leaf: #2F6B4A;      /* xanh lá: bền, không héo */
  --hoa-gold: #A86F12;      /* vàng đồng: hoa tiền */
  --hoa-line: #EDDDE2;
  --hoa-muted: #6E5A70;
  --hoa-white: #FFFFFF;
  --f-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-head: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --arch: 999px 999px var(--r) var(--r);
  --shadow: 0 1px 2px rgba(43, 26, 46, .05), 0 8px 24px -12px rgba(43, 26, 46, .18);
  --wrap: 1200px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.no-scroll { overflow: hidden; }
html.no-scroll .hoa-float { display: none !important; }
body { margin: 0; background: var(--hoa-bg); color: var(--hoa-ink); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--hoa-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hoa-primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--hoa-ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--hoa-muted); max-width: 52ch; }

/* Khung vòm: nét riêng của theme */
.arch { display: block; position: relative; overflow: hidden; border-radius: var(--arch); background: var(--hoa-soft); margin: 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-empty { background:
  radial-gradient(circle at 34% 30%, #F3B9C8 0 16%, transparent 17%),
  radial-gradient(circle at 66% 44%, #fff 0 13%, transparent 14%),
  radial-gradient(circle at 46% 64%, #E78AA5 0 18%, transparent 19%),
  radial-gradient(circle at 72% 78%, #F7D3DC 0 11%, transparent 12%),
  var(--hoa-primary); }

/* Nút */
.btn, .button, button.button, a.button, input[type="submit"],
.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: 10px 22px;
  background: var(--hoa-primary); color: #fff; border: 1.5px solid var(--hoa-primary); border-radius: 999px;
  font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--hoa-ink); border-color: var(--hoa-ink); color: #fff; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-line { background: transparent; color: var(--hoa-ink); border-color: var(--hoa-line); }
.btn-line:hover { background: var(--hoa-soft); color: var(--hoa-ink); border-color: var(--hoa-primary); }
.btn-light { background: #fff; color: var(--hoa-ink); border-color: #fff; }
.btn-light:hover { background: var(--hoa-soft); color: var(--hoa-ink); border-color: var(--hoa-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--hoa-primary); border-color: var(--hoa-primary); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--hoa-ink); border-color: var(--hoa-ink); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .55; }

/* Ô nhập */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="date"], input[type="url"], select, textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--hoa-ink); background: #fff; border: 1px solid #E2CDD4; border-radius: var(--r-sm);
  padding: 11px 13px; min-height: 48px; max-width: 100%;
}
textarea { min-height: 100px; }
input:focus, select:focus, textarea:focus { border-color: var(--hoa-primary); outline: 3px solid color-mix(in srgb, var(--hoa-primary) 22%, transparent); outline-offset: 0; }
.f-field { display: flex; flex-direction: column; gap: 5px; font-size: .875rem; color: var(--hoa-muted); font-weight: 600; }
.f-field select { width: 100%; color: var(--hoa-ink); font-weight: 400; }

/* =====================================================================
   ĐẦU TRANG
   ===================================================================== */
.topbar { background: var(--hoa-ink); color: #F3E3E9; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar-msg { display: inline-flex; align-items: center; gap: 8px; }
.topbar-links { display: inline-flex; gap: 16px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; }

.site-header { background: color-mix(in srgb, var(--hoa-bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 60; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--hoa-line); box-shadow: 0 6px 20px -16px rgba(43, 26, 46, .45); }
.hd { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { flex: 0 0 auto; }
.brand-name { display: inline-flex; align-items: center; gap: 10px; font: 800 1.55rem/1 var(--f-head); color: var(--hoa-ink); text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { width: 22px; height: 28px; border-radius: 999px 999px 5px 5px; background: var(--hoa-primary); box-shadow: inset 0 -9px 0 color-mix(in srgb, var(--hoa-ink) 25%, var(--hoa-primary)); flex: none; }
.custom-logo { max-height: 50px; width: auto; display: block; }
.primary-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.primary-nav .menu, .primary-nav ul, .drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; gap: 2px; }
.primary-nav a { display: block; white-space: nowrap; padding: 10px 14px; color: var(--hoa-ink); text-decoration: none; font-weight: 500; border-radius: 999px; }
.primary-nav > .menu > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--hoa-soft); color: var(--hoa-primary); }
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.primary-nav .sub-menu { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r); padding: 8px; z-index: 70; box-shadow: var(--shadow); }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.primary-nav .sub-menu a { border-radius: var(--r-sm); padding: 9px 12px; }
.primary-nav .sub-menu a:hover { background: var(--hoa-soft); color: var(--hoa-primary); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.hd-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 0; color: var(--hoa-ink); border-radius: 999px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--hoa-soft); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--hoa-primary); color: #fff; font: 700 11px/20px var(--f-body); text-align: center; border: 2px solid var(--hoa-bg); box-sizing: content-box; }
.cart-count.is-zero { display: none; }
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--hoa-line); background: #fff; padding: 14px 0; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; border-radius: 999px; padding-left: 18px; }

/* Ngăn kéo menu (điện thoại) */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop, .fs-backdrop { position: absolute; inset: 0; background: rgba(43, 26, 46, .45); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: var(--hoa-bg); z-index: 1; display: flex; flex-direction: column; padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; transform: translateX(-100%); transition: transform .26s cubic-bezier(.2, .7, .2, 1); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-search input { width: 100%; border-radius: 999px; padding-left: 18px; }
.drawer-nav { margin: 12px 0; flex: 1; }
.drawer-nav a { display: block; padding: 13px 4px; font-size: 1.08rem; font-weight: 600; color: var(--hoa-ink); text-decoration: none; border-bottom: 1px solid var(--hoa-line); }
.drawer-nav .current-menu-item > a { color: var(--hoa-primary); }
.drawer-nav .sub-menu { padding: 2px 0 8px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-nav .sub-menu a { display: inline-block; font-size: .92rem; font-weight: 500; padding: 7px 12px; border: 1px solid var(--hoa-line); border-radius: 999px; background: #fff; }
.drawer-contact { display: grid; gap: 10px; padding-top: 8px; }
.drawer-note { display: flex; align-items: center; gap: 8px; color: var(--hoa-muted); font-size: .9rem; margin: 4px 0 0; }

/* =====================================================================
   TRANG CHỦ
   ===================================================================== */
.hero { position: relative; background: var(--hoa-soft); padding: clamp(32px, 5vw, 72px) 0 clamp(36px, 5vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.picker { margin-top: 28px; background: #fff; border-radius: var(--r-lg); padding: 16px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 660px; box-shadow: var(--shadow); }
.picker--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 660px; }
.picker--3 .btn { grid-column: 1 / -1; }
.picker select { border-color: transparent; background-color: var(--hoa-bg); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 22px 0 0; padding: 0; font-size: .95rem; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--hoa-leaf); }
.hero-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 42vw, 540px); }
.hero-art .arch-1, .hero-art .arch-main { grid-row: 1 / span 2; }
.hero-art .arch-main { grid-column: 1 / -1; max-width: 430px; justify-self: center; width: 100%; }
.hero-art .arch-2 { margin-top: 12%; }
.hero-art .arch-3 { margin-bottom: 12%; border-radius: var(--r) var(--r) 999px 999px; }
.hero-art .arch { box-shadow: var(--shadow); }
.hero-art .arch img { transition: transform .5s; }
.hero-art a.arch:hover img { transform: scale(1.04); }
/* Một lần chuyển động khi mở trang: các khung vòm nhô lên */
@keyframes hoa-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-art .arch { animation: hoa-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-art .arch-2 { animation-delay: .12s; }
.hero-art .arch-3 { animation-delay: .24s; }

.ribbon { background: var(--hoa-ink); color: #F6E8ED; }
.ribbon-in { display: flex; align-items: center; gap: 22px; min-height: 84px; padding-top: 14px; padding-bottom: 14px; }
.ribbon-date { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--f-head); color: #fff; letter-spacing: -0.03em; flex: none; }
.ribbon p { margin: 0; flex: 1; }
.ribbon strong { color: #fff; }

.section { padding: clamp(44px, 6vw, 88px) 0; }
.section-tint { background: var(--hoa-soft); }
.section-ink { background: var(--hoa-ink); color: #EFDDE4; }
.section-ink h2, .section-ink h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; white-space: nowrap; color: var(--hoa-ink); }
.sec-head a:hover { color: var(--hoa-primary); }

/* Chất liệu */
.mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mat { --tone: var(--hoa-primary); display: grid; grid-template-columns: 42% 1fr; gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); color: var(--hoa-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mat.tone-leaf { --tone: var(--hoa-leaf); }
.mat.tone-gold { --tone: var(--hoa-gold); }
.mat:hover { border-color: var(--tone); box-shadow: var(--shadow); }
.mat-img { aspect-ratio: 4 / 5; background: color-mix(in srgb, var(--tone) 14%, #fff); }
.mat-body { display: flex; flex-direction: column; gap: 6px; padding-right: 6px; }
.mat-name { font: 800 1.55rem/1.05 var(--f-head); letter-spacing: -0.025em; color: var(--tone); }
.mat-desc { color: var(--hoa-muted); font-size: .95rem; line-height: 1.5; }
.mat-count { font-size: .85rem; font-weight: 600; margin-top: 4px; }

/* Dịp */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.occ { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 120px; padding: 16px 16px 16px 20px; background: #fff; border: 1.5px solid transparent; border-radius: var(--r-lg); color: var(--hoa-ink); text-decoration: none; }
.occ:hover { border-color: var(--hoa-primary); }
.occ.is-next { border-color: var(--hoa-primary); }
.occ-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.occ-date { font: 800 2.1rem/1 var(--f-head); color: var(--hoa-primary); letter-spacing: -0.03em; }
.occ-name { font-weight: 700; line-height: 1.3; }
.occ-count { color: var(--hoa-muted); font-size: .85rem; margin-top: 4px; }
.occ-img { width: 72px; height: 90px; flex: none; }

/* 3 bước */
.steps-title { text-align: left; margin-bottom: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 26px 24px 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); counter-increment: st; }
.step::before { content: "Bước " counter(st); display: block; font-size: .85rem; font-weight: 600; color: #E9A9BD; margin-bottom: 14px; }
.step-ico { position: absolute; top: 20px; right: 20px; color: #E9A9BD; }
.step p { margin: 0; color: #DCC6CF; }
.steps-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Cam kết */
.pledge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pledge-ico { display: inline-grid; place-items: center; width: 52px; height: 60px; border-radius: 999px 999px 12px 12px; background: var(--hoa-soft); color: var(--hoa-primary); margin-bottom: 14px; }
.section-tint .pledge-ico { background: #fff; }
.pledge-item h3 { margin-bottom: .35em; }
.pledge-item p { color: var(--hoa-muted); margin: 0; font-size: .95rem; }

/* Đánh giá */
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rev { margin: 0; background: #fff; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.stars { color: var(--hoa-primary); letter-spacing: 2px; }
.rev blockquote { margin: 12px 0 18px; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.rev figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--hoa-muted); }
.rev figcaption strong { color: var(--hoa-ink); }

/* Nhận tin */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--hoa-soft); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.news::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 180px; height: 230px; border-radius: 999px 999px 0 0; border: 2px solid color-mix(in srgb, var(--hoa-primary) 25%, transparent); pointer-events: none; }
.news h2 { margin-bottom: .3em; }
.news p { margin: 0; color: var(--hoa-muted); }
.news form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.news input[type="email"] { flex: 1 1 220px; border-radius: 999px; padding-left: 18px; }
.news-msg { flex-basis: 100%; font-weight: 600; color: var(--hoa-leaf) !important; }
.news-msg.is-err { color: #b42318 !important; }

/* =====================================================================
   TRANG NỘI DUNG
   ===================================================================== */
.page-head { background: var(--hoa-soft); padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: max(var(--gut), calc(50% - var(--wrap) / 2 + var(--gut))); bottom: -60px; width: clamp(120px, 16vw, 210px); aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: color-mix(in srgb, var(--hoa-primary) 12%, transparent); pointer-events: none; }
.page-head h1 { color: var(--hoa-ink); border: 0; padding: 0; font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0; max-width: 20ch; position: relative; z-index: 1; }
.page-sub { margin: 10px 0 0; color: var(--hoa-muted); max-width: 60ch; position: relative; z-index: 1; }
.page-wrap { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(44px, 6vw, 80px); }

.prose { max-width: 70ch; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--hoa-primary); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--hoa-primary); background: var(--hoa-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose img, .entry-img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--hoa-line); padding: 10px 8px; text-align: left; }
.entry-meta { color: var(--hoa-muted); font-size: .875rem; }

/* Chính sách: menu bên cạnh */
.policy { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(44px, 6vw, 80px); align-items: start; }
.policy-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--hoa-line); }
.policy-nav a { padding: 9px 14px; color: var(--hoa-muted); text-decoration: none; font-weight: 500; margin-left: -2px; border-left: 2px solid transparent; }
.policy-nav a:hover { color: var(--hoa-ink); }
.policy-nav a[aria-current] { color: var(--hoa-primary); border-left-color: var(--hoa-primary); font-weight: 700; }
.theme-err { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r-sm); background: #FDEEF0; border-left: 4px solid #c4253b; color: #8f1d2c; font-size: .92rem; }
.help-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding: 18px 20px; background: var(--hoa-soft); border-radius: var(--r); }
.help-box p { margin: 0 auto 0 0; font-weight: 700; }

/* Liên hệ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); color: var(--hoa-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: var(--hoa-primary); box-shadow: var(--shadow); }
.contact-card.is-main { background: var(--hoa-primary); border-color: var(--hoa-primary); color: #fff; }
.contact-card.is-main .cc-label, .contact-card.is-main .cc-ico { color: #FCE4EB; }
.cc-ico { color: var(--hoa-primary); margin-bottom: 8px; }
.cc-label { font-size: .875rem; color: var(--hoa-muted); font-weight: 600; }
.contact-card strong { font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.cc-sub { font-size: .875rem; color: var(--hoa-muted); }
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.map-box { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hoa-line); aspect-ratio: 4 / 3; background: var(--hoa-soft); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Giới thiệu */
.about-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-art { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.about-art .arch-tall { aspect-ratio: 3 / 4; }
.about-art .arch-small { aspect-ratio: 4 / 5; margin-bottom: 18%; }
.about-art > :only-child { grid-column: 1 / -1; max-width: 420px; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--hoa-ink); color: #EFDDE4; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; }
.cta-band .btn { background: #fff; color: var(--hoa-ink); border-color: #fff; }

/* Tin tức, 404 */
.post-list { display: grid; gap: 22px; max-width: 860px; }
.post-item { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--hoa-line); }
.post-item:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-thumb { aspect-ratio: 4 / 5; }
.post-item h2 { font-size: 1.35rem; margin-bottom: .2em; }
.post-item h2 a { color: var(--hoa-ink); text-decoration: none; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hoa-line); text-decoration: none; color: var(--hoa-ink); }
.nav-links .current { background: var(--hoa-primary); color: #fff; border-color: var(--hoa-primary); }
.nf { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.nf-art { aspect-ratio: 4 / 5; }
.nf h1 { font-size: clamp(2rem, 4vw, 3rem); }
.nf .search-form { max-width: 520px; margin: 18px 0; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-link { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--hoa-soft); color: var(--hoa-ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.tag-link:hover { background: var(--hoa-primary); color: #fff; }

/* =====================================================================
   CỬA HÀNG
   ===================================================================== */
.shop-wrap { padding-top: 22px; padding-bottom: clamp(44px, 6vw, 80px); }
.woocommerce-breadcrumb { color: var(--hoa-muted); font-size: .875rem; margin: 0 0 14px !important; }
.woocommerce-breadcrumb a { color: var(--hoa-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--hoa-primary); }
.woocommerce-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.woocommerce-products-header { margin-bottom: 12px; }
.woocommerce-products-header__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .2em; }
.term-description, .woocommerce-products-header .page-description { color: var(--hoa-muted); max-width: 65ch; }

.filter-wrap { margin-bottom: 8px; }
.mat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mat-tabs::-webkit-scrollbar { display: none; }
.mat-tab { flex: 0 0 auto; padding: 10px 20px; border: 1.5px solid var(--hoa-line); border-radius: 999px; background: #fff; color: var(--hoa-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.mat-tab:hover { border-color: var(--hoa-primary); }
.mat-tab.is-on { background: var(--hoa-ink); border-color: var(--hoa-ink); color: #fff; }
.filter-open { display: none; }
.filter-sheet { margin: 0 0 6px; }
.fs-head, .fs-backdrop { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 14px; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); }
.filter-bar .f-field { flex: 1 1 150px; max-width: 230px; }
.fs-actions { display: flex; gap: 8px; margin-left: auto; }
.js-filter .filter-bar .fs-actions .btn[type="submit"] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; font-size: .875rem; color: var(--hoa-muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--hoa-soft); border-radius: 999px; color: var(--hoa-ink); text-decoration: none; font-weight: 500; }
.chip::after { content: "\00d7"; font-size: 1.15em; line-height: 1; color: var(--hoa-primary); }
.chip:hover { background: var(--hoa-line); }
.f-clear { font-weight: 600; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 18px; flex-wrap: wrap; }
.woocommerce .shop-bar .woocommerce-result-count, .woocommerce .shop-bar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .woocommerce-result-count { color: var(--hoa-muted); font-size: .92rem; }
.woocommerce .woocommerce-ordering select { border-radius: 999px; padding-right: 36px; min-height: 42px; font-size: .92rem; }
.empty-hint { color: var(--hoa-muted); }

/* Dự phòng: trang cửa hàng không có khung .shop-wrap (trang cũ còn trong bộ nhớ đệm, hoặc plugin dùng mẫu khác) vẫn có lề */
body.woocommerce:not(.hoa-v12) .site-main, body.post-type-archive-product .site-main:not(:has(> .shop-wrap)),
body.tax-product_cat .site-main:not(:has(> .shop-wrap)), body.tax-product_tag .site-main:not(:has(> .shop-wrap)),
body.single-product .site-main:not(:has(> .shop-wrap)) { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gut) clamp(44px, 6vw, 80px); }

/* Thẻ sản phẩm */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; margin: 0 0 28px !important; padding: 0; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0; display: flex; flex-direction: column; position: relative; text-align: left; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; flex: 1; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); margin: 0 0 14px; width: 100%; background: var(--hoa-soft); transition: transform .35s, box-shadow .35s; }
.woocommerce ul.products li.product a:hover img { box-shadow: var(--shadow); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 1rem/1.4 var(--f-body); padding: 0; margin: 0 0 4px; color: var(--hoa-ink); }
.woocommerce ul.products li.product .price { color: var(--hoa-primary); font-weight: 700; font-size: 1.02rem; margin: 0 0 12px; display: block; }
.woocommerce ul.products li.product .price del { color: var(--hoa-muted); font-weight: 400; font-size: .9em; margin-right: 6px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .hoa-from { color: var(--hoa-muted); font-weight: 500; font-size: .88em; }
.woocommerce ul.products li.product .star-rating { font-size: .8rem; margin: 0 0 6px; }
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; min-height: 42px; background: transparent; color: var(--hoa-ink); border: 1.5px solid var(--hoa-line); font-size: 14px; }
.woocommerce ul.products li.product .button:hover { background: var(--hoa-primary); border-color: var(--hoa-primary); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 6px; font-size: .875rem; font-weight: 600; }
.woocommerce span.onsale { position: absolute; z-index: 2; width: auto; height: auto; background: var(--hoa-leaf); color: #fff; min-height: 0; min-width: 0; line-height: 1; padding: 7px 11px; border-radius: 999px; top: 12px !important; left: 12px !important; right: auto !important; margin: 0 !important; font-weight: 600; font-size: .8rem; }
.woocommerce nav.woocommerce-pagination { text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 999px; padding: 10px 16px; min-width: 44px; border: 1px solid var(--hoa-line); background: #fff; color: var(--hoa-ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--hoa-ink); border-color: var(--hoa-ink); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--hoa-soft); color: var(--hoa-ink); }

/* =====================================================================
   CHI TIẾT SẢN PHẨM
   ===================================================================== */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0 clamp(28px, 4vw, 60px); align-items: start; position: relative; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product > div.images, .woocommerce div.product > .woocommerce-product-gallery { grid-column: 1; width: auto !important; float: none !important; margin: 0 0 28px !important; }
.woocommerce div.product > div.summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 0 28px !important; position: sticky; top: 96px; }
.woocommerce div.product > span.onsale { grid-column: 1; grid-row: 1; z-index: 3; position: absolute; }
.woocommerce div.product::after { display: none; }
.woocommerce div.product div.images img { border-radius: var(--r-lg); }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > div:first-child img { border-radius: var(--arch); aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; list-style: none; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active, .woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 18px; right: 18px; background: #fff; border-radius: 999px; }
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3em; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--hoa-primary); font: 800 1.7rem/1.2 var(--f-head); letter-spacing: -0.02em; margin: 0 0 14px; }
.woocommerce div.product p.price del { color: var(--hoa-muted); font-size: .65em; font-weight: 500; opacity: 1; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--hoa-muted); margin-bottom: 18px; }
.woocommerce div.product form.cart { margin: 0 0 18px; padding: 18px 0 0; border-top: 1px solid var(--hoa-line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart > :not(.quantity):not(.single_add_to_cart_button) { flex-basis: 100%; }
.woocommerce div.product form.cart .button { min-height: 54px; padding: 12px 30px; font-size: 16px; flex: 1; float: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart div.quantity input.qty { min-height: 54px; width: 76px; border-radius: 999px; text-align: center; }
.woocommerce div.product form.cart .variations { margin-bottom: 6px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 4px 0; display: block; }
.woocommerce div.product form.cart .variations select { min-width: 220px; width: 100%; }
.woocommerce div.product .product_meta { font-size: .875rem; color: var(--hoa-muted); padding-top: 14px; border-top: 1px solid var(--hoa-line); }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.pledge { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.pledge li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.pledge .ico { color: var(--hoa-leaf); }
.woocommerce div.product .woocommerce-tabs { margin-top: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 18px; display: flex; gap: 6px; overflow-x: auto; border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 1.5px solid var(--hoa-line) !important; background: #fff !important; border-radius: 999px !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { text-decoration: none; display: block; padding: 10px 18px !important; font-weight: 600 !important; color: var(--hoa-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--hoa-ink) !important; border-color: var(--hoa-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 75ch; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce .related > h2, .woocommerce .upsells > h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 24px 0 20px; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--hoa-primary); }
#reviews #comments ol.commentlist li .comment-text { border-radius: var(--r); border-color: var(--hoa-line); }

/* Thanh mua dính đáy (điện thoại) */
.buybar { display: none; }

/* =====================================================================
   GIỎ HÀNG, THANH TOÁN, TÀI KHOẢN
   ===================================================================== */
.wc-page { padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(44px, 6vw, 80px); }
.wc-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.buy-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.buy-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--hoa-line); color: var(--hoa-muted); font-weight: 600; font-size: .9rem; }
.buy-steps li span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hoa-soft); color: var(--hoa-ink); font-size: .8rem; }
.buy-steps li.done span { background: var(--hoa-leaf); color: #fff; }
.buy-steps li.cur { border-color: var(--hoa-primary); color: var(--hoa-ink); }
.buy-steps li.cur span { background: var(--hoa-primary); color: #fff; }

.woocommerce table.shop_table { border: 1px solid var(--hoa-line); border-radius: var(--r); background: #fff; border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 600; color: var(--hoa-muted); font-size: .875rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--hoa-line); padding: 14px 12px; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 999px 999px 8px 8px; aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce-cart table.cart td.actions .coupon .input-text { min-width: 160px; border-radius: 999px; padding: 10px 16px; }
.woocommerce-cart table.cart td.actions .button { min-height: 44px; }
.woocommerce a.remove { color: var(--hoa-primary) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--hoa-primary) !important; color: #fff !important; }
.woocommerce .quantity .qty { border-radius: 999px; min-height: 44px; width: 72px; text-align: center; }
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 32px; align-items: start; }
.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 96px; }
.woocommerce .cart-collaterals .cart_totals { width: 100% !important; float: none !important; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); padding: 20px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 1.3rem; }
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0; }
.woocommerce .cart-collaterals .cross-sells { width: 100% !important; float: none !important; }
.woocommerce .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 16px; margin-bottom: 0; }
.cart-empty.woocommerce-info { font-size: 1.1rem; }
.return-to-shop .button { min-height: 50px; }
.empty-occ { margin-top: 18px; }
.empty-occ p { font-weight: 600; margin-bottom: 8px; }

.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; margin-bottom: 5px; line-height: 1.4; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; font-size: 16px; padding: 11px 13px; min-height: 48px; border: 1px solid #E2CDD4; border-radius: var(--r-sm); }
.woocommerce form .form-row .select2-container .select2-selection--single { min-height: 48px; border-color: #E2CDD4; border-radius: var(--r-sm); }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 13px; }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #c4253b; }
.woocommerce-checkout h3 { font-size: 1.25rem; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-additional-fields { background: #fff; border: 1px solid var(--hoa-line); border-radius: 14px; padding: 18px 18px 6px; margin-bottom: 18px; }
.woocommerce-checkout #order_review_heading { font-size: 1.3rem; margin: 0 0 12px; }
.woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); padding: 18px; }
.woocommerce-checkout #order_review table.shop_table { border: 0; width: 100%; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { text-align: left; padding: 10px 4px !important; }
.woocommerce-checkout-review-order-table td:last-child { text-align: right; }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 1.1rem; color: var(--hoa-ink); }
.woocommerce-checkout #payment { background: var(--hoa-soft); border-radius: var(--r); }
.woocommerce-checkout #payment ul.payment_methods { border-color: var(--hoa-line); padding: 16px; list-style: none; margin: 0; }
.woocommerce-checkout #payment ul.payment_methods li { margin-bottom: 6px; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--hoa-ink); border-radius: var(--r-sm); font-size: .92rem; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { width: 100%; min-height: 56px; font-size: 17px; float: none; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: var(--r); border-top-width: 0; border-left: 4px solid var(--hoa-primary); background: var(--hoa-soft); color: var(--hoa-ink); padding: 14px 18px 14px 50px; }
.woocommerce-error { border-left-color: #c4253b; background: #FDEEF0; }
.woocommerce-message { border-left-color: var(--hoa-leaf); background: #EEF7F1; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--hoa-primary); top: 14px; left: 18px; }
.woocommerce-message::before { color: var(--hoa-leaf); }
.woocommerce-info .button, .woocommerce-message .button { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.woocommerce-order { max-width: 900px; }
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
.woocommerce ul.order_details li { border: 1px solid var(--hoa-line) !important; background: #fff; border-radius: var(--r); padding: 12px 16px !important; margin: 0 !important; float: none; font-size: .8rem; }
.woocommerce-thankyou-order-received { font: 700 1.4rem/1.3 var(--f-head); color: var(--hoa-leaf); }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--hoa-ink); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--hoa-soft); color: var(--hoa-primary); font-weight: 700; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 980px; }
.woocommerce #customer_login .u-column1, .woocommerce #customer_login .u-column2 { background: #fff; border: 1px solid var(--hoa-line); border-radius: var(--r-lg); padding: 22px; }
.woocommerce form.login, .woocommerce form.register { border: 0; padding: 0; margin: 0; }

/* =====================================================================
   CHÂN TRANG
   ===================================================================== */
.site-footer { background: var(--hoa-ink); color: #E9D5DD; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: 36px; }
.ft-brand { font: 800 1.7rem/1 var(--f-head); color: #fff; letter-spacing: -0.03em; margin: 0 0 10px; }
.ft-tag { color: #CDB5BF; max-width: 36ch; }
.ft-contact { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ft-contact .ico { color: #E9A9BD; margin-top: 2px; }
.ft-social { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-social .btn:hover { text-decoration: none; }
.site-footer .btn-light { color: var(--hoa-ink); background: #fff; }
.site-footer .btn-light:hover { background: var(--hoa-soft); color: var(--hoa-ink); }
.ft-h { font: 700 1rem/1.3 var(--f-body); color: #fff; letter-spacing: 0; margin: 4px 0 12px; }
.ft-list { list-style: none; margin: 0; padding: 0; }
.ft-list li { padding: 4px 0; }
.ft-list a { color: #E9D5DD; }
.ft-list a:hover { color: #fff; }
.ft-bottom::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid rgba(255, 255, 255, .14); }
.ft-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .85rem; color: #BFA6B1; }

/* =====================================================================
   MÁY TÍNH BẢNG
   ===================================================================== */
@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ft-grid > :last-child:nth-child(4) { grid-column: 2 / span 2; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mat { grid-template-columns: 1fr; }
  .mat-img { aspect-ratio: 5 / 4; }
  .woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* =====================================================================
   ĐIỆN THOẠI VÀ MÁY TÍNH BẢNG DỌC
   ===================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; margin-left: -10px; }
  .primary-nav { display: none; }
  .hd { gap: 6px; }
  .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: 76px; }
  .hd { min-height: 62px; }
  .brand-name { font-size: 1.35rem; }
  .custom-logo { max-height: 40px; }
  .topbar-in { min-height: 34px; font-size: .8rem; }

  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: none; }
  .hero-art { order: -1; height: auto; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .hero-art .arch-1, .hero-art .arch-main { grid-row: auto; }
  .hero-art .arch { aspect-ratio: 4 / 5; }
  .hero-art .arch-2, .hero-art .arch-3 { margin: 18% 0 0; }
  .hero-art .arch-3 { border-radius: var(--arch); }
  .hero-art .arch-main { max-width: none; aspect-ratio: 16 / 11; border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); }
  .hero-art--plain { display: none; }
  .picker, .picker--3 { grid-template-columns: 1fr 1fr; margin-top: 20px; padding: 12px; border-radius: var(--r); }
  .picker .btn { grid-column: 1 / -1; }
  .picker--3 .f-field:first-child { grid-column: 1 / -1; }

  .ribbon-in { flex-wrap: wrap; gap: 6px 16px; }
  .ribbon p { flex-basis: calc(100% - 110px); }
  .ribbon .btn { width: 100%; }

  .mat-grid { grid-template-columns: 1fr; gap: 12px; }
  .mat { grid-template-columns: 112px 1fr; gap: 16px; padding: 10px; border-radius: var(--r); }
  .mat-img { aspect-ratio: 4 / 5; }
  .mat-name { font-size: 1.35rem; }

  .occ-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); gap: 10px; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scrollbar-width: none; }
  .occ-grid::-webkit-scrollbar { display: none; }
  .occ { flex: 0 0 72%; scroll-snap-align: start; min-height: 108px; }

  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 20px 20px 18px; }
  .steps-cta .btn { flex: 1 1 100%; }
  .pledge-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .rev-grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; gap: 18px; }
  .sec-head { margin-bottom: 18px; }

  .policy { grid-template-columns: 1fr; gap: 18px; }
  .policy-nav { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--hoa-line); gap: 0; scrollbar-width: none; }
  .policy-nav a { white-space: nowrap; margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 14px; }
  .policy-nav a[aria-current] { border-bottom-color: var(--hoa-primary); }
  .contact-split, .about-split { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; }
  .nf { grid-template-columns: 1fr; }
  .nf-art { width: 140px; }
  .post-item { grid-template-columns: 100px 1fr; gap: 14px; }

  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-grid > .ft-about { grid-column: 1 / -1; }
  .ft-grid > :last-child:nth-child(4) { grid-column: auto; }

  /* Cửa hàng: bộ lọc thành ngăn trượt từ dưới */
  .filter-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
  .mat-tabs { flex: 1 1 100%; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 12px; }
  .filter-open { display: inline-flex; min-height: 42px; padding: 8px 16px; }
  .chips { flex: 1 1 100%; }
  .filter-sheet { position: fixed; inset: 0; z-index: 100; margin: 0; visibility: hidden; transition: visibility 0s .26s; }
  .filter-sheet.is-open { visibility: visible; transition: none; }
  .fs-backdrop { display: block; }
  .filter-sheet.is-open .fs-backdrop { opacity: 1; }
  .fs-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; max-height: 86vh; overflow-y: auto; background: var(--hoa-bg); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .7, .2, 1); }
  .filter-sheet.is-open .fs-panel { transform: none; }
  .fs-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 4px; font-size: 1.1rem; }
  .filter-bar { flex-direction: column; align-items: stretch; padding: 0; border: 0; background: transparent; gap: 12px; }
  .filter-bar .f-field { max-width: none; flex: 0 0 auto; }
  .fs-actions { margin: 6px 0 0; position: sticky; bottom: 0; background: var(--hoa-bg); padding-top: 8px; }
  .fs-actions .btn { flex: 1; }
  .js-filter .filter-bar .fs-actions .btn[type="submit"] { display: inline-flex; }
  .shop-bar { margin: 10px 0 14px; }
  .woocommerce .woocommerce-ordering select { max-width: 190px; }

  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .woocommerce ul.products li.product a img { margin-bottom: 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .93rem; }
  .woocommerce ul.products li.product .price { font-size: .95rem; margin-bottom: 10px; }
  .woocommerce ul.products li.product .button { min-height: 40px; font-size: 13px; padding: 8px 10px; white-space: normal; }

  /* Sản phẩm */
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product > div.images, .woocommerce div.product > .woocommerce-product-gallery, .woocommerce div.product > div.summary { grid-column: 1; position: static; }
  .woocommerce div.product > div.images { margin: 0 calc(var(--gut) * -1) 18px !important; }
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper > div:first-child img { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .woocommerce div.product div.images .flex-control-thumbs { padding: 0 var(--gut) !important; }
  .single-product .shop-wrap { padding-top: 0; }
  .single-product .woocommerce-breadcrumb { padding-top: 12px; }
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--hoa-line); box-shadow: 0 -8px 24px -16px rgba(43, 26, 46, .4); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .22s; }
  .buybar.is-on { transform: none; }
  .buybar-in { display: flex; align-items: center; gap: 12px; }
  .buybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .buybar-name { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hoa-muted); }
  .buybar-price { font-weight: 800; color: var(--hoa-primary); }
  .buybar-price del { color: var(--hoa-muted); font-weight: 400; font-size: .85em; }
  .buybar-price ins { text-decoration: none; }
  .buybar-btn { min-height: 48px; padding: 10px 20px; }
  .single-product .hoa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important; }
  .single-product .site-footer { padding-bottom: 72px; }

  /* Giỏ, thanh toán */
  .woocommerce-cart .woocommerce, .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 1; position: static; margin-top: 18px; }
  .woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr { border-bottom: 1px solid var(--hoa-line); }
  .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { padding: 10px 14px; }
  .woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto !important; }
  .woocommerce-cart table.cart td.actions > .button { width: 100%; }
  .buy-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .buy-steps li { white-space: nowrap; }
  .woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout #order_review { padding: 14px; }
}

/* Bảng giỏ hàng xếp dọc trên điện thoại */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive, .woocommerce table.shop_table_responsive tbody { display: block; width: 100%; }
  .woocommerce-cart-form { min-width: 0; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tbody tr, .woocommerce table.shop_table_responsive tbody th, .woocommerce table.shop_table_responsive tbody td,
  .woocommerce table.shop_table_responsive tr, .woocommerce table.shop_table_responsive th, .woocommerce table.shop_table_responsive td { display: block; }
  .woocommerce table.shop_table_responsive tr td { text-align: right !important; }
  .woocommerce table.shop_table_responsive tbody th { display: none; }
  .woocommerce .cart-collaterals .cart_totals tr.hoa-sp-free td { text-align: left !important; }
  .woocommerce table.shop_table_responsive tr td[data-title]::before { content: attr(data-title) ": "; float: left; font-weight: 600; color: var(--hoa-muted); }
  .woocommerce table.shop_table_responsive tr td.product-remove, .woocommerce table.shop_table_responsive tr td.product-thumbnail { text-align: left !important; display: inline-block; border: 0; }
  .woocommerce table.shop_table_responsive tr td.actions { text-align: left !important; }
  .woocommerce table.shop_table_responsive tr td.actions::before, .woocommerce table.shop_table_responsive tr td.product-remove::before { display: none; }
  .woocommerce-cart table.cart td.actions .coupon { margin-bottom: 10px; }
}

@media (max-width: 480px) {
  .topbar-links a:not(:first-child) { display: none; }
  .topbar-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .picker, .picker--3 { grid-template-columns: 1fr; }
  .hero-facts { gap: 6px 14px; font-size: .88rem; }
  .pledge-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 16px; }
  .contact-card strong { font-size: .98rem; }
  .woocommerce ul.order_details li { flex: 1 1 45%; }
}

/* Máy tính: trang thanh toán 2 cột */
@media (min-width: 901px) {
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); grid-template-rows: auto auto 1fr; column-gap: 36px; align-items: start; }
  .woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
  .woocommerce-checkout form.checkout > .co-left { grid-column: 1; grid-row: 2 / span 2; }
  .woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 2; }
  .woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 96px; }
  .woocommerce-checkout form.checkout .woocommerce-NoticeGroup { grid-row: 1; }
}

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