/* ===== Tokens: đổi màu thương hiệu tại đây ===== */
:root {
  --color-bg: #ECE8E2;           /* nền giấy, xem --paper */
  --color-surface: #FFFDF9;
  --color-ink: #33261D;
  --color-muted: #6E5E52;
  --color-line: #E3D8C8;
  --color-accent: #9C4A2A;       /* [TẠM] thay bằng màu chính của thương hiệu */
  --color-accent-dark: #7A3920;
  --color-accent-ink: #FFFFFF;
  --color-footer-text: #EDE4D6;
  --color-footer-muted: #CDBFAA;
  --color-error: #B3261E;
  --font-heading: "Lora", Georgia, serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-serif: "Noto Serif", "Times New Roman", serif;
  --color-header: #5F402C;       /* nền thanh menu nâu */
  --color-header-ink: #F3E9DC;
  --color-header-icon: #C9AB84;
  --color-logo-pattern: #2E4A8C;  /* viền hoa văn quanh logo */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0125' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .36 0 0 0 .22 -.06'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .22 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --container: 1200px;
  --gutter: 16px;
  --radius: 6px;
  --space-section: clamp(56px, 8vw, 112px);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg) var(--paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-dark); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; color: var(--color-ink); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--space-section); }
.section--bottom { padding-bottom: var(--space-section); }
.section--surface { background: var(--color-surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .5em; }
.page-hero { padding-block: 40px 32px; }
.page-hero p { max-width: 60ch; color: var(--color-muted); font-size: 1.1rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose-wrap { padding-block: 32px var(--space-section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--color-ink); color: #fff; padding: 8px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--radius); border: 1px solid transparent; font: 500 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-accent-ink); }
.btn-outline { border-color: currentColor; color: var(--color-ink); background: transparent; }
.btn-outline:hover { background: var(--color-ink); color: var(--color-bg); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ===== Header ===== */
.site-header { position: relative; z-index: 50; padding-bottom: 12px; }
.header-top-inner { display: flex; align-items: center; justify-content: flex-end; gap: 0 14px; min-height: 40px; font: .82rem/1.3 var(--font-serif); }
.header-search { display: flex; align-items: center; min-width: 0; }
.header-search input { width: 150px; min-width: 0; height: 32px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: var(--color-ink); font: inherit; }
.header-search input::placeholder { color: #A08A75; }
.header-search input:focus-visible { outline: none; box-shadow: inset 0 -1px 0 var(--color-muted); }
.header-search button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; }
.header-hotline { display: none; padding-left: 14px; border-left: 2px solid var(--color-ink); line-height: 20px; color: var(--color-ink); text-decoration: none; }
.header-flags { display: flex; align-items: center; }
.header-flag { display: inline-flex; padding: 4px 5px; }
.header-flag + .header-flag { border-left: 1px solid var(--color-ink); }
.header-flag svg { display: block; }
@media (min-width: 640px) {
  .header-search input { width: 190px; }
  .header-hotline { display: inline; }
}

/* Thanh nâu hai bên logo: phần giữa co giãn, hai đầu là SVG có góc khuyết. */
.header-main { --logo-size: 84px; --bar-gap: 14px; --bar-h: 64px; position: relative; margin-top: 8px; }
.header-bar { position: absolute; top: 0; display: flex; height: var(--bar-h); color: var(--color-header); }
.header-bar-fill { flex: 1; background:
  linear-gradient(currentColor, currentColor) top / 100% 2.23% no-repeat,
  linear-gradient(currentColor, currentColor) bottom / 100% 2.23% no-repeat,
  linear-gradient(currentColor, currentColor) center / 100% 84.45% no-repeat; }
.header-bar-cap { flex: none; width: 28px; height: 100%; }
.header-bar--left { left: 0; display: none; justify-content: flex-end; overflow: hidden; width: max(0px, calc((100% - min(100%, var(--container))) / 2 + var(--gutter) - 35px)); }
.header-bar--right { right: 0; left: calc((100% - min(100%, var(--container))) / 2 + var(--gutter) + var(--logo-size) + var(--bar-gap)); }
.header-bar--right .header-bar-cap { transform: scaleX(-1); }
.header-main-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: var(--bar-h); }

.logo { flex: none; align-self: flex-start; width: var(--logo-size); height: var(--logo-size); margin: -10px auto 0 0; padding: 5px; background: #F4EFE3; box-shadow: 0 2px 8px rgba(40, 24, 14, .3); }
.logo-frame { display: block; height: 100%; padding: 5px; border: 1px solid var(--color-logo-pattern); background: radial-gradient(circle, var(--color-logo-pattern) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #F4EFE3; outline: 1px solid var(--color-logo-pattern); }

.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--color-header-ink); font: 600 1.1rem var(--font-display); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 30px; }
.site-nav a { display: block; padding: 10px 0; color: var(--color-header-ink); text-decoration: none; font: 600 1.3rem/1.2 var(--font-display); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-header-icon); }

.header-quote { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--color-header-ink); text-decoration: none; }
.header-quote svg { flex: none; color: var(--color-header-icon); }
.header-quote:hover { color: #fff; }
.header-quote-text { display: none; flex-direction: column; font: 600 .72rem/1.35 var(--font-serif); }
.header-quote-title { font-size: .84rem; text-transform: uppercase; }
@media (min-width: 480px) { .header-quote-text { display: flex; } }

@media (max-width: 1023px) {
  /* Có JS: menu ẩn sau nút Menu và mở đè xuống dưới thanh nâu. */
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; padding: 4px var(--gutter) 12px; background: var(--color-header); box-shadow: 0 10px 20px rgba(40, 24, 14, .25); }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .site-nav li:first-child a { border-top: 0; }
  /* Không có JS: chừa chỗ để menu luôn mở không đè lên nội dung. */
  .no-js .site-header { padding-bottom: 330px; }
}
@media (min-width: 1024px) {
  .header-main { --logo-size: 134px; --bar-gap: 40px; --bar-h: 90px; margin-top: 4px; }
  .header-bar--left { display: flex; }
  .logo { margin: -18px 0 0; padding: 6px; }
  .logo-frame { padding: 7px; }
  .nav-toggle { display: none !important; }
  .site-nav { margin-left: auto; }
  .header-quote { margin-left: 48px; }
}

/* ===== Breadcrumb ===== */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .85rem; color: var(--color-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--color-muted); }

/* ===== Footer ===== */
.site-footer { background: var(--color-ink); color: var(--color-footer-text); padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-footer-muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4em; }
address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-block: 20px 88px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: var(--color-footer-muted); }
.footer-bottom p { margin: 0; }

