/* Cascade order is intentional. Later compatibility overrides are retained. */
:root {
    --ink: #36271e;
    --muted: #7b6b5d;
    --red: #752b27;
    --red-dark: #4c201e;
    --gold: #dbc490;
    --cream: #faf7f0;
    --paper: #fffdf8;
    --line: #e4dacb;
    --serif: Georgia, 'Times New Roman', serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        16px/1.7 Arial,
        Helvetica,
        sans-serif;
}
h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.18;
    margin: 0 0 22px;
}
h1 {
    font-size: clamp(36px, 4.6vw, 66px);
}
h2 {
    font-size: clamp(28px, 3vw, 42px);
}
h3 {
    font-size: 25px;
}
p {
    margin: 0 0 20px;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    outline-offset: 5px;
}
button {
    cursor: pointer;
}
img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}
a:hover {
    color: var(--red);
}
input,
textarea,
select {
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    width: 100%;
    padding: 11px 13px;
    color: var(--ink);
}
textarea {
    resize: vertical;
}
input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}
label input,
label textarea,
label select {
    display: block;
    margin-top: 6px;
    font-weight: 400;
}
fieldset {
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 4px;
}
legend {
    padding: 0 8px;
}
small {
    font-size: 12px;
    color: var(--muted);
}
.topline {
    padding: 8px max(5vw, 24px);
    background: var(--red-dark);
    color: #f5ead5;
    font-size: 11px;
    letter-spacing: 1px;
}
.topline span {
    float: right;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 5vw;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font: 24px var(--serif);
}
.brand small {
    display: block;
    font: 10px Arial;
    letter-spacing: 2.4px;
    margin-top: 7px;
    color: var(--red);
}
.seal {
    display: grid;
    place-items: center;
    border: 1px solid var(--red);
    color: var(--red);
    width: 43px;
    height: 49px;
    font-size: 32px;
}
.site-header nav {
    display: flex;
    gap: 25px;
    font-size: 13px;
}
.site-header nav a {
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.site-header nav a:hover,
.site-header nav a.active {
    border-color: var(--red);
    color: var(--red);
}
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 24px;
}
.hero {
    background: var(--cream);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero-inner {
    max-width: 1440px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 600px;
}
.hero-copy {
    padding: 75px 4vw 55px 6vw;
    align-self: center;
}
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--red);
    margin-bottom: 20px;
    line-height: 1.8;
}
.hero h1 {
    max-width: 620px;
    letter-spacing: -1.6px;
}
.hero-copy > p:not(.eyebrow) {
    max-width: 480px;
    font-size: 15px;
    color: var(--muted);
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 46px;
    padding: 12px 22px;
    background: var(--red);
    color: white;
    border: 1px solid var(--red);
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}
.button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: white;
}
.button.outline {
    background: transparent;
    color: var(--red);
    border-color: #bda79b;
}
.button.outline:hover {
    background: #eee4d8;
}
.button.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--red-dark);
}
.button.small {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 35px;
}
.button.danger {
    color: #842727;
    background: #fff2ef;
    border-color: #e0b4a9;
}
.hero-caption {
    display: flex;
    gap: 17px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin-top: 42px;
    font-size: 9px;
    letter-spacing: 1.4px;
    color: var(--muted);
}
.hero-caption i {
    font-size: 7px;
    color: #b99b6a;
}
.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    padding: 45px 50px 65px;
    background: #e7ddcc;
}
.hero-art > img {
    width: 100%;
    height: 500px;
    border-radius: 46% 46% 0 0;
    object-fit: contain;
    background: #f1e9dc;
}
.arch {
    width: 100%;
    max-width: 390px;
    min-height: 450px;
    border: 1px solid #baa381;
    outline: 1px solid #baa381;
    outline-offset: 14px;
    border-radius: 48% 48% 0 0;
    background: linear-gradient(120deg, #f4ecdf, #ddd0ba);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #7f694f;
}
.arch-symbol {
    font: 110px var(--serif);
    opacity: 0.4;
}
.arch p {
    font: 25px var(--serif);
    margin: 20px 0 10px;
}
.arch small {
    color: #87765e;
}
.art-label {
    position: absolute;
    bottom: 22px;
    letter-spacing: 3px;
    font-size: 9px;
    color: #806b50;
}
.section {
    max-width: 1340px;
    margin: auto;
    padding: 75px 5vw;
}
.intro {
    text-align: center;
    max-width: 790px;
    padding-top: 85px;
    padding-bottom: 85px;
}
.intro > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
}
.text-link {
    font-size: 13px;
    color: var(--red);
    padding-bottom: 5px;
    border-bottom: 1px solid #bca28a;
    display: inline-block;
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.section-heading h2,
.section-heading h1 {
    margin-bottom: 0;
}
.section-heading .eyebrow {
    margin-bottom: 12px;
}
.collections {
    background: var(--cream);
    max-width: none;
}
.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.collection {
    min-height: 330px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}
.collection.wood {
    background: #4c3628;
    color: #f7eedd;
}
.collection.statues {
    background: #e8dfce;
    color: #4e392b;
    border: 1px solid #d2c2aa;
}
.collection:after {
    content: '◇';
    font: 260px var(--serif);
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 0.06;
    pointer-events: none;
}
.collection-number {
    font-size: 10px;
    letter-spacing: 2px;
}
.collection h3 {
    font-size: 38px;
    margin-bottom: 15px;
}
.collection p {
    max-width: 370px;
    font-size: 13px;
    opacity: 0.8;
}
.collection div > span {
    font-size: 12px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}
.collection:hover {
    color: var(--gold);
}
.collection.statues:hover {
    color: var(--red);
}
/* Catalog cards and product listings */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.product-card {
    border: 1px solid var(--line);
    background: white;
    overflow: hidden;
}
.card-image {
    display: block;
    aspect-ratio: 1/1.05;
    background: var(--cream);
    overflow: hidden;
}
.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.25s;
}
.card-image:hover img {
    transform: scale(1.04);
}
.card-body {
    padding: 20px;
}
.card-body h3 {
    font-size: 23px;
    margin: 7px 0 12px;
}
.card-body p {
    font-size: 13px;
    color: var(--red);
    margin-bottom: 15px;
}
.placeholder {
    height: 100%;
    min-height: 240px;
    background: #eee7da;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9e896b;
}
.placeholder > span {
    font: 70px var(--serif);
}
.placeholder small {
    color: #8e7d66;
}
.contact-band {
    background: var(--red-dark);
    color: #f6ecdc;
    padding: 60px 7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}
.contact-band .eyebrow {
    color: var(--gold);
}
.contact-band h2 {
    margin-bottom: 15px;
}
.contact-band p:last-child {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}
.page-heading {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 55px 7vw;
}
.page-heading h1 {
    font-size: 46px;
    margin-bottom: 15px;
}
.page-heading > p:last-child {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}
.catalog {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 42px;
}
.category-panel h2 {
    font-size: 25px;
}
.category-panel a {
    display: block;
    font-size: 13px;
    padding: 8px 10px;
    border-bottom: 1px solid #f2eade;
}
.category-panel a.selected {
    background: #ede2d4;
    color: var(--red);
    font-weight: 700;
}
.category-panel .depth-1 {
    font-weight: 600;
    margin-top: 12px;
}
.category-panel .depth-2 {
    padding-left: 24px;
    font-size: 12px;
}
.catalog .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form input {
    min-width: 0;
}
.result-count {
    font-size: 12px;
    color: var(--muted);
    margin: 18px 0;
}
.empty {
    text-align: center;
    padding: 65px 24px;
    background: var(--cream);
    border: 1px solid var(--line);
}
.empty > span {
    font: 60px var(--serif);
    color: #b99b6a;
}
.empty h2 {
    font-size: 28px;
}
.empty p {
    font-size: 14px;
    color: var(--muted);
}
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.pagination a {
    min-width: 37px;
    text-align: center;
    padding: 4px 10px;
    border: 1px solid var(--line);
}
.pagination [aria-current] {
    background: var(--red);
    color: white;
}
.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    margin: 35px 0 55px;
}
.detail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-content: start;
}
.detail-images > a:first-child {
    grid-column: 1/-1;
}
.detail-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--cream);
    border: 1px solid var(--line);
}
.detail-images > .placeholder {
    grid-column: 1/-1;
    aspect-ratio: 1;
}
.detail-copy {
    padding: 20px 0;
}
.detail-copy h1 {
    font-size: 42px;
}
.price {
    font-size: 24px;
    color: var(--red);
    font-family: var(--serif);
}
dl {
    margin: 25px 0;
}
dl > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
dt {
    color: var(--muted);
}
dd {
    margin: 0;
}
.prose {
    max-width: 900px;
}
.prose article {
    margin: 0 0 40px;
}
.prose p {
    white-space: normal;
    overflow-wrap: anywhere;
}
.prose img {
    max-height: 500px;
    margin-bottom: 24px;
}
.lead {
    font-size: 19px;
    line-height: 1.9;
    color: var(--muted);
}
.gallery-section {
    margin-bottom: 55px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: var(--cream);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}
