:root {
  --paper: #f8f6f0;
  --surface: #fffefa;
  --tint: #eeeee5;
  --ink: #29392f;
  --muted: #60685e;
  --line: #d9ddd1;
  --accent: #3c5745;
  --on-accent: #fffefa;
  --sale: #824c43;
  --radius: 4px;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--font-body); }
body.detail-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button:hover:not(:disabled) { filter: brightness(.94); }
img { display: block; width: 100%; object-fit: cover; background: var(--tint); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; overflow-wrap: anywhere; }
h1 { font-size: clamp(38px, 4.5vw, 62px); }
h2 { font-size: 30px; }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; transform: translateY(-150%); background: var(--surface); padding: 12px; }
.skip:focus { transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: var(--radius); font-size: 13px; font-weight: 500; text-decoration: none; }
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { background: transparent; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: var(--radius); font-size: 30px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.brand { min-width: 0; font-family: var(--font-display); font-size: 34px; text-decoration: none; line-height: 1.15; overflow-wrap: anywhere; }
.brand small { font-family: var(--font-body); font-size: 11px; display: block; margin-top: 9px; color: var(--muted); }
.header-hotline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; flex-shrink: 0; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.header-hotline svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 36px; padding-block: 22px; }
.hero-copy { padding: 20px 0; animation: hero-copy-in .8s ease both; }
.hero-copy p { color: var(--muted); margin: 20px 0 24px; max-width: 430px; }
.hero-visual { overflow: hidden; border-radius: 110px 4px 4px 4px; }
.hero-image { height: 220px; object-position: 50% 55%; border-radius: 80px 4px 4px 4px; animation: hero-zoom 32s ease-in-out infinite alternate; }
.collection { padding-block: 20px 60px; scroll-margin-top: 20px; }
.collection-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.collection-top p { font-size: 12px; color: var(--muted); text-align: right; }
.collection-tools { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; margin-bottom: 28px; padding: 10px 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 5px 10px -10px rgba(25, 35, 27, .3); }
.search-field { position: relative; min-width: 0; }
.search-field svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-field input, #product-sort { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px 9px 40px; background: var(--surface); color: var(--ink); font: inherit; }
#product-sort { width: auto; min-width: 170px; padding-left: 12px; font-size: 12px; }
#product-sort:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.filters { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.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; }
.filter { border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px; min-height: 44px; font-size: 12px; background: var(--surface); overflow-wrap: anywhere; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
.product { min-width: 0; cursor: pointer; transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s ease var(--reveal-delay, 0ms); }
.product-visual { position: relative; }
.product-open { display: block; width: 100%; padding: 0; text-align: left; }
.product-img { height: auto; aspect-ratio: 4/4.6; border-radius: var(--radius); transition: opacity .45s ease, transform .45s ease; }
.product-open { position: relative; overflow: hidden; }
.product-img-secondary { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease, transform .45s ease; }
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--sale); color: var(--on-accent); padding: 4px 9px; font-size: 12px; font-weight: 600; border-radius: 2px; pointer-events: none; }
.sale-price { color: var(--sale); }
.product-info { padding-top: 14px; }
.product-category { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; overflow-wrap: anywhere; }
.product-title { font-family: var(--font-display); font-size: 21px; line-height: 1.3; text-align: left; padding: 0; overflow-wrap: anywhere; }
.prices { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 9px 0 13px; font-size: 14px; }
.prices strong { font-weight: 500; }
.product-sold { color: var(--muted); font-size: 12px; margin: 0 0 13px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product:hover .has-secondary .product-img:first-child { opacity: 0; }
  .product:hover .product-img-secondary { opacity: 1; }
  .product:hover .product-open:not(.has-secondary) .product-img { transform: scale(1.025); }
}
.reveal-pending { opacity: 0; transform: translateY(18px); }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.prices del { font-size: 11px; color: var(--muted); }
.product .btn { width: 100%; min-height: 44px; color: var(--accent); font-size: 12px; }
.product .btn:hover { background: var(--accent); color: var(--on-accent); }
.collection-state { text-align: center; padding: 48px 20px; background: var(--tint); border-radius: var(--radius); }
.collection-state p { white-space: pre-line; overflow-wrap: anywhere; }
.collection-state .btn { margin-top: 18px; }
.skeleton { pointer-events: none; }
.skeleton-block { background: var(--tint); animation: pulse 1.2s ease-in-out infinite alternate; border-radius: var(--radius); }
.skeleton-line { height: 18px; margin-top: 14px; width: 80%; }
.skeleton-price { width: 50%; }
.skeleton-button { height: 44px; margin-top: 18px; }
.footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-block: 23px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.footer a { flex-shrink: 0; }
dialog { color: var(--ink); background: var(--surface); border: 0; padding: 0; box-shadow: 0 16px 60px rgba(25, 35, 27, .12); }
dialog::backdrop { background: rgba(25, 35, 27, .38); }
.detail-dialog { width: min(920px, calc(100% - 32px)); max-width: none; max-height: 90dvh; border-radius: 8px; overscroll-behavior: contain; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 18px 24px; }
.dialog-top h2 { font-size: 27px; }
.detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 26px; }
.detail-body > div { min-width: 0; }
.detail-main-img { aspect-ratio: 1; max-height: 430px; border-radius: var(--radius); }
.thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 5px; }
.thumbnail { padding: 3px; width: 72px; flex: 0 0 72px; border: 1px solid var(--line); }
.thumbnail[aria-pressed="true"] { border: 2px solid var(--accent); padding: 2px; }
.thumbnail img { aspect-ratio: 1; }
.detail-copy { padding-top: 16px; }
.detail-copy h3 { font-size: 34px; margin-top: 10px; }
.detail-copy .prices { margin: 20px 0; font-size: 21px; }
.detail-copy .prices del { font-size: 14px; }
.detail-description { color: var(--muted); font-size: 14px; padding-block: 20px; border-block: 1px solid var(--line); margin-bottom: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.quantity button { min-width: 40px; height: 44px; font-size: 20px; }
.quantity input { width: 48px; height: 44px; text-align: center; border: 0; color: var(--ink); background: transparent; appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }
.detail-actions { display: flex; align-items: center; gap: 14px; margin-top: 9px; }
.detail-actions .btn { flex: 1; }
.detail-note { margin-top: 18px; font-size: 11px; color: var(--muted); }
@keyframes pulse { to { opacity: .4; } }

@media (min-width: 1500px) {
  .hero { padding-block: 24px; }
  .hero-image { height: 230px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 44px); }
  .header-hotline { font-size: 12px; }
  .hero { gap: 26px; }
  .hero-image { height: 210px; }
  .hero h1 { font-size: 43px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 17px; }
  .detail-body { gap: 20px; padding: 20px; }
  .detail-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 36px); }
  .site-header { padding-block: 19px; }
  .brand { font-size: 30px; }
  .brand small { font-size: 10px; }
  .header-hotline span { display: none; }
  .header-hotline svg { width: 22px; height: 22px; }
  .hero { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 18px; margin-block: 16px; min-height: 220px; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
  .hero-copy { position: relative; z-index: 1; padding: 0; max-width: 270px; }
  .hero h1 { font-size: 32px; }
  .hero-copy p { margin: 12px 0 16px; font-size: 12px; }
  .hero-visual { position: absolute; inset: 0; opacity: .18; border-radius: 0; }
  .hero-image { height: 100%; border-radius: 0; }
  .hero .btn { padding: 9px 16px; font-size: 12px; }
  .collection { padding-top: 12px; }
  .collection-top { gap: 10px; margin-bottom: 18px; }
  .collection-top h2 { font-size: 26px; }
  .collection-top p { font-size: 10px; }
  .collection-tools { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 18px; padding: 6px 0; }
  .search-field input { font-size: 16px; }
  #product-sort { min-width: 0; width: 100%; min-height: 36px; padding-block: 6px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding: 0 5px 2px; margin: 0 -5px; }
  .filter { flex-shrink: 0; max-width: 90%; padding: 8px 14px; font-size: 11px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 13px; }
  .product-title { font-size: 19px; }
  .product-category { font-size: 10px; }
  .product-info { padding-top: 11px; }
  .prices { gap: 4px 7px; font-size: 12px; margin: 8px 0 11px; }
  .prices del { font-size: 10px; }
  .product .btn { padding: 8px 5px; font-size: 11px; }
  .sale-badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }
  .footer { display: block; font-size: 10px; }
  .footer a { display: inline-block; margin-top: 8px; }
  .detail-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dialog-top { padding: 13px 18px; }
  .dialog-top h2 { font-size: 23px; }
  .detail-body { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 15px; }
  .detail-main-img { max-height: 310px; aspect-ratio: 1.15; }
  .detail-copy { padding-top: 0; }
  .detail-copy h3 { font-size: 30px; }
  .detail-copy .prices { margin: 14px 0; }
  .detail-description { padding-block: 15px; margin-bottom: 15px; }
  .detail-actions { gap: 10px; }
  .detail-actions .btn { padding-inline: 10px; font-size: 12px; min-width: 120px; }
  .detail-note { margin-top: 12px; }
  .thumbnail { width: 60px; flex-basis: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-pending { opacity: 1; transform: none; }
}