/* ===== Floating contact ===== */
.floating-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font: 700 .8rem/1 var(--font-body); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .2s; }
.fc svg { width: 26px; height: 26px; fill: currentColor; }
.fc:hover { color: #fff; transform: translateY(-2px); }
.fc-zalo { background: #0068FF; }
.fc-messenger { background: #0866FF; }
.fc-phone { background: var(--color-accent); }

/* ===== Reveal on scroll (chỉ khi có JS và không bật giảm chuyển động) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
/* ===== Cards ===== */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 1023px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--color-line); }
.card-media--wide { aspect-ratio: 4 / 3; }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 12px 0 4px; color: var(--color-ink); }
.card:hover .card-title { color: var(--color-accent); }
.card-meta { font-size: .875rem; color: var(--color-muted); margin: 0; }

/* ===== Product detail ===== */
.page-hero--compact { padding-block: 24px 8px; }
.product-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery-main { display: block; overflow: hidden; border-radius: var(--radius); background: var(--color-line); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.price-note { font-size: 1.2rem; font-weight: 600; color: var(--color-accent); }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.spec-table th { width: 42%; padding-right: 16px; font-weight: 500; color: var(--color-muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(20, 14, 10, .92); }
.lightbox-figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox-figure img { max-width: min(92vw, 1400px); max-height: 86dvh; width: auto; height: auto; object-fit: contain; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
/* ===== Articles, projects ===== */
.article-cover { overflow: hidden; border-radius: var(--radius); background: var(--color-line); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 16px 0 0; }
.meta-list dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.meta-list dd { margin: 0; font-weight: 500; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ===== Process steps ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--color-accent); }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-accent); }
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--color-muted); font-size: .95rem; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--color-line); padding: 16px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--color-accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--color-muted); }