.contact-note {
    padding: 38px;
    background: var(--cream);
    border: 1px solid var(--line);
}
.contact-note h2 {
    font-size: 32px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
blockquote {
    margin: 0;
    padding: 28px;
    background: var(--cream);
    border: 1px solid var(--line);
}
cite {
    font-size: 13px;
    color: var(--red);
}
footer {
    padding: 55px 6vw 30px;
    background: #eee7db;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
}
.footer-grid h2 {
    font-size: 27px;
}
.footer-grid h3 {
    font-family: Arial;
    font-size: 13px;
    font-weight: 700;
}
.footer-grid p,
.footer-grid a {
    font-size: 13px;
}
.footer-grid a {
    display: block;
    margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid #d8cbb8;
    padding-top: 22px;
    margin-top: 36px;
    font-size: 11px;
    color: var(--muted);
}
/* Floating contact controls */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 20;
    background: var(--paper);
    box-shadow: 0 5px 25px #0002;
    padding: 6px;
    border-radius: 4px;
}
.floating-contact .button {
    font-size: 12px;
    min-height: 40px;
    padding: 10px 16px;
}
dialog {
    border: 0;
    background: #f9f5ed;
    padding: 40px 45px 20px;
    max-width: 95vw;
    width: 1000px;
    max-height: 95vh;
}
dialog::backdrop {
    background: #1c120ddc;
}
dialog img {
    max-height: 75vh;
    max-width: 100%;
    object-fit: contain;
    margin: auto;
}
dialog p {
    text-align: center;
    font-size: 12px;
    margin: 12px 0 0;
}
dialog button {
    position: absolute;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 28px;
    line-height: 1;
    width: 35px;
    height: 35px;
}
dialog [data-close] {
    right: 5px;
    top: 5px;
}
dialog [data-prev] {
    left: 5px;
    top: 48%;
}
dialog [data-next] {
    right: 5px;
    top: 48%;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.notice,
.error {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.notice {
    background: #edf5e8;
    border: 1px solid #b6cbaa;
    color: #35512a;
}
.error {
    background: #fff0ed;
    color: #842727;
    border: 1px solid #e7b7ac;
}
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 15px;
    background: var(--cream);
}
.login-card {
    padding: 40px;
    width: min(100%, 470px);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 10px 40px #36271e08;
}
.login-card h1 {
    font-size: 36px;
}
.login-card form {
    display: grid;
    gap: 20px;
}
.login-card p {
    font-size: 14px;
    color: var(--muted);
}
.login-card > p {
    margin-top: 16px;
}
/* Administration forms and layout */
.admin-body {
    background: #f6f3ed;
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    padding: 28px 22px;
    background: #36271e;
    color: #f6ebd9;
    overflow: auto;
}
.admin-brand {
    font: 23px var(--serif);
    display: block;
    margin-bottom: 32px;
}
.admin-sidebar nav {
    display: grid;
    gap: 4px;
    margin-bottom: 30px;
}
.admin-sidebar nav a {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 3px;
}
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: #654839;
    color: #ead5ad;
}
.admin-sidebar .button.outline {
    color: #f6ebd9;
    border-color: #826451;
}
.admin-main {
    margin-left: 250px;
    padding: 30px 45px 60px;
    max-width: 1600px;
}
.admin-top {
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 35px;
}
.admin-top p {
    margin: 0;
}
.admin-top span {
    font-size: 12px;
    color: var(--muted);
}
.admin-main h1 {
    font-size: 36px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.stat-grid a {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #fff;
    border: 1px solid var(--line);
}
.stat-grid strong {
    font: 40px var(--serif);
    color: var(--red);
}
.stat-grid span {
    font-size: 13px;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 28px;
    margin: 25px 0;
}
.panel h2 {
    font-size: 28px;
}
.panel li {
    margin: 12px 0;
}
.panel li a {
    color: var(--red);
    text-decoration: underline;
}
.edit-form {
    max-width: 900px;
    display: grid;
    gap: 22px;
}
.edit-form > .button {
    justify-self: start;
}
.check {
    display: flex;
    gap: 10px;
    align-items: center;
}
.check input {
    margin: 0;
}
.check + .check {
    margin-top: 15px;
}
.admin-thumb {
    max-width: 240px;
    max-height: 180px;
    margin-bottom: 15px;
    object-fit: contain;
}
.table-wrap {
    overflow: auto;
    padding: 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
th {
    background: var(--cream);
    font-size: 12px;
}
td small {
    display: block;
}
.badge {
    font-size: 11px;
    padding: 5px 8px;
    background: #eee8df;
    color: #7f6d57;
    border-radius: 4px;
    white-space: nowrap;
}
.badge.on {
    background: #eaf2e4;
    color: #496139;
}
.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.row-actions form {
    margin: 0;
}
.upload-form {
    display: flex;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}
.admin-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.admin-images article {
    border: 1px solid var(--line);
    padding: 12px;
}
.admin-images img {
    height: 160px;
    width: 100%;
    object-fit: contain;
    background: var(--cream);
    margin-bottom: 12px;
}
.admin-images form {
    margin-top: 10px;
}
.admin-images label {
    font-size: 12px;
}
.admin-images input {
    padding: 7px;
}
.admin-images button {
    margin-top: 5px;
}
.admin-main .search-form {
    max-width: 650px;
}
body:has(.floating-contact) {
    padding-bottom: 65px;
}
@media (min-width: 1500px) {
    .site-header {
        padding-left: max(5vw, calc((100vw - 1260px) / 2));
        padding-right: max(5vw, calc((100vw - 1260px) / 2));
    }
}
@media (max-width: 1100px) {
    .site-header nav {
        gap: 14px;
        font-size: 12px;
    }
    .brand {
        font-size: 20px;
    }
    .catalog {
        grid-template-columns: 210px 1fr;
        gap: 25px;
    }
    .product-grid,
    .catalog .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-art {
        padding: 50px 35px;
    }
    .admin-main {
        padding: 25px;
    }
    .admin-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 800px) {
    .site-header {
        flex-wrap: wrap;
        padding: 18px 5vw;
    }
    .menu-toggle {
        display: block;
    }
    .site-header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 15px;
    }
    .site-header nav a {
        padding: 12px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-copy {
        padding: 45px 7vw;
    }
    .hero h1 {
        font-size: 46px;
        max-width: 540px;
    }
    .hero-art {
        min-height: 340px;
        padding: 35px 50px 55px;
    }
    .arch {
        min-height: 300px;
        max-width: 330px;
    }
    .arch-symbol {
        font-size: 65px;
    }
    .hero-art > img {
        height: 350px;
    }
    .hero-caption {
        margin-top: 30px;
    }
    .section {
        padding: 45px 6vw;
    }
    .collection {
        min-height: 290px;
        padding: 25px;
    }
    .collection h3 {
        font-size: 31px;
    }
    .collection-grid {
        gap: 16px;
    }
    .contact-band {
        flex-direction: column;
        align-items: start;
        padding: 45px 6vw;
    }
    .catalog {
        grid-template-columns: 1fr;
    }
    .category-panel {
        max-height: 260px;
        overflow: auto;
        border: 1px solid var(--line);
        padding: 16px;
    }
    .category-panel h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .product-detail {
        gap: 30px;
        grid-template-columns: 1fr;
    }
    .detail-copy h1 {
        font-size: 36px;
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gallery-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .page-heading h1 {
        font-size: 36px;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        padding: 20px;
    }
    .admin-sidebar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }
    .admin-brand {
        margin-bottom: 16px;
    }
    .admin-main {
        margin: 0;
        padding: 25px 5vw;
    }
    .admin-sidebar form {
        display: inline-block;
    }
    .admin-main h1 {
        font-size: 29px;
    }
    .stat-grid {
        gap: 10px;
    }
    .stat-grid a {
        padding: 17px;
    }
    .panel {
        padding: 20px;
    }
    .table-wrap {
        padding: 0;
    }
}
@media (max-width: 480px) {
    .topline {
        font-size: 9px;
    }
    .topline span {
        display: none;
    }
    .hero h1 {
        font-size: 39px;
    }
    .hero-copy {
        padding: 35px 6vw;
    }
    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
    }
    .hero-caption {
        gap: 8px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .collection {
        min-height: 270px;
    }
    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }
    .product-grid,
    .catalog .product-grid {
        gap: 12px;
    }
    .card-body {
        padding: 13px;
    }
    .card-body h3 {
        font-size: 20px;
    }
    .card-body .text-link {
        font-size: 11px;
    }
    .card-body p {
        font-size: 12px;
    }
    .placeholder {
        min-height: 180px;
    }
    .gallery-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }
    .page-heading {
        padding: 35px 6vw;
    }
    .contact-note {
        padding: 24px;
    }
    .footer-grid > div:first-child {
        grid-column: auto;
    }
    .search-form .button {
        padding: 10px 15px;
        white-space: nowrap;
    }
    .admin-images {
        grid-template-columns: 1fr;
    }
    .stat-grid a {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }
    .login-card {
        padding: 28px;
    }
    .admin-top span {
        display: none;
    }
    .floating-contact {
        right: 10px;
        bottom: 10px;
    }
    .floating-contact .button {
        padding: 10px 12px;
    }
    .product-detail {
        margin-top: 25px;
    }
    dialog {
        padding: 40px 38px 20px;
    }
    .hero-art {
        padding: 35px 40px 55px;
    }
    .arch {
        min-height: 280px;
    }
}

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

@media (min-width: 801px) {
    .category-panel {
        max-height: 75vh;
        overflow: auto;
        position: sticky;
        top: 20px;
        align-self: start;
        padding-right: 8px;
    }
}

/* Diện mạo đỏ son – vàng thếp */

