/* V5.2: Vietnamese type scale, editorial spacing, refined product corners and inline editor. */
:root{--v52-wine:#76071d;--v52-cream:#fffaf1;--v52-gold:#f0c164}
html{overflow-x:clip;scroll-padding-top:108px}
body{font-family:'Be Vietnam Pro',system-ui,sans-serif;line-height:1.7;overflow-x:clip}
:is(h1,h2,h3,h4){overflow-wrap:break-word;text-wrap:balance}
.container{min-width:0}
/* Content pages: replace oversized uppercase headings with comfortable Vietnamese typography. */
.article-layout{grid-template-columns:minmax(250px,.27fr) minmax(0,.73fr);gap:clamp(30px,4vw,72px);align-items:start}
.article-layout .prose{min-width:0;font-size:clamp(14px,1vw,16px);line-height:1.9;color:#554348}
.article-layout .prose h2{font-family:'Be Vietnam Pro',system-ui,sans-serif;font-size:clamp(25px,2.6vw,39px)!important;line-height:1.34!important;letter-spacing:-.038em!important;font-weight:800!important;color:#730820;max-width:100%;margin:36px 0 20px;text-transform:none}
.article-layout .prose h3{font-family:'Be Vietnam Pro',system-ui,sans-serif;font-size:clamp(18px,1.7vw,25px)!important;line-height:1.4!important;letter-spacing:-.02em!important;color:#8b0a25;margin:25px 0 12px;text-transform:none}
.article-layout .prose p,.article-layout .prose li{font-size:clamp(14px,1vw,16px);line-height:1.9;color:#65565b}
.article-layout .prose img{border-radius:20px;object-fit:cover}
.article-sidebar{min-width:0}.article-sidebar a{overflow-wrap:anywhere}
.page-hero h1{font-family:'Be Vietnam Pro',system-ui,sans-serif;font-size:clamp(31px,4vw,58px)!important;line-height:1.2;letter-spacing:-.05em}
/* Make image/catalog cards look premium and remove abrupt square edges. */
.product-card,.product-tile,.v3-product-card,.related-card,.gallery-item,.collection-card{
  border-radius:clamp(17px,1.8vw,26px)!important;overflow:hidden;box-shadow:0 7px 28px #4a10200d;
}
.product-photo,.product-tile .product-photo,.v3-product-image,.related-card img{overflow:hidden;border-radius:22px 22px 0 0}
.product-card img,.v3-product-image img,.related-card img{object-fit:cover;object-position:center}
.v3-product-rail{gap:clamp(12px,1.7vw,22px);padding-block:8px 20px;scroll-padding:16px}
.v3-product-card{flex-basis:calc((100% - 66px)/4);border:1px solid #ead9cb}
.v3-product-image{height:clamp(190px,17vw,248px)}
.v3-product-info{padding:18px 18px 20px}
.v3-product-card h3{font-size:clamp(16px,1.3vw,21px);line-height:1.4}
.related-grid{gap:clamp(16px,2vw,27px)}
.related-card img{max-height:235px;aspect-ratio:1.5;object-fit:cover}
.v3-product-card:hover,.related-card:hover{box-shadow:0 17px 37px #5d132025;transform:translateY(-4px)}
/* Contact panels: no maroon headings on maroon backgrounds. */
.v3-solutions{border-radius:32px;color:#fffdf9;background:linear-gradient(115deg,#52101d,#7f1729 58%,#591724)}
.v3-solutions-lead h2,.v3-solutions-lead h2:not(em),.v3-solutions h2{color:#fff8eb!important}
.v3-solutions-lead h2 em,.v3-solutions h2 em{color:#ffd48c!important}
.v3-solutions-lead>p,.v3-solutions p{color:#f6e1dc}
.v3-service-card{border-radius:22px;background:#ffffff0f;border:1px solid #ffffff2c;color:#fffdf9}
.v3-service-card h3{color:#ffe8bb!important}.v3-service-card p{color:#f8e7e2}
.v3-hero{border-bottom-left-radius:0;border-bottom-right-radius:0}
.v3-hero h1{font-family:'Be Vietnam Pro',system-ui,sans-serif;letter-spacing:-.055em!important}
.v3-hero-content{max-width:min(610px,95%)}
.v52-hero .v3-hero-photo img{object-position:center}
.vtq-estimate,.vt4-footer{font-family:'Be Vietnam Pro',system-ui,sans-serif}
.vtq-estimate :is(input,select,textarea){border-radius:13px}
.vtq-submit{border-radius:15px!important}
.vt4-footer .vt4-promo{border-radius:22px;overflow:hidden}
.v52-facebook{background:#1877f2!important;color:#fff!important;font-weight:900;font-size:24px!important}
/* In-admin quick tools on public pages. Only rendered for authenticated VT admins. */
.v52-admin-quickbar{z-index:1200;position:sticky;top:0;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;background:#4a0c1b;color:#fff;padding:9px 16px;border-bottom:2px solid #edc677;font-size:12px;font-weight:700}
.v52-admin-quickbar a{color:#fff;background:#ffffff20;border:1px solid #ffffff4d;border-radius:999px;padding:6px 13px}
.v52-admin-quickbar a:hover{background:#e9bd65;color:#46051a}
.v52-edit-banner-btn{z-index:8;position:absolute;right:clamp(20px,5vw,90px);bottom:22px;color:#640a20;background:#fff7e6;border:2px solid #f0ce80;border-radius:999px;padding:11px 18px;font-size:12px;font-weight:900;box-shadow:0 6px 24px #2600094d;cursor:pointer}
.v52-card-admin,.v52-product-edit-link{display:inline-flex;gap:6px;align-items:center;border:1px solid #f0cd80;padding:7px 12px;background:#fff4d8;color:#7d0822!important;border-radius:14px;font-weight:800;font-size:12px;position:relative;z-index:4;margin:8px 10px}
.v52-product-edit-link{margin:0 0 24px}
.v52-banner-dialog{width:min(560px,calc(100vw - 28px));max-height:min(90dvh,900px);overflow-y:auto;border:1px solid #ecd9c2;border-radius:26px;padding:28px;background:#fffcf8;box-shadow:0 18px 80px #23060b6b;color:#4a2331}
.v52-banner-dialog::backdrop{background:rgba(14,0,7,.68);backdrop-filter:blur(5px)}
.v52-banner-dialog h2{font-size:22px;color:#840f29;margin:0 0 9px}
.v52-banner-dialog p{font-size:12px;color:#705c62;margin:0 0 20px}
.v52-banner-dialog label{display:block;font-size:12px;font-weight:700;margin-bottom:12px}
.v52-banner-dialog input,.v52-banner-dialog textarea{width:100%;font:inherit;border:1px solid #ddcabb;border-radius:12px;padding:11px 13px;background:#fff;margin-top:5px;display:block}
.v52-banner-dialog output{font-size:12px;display:block;min-height:24px;color:#85152e}
.v52-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}
.v52-dialog-actions button{border:1px solid #8c253d;border-radius:12px;padding:10px 18px;font-weight:800}
.v52-dialog-actions .v52-save{background:#7f0b23;color:#fff}.v52-dialog-actions .v52-cancel{background:#fff;color:#7f0b23}
@media(max-width:1100px){.v3-product-card{flex-basis:calc((100% - 36px)/3)}.article-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:800px){.article-layout{display:block}.v3-product-card{flex-basis:calc((100% - 18px)/2)}.v3-product-image{height:200px}.v52-admin-quickbar{gap:6px;font-size:10px}.v52-admin-quickbar a{padding:5px 9px}.v3-solutions{border-radius:23px}}
@media(max-width:480px){.v3-product-card{flex-basis:82%}.v3-product-image{height:210px}.v52-edit-banner-btn{bottom:68px;right:12px;padding:7px 11px;font-size:10px}.v52-banner-dialog{padding:19px}.article-layout .prose h2{font-size:26px!important}.article-layout .prose h3{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){.v3-product-card,.related-card{transition:none}}
