/* ============ Vichai Furniture ============ */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --cream: #f4ece0;
  --sand: #e9dccb;
  --line: #e7ddd0;
  --ink: #1f1712;
  --ink-2: #3d2f26;
  --muted: #76675b;
  --wood: #8a5530;
  --wood-dark: #4b2a18;
  --red: #e2242b;
  --red-dark: #b8171d;
  --green: #2f7d4f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(60, 35, 20, .06), 0 2px 8px rgba(60, 35, 20, .05);
  --shadow: 0 10px 30px -12px rgba(60, 35, 20, .25);
  --shadow-lg: 0 30px 60px -20px rgba(40, 20, 10, .35);
  --container: 1200px;
  --font-head: "Prompt", system-ui, sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--wood);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; line-height: 1;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(226, 36, 43, .6); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--wood-dark); }
.btn-ghost { background: transparent; border-color: var(--sand); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a847; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--ink); color: #eadfd2; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 20px; }
@media (max-width: 720px) { .topbar .tb-right { display: none; } .topbar .container { justify-content: center; text-align: center; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand-th { font-family: var(--font-head); font-size: 13px; color: var(--muted); border-left: 1px solid var(--sand); padding-left: 12px; line-height: 1.2; }
@media (max-width: 520px) { .brand-th { display: none; } .brand img { height: 28px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  padding: 10px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--cream); }
.nav a.active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-head); border: 2px solid var(--bg);
  transform: scale(0); transition: transform .25s var(--ease);
}
.badge-count.show { transform: scale(1); }
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(226, 36, 43, .10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(138, 85, 48, .14), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 600; letter-spacing: -.01em; margin: 18px 0 20px; line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--red); opacity: .16; border-radius: 4px;
}
.hero .lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-points div { display: flex; flex-direction: column; }
.hero-points b { font-family: var(--font-head); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.hero-points span { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero-card {
  position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface);
  transition: transform .5s var(--ease);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.c1 { inset: 0 18% 22% 0; z-index: 2; }
.hero-card.c2 { width: 46%; aspect-ratio: 1; right: 0; top: 8%; z-index: 1; transform: rotate(3deg); }
.hero-card.c3 { width: 44%; aspect-ratio: 1; right: 4%; bottom: 0; z-index: 3; transform: rotate(-2deg); border: 6px solid var(--bg); }
.hero-visual:hover .c2 { transform: rotate(5deg) translateY(-6px); }
.hero-visual:hover .c3 { transform: rotate(-4deg) translateY(4px); }
.price-chip {
  position: absolute; z-index: 4; left: -18px; bottom: 30%;
  background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.price-chip .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.price-chip .dot svg { width: 20px; height: 20px; }
.price-chip small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.price-chip b { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .price-chip { left: 0; }
}

/* ---------- Value strip ---------- */
.values { background: var(--surface); border-block: 1px solid var(--line); }
.values .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { display: flex; gap: 14px; align-items: center; padding: 26px 20px; }
.value + .value { border-left: 1px solid var(--line); }
.value .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--cream); color: var(--wood); display: grid; place-items: center; flex: none; }
.value .ic svg { width: 24px; height: 24px; }
.value b { font-family: var(--font-head); font-weight: 600; display: block; font-size: 16px; line-height: 1.35; }
.value span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 900px) {
  .values .container { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .value { padding: 18px 8px; flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--wood-dark); isolation: isolate; box-shadow: var(--shadow-sm);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform .7s var(--ease); z-index: -2; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 5, 0) 35%, rgba(20, 10, 5, .85) 100%); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-body { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.cat-card h3 { color: #fff; font-size: 22px; }
.cat-card p { font-size: 14.5px; opacity: .85; margin-top: 2px; }
.cat-card .count {
  position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-family: var(--font-head); font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
}
.cat-card .go {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; transform: translateY(-6px); opacity: 0; transition: .3s var(--ease);
}
.cat-card:hover .go { opacity: 1; transform: none; }
.cat-card .go svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .cat-card h3 { font-size: 18px; } .cat-card p { display: none; } .cat-card .cat-body { left: 14px; right: 14px; bottom: 14px; } }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .m1 { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.3; }
.about-media .m1 img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.about-media .logo-seal {
  position: absolute; right: -24px; bottom: -24px; background: var(--surface); border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--shadow); width: 220px;
}
.about-media .logo-seal img { width: 100%; }
.about h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 18px; }
.about p { color: var(--ink-2); margin-bottom: 14px; }
.about-list { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.about-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--wood-dark); color: #fff; display: grid; place-items: center; flex: none; margin-top: 3px; }
.check svg { width: 13px; height: 13px; }
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 520px; }
  .about-media .logo-seal { right: 12px; width: 180px; }
}
@media (max-width: 520px) { .about-list { grid-template-columns: 1fr; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pc-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream); cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-badge {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 500; padding: 4px 11px; border-radius: 999px;
}
.pc-fav {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: transform .2s, color .2s;
}
.pc-fav:hover { transform: scale(1.08); }
.pc-fav svg { width: 19px; height: 19px; }
.pc-fav.on { color: var(--red); }
.pc-fav.on svg { fill: currentColor; }
.pc-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px; border-radius: 12px;
  background: rgba(31, 23, 18, .82); color: #fff; font-family: var(--font-head); font-size: 14px; text-align: center;
  opacity: 0; transform: translateY(8px); transition: .3s var(--ease);
}
.product-card:hover .pc-quick { opacity: 1; transform: none; }
.pc-badge.sold { background: var(--ink); }
.product-card.sold-out .pc-media img { filter: grayscale(.85); opacity: .7; }
.stock-note { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--green); margin-left: auto; white-space: nowrap; }
.stock-note.low { color: #b86b00; }
.stock-note.out { color: var(--red); }
.m-price .stock-note { font-size: 14.5px; }
.opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-cat { font-size: 13px; color: var(--wood); font-family: var(--font-head); font-weight: 500; }
.pc-title { font-size: 18.5px; font-weight: 600; line-height: 1.35; }
.pc-title button { all: unset; cursor: pointer; }
.pc-title button:hover { color: var(--red); }
.pc-spec { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pc-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-head); }
.pc-price b { font-size: 24px; font-weight: 600; color: var(--ink); }
.pc-price small { font-size: 14px; color: var(--muted); }
.pc-price .from { font-size: 13px; color: var(--muted); }
.pc-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.pc-row { display: flex; gap: 10px; align-items: center; }