:root {
    --red: #9e1b1b;
    --red-dark: #641515;
    --gold: #d4af37;
    --cream: #fff9ed;
    --paper: #fffdf7;
    --ink: #38251b;
    --line: #e8d9b9;
}
.site-header {
    display: block;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--red-dark);
    color: #fff0cd;
    border-bottom: 3px solid var(--gold);
    transition: box-shadow 0.2s;
}
.site-header.compact {
    box-shadow: 0 5px 25px #28030045;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 22px 5vw;
}
.brand {
    color: #fff0cd;
    min-width: 200px;
}
.brand:hover {
    color: var(--gold);
}
.brand small {
    color: #e6c671;
}
.brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}
.seal {
    color: var(--gold);
    border-color: var(--gold);
}
.header-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    border-top: 1px solid #ffffff20;
    gap: 20px;
}
.site-header nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 52px;
}
.site-header nav a {
    color: #f8ebd3;
}
.site-header nav a.active,
.site-header nav a:hover {
    color: #f4d276;
    border-color: #f4d276;
}
.header-search {
    position: relative;
    display: flex;
    max-width: 520px;
    flex: 1;
    border: 1px solid #d6b86580;
    border-radius: 4px;
    background: #fffaf0;
}
.header-search input {
    border: 0;
    background: transparent;
    color: var(--ink);
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 13px;
}
.header-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 28px;
}
.suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    color: var(--ink);
    margin: 3px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px #0002;
    max-height: 330px;
    overflow: auto;
    z-index: 80;
}
.suggestions a {
    display: block;
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.suggestions a:hover,
.suggestions a:focus {
    background: var(--cream);
}
.topline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 5vw;
    color: #e6d2a2;
    background: #42100f;
}
.topline a {
    color: inherit;
    white-space: nowrap;
}
.topline span {
    float: none;
}
.category-menu {
    position: relative;
    min-width: 180px;
    font-size: 12px;
}
.category-menu summary {
    cursor: pointer;
    list-style: none;
    padding: 12px;
    color: #f2d38a;
}
.category-menu > div {
    position: absolute;
    top: 100%;
    right: 0;
    width: 440px;
    max-width: 90vw;
    max-height: 65vh;
    overflow: auto;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 15px 35px #0003;
    border: 1px solid var(--gold);
}
.category-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    border-bottom: 1px solid var(--line);
}
.hero-slider {
    position: relative;
    background: var(--cream);
}
.hero-slide {
    background: linear-gradient(110deg, #641515 0%, #8f2220 52%, #ddcba4 52%);
}
.hero-copy {
    color: #fff3d8;
}
.hero-copy .eyebrow {
    color: #f2d38a;
}
.hero h1,
.hero-copy h1,
.hero-title {
    font-family: var(--serif);
    font-size: clamp(38px, 4.7vw, 66px);
    font-weight: 500;
    line-height: 1.17;
    letter-spacing: -1.4px;
}
.hero-copy > p:not(.eyebrow) {
    color: #f0dfc7;
}
.hero-copy .button.outline {
    color: #fff1cf;
    border-color: #dbbc75;
}
.hero-copy .button.outline:hover {
    background: #ffffff15;
}
.hero-caption {
    color: #e3cb9d;
    border-color: #ffffff30;
}
.hero-art {
    background: transparent;
}
.hero-art > img {
    background: #f8efdc;
    border: 2px solid #b8994c;
    box-shadow: 0 10px 30px #43291530;
}
.arch {
    border-color: #a27b29;
    outline-color: #c0a259;
    background: linear-gradient(130deg, #fff4db, #ddc597);
}
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    padding: 13px;
    background: #f4e5c4;
    border-bottom: 1px solid #dbc591;
    font-size: 12px;
}
.slider-controls button {
    border: 1px solid #ba984b;
    background: #fffaec;
    padding: 7px 15px;
    color: var(--red);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.category-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #5c291014;
}
.category-card > img,
.category-card > a > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    padding: 15px;
    background: var(--cream);
}
.category-card > div,
.category-card > a > div {
    padding: 24px;
}
.category-card h2,
.category-card h3 {
    font-size: 27px;
    margin-bottom: 12px;
}
.category-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}
.category-card span {
    font-size: 12px;
    color: var(--red);
}
.product-card {
    box-shadow: 0 4px 18px #36271e04;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    border-radius: 3px;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #36271e12;
}
.card-body h3 {
    font-size: 23px;
}
.card-body p {
    font-weight: 600;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #886a47;
    margin-bottom: 20px;
}
.breadcrumbs a:hover {
    color: var(--red);
}
.category-banner {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #f3e7cf;
    margin-top: 25px;
}
.category-cover {
    width: 200px;
    height: 180px;
    object-fit: contain;
    margin-top: 25px;
    background: #f3e7cf;
}
.child-categories {
    padding-bottom: 0;
}
.child-categories .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.child-categories .category-card .placeholder {
    min-height: 140px;
}
.child-categories .category-card > img {
    aspect-ratio: 1.3;
}
.child-categories .category-card h3 {
    font-size: 22px;
}
.child-categories .category-card > div {
    padding: 15px;
}
.child-categories .category-card p {
    font-size: 12px;
}
.filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--line);
}
.filter-form > label:first-child {
    grid-column: 1/-1;
}
.filter-form > .button {
    align-self: end;
    min-height: 49px;
}
.category-description {
    margin: 50px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 35px;
}
.detail-copy .lead {
    font-size: 16px;
    margin-top: 20px;
}
.detail-copy .copy-link {
    margin-top: 18px;
}
.consult-note {
    font-size: 12px;
    margin-top: 15px;
    color: var(--muted);
}
.policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 35px 0;
}
.prose {
    overflow-wrap: anywhere;
}
.prose h2 {
    margin-top: 35px;
}
.prose h2:first-child {
    margin-top: 0;
}
.video-frame {
    display: block;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 35px auto;
    border: 0;
}
.article-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.article-filters a {
    border: 1px solid var(--line);
    padding: 8px 15px;
    font-size: 13px;
}
.article-filters a:hover {
    background: var(--red);
    color: white;
}
.floating-contact {
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 10px;
    padding: 0;
    right: 18px;
    bottom: 24px;
}
.floating-contact .button {
    box-shadow: 0 4px 15px #0002;
    border-radius: 25px;
    min-height: 45px;
    padding: 12px 22px;
}
.contact-phone {
    background: var(--red);
    color: white;
}
.contact-zalo {
    background: #056bd8;
    border-color: #056bd8;
    color: white;
}
.contact-messenger {
    background: #6b38da;
    border-color: #6b38da;
    color: white;
}
.contact-zalo:hover,
.contact-messenger:hover {
    filter: brightness(0.9);
    color: white;
}
.back-top {
    position: fixed;
    bottom: 25px;
    left: 20px;
    border: 1px solid var(--gold);
    background: var(--paper);
    color: var(--red);
    width: 40px;
    height: 40px;
    z-index: 25;
    border-radius: 50%;
    font-size: 22px;
}
.toast {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 100;
    font-size: 13px;
    max-width: 90vw;
}
.skip-link {
    position: fixed;
    left: 10px;
    top: -100px;
    z-index: 200;
    padding: 10px;
    background: white;
    color: var(--ink);
}
.skip-link:focus {
    top: 10px;
}
.seo-preview {
    padding: 22px;
    background: var(--cream);
    border: 1px solid var(--line);
}
.seo-preview h3 {
    font-family: Arial;
    color: #1a0dab;
    font-size: 20px;
    margin: 10px 0;
}
.seo-preview p {
    font-size: 14px;
    margin: 0;
}
.list-thumb {
    width: 85px;
    height: 70px;
    object-fit: contain;
    float: left;
    margin: 0 15px 10px 0;
    background: var(--cream);
}
.admin-sidebar {
    background: var(--red-dark);
}
.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: #ffffff18;
    color: #f3d785;
}
.admin-sidebar nav {
    gap: 2px;
}
.admin-sidebar nav a {
    padding: 8px 10px;
}
.admin-main .search-form {
    max-width: none;
    flex-wrap: wrap;
}
.admin-main .search-form input {
    flex: 2;
    min-width: 170px;
}
.admin-main .search-form select {
    flex: 1;
    min-width: 140px;
}
.admin-main .edit-form {
    max-width: 950px;
}
.preview-note {
    margin: 20px 5vw;
}
.reveal.revealed {
    animation: reveal-in 0.5s both;
}
@keyframes reveal-in {
    from {
        transform: translateY(14px);
        opacity: 0.65;
    }
    to {
        transform: none;
        opacity: 1;
    }
}
footer {
    border-top: 3px solid var(--gold);
    background: #641515;
    color: #f0dfbf;
}
footer h2,
footer h3 {
    color: #f1d385;
}
.footer-bottom {
    border-color: #ffffff25;
    color: #dac5a0;
}
.footer-grid a:hover {
    color: #f4cf65;
}
.page-heading {
    background: linear-gradient(120deg, #fff6e2, #f8e9ca);
}
.contact-note {
    border-top: 3px solid var(--gold);
}
.button.gold {
    color: #481110;
}
.section {
    scroll-margin-top: 190px;
}
[hidden] {
    display: none !important;
}

@media (min-width: 1500px) {
    .site-header {
        padding: 0;
    }
    .header-main,
    .header-navigation {
        padding-left: max(5vw, calc((100vw - 1260px) / 2));
        padding-right: max(5vw, calc((100vw - 1260px) / 2));
    }
}

@media (max-width: 1100px) {
    .header-main {
        gap: 20px;
    }
    .site-header nav {
        gap: 15px;
    }
    .header-navigation {
        gap: 10px;
    }
    .category-menu {
        min-width: 155px;
    }
    .child-categories .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .floating-contact {
        right: 10px;
    }
    .floating-contact .button {
        padding: 10px 15px;
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .site-header {
        padding: 0;
    }
    .header-main {
        flex-wrap: wrap;
        padding: 16px 5vw;
        gap: 15px;
    }
    .brand {
        flex: 1;
    }
    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
    .menu-toggle {
        color: #f2d38a;
        border-color: #c8a452;
    }
    .header-navigation {
        display: block;
        padding: 0 5vw;
    }
    .site-header nav {
        display: none;
        min-height: 0;
        padding: 10px 0;
    }
    .site-header nav.open {
        display: flex;
    }
    .site-header nav a {
        padding: 10px;
        width: 100%;
    }
    .category-menu {
        width: 100%;
        border-top: 1px solid #ffffff20;
    }
    .category-menu > div {
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        max-height: 50vh;
    }
    .hero-slide {
        background: linear-gradient(150deg, #641515, #8f2220 60%, #e3ce9b);
    }
    .hero-copy {
        padding: 40px 6vw;
    }
    .hero-copy h1,
    .hero-title {
        font-size: 43px;
    }
    .hero-art {
        padding: 25px 45px 55px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .child-categories .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .floating-contact {
        flex-direction: row;
        left: 0;
        right: 0;
        bottom: 0;
        justify-content: center;
        background: #fffaf1f5;
        padding: 9px 10px;
        box-shadow: 0 -3px 18px #0001;
        gap: 8px;
    }
    .floating-contact .button {
        flex: 1;
        border-radius: 5px;
        max-width: 180px;
        min-height: 43px;
        white-space: nowrap;
    }
    .back-top {
        bottom: 80px;
        left: auto;
        right: 15px;
    }
    .contact-band .actions {
        margin-top: 0;
    }
    .section {
        scroll-margin-top: 220px;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .topline span {
        display: block;
        font-size: 9px;
    }
    .slider-controls {
        gap: 10px;
    }
    .admin-sidebar nav {
        max-height: 220px;
        overflow: auto;
    }
    .admin-main .search-form {
        flex-direction: column;
    }
    .filter-form {
        padding: 15px;
    }
    .category-panel {
        position: static;
    }
}

@media (max-width: 480px) {
    .header-main {
        gap: 12px;
    }
    .brand {
        font-size: 19px;
    }
    .brand small {
        font-size: 8px;
        letter-spacing: 1.7px;
    }
    .brand img {
        width: 42px;
        height: 42px;
    }
    .topline {
        padding: 6px 5vw;
        font-size: 9px;
    }
    .topline span {
        font-size: 8px;
        letter-spacing: 0.4px;
    }
    .hero-copy h1,
    .hero-title {
        font-size: 37px;
    }
    .hero-copy > p:not(.eyebrow) {
        font-size: 14px;
    }
    .category-grid {
        gap: 12px;
    }
    .category-card > div,
    .category-card > a > div {
        padding: 16px;
    }
    .category-card h3,
    .category-card h2 {
        font-size: 23px;
    }
    .category-card p {
        font-size: 12px;
    }
    .category-card .placeholder {
        min-height: 160px;
    }
    .child-categories .category-card p {
        display: none;
    }
    .child-categories .category-card h3 {
        font-size: 20px;
    }
    .child-categories .category-card > div {
        padding: 12px;
    }
    .filter-form {
        grid-template-columns: 1fr;
    }
    .filter-form > label:first-child {
        grid-column: auto;
    }
    .slider-controls {
        font-size: 10px;
    }
    .slider-controls button {
        padding: 7px 10px;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .category-menu a {
        font-size: 11px;
    }
    .floating-contact .button {
        font-size: 11px;
        padding: 10px 8px;
    }
    .header-search input {
        font-size: 12px;
    }
    .topline a {
        font-size: 9px;
    }
    .category-card .placeholder small {
        max-width: 90%;
        text-align: center;
    }
    .category-banner {
        max-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal.revealed {
        animation: none;
    }
    .category-card,
    .product-card {
        transition: none;
    }
    .category-card:hover,
    .product-card:hover {
        transform: none;
    }
}

@media (min-width: 801px) {
    .category-panel {
        top: 195px;
        max-height: calc(100vh - 220px);
    }
}

/* Bản 3 — phông Unicode có sẵn trên Windows, bố cục rõ ràng, không phụ thuộc font mạng. */

:root {
    --serif: 'Segoe UI', Tahoma, Arial, sans-serif;
    --sans: 'Segoe UI', Tahoma, Arial, sans-serif;
}

body,
input,
textarea,
select,
button {
    font-family: var(--sans);
    font-size: 16px;
}
body {
    line-height: 1.75;
}
h1,
h2,
h3,
h4,
.hero-title {
    font-family: var(--sans);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.35;
}
.hero-copy h1,
.hero-title {
    font-weight: 650;
    letter-spacing: -0.5px;
    font-size: clamp(32px, 4.3vw, 59px);
}
h2 {
    font-size: clamp(25px, 3vw, 36px);
}
h3 {
    font-size: 22px;
}
.eyebrow {
    letter-spacing: 1.5px;
    font-size: 11px;
    line-height: 1.7;
}
.brand {
    font-family: var(--sans);
    font-weight: 700;
}
.brand small {
    letter-spacing: 1px;
}
.site-header nav a {
    font-size: 14px;
}
.header-search input {
    font-size: 15px;
}
.header-navigation {
    justify-content: center;
}
.header-search {
    position: relative;
}
.suggestions {
    z-index: 80;
    text-align: left;
    max-height: 360px;
    overflow: auto;
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}
.suggestions a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    font-size: 15px;
    color: #38251b;
}
.suggestions small {
    color: #947b55;
    font-size: 11px;
    white-space: nowrap;
}
.suggestions .suggest-active {
    background: #f8edd2;
    outline: 2px solid #d4af37;
    outline-offset: -2px;
}
.catalog.catalog-simple {
    display: block;
    max-width: 1280px;
}
.catalog-simple .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.catalog-search {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
    max-width: 850px;
    margin-inline: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #dec795;
    border-radius: 12px;
    box-shadow: 0 6px 22px #63331508;
}
.search-field {
    flex: 1;
    position: relative;
    min-width: 0;
}
.search-field input {
    width: 100%;
    height: 52px;
    border: 0;
    background: #fff9ed;
    border-radius: 6px;
    padding: 0 18px;
}
.catalog-search .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dec795;
    box-shadow: 0 15px 30px #0002;
}
.catalog-search .button {
    border-radius: 6px;
    min-width: 120px;
}
.page-heading {
    padding-block: 45px;
}
.page-heading p {
    max-width: 850px;
    margin-inline: auto;
    line-height: 1.9;
}
.page-heading h1 {
    font-size: clamp(30px, 4vw, 48px);
}
.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-card h3,
.category-card h2,
.card-body h3 {
    font-family: var(--sans);
    font-size: 21px;
    line-height: 1.5;
    font-weight: 650;
}
.category-card p,
.card-body p {
    font-size: 14px;
}
.category-card {
    border-radius: 12px;
}
.about-layout {
    padding-block: 65px;
}
.brand-story {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 65px;
    align-items: center;
    margin-bottom: 65px;
    scroll-margin-top: 220px;
}
.brand-story:last-child {
    margin-bottom: 0;
}
.brand-story:nth-child(even) .story-image {
    order: 2;
}
.story-image {
    position: relative;
    padding: 12px;
    border: 1px solid #d7b75d;
    border-radius: 160px 160px 12px 12px;
    background: #f6ead2;
    overflow: hidden;
}
.story-image img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    border-radius: 145px 145px 6px 6px;
    background: #fffcf5;
}
.story-image .placeholder {
    min-height: 380px;
    border: 0;
    background: linear-gradient(140deg, #fffaf0, #e9d8af);
    border-radius: 145px 145px 6px 6px;
}
.story-copy h2 {
    color: var(--red-dark);
    margin: 12px 0 22px;
}
.story-copy p {
    font-size: 16px;
    color: #675342;
    line-height: 1.95;
}
.story-copy .text-link {
    display: inline-block;
    margin-top: 18px;
}
.center-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 38px;
}
.center-heading h2 {
    margin: 10px 0 18px;
    color: var(--red-dark);
}
.center-heading p {
    color: #7d6550;
}
.process-section {
    background: #fbf3e2;
    border-top: 1px solid #ead8af;
    border-bottom: 1px solid #ead8af;
    max-width: none;
    padding-inline: max(5vw, calc((100vw - 1180px) / 2));
    scroll-margin-top: 210px;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
}
.process-grid > article {
    grid-column: span 2;
    text-align: center;
}
.process-grid img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #d3b66b;
    border-radius: 12px;
}
.process-grid .placeholder {
    min-height: 210px;
    border-radius: 12px;
}
.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: var(--red-dark);
    color: #f6de9a;
    border: 3px solid #f7e9c7;
    border-radius: 50%;
    margin: 20px auto 15px;
    font-size: 20px;
    font-weight: 700;
}
.process-grid h3 {
    color: var(--red-dark);
    font-size: 20px;
}
.process-grid p {
    font-size: 14px;
    color: #74604c;
}
.commitments {
    padding-block: 70px;
}
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
.commitment-grid article {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid #d6b558;
    border-radius: 10px;
    background: linear-gradient(#fffcf4, #f9eed5);
    box-shadow: 0 5px 15px #38251b04;
}
.commitment-icon {
    font-size: 43px;
    color: #b68d20;
    line-height: 1.6;
}
.commitment-grid h3 {
    font-size: 19px;
    color: var(--red-dark);
    margin: 15px 0;
}
.commitment-grid p {
    font-size: 14px;
    color: #705c43;
}
.nav-about {
    position: relative;
    display: flex;
    align-items: center;
}
.about-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 290px;
    background: #fffaf0;
    color: #641515;
    border: 1px solid #d4af37;
    box-shadow: 0 14px 30px #0002;
    padding: 8px;
    z-index: 70;
}
.site-header .about-submenu a {
    display: block;
    padding: 12px;
    font-size: 14px;
    white-space: normal;
    border-bottom: 1px solid #eee0c4;
}
.nav-about:hover .about-submenu,
.nav-about:focus-within .about-submenu {
    display: block;
}
.masonry-gallery {
    columns: 4;
    column-gap: 22px;
}
.masonry-gallery > a {
    position: relative;
    display: block;
    break-inside: avoid;
    margin: 0 0 22px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5ead1;
}
.masonry-gallery img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s;
}
.masonry-gallery a:hover img {
    transform: scale(1.025);
}
.masonry-gallery span {
    display: block;
    padding: 12px 15px;
    background: #fff9ed;
    font-size: 13px;
}
.album-heading {
    margin-top: 45px;
}
.album-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.contact-layout {
    background: #fff;
    border: 1px solid #e6d1a7;
    border-radius: 18px;
    box-shadow: 0 15px 40px #64151509;
    margin-block: 45px;
}
.contact-layout h2 {
    color: var(--red-dark);
}
.contact-note {
    border-radius: 10px;
    background: linear-gradient(145deg, #fff6e0, #f0dbab);
}
.floating-contact {
    z-index: 35;
    right: 24px;
    bottom: 30px;
    gap: 16px;
}
.floating-contact .button {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    min-height: 62px;
    padding: 10px 23px 10px 10px;
    min-width: 210px;
    border: 2px solid #fff;
    border-radius: 40px;
    box-shadow: 0 5px 24px #0003;
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--red);
    border-radius: 50%;
    font-size: 23px;
    flex-shrink: 0;
}
.contact-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}
.contact-zalo .contact-icon {
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #0077db;
    font-weight: 750;
}
.floating-contact .contact-icon {
    animation: contact-wiggle 3s ease-in-out infinite;
}
.floating-contact .contact-zalo {
    box-shadow:
        0 0 0 5px #008fff16,
        0 5px 24px #0002;
}
.contact-label small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.3;
}
.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 38px;
}
.footer-grid h3 {
    font-size: 18px;
    border-bottom: 1px solid #f0d99540;
    padding-bottom: 18px;
}
.footer-grid a,
.footer-grid p {
    font-size: 14px;
    line-height: 1.9;
}
.footer-hotline {
    font-size: 27px !important;
    font-weight: 700;
    color: #f0d995;
}
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.footer-social a {
    display: inline-flex;
    padding: 8px 15px;
    border: 1px solid #f0d995;
    border-radius: 25px;
}
.footer-grid {
    padding-bottom: 50px;
}
.hero-art > img {
    object-fit: contain;
}
.detail-images {
    display: block;
    position: relative;
}
.detail-images > a {
    display: none;
}
.detail-images > a:first-child,
.detail-images > a.product-image-current {
    display: block;
}
.detail-images > a:first-child.product-image-inactive {
    display: none;
}
.detail-images > a img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
}
.product-image-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}
.product-image-controls button {
    border: 1px solid #d4af37;
    background: #fff6df;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 24px;
    color: #641515;
}
.product-image-controls span {
    font-size: 14px;
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow: auto;
    margin-top: 20px;
}
.product-thumbnails button {
    flex: 0 0 76px;
    border: 1px solid #e5d1a7;
    background: #fff9ed;
    padding: 5px;
    border-radius: 7px;
}
.product-thumbnails button[aria-pressed='true'] {
    border: 2px solid #9e1b1b;
}
.product-thumbnails img {
    height: 65px;
    width: 65px;
    object-fit: contain;
}
.detail-images:has(.product-image-controls) {
    align-self: start;
}