/* Giỏ hoa và liên hệ nổi */
body.cart-open { overflow: hidden; }
.cart-widget { position: fixed; z-index: 20; right: 28px; bottom: calc(26px + env(safe-area-inset-bottom)); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 28px rgba(25, 35, 27, .22); }
.cart-widget svg, .contact-float svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 28px; height: 28px; padding: 0 5px; display: grid; place-items: center; border: 3px solid var(--paper); border-radius: 20px; background: var(--tint); color: var(--ink); font-size: 11px; }
.cart-bounce { animation: cart-bounce .45s ease; }
.contact-float { position: fixed; z-index: 20; left: 24px; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.contact-float a { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 92px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--accent); box-shadow: 0 4px 16px rgba(25, 35, 27, .1); text-decoration: none; font-size: 12px; }
.contact-float svg { width: 22px; height: 22px; }
#contact-zalo { color: #0879c9; }
#contact-facebook { color: #18529a; }
body.cart-open .cart-widget, body.cart-open .contact-float,
body.detail-open .cart-widget, body.detail-open .contact-float { visibility: hidden; }
.cart-dialog { width: min(640px, calc(100% - 32px)); max-width: none; max-height: 90dvh; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cart-dialog[open] { display: flex; flex-direction: column; animation: cart-enter .22s ease-out; }
.cart-dialog::backdrop { backdrop-filter: blur(5px); }
.cart-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 28px; }
.cart-head h2:focus { outline: none; }
.cart-head p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.cart-progress { padding: 16px 22px 0; flex-shrink: 0; }
.cart-steps { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.cart-steps [aria-current="step"] { color: var(--accent); font-weight: 600; }
.cart-track { height: 3px; background: var(--tint); margin-top: 10px; }
.cart-track span { display: block; height: 100%; background: var(--accent); transform: scaleX(.5); transform-origin: left; transition: transform .2s; }
.cart-dialog[data-step="2"] .cart-track span { transform: scaleX(1); }
.cart-scroll { min-height: 0; padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item img { width: 68px; height: 82px; border-radius: var(--radius); font-size: 10px; }
.cart-item h3 { font-size: 21px; }
.cart-unit { color: var(--muted); font-size: 12px; margin-block: 6px 10px; }
.cart-item .quantity { border-radius: var(--radius); }
.cart-item .quantity output { min-width: 30px; text-align: center; font-size: 13px; }
.cart-remove { min-width: 44px; min-height: 44px; padding: 0 4px; font-size: 12px; color: var(--sale); text-decoration: underline; text-underline-offset: 3px; }
.cart-foot { flex-shrink: 0; border-top: 1px solid var(--line); padding: 16px 22px 20px; background: var(--surface); }
.cart-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cart-total strong { font-size: 22px; font-weight: 500; }
.cart-shipping { font-size: 10px; color: var(--muted); margin: 5px 0 14px; }
.cart-foot .btn { width: 100%; }
.cart-empty, .cart-success { text-align: center; padding: 18px 12px 24px; }
.cart-empty-art { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 18px; background: var(--tint); color: var(--accent); border-radius: 50%; font-size: 52px; }
.cart-empty h3, .cart-success h3 { font-size: 29px; }
.cart-empty p, .cart-success p { margin: 14px auto 20px; font-size: 13px; color: var(--muted); max-width: 390px; overflow-wrap: anywhere; }
.cart-success strong { color: var(--ink); }
.cart-success .cart-mock-note { color: var(--sale); }
.cart-back { min-height: 44px; padding: 0; margin: -8px 0 12px; font-size: 12px; }
.cart-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cart-field { min-width: 0; }
.cart-field.full { grid-column: 1 / -1; }
.cart-field label { display: block; font-size: 12px; margin-bottom: 6px; }
.cart-field input, .cart-field textarea { width: 100%; min-height: 46px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--font-body); }
.cart-field textarea { display: block; resize: vertical; }
.cart-field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.cart-field [aria-invalid="true"] { border-color: var(--sale); }
.field-error { color: var(--sale); font-size: 11px; margin-top: 5px; }
.cart-summary { padding: 16px; border-radius: var(--radius); background: var(--tint); margin-top: 20px; }
.cart-summary h3 { font-size: 21px; }
.cart-summary ul { margin: 10px 0 0; padding-left: 18px; font-size: 12px; }
.cart-summary li { margin-top: 6px; overflow-wrap: anywhere; }
.cart-error { padding: 12px; margin-top: 16px; border: 1px solid var(--sale); color: var(--sale); font-size: 12px; overflow-wrap: anywhere; }
.cart-toast { position: fixed; z-index: 40; left: 50%; bottom: calc(106px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 30px rgba(25, 35, 27, .14); font-size: 12px; text-align: center; pointer-events: none; overflow-wrap: anywhere; }
.cart-fly { position: fixed; z-index: 50; display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; margin: 0; overflow: visible; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 38px; line-height: 1; pointer-events: none; }
@keyframes cart-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px) rotate(-7deg); } 70% { transform: translateY(-3px) rotate(4deg); } }
@keyframes cart-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .cart-widget { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 60px; height: 60px; }
  .contact-float { left: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); gap: 8px; }
  .contact-float a { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 8px; }
  .contact-float a span { display: none; }
  .cart-dialog { position: fixed; inset: auto 0 0; width: 100%; height: 94dvh; max-height: 94dvh; margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .cart-head, .cart-foot { padding-inline: 18px; }
  .cart-progress { padding-inline: 18px; }
  .cart-scroll { padding: 18px; }
  .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; }
  .cart-item img { width: 58px; height: 76px; }
  .cart-item h3 { font-size: 19px; }
  .cart-item .quantity button { min-width: 36px; }
  .cart-fields { grid-template-columns: minmax(0, 1fr); }
  .cart-field input, .cart-field textarea { font-size: 16px; }
  .cart-empty h3, .cart-success h3 { font-size: 26px; }
}