/* ===== CTA band ===== */
.cta-band { background: var(--color-accent); color: var(--color-accent-ink); padding-block: clamp(48px, 7vw, 88px); text-align: center; }
.cta-band h2 { color: inherit; max-width: 24ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin-inline: auto; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.btn-light { background: #fff; color: var(--color-accent-dark); }
.btn-light:hover { background: var(--color-bg); color: var(--color-accent-dark); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--color-accent-dark); }
/* ===== Hero slider ===== */
.hero { display: grid; padding-block: clamp(28px, 4vw, 64px) clamp(8px, 1.5vw, 20px); }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
/* Khung ảnh: hai cặp đường kẻ lệch nhau, hở ở bốn góc. */
.hero-media { position: relative; margin: 10px; aspect-ratio: 740 / 535; box-shadow: 0 4px 12px rgba(40, 24, 14, .35); }
.hero-media::before, .hero-media::after { content: ""; position: absolute; pointer-events: none; }
.hero-media::before { inset: -10px 22px; border-block: 3px solid #A1968C; }
.hero-media::after { inset: 22px -10px; border-inline: 3px solid #A1968C; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-title { max-width: 8.2em; margin: 0 0 .65em; color: #5B3F2D; font: 500 clamp(2.1rem, 1.6vw + 1.6rem, 3.5rem)/1.38 var(--font-display); }
.hero-title::after { content: ""; display: block; width: 4em; height: 3px; margin-top: .15em; background: #9A8E84; }
.hero-text { max-width: 24em; margin: 0; color: #4B3A2E; font: .92rem/1.5 var(--font-serif); }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 64%) minmax(0, 1fr); gap: 0; align-items: center; }
  .hero-media { margin: 10px 0 10px 12px; }
  /* Tiêu đề đè lên mép phải của ảnh như bản thiết kế. */
  .hero-copy { position: relative; z-index: 1; margin-left: -100px; padding-bottom: 4%; }
  .hero-title { mix-blend-mode: multiply; }
  .hero-text { margin-left: 30%; }
}
.hero-controls { grid-area: 2 / 1; justify-self: center; display: flex; gap: 32px; margin-top: 12px; }
.hero-controls button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-muted); font: 2rem/1 var(--font-display); cursor: pointer; }
.hero-controls button:hover { color: var(--color-ink); }

/* ===== Ornate buttons ===== */
/* Nút có góc khuyết và viền kép (góc khuyết cần trình duyệt hỗ trợ corner-shape, nếu không sẽ là góc bo). */
.btn-frame { --bf-bg: #6B4529; --bf-ink: #FFFFFF; --bf-gap: #E9DFCF; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 28px; border: 0; border-radius: 9px; corner-shape: scoop; background: var(--bf-bg); color: var(--bf-ink); box-shadow: 0 0 0 2px var(--bf-gap), 0 0 0 3.5px var(--bf-bg); font: 500 1.05rem/1.2 var(--font-display); text-decoration: none; cursor: pointer; transition: filter .2s; }
.btn-frame:hover { color: var(--bf-ink); filter: brightness(1.18); }
.btn-frame--navy { --bf-bg: #13213A; }
.btn-frame--light { --bf-bg: #EFE9DF; --bf-ink: #6B4529; --bf-gap: transparent; }
.btn-frame--light:hover { filter: brightness(.95); }
.btn-frame--sm { min-height: 36px; padding: 6px 20px; font-size: .95rem; }
.input-frame { height: 46px; padding: 0 18px; border: 0; border-radius: 9px; corner-shape: scoop; background: #D8D1C5; color: var(--color-ink); box-shadow: 0 0 0 2px #EEE9E1, 0 0 0 3.5px #BDB2A2; font: 1.05rem var(--font-display); }
.input-frame::placeholder { color: #8C7F70; }

/* ===== Home sections ===== */
:root {
  --color-navy: #101E32;
  --navy-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M6 6h60v60H18V18h36v36H30V30h12' fill='none' stroke='%231C2D47' stroke-width='5'/%3E%3C/svg%3E");
  --seal-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23A08C74' stroke-opacity='.07' stroke-width='2'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='14'/%3E%3Cpath d='M22 24h16M22 36h16M26 24v12M34 24v12'/%3E%3Ccircle cx='90' cy='90' r='20'/%3E%3Ccircle cx='90' cy='90' r='14'/%3E%3Cpath d='M82 84h16M82 96h16M86 84v12M94 84v12'/%3E%3C/g%3E%3C/svg%3E");
}
.home-heading { margin-bottom: 48px; text-align: center; }
.home-heading h2 { margin: 0; color: #7A5534; font: 500 clamp(2rem, 1.5vw + 1.4rem, 2.75rem)/1.2 var(--font-display); }
.home-heading p { max-width: 62ch; margin: 18px auto 0; color: #4B3A2E; font: .95rem/1.6 var(--font-serif); }
.home-heading--light h2 { color: #FFFFFF; }

/* Chào bạn: nền xanh than hoạ tiết hồi văn */
.home-welcome { background: var(--color-navy) var(--navy-pattern); color: #FFFFFF; padding: clamp(56px, 7vw, 110px) 0 clamp(72px, 8vw, 120px); }
.home-welcome-inner { display: grid; gap: 32px; }
.home-welcome-head h2 { margin: 0 0 40px; color: inherit; font: 500 clamp(2.2rem, 1.6vw + 1.6rem, 3rem)/1.3 var(--font-display); }
.home-welcome-text p { margin: 0 0 1.5em; font: .92rem/2 var(--font-serif); opacity: .95; }
.home-welcome-text p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .home-welcome-inner { grid-template-columns: 1fr 2fr; gap: 0; }
  .home-welcome-head { padding-right: 32px; border-right: 1.5px solid rgba(255, 255, 255, .6); }
  .home-welcome-text { padding-left: 55px; }
}

/* Danh mục: dải nâu + ô "Tìm gốm bạn cần" */
.home-cats { position: relative; display: grid; margin-top: -20px; }
.home-cats-list { list-style: none; margin: 0; padding: 32px var(--gutter) 12px; display: grid; gap: 0 30px; grid-template-columns: minmax(0, 1fr); background: var(--color-header); }
@media (min-width: 640px) { .home-cats-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: block; color: #FFFFFF; text-align: center; text-decoration: none; }
.tile:hover { color: #FFFFFF; }
.tile-media { position: relative; display: block; aspect-ratio: 385 / 317; overflow: hidden; border-radius: 22px; }
.tile-media picture, .tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media img { transition: transform .5s ease; }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile-more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(40, 24, 14, .5); font: 500 1.1rem var(--font-display); opacity: 0; transition: opacity .3s; }
.tile:hover .tile-more, .tile:focus-visible .tile-more { opacity: 1; }
.tile-label { display: block; padding: 22px 0 18px; font: 500 clamp(1.25rem, .6vw + 1rem, 1.45rem)/1.2 var(--font-display); }
.home-cats-cta { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px var(--gutter); background: #E4DFD6; box-shadow: 0 6px 14px rgba(40, 24, 14, .18); text-align: center; }
.home-cats-cta h2 { max-width: 7em; margin: 0 0 36px; color: #7A5534; font: 500 clamp(2rem, 1.4vw + 1.5rem, 2.6rem)/1.35 var(--font-display); }
@media (min-width: 1024px) {
  .home-cats { grid-template-columns: 2fr 1fr; }
  .home-cats-list { padding: 40px 30px 20px; }
  .home-cats-cta { margin-block: 20px; align-items: flex-end; padding: 40px 18% 40px 40px; text-align: right; }
  .home-cats-cta::before { content: ""; position: absolute; top: 50%; left: -14px; border: 14px solid transparent; border-left: 0; border-right-color: #E4DFD6; transform: translateY(-50%); }
}

/* Sản phẩm */
.home-products { padding: clamp(64px, 7vw, 110px) 0 40px; background-image: var(--seal-pattern); }
.pcard-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard-grid > li { display: flex; }
.pcard { display: flex; flex-direction: column; width: 100%; background: #EFEBE5; box-shadow: 0 2px 6px rgba(60, 40, 20, .2); }
.pcard-media { display: block; aspect-ratio: 360 / 250; overflow: hidden; }
.pcard-media picture, .pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-media img { transition: transform .5s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 20px 4px; text-align: center; }
.pcard-cat { margin: 0; color: #8A6542; font: 600 .78rem/1.2 var(--font-serif); text-transform: uppercase; }
.pcard-title { margin: 0; font: 500 1.2rem/1.3 var(--font-display); }
.pcard-title a { color: #2D221B; text-decoration: none; }
.pcard-title a:hover { color: #8A6542; }
.pcard-seal { margin-top: 14px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 18px; }
.pcard-price, .pcard-more { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 6px 20px; border: 2px solid #C8B7A2; box-shadow: inset 0 0 0 2px #EFEBE5, inset 0 0 0 3px #C8B7A2; corner-shape: scoop; font-family: var(--font-display); }
.pcard-price { border-left: 0; border-radius: 0 10px 10px 0; color: #5B3F2D; font-size: 1.12rem; }
.pcard-more { border-right: 0; border-radius: 10px 0 0 10px; color: #3A2C22; font-size: .98rem; text-decoration: none; transition: background-color .2s; }
.pcard-more:hover { background: #E4DCCF; color: #3A2C22; }
.home-more { margin: 48px 0 0; text-align: center; }

/* Đối tác: băng chuyền, không có JS vẫn cuộn ngang được */
.home-partners { padding: 50px 0 70px; background-image: var(--seal-pattern); }
.carousel { display: flex; align-items: center; gap: 8px; }
.partner-list { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 4px 0; display: grid; grid-auto-flow: column; grid-auto-columns: 50%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.partner-list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .partner-list { grid-auto-columns: calc(100% / 3); } }
@media (min-width: 1024px) { .partner-list { grid-auto-columns: 25%; } }
.partner-list li { display: flex; justify-content: center; padding-inline: 8px; scroll-snap-align: start; }
.partner-list picture { width: min(170px, 100%); }
.partner-list img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.carousel-btn { flex: none; display: grid; place-items: center; width: 48px; height: 44px; padding: 0; border: 0; background: transparent; color: #3A2C22; cursor: pointer; }
.carousel-btn:hover { color: #8A6542; }

/* Tin tức: dải xanh than phía trên, thẻ bài viết đè xuống nền giấy */
.home-news { position: relative; isolation: isolate; padding: clamp(64px, 6vw, 90px) 0 clamp(64px, 6vw, 90px); }
.home-news::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: clamp(300px, 22vw, 370px); background: var(--color-navy) var(--navy-pattern); }
.post-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .post-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-rows > li { display: flex; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; background: #EFEBE5; box-shadow: 0 2px 6px rgba(60, 40, 20, .2); }
@media (min-width: 640px) { .post-row { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 350px; } }
.post-row-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 640px) { .post-row-media { aspect-ratio: auto; } }
.post-row-media picture, .post-row-media img { width: 100%; height: 100%; object-fit: cover; }
.post-row-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 20px; }
.post-row-date { margin: 0 0 6px; color: #7A5534; font: 600 .72rem/1.3 var(--font-serif); text-transform: uppercase; }
.post-row-title { margin: 0 0 12px; font: 500 1.25rem/1.25 var(--font-display); }
.post-row-title a { color: #1E2533; text-decoration: none; }
.post-row-title a:hover { color: #7A5534; }
.post-row-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 22px; color: #3A2C22; font: .88rem/1.6 var(--font-serif); }

/* ===== Trang tin tức (theo trang mẫu): bài nổi bật trên dải hoa văn, menu chuyên mục, lưới 2 cột ===== */
.news-featured { position: relative; isolation: isolate; margin-top: 20px; padding-bottom: 60px; }
.news-featured::before { content: ""; position: absolute; inset: 120px 0 0; z-index: -1; background: var(--color-navy) var(--navy-pattern); }
.news-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.news-feature { display: grid; grid-template-columns: minmax(0, 1fr); background: #EFECE5; box-shadow: 0 0 8px 2px rgba(0, 0, 0, .08); }
@media (min-width: 768px) { .news-feature { grid-template-columns: 65fr 35fr; } }
.news-feature-media { display: block; height: 300px; overflow: hidden; }
@media (min-width: 768px) { .news-feature-media { height: 400px; } }
.news-feature-media picture, .news-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-feature:hover .news-feature-media img { transform: scale(1.03); }
.news-feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 20px; }
.news-feature-topic, .news-feature-date { margin: 0; color: #7A5A36; font: .75rem/1.4 var(--font-serif); text-transform: uppercase; }
.news-feature-topic a { color: inherit; text-decoration: none; }
.news-feature-topic a:hover { text-decoration: underline; }
.news-feature-title { margin: 5px 0 10px; font: 600 clamp(1.35rem, 1vw + 1rem, 1.56rem)/1.2 var(--font-display); }
.news-feature-title a { color: #101E32; text-decoration: none; }
.news-feature-title a:hover { color: #7A5A36; }
.news-feature-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 22px; padding-top: 20px; color: #372701; font: .88rem/1.6 var(--font-serif); }

.news-topics { padding: 50px 0; text-align: center; }
.news-topics-title { margin: 0 0 24px; color: #7A5A36; font: 600 clamp(1.6rem, 1.6vw + 1rem, 2.7rem)/1.2 var(--font-display); }
.news-topics-list { list-style: none; margin: 0 auto; padding: 0; }
.news-topics-list a { display: block; padding: 10px 0; border-bottom: 2px solid #372701; color: #372701; font: 600 1.31rem/1.4 var(--font-display); text-decoration: none; }
.news-topics-list a:hover, .news-topics-list a[aria-current="page"] { color: #7A5A36; }
@media (min-width: 768px) {
  .news-topics-list { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 900px; min-height: 67px; padding: 10px 24px; border: 2px solid #7A5A36; border-radius: 14px; corner-shape: scoop; }
  .news-topics-list::before { content: ""; position: absolute; inset: 5px; border: 2px solid #7A5A36; border-radius: 10px; corner-shape: scoop; pointer-events: none; }
  .news-topics-list li + li a { border-left: 2px solid #372701; }
  .news-topics-list a { padding: 0 25px; border-bottom: 0; line-height: 1.2; }
}

.news-list { padding-bottom: 80px; }
.news-list .post-rows > li { margin-bottom: 30px; }
.news-topic-crumbs { padding-top: 16px; }
.news-empty { text-align: center; color: var(--color-muted); }

/* ===== Trang dự án: dự án nổi bật trên dải hoa văn, các dự án còn lại so le ảnh trái/phải ===== */
.shop-intro { max-width: 60ch; margin: -16px auto 40px; color: #4B3A2E; font: .95rem/1.7 var(--font-serif); }
.proj { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
/* Khung ảnh: hai cặp đường kẻ lệch nhau, hở ở bốn góc (giống ảnh hero). */
.proj-media { position: relative; display: block; margin: 10px; aspect-ratio: 4 / 3; box-shadow: 0 6px 18px rgba(40, 24, 14, .3); }
.proj-media::before, .proj-media::after { content: ""; position: absolute; pointer-events: none; }
.proj-media::before { inset: -10px 22px; border-block: 3px solid #A1968C; }
.proj-media::after { inset: 22px -10px; border-inline: 3px solid #A1968C; }
.proj-media picture { width: 100%; height: 100%; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj:hover .proj-media img { transform: scale(1.04); }
.proj-body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 4px 0; }
.proj-num { display: block; margin-bottom: 6px; color: #C9AB84; font: 500 clamp(3rem, 2.5vw + 2.2rem, 4.5rem)/1 var(--font-display); }
.proj-type { margin: 0 0 8px; color: #7A5A36; font: 600 .75rem/1.4 var(--font-serif); letter-spacing: .12em; text-transform: uppercase; }
.proj-title { margin: 0 0 14px; font: 600 clamp(1.45rem, 1vw + 1.1rem, 1.9rem)/1.2 var(--font-display); }
.proj-title a { color: #101E32; text-decoration: none; }
.proj-title a:hover { color: #7A5A36; }
.proj-summary { margin: 0 0 22px; color: #3A2C22; font: .92rem/1.7 var(--font-serif); }
.proj-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px 24px; width: 100%; margin: 0 0 28px; padding: 14px 0; border-block: 1px solid #CFC6B4; }
.proj-meta dt { color: #8A7866; font: .68rem/1.4 var(--font-serif); letter-spacing: .12em; text-transform: uppercase; }
.proj-meta dd { margin: 2px 0 0; color: #33261D; font: 600 1.08rem/1.3 var(--font-display); }

.proj-lead { position: relative; isolation: isolate; padding-bottom: clamp(56px, 7vw, 96px); }
.proj-lead::before { content: ""; position: absolute; inset: 160px 0 0; z-index: -1; background: var(--color-navy) var(--navy-pattern); }
.proj-lead .proj-media { aspect-ratio: 16 / 10; }
.proj-lead .proj-body { position: relative; margin: 24px 0 0; padding: 28px 22px 32px; background: #EFECE5; box-shadow: 0 0 8px 2px rgba(0, 0, 0, .08); }
@media (min-width: 1024px) {
  .proj-lead .proj { grid-template-columns: 62fr 38fr; }
  /* Khung chữ đè lên mép phải của ảnh. */
  .proj-lead .proj-body { margin: 0 0 0 -70px; padding: 44px 40px; }
}

.proj-more { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.proj-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 7vw, 100px); }
@media (min-width: 768px) {
  .proj-more .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .proj-more .proj-body { padding: 0; }
  .proj-rows > li:nth-child(even) .proj-media { order: 2; }
}

/* Đăng ký nhận tin */
.home-newsletter { padding: clamp(56px, 6vw, 90px) 0 clamp(72px, 8vw, 110px); }
.home-newsletter-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; max-width: 920px; margin: 0 auto; }
.home-newsletter-form .input-frame { flex: 1 1 240px; max-width: 300px; }
.home-newsletter-form .btn-frame { min-width: 170px; min-height: 46px; font-weight: 600; }

/* Dải gọi điện: ảnh mờ + lớp nâu + viền hồi văn trên/dưới */
.home-callout { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 12vw, 165px) 0; background: #6E4E33; color: #FFFFFF; text-align: center; }
.home-callout > picture { position: absolute; inset: 0; z-index: -2; }
.home-callout-bg { width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.08); }
.home-callout::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(110, 78, 48, .62); }
.home-callout::after { content: ""; position: absolute; inset: 28px 0; z-index: -1; pointer-events: none; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Cpath d='M0 15h24M5 15V1h14v10h-8V6h4' fill='none' stroke='%23F0E1C8' stroke-opacity='.75' stroke-width='1.6'/%3E%3C/svg%3E") top left / 24px 16px repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Cpath d='M0 15h24M5 15V1h14v10h-8V6h4' fill='none' stroke='%23F0E1C8' stroke-opacity='.75' stroke-width='1.6'/%3E%3C/svg%3E") bottom left / 24px 16px repeat-x; }
.home-callout h2, .home-callout p { max-width: 34em; margin: 0 auto; color: inherit; font: 500 clamp(1.25rem, .6vw + 1.05rem, 1.5rem)/1.35 var(--font-display); }
.home-callout a:not(.btn-frame) { color: inherit; text-decoration: none; }
.home-callout .btn-frame { margin-top: 36px; min-width: 240px; }

/* ===== Contact & form ===== */
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); color: inherit; font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); outline: 2px solid color-mix(in srgb, var(--color-accent) 30%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.req { color: var(--color-error); }
.form-note { margin: 16px 0; font-size: .875rem; color: var(--color-muted); }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); }
.form-status:empty { display: none; }
.form-status[data-kind="success"] { background: #E6F2E6; color: #1E5128; }
.form-status[data-kind="error"] { background: #FBE9E7; color: #8C1D18; }
.form-status[data-kind="info"] { background: var(--color-surface); color: var(--color-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { padding: 28px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.contact-info h2 { font-size: 1.4rem; }
.contact-info dl { margin: 0 0 24px; }
.contact-info dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-top: 14px; }
.contact-info dd { margin: 2px 0 0; }
.map { display: grid; place-items: center; min-height: 120px; border-radius: var(--radius); background: var(--color-bg); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

/* ===== Trang liên hệ (bố cục theo trang mẫu) ===== */
.contact-lead { margin: 10px 0 0; font: 500 1.15rem/1.5 var(--font-display); }
.contact-head .title-divider { margin: 10px auto 30px; }
.contact-body { padding-bottom: var(--space-section); }
.contact-h { margin: 0 0 20px; color: #7A5A36; font: 500 clamp(1.35rem, .6vw + 1.1rem, 1.6rem)/1.3 var(--font-display); }
.contact-h a { color: inherit; text-decoration: none; white-space: nowrap; }
.contact-h a:hover { text-decoration: underline; }
.contact-ways { display: grid; gap: 8px 30px; padding-bottom: 20px; }
@media (min-width: 768px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-social { display: flex; gap: 10px; margin: 0 0 0 30px; padding: 0; list-style: none; }
.contact-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #614029; color: #fff; font: 700 .62rem/1 var(--font-body); text-decoration: none; transition: filter .2s; }
.contact-social a:hover { color: #fff; filter: brightness(1.25); }
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }


/* Ô nhập nền xám đá, góc khuyết như ảnh nền ô nhập của trang mẫu. */
.contact-form .input-frame { width: 100%; height: 60px; margin-bottom: 20px; background: #BAB6AA; color: #3B2F25; box-shadow: 0 0 0 2px #F3EFE8, 0 0 0 3.5px #BAB6AA; font-size: 1.15rem; }
.contact-form .input-frame::placeholder { color: #4E4339; opacity: 1; transition: opacity .4s, padding .4s; }
.contact-form .input-frame:focus { outline: 2px solid #7A5A36; outline-offset: 4px; }
.contact-form .input-frame:focus::placeholder { opacity: 0; padding-left: 55px; }
.contact-form .input-frame[aria-invalid="true"] { box-shadow: 0 0 0 2px #F3EFE8, 0 0 0 3.5px var(--color-error); }
.contact-form textarea.input-frame { display: block; height: 220px; padding-top: 18px; resize: vertical; }
@media (min-width: 768px) { .contact-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; } }
.contact-submit { margin: 10px 0 0; text-align: center; }
.contact-submit .btn-frame { min-width: 178px; min-height: 52px; font-size: 1.15rem; }

/* ===== About page ===== */
.about { --about-brown: #7A5A36; --about-navy: #0F1B2D; position: relative; }
.about-title, .about h2 { font-family: var(--font-display); font-weight: 600; }
.about-intro { position: relative; isolation: isolate; padding-top: 30px; text-align: center; }
.about-title { max-width: 22em; margin: 0 auto; color: var(--about-brown); font-size: clamp(1.7rem, 2.4vw + 1rem, 2.7rem); line-height: 1.2; }
.title-divider { display: block; width: min(230px, 60%); height: auto; margin: 20px auto; }
.about-lead { max-width: 800px; margin-inline: auto; }
.about-lead h2 { color: var(--color-ink); font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); }
.about-lead p { line-height: 1.75; }
.about-lead-media { max-width: 525px; margin: 32px auto 0; }
@media (min-width: 1024px) {
  .about-intro::before, .about-intro::after { content: ""; position: absolute; top: 0; z-index: -1; width: 300px; height: 430px; background: url("/assets/brand/van-may.svg") no-repeat 0 0 / 300px; opacity: .8; }
  .about-intro::before { left: 0; }
  .about-intro::after { right: 0; transform: scaleX(-1); }
}

/* Ba ảnh có khung: hai cặp đường kẻ lệch nhau giống ảnh hero. */
.about-gallery { position: relative; z-index: 1; padding: 40px var(--gutter) 0; }
.about-gallery-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 30px; }
.about-frame { position: relative; margin: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.about-frame::before, .about-frame::after { content: ""; position: absolute; pointer-events: none; }
.about-frame::before { inset: -10px 22px; border-block: 2px solid #A1968C; }
.about-frame::after { inset: 22px -10px; border-inline: 2px solid #A1968C; }
.about-frame picture, .about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-frame--2 { flex: 0 1 560px; aspect-ratio: 1; }
.about-frame--1, .about-frame--3 { display: none; flex: 0 1 30%; align-self: center; aspect-ratio: 4 / 5; }
@media (min-width: 640px) {
  .about-frame--1, .about-frame--3 { display: block; }
  .about-frame--2 { flex-basis: 40%; }
}

.about-story { padding-block: 40px; color: #fff; background: var(--about-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 6H42V42H12V18H30V30H24' fill='none' stroke='%23182A45' stroke-width='4'/%3E%3C/svg%3E"); }
.about-story h2 { color: #fff; font-size: clamp(1.7rem, 2.4vw + 1rem, 2.7rem); }
.about-story p { color: #fff; line-height: 1.6; }
.about-story-row { display: flex; flex-direction: column; gap: 30px; width: min(100%, 960px); margin-inline: auto; }
.about-story-row + .about-story-row { margin-top: 40px; }
.about-story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
@media (min-width: 640px) and (max-width: 1023px) {
  .about-story-media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .about-gallery { margin-bottom: -250px; }
  .about-story { padding-block: 340px 100px; }
  .about-story-row { flex-direction: row; gap: 40px; }
  .about-story-media { flex: 0 0 55%; }
  .about-story-media img { height: 550px; aspect-ratio: auto; }
  .about-story-text { flex: 1; }
  /* Ảnh thứ hai trồi lên cạnh ảnh thứ nhất, chữ đẩy xuống để không chồng. */
  .about-story-row + .about-story-row { margin-top: -230px; }
  .about-story-row--alt .about-story-text { padding-top: 260px; }
}
.btn-brown { background: var(--about-brown, #7A5A36); color: #EFECE5; font: 600 1.05rem/1.2 var(--font-display); letter-spacing: .02em; min-width: 143px; }
.btn-brown:hover { background: #5F402C; color: #fff; }
.about-story .btn-brown { margin-top: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

.about-newsletter { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(40px, 6vw, 100px); text-align: center; }
.about-newsletter h2 { color: var(--about-brown); font-size: clamp(1.6rem, 2.4vw + 1rem, 2.7rem); }
.about-newsletter::before, .about-newsletter::after { content: ""; position: absolute; bottom: -60px; z-index: -1; width: 150px; height: 215px; background: url("/assets/brand/van-may.svg") no-repeat 0 0 / 100%; opacity: .6; }
.about-newsletter::before { left: 0; }
.about-newsletter::after { right: 0; transform: scaleX(-1); }
@media (min-width: 1024px) { .about-newsletter::before, .about-newsletter::after { width: 300px; height: 430px; bottom: -180px; } }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(100%, 840px); margin: 20px auto 0; }
.newsletter-form input { width: min(100%, 314px); height: 54px; padding: 0 20px; border: 0; border-radius: 2px; background: var(--about-brown); color: #EFECE5; font: 1.1rem var(--font-display); }
.newsletter-form input::placeholder { color: #EFECE5; opacity: .9; transition: opacity .3s; }
.newsletter-form input:focus::placeholder { opacity: .4; }
.newsletter-form input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.newsletter-form .btn-brown { height: 54px; min-width: 178px; }
@media (min-width: 768px) { .newsletter-form { flex-direction: row; justify-content: center; } }

.about-callout { padding-block: clamp(50px, 10vw, 150px); text-align: center; color: #fff; background: #735735 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 6H42V42H12V18H30V30H24' fill='none' stroke='%237C5F3D' stroke-width='4'/%3E%3C/svg%3E"); }
.about-callout h2 { color: #fff; font-size: clamp(1.3rem, 1vw + 1rem, 1.75rem); font-weight: 500; }
.about-callout p { max-width: 40em; margin-inline: auto; font: 500 clamp(1rem, .5vw + .9rem, 1.35rem)/1.4 var(--font-display); }
.about-callout a:not(.btn) { color: #fff; font-weight: 700; }
.about-callout .btn { margin-top: 10px; min-width: 243px; font: 600 1.05rem/1.2 var(--font-display); }

/* ===== Trang danh mục sản phẩm (bố cục theo trang mẫu) ===== */
.shop-head { position: relative; isolation: isolate; padding: 30px 0 10px; text-align: center; }
.shop-title { margin: 0; color: #7A5A36; font: 600 clamp(1.8rem, 2.4vw + 1rem, 2.7rem)/1.2 var(--font-display); }
.shop-head .title-divider { margin-bottom: 40px; }
@media (min-width: 1024px) {
  /* Hoạ tiết nằm gọn trong vùng tiêu đề (cao 230px) như trang mẫu, không đè lên menu/ô tìm kiếm. */
  .shop-head::before, .shop-head::after { content: ""; position: absolute; top: 0; z-index: -1; width: 160px; height: 230px; background: url("/assets/brand/van-may.svg") no-repeat 0 0 / contain; opacity: .7; }
  .shop-head::before { left: 0; }
  .shop-head::after { right: 0; transform: scaleX(-1); }
}
.shop { padding-bottom: var(--space-section); }
.shop-layout { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) {
  .shop-layout { flex-direction: row; align-items: flex-start; gap: 0; }
  .shop-sidebar { flex: 0 0 23%; padding-right: 24px; }
  .shop-main { flex: 1; min-width: 0; }
}

/* Cột "Danh mục sản phẩm": chỉ danh mục cấp 1, chữ Cormorant 17px, cách dòng ~35px như trang mẫu. */
.shop-sidebar-title { margin: 0 0 26px; color: #101E32; font: 500 1.5rem/1.2 var(--font-display); }
.shop-cats { list-style: none; margin: 0; padding: 0; }
.shop-cats a { display: block; padding-bottom: 9px; color: #101E32; font: 400 1.0625rem/1.5 var(--font-display); text-decoration: none; transition: color .2s; }
.shop-cats a:hover, .shop-cats a[aria-current], .shop-cats a.is-parent { color: #7A5A36; }
/* Màn hình nhỏ: danh mục thành hàng cuộn ngang để lưới sản phẩm hiện ngay. */
@media (max-width: 1023px) {
  .shop-sidebar-title { margin-bottom: 10px; font-size: 1.25rem; }
  .shop-cats { display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: thin; }
  .shop-cats > li { flex: none; }
}

/* Ô tìm kiếm: thanh xám 600×60 và nút nâu 200×60 cách 50px, mỗi cái có khung viền mảnh góc lõm. */
.shop-search { --scoop: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 50px; padding-bottom: 20px; }
.shop-search-field, .shop-search button { box-sizing: border-box; height: 60px; padding: 4px; border: 2px solid; border-radius: var(--scoop); corner-shape: scoop; }
.shop-search-field { display: block; flex: 0 1 600px; min-width: 0; border-color: #D6D2C8; }
.shop-search input { display: block; width: 100%; height: 100%; padding: 0 20px; border: 0; border-radius: calc(var(--scoop) - 4px); corner-shape: scoop; background: #BBB7AA; color: #fff; font: 1.125rem/1 var(--font-display); }
.shop-search input::placeholder { color: #EFECE5; opacity: 1; }
.shop-search input:focus-visible { outline: 0; }
.shop-search-field:focus-within { border-color: #7A5A36; }
.shop-search button { flex: 0 0 200px; border-color: #614029; background: transparent; cursor: pointer; }
.shop-search button span { display: grid; place-items: center; height: 100%; border-radius: calc(var(--scoop) - 4px); corner-shape: scoop; background: #614029; color: #fff; font: 600 1.3125rem/1 var(--font-display); transition: background-color .2s; }
.shop-search button:hover span { background: #4C3120; }
@media (max-width: 639px) {
  .shop-search { gap: 12px; }
  .shop-search-field { flex-basis: 100%; }
  .shop-search button { flex-basis: 160px; }
}

.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px 2.3%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-card { display: block; height: 100%; background: #EFEBE5; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); color: inherit; text-decoration: none; }
.shop-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.shop-card-media picture, .shop-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-media img { transition: transform .5s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.04); }
.shop-card-title { margin: 0; padding: 14px 12px 16px; color: #101E32; font: 600 1.12rem/1.3 var(--font-display); text-align: center; }
.shop-card:hover .shop-card-title { color: #7A5A36; }
.shop-count { background: none; color: #7A5A36; font-weight: 500; }
@media (min-width: 1024px) { .shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-products .pcard-foot { padding-top: 20px; }
.shop-products .pcard-price, .shop-products .pcard-more { min-height: 48px; padding-inline: 14px; font-size: .95rem; }
.search-empty { margin-top: 12px; color: var(--color-muted); }

/* ---------- Trang Đặt theo yêu cầu (layouts/custom.njk) ---------- */
.custom { --custom-brown: #7A5A36; --custom-navy: #0F1B2D; }
.custom h1, .custom h2 { font-family: var(--font-display); font-weight: 600; }
.custom-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent); }
.custom-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Mở đầu */
.custom-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 32px clamp(48px, 7vw, 96px); }
.custom-hero::after { content: ""; position: absolute; right: -40px; bottom: -80px; z-index: -1; width: 300px; height: 430px; background: url("/assets/brand/van-may.svg") no-repeat 0 0 / 100%; opacity: .5; transform: scaleX(-1); }
.custom-hero-grid { display: grid; gap: 40px; align-items: center; }
.custom-hero h1 { margin-bottom: .3em; color: var(--custom-brown); font-size: clamp(2.2rem, 2.6vw + 1.4rem, 3.6rem); line-height: 1.1; }
.custom-lead { margin: 0 0 14px; font-size: 1.15rem; color: var(--color-ink); max-width: 46ch; }
.custom-intro p { margin: 0 0 1em; color: var(--color-muted); max-width: 52ch; }
.custom-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.custom-actions .btn { min-height: 48px; padding-inline: 26px; }
.custom-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; max-width: 520px; }
.custom-stats > div { display: flex; flex-direction: column-reverse; padding: 14px 16px; border: 1px solid var(--color-line); border-radius: 10px; background: rgba(255, 253, 249, .7); }
.custom-stats dd { margin: 0; font: 600 clamp(1.6rem, 1vw + 1.2rem, 2.1rem)/1 var(--font-display); color: var(--color-accent); }
.custom-stats dt { margin-top: 6px; font-size: .85rem; line-height: 1.35; color: var(--color-muted); }
.custom-frame { position: relative; margin: 12px; box-shadow: 0 18px 40px -18px rgba(51, 38, 29, .55); }
.custom-frame::before, .custom-frame::after { content: ""; position: absolute; pointer-events: none; }
.custom-frame::before { inset: -12px 28px; border-block: 2px solid #A1968C; }
.custom-frame::after { inset: 28px -12px; border-inline: 2px solid #A1968C; }
.custom-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 1024px) {
  .custom-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .custom-frame img { aspect-ratio: 5 / 6; }
}

/* Tiêu đề từng phần */
.custom-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.custom-head h2 { margin-bottom: .2em; color: var(--custom-brown); font-size: clamp(1.8rem, 2vw + 1.1rem, 2.7rem); }
.custom-head p { margin: 0; color: var(--color-muted); }
.custom-head .title-divider { display: block; width: 180px; height: auto; margin: 4px auto 14px; }
.custom-head--light h2 { color: #fff; }
.custom-head--light p { color: rgba(255, 255, 255, .78); }
.custom-head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; max-width: none; text-align: left; }
.custom-more { font-weight: 600; text-decoration: none; }

/* Dịch vụ */
.custom-services { padding-block: clamp(56px, 7vw, 96px); background: var(--color-surface); }
.custom-service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .custom-service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .custom-service-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.custom-service { position: relative; padding: 28px 24px 26px; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-bg); transition: transform .25s, box-shadow .25s, border-color .25s; }
.custom-service:hover { transform: translateY(-4px); border-color: #D5C4AC; box-shadow: 0 18px 36px -22px rgba(51, 38, 29, .45); }
.custom-service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--custom-brown); color: #F3E9DC; box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 5px #CDB99B; }
.custom-service-icon svg { width: 26px; height: 26px; }
.custom-service h3 { margin-bottom: .35em; font: 600 1.35rem/1.25 var(--font-display); color: var(--color-ink); }
.custom-service p { margin: 0; color: var(--color-muted); font-size: .95rem; }

/* Quy trình trên nền xanh hoa văn */
.custom-process { padding-block: clamp(56px, 8vw, 110px); color: #fff; background: var(--custom-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 6H42V42H12V18H30V30H24' fill='none' stroke='%23182A45' stroke-width='4'/%3E%3C/svg%3E"); }
.custom-steps { position: relative; gap: 32px 24px; }
.custom-step { position: relative; padding: 0; border: 0; text-align: center; counter-increment: none; }
.custom-step::before { content: none; }
.custom-step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #F3E9DC; color: var(--custom-brown); font: 600 1.8rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--custom-navy), 0 0 0 7px rgba(217, 195, 162, .6); }
.custom-step h3 { margin-bottom: .3em; color: #fff; font: 600 1.35rem/1.25 var(--font-display); }
.custom-step p { margin: 0 auto; max-width: 24ch; color: rgba(255, 255, 255, .75); font-size: .95rem; }
@media (min-width: 1024px) {
  /* Đường nối giữa các số tròn */
  .custom-steps::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, rgba(217, 195, 162, .55) 0 8px, transparent 8px 16px); }
}

/* Dự án */
.custom-projects { padding-block: clamp(56px, 7vw, 96px); }
.custom-projects .card-title { font-family: var(--font-display); font-size: 1.3rem; }
.custom-projects .card-media img { transition: transform .5s ease; }
.custom-projects .card:hover .card-media img { transform: scale(1.04); }

/* FAQ hai cột */
.custom-faq { padding-block: clamp(56px, 7vw, 96px); background: var(--color-surface); }
.custom-faq-grid { display: grid; gap: 32px; }
.custom-faq-intro h2 { color: var(--custom-brown); font-size: clamp(1.8rem, 2vw + 1.1rem, 2.7rem); }
.custom-faq-intro p { color: var(--color-muted); max-width: 40ch; }
.custom-faq-list details { margin-bottom: 12px; padding: 0; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-bg); transition: border-color .2s, box-shadow .2s; }
.custom-faq-list details[open] { border-color: #D5C4AC; box-shadow: 0 12px 28px -20px rgba(51, 38, 29, .5); }
.custom-faq-list summary { padding: 18px 22px; font-size: 1.02rem; }
.custom-faq-list details p { margin: 0; padding: 0 22px 20px; }
@media (min-width: 1024px) {
  .custom-faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .custom-faq-intro { position: sticky; top: 120px; }
}
/* .card-grid--3 chung đang bị rule 1fr đứng sau ghi đè ở màn rộng; đặt riêng cho trang này */
@media (min-width: 640px) { .custom-projects .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .custom-projects .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