@keyframes contact-wiggle {
    0%,
    65%,
    100% {
        transform: rotate(0);
    }
    70% {
        transform: rotate(-13deg);
    }
    75% {
        transform: rotate(13deg);
    }
    80% {
        transform: rotate(-10deg);
    }
    85% {
        transform: rotate(10deg);
    }
    90% {
        transform: rotate(0);
    }
}

@media (max-width: 1100px) {
    .commitment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .floating-contact .button {
        min-width: 190px;
        font-size: 15px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brand-story {
        gap: 35px;
    }
    .catalog-simple .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .brand-story {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .brand-story:nth-child(even) .story-image {
        order: 0;
    }
    .story-image {
        max-width: 520px;
        width: 100%;
        margin: auto;
    }
    .story-image img {
        height: 340px;
    }
    .story-image .placeholder {
        min-height: 290px;
    }
    .about-layout {
        padding-block: 40px;
    }
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    .process-grid > article,
    .process-grid > article:nth-child(4) {
        grid-column: auto;
    }
    .commitment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-simple .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .floating-contact {
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px 12px;
        gap: 10px;
        background: #fffaf1f5;
    }
    .floating-contact .button {
        min-width: 0;
        min-height: 55px;
        font-size: 15px;
        max-width: none;
        padding: 6px 12px 6px 6px;
        border-radius: 35px;
    }
    .floating-contact .contact-icon {
        width: 37px;
        height: 37px;
    }
    .floating-contact .contact-label small {
        font-size: 10px;
    }
    .masonry-gallery {
        columns: 2;
    }
    .nav-about {
        display: block;
        width: 100%;
    }
    .about-submenu {
        position: static;
        display: block;
        background: #ffffff09;
        color: #f0d995;
        min-width: 0;
        border: 0;
        box-shadow: none;
        margin: 0 10px;
    }
    .site-header .about-submenu a {
        font-size: 13px;
        border-color: #ffffff14;
    }
    .header-search input {
        font-size: 14px;
    }
    .hero-copy h1,
    .hero-title {
        font-size: 36px;
        line-height: 1.4;
    }
    .contact-layout {
        margin-inline: 5vw;
    }
    .footer-grid {
        gap: 28px;
    }
    footer {
        padding-bottom: 95px;
    }
    .category-card h3,
    .category-card h2,
    .card-body h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .catalog-search {
        padding: 8px;
        gap: 8px;
    }
    .catalog-search .button {
        min-width: 85px;
        padding: 10px;
        font-size: 13px;
    }
    .search-field input {
        font-size: 14px;
        padding-inline: 12px;
    }
    .suggestions a {
        font-size: 14px;
        gap: 8px;
    }
    .suggestions small {
        font-size: 10px;
    }
    .commitment-grid {
        gap: 12px;
    }
    .commitment-grid article {
        padding: 20px 13px;
    }
    .commitment-grid h3 {
        font-size: 17px;
    }
    .commitment-grid p {
        font-size: 13px;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-grid .placeholder {
        min-height: 210px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .floating-contact .button {
        font-size: 13px;
        gap: 7px;
    }
    .floating-contact .contact-icon {
        width: 32px;
        height: 32px;
    }
    .floating-contact .contact-label small {
        font-size: 9px;
    }
    .floating-contact:has(.contact-messenger) .contact-label small {
        display: none;
    }
    .masonry-gallery {
        column-gap: 12px;
    }
    .masonry-gallery > a {
        margin-bottom: 12px;
    }
    .masonry-gallery span {
        padding: 10px;
        font-size: 12px;
    }
    .brand-story h2 {
        font-size: 28px;
    }
    .story-copy p {
        font-size: 15px;
    }
    .topline span {
        letter-spacing: 0;
    }
    .catalog-simple .product-grid {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contact .contact-icon {
        animation: none;
    }
    .masonry-gallery img {
        transition: none;
    }
}

.contact-label small {
    color: inherit;
    opacity: 0.94;
}
.floating-contact .contact-phone .contact-label small {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.floating-contact .contact-zalo .contact-label small {
    font-size: 11px;
    color: white;
}
.contact-band .contact-label small {
    color: inherit;
}
.floating-contact .contact-label small {
    line-height: 1.5;
}
.actions .button.contact-phone,
.actions .button.contact-zalo,
.actions .button.contact-messenger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.actions .contact-label small {
    font-size: 12px;
}
.story-copy .eyebrow {
    font-size: 11px;
}

@media (max-width: 480px) {
    .floating-contact .contact-phone .contact-label small {
        font-size: 13px;
    }
    .floating-contact .contact-zalo .contact-label small {
        font-size: 9px;
    }
}

/* Bản 4: chiều cao ảnh độc lập với chiều cao bài viết, tránh tràn đè chữ. */

main,
main > section,
.process-grid > article,
.brand-story,
.story-copy,
.catalog-main {
    min-width: 0;
    min-height: 0;
}
.placeholder {
    height: auto;
    min-height: 0;
    aspect-ratio: 4/3;
    padding: 22px;
    text-align: center;
}
.placeholder small {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.card-image .placeholder {
    height: 100%;
    aspect-ratio: auto;
}
.process-grid {
    align-items: start;
    grid-auto-rows: auto;
    row-gap: 44px;
}
.process-grid > article {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    overflow: visible;
    grid-row: auto;
}
.process-grid .placeholder {
    width: 100%;
    height: 210px;
    min-height: 0;
    aspect-ratio: auto;
    flex: none;
}
.process-grid img {
    flex: none;
}
.process-grid h3 {
    line-height: 1.5;
    min-height: 0;
    margin-bottom: 16px;
}
.process-grid p {
    line-height: 1.9;
    white-space: normal;
    overflow-wrap: anywhere;
}
.story-image {
    align-self: start;
    min-width: 0;
    border-radius: 12px;
    padding: 10px;
}
.story-image .placeholder {
    height: 340px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 6px;
}
.story-image img {
    height: auto;
    max-height: 460px;
    aspect-ratio: 4/3;
    border-radius: 6px;
    object-fit: contain;
}
.story-copy > * {
    position: static;
    transform: none;
}
.about-layout {
    display: block;
}
.brand-story {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 44px;
}
.brand-story .story-copy {
    min-width: 0;
}
.center-heading {
    clear: both;
}
.process-section {
    padding-top: 45px;
    padding-bottom: 45px;
}
.commitments {
    clear: both;
    padding-top: 45px;
    padding-bottom: 45px;
}
.process-grid > article:nth-child(4) {
    grid-column: 2 / span 2;
}
.commitment-grid {
    align-items: stretch;
}
.commitment-grid article {
    height: auto;
    min-width: 0;
}
.page-heading {
    padding: 22px max(5vw, calc((100vw - 1180px) / 2));
    text-align: left;
    background: #fcf5e6;
    border-top: 0;
}
.page-heading h1 {
    font-size: 30px;
    line-height: 1.4;
    margin: 0 0 7px;
}
.page-heading p {
    margin: 0;
    max-width: 900px;
    font-size: 14px;
    line-height: 1.8;
}
.page-heading .eyebrow {
    font-size: 10px;
    margin: 0 0 6px;
}
.page-heading .breadcrumbs {
    margin-bottom: 10px;
}
.page-heading .category-cover {
    height: 90px;
    width: 130px;
    margin-top: 15px;
}
.page-heading .category-banner {
    max-height: 150px;
    margin-top: 15px;
}
.section {
    padding-top: 42px;
    padding-bottom: 42px;
}
.catalog.catalog-v4 {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 28px;
    max-width: 1420px;
    align-items: start;
}
.catalog-v4 .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-sidebar {
    align-self: start;
    min-width: 0;
}
.catalog-tree {
    border: 1px solid #e6d5b1;
    border-radius: 9px;
    background: white;
    overflow: hidden;
}
.catalog-tree > summary {
    background: #f5e7c9;
    padding: 15px 18px;
    cursor: pointer;
    color: #641515;
    font-weight: 700;
    font-size: 16px;
}
.catalog-tree details {
    padding: 0 12px;
    border-top: 1px solid #f0e7d4;
}
.catalog-tree details > summary {
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #641515;
}
.catalog-tree ul {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 8px;
}
.catalog-tree ul ul {
    padding-left: 12px;
}
.catalog-tree li a {
    display: block;
    padding: 6px 4px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.catalog-tree a:hover {
    color: #000;
    background: #fff6e1;
}
.catalog-tree .all-products {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    color: #641515;
}
.catalog-search {
    margin-top: 0;
    margin-bottom: 18px;
    padding: 8px;
    max-width: none;
    border-radius: 8px;
    box-shadow: none;
}
.search-field input {
    height: 45px;
    font-size: 14px;
}
.catalog-search .button {
    min-height: 45px;
    padding: 9px 15px;
    font-size: 13px;
}
.result-count {
    font-size: 13px;
    margin-bottom: 15px;
}
.catalog-main .empty {
    padding: 32px 20px;
}
.catalog-main .empty > span {
    font-size: 45px;
}
.catalog-main .empty h2 {
    font-size: 24px;
}
.product-detail {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}
.detail-images > a img {
    aspect-ratio: auto;
    height: 540px;
    max-height: 65vh;
    padding: 12px;
    background: white;
    object-fit: contain;
}
.detail-copy h1 {
    font-size: 30px;
    line-height: 1.5;
    color: #876315;
}
.detail-copy dl {
    font-size: 14px;
}
.detail-copy .price {
    font-size: 23px;
}
.detail-copy .lead {
    line-height: 1.9;
}
.detail-images {
    min-width: 0;
}
.product-image-controls {
    gap: 16px;
}
.product-thumbnails button {
    flex-basis: 72px;
}
.product-thumbnails img {
    height: 60px;
    width: 60px;
}
.header-main {
    padding-top: 14px;
    padding-bottom: 14px;
}
.header-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding-inline: 4vw;
}
.nav-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.nav-actions a {
    font-size: 12px;
    padding: 9px 12px;
    border: 1px solid #d4af37;
    border-radius: 5px;
    font-weight: 650;
}
.nav-explore {
    background: #d4af37;
    color: #44100e;
}
.nav-consult {
    color: #f3dd9b;
}
.nav-actions a:hover {
    background: #f4d46b;
    color: #111;
}
.site-header nav {
    gap: 12px;
    align-items: stretch;
}
.nav-item-title {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}
.site-header nav .nav-item-title > a {
    padding: 14px 0;
    font-size: 13px;
    white-space: nowrap;
}
.subnav-toggle {
    border: 0;
    padding: 8px 3px;
    background: transparent;
    color: #f0d995;
    font-size: 16px;
    min-width: 23px;
    min-height: 34px;
}
.nav-item {
    position: relative;
}
.menu-panel {
    display: none;
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    min-width: 290px;
    max-width: calc(100vw - 40px);
    max-height: 65vh;
    overflow: auto;
    padding: 12px;
    background: #fffdf8;
    color: #27201a;
    border: 1px solid #d7bb6b;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 15px 35px #0002;
}
.site-header nav .menu-panel a {
    display: block;
    color: #38251b;
    font-size: 14px;
    padding: 9px 10px;
    border: 0;
    white-space: normal;
    line-height: 1.6;
}
.site-header nav .menu-panel a:hover,
.site-header nav .menu-panel a:focus {
    color: #000;
    background: #f5e5be;
    border: 0;
}
.mega-panel {
    width: 680px;
    left: auto;
    right: -190px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.menu-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.menu-panel ul ul {
    padding-left: 14px;
}
.site-header nav .menu-panel .menu-group-title {
    font-weight: 750;
    color: #641515;
    border-bottom: 1px solid #e9d8b3;
}
.site-header nav .menu-panel li a {
    font-size: 13px;
    padding-block: 5px;
}
.nav-item.submenu-open > .menu-panel {
    display: block;
}
.nav-item.submenu-open > .mega-panel {
    display: grid;
}
.photo-banner {
    width: 100%;
    overflow: hidden;
    background: #f5ead2;
    position: relative;
    border-bottom: 1px solid #e0c889;
}
.banner-track {
    display: flex;
    width: 100%;
    transition: transform 0.65s ease;
    will-change: transform;
}
.photo-banner .hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    background: transparent;
}
.banner-photo {
    display: block;
    width: 100%;
    background: #f2e7d1;
}
.banner-photo img {
    width: 100%;
    height: clamp(220px, 33vw, 650px);
    object-fit: contain;
    border: 0;
    border-radius: 0;
    display: block;
}
.banner-empty {
    height: clamp(230px, 30vw, 580px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: #f0e5cf;
    color: #746041;
}
.banner-empty > span {
    font-size: 26px;
}
.banner-empty small {
    font-size: 13px;
}
.photo-banner .slider-controls {
    position: absolute;
    left: 20px;
    bottom: 18px;
    border: 0;
    background: #27170fbb;
    color: white;
    padding: 6px 9px;
    border-radius: 25px;
    gap: 10px;
}
.photo-banner .slider-controls button {
    border: 0;
    background: #ffffffeb;
    color: #641515;
    border-radius: 20px;
    padding: 4px 11px;
    min-height: 32px;
}
.banner-dots {
    position: absolute;
    right: 22px;
    bottom: 28px;
    display: flex;
    gap: 9px;
}
.banner-dots button {
    height: 12px;
    width: 12px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #ffffff88;
    box-shadow: 0 1px 6px #0003;
}
.banner-dots button[aria-pressed='true'] {
    background: #d4af37;
    border-color: #fff;
}
.explore-collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.explore-group {
    padding: 24px;
    border: 1px solid #e1cda2;
    background: #fff;
    border-radius: 10px;
    min-width: 0;
}
.explore-group h2 {
    font-size: 28px;
}
.explore-group .section-heading {
    margin-bottom: 20px;
}
.explore-group .section-heading .button {
    padding: 9px 12px;
    font-size: 12px;
    min-height: 38px;
}
.explore-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.explore-images img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #fff9ed;
}
.explore-images .placeholder {
    height: 190px;
    aspect-ratio: auto;
    border-radius: 7px;
}
.explore-images span {
    display: block;
    padding: 10px;
    font-size: 13px;
}
.explore-group > p {
    font-size: 14px;
    margin-block: 16px;
}
.explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.explore-links a {
    padding: 5px 9px;
    border: 1px solid #e6d5ad;
    font-size: 12px;
    border-radius: 5px;
}
.gallery-groups {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.gallery-groups a {
    padding: 9px 14px;
    border: 1px solid #ddc694;
    border-radius: 6px;
    font-size: 14px;
}
.gallery-groups a[aria-current='page'] {
    background: #641515;
    color: #fff;
}
.gallery-collection-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}
.gallery-collection-cards > a {
    border: 1px solid #dfc899;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.gallery-collection-cards img,
.gallery-collection-cards .placeholder {
    height: 240px;
    aspect-ratio: auto;
    width: 100%;
    object-fit: contain;
}
.gallery-collection-cards h2 {
    font-size: 22px;
    padding: 20px;
    margin: 0;
}
.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.news-grid .category-card {
    min-width: 0;
}
.news-grid .category-card > img,
.news-grid .category-card > .placeholder {
    width: 100%;
    height: 250px;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
}
.news-grid .category-card > div {
    position: static;
    padding: 22px;
}
.news-grid h2 {
    font-size: 22px;
    line-height: 1.5;
}
.news-grid p {
    font-size: 14px;
    line-height: 1.85;
}
.footer-grid {
    gap: 26px;
}
.footer-grid h2 {
    font-size: 23px;
}
.commitment-grid p {
    margin-bottom: 0;
}

@media (min-width: 901px) {
    .nav-item:hover > .menu-panel,
    .nav-item:focus-within > .menu-panel {
        display: block;
    }
    .nav-item:hover > .mega-panel,
    .nav-item:focus-within > .mega-panel {
        display: grid;
    }
}

@media (min-width: 1600px) {
    .header-navigation {
        padding-inline: max(4vw, calc((100vw - 1420px) / 2));
    }
}

@media (max-width: 1200px) {
    .header-navigation {
        gap: 12px;
        padding-inline: 3vw;
    }
    .nav-actions a {
        font-size: 11px;
        padding: 8px;
    }
    .site-header nav {
        gap: 8px;
    }
    .site-header nav .nav-item-title > a {
        font-size: 12px;
    }
    .catalog.catalog-v4 {
        grid-template-columns: 215px minmax(0, 1fr);
        gap: 22px;
    }
    .catalog-v4 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) and (min-width: 901px) {
    .header-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-actions {
        padding-top: 10px;
    }
    .site-header nav {
        gap: 16px;
    }
    .mega-panel {
        right: -120px;
    }
}

@media (max-width: 900px) {
    .header-main {
        padding: 13px 5vw;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-search {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }
    .menu-toggle {
        display: block;
        min-height: 42px;
        min-width: 42px;
        color: #f0d995;
        border-color: #bc9544;
    }
    .header-navigation {
        display: block;
        padding: 0 5vw 10px;
    }
    .nav-actions {
        justify-content: flex-start;
        padding: 8px 0 0;
        flex-wrap: wrap;
    }
    .nav-actions a {
        font-size: 12px;
        padding: 8px 12px;
    }
    .site-header nav {
        display: none;
        padding-top: 12px;
        gap: 0;
        max-height: 60vh;
        overflow: auto;
    }
    .site-header nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #ffffff18;
    }
    .nav-item-title {
        justify-content: space-between;
    }
    .site-header nav .nav-item-title > a {
        padding: 11px 0;
        font-size: 15px;
        width: auto;
        flex: 1;
    }
    .subnav-toggle {
        min-width: 44px;
        min-height: 44px;
        font-size: 22px;
    }
    .menu-panel,
    .mega-panel {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: none;
        box-shadow: none;
        border: 0;
        border-radius: 7px;
        background: #fffbf1;
        margin-bottom: 12px;
        padding: 10px;
        grid-template-columns: 1fr;
    }
    .site-header nav .menu-panel a {
        width: auto;
        padding: 10px;
        color: #38251b;
    }
    .nav-item:hover > .menu-panel {
        display: none;
    }
    .nav-item.submenu-open > .menu-panel {
        display: block;
    }
    .nav-item.submenu-open > .mega-panel {
        display: grid;
    }
    .catalog.catalog-v4 {
        display: block;
    }
    .catalog-sidebar {
        margin-bottom: 20px;
    }
    .catalog-tree > summary {
        padding: 12px 16px;
    }
    .catalog-tree > details {
        max-height: none;
    }
    .catalog-tree[open] {
        max-height: 430px;
        overflow: auto;
    }
    .catalog-v4 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brand-story {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .brand-story:nth-child(even) .story-image {
        order: 0;
    }
    .story-image .placeholder {
        height: 280px;
    }
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .process-grid > article,
    .process-grid > article:nth-child(4) {
        grid-column: auto;
    }
    .process-grid .placeholder {
        height: 200px;
    }
    .page-heading {
        padding: 18px 5vw;
    }
    .page-heading h1 {
        font-size: 27px;
    }
    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .detail-images > a img {
        height: 440px;
        max-height: 60vh;
    }
    .detail-copy h1 {
        font-size: 27px;
    }
    .explore-collections {
        grid-template-columns: 1fr;
    }
    .banner-photo img {
        height: clamp(210px, 45vw, 420px);
    }
    .banner-empty {
        height: 280px;
    }
    .photo-banner .slider-controls {
        left: 12px;
        bottom: 12px;
        font-size: 11px;
        padding: 4px 6px;
    }
    .banner-dots {
        right: 13px;
        bottom: 24px;
        gap: 6px;
    }
    .banner-dots button {
        height: 10px;
        width: 10px;
    }
    .news-grid .category-card > img,
    .news-grid .category-card > .placeholder {
        height: 210px;
    }
    .section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .process-section {
        padding-inline: 5vw;
    }
    .site-header {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .process-grid .placeholder {
        height: 220px;
    }
    .gallery-collection-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .gallery-collection-cards .placeholder,
    .gallery-collection-cards img {
        height: 200px;
    }
    .gallery-groups {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-grid .category-card > img,
    .news-grid .category-card > .placeholder {
        height: 230px;
    }
    .news-grid h2 {
        font-size: 21px;
    }
    .banner-empty > span {
        font-size: 22px;
    }
    .banner-empty small {
        font-size: 11px;
    }
    .photo-banner .slider-controls button {
        padding: 4px 8px;
        font-size: 11px;
    }
    .banner-dots {
        bottom: 60px;
    }
    .banner-photo img {
        height: auto;
        min-height: 210px;
        max-height: 340px;
        aspect-ratio: 16/9;
        object-fit: contain;
    }
    .banner-empty {
        height: 240px;
    }
    .brand-story {
        margin-bottom: 35px;
    }
    .story-image .placeholder {
        height: 250px;
    }
    .story-copy h2 {
        font-size: 25px;
    }
    .story-copy p {
        font-size: 15px;
        line-height: 1.9;
    }
    .center-heading h2 {
        font-size: 27px;
    }
    .center-heading p {
        font-size: 14px;
    }
    .explore-group {
        padding: 17px;
    }
    .explore-images img,
    .explore-images .placeholder {
        height: 150px;
    }
    .explore-group .section-heading {
        align-items: center;
        gap: 10px;
    }
    .explore-group h2 {
        font-size: 24px;
    }
    .product-card .card-body {
        padding: 12px;
    }
    .card-body h3 {
        font-size: 16px;
    }
    .card-body p {
        font-size: 13px;
    }
    .card-body .text-link {
        font-size: 12px;
    }
    .detail-images > a img {
        height: 360px;
    }
    .detail-copy .actions {
        gap: 10px;
    }
    .floating-contact {
        gap: 6px;
        padding: 7px 8px;
    }
    .floating-contact .button {
        padding: 6px;
        gap: 6px;
    }
    .floating-contact .contact-phone .contact-label small {
        font-size: 12px;
    }
    .floating-contact .contact-label {
        font-size: 12px;
    }
    .floating-contact .contact-icon {
        width: 31px;
        height: 31px;
    }
    .commitment-grid {
        grid-template-columns: 1fr 1fr;
    }
    .commitment-grid h3 {
        font-size: 16px;
    }
    .commitment-grid p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .brand {
        font-size: 17px;
        gap: 9px;
    }
    .seal {
        width: 33px;
        height: 39px;
        font-size: 26px;
    }
    .brand small {
        font-size: 8px;
        letter-spacing: 0.4px;
    }
    .header-search input {
        font-size: 13px;
    }
    .nav-actions a {
        font-size: 11px;
        padding: 7px 9px;
    }
    .topline {
        gap: 6px;
    }
    .topline span {
        font-size: 7px;
    }
    .topline a {
        font-size: 8px;
    }
    .catalog-search {
        gap: 6px;
        padding: 6px;
    }
    .catalog-search .button {
        min-width: 72px;
        padding: 8px;
        font-size: 12px;
    }
    .search-field input {
        font-size: 13px;
        padding-inline: 9px;
    }
    .floating-contact .button {
        font-size: 11px;
    }
    .floating-contact .contact-icon {
        width: 27px;
        height: 27px;
    }
    .floating-contact .contact-phone .contact-label small {
        font-size: 11px;
    }
    .floating-contact:has(.contact-messenger) .contact-icon {
        display: none;
    }
    .product-thumbnails button {
        flex-basis: 63px;
    }
    .product-thumbnails img {
        width: 52px;
        height: 52px;
    }
    .story-copy h2 {
        font-size: 23px;
    }
    .page-heading h1 {
        font-size: 25px;
    }
    .explore-images {
        gap: 8px;
    }
    .explore-images img,
    .explore-images .placeholder {
        height: 125px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-track {
        transition: none;
        will-change: auto;
    }
}

@media (max-width: 900px) {
    .site-header nav.open {
        display: block;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .nav-item {
        width: 100%;
        flex: none;
    }
    .nav-item-title {
        height: auto;
    }
    .menu-panel,
    .mega-panel {
        right: auto;
        left: auto;
        overflow: visible;
        max-width: 100%;
        width: 100%;
    }
    .menu-category-group {
        min-width: 0;
    }
    .menu-panel li a {
        overflow-wrap: anywhere;
    }
}

.site-header nav .nav-item-title > a:hover,
.site-header nav .nav-item-title > a:focus {
    background: #f0d995;
    color: #111;
    border-radius: 3px;
}
.site-header nav .menu-panel a:hover,
.site-header nav .menu-panel .menu-group-title:hover {
    color: #000;
    background: #f5e5be;
}

/* Điều hướng gọn khi cuộn và điều khiển ảnh. */

.site-header {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
    will-change: transform;
}

.site-header.header-is-hidden {
    transform: translateY(-110%);
    pointer-events: none;
    visibility: hidden;
}

.chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.submenu-open > .nav-item-title .chevron {
    transform: translateY(2px) rotate(225deg);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #fff9;
    border-radius: 50%;
    background: #32160e99;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.banner-arrow:hover,
.banner-arrow:focus-visible {
    background: #641515;
}

.banner-arrow.prev {
    left: 16px;
}
.banner-arrow.next {
    right: 16px;
}

.banner-dots {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 2;
    align-items: center;
}

.banner-dots button {
    width: 13px;
    height: 13px;
    min-width: 13px;
    min-height: 13px;
}

.banner-pause:focus {
    position: absolute !important;
    left: 12px;
    bottom: 12px;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    background: white;
    color: #641515;
    z-index: 5;
    padding: 8px;
}

.page-heading {
    padding: 20px 5vw;
}
.page-heading h1 {
    font-size: clamp(27px, 3vw, 36px);
    margin-bottom: 6px;
}
.page-heading p {
    line-height: 1.55;
}

.home-welcome {
    text-align: center;
    max-width: 900px;
    padding-block: 48px;
}
.home-welcome h2 {
    color: var(--red);
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 14px;
}
.home-welcome p {
    font-size: 16px;
    line-height: 1.8;
}

.category-intro {
    padding-block: 30px;
}
.category-intro .product-detail {
    margin: 0;
}
.product-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 55px);
}
.detail-images,
.detail-copy {
    min-width: 0;
}
.detail-images > a img {
    object-fit: contain;
    background: #fff9ed;
}
.detail-copy .product-description {
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.consult-note {
    font-size: 13px;
    color: var(--muted);
}

.collection-rail-wrap {
    position: relative;
}
.collection-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 3px 2px 12px;
}
.collection-rail > .product-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}
.rail-arrow {
    position: absolute;
    z-index: 2;
    top: 37%;
    width: 40px;
    height: 40px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    background: #fffdf8;
    color: #641515;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 2px 8px #0002;
}
.rail-prev {
    left: -15px;
}
.rail-next {
    right: -15px;
}
.rail-arrow:hover {
    background: #641515;
    color: #fff;
}

.contact-facebook {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: white !important;
}
.contact-facebook .contact-icon {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: #1877f2;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .collection-rail > .product-card {
        flex-basis: calc((100% - 40px) / 3);
    }
    .page-heading {
        padding: 15px 5vw;
    }
    .banner-dots {
        bottom: 10px;
        left: 50%;
        right: auto;
    }
    .banner-arrow.prev {
        left: 9px;
    }
    .banner-arrow.next {
        right: 9px;
    }
}

@media (max-width: 600px) {
    .home-welcome {
        padding-block: 34px;
    }
    .home-welcome p {
        font-size: 15px;
    }
    .collection-rail {
        gap: 12px;
    }
    .collection-rail > .product-card {
        flex-basis: calc((100% - 12px) / 2);
    }
    .rail-arrow {
        width: 34px;
        height: 34px;
    }
    .rail-prev {
        left: -8px;
    }
    .rail-next {
        right: -8px;
    }
    .banner-arrow {
        width: 38px;
        height: 38px;
    }
    .banner-dots {
        bottom: 8px;
    }
    .floating-contact {
        display: flex;
        flex-wrap: nowrap;
    }
    .floating-contact .button {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    .floating-contact .contact-label {
        font-size: 11px;
    }
    .floating-contact .contact-label small {
        display: none;
    }
    .floating-contact .contact-phone .contact-label small {
        display: block;
        font-size: 10px;
    }
    .floating-contact:has(.contact-facebook):has(.contact-messenger) .contact-icon {
        display: none;
    }
    .floating-contact:has(.contact-facebook):has(.contact-messenger) .contact-label small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .chevron {
        transition: none;
    }
    .collection-rail {
        scroll-behavior: auto;
    }
}

.banner-arrow-prev {
    left: 16px;
}
.banner-arrow-next {
    right: 16px;
}
@media (max-width: 900px) {
    .banner-arrow-prev {
        left: 9px;
    }
    .banner-arrow-next {
        right: 9px;
    }
}

.home-welcome {
    margin-inline: auto;
    padding-inline: 5vw;
}

/* Bản 6: thu khoảng trống của dải tiêu đề nhưng giữ cỡ chữ dễ đọc. */

.page-heading {
    padding: 10px 5vw 12px;
}

.page-heading .breadcrumbs {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.35;
    gap: 8px;
}

.page-heading .eyebrow {
    display: none;
}

.page-heading h1 {
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.18;
    margin: 0 0 4px;
}

.page-heading p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    max-width: 900px;
}

@media (max-width: 600px) {
    .page-heading {
        padding: 9px 5vw 10px;
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .page-heading p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.4;
    }
}

/* Chữ trên điện thoại: ưu tiên dễ đọc và nút dễ chạm. */

@media (max-width: 900px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .site-header nav .nav-item-title > a,
    .site-header nav .menu-panel a,
    .site-header nav .menu-panel li a {
        font-size: 16px;
        line-height: 1.5;
    }

    .subnav-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .header-search input,
    .catalog-search input,
    .search-field input {
        font-size: 16px;
    }

    .nav-actions a {
        font-size: 14px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
    }

    .catalog-tree > summary,
    .catalog-tree details > summary,
    .catalog-tree .all-products,
    .catalog-tree li a {
        font-size: 16px;
        line-height: 1.5;
    }

    .catalog-tree li a {
        padding-block: 8px;
    }

    .breadcrumbs {
        font-size: 14px;
    }

    .product-card .card-body h3 {
        font-size: 17px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .product-card .card-body p,
    .product-card .card-body .text-link {
        font-size: 15px;
        line-height: 1.5;
    }

    .story-copy p,
    .home-welcome p,
    .center-heading p,
    .commitment-grid p,
    .news-grid p,
    .detail-copy p,
    .product-description,
    .empty p {
        font-size: 16px;
        line-height: 1.65;
    }

    .detail-copy dl,
    .detail-copy .badge,
    .detail-copy .consult-note {
        font-size: 15px;
        line-height: 1.55;
    }

    .text-link,
    .gallery-groups a,
    .explore-links a {
        font-size: 15px;
        line-height: 1.45;
    }

    .pagination a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .floating-contact .button {
        min-height: 44px;
    }

    .floating-contact .contact-label {
        font-size: 13px;
        line-height: 1.2;
    }

    .floating-contact .contact-phone .contact-label small {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .brand {
        font-size: 18px;
    }
    .nav-actions a {
        font-size: 14px;
        padding: 8px;
    }

    .floating-contact .contact-icon {
        display: none;
    }

    .floating-contact .contact-label {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .floating-contact .contact-label small {
        display: none !important;
    }
}

/* Chữ rõ hơn cho khách trung tuổi và cao tuổi trên mọi màn hình. */

body {
    font-size: 17px;
    line-height: 1.7;
}

.site-header nav .nav-item-title > a,
.site-header nav .menu-panel a,
.site-header nav .menu-panel li a {
    font-size: 16px;
    line-height: 1.5;
}

.nav-actions a {
    font-size: 15px;
    line-height: 1.35;
}

.catalog-tree > summary,
.catalog-tree details > summary,
.catalog-tree .all-products,
.catalog-tree li a {
    font-size: 16px;
    line-height: 1.55;
}

.product-card .card-body h3 {
    font-size: 19px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-card .card-body p,
.product-card .card-body .text-link,
.text-link {
    font-size: 16px;
    line-height: 1.5;
}

.story-copy p,
.home-welcome p,
.center-heading p,
.commitment-grid p,
.news-grid p,
.detail-copy p,
.product-description,
.empty p,
.prose p {
    font-size: 17px;
    line-height: 1.7;
}

.page-heading p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.45;
}

.header-search input,
.catalog-search input,
.search-field input {
    font-size: 16px;
}

.button,
.gallery-groups a,
.explore-links a,
.breadcrumbs {
    font-size: 15px;
    line-height: 1.45;
}

footer p,
footer a,
.footer-grid p,
.footer-grid a {
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 901px) and (max-width: 1400px) {
    .header-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    body {
        font-size: 17px;
    }

    .site-header nav .nav-item-title > a,
    .site-header nav .menu-panel a,
    .site-header nav .menu-panel li a {
        font-size: 17px;
    }

    .nav-actions a {
        font-size: 15px;
    }

    .catalog-tree > summary,
    .catalog-tree details > summary,
    .catalog-tree .all-products,
    .catalog-tree li a {
        font-size: 17px;
    }

    .product-card .card-body h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .product-card .card-body p,
    .product-card .card-body .text-link {
        font-size: 16px;
    }

    .floating-contact .contact-label {
        font-size: 14px;
    }

    .floating-contact .contact-phone .contact-label small {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .floating-contact .contact-label {
        font-size: 13px;
    }
    .nav-actions a {
        font-size: 14px;
    }
}

.story-zoom {
    display: block;
    cursor: zoom-in;
}
.story-zoom:focus-visible {
    outline: 3px solid #9e1b1b;
    outline-offset: 4px;
    border-radius: 6px;
}

.content-image-zoom {
    display: block;
    cursor: zoom-in;
}
.content-image-zoom:focus-visible {
    outline: 3px solid #9e1b1b;
    outline-offset: 4px;
}

/* Trình cắt ảnh chỉ dùng trong quản trị. */

/* Image editing dialog */
.crop-dialog {
    width: min(860px, 96vw);
    max-height: 95dvh;
    padding: 0;
    border: 1px solid #d4af37;
    border-radius: 12px;
    background: #fffdf8;
    color: #38251b;
    overflow: auto;
}
.crop-dialog::backdrop {
    background: #000b;
}
.crop-shell {
    padding: 22px;
}
.crop-shell h2 {
    font-size: 25px;
    margin-bottom: 8px;
}
.crop-shell p {
    margin-bottom: 12px;
    font-size: 15px;
}
.crop-dialog canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #201b17;
    touch-action: none;
    cursor: move;
    border-radius: 6px;
}
.crop-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.crop-options input[type='range'] {
    padding: 8px 0;
    accent-color: #9e1b1b;
}
.crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.crop-actions .button {
    min-height: 44px;
    font-size: 15px;
}
.crop-preview-list {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}
.crop-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e4dacb;
    border-radius: 6px;
}
.crop-preview img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #f8f2e5;
}
.crop-preview span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}
.crop-status {
    min-height: 24px;
    color: #641515;
}
.crop-file-name {
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .crop-shell {
        padding: 14px;
    }
    .crop-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .crop-preview {
        flex-wrap: wrap;
    }
    .crop-preview .button {
        margin-left: auto;
    }
    .crop-actions .button {
        flex: 1 1 45%;
    }
}

.crop-dialog button {
    position: static;
    width: auto;
    height: auto;
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 14px;
}
.crop-dialog p {
    text-align: left;
    margin: 0 0 12px;
}
.crop-dialog canvas {
    width: min(100%, 72dvh);
    height: auto;
    margin-inline: auto;
}
.crop-dialog button.button {
    background: var(--red);
    color: #fff;
}
.crop-dialog button.button.outline {
    background: transparent;
    color: var(--red);
}

/* Ảnh lớn tự theo tỷ lệ gốc; không ép vào khung 4:3 hoặc chiều cao cố định. */

.brand-story .story-image {
    padding: 0;
    background: transparent;
    align-self: start;
}

.brand-story .story-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    object-fit: contain;
}

.product-detail {
    align-items: start;
}

.product-detail .detail-images > a img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    object-fit: contain;
}

.content-image-zoom img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
}

/* Danh mục vào thẳng mẫu sản phẩm, ô ảnh rõ và chữ dễ đọc. */

.catalog-v4 .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.catalog-v4 .product-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e6e1da;
    background: #efefed;
    box-shadow: none;
    min-width: 0;
}

.catalog-v4 .card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.catalog-v4 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.catalog-v4 .card-body {
    padding: 16px 12px 18px;
    text-align: center;
}

.catalog-v4 .card-body h3,
.catalog-v4 .card-body h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0 0 12px;
}

.catalog-v4 .card-body .text-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 24px;
    background: #752b27;
    color: #fff;
    padding: 8px 18px;
    font-size: 16px;
    min-height: 42px;
}

.catalog-v4 .card-body .text-link:hover {
    background: #4c201e;
}

.catalog-v4 .result-count {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 22px;
}

.home-category-photo {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.home-category-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
}

.home-category-photo:focus-visible {
    outline: 3px solid #9e1b1b;
}

@media (max-width: 1100px) {
    .catalog-v4 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .catalog-v4 .product-grid {
        gap: 12px;
    }
    .catalog-v4 .card-body {
        padding: 12px 8px;
    }
    .catalog-v4 .card-body h2,
    .catalog-v4 .card-body h3 {
        font-size: 18px;
    }
    .catalog-v4 .card-body .text-link {
        font-size: 16px;
        padding: 8px 12px;
    }
    .home-category-photos {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .catalog-v4 .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .catalog-v4 .card-body h2,
    .catalog-v4 .card-body h3 {
        font-size: 19px;
    }
}

/* Mục danh mục hiện tại: hiển thị thường trực, không chỉ khi rê chuột. */

.catalog-sidebar .catalog-tree a[aria-current='page'] {
    display: block;
    background: #fff0c9;
    color: #641515;
    font-weight: 700;
    border-left: 4px solid #b88120;
    padding-left: 10px;
    border-radius: 0 4px 4px 0;
}

.catalog-sidebar .catalog-tree a[aria-current='page']:hover {
    background: #f9e4b0;
    color: #38251b;
}

.catalog-sidebar .catalog-tree a:focus-visible {
    outline: 2px solid #9e1b1b;
    outline-offset: 2px;
}

.crop-dialog .crop-free[hidden] {
    display: none;
}
.crop-dialog .crop-options {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.crop-dialog input[type='color'] {
    min-height: 44px;
    padding: 4px;
}
.crop-dialog input[type='checkbox'] {
    width: 20px;
    height: 20px;
    display: inline-block;
}
.crop-dialog canvas {
    touch-action: none;
}
.crop-dialog fieldset {
    margin: 12px 0;
}
.saved-image-edit {
    margin: 8px 0;
    position: static;
}
.crop-dialog textarea {
    font-size: 17px;
}

/* Bài mô tả dài ở giữa trang, phía dưới khối ảnh và thông tin ngắn. */

.product-description-full {
    width: 100%;
    max-width: 1040px;
    margin: 44px auto 36px;
    padding: 28px 24px 10px;
    border-top: 3px solid #bd902b;
    color: #30251d;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.product-description-full .description-section-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    color: #79571a;
    margin: 0 0 24px;
}

.product-description-full .description-content {
    font-size: 18px;
    line-height: 1.85;
}

.product-description-full .description-content p {
    font-size: inherit;
    line-height: inherit;
    margin: 0 0 22px;
    text-align: left;
}

.product-description-full .description-content h2,
.product-description-full .description-content h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.45;
    color: #79571a;
    margin: 30px 0 14px;
}

.product-description-full .description-content h2:first-child {
    margin-top: 0;
}

.product-description-full .description-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    object-fit: contain;
}

.product-description-full .description-content ul,
.product-description-full .description-content ol {
    padding-left: 26px;
    margin: 0 0 22px;
}
.product-description-full .description-content li {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .product-description-full {
        margin: 28px auto;
        padding: 20px 0 0;
    }
    .product-description-full .description-section-title {
        font-size: 23px;
        margin-bottom: 20px;
    }
    .product-description-full .description-content {
        font-size: 18px;
        line-height: 1.8;
    }
    .product-description-full .description-content h2,
    .product-description-full .description-content h3 {
        font-size: 21px;
        margin-top: 26px;
    }
}

/* 17/11/2026: readable public text and wider catalog pages with one to three entries. */

body:not(.admin-body) {
    font-size: 18px;
}

body:not(.admin-body) small {
    font-size: 15px;
}

.topline {
    font-size: 14px;
    letter-spacing: 0.4px;
}
.brand small {
    font-size: 13px;
    letter-spacing: 1.3px;
}

body:not(.admin-body) .eyebrow {
    font-size: 15px;
}
body:not(.admin-body) .badge,
.price,
.result-count,
.consult-note,
.policy-links,
.breadcrumbs {
    font-size: 16px;
}

.site-header nav,
.menu-category-group,
.catalog-sidebar,
.catalog-tree {
    font-size: 16px;
}

.header-search input,
.catalog-search input,
.catalog-search button,
body:not(.admin-body) .button,
body:not(.admin-body) .text-link {
    font-size: 17px;
}

.product-card .card-body p,
.product-card .text-link,
.category-card small {
    font-size: 16px;
}

.floating-contact .contact-label {
    font-size: 15px;
}
.floating-contact .contact-label small {
    font-size: 13px;
}

.home-welcome p {
    font-size: clamp(19px, 1.25vw, 22px);
    max-width: 1060px;
    line-height: 1.8;
}

.home-welcome .eyebrow {
    font-size: clamp(16px, 1vw, 18px);
}

.home-welcome h2 {
    font-size: clamp(30px, 2.8vw, 44px);
    line-height: 1.25;
}

.catalog-few .product-grid {
    grid-template-columns: repeat(var(--few-columns), minmax(0, 1fr));
}

.catalog-few-1 {
    --few-columns: 1;
}
.catalog-few-2 {
    --few-columns: 2;
}
.catalog-few-3 {
    --few-columns: 3;
}

.catalog-few .card-image {
    height: clamp(300px, 30vw, 420px);
    aspect-ratio: auto;
}

.catalog-few .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-few .card-body {
    padding: 24px;
}
.catalog-few .card-body h2,
.catalog-few .card-body h3 {
    font-size: 25px;
}

.process-grid img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 900px) {
    .catalog-few-3 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-welcome p {
        max-width: 92%;
    }
}

@media (max-width: 600px) {
    body:not(.admin-body) {
        font-size: 17px;
    }
    .catalog-few .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .catalog-few .card-image {
        height: 340px;
    }
    .topline {
        font-size: 12px;
    }
    .brand small {
        font-size: 12px;
    }
    .home-welcome p {
        font-size: 19px;
        line-height: 1.75;
    }
    .floating-contact .contact-label {
        font-size: 13px;
    }
    .floating-contact .contact-label small {
        font-size: 12px;
    }
}

/* Ưu đãi 10% đã được xác nhận; không thay đổi kích thước khung sản phẩm. */
.product-card .card-image,
.product-detail .detail-images > a[data-lightbox] {
    position: relative;
}
.product-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 9px 12px;
    border-radius: 6px;
    background: #9e2027;
    color: #fff;
    font:
        700 14px/1.25 Arial,
        Helvetica,
        sans-serif;
    box-shadow: 0 2px 7px #0002;
    pointer-events: none;
}
.product-sale-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
}
.product-sale-original {
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
}
.product-sale-current {
    color: #9e2027;
    font-weight: 700;
}
.product-card .product-sale-current {
    font-size: 20px;
}
.product-sale-price .product-sale-note {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}
.product-sale-detail-offer {
    display: inline-block;
    margin: 14px 0 8px;
    padding: 8px 11px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: #fff0d6;
    color: #8d2527;
    font-size: 16px;
    font-weight: 700;
}
.detail-copy .product-sale-price {
    margin-top: 8px;
}
.detail-copy .product-sale-current {
    font-size: 26px;
}
@media (max-width: 600px) {
    .product-sale-badge {
        top: 8px;
        left: 8px;
        padding: 7px 9px;
        font-size: 13px;
    }
    .product-card .product-sale-current {
        font-size: 18px;
    }
}

/* Phones and portrait tablets follow the selected banner's natural proportions. */
.banner-photo picture {
    display: block;
    width: 100%;
}
@media (max-width: 1023px) {
    .banner-photo img,
    .banner-photo .has-mobile-banner img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
    }
}

/* Full-width photos stay readable on phones without cropping product details. */
@media (max-width: 600px) {
    .product-grid,
    .catalog .product-grid,
    .catalog-simple .product-grid,
    .catalog-v4 .product-grid,
    .catalog-few .product-grid,
    .category-grid,
    .home-category-photos,
    .explore-images {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-card .card-image {
        height: auto;
        aspect-ratio: 1;
    }
    .product-card .card-image img {
        padding: 0;
        object-fit: contain;
    }
    .collection-rail > .product-card {
        flex-basis: 90%;
    }
    .home-category-photo img,
    .category-card > img,
    .category-card > a > img,
    .news-grid .category-card > img,
    .gallery-collection-cards img,
    .explore-images img,
    .process-grid img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: auto;
        object-fit: contain;
    }
    .masonry-gallery {
        columns: 1;
    }
}