.select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--bg);
  border-radius: 12px; padding: 10px 38px 10px 14px; font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2376675b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select:focus { border-color: var(--ink); outline: none; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); flex: none; }
.qty button { width: 38px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { color: var(--red); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 34px; text-align: center; border: 0; background: transparent; font-family: var(--font-head); font-weight: 600; font-size: 16px; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 34px; }
.qty.sm input { width: 28px; font-size: 15px; }
.add-btn { flex: 1; padding: 12px 14px; }

/* ---------- Shop page ---------- */
.page-hero { background: var(--cream); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 10px; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 620px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--red); }

.shop-bar { position: sticky; top: 76px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.shop-bar .container { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px;
  font-family: var(--font-head); font-size: 14.5px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
  transition: .2s;
}
.chip:hover { border-color: var(--ink); }
.chip .n { font-size: 12px; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 1px 8px; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active .n { background: rgba(255, 255, 255, .18); color: #fff; }
.chip svg { width: 16px; height: 16px; }
.shop-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 16px 10px 42px; width: 230px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--ink); }
.shop-tools .select { width: auto; border-radius: 999px; background-color: var(--surface); }
.result-note { color: var(--muted); font-size: 15px; margin: 28px 0 18px; }
.empty { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: var(--sand); margin: 0 auto 12px; }
.empty h3 { margin-bottom: 6px; }
@media (max-width: 720px) {
  .shop-bar { top: 76px; }
  .shop-bar .container { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-tools { flex-wrap: nowrap; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 12px; gap: 8px; }
  .pc-title { font-size: 15.5px; }
  .pc-spec { font-size: 13px; }
  .pc-price b { font-size: 19px; }
  .pc-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pc-row .qty { justify-content: space-between; }
  .pc-row .qty input { flex: 1; }
  .add-btn { padding: 11px 10px; font-size: 14px; }
  .pc-quick { display: none; }
  .select { font-size: 14px; padding: 9px 30px 9px 10px; background-position: right 10px center; }
}

/* ---------- Wall-fit tool ---------- */
.fit { background: var(--wood-dark); color: #f3e7da; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.fit::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 36, 43, .35), transparent); }
.fit h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; }
.fit .eyebrow { color: #e6c9ad; }
.fit p { color: #dcc9b6; }
.fit-input { display: flex; align-items: center; gap: 12px; margin-top: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 8px 8px 8px 18px; max-width: 380px; }
.fit-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-family: var(--font-head); font-size: 28px; font-weight: 600; outline: none; }
.fit-input span { font-family: var(--font-head); color: #e6c9ad; }
.fit-range { width: 100%; max-width: 380px; margin-top: 16px; accent-color: var(--red); }
.fit-results { position: relative; display: grid; gap: 10px; }
.fit-item { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 10px 14px 10px 10px; transition: .3s var(--ease); }
.fit-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.fit-item .fi-name { font-family: var(--font-head); font-weight: 500; color: #fff; line-height: 1.3; }
.fit-item .fi-meta { font-size: 14px; color: #cdb8a4; }
.fit-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); margin-top: 6px; overflow: hidden; }
.fit-bar i { display: block; height: 100%; border-radius: 99px; background: #7ed09a; transition: width .4s var(--ease); }
.fit-item .fi-status { margin-left: auto; font-family: var(--font-head); font-size: 13px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.fit-item.ok .fi-status { background: rgba(126, 208, 154, .18); color: #9ee0b3; }
.fit-item.no { opacity: .5; }
.fit-item.no .fit-bar i { background: #f07b7b; }
.fit-item.no .fi-status { background: rgba(240, 123, 123, .16); color: #f5a3a3; }
.fit-item .fi-main { flex: 1; min-width: 0; }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; border-radius: 22px; } }

/* ---------- Promo banner ---------- */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.promo-media { min-height: 380px; position: relative; }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.promo-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.promo-tag { align-self: flex-start; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.promo h2 { font-size: clamp(26px, 3vw, 38px); margin: 16px 0 10px; }
.promo ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; }
.promo li { display: flex; gap: 10px; align-items: center; }
.promo-price { font-family: var(--font-head); display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.promo-price b { font-size: 42px; font-weight: 700; color: var(--red); line-height: 1; }
.promo-price span { color: var(--muted); }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } .promo-media { min-height: 300px; } .promo-body { padding: 28px 22px 32px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step .n { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--red); letter-spacing: .08em; }
.step .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--cream); color: var(--wood-dark); display: grid; place-items: center; margin: 14px 0 16px; }
.step .ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; border-radius: 28px; padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { opacity: .9; margin-top: 6px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 600px) { .cta-band { padding: 34px 22px; border-radius: 22px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbbcad; margin-top: 88px; padding: 64px 0 28px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img.flogo { height: 36px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #8d7f73; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 12, 8, .45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.drawer-head h3 span { color: var(--muted); font-weight: 400; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--surface); display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; }
.sum-row b { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.sum-note { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }

.cart-item { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 78px; height: 78px; border-radius: 12px; object-fit: cover; }
.ci-name { font-family: var(--font-head); font-weight: 500; line-height: 1.35; font-size: 15.5px; }
.ci-opt { font-size: 13.5px; color: var(--muted); }
.ci-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.ci-price { font-family: var(--font-head); font-weight: 600; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.ci-remove:hover { color: var(--red); }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty svg { width: 64px; height: 64px; color: var(--sand); margin: 0 auto 14px; }
.cart-empty h4 { font-family: var(--font-head); color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal-box {
  background: var(--surface); border-radius: 24px; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow-lg); position: relative;
  opacity: 0; transform: translateY(20px) scale(.98); transition: .3s var(--ease); pointer-events: none;
}
.modal.open .modal-box { opacity: 1; transform: none; pointer-events: auto; }
.modal-media { background: var(--cream); position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.modal-body { padding: 34px 32px; display: flex; flex-direction: column; gap: 16px; }
.modal-body h2 { font-size: 27px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.m-desc { color: var(--muted); }
.m-price { font-family: var(--font-head); display: flex; align-items: baseline; gap: 8px; }
.m-price b { font-size: 34px; font-weight: 600; color: var(--red); }
.m-block h4 { font-size: 15px; margin-bottom: 8px; color: var(--ink-2); }
.m-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 15.5px; }
.m-list li { display: flex; gap: 10px; align-items: flex-start; }
.m-list .check { width: 20px; height: 20px; margin-top: 3px; }
.opt-group { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 9px 14px; font-size: 15px;
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; transition: .2s;
}
.opt small { color: var(--muted); font-size: 12.5px; }
.opt:hover { border-color: var(--ink-2); }
.opt.active { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, white); }
.m-actions { display: flex; gap: 10px; margin-top: 4px; }
.m-actions .btn { flex: 1; }
@media (max-width: 820px) {
  .modal { padding: 0; align-items: end; }
  .modal-box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .modal-media img { max-height: 46vh; }
  .modal-body { padding: 22px 20px 26px; }
  .modal-body h2 { font-size: 22px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(10, 6, 4, .92); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); pointer-events: auto; animation: toastIn .35s var(--ease);
}
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.toast .t-text { flex: 1; font-size: 14.5px; line-height: 1.4; }
.toast .t-text b { font-family: var(--font-head); font-weight: 500; display: block; }
.toast button { background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 8px 14px; font-family: var(--font-head); font-size: 13.5px; font-weight: 500; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* ---------- Floating contact ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.fab a:hover { transform: scale(1.08); }
.fab a svg { width: 25px; height: 25px; }
.fab .f-line { background: #06c755; }
.fab .f-phone { background: var(--red); }
.fab .f-top { background: var(--surface); color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.fab .f-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 22px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.co-items .cart-item { grid-template-columns: 96px 1fr; }
.co-items .cart-item img { width: 96px; height: 96px; }
.summary { position: sticky; top: 100px; display: grid; gap: 20px; }
.sum-lines { display: grid; gap: 10px; font-size: 15.5px; }
.sum-lines .row { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines .row span:first-child { color: var(--muted); }
.sum-total { border-top: 1px dashed var(--sand); padding-top: 14px; margin-top: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total b { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--red); }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } .card { padding: 22px 18px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: var(--red); }
.input, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(138, 85, 48, .12); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--red); }
.field .err { font-size: 13px; color: var(--red); display: none; }
.field.invalid .err { display: block; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card label { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--bg); font-family: var(--font-body); font-weight: 500; transition: .2s; }
.radio-card label svg { width: 20px; height: 20px; color: var(--wood); flex: none; }
.radio-card input:checked + label { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, white); }
.radio-card input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); }
@media (max-width: 600px) { .form-grid, .radio-cards { grid-template-columns: 1fr; } }

.notice { display: flex; gap: 12px; background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.notice.error { background: #fdecec; color: var(--red-dark); }
.notice.error svg { color: var(--red); }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--wood); margin-top: 2px; }

.success { text-align: center; padding: 20px 10px 4px; }
.success .big-check { width: 72px; height: 72px; border-radius: 50%; background: #e3f3e9; color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success .big-check svg { width: 36px; height: 36px; }
.success h3 { font-size: 22px; margin-bottom: 6px; }
.success p { color: var(--muted); }
.order-text { text-align: left; white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; max-height: 240px; overflow: auto; margin: 18px 0; font-family: var(--font-body); }
.stack { display: grid; gap: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: .2s; }
a.c-card:hover { border-color: var(--ink-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.c-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--cream); color: var(--wood-dark); }
.c-card .ic svg { width: 24px; height: 24px; }
.c-card .ic.red { background: var(--red); color: #fff; }
.c-card .ic.green { background: #06c755; color: #fff; }
.c-card .ic.blue { background: #1877f2; color: #fff; }
.c-card small { color: var(--muted); font-size: 14px; display: block; }
.c-card b { font-family: var(--font-head); font-size: 18px; font-weight: 600; display: block; line-height: 1.35; }
.c-card .hours { display: grid; grid-template-columns: auto auto; gap: 2px 16px; margin-top: 4px; font-size: 15px; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--cream); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 0; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--sand); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-head); font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--red); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
body.lock { overflow: hidden; }
