/* Vải An Phương — storefront styles. One file, content-hashed by the generator. */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(/assets/fonts/roboto-400.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(/assets/fonts/roboto-500.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(/assets/fonts/roboto-700.woff2) format("woff2"); }

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1f2a2e;
  --ink-2: #4b5a5e;
  --muted: #7a8689;
  --line: #e6dfd4;
  --primary: #1f4e46;
  --primary-600: #173d37;
  --primary-50: #e8f0ee;
  --accent: #c2703d;
  --accent-600: #a95d2f;
  --accent-50: #fbefe6;
  --danger: #b42318;
  --ok: #157f3c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 4px 16px rgba(31, 42, 46, .06);
  --shadow-lg: 0 10px 40px rgba(31, 42, 46, .14);
  --container: 1240px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 15px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(24px, 3.2vw, 34px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent-600); }
.ic { flex: none; vertical-align: -0.2em; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.show-sm { display: none; }

/* --- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; text-align: center; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; text-decoration: underline; font-size: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Forms ------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.field > span { color: var(--ink-2); font-weight: 500; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.field input.is-invalid { border-color: var(--danger); }
.form-msg { margin: 10px 0 0; font-size: 14px; min-height: 1.2em; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }

/* --- Topbar / header --------------------------------------------------- */
.topbar { background: var(--primary); color: #dfe9e6; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 34px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
a.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__hot { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.nav-toggle { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 19px; letter-spacing: .2px; color: var(--primary); }
.logo__text small { font-size: 12px; color: var(--muted); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: #b8c9c5; }
.header-search { flex: 1; max-width: 520px; position: relative; display: flex; }
.header-search input { flex: 1; min-width: 0; height: 42px; padding: 0 46px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); }
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.header-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--ink); border-bottom: 1px solid var(--surface-2); }
.search-suggest a:hover, .search-suggest a.is-active { background: var(--surface-2); }
.search-suggest img { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; }
.search-suggest small { display: block; color: var(--accent-600); font-weight: 500; }
.search-suggest .all { justify-content: center; color: var(--primary); font-weight: 500; }
.header-cta { flex: none; }
.cart-link { flex: none; color: var(--primary); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.site-nav { border-top: 1px solid var(--surface-2); }
.site-nav__head { display: none; }
.menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__link { display: inline-flex; align-items: center; gap: 4px; padding: 11px 12px; color: var(--ink); font-weight: 500; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
.menu__link:hover { color: var(--accent-600); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 55; }
.submenu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); }
.submenu a:hover { background: var(--surface-2); color: var(--primary); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 70; }

/* --- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 14px; padding-bottom: 10px; }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs .sep { color: var(--line); }

/* --- Sections ----------------------------------------------------------- */
.section { padding: 36px 0; }
.section.container { padding-left: 16px; padding-right: 16px; }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--primary); color: #e3ece9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { margin-bottom: 20px; }
.section__head p { color: var(--muted); margin: 0; }
.section--dark .section__head p { color: #b8c9c5; }
.section__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section__head--row h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* --- Hero ---------------------------------------------------------------- */
.slider { position: relative; overflow: hidden; background: var(--surface-2); }
.slider__track { display: flex; transition: transform .5s ease; }
.slider__slide { flex: 0 0 100%; }
.slider__slide img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.slider__prev { left: 14px; } .slider__next { right: 14px; }
.slider__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); padding: 0; cursor: pointer; }
.slider__dots button.is-active { background: #fff; width: 24px; border-radius: 6px; }
.hero-default { background: linear-gradient(120deg, #f3ece1 0%, #faf7f2 55%, #e8f0ee 100%); overflow: hidden; }
.hero-default__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; min-height: 420px; padding-top: 30px; padding-bottom: 30px; }
.hero-default h1 { font-size: clamp(30px, 4.6vw, 50px); color: var(--primary); letter-spacing: -.5px; }
.hero-default p { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-default__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent-600); font-weight: 500; font-size: 13px; margin-bottom: 14px; }
.hero-default__art { position: relative; height: 340px; border-radius: 24px; background: linear-gradient(180deg, #cfe0f0 0%, #f6f1e7 100%); border: 10px solid #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-light { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.4%, #fff 49.5%, #fff 50.5%, transparent 50.6%), linear-gradient(0deg, transparent 49.4%, #fff 49.5%, #fff 50.5%, transparent 50.6%); }
.drape { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 2; background: repeating-linear-gradient(90deg, #1f4e46 0 14px, #2a645a 14px 24px, #1f4e46 24px 34px); box-shadow: 0 0 30px rgba(0, 0, 0, .25); }
.drape--l { left: 0; border-radius: 0 0 60% 0; } .drape--r { right: 0; border-radius: 0 0 0 60%; }
.usp-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.usp-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.usp { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.usp strong { display: block; color: var(--ink); font-size: 14.5px; }
.usp span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.promo-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.promo-banners img { border-radius: var(--radius); }

/* --- Tiles ---------------------------------------------------------------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--primary); }
.tile__img { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--surface-2), var(--primary-50)); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__name { display: block; padding: 10px 12px; font-weight: 500; text-align: center; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.room { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #2a645a, #1f4e46); display: block; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.room:hover img { transform: scale(1.05); }
.room span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; }

/* --- Product cards ---------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-row > * { scroll-snap-align: start; }
.card-product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: box-shadow .15s, transform .15s; }
.card-product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-product__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-product__img > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.card-product__badge { position: absolute; top: 8px; left: 8px; width: 64px; height: auto; }
.card-product__off { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.card-product__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-product__cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.card-product__name { font-size: 15px; font-weight: 500; margin: 0; flex: 1; }
.card-product__name a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-product__name a:hover { color: var(--primary); }
.card-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 4px; }
.price { color: var(--accent-600); font-weight: 700; font-size: 16px; }
.price small { font-weight: 400; font-size: 12px; color: var(--muted); }
.price-lg { font-size: 26px; }
.price-contact { color: var(--primary); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price-off { background: var(--accent-50); color: var(--accent-600); font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

/* --- Steps, posts, booking section ----------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.steps__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; color: #c9d8d4; font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.post-card__img { aspect-ratio: 4 / 3; background: var(--surface-2); display: block; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.post-card__body strong { font-size: 16px; line-height: 1.35; }
.post-card__body small { color: var(--muted); }
.post-card__date { font-size: 12px; }
.booking-section { background: linear-gradient(120deg, var(--accent-50), var(--primary-50)); }
.booking-section__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: var(--ok); margin-top: 3px; }
.booking-form--compact .form-grid { grid-template-columns: 1fr; }

/* --- Product page --------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 10px; }
.gallery { position: sticky; top: calc(var(--header-h) + 50px); }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery__main > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.gallery__badge { position: absolute; top: 12px; left: 12px; width: 90px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumb { flex: 0 0 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; }
.gallery__thumb.is-active { border-color: var(--primary); }
.buybox__cat { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.buybox__title { margin: 4px 0 6px; }
.buybox__sku { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.buybox__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.buybox__short { color: var(--ink-2); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.promo-box { border: 1.5px dashed var(--accent); background: var(--accent-50); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.promo-box__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-600); margin-bottom: 6px; }
.promo-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.promo-box li { display: flex; gap: 8px; }
.promo-box .ic { color: var(--ok); margin-top: 3px; }
.configurator { padding: 18px; }
.cfg-block { border: 0; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--surface-2); }
.cfg-block legend { font-weight: 700; margin-bottom: 10px; padding: 0; display: flex; align-items: center; gap: 8px; width: 100%; }
.cfg-block legend small { font-weight: 400; color: var(--muted); }
.cfg-help { margin-left: auto; font-weight: 400; font-size: 13px; }
.cfg-picked { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.cfg-hint, .cfg-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.size-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.size-inputs input { font-size: 18px; font-weight: 500; text-align: center; }
.size-x { padding-bottom: 10px; color: var(--muted); font-size: 20px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__chip { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #fff; background: var(--surface-2); transition: border-color .15s, transform .15s; }
.swatch__chip img { width: 100%; height: 100%; object-fit: cover; }
.swatch__code { font-size: 11px; color: var(--muted); }
.swatch input:checked + .swatch__chip { border-color: var(--primary); transform: scale(1.06); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--primary-50); }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--accent); outline-offset: 2px; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--primary); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.option input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.option img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.option__body { flex: 1; display: flex; flex-direction: column; }
.option__body small { color: var(--muted); font-size: 13px; }
.option__price { font-weight: 500; white-space: nowrap; color: var(--ink-2); font-size: 14px; }
.cfg-qty { display: flex; align-items: center; justify-content: space-between; }
.stepper { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; }
.stepper input { width: 52px; border: 0; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.summary__rows { font-size: 14px; }
.summary__rows .row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--ink-2); }
.summary__rows .row--minus { color: var(--ok); }
.summary__hint { margin: 0; color: var(--muted); font-size: 14px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.summary__total strong { color: var(--accent-600); font-size: 22px; }
.summary__error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.summary__contact { margin: 0; color: var(--primary); font-weight: 500; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.product-details { padding-top: 10px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--primary); border-color: var(--primary); }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.details-side { display: grid; gap: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 500; }
.spec-table tr:nth-child(odd) td, .spec-table tr:nth-child(odd) th { background: #fcfaf7; }
.measure-tip ol { padding-left: 18px; margin: 0 0 10px; font-size: 14px; display: grid; gap: 6px; }
.measure-tip h2 { display: flex; align-items: center; gap: 8px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.sticky-buy small { display: block; color: var(--muted); font-size: 12px; }
.sticky-buy strong { color: var(--accent-600); font-size: 18px; }

/* --- Prose (descriptions, posts, content pages) ---------------------------- */
.prose { font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin-top: 1.4em; } .prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--radius-sm); margin: 1em auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--accent-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose svg { max-width: 100%; height: auto; color: var(--primary); }
.prose figure { margin: 1.2em 0; text-align: center; }
.prose figcaption { font-size: 13px; color: var(--muted); }
.notice { background: var(--primary-50); border: 1px solid #cfe0db; border-radius: var(--radius-sm); padding: 12px 16px; margin: 1em 0; }
.steps-list { counter-reset: st; list-style: none; padding-left: 0 !important; }
.steps-list > li { counter-increment: st; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1em 0; }
.contact-grid > * { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; }
.prose iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius-sm); }

/* --- Category page ---------------------------------------------------------- */
.cat-head { padding-bottom: 8px; }
.cat-head p { color: var(--ink-2); max-width: 800px; }
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: sticky; top: calc(var(--header-h) + 50px); max-height: calc(100vh - 140px); overflow-y: auto; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.filters__head strong { display: inline-flex; align-items: center; gap: 6px; }
.filters__close, .filters__apply { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--surface-2); margin: 0; padding: 10px 0; }
.filter-group legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 4px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.toolbar__count { flex: 1; color: var(--ink-2); }
.toolbar__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar__sort select { padding: 7px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; }
.toolbar__filter { display: none; }

/* --- Content pages / article --------------------------------------------- */
.content-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.content-nav .card { padding: 8px; position: sticky; top: calc(var(--header-h) + 50px); }
.content-nav ul { list-style: none; margin: 0; padding: 0; }
.content-nav a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); font-size: 14.5px; }
.content-nav a:hover { background: var(--surface-2); }
.content-nav a.is-active { background: var(--primary); color: #fff; }
.content-body { padding: 26px 30px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding-bottom: 40px; }
.article { padding: 26px 30px; }
.article__meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.article__cover { border-radius: var(--radius); margin: 10px 0 20px; width: 100%; }
.article-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 50px); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* --- Cart ---------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.cart-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 50px); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-line__name { font-weight: 500; color: var(--ink); }
.cart-line__meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; display: grid; gap: 1px; }
.cart-line__err { color: var(--danger); font-size: 13px; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line__price { font-weight: 700; color: var(--accent-600); white-space: nowrap; }
.cart-line__unit { font-size: 12px; color: var(--muted); }
.cart-line .stepper button { width: 30px; } .cart-line .stepper input { width: 40px; font-size: 14px; }
.cart-empty { text-align: center; padding: 30px 10px; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 10px; }
.totals dt { color: var(--ink-2); } .totals dd { margin: 0; font-weight: 500; }
.totals__grand { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; font-size: 18px; }
.totals__grand dd { color: var(--accent-600); font-weight: 700; }
.totals__deposit dd { color: var(--primary); font-weight: 700; }
.pay-methods { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.pay-methods legend { font-weight: 700; margin-bottom: 8px; padding: 0; }

/* --- Order done -------------------------------------------------------------- */
.order-done { max-width: 820px; padding-top: 24px; padding-bottom: 40px; }
.order-done__head { text-align: center; margin-bottom: 18px; }
.order-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e3f4ea; color: var(--ok); margin-bottom: 8px; }
.order-pay { border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; background: var(--primary-50); }
.order-pay__grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; }
.order-pay__grid img { background: #fff; border-radius: var(--radius-sm); padding: 6px; }
.order-pay__wait { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.kv { margin: 0; display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.order-paid { display: flex; align-items: center; gap: 8px; background: #e3f4ea; color: var(--ok); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 18px; }
.order-items { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.order-items td { padding: 8px 4px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.order-items td:last-child { text-align: right; white-space: nowrap; }
.order-items small { color: var(--muted); display: block; }
.order-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* --- Booking page, 404 ----------------------------------------------------- */
.booking-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; padding-top: 10px; padding-bottom: 40px; }
.hotline { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; }
.notfound { text-align: center; padding: 60px 16px; }
.notfound__code { font-size: 96px; font-weight: 700; color: var(--primary); margin: 0; line-height: 1; opacity: .25; }

/* --- Footer / mobile bar / toast ------------------------------------------- */
.site-footer { background: #17302c; color: #b8c9c5; margin-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 28px; padding-top: 40px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #d6e2df; } .site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 14px; }
.footer-legal { font-size: 13px; color: #94aaa5; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ic { margin-top: 3px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: 13px; color: #8aa19c; }
.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 12px; }
.toast a { color: #ffd6b8; font-weight: 700; }

/* --- Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hide-md { display: none; }
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .usp-strip__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .hide-sm { display: none !important; }
  .show-sm { display: block; }
  .topbar__inner { justify-content: space-between; }
  .topbar__spacer { display: none; }
  .nav-toggle { display: inline-flex; margin-left: -8px; }
  .site-header__inner { gap: 8px; }
  .logo img { width: 34px; height: 34px; }
  .logo__text small { display: none; }
  .logo__text strong { font-size: 17px; }
  .header-search { order: 3; position: static; flex-basis: 100%; max-width: none; }
  .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; }
  .header-search input { height: 40px; }
  .header-search button { top: auto; right: 20px; margin-top: 3px; }
  .search-suggest { left: 16px; right: 16px; top: auto; margin-top: 46px; }
  .cart-link { margin-left: auto; }
  .site-nav { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; z-index: 80; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; border: 0; }
  .site-nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .site-nav__inner { padding: 0; }
  .site-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--primary); }
  .menu { flex-direction: column; flex-wrap: nowrap; padding: 8px; }
  .menu__link { width: 100%; justify-content: space-between; padding: 12px; border-radius: 8px; }
  .menu__link--cta { background: var(--accent); color: #fff; justify-content: center; margin-top: 8px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; min-width: 0; }
  .has-sub.is-open .submenu { display: block; }
  .has-sub:hover .submenu { display: none; } .has-sub.is-open:hover .submenu { display: block; }
  .hero-default__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-default__art { height: 200px; }
  .slider__slide img { aspect-ratio: 16 / 9; }
  .slider__nav { display: none; }
  .section { padding: 26px 0; }
  .booking-section__inner, .booking-page { grid-template-columns: 1fr; gap: 16px; }
  .product-layout { grid-template-columns: 1fr; gap: 16px; }
  .gallery { position: static; }
  .details-grid, .article-layout, .cart-layout { grid-template-columns: 1fr; }
  .article-side, .cart-side { position: static; }
  .content-layout { grid-template-columns: 1fr; }
  .content-nav { order: 2; }
  .content-body, .article { padding: 18px; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(88vw, 360px); max-height: none; border-radius: 0; z-index: 80; transform: translateX(100%); transition: transform .25s; }
  .filters.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .filters__close, .filters__apply { display: inline-flex; }
  .filters__apply { display: flex; position: sticky; bottom: 0; margin-top: 10px; }
  .toolbar__filter { display: inline-flex; }
  .toolbar { flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-product__body { padding: 10px; }
  .card-product__name { font-size: 14px; }
  .price { font-size: 15px; }
  .product-row { grid-auto-columns: 46%; gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .order-pay__grid { grid-template-columns: 1fr; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; font-size: 11.5px; color: var(--ink-2); }
  .mobile-bar__cta { color: var(--accent-600) !important; font-weight: 700; }
  body { padding-bottom: 62px; }
  .page-product .mobile-bar { display: none; }
  .page-product .sticky-buy:not([hidden]) { display: flex; }
  .site-footer { margin-top: 20px; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .usp-strip__inner { grid-template-columns: 1fr; gap: 10px; }
  .buy-actions { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img { width: 72px; height: 54px; }
  .cart-line__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .kv > div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
