:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --surface: #ffffff;
  --surface-warm: #f2eee6;
  --ink: #1f2520;
  --ink-strong: #1c1f17;
  --muted: #68716a;
  --line: #dfe2dc;
  --hairline: rgba(28, 31, 23, 0.08);
  --sage: #738666;
  --sage-deep: #40543c;
  --mist: #9caa9a;
  --clay: #c4a48a;
  --clay-deep: #8d6a4d;
  --rose: #b86b62;
  --gold: #b08a42;
  --blue: #4f7480;
  --peach: #e8c7ad;
  --brand-amber: #d99a2c;
  --brand-amber-deep: #b87a1a;
  --brand-rose: #c25a2a;
  --brand-rose-deep: #a8481c;
  --shadow: 0 1px 2px rgba(28, 31, 23, 0.04), 0 22px 50px -14px rgba(28, 31, 23, 0.10);
  --shadow-soft: 0 1px 2px rgba(28, 31, 23, 0.03), 0 12px 30px -10px rgba(28, 31, 23, 0.06);
  --shadow-float: 0 1px 2px rgba(28, 31, 23, 0.04), 0 24px 56px -8px rgba(28, 31, 23, 0.08);
  --shadow-hover: 0 4px 12px rgba(28, 31, 23, 0.06), 0 32px 72px -12px rgba(28, 31, 23, 0.14);
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", ui-serif, serif;
  --font-serif-display: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, ui-serif, serif;
  --ease-flow: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 240ms;
  --dur-med: 360ms;
  --dur-slow: 520ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes studio-drift {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.06);
  }
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 42%, #f1f3ef 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.07  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-blend-mode: multiply, normal;
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--clay);
  color: #fff8ec;
}

:focus-visible {
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
}

.history-card-sku,
.history-card-price,
.product-card-sku,
.product-card .product-price,
.detail-price,
.tier-table strong,
.product-meta-sku,
[data-tabular] {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.page:not(.is-active) {
  display: none;
}

.page.is-active {
  animation: page-in 420ms var(--ease-flow) both;
}

.promo-strip {
  position: relative;
  z-index: 21;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 9px 24px;
  background: #1c1f17;
  color: #f0e8d4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.promo-strip .promo-sep {
  color: rgba(240, 232, 212, 0.4);
}

@media (max-width: 560px) {
  .promo-strip {
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 0.04em;
    gap: 8px;
  }

  .promo-strip .promo-sep {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 248, 236, 0.92);
  border-bottom: 1px solid rgba(234, 223, 204, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  line-height: 1;
}

.brand-wordmark-accent {
  color: var(--brand-rose);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #5f6962;
  font-size: 14px;
}

.top-nav a {
  position: relative;
  padding: 10px 12px;
  transition:
    color 160ms var(--ease-flow),
    background 160ms var(--ease-flow);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms var(--ease-flow);
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--ink);
}

.top-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.segment {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.segment.is-active {
  background: var(--sage-deep);
  color: #fff;
}

.primary-action,
.secondary-action,
.ghost-action {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 650;
  transition:
    background 160ms var(--ease-flow),
    border-color 160ms var(--ease-flow),
    color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.icon-button:hover,
.category-tabs button:hover,
.chip-list button:hover,
.filter-list button:hover {
  transform: translateY(-1px);
}

.primary-action {
  background: var(--sage-deep);
  color: #fff;
}

.primary-action:hover {
  background: #405635;
}

.secondary-action {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.secondary-action:hover,
.ghost-action:hover {
  border-color: #aeb8ad;
  background: #eef0eb;
}

.ghost-action {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.compact {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5d6c55;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(720px, calc(100vh - 36px));
  margin: 18px clamp(18px, 4vw, 54px) 34px;
  overflow: hidden;
  border-radius: 18px;
  background: #4f463c;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(84, 62, 34, 0.18);
  animation: soft-rise 700ms var(--ease-flow) both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 28, 21, 0.72), rgba(37, 28, 21, 0.28) 46%, rgba(37, 28, 21, 0.1)),
    linear-gradient(0deg, rgba(37, 28, 21, 0.5), rgba(37, 28, 21, 0.02) 52%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: studio-drift 18s ease-in-out infinite alternate;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 70px);
}

.home-hero-copy .eyebrow {
  color: #f3d7a8;
}

.home-hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 0.98;
  font-weight: 500;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-actions .primary-action {
  background: #ffffff;
  color: #2b241c;
}

.home-actions .primary-action:hover {
  background: #eef0eb;
}

.home-actions .secondary-action {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.42);
  color: #ffffff;
}

.home-actions .secondary-action:hover {
  background: rgba(255, 253, 248, 0.22);
}

.hero-metrics {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(470px, calc(100% - 36px));
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.08);
}

.hero-metrics strong {
  color: #ffffff;
  font-size: 20px;
}

.hero-metrics span {
  color: rgba(255, 253, 248, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 68px) clamp(18px, 4vw, 54px) 28px;
  animation: soft-rise 640ms var(--ease-flow) 90ms both;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 260px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 5vw, 56px) 0;
}

.hero-copy h2 {
  max-width: 840px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 78px;
  line-height: 0.97;
  font-weight: 500;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.koko-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  align-self: end;
  min-height: 220px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 160ms var(--ease-flow),
    box-shadow 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.koko-card:hover {
  border-color: #9fac9a;
  box-shadow: 0 16px 35px rgba(84, 62, 34, 0.09);
  transform: translateY(-2px);
}

.koko-card img,
.inquiry-head img {
  width: 120px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  background: #eef0eb;
}

.koko-card h3,
.image-search-band h3,
.section-head h3,
.panel-section h3,
.inquiry-head h3 {
  margin: 0;
}

.koko-card p:not(.eyebrow),
.image-search-band p:not(.eyebrow),
.inquiry-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 0 clamp(18px, 4vw, 54px) 22px;
  animation: soft-rise 640ms var(--ease-flow) 150ms both;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.search-box {
  position: relative;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 42px 0 14px;
  outline: none;
  transition:
    border-color 160ms var(--ease-flow),
    box-shadow 160ms var(--ease-flow),
    background 160ms var(--ease-flow);
}

.search-field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(111, 124, 88, 0.18);
}

.search-field small {
  min-height: 17px;
  color: #6d7770;
  font-size: 12px;
  font-weight: 600;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
  transition:
    opacity 160ms var(--ease-flow),
    transform 160ms var(--ease-flow),
    color 160ms var(--ease-flow);
}

.search-clear.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.search-clear:hover {
  color: var(--ink);
}

.category-tabs,
.chip-list,
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button,
.chip-list button,
.search-suggestions button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #5f6962;
  padding: 0 12px;
  transition:
    background 160ms var(--ease-flow),
    border-color 160ms var(--ease-flow),
    color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.category-tabs button.is-active,
.chip-list button.is-active {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: #fff;
}

.search-suggestions {
  grid-column: 1 / -1;
  display: grid;
  flex-wrap: initial;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  z-index: 30;
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggest-group {
  display: grid;
  gap: 8px;
}
.search-suggest-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.search-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.search-suggest-chip {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-flow), border-color var(--dur-fast) var(--ease-flow), color var(--dur-fast) var(--ease-flow);
}
.search-suggest-chip:hover {
  border-color: var(--clay);
  background: #fff5e0;
  color: var(--clay-deep);
}

/* ===== Active filters chip row above grid (U5) ===== */
.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0 14px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 14px;
}
.active-filters-row[hidden] { display: none; }
.active-filters-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-right: 4px;
}
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 12px;
  background: var(--surface);
  border: 1px solid var(--clay);
  color: var(--ink);
  font-size: 12.5px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-flow), color var(--dur-fast) var(--ease-flow);
}
.active-filter-chip:hover {
  background: var(--clay);
  color: #fff8ec;
}
.active-filter-chip span {
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
}
.active-filters-clear {
  margin-left: auto;
  padding: 4px 10px;
  background: none;
  border: 0;
  color: var(--brand-rose-deep);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.active-filters-clear:hover {
  color: var(--ink-strong);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 clamp(18px, 4vw, 54px) 48px;
  animation: soft-rise 640ms var(--ease-flow) 210ms both;
}

.filters-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.panel-section {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-section h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.filter-list,
.panel-section label {
  display: grid;
  gap: 10px;
}

.panel-section label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: #5f6962;
  font-size: 14px;
}

.filter-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #5f6962;
  padding: 0;
  text-align: left;
  transition:
    color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.filter-list button.is-active {
  color: var(--sage-deep);
  font-weight: 750;
}

.product-region {
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h3 {
  font-size: 22px;
}

.view-switch {
  display: inline-flex;
  gap: 6px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition:
    border-color 160ms var(--ease-flow),
    color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.icon-button.is-active {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity 180ms var(--ease-flow), filter 220ms var(--ease-flow);
  will-change: opacity;
}

.product-grid.is-refreshing {
  opacity: 0.42;
  filter: saturate(0.9);
  pointer-events: none;
}

.product-grid.is-list {
  grid-template-columns: 1fr;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 200ms var(--ease-flow),
    box-shadow 220ms var(--ease-flow),
    transform 220ms var(--ease-flow);
  animation: card-in 320ms var(--ease-flow) both;
  animation-delay: calc(min(var(--card-index, 0), 5) * 28ms);
  contain: layout paint;
}

.product-card:hover {
  border-color: var(--clay);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ecede8;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #ecede8 0%, #f7f8f4 50%, #ecede8 100%);
  background-size: 220% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  z-index: 0;
  transition: opacity 280ms var(--ease-flow);
  pointer-events: none;
}

.product-image[data-loaded="true"]::before {
  opacity: 0;
  animation: none;
}

.product-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    transform 520ms var(--ease-flow),
    opacity 360ms var(--ease-flow);
}

.product-image[data-loaded="true"] img {
  opacity: 1;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.stock-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: calc(100% - 20px);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 223, 204, 0.9);
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 750;
}

.stock-badge.lowStock {
  color: var(--gold);
}

.stock-badge.madeToOrder {
  color: var(--rose);
}

.stock-badge.consultRequired {
  color: var(--blue);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-body h4 {
  margin: 0;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.35;
}

.product-spec {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.locked-row,
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: #5f6962;
  font-size: 13px;
}

.price-row strong {
  color: var(--ink);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.product-actions .icon-button {
  width: 44px;
  height: 38px;
}

.product-grid.is-list .product-card {
  grid-template-columns: 220px minmax(0, 1fr);
}

.product-grid.is-list .product-image {
  aspect-ratio: auto;
  min-height: 210px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed #bac3b8;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  text-align: center;
  padding: 24px;
  animation: card-in 260ms var(--ease-flow) both;
}

.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state span {
  margin-top: 8px;
  max-width: 420px;
  line-height: 1.6;
}

.image-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: center;
  margin: 0 clamp(18px, 4vw, 54px) 68px;
  padding: 24px;
  background: #fff0db;
  border: 1px solid #dfe2dc;
  border-radius: 8px;
  animation: soft-rise 640ms var(--ease-flow) 260ms both;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 176px;
  border: 1px dashed #819174;
  background: rgba(255, 255, 255, 0.7);
  color: #40543c;
  text-align: center;
  padding: 22px;
  transition:
    border-color 160ms var(--ease-flow),
    box-shadow 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.upload-zone:hover {
  border-color: #819174;
  box-shadow: 0 16px 35px rgba(84, 62, 34, 0.09);
  transform: translateY(-2px);
}

.upload-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 1px solid #819174;
  border-radius: 50%;
  font-weight: 800;
}

.upload-zone small {
  color: var(--muted);
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(74, 54, 39, 0.42);
  backdrop-filter: blur(14px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 240ms var(--ease-flow),
    visibility 240ms var(--ease-flow);
}

.language-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
  width: min(920px, 100%);
  min-height: 420px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gate-copy {
  align-self: center;
}

.gate-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 0.98;
  font-weight: 500;
}

.gate-subtitle {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.language-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.gate-skip {
  margin-top: 14px;
  display: inline-block;
  padding: 6px 2px;
  background: none;
  border: 0;
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-flow);
}

.gate-skip:hover {
  color: var(--brand-rose-deep);
}

.gate-welcome-actions--top {
  margin-top: 18px;
  margin-bottom: 24px;
}

.koko-gate {
  display: grid;
  align-content: end;
  min-height: 360px;
  margin: 0;
}

.koko-gate img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  background: #eef0eb;
}

.koko-gate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.koko-gate strong {
  color: var(--ink);
}

.gate-panel {
  display: block;
  grid-template-columns: none;
  width: min(960px, 100%);
}

.gate-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
}

.gate-step[hidden] { display: none; }

.gate-step-welcome {
  grid-template-columns: 1fr;
  gap: 18px;
}

.gate-subtitle-cn {
  margin-top: -2px;
  color: rgba(94, 81, 65, 0.72);
}

.gate-welcome-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.gate-welcome-head .gate-subtitle {
  margin-top: 8px;
  max-width: 620px;
}

.gate-tips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.gate-tips li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(218, 197, 162, 0.42);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.5);
}

.gate-tip-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(218, 197, 162, 0.32);
  color: var(--brand-amber-deep);
}

.gate-tip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-tip-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.gate-tip-text small {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.gate-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

.gate-welcome-actions .gate-back {
  font-size: 13.5px;
}

.gate-step-indicator {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  justify-content: center;
}

.gate-step-language .gate-step-indicator {
  justify-content: flex-start;
}

.gate-step-indicator span {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(94, 81, 65, 0.18);
  transition: background 200ms var(--ease-flow);
}

.gate-step-indicator span.is-active {
  background: var(--brand-amber-deep);
}

@media (max-width: 760px) {
  .gate-step-language { grid-template-columns: 1fr; }
  .gate-tips { grid-template-columns: 1fr; }
  .gate-welcome-actions { justify-content: stretch; }
  .gate-welcome-actions .primary-action,
  .gate-welcome-actions .gate-back { flex: 1 1 auto; }
  .koko-gate { display: none; }
}

.detail-drawer,
.inquiry-drawer,
.auth-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 45;
  width: min(520px, 100vw);
  height: 100vh;
  overflow-y: auto;
  transform: translateX(104%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 260ms var(--ease-flow),
    opacity 180ms var(--ease-flow),
    visibility 180ms var(--ease-flow);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-drawer.is-open,
.inquiry-drawer.is-open,
.auth-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.drawer-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 54px);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
}

.drawer-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef0eb;
  overflow: hidden;
}

.drawer-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink-strong);
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 200ms var(--ease-flow), background 160ms var(--ease-flow), transform 160ms var(--ease-flow);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.drawer-product-image:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}

.gallery-nav:hover {
  background: var(--brand-rose);
  color: #fffaf0;
  transform: translateY(-50%) scale(1.05);
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 31, 23, 0.55);
  backdrop-filter: blur(6px);
  color: #fffaf0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

@media (hover: none) {
  .gallery-nav { opacity: 1; }
}

.drawer-content {
  padding: 0 28px 34px;
}

.drawer-content h2 {
  margin: 18px 0 8px;
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 500;
}

.drawer-spec {
  color: var(--muted);
  line-height: 1.65;
}

.detail-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-grid,
.tier-table {
  display: grid;
  gap: 8px;
}

.detail-grid div,
.tier-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  color: #5f6962;
  font-size: 14px;
}

.tier-table strong,
.detail-grid strong {
  color: var(--ink);
}

.login-required {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff3df;
  color: var(--muted);
  line-height: 1.55;
}

/* Detail drawer — gallery (real-data-1) */
.drawer-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f6f4ee;
  padding-bottom: 12px;
}

.drawer-product-gallery .drawer-product-image {
  background: #ecede8;
}

.drawer-thumb-strip {
  display: flex;
  gap: 8px;
  padding: 4px 16px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 122, 26, 0.3) transparent;
}

.drawer-thumb-strip::-webkit-scrollbar { height: 5px; }
.drawer-thumb-strip::-webkit-scrollbar-thumb { background: rgba(184, 122, 26, 0.3); border-radius: 999px; }

.drawer-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #ecede8;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms var(--ease-flow), transform 160ms var(--ease-flow);
}

.drawer-thumb:hover { transform: translateY(-1px); }
.drawer-thumb.is-active { border-color: var(--brand-rose); }

.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Detail drawer — tier table (real-data-1) */
.tier-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf7;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tier-table-grid {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.tier-table-grid th,
.tier-table-grid td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tier-table-grid thead tr.tier-head-group th {
  padding-top: 11px;
  padding-bottom: 7px;
  background: linear-gradient(180deg, #fbf2dc 0%, #f7e9cc 100%);
  border-bottom: 1px solid rgba(184, 122, 26, 0.25);
}

.tier-table-grid thead tr.tier-head-sub th {
  padding-top: 6px;
  padding-bottom: 8px;
  background: #fbf2dc;
  border-bottom: 1px solid rgba(184, 122, 26, 0.35);
}

.tier-table-grid th {
  color: #7a6a4a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tier-table-grid thead th[colspan] {
  text-align: center;
  border-left: 1px solid rgba(184, 122, 26, 0.18);
}

.tier-table-grid thead th[rowspan] {
  vertical-align: middle;
  border-right: 1px solid rgba(184, 122, 26, 0.18);
}

.tier-table-grid tbody td.tier-head-cell {
  font-weight: 600;
  color: var(--ink-strong);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}

.tier-table-grid tbody tr:last-child td { border-bottom: 0; }

.tier-table-grid td.num,
.tier-table-grid th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-strong);
  font-weight: 600;
}

.tier-table-grid tbody td:nth-child(n+4) {
  border-left: 1px dashed rgba(218, 197, 162, 0.55);
}

.tier-table-grid tbody td:nth-child(4) {
  border-left: 1px solid rgba(184, 122, 26, 0.18);
}

.tier-table-grid .tier-empty-cell {
  color: #b9ab8e;
  font-weight: 500;
}

.tier-table-grid tbody tr:hover { background: rgba(184, 122, 26, 0.06); }

.tier-empty {
  padding: 14px;
  background: #fdf6e6;
  border: 1px dashed rgba(184, 122, 26, 0.4);
  color: #7a6a4a;
  border-radius: 6px;
  font-size: 13px;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.inquiry-drawer {
  padding: 24px;
}

.auth-drawer {
  padding: 24px;
}

.auth-panel {
  margin-top: 48px;
}

.auth-panel h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 500;
}

.auth-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.auth-tabs button.is-active {
  background: var(--sage-deep);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.auth-form .secondary-action {
  display: none;
}

.auth-form.is-authenticated label,
.auth-form.is-authenticated #authSubmit,
.auth-form.is-authenticated .register-only {
  display: none;
}

.auth-form.is-authenticated .secondary-action {
  display: block;
}

.auth-panel.is-authenticated .auth-tabs {
  display: none;
}

.auth-profile {
  display: none;
  margin: 24px 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  gap: 12px;
}

.auth-panel.is-authenticated .auth-profile {
  display: grid;
}

.auth-profile-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.auth-profile-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.auth-profile dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-profile dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.auth-form:not(.is-register) .register-only {
  display: none;
}

.auth-form.is-register .login-only,
.auth-form.is-authenticated .login-only {
  display: none;
}

.auth-form .text-link {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--brand-amber-deep, #b3793e);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
}

.auth-form .text-link:hover {
  color: var(--ink-strong, #1d1b16);
}

.inquiry-head {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.inquiry-form input {
  min-height: 44px;
}

.inquiry-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 700;
}

.form-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Modern catalog refinement */
.site-header {
  top: 10px;
  width: calc(100% - clamp(20px, 4vw, 64px));
  margin: 10px clamp(10px, 2vw, 32px) 0;
  padding: 10px 12px;
  border: 1px solid rgba(223, 226, 220, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(31, 37, 32, 0.08);
}

.brand-mark {
  width: 82px;
  height: 36px;
}

.brand small {
  color: #7a837b;
}

.top-nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(223, 226, 220, 0.9);
  border-radius: 8px;
  background: rgba(246, 245, 240, 0.76);
}

.top-nav a {
  border-radius: 6px;
  padding: 9px 13px;
}

.top-nav a::after {
  display: none;
}

.top-nav a:hover,
.top-nav a.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(64, 84, 60, 0.16);
}

.segmented {
  overflow: hidden;
  border-radius: 8px;
}

.primary-action,
.secondary-action,
.ghost-action,
.icon-button,
.category-tabs button,
.chip-list button,
.search-suggestions button {
  border-radius: 7px;
}

.primary-action {
  box-shadow: 0 10px 24px rgba(64, 84, 60, 0.18);
}

.secondary-action,
.ghost-action {
  background: rgba(255, 255, 255, 0.72);
}

.catalog-page {
  padding-top: 10px;
}

.home-hero {
  min-height: min(680px, calc(100vh - 118px));
  margin-top: 18px;
  border-radius: 8px;
  background: #1f2520;
  box-shadow: 0 24px 64px rgba(31, 37, 32, 0.16);
}

.home-hero-copy h1 {
  font-family: var(--font-sans);
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 780;
  line-height: 0.94;
}

.home-hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-copy .eyebrow {
  color: #d8e1cf;
}

.hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(22, 27, 23, 0.74), rgba(22, 27, 23, 0.34) 50%, rgba(22, 27, 23, 0.12)),
    linear-gradient(0deg, rgba(22, 27, 23, 0.58), rgba(22, 27, 23, 0.02) 55%);
}

.hero-metrics {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.catalog-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(16px, 3vw, 30px);
  margin: 14px clamp(18px, 4vw, 54px) 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(223, 226, 220, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 245, 240, 0.82)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  min-height: 0;
  border: 0;
  padding: 0;
}

.hero-copy h2 {
  max-width: 680px;
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.98;
  font-weight: 760;
}

.hero-copy p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 14px;
  color: #5f6962;
  font-size: 15px;
  line-height: 1.58;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 1px;
  width: min(480px, 100%);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(223, 226, 220, 0.92);
  border-radius: 8px;
  background: var(--line);
}

.catalog-stats div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.catalog-stats strong {
  font-size: 18px;
}

.catalog-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.koko-card {
  grid-template-columns: 68px 1fr;
  align-self: stretch;
  min-height: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.koko-card img {
  width: 68px;
  border-radius: 8px;
}

.koko-card p:not(.eyebrow) {
  margin: 8px 0 12px;
  font-size: 13px;
}

.toolbar {
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr) auto;
  align-items: start;
  margin: 0 clamp(18px, 4vw, 54px) 20px;
  padding: 14px;
  border: 1px solid rgba(223, 226, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.search-field {
  gap: 7px;
}

.search-field > span {
  color: #4f5a52;
}

.search-field input {
  min-height: 52px;
  border-color: transparent;
  border-radius: 8px;
  background: #f4f5f1;
  font-size: 15px;
}

.search-field input:focus {
  background: #ffffff;
}

.category-tabs {
  align-content: start;
  padding-top: 25px;
}

.category-tabs button,
.chip-list button,
.search-suggestions button {
  border-color: rgba(223, 226, 220, 0.92);
  background: rgba(255, 255, 255, 0.68);
}

.category-tabs button.is-active,
.chip-list button.is-active {
  border-color: transparent;
  background: #1f2520;
}

.search-suggestions {
  padding-left: 1px;
}

.search-suggestions button {
  color: #59635c;
}

.catalog-layout {
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 20px;
}

.filters-panel {
  top: 98px;
}

.panel-section {
  padding: 16px;
  border-color: rgba(223, 226, 220, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.filter-list button {
  min-height: 34px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.section-head {
  padding: 0 2px;
}

.section-head h3 {
  font-size: 24px;
}

.product-card {
  border-color: rgba(223, 226, 220, 0.92);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(31, 37, 32, 0.04);
}

.product-card:hover {
  border-color: var(--clay);
  box-shadow: var(--shadow-hover);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #eef0eb;
}

.stock-badge {
  top: 10px;
  bottom: auto;
  border-color: rgba(223, 226, 220, 0.86);
  border-radius: 999px;
  color: var(--sage-deep);
  backdrop-filter: blur(10px);
}

.product-body {
  gap: 9px;
  padding: 14px;
}

.product-meta {
  align-items: center;
  color: #778179;
}

.product-meta span:first-child {
  color: #334136;
  font-weight: 800;
}

.product-body h4 {
  min-height: 44px;
  font-size: 16px;
  line-height: 1.32;
}

.product-spec {
  min-height: 38px;
  color: #6d7770;
  font-size: 13px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(223, 226, 220, 0.92);
  border-radius: 999px;
  background: #f6f7f4;
  color: #5e6b61;
  font-size: 11px;
  font-weight: 750;
}

.locked-row,
.price-row {
  border-top-color: rgba(223, 226, 220, 0.86);
  color: #6a746d;
}

.product-actions {
  margin-top: 2px;
}

.image-search-band {
  min-height: calc(100vh - 130px);
  margin-top: 18px;
  padding: clamp(24px, 5vw, 56px);
  border-color: rgba(223, 226, 220, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 241, 235, 0.92)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.image-search-band h3 {
  max-width: 720px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
}

.upload-zone {
  min-height: 260px;
  border-color: rgba(64, 84, 60, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--sage-deep);
}

.upload-zone:hover {
  border-color: rgba(64, 84, 60, 0.46);
  box-shadow: 0 20px 44px rgba(31, 37, 32, 0.1);
}

.upload-icon {
  border-color: rgba(64, 84, 60, 0.28);
  background: #f4f6f1;
}

.inquiry-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  min-height: calc(100vh - 96px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 54px) 64px;
}

.inquiry-page-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.inquiry-page-copy h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 760;
}

.inquiry-page-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.inquiry-page-copy img {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0eb;
  box-shadow: 0 18px 42px rgba(31, 37, 32, 0.1);
}

.inquiry-page-form {
  align-self: start;
  margin-top: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(74, 54, 39, 0.34);
}

.scrim.is-open {
  display: block;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .catalog-hero,
  .image-search-band,
  .inquiry-page {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 660px;
  }

  .home-hero-copy h1 {
    font-size: 58px;
  }

  .hero-metrics {
    left: clamp(18px, 4vw, 54px);
    right: clamp(18px, 4vw, 54px);
    width: auto;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .search-suggestions {
    margin-top: 0;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .inquiry-page {
    padding: 24px 12px 44px;
  }

  .inquiry-page-copy h2 {
    font-size: 44px;
  }

  .home-hero {
    min-height: 620px;
    margin: 12px 12px 28px;
    border-radius: 14px;
  }

  .home-hero-copy {
    padding: 28px;
    padding-bottom: 176px;
  }

  .home-hero-copy h1 {
    font-size: 44px;
  }

  .home-hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-metrics div {
    min-height: 54px;
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }

  .gate-copy h1 {
    font-size: 46px;
  }

  .koko-card,
  .inquiry-head {
    grid-template-columns: 88px 1fr;
  }

  .koko-card img,
  .inquiry-head img {
    width: 88px;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.is-list {
    grid-template-columns: 1fr;
  }

  .product-grid.is-list .product-card {
    grid-template-columns: 1fr;
  }

  .product-grid.is-list .product-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .gate-panel {
    grid-template-columns: 1fr;
  }

  .koko-gate {
    min-height: 260px;
  }

  .drawer-content {
    padding-inline: 20px;
  }
}

/* Refinement pass: brighter modern catalog surface */
body {
  background:
    linear-gradient(180deg, #fdfdf9 0%, #f7f8f2 42%, #edf3ef 100%);
}

.gate-panel {
  border: 1px solid rgba(223, 226, 220, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 243, 0.9)),
    var(--surface);
}

.gate-copy h1 {
  font-family: var(--font-sans);
  font-size: clamp(46px, 7vw, 68px);
  font-weight: 780;
  letter-spacing: 0;
}

.koko-gate img {
  box-shadow: 0 16px 38px rgba(31, 37, 32, 0.12);
}

.site-header {
  border-color: rgba(211, 218, 211, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.catalog-hero {
  position: relative;
  overflow: hidden;
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: 12px;
  padding: clamp(16px, 2.4vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 241, 0.9)),
    var(--surface);
}

.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184, 107, 98, 0.09), transparent 30%),
    linear-gradient(315deg, rgba(79, 116, 128, 0.08), transparent 28%);
  pointer-events: none;
}

.catalog-hero > * {
  position: relative;
}

.hero-copy h2 {
  max-width: 650px;
  font-size: clamp(30px, 3.7vw, 52px);
  line-height: 1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 10px;
}

.catalog-stats {
  width: min(450px, 100%);
  margin-top: 14px;
}

.catalog-stats div {
  min-height: 52px;
  padding: 9px 11px;
}

.catalog-stats strong {
  font-size: 17px;
}

.koko-card {
  align-self: stretch;
  min-height: 0;
  border-color: rgba(211, 218, 211, 0.9);
  background: rgba(255, 255, 255, 0.78);
}

.koko-card h3 {
  font-size: 18px;
  line-height: 1.2;
}

.toolbar {
  position: sticky;
  top: 90px;
  z-index: 16;
  gap: 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.search-field input {
  min-height: 48px;
  background: #f2f4ef;
}

.category-tabs button,
.chip-list button,
.search-suggestions button {
  white-space: nowrap;
}

.filters-panel {
  gap: 12px;
}

.panel-section {
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.panel-section h3 {
  margin-bottom: 10px;
}

.panel-section label {
  gap: 8px;
  font-size: 13px;
}

.product-grid {
  gap: 12px;
}

.product-card {
  position: relative;
  box-shadow: 0 1px 0 rgba(31, 37, 32, 0.04), 0 10px 24px rgba(31, 37, 32, 0.04);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-flow);
}

.product-card:hover::after {
  opacity: 1;
}

.product-image {
  aspect-ratio: 5 / 4;
}

.product-body {
  gap: 8px;
  padding: 12px;
}

.product-body h4 {
  min-height: 40px;
  font-size: 15px;
}

.product-spec {
  min-height: 36px;
  font-size: 12.5px;
}

.locked-row,
.price-row {
  min-height: 31px;
  padding-top: 8px;
  font-size: 12px;
}

.product-actions {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.product-actions .icon-button {
  width: 38px;
  height: 36px;
}

.product-actions .secondary-action {
  min-height: 36px;
}

@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) and (min-width: 721px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 72px;
  }

  .brand small {
    display: none;
  }

  .top-nav {
    grid-column: auto;
    justify-content: center;
    padding-bottom: 4px;
  }

  .top-nav a {
    padding-inline: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .segmented {
    min-width: 86px;
  }

  .segment {
    min-height: 36px;
    font-size: 12px;
  }

  .ghost-action {
    min-height: 36px;
    padding-inline: 13px;
  }
}

@media (max-width: 1060px) {
  .catalog-hero {
    gap: 10px;
    margin: 10px clamp(12px, 3vw, 24px) 12px;
    padding: 14px;
  }

  .hero-copy h2 {
    font-size: clamp(30px, 5.4vw, 42px);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 14px;
  }

  .catalog-stats {
    margin-top: 12px;
  }

  .catalog-stats div {
    min-height: 48px;
    padding: 8px 10px;
  }

  .koko-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .koko-card img {
    width: 56px;
  }

  .koko-card p:not(.eyebrow) {
    display: none;
  }

  .koko-card .primary-action {
    min-height: 34px;
    margin-top: 8px;
    padding-inline: 12px;
  }

  .toolbar {
    top: 78px;
    margin: 0 clamp(12px, 3vw, 24px) 14px;
    padding: 12px;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-top: 0;
    scrollbar-width: thin;
  }

  .category-tabs button {
    min-height: 34px;
  }

  .catalog-layout {
    padding: 0 clamp(12px, 3vw, 24px) 42px;
  }

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

@media (max-width: 720px) {
  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    margin: 8px 10px 0;
    padding: 10px;
  }

  .brand small {
    display: block;
  }

  .catalog-hero {
    margin-inline: 10px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .catalog-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .catalog-stats span {
    font-size: 11px;
  }

  .toolbar {
    top: 0;
    position: relative;
    margin-inline: 10px;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid.is-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    border-radius: 8px;
  }

  .product-body {
    padding: 10px;
  }

  .product-body h4 {
    min-height: 38px;
    font-size: 14px;
  }

  .product-spec {
    min-height: 34px;
    font-size: 12px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions .icon-button {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .product-grid.is-list {
    grid-template-columns: 1fr;
  }
}

/* WafaHome reference rebuild */
:root {
  --paper: #f7f2e9;
  --surface: #fffdf8;
  --surface-warm: #eee5d7;
  --ink: #2a2c22;
  --muted: #777064;
  --line: #e4dacb;
  --sage: #6f765d;
  --sage-deep: #26301f;
  --rose: #a96f58;
  --gold: #a8793c;
  --blue: #687a74;
  --shadow: 0 22px 56px rgba(64, 52, 35, 0.12);
  --shadow-soft: 0 10px 30px rgba(64, 52, 35, 0.08);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 211, 188, 0.45), transparent 32%),
    linear-gradient(180deg, #fbf8f1 0%, #f7f2e9 46%, #f3eee5 100%);
  color: var(--ink);
  font-family: var(--font-serif);
}

button,
input,
textarea {
  font-family: var(--font-sans);
}

.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 26;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 8vw, 120px);
  min-height: 30px;
  padding: 7px 18px 6px;
  background: #29311f;
  color: rgba(255, 250, 239, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

.site-header {
  top: 0;
  width: 100%;
  margin: 0;
  padding: 15px clamp(28px, 6vw, 78px);
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  border: 0;
  border-bottom: 1px solid rgba(224, 213, 198, 0.92);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 28px rgba(64, 52, 35, 0.06);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 94px;
  height: 32px;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 1px;
  color: #756f63;
  font-family: var(--font-sans);
  font-size: 11px;
}

.top-nav {
  gap: clamp(12px, 2.8vw, 42px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #4c4d41;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.top-nav a {
  padding: 8px 0;
  border-radius: 0;
}

.top-nav a:hover,
.top-nav a.is-active {
  background: transparent;
  box-shadow: none;
}

.top-nav a::after {
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  background: #29311f;
}

.header-actions {
  gap: 14px;
}

.segmented {
  min-width: 92px;
  border-color: #d9cdbb;
  border-radius: 8px;
  background: #fbf8f1;
}

.segment {
  min-height: 34px;
  color: #746c60;
}

.segment.is-active {
  background: #29311f;
}

.primary-action,
.secondary-action,
.ghost-action {
  border-radius: 4px;
  min-height: 40px;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  box-shadow: none;
}

.primary-action {
  background: #29311f;
  color: #fffaf0;
}

.primary-action:hover {
  background: #39442d;
}

.secondary-action,
.ghost-action {
  border-color: #d9cdbb;
  background: rgba(255, 253, 248, 0.82);
}

.eyebrow {
  color: #6b644d;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.home-page {
  padding-bottom: 0;
}

.home-hero {
  min-height: min(560px, calc(100vh - 126px));
  margin: 0;
  border-radius: 0;
  background: #efe3d1;
  box-shadow: none;
  color: #2a2c22;
}

.hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(246, 237, 222, 0.9), rgba(246, 237, 222, 0.62) 36%, rgba(246, 237, 222, 0.14) 68%),
    linear-gradient(0deg, rgba(116, 86, 53, 0.12), transparent 52%);
}

.hero-backdrop img {
  object-position: center;
  filter: saturate(0.86) sepia(0.08) brightness(1.06);
}

.home-hero-copy {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 98px) clamp(24px, 6vw, 80px);
}

.home-hero-copy h1 {
  max-width: 590px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0.08em;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 22px;
  color: #4f4c40;
  font-size: 16px;
  line-height: 2;
}

.home-actions .primary-action {
  background: #29311f;
  color: #fffaf0;
}

.home-actions .secondary-action {
  background: rgba(255, 253, 248, 0.62);
  border-color: #cdbda8;
  color: #29311f;
}

.hero-metrics {
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  width: min(430px, calc(100% - 56px));
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.34);
}

.hero-metrics div {
  min-height: 70px;
  background: rgba(255, 253, 248, 0.18);
}

.hero-metrics strong {
  color: #29311f;
}

.hero-metrics span {
  color: #5d574b;
}

.home-category-section,
.catalog-category-strip,
.home-featured,
.craft-values,
.story-band,
.catalog-layout,
.toolbar {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.home-category-section,
.catalog-category-strip {
  padding: 34px 0 26px;
  border-bottom: 1px solid #e5dacb;
  background: rgba(255, 253, 248, 0.58);
}

.circle-category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2.8vw, 34px);
  align-items: start;
}

.circle-category-rail button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #353529;
  text-align: center;
  transition:
    transform 180ms var(--ease-flow),
    color 180ms var(--ease-flow);
}

.circle-category-rail button:hover,
.circle-category-rail button.is-active {
  color: #29311f;
  transform: translateY(-3px);
}

.category-medallion {
  display: block;
  width: clamp(78px, 9vw, 112px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #efe4d5;
  box-shadow: inset 0 0 0 1px #e0d3c2, 0 12px 28px rgba(64, 52, 35, 0.09);
}

.category-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.92) brightness(1.04);
  transition: transform 420ms var(--ease-flow);
}

.circle-category-rail button:hover .category-medallion img {
  transform: scale(1.06);
}

.circle-category-rail strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.circle-category-rail small {
  color: #82796b;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.section-title-row a {
  color: #29311f;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.home-featured {
  padding: 28px 0 34px;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.home-product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  animation: card-in 420ms var(--ease-flow) both;
  animation-delay: calc(min(var(--card-index, 0), 8) * 45ms);
}

.home-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #dfd2bf;
  border-radius: 4px;
  background: #eee3d3;
  padding: 0;
}

.home-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.06) saturate(0.94) brightness(1.04);
  transition: transform 420ms var(--ease-flow);
}

.home-product-card:hover .home-product-image img {
  transform: scale(1.045);
}

.home-product-card p,
.home-product-card small {
  margin: 0;
  color: #7b7468;
  font-family: var(--font-sans);
  font-size: 12px;
}

.home-product-card h3 {
  min-height: 42px;
  margin: 5px 0 4px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.home-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #29311f;
  font-family: var(--font-sans);
}

.home-card-foot button,
.footer-button {
  border: 0;
  background: transparent;
  color: #29311f;
  font-weight: 800;
}

.craft-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  margin-bottom: 46px;
  overflow: hidden;
  border: 1px solid #e3d7c8;
  border-radius: 8px;
  background: #e3d7c8;
}

.craft-values div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  min-height: 118px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.78);
}

.value-icon {
  grid-row: span 2;
  color: #29311f;
  font-family: var(--font-sans);
  font-size: 34px;
  line-height: 1;
}

.craft-values strong {
  font-size: 20px;
  font-weight: 500;
}

.craft-values p {
  margin: 0;
  color: #756f63;
  font-size: 14px;
  line-height: 1.6;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 0 0 54px;
}

.story-band figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #e9ded0;
}

.story-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  filter: sepia(0.08) saturate(0.88) brightness(1.04);
}

.story-band h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.08em;
}

.story-band p:not(.eyebrow) {
  max-width: 620px;
  color: #6e675c;
  line-height: 2;
}

.catalog-page {
  padding-top: 0;
}

.catalog-hero {
  width: 100%;
  min-height: 270px;
  margin: 0;
  padding: clamp(34px, 5vw, 64px) max(34px, calc((100vw - 1180px) / 2));
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 0.75fr);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, #efe3d4 0%, #f6efe4 48%, #dfc5a3 100%);
  box-shadow: none;
}

.catalog-hero::before {
  display: none;
}

.catalog-breadcrumb {
  margin: 0 0 22px;
  color: #777064;
  font-size: 13px;
}

.hero-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #5a554b;
  line-height: 1.9;
}

.catalog-stats {
  width: min(460px, 100%);
  margin-top: 20px;
  border-color: rgba(207, 190, 166, 0.84);
  border-radius: 4px;
  background: rgba(207, 190, 166, 0.84);
}

.catalog-stats div {
  background: rgba(255, 253, 248, 0.66);
}

.catalog-visual {
  align-self: stretch;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(64, 52, 35, 0.16);
}

.catalog-visual img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.9) brightness(1.08);
}

.catalog-category-strip {
  padding-top: 24px;
  padding-bottom: 24px;
}

.toolbar {
  position: sticky;
  top: 88px;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 24px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #e0d5c6;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 30px rgba(64, 52, 35, 0.08);
  backdrop-filter: blur(16px);
}

.search-field input {
  min-height: 44px;
  border-color: #e0d5c6;
  border-radius: 4px;
  background: #fbf8f1;
}

.category-tabs {
  padding-top: 24px;
}

.category-tabs button,
.chip-list button,
.search-suggestions button {
  min-height: 34px;
  border-color: #ded1bf;
  border-radius: 4px;
  background: #fffdf8;
  color: #625b50;
}

.category-tabs button.is-active,
.chip-list button.is-active {
  background: #29311f;
  color: #fffaf0;
}

.catalog-layout {
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 26px;
  padding: 0 0 56px;
}

.filters-panel {
  top: 172px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e0d5c6;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
}

.panel-section,
.koko-card {
  border: 0;
  border-bottom: 1px solid #e7ddcf;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-section h3 {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.panel-section label {
  color: #6b655a;
}

.filter-list button {
  min-height: 32px;
  color: #6b655a;
}

.koko-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.koko-card img {
  width: 64px;
  border-radius: 4px;
}

.koko-card h3 {
  font-size: 16px;
  font-weight: 500;
}

.koko-card p:not(.eyebrow) {
  margin: 6px 0 10px;
  font-size: 12px;
}

.section-head {
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
}

.section-head h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.view-switch {
  padding: 4px;
  border: 1px solid #e0d5c6;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.8);
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.icon-button.is-active {
  background: #29311f;
  color: #fffaf0;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.catalog-group-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 -2px;
  padding: 0 0 10px;
  border-bottom: 1px solid #ded3c4;
  color: #29311f;
}

.catalog-group-heading:first-child {
  margin-top: 0;
}

.catalog-group-heading span {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.catalog-group-heading small {
  color: #82786b;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card {
  border-color: #dfd2bf;
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: none;
}

.product-card:hover {
  border-color: #c8b598;
  box-shadow: 0 18px 36px rgba(64, 52, 35, 0.13);
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #eee3d3;
}

.product-image img {
  filter: sepia(0.06) saturate(0.94) brightness(1.04);
}

.stock-badge {
  top: 10px;
  bottom: auto;
  border-color: rgba(224, 213, 198, 0.9);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.9);
}

.product-body {
  gap: 8px;
  padding: 13px 14px 14px;
}

.product-meta {
  color: #7c7468;
  font-family: var(--font-sans);
}

.product-body h4 {
  min-height: 42px;
  font-size: 17px;
  font-weight: 500;
}

.product-spec {
  min-height: 36px;
  color: #7a7368;
  font-size: 13px;
}

.product-tags span {
  border-color: #e3d7c8;
  border-radius: 4px;
  background: #f8f2e8;
  color: #6b655a;
}

.locked-row,
.price-row {
  border-top-color: #e6dccf;
  color: #6b655a;
}

.product-actions {
  grid-template-columns: 1fr 38px;
}

.product-actions .secondary-action {
  min-height: 36px;
  padding-inline: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(160px, 0.6fr));
  gap: clamp(24px, 5vw, 70px);
  padding: 36px max(28px, calc((100vw - 1180px) / 2));
  border-top: 1px solid #e2d7c8;
  background: rgba(255, 253, 248, 0.86);
}

.site-footer img {
  width: 112px;
}

.site-footer p,
.site-footer a,
.footer-button {
  color: #6f685d;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer strong {
  margin-bottom: 6px;
  font-weight: 500;
}

.footer-button {
  padding: 0;
  text-align: left;
}

.language-gate {
  background: rgba(80, 65, 47, 0.28);
}

.gate-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.7fr);
  border-color: #e0d5c6;
  background: #fffdf8;
}

.gate-copy h1,
.auth-panel h3,
.drawer-content h2,
.inquiry-page-copy h2,
.image-search-band h3 {
  font-family: var(--font-serif);
  font-weight: 500;
}

.image-search-band,
.inquiry-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 190px);
  margin: 34px auto 58px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(241, 231, 216, 0.88)),
    var(--surface);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    top: 0;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    justify-content: space-between;
  }

  .catalog-hero,
  .story-band,
  .image-search-band,
  .inquiry-page {
    grid-template-columns: 1fr;
  }

  .catalog-visual {
    display: none;
  }

  .toolbar {
    top: 126px;
    grid-template-columns: 1fr;
  }

  .category-tabs {
    padding-top: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .koko-card {
    border-bottom: 0;
  }

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

  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .craft-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement-bar {
    display: none;
  }

  .site-header {
    top: 0;
    padding: 12px 16px;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero-copy {
    padding: 44px 22px 170px;
  }

  .hero-metrics {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .circle-category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }

  .home-category-section,
  .catalog-category-strip,
  .home-featured,
  .craft-values,
  .story-band,
  .catalog-layout,
  .toolbar,
  .image-search-band,
  .inquiry-page {
    width: min(100% - 28px, 1180px);
  }

  .home-product-grid,
  .product-grid,
  .product-grid.is-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-values,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    padding: 34px 20px;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-actions .icon-button {
    display: none;
  }
}

@media (max-width: 480px) {
  .circle-category-rail,
  .home-product-grid,
  .product-grid,
  .product-grid.is-list {
    grid-template-columns: 1fr;
  }
}

/* Ohchi-inspired natural polish: calmer imagery and slower motion */
@keyframes material-breathe {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.075);
  }
}

@keyframes quiet-arrive {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  background:
    linear-gradient(180deg, #fbf7ee 0%, #f6efe4 48%, #f1eadf 100%);
}

.site-header,
.announcement-bar,
.toolbar {
  backdrop-filter: blur(12px);
}

.home-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: clamp(560px, calc(100vh - 72px), 780px);
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #f5ead4;
  color: var(--ink-strong);
  overflow: hidden;
  box-shadow: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  left: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(248, 239, 217, 0.96) 0%,
      rgba(248, 239, 217, 0.86) 14%,
      rgba(248, 239, 217, 0.6) 30%,
      rgba(248, 239, 217, 0.28) 46%,
      rgba(248, 239, 217, 0.08) 64%,
      rgba(248, 239, 217, 0) 80%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(1.06) contrast(1.03) brightness(1.02);
  animation: studio-drift 36s ease-in-out infinite alternate;
}

.hero-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: start;
  justify-items: start;
  align-content: center;
  text-align: left;
  width: 100%;
  margin: 0;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 2.4vw, 40px);
  color: var(--ink-strong);
  animation: quiet-arrive 1100ms var(--ease-flow) both;
}

.hero-brand .wordmark {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
}

.hero-brand .wordmark-accent {
  color: var(--brand-rose);
}

.hero-brand .slogan {
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  color: var(--brand-amber-deep);
  font-family: var(--font-serif);
  font-size: clamp(11px, 0.9vw, 14px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.body-copy,
.story-band p:not(.eyebrow),
.craft-values p {
  text-wrap: pretty;
}

.hero-feature {
  position: absolute;
  top: clamp(54px, 9vw, 92px);
  right: max(34px, calc((100vw - 1180px) / 2));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  grid-template-rows: repeat(3, minmax(84px, 1fr));
  gap: 12px;
  width: min(470px, 39vw);
  min-height: 410px;
  transform: translate(var(--hero-drift-x, 0), var(--hero-drift-y, 0));
  transition: transform 480ms var(--ease-flow);
  pointer-events: auto;
}

.hero-feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(232, 219, 202, 0.82);
  border-radius: 2px;
  background: #eadfce;
  padding: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: quiet-arrive 900ms var(--ease-flow) forwards;
  animation-delay: calc(260ms + var(--hero-card-delay, 0ms));
  box-shadow: 0 20px 44px rgba(64, 52, 35, 0.12);
}

.hero-feature-card:nth-child(2) {
  --hero-card-delay: 120ms;
}

.hero-feature-card:nth-child(3) {
  --hero-card-delay: 220ms;
}

.hero-feature-card:nth-child(4) {
  --hero-card-delay: 320ms;
}

.hero-feature-card.is-main {
  grid-row: 1 / -1;
}

.hero-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.88) brightness(1.06) contrast(0.96);
  transition: transform 900ms var(--ease-flow), filter 500ms var(--ease-flow);
}

.hero-feature-card:hover img {
  filter: sepia(0.04) saturate(0.98) brightness(1.08);
  transform: scale(1.045);
}

.hero-feature-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 253, 248, 0.92);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  text-shadow: 0 1px 12px rgba(34, 27, 18, 0.5);
}

.hero-metrics {
  z-index: 4;
}

.circle-category-rail {
  position: relative;
}

.category-medallion {
  border-radius: 999px;
  background: #eadfce;
  box-shadow: inset 0 0 0 1px rgba(225, 211, 193, 0.92);
}

.category-medallion img,
.home-product-image img,
.product-image img {
  filter: sepia(0.08) saturate(0.9) brightness(1.05) contrast(0.96);
}

.circle-category-rail button,
.home-product-card,
.product-card,
.panel-section,
.koko-card {
  transition:
    transform 700ms var(--ease-flow),
    border-color 260ms var(--ease-flow),
    box-shadow 260ms var(--ease-flow),
    opacity 700ms var(--ease-flow);
}

.home-product-card h3,
.product-body h4 {
  letter-spacing: 0.04em;
}

.home-card-foot button,
.product-actions .icon-button {
  color: #4f553f;
}

.craft-values {
  border-radius: 2px;
}

.craft-values div {
  position: relative;
  grid-template-columns: 1fr;
  padding: 26px 28px;
}

.craft-values div::before {
  content: "";
  width: 36px;
  height: 1px;
  background: #9c907c;
}

.value-icon {
  display: none;
}

.story-band {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  padding-top: 12px;
}

.story-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(130px, 1fr));
  gap: 12px;
  background: transparent;
}

.story-collage button {
  overflow: hidden;
  border: 1px solid #e0d2bd;
  border-radius: 2px;
  background: #eadfce;
  padding: 0;
}

.story-collage button.is-large {
  grid-row: 1 / -1;
}

.story-collage img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.86) brightness(1.05);
  transition: transform 900ms var(--ease-flow), filter 500ms var(--ease-flow);
}

.story-collage button:hover img {
  filter: sepia(0.03) saturate(0.98) brightness(1.06);
  transform: scale(1.04);
}

.catalog-hero {
  background:
    linear-gradient(90deg, rgba(245, 236, 222, 0.98), rgba(236, 222, 203, 0.82)),
    #eadcc9;
}

.catalog-visual {
  box-shadow: none;
}

.catalog-visual img {
  filter: sepia(0.12) saturate(0.86) brightness(1.06) contrast(0.95);
}

.product-card,
.home-product-card {
  animation: none;
}

.product-card:hover,
.home-product-card:hover {
  /* card frame stays still; the image inside scales (see .product-image img) */
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-flow), transform var(--dur-slow) var(--ease-flow);
  transition-delay: calc(min(var(--reveal-index, 0), 10) * 60ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.reveal-on-scroll,
.home-product-card.reveal-on-scroll {
  transition-delay: calc(min(var(--card-index, var(--reveal-index, 0)), 10) * 60ms);
}

body.is-loaded .home-hero-copy {
  animation: quiet-arrive 1000ms var(--ease-flow) both;
}

.drawer-product-image img,
.inquiry-page-copy img,
.koko-card img,
.koko-gate img {
  filter: sepia(0.04) saturate(0.9) brightness(1.03);
}

@media (max-width: 1120px) {
  .hero-backdrop {
    left: 34%;
  }

  .hero-feature {
    width: min(390px, 42vw);
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .hero-backdrop {
    left: 0;
    opacity: 0.5;
  }

  .hero-backdrop::after {
    background:
      linear-gradient(90deg, rgba(243, 234, 219, 0.94), rgba(243, 234, 219, 0.76)),
      linear-gradient(0deg, rgba(74, 55, 35, 0.12), transparent);
  }

  .hero-feature {
    display: none;
  }

  .story-band {
    grid-template-columns: 1fr;
  }

  .story-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-collage button.is-large {
    grid-row: auto;
  }
}

/* User annotation pass */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.top-nav {
  justify-content: center;
  min-width: 0;
}

.header-actions {
  justify-content: flex-end;
}

.hero-metrics,
.hero-feature {
  display: none;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(10px, 2vw, 22px);
  }

  .top-nav {
    grid-column: auto;
    justify-content: center;
    overflow-x: visible;
  }

  .header-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 10px 16px 6px;
  }

  .brand {
    gap: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .brand-wordmark {
    font-size: 18px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 4px;
    padding: 6px 2px 2px;
    border-top: 1px solid rgba(234, 223, 204, 0.55);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 13px;
    white-space: nowrap;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    padding: 6px 2px;
    flex: 0 0 auto;
  }

  .top-nav a::after {
    left: 2px;
    right: 2px;
    bottom: 0;
  }

  .segmented {
    min-width: 58px;
    grid-template-columns: 1fr 1fr;
  }

  .segment {
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .ghost-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .home-hero {
    min-height: min(620px, calc(100vh - 92px));
  }

  .home-hero-copy {
    padding: 56px 24px 38px;
  }

  .hero-meta-strip {
    grid-template-columns: 1fr 1fr;
    padding: 14px 24px 18px;
  }

  .hero-meta-strip > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .hero-meta-strip > div:nth-child(2),
  .hero-meta-strip > div:nth-child(3) {
    border-left: 1px solid rgba(70, 50, 28, 0.1);
    padding-left: 14px;
  }

  .hero-meta-strip strong {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand-wordmark {
    font-size: 16px;
  }

  .top-nav {
    gap: 10px;
    font-size: 12px;
  }

  .segment {
    padding-inline: 5px;
  }

  .ghost-action {
    padding-inline: 8px;
  }
}

/* ============================================================
   Catalog page rebuild — matches reference mockup
   ============================================================ */

.catalog-page {
  padding: 0 0 60px;
  background: #faf3e3;
}

.catalog-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  width: 100%;
  aspect-ratio: auto;
  margin: 0 0 32px;
  padding: 0;
  min-height: clamp(560px, calc(100vh - 72px), 780px);
  background-image: url("assets/catalog-hero-1.png");
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  background-color: #f5e8c8;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  animation: none;
}

.catalog-hero::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    96deg,
    #f8efd9 0%,
    #f8efd9 44%,
    rgba(248, 239, 217, 0.92) 56%,
    rgba(248, 239, 217, 0.5) 70%,
    rgba(248, 239, 217, 0.14) 84%,
    rgba(248, 239, 217, 0) 100%
  );
  pointer-events: none;
}

.catalog-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-content: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(64px, 9vw, 120px) clamp(28px, 5vw, 80px);
}

.catalog-hero-copy > * {
  max-width: 460px;
}

.catalog-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-top: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fffaf0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(28, 31, 23, 0.22);
  transition:
    background 220ms var(--ease-flow),
    transform 220ms var(--ease-flow),
    box-shadow 220ms var(--ease-flow);
}

.catalog-hero-cta:hover {
  background: var(--brand-rose);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(184, 50, 31, 0.25);
}

.catalog-hero-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.16);
  color: #fffaf0;
}

.catalog-hero-cta-arrow {
  font-size: 16px;
  transition: transform 220ms var(--ease-flow);
}

.catalog-hero-cta:hover .catalog-hero-cta-arrow {
  transform: translateX(4px);
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #7e6841;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.catalog-breadcrumb a {
  color: #7e6841;
  transition: color 180ms var(--ease-flow);
}

.catalog-breadcrumb a:hover {
  color: var(--brand-rose);
}

.catalog-breadcrumb span[aria-hidden] {
  color: rgba(126, 104, 65, 0.5);
}

.catalog-hero-title {
  margin: 8px 0 0;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.05;
}

.catalog-hero-en {
  margin: 6px 0 0;
  color: #7e6841;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.36em;
}

.catalog-hero-body {
  margin: 12px 0 0;
  color: #4a3f2c;
  font-size: 15px;
  line-height: 1.85;
  max-width: 460px;
}

.catalog-hero-visual {
  display: none;
}

/* Catalog category strip — reuse circle-category-rail from home */

.catalog-category-strip {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto 28px;
  padding: 8px 0 32px;
  background: transparent;
  border-bottom: 0;
}

/* Catalog layout grid */

.catalog-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  align-items: start;
}

/* Filters panel — sticky sidebar (ux-smooth-2) */

.filters-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: none;
  padding: 0;
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid rgba(218, 197, 162, 0.6);
  box-shadow: 0 14px 32px rgba(72, 52, 22, 0.06);
  overflow: hidden;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, #fbf2dc 0%, #fdf6e6 100%);
  border-bottom: 1px solid rgba(218, 197, 162, 0.6);
}

.filters-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filters-head strong {
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.filters-active-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-rose);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.filters-reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9c8e75;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: color 180ms var(--ease-flow);
}

.filters-reset:hover {
  color: var(--brand-rose);
}

.filters-scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 122, 26, 0.3) transparent;
}

.filters-scroll::-webkit-scrollbar {
  width: 6px;
}

.filters-scroll::-webkit-scrollbar-thumb {
  background: rgba(184, 122, 26, 0.25);
  border-radius: 999px;
}

.filters-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 122, 26, 0.5);
}

.filters-panel .panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border: 0;
  background: transparent;
}

.filters-panel .panel-section + .panel-section {
  border-top: 1px solid rgba(218, 197, 162, 0.4);
}

.panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.filters-panel .panel-section-head h3 {
  margin: 0;
  color: #7a6a4a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-section-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(184, 122, 26, 0.18);
  color: var(--brand-amber-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Category list — left rail with active color bar */
.filters-panel .filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filters-panel .filter-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px 8px 12px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4a3f2c;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition:
    background 160ms var(--ease-flow),
    color 160ms var(--ease-flow),
    border-color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.filters-panel .filter-list button > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters-panel .filter-list button > small {
  flex: 0 0 auto;
  color: #9c8e75;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.filters-panel .filter-list button:hover {
  background: rgba(184, 122, 26, 0.08);
  color: var(--ink-strong);
}

.filters-panel .filter-list button.is-active {
  background: rgba(194, 90, 42, 0.1);
  border-left-color: var(--brand-rose);
  color: var(--brand-rose-deep);
  font-weight: 600;
}

.filters-panel .filter-list button.is-active > small {
  color: var(--brand-rose);
}

/* Chip lists — size & stock */
.filters-panel .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filters-panel .chip-list button {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(184, 122, 26, 0.35);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.8);
  color: #4a3f2c;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 160ms var(--ease-flow),
    border-color 160ms var(--ease-flow),
    color 160ms var(--ease-flow),
    transform 160ms var(--ease-flow);
}

.filters-panel .chip-list button:hover {
  border-color: var(--brand-rose);
  color: var(--brand-rose);
}

.filters-panel .chip-list button.is-active {
  background: var(--brand-rose);
  border-color: var(--brand-rose);
  color: #fffaf0;
}

.filters-panel .chip-list button.is-active:hover {
  background: var(--brand-rose-deep);
  border-color: var(--brand-rose-deep);
  color: #fffaf0;
}

@media (max-width: 1060px) {
  .filters-panel {
    position: static;
    max-height: none;
  }
}

/* Catalog toolbar rebuild */

.product-region {
  display: grid;
  gap: 22px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fdf8ec;
  border: 1px solid rgba(218, 197, 162, 0.5);
}

.catalog-toolbar-filters,
.catalog-toolbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-pill {
  padding: 8px 16px;
  border: 1px solid rgba(218, 197, 162, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.6);
  color: #4a3f2c;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 180ms var(--ease-flow), border-color 180ms var(--ease-flow), color 180ms var(--ease-flow);
}

.toolbar-pill:hover {
  background: rgba(255, 250, 240, 0.95);
  border-color: var(--ink-strong);
  color: var(--ink-strong);
}

.toolbar-sort {
  background: var(--ink-strong);
  color: #fffaf0;
  border-color: var(--ink-strong);
}

.toolbar-sort:hover {
  background: var(--brand-rose);
  border-color: var(--brand-rose);
  color: #fffaf0;
}

.product-region .view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(218, 197, 162, 0.7);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.6);
}

.product-region .view-switch .icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9c8e75;
  cursor: pointer;
  transition: background 180ms var(--ease-flow), color 180ms var(--ease-flow);
}

.product-region .view-switch .icon-button.is-active {
  background: var(--ink-strong);
  color: #fffaf0;
}

/* Product grid + cards rebuild */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}

.product-grid.is-list {
  grid-template-columns: 1fr;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 14px 18px;
  border: 1px solid rgba(218, 197, 162, 0.45);
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-med) var(--ease-flow), box-shadow var(--dur-med) var(--ease-flow), border-color var(--dur-fast) var(--ease-flow);
}

.product-card:hover {
  border-color: var(--clay);
  box-shadow: var(--shadow-hover);
}

.product-card .product-image {
  position: relative;
  display: block;
  aspect-ratio: 1;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, #f6ecd6 0%, #e9d4ad 100%);
  overflow: hidden;
  cursor: pointer;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 480ms var(--ease-flow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink-strong);
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    background 180ms var(--ease-flow),
    color 180ms var(--ease-flow),
    opacity 220ms var(--ease-flow),
    transform 220ms var(--ease-flow);
}

.product-card:hover .product-favorite,
.product-favorite:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-favorite:hover {
  background: var(--brand-rose);
  color: #fffaf0;
  transform: translateY(0) scale(1.06);
}

@media (hover: none) {
  .product-favorite {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-favorite.is-favorited {
  opacity: 1;
  transform: translateY(0);
  background: var(--brand-rose);
  color: #fffaf0;
}

.product-favorite.is-favorited svg {
  fill: currentColor;
  stroke: currentColor;
}

.detail-cta-row {
  margin: 6px 0 20px;
}
.detail-cta-row .primary-action {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
}

.koko-qr-link {
  display: inline-block;
  margin: 10px 0 4px;
  text-decoration: none;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(190, 168, 130, 0.45);
  box-shadow: 0 4px 14px rgba(60, 42, 22, 0.08);
  transition: transform 180ms var(--ease-flow), box-shadow 180ms var(--ease-flow);
}
.koko-qr-link:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(60, 42, 22, 0.14);
}
.koko-qr-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Push the product detail drawer aside when Koko opens, so they don't stack.
   Koko drawer is 480px wide (see .koko-drawer width). Translating exactly
   -480px makes detail drawer's right edge meet Koko's left edge — no gap. */
body.has-koko-open .detail-drawer.is-open {
  transform: translateX(min(-480px, -100vw));
}

@media (min-width: 900px) {
  body.has-koko-open .detail-drawer.is-open {
    transform: translateX(-480px);
  }
}

@media (max-width: 899px) {
  body.has-koko-open .detail-drawer.is-open {
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
  }
}

.toolbar-pill.toolbar-favorites {
  background: rgba(255, 250, 240, 0.6);
  color: #4a3f2c;
  border-color: rgba(218, 197, 162, 0.7);
}

.toolbar-pill.toolbar-favorites.is-active {
  background: var(--brand-rose);
  color: #fffdf6;
  border-color: var(--brand-rose);
}

.product-card .product-body {
  padding: 0 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-meta {
  margin: 0;
  color: #a39378;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card h4 {
  margin: 6px 0 4px;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  /* 固定 2 行高度，保证一行 / 两行标题的下方元素都对齐 */
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-spec {
  margin: 0 0 12px;
  color: #8e8474;
  font-size: 12px;
  line-height: 1.55;
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
}

.product-cart {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink-strong);
  color: #fffaf0;
  cursor: pointer;
  transition: background 200ms var(--ease-flow), transform 200ms var(--ease-flow);
}

.product-cart:hover {
  background: var(--brand-rose);
  transform: scale(1.06);
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 16px 0;
}

.pagination button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4a3f2c;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 180ms var(--ease-flow), color 180ms var(--ease-flow), border-color 180ms var(--ease-flow);
}

.pagination .page-num {
  border-color: rgba(218, 197, 162, 0.5);
  background: rgba(255, 250, 240, 0.5);
}

.pagination .page-num:hover {
  border-color: var(--ink-strong);
  background: rgba(255, 250, 240, 0.9);
}

.pagination .page-num.is-active {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #fffaf0;
}

.pagination .page-arrow {
  font-size: 18px;
  color: #4a3f2c;
}

.pagination .page-arrow:hover {
  background: rgba(255, 250, 240, 0.9);
}

.pagination .page-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}

.pagination .page-ellipsis {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  color: #8b7d5e;
  font-size: 14px;
}

/* Catalog search */

.catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(218, 197, 162, 0.55);
  background: #fffdf6;
  transition: border-color 160ms var(--ease-flow), box-shadow 160ms var(--ease-flow);
}

.catalog-search:focus-within {
  border-color: var(--ink-strong);
  box-shadow: 0 0 0 3px rgba(218, 197, 162, 0.25);
}

.catalog-search-icon {
  color: #8b7d5e;
  display: inline-flex;
}

.catalog-search input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink-strong, #2a2014);
  min-width: 0;
}

.catalog-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.catalog-search-meta {
  display: block;
  margin: 2px 4px 8px;
  color: #8b7d5e;
  font-size: 12px;
}

/* Catalog craft-values row sits flush, no horizontal padding */

.catalog-craft-values {
  width: min(1240px, calc(100% - 56px));
  margin: 56px auto 0;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    order: 0;
  }

  .product-region {
    order: 1;
  }

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

  .catalog-hero {
    background-size: cover;
    background-position: center;
  }

  .catalog-hero::before {
    background: linear-gradient(
      96deg,
      rgba(245, 232, 200, 0.95) 0%,
      rgba(245, 232, 200, 0.74) 36%,
      rgba(245, 232, 200, 0.28) 60%,
      rgba(245, 232, 200, 0) 84%
    );
  }
}

@media (max-width: 560px) {
  .catalog-hero {
    aspect-ratio: 4 / 3;
    max-height: none;
    padding: 28px 20px;
    background-size: cover;
    background-position: 70% center;
  }

  .catalog-hero::before {
    background: linear-gradient(
      180deg,
      rgba(245, 232, 200, 0.92) 0%,
      rgba(245, 232, 200, 0.5) 48%,
      rgba(245, 232, 200, 0.05) 100%
    );
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-toolbar-filters {
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .catalog-toolbar-end {
    justify-content: space-between;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ============================================================
   Phase 2 — Reference-style downstream blocks
   Categories · Best sellers · Craft values · Inspiration · About · Footer
   ============================================================ */

.home-category-section,
.home-featured,
.craft-values,
.inspiration-section,
.about-section {
  width: min(1240px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

/* Categories — refined round photo frames */

.home-category-section {
  padding: 44px 0 32px;
  border-bottom: 0;
  background: transparent;
}

.circle-category-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.category-medallion {
  width: clamp(88px, 8.4vw, 116px);
  background: linear-gradient(155deg, #f5ead4 0%, #e8d5b3 100%);
  box-shadow:
    inset 0 0 0 1px rgba(218, 197, 162, 0.7),
    0 14px 32px rgba(120, 92, 50, 0.1);
  transition: transform 380ms var(--ease-flow), box-shadow 380ms var(--ease-flow);
}

.circle-category-rail button:hover .category-medallion {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(218, 197, 162, 0.85),
    0 22px 42px rgba(120, 92, 50, 0.18);
}

.circle-category-rail strong {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-strong);
}

.circle-category-rail small {
  color: #9c8e75;
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* Best sellers — refined product cards */

.home-featured {
  padding: 36px 0 56px;
}

.home-product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.home-product-card {
  gap: 0;
  padding: 14px 14px 18px;
  border: 1px solid rgba(218, 197, 162, 0.45);
  border-radius: 10px;
  background: #fffaf0;
  transition: transform 380ms var(--ease-flow), box-shadow 380ms var(--ease-flow), border-color 280ms var(--ease-flow);
}

.home-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(218, 197, 162, 0.85);
  box-shadow: 0 24px 48px rgba(120, 92, 50, 0.14);
}

.home-product-image {
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(160deg, #f6ecd6 0%, #e9d4ad 100%);
  margin-bottom: 14px;
}

.home-product-image img {
  filter: none;
  mix-blend-mode: multiply;
}

.home-product-card > div:not(.home-card-foot) {
  padding: 0 2px;
}

.home-product-card p {
  color: #a39378;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-product-card h3 {
  min-height: 0;
  margin: 6px 0 4px;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.home-product-card small {
  display: block;
  color: #8e8474;
  font-size: 12px;
  line-height: 1.55;
}

.home-card-foot {
  margin-top: 14px;
  padding: 0 2px;
  align-items: center;
}

.home-card-foot strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
}

.home-card-foot button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--ink-strong);
  color: #fffaf0;
  font-size: 16px;
  font-weight: 700;
  transition: background 200ms var(--ease-flow), transform 200ms var(--ease-flow);
}

.home-card-foot button:hover {
  background: var(--brand-rose);
  transform: scale(1.06);
}

/* Craft values — line icons row */

.craft-values {
  margin-top: 24px;
  margin-bottom: 56px;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(218, 197, 162, 0.55);
  border-radius: 12px;
  background: #fdf8ec;
  overflow: hidden;
}

.craft-values div {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 4px 18px;
  min-height: 130px;
  padding: 28px 24px;
  border-right: 1px solid rgba(218, 197, 162, 0.45);
}

.craft-values div::before {
  display: none;
}

.craft-values div:last-child {
  border-right: 0;
}

.craft-values .value-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  grid-row: span 2;
  border-radius: 50%;
  background: linear-gradient(160deg, #f6ecd6 0%, #e8d5b3 100%);
  color: var(--brand-amber-deep);
}

.craft-values .value-icon svg {
  width: 26px;
  height: 26px;
}

.craft-values strong {
  align-self: end;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.craft-values p {
  align-self: start;
  margin: 0;
  color: #8e8474;
  font-size: 13px;
  line-height: 1.6;
}

/* Inspiration — 4 lifestyle scene tiles */

.inspiration-section {
  padding: 32px 0 56px;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.inspiration-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #efe2c8;
  transition: transform 480ms var(--ease-flow), box-shadow 380ms var(--ease-flow);
}

.inspiration-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(120, 92, 50, 0.18);
}

.inspiration-tile .tile-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 800ms var(--ease-flow);
}

.inspiration-tile:hover .tile-art {
  transform: scale(1.06);
}

.inspiration-tile .tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 23, 0) 50%, rgba(28, 31, 23, 0.55) 100%);
}

.tile-living .tile-art {
  background-image: url("assets/inspiration/living.jpg");
}

.tile-bedroom .tile-art {
  background-image: url("assets/inspiration/bedroom.jpg");
}

.tile-season .tile-art {
  background-image: url("assets/inspiration/season.jpg");
}

.tile-gift .tile-art {
  background-image: url("assets/inspiration/gift.jpg");
}

.inspiration-tile .tile-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 2px;
  color: #fffaf0;
}

.inspiration-tile .tile-label strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.inspiration-tile .tile-label small {
  color: rgba(255, 250, 240, 0.85);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* About WafaHome */

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 56px 0 80px;
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}

.about-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 40%, rgba(255, 245, 220, 0.55), transparent 65%),
    linear-gradient(155deg, #f1dec0 0%, #c9a877 50%, #6f5132 100%);
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.about-copy .eyebrow {
  margin: 0;
  color: var(--brand-amber-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.about-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-copy p {
  margin: 0;
  color: #6e675c;
  font-size: 15px;
  line-height: 1.9;
}

.about-copy .primary-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 26px;
  background: var(--ink-strong);
  color: #fffaf0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.about-copy .primary-action:hover {
  background: var(--brand-rose);
  transform: translateY(-2px);
}

.about-stats {
  display: grid;
  gap: 28px;
  padding-left: clamp(20px, 2vw, 36px);
  border-left: 1px solid var(--hairline);
}

.about-stats div {
  display: grid;
  gap: 4px;
  text-align: left;
}

.about-stats strong {
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.about-stats strong em {
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  margin-left: 2px;
  color: var(--clay-deep);
  font-family: var(--font-serif);
}

.about-stats span {
  color: var(--clay-deep);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Footer rebuild */

.site-footer {
  display: block;
  margin-top: 0;
  padding: 56px clamp(24px, 4vw, 64px) 24px;
  background: #f7eedc;
  border-top: 1px solid rgba(218, 197, 162, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.2fr);
  gap: clamp(28px, 3vw, 48px);
  width: min(1240px, 100%);
  margin: 0 auto;
}

.footer-brand-col {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer-brand-col .brand-wordmark {
  font-size: 24px;
}

.footer-brand-col p {
  margin: 0;
  color: #6e675c;
  font-size: 13px;
  line-height: 1.85;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(28, 31, 23, 0.06);
  color: var(--ink-strong);
  transition: background 200ms var(--ease-flow), color 200ms var(--ease-flow), transform 200ms var(--ease-flow);
}

.footer-social a:hover {
  background: var(--ink-strong);
  color: #fffaf0;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-col strong {
  margin-bottom: 4px;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-col a {
  color: #6e675c;
  font-size: 13px;
  line-height: 1.6;
  transition: color 180ms var(--ease-flow);
}

.footer-col a:hover {
  color: var(--brand-rose);
}

.footer-subscribe-col p {
  margin: 0;
  color: #6e675c;
  font-size: 13px;
  line-height: 1.6;
}

.footer-subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.footer-subscribe-form input {
  flex: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(218, 197, 162, 0.7);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--ink-strong);
  font-size: 13px;
}

.footer-subscribe-form input:focus {
  outline: none;
  border-color: var(--brand-rose);
}

.footer-subscribe-form button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--ink-strong);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms var(--ease-flow);
}

.footer-subscribe-form button:hover {
  background: var(--brand-rose);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, 100%);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(218, 197, 162, 0.55);
  color: #8a7e63;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-legal a {
  color: #8a7e63;
  margin: 0 4px;
  transition: color 180ms var(--ease-flow);
}

.footer-legal a:hover {
  color: var(--brand-rose);
}

/* Responsive: tablet & mobile */

@media (max-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .circle-category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }

  .inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-values div:nth-child(2) {
    border-right: 0;
  }

  .craft-values div:nth-child(1),
  .craft-values div:nth-child(2) {
    border-bottom: 1px solid rgba(218, 197, 162, 0.45);
  }

  .about-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about-stats {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 0;
    border-left: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(218, 197, 162, 0.55);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-col,
  .footer-subscribe-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inspiration-grid {
    grid-template-columns: 1fr;
  }

  .craft-values {
    grid-template-columns: 1fr;
  }

  .craft-values div {
    border-right: 0;
    border-bottom: 1px solid rgba(218, 197, 162, 0.45);
  }

  .craft-values div:last-child {
    border-bottom: 0;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   Koko side drawer — chat customer service
   ============================================================ */

.koko-fab {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(218, 197, 162, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.96);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(60, 42, 22, 0.22);
  backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease-flow), box-shadow 220ms var(--ease-flow);
}

.koko-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(60, 42, 22, 0.28);
}

.koko-fab-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #f6ecd6 0%, #e9d4ad 100%);
}

.koko-fab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.koko-fab-pulse {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid rgba(255, 250, 240, 0.96);
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
  animation: koko-pulse 2.4s ease-in-out infinite;
}

@keyframes koko-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); }
}

.koko-fab-bubble {
  display: inline-block;
  padding: 0 14px 0 10px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .koko-fab-bubble { display: none; }
  .koko-fab { padding: 4px; }
}

.koko-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(480px, 100vw);
  height: 100dvh;
  background: #fdf8ec;
  border-left: 1px solid rgba(218, 197, 162, 0.6);
  box-shadow: -24px 0 60px rgba(60, 42, 22, 0.16);
  transform: translateX(105%);
  transition: transform 320ms var(--ease-flow);
  visibility: hidden;
}

.koko-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.koko-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(218, 197, 162, 0.55);
  background: linear-gradient(180deg, #faf2dd, #fdf8ec);
}

.koko-drawer-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #f6ecd6 0%, #e9d4ad 100%);
  flex: 0 0 auto;
}

.koko-drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.koko-status-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid #fdf8ec;
}

.koko-drawer-meta {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.koko-drawer-meta strong {
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.koko-drawer-meta small {
  color: #8a7e63;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.koko-drawer .drawer-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #6e675c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms var(--ease-flow), color 180ms var(--ease-flow);
}

.koko-drawer .drawer-close:hover {
  background: rgba(60, 42, 22, 0.08);
  color: var(--ink-strong);
}

.koko-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fdf8ec;
  min-width: 0;
}

.koko-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.koko-msg.is-user {
  /* row-reverse flips children visual order (avatar ends up on the right of
     the bubble); justify-content uses the FLIPPED main axis, so flex-start
     (= main-start in row-reverse = right side) keeps the whole row pinned
     to the right. flex-end here would push the row to the LEFT. */
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.koko-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #f6ecd6 0%, #e9d4ad 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.koko-msg-avatar--user {
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
}

.koko-msg-avatar--blank::before {
  content: attr(data-initial);
  font-family: var(--font-serif);
  color: var(--muted);
}

.koko-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.koko-msg-bubble {
  display: block;
  width: max-content;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: keep-all;
  min-width: 0;
}

.koko-msg-bubble > * + * {
  margin-top: 8px;
}

.koko-msg.is-bot .koko-msg-bubble {
  background: #ffffff;
  color: var(--ink-strong);
  border: 1px solid rgba(218, 197, 162, 0.55);
  border-bottom-left-radius: 4px;
}

.koko-msg.is-user .koko-msg-bubble {
  background: var(--ink-strong);
  color: #fffaf0;
  border-bottom-right-radius: 4px;
}

/* Image-only / image+caption user bubbles: drop dark frame so the photo is the
   star (matches WhatsApp / iMessage). Caption sits underneath unstyled. */
.koko-msg.is-user .koko-msg-bubble:has(.koko-msg-image) {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.koko-msg.is-user .koko-msg-bubble:has(.koko-msg-image) .koko-msg-text {
  color: var(--ink-strong);
  font-size: 12px;
  text-align: right;
  padding: 4px 2px 0;
  opacity: 0.7;
}

.koko-msg-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 100%);
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

.koko-msg-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.static-page {
  padding: 56px 8% 96px;
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, #fffaf0 0%, #fdf5e3 100%);
}

.static-content {
  max-width: 760px;
  margin: 0 auto;
  color: #3c2a16;
  font-size: 15px;
  line-height: 1.7;
}

.static-content .eyebrow {
  margin: 0 0 12px;
  color: var(--brand-amber-deep, #b3793e);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.static-content h1 {
  margin: 0 0 28px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-strong, #2a2014);
}

.static-content h2 {
  margin: 36px 0 14px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-strong, #2a2014);
}

.static-content h3 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-strong, #2a2014);
}

.static-content p {
  margin: 12px 0;
}

.static-content ul {
  margin: 12px 0 18px 18px;
  padding: 0;
  list-style: disc outside;
}

.static-content li {
  margin: 6px 0;
}

.static-content a {
  color: var(--brand-amber-deep, #b3793e);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-content a.primary-action {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink-strong, #2a2014);
  color: #fffaee;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.static-content a.primary-action:hover {
  background: var(--brand-amber-deep, #b3793e);
}

.static-content .static-handoff {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(218, 197, 162, 0.55);
}

.static-content .static-note {
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(218, 197, 162, 0.18);
  border-left: 2px solid rgba(179, 121, 62, 0.45);
  border-radius: 4px;
  color: #6b5a3e;
  font-size: 12.5px;
  font-style: italic;
}

.static-loading {
  text-align: center;
  color: #8b7d5e;
  padding: 60px 0;
}

@media (max-width: 720px) {
  .static-page { padding: 36px 5% 60px; }
  .static-content h1 { font-size: 28px; }
  .static-content h2 { font-size: 18px; }
}

.quote-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.quote-cart-btn .quote-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-amber-deep, #b3793e);
  color: #fffaee;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.product-cart.is-in-cart {
  background: var(--brand-amber-deep, #b3793e);
  color: #fffaee;
}

.quote-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fffaf0;
  border-left: 1px solid rgba(218, 197, 162, 0.55);
  box-shadow: -16px 0 48px rgba(74, 63, 44, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms var(--ease-flow);
  z-index: 60;
}

.quote-cart-drawer.is-open {
  transform: translateX(0);
}

.quote-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(218, 197, 162, 0.55);
}

.quote-cart-meta strong {
  display: block;
  font-size: 16px;
  color: var(--ink-strong, #2a2014);
}

.quote-cart-meta small {
  display: block;
  margin-top: 2px;
  color: #8b7d5e;
  font-size: 12px;
}

.quote-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 6px;
}

.quote-cart-summary {
  margin-bottom: 10px;
  color: #6b5a3e;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.quote-cart-list {
  display: grid;
  gap: 10px;
}

.quote-cart-empty {
  padding: 32px 4px;
  color: #8b7d5e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.quote-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(218, 197, 162, 0.45);
  border-radius: 12px;
  background: #ffffff;
}

.quote-cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5ecd8;
}

.quote-cart-item-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quote-cart-item-meta strong {
  font-size: 13px;
  color: var(--ink-strong, #2a2014);
}

.quote-cart-item-meta span {
  font-size: 12px;
  color: #4f4434;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-cart-item-meta small {
  font-size: 11px;
  color: var(--brand-amber-deep, #b3793e);
  font-weight: 600;
}

.quote-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-cart-item-actions input[type="number"] {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid rgba(218, 197, 162, 0.55);
  border-radius: 8px;
  font: inherit;
  text-align: center;
  background: #fffaf0;
}

.quote-cart-remove {
  border: 0;
  background: transparent;
  color: #8b7d5e;
  font-size: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
}

.quote-cart-remove:hover {
  background: rgba(218, 197, 162, 0.35);
  color: var(--brand-amber-deep, #b3793e);
}

.quote-cart-footer {
  border-top: 1px solid rgba(218, 197, 162, 0.55);
  padding: 14px 20px 18px;
  background: #fdf8ec;
  display: grid;
  gap: 10px;
}

.quote-cart-footer textarea {
  resize: vertical;
  width: 100%;
  min-height: 56px;
  padding: 10px;
  border: 1px solid rgba(218, 197, 162, 0.55);
  border-radius: 10px;
  font: inherit;
  background: #fffaf0;
}

.quote-cart-footer .primary-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.quote-cart-footer .form-status {
  margin: 0;
  min-height: 16px;
  color: #8b7d5e;
  font-size: 12px;
}

.quote-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  padding: 9px 18px;
  background: var(--ink-strong, #2a2014);
  color: #fffaee;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(74, 63, 44, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms var(--ease-flow), transform 180ms var(--ease-flow);
  z-index: 70;
}

.quote-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.koko-product-cards {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.koko-product-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(218, 197, 162, 0.55);
  background: #fffdf6;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease-flow), background 160ms var(--ease-flow), transform 160ms var(--ease-flow);
}

.koko-product-card:hover {
  border-color: var(--brand-amber-deep, #b3793e);
  background: #fffaee;
  transform: translateY(-1px);
}

.koko-product-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5ecd8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.koko-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.koko-product-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.koko-product-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.koko-product-head strong {
  color: var(--ink-strong, #2a2014);
  letter-spacing: 0.02em;
}

.koko-product-head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #6b5a3e;
  background: rgba(218, 197, 162, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
}

.koko-product-name {
  font-size: 12.5px;
  color: #4f4434;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.koko-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.koko-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(218, 197, 162, 0.3);
  color: #5d5141;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.koko-chip.is-price {
  background: rgba(179, 121, 62, 0.15);
  color: var(--brand-amber-deep, #b3793e);
  font-weight: 600;
}

.koko-handoff-row {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.koko-handoff {
  appearance: none;
  border: 1px solid var(--brand-amber-deep, #b3793e);
  background: #fffaee;
  color: var(--brand-amber-deep, #b3793e);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), color 160ms var(--ease-flow);
  white-space: nowrap;
  min-width: max-content;
}

/* ===== Belt-and-suspenders: never let buttons inside the Koko drawer break
   Chinese text vertically (one character per line). Catches any future
   action chip / quick reply / quote-shortcut button regardless of class. */
.koko-drawer button,
.koko-drawer a.primary-action,
.koko-drawer a.secondary-action,
.koko-msg-bubble button,
.koko-msg-bubble a {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  min-width: max-content;
  flex-shrink: 0;
}
/* Exception: the textarea-like composer should still wrap normally. */
.koko-composer textarea,
.koko-composer input {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.koko-handoff:hover {
  background: var(--brand-amber-deep, #b3793e);
  color: #fffaee;
}

.koko-retry-row {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

.koko-retry {
  appearance: none;
  border: 1px solid rgba(94, 81, 65, 0.32);
  background: rgba(255, 250, 240, 0.6);
  color: var(--ink, #2d2a24);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), border-color 160ms var(--ease-flow);
}

.koko-retry:hover {
  background: var(--ink-strong, #1d1b16);
  border-color: var(--ink-strong, #1d1b16);
  color: #fffaee;
}

.koko-msg-image {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.koko-msg-image-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.78);
  color: #fffaee;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.koko-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.koko-typing i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(60, 42, 22, 0.5);
  animation: koko-typing 1.2s ease-in-out infinite;
}

.koko-typing i:nth-child(2) { animation-delay: 0.2s; }
.koko-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes koko-typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.koko-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: koko-blink 1s steps(2, start) infinite;
  opacity: 0.7;
}

@keyframes koko-blink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .koko-stream-cursor { animation: none; }
}

.koko-faq {
  padding: 8px 16px 4px;
  border-top: 1px solid rgba(218, 197, 162, 0.32);
}

.koko-faq[hidden] { display: none; }

.koko-faq-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(93, 81, 65, 0.72);
  margin-bottom: 6px;
}

.koko-faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.koko-faq-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(218, 197, 162, 0.6);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.55);
  color: #5d5141;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  transition: background 160ms var(--ease-flow), border-color 160ms var(--ease-flow), color 160ms var(--ease-flow), transform 160ms var(--ease-flow);
}

.koko-faq-chip:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #fffaf0;
  transform: translateY(-1px);
}

.koko-status-dot.is-off {
  background: #c4a87b;
  box-shadow: 0 0 0 2px rgba(196, 168, 123, 0.2);
}

.koko-status-dot.is-busy {
  background: #d99c52;
}

.koko-quickreplies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 16px 10px;
}

.koko-quickreplies button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(218, 197, 162, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.4);
  color: #5d5141;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), border-color 160ms var(--ease-flow), color 160ms var(--ease-flow);
}

.koko-quickreplies button svg {
  color: var(--brand-amber-deep);
  flex: 0 0 auto;
}

.koko-quickreplies button:hover {
  background: var(--ink-strong);
  border-color: var(--ink-strong);
  color: #fffaf0;
}

.koko-quickreplies button:hover svg {
  color: var(--brand-amber);
}

.koko-composer {
  border-top: 1px solid rgba(218, 197, 162, 0.55);
  padding: 10px 14px 14px;
  background: #fdf8ec;
}

.koko-attachments {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.koko-attachment {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(218, 197, 162, 0.55);
}

.koko-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.koko-attachment-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 31, 23, 0.78);
  color: #fffaf0;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.koko-composer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px;
  align-items: center;
  padding: 4px 6px 4px 8px;
  border: 1px solid rgba(218, 197, 162, 0.6);
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 180ms var(--ease-flow), box-shadow 180ms var(--ease-flow);
}

.koko-composer-row:focus-within {
  border-color: var(--ink-strong);
  box-shadow: 0 0 0 3px rgba(28, 31, 23, 0.06);
}

.koko-upload {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #8a7e63;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), color 160ms var(--ease-flow);
}

.koko-upload:hover {
  background: rgba(60, 42, 22, 0.08);
  color: var(--brand-rose);
}

.koko-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.koko-composer textarea {
  resize: none;
  width: 100%;
  min-height: 24px;
  max-height: 120px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  outline: 0;
}

.koko-composer textarea::placeholder {
  color: #a39378;
  font-size: 13px;
}

.koko-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink-strong);
  color: #fffaf0;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), transform 160ms var(--ease-flow);
  font-size: 0;
}

.koko-send:hover {
  background: var(--brand-rose);
  transform: scale(1.06);
}

.koko-send svg {
  display: block;
}

@media (max-width: 560px) {
  .koko-drawer {
    width: 100vw;
  }
}

/* real-data-2 — headline price + click-to-detail affordance */

.product-detail-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 37, 32, 0.78);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  backdrop-filter: blur(4px);
  transition:
    opacity 220ms var(--ease-flow),
    transform 220ms var(--ease-flow),
    background 200ms var(--ease-flow);
}

.product-card:hover .product-detail-hint,
.home-product-card:hover .product-detail-hint,
.product-image:focus-visible .product-detail-hint,
.home-product-image:focus-visible .product-detail-hint {
  opacity: 1;
  transform: translateY(0);
  background: var(--brand-rose);
}

@media (hover: none) {
  .product-detail-hint {
    opacity: 0.92;
    transform: translateY(0);
  }
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-price-block .product-price,
.product-price-block strong {
  color: var(--brand-rose);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.product-price-hint {
  color: #8b7d5e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.catalog-tip-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(95deg, #f6efe2 0%, #ead9c2 100%);
  border: 1px solid var(--hairline);
  color: var(--clay-deep);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
  animation: catalog-tip-in var(--dur-med) var(--ease-flow) both;
}

.catalog-tip-banner.is-leaving {
  animation: catalog-tip-out 280ms var(--ease-flow) forwards;
}

.catalog-tip-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(184, 122, 26, 0.18);
  color: var(--brand-amber-deep);
}

.catalog-tip-text {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-tip-dismiss {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid rgba(184, 122, 26, 0.4);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.85);
  color: var(--brand-amber-deep);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), border-color 160ms var(--ease-flow), color 160ms var(--ease-flow);
}

.catalog-tip-dismiss:hover {
  background: var(--brand-amber-deep);
  border-color: var(--brand-amber-deep);
  color: #fffaf0;
}

@keyframes catalog-tip-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes catalog-tip-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 560px) {
  .catalog-tip-banner {
    flex-wrap: wrap;
  }
  .catalog-tip-text {
    flex: 1 1 100%;
    order: 2;
  }
  .catalog-tip-dismiss {
    margin-left: auto;
    order: 3;
  }
}

/* ux-smooth-1 — mobile perf + motion hygiene */
@media (max-width: 720px) {
  .site-header,
  .toolbar,
  .panel-section,
  .quote-cart-drawer,
  .koko-drawer,
  .product-favorite {
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .home-product-card,
  .hero-feature-card,
  .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
  }

  .product-grid {
    transition: none;
  }

  .product-image::before {
    animation: none;
  }
}

/* HOT badge + sales count + popular sort (real-data-2) */
.product-hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d44b3d 0%, #b8321f 100%);
  color: #fffdf6;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(184, 50, 31, 0.32);
  pointer-events: none;
}

.product-sold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  color: #b8321f;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.product-sold::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d44b3d;
  box-shadow: 0 0 0 2px rgba(212, 75, 61, 0.18);
}

.home-product-card .product-sold {
  margin-top: 6px;
  font-size: 12px;
}

.product-card.is-hot {
  border-color: rgba(212, 75, 61, 0.3);
}

.product-card.is-hot:hover {
  border-color: #d44b3d;
}

.toolbar-pill.toolbar-sort {
  position: relative;
  padding-right: 28px;
  background: rgba(255, 250, 240, 0.6);
  color: #4a3f2c;
  border-color: rgba(218, 197, 162, 0.7);
}

.toolbar-pill.toolbar-sort::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.65;
}

.toolbar-pill.toolbar-sort.is-active {
  background: var(--brand-rose);
  color: #fffdf6;
  border-color: var(--brand-rose);
}

.toolbar-pill.toolbar-sort.is-active::after {
  content: "★";
  opacity: 1;
}

.catalog-toolbar-hint {
  display: inline-block;
  padding: 6px 4px;
  color: #8a7e63;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ===== Account inquiry history drawer ===== */

.account-action {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms var(--ease-flow), border-color 160ms var(--ease-flow);
  display: none;
}

/* ===== Avatar upload row in account drawer ===== */
.auth-avatar-row {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 14px;
}

.auth-panel.is-authenticated .auth-avatar-row {
  display: flex;
}

.auth-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-warm);
  border: 1px solid var(--hairline);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--muted);
  font-size: 22px;
  font-weight: 600;
  overflow: hidden;
}

.auth-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-avatar-actions {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.auth-avatar-upload {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--clay);
  background: var(--surface);
  color: var(--clay-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-flow), color var(--dur-fast) var(--ease-flow);
}

.auth-avatar-upload:hover {
  background: var(--clay);
  color: #fff8ec;
}

.auth-avatar-clear {
  align-self: flex-start;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--brand-rose-deep);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-avatar-hint {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.account-action:hover {
  background: #fff5e0;
  border-color: var(--brand-amber-deep, #b3793e);
}

.auth-form.is-authenticated .authed-only {
  display: block;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: #fffaf0;
  border-left: 1px solid rgba(218, 197, 162, 0.55);
  box-shadow: -16px 0 48px rgba(74, 63, 44, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms var(--ease-flow);
  z-index: 65;
}

.history-drawer.is-open {
  transform: translateX(0);
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(218, 197, 162, 0.55);
}

.history-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-strong, #2a2014);
}

.history-meta small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.history-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.history-status {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
}

.history-empty {
  text-align: center;
  padding: 32px 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-entry {
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.history-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.history-tag--handoff {
  background: #fde6c6;
  color: #8a4d12;
}

.history-row-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.history-question p,
.history-reply p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}

.history-question p {
  color: var(--ink-strong, #2a2014);
  font-weight: 600;
}

.history-reply {
  border-left: 3px solid var(--brand-amber-deep, #b3793e);
  background: #fff5e0;
  padding: 10px 12px;
}

.history-products-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.history-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 140ms var(--ease-flow), border-color 140ms var(--ease-flow), box-shadow 140ms var(--ease-flow);
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-amber-deep, #b3793e);
  box-shadow: 0 6px 16px rgba(74, 63, 44, 0.12);
}

.history-card-thumb {
  aspect-ratio: 1 / 1;
  background: #f4ead8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-card-img--placeholder {
  font-size: 26px;
  color: #c9b896;
}

.history-card-meta {
  display: grid;
  gap: 2px;
  padding: 6px 8px 10px;
}

.history-card-meta strong {
  font-size: 13px;
  color: var(--ink-strong, #2a2014);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.history-card-sku {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-card-price {
  font-size: 12px;
  color: var(--brand-amber-deep, #b3793e);
  font-weight: 700;
}

.history-entry-foot {
  display: flex;
  justify-content: flex-end;
}

.history-entry-foot .text-link {
  background: none;
  border: none;
  color: var(--brand-amber-deep, #b3793e);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.history-entry-foot .text-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .history-drawer {
    max-width: 100%;
  }
  .history-products {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

/* ===== Price tier badge on product cards (U3) ===== */
.price-tier-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: middle;
  cursor: help;
  font-family: var(--font-sans);
  font-feature-settings: normal;
  font-variant-numeric: normal;
}
.price-tier-badge--bulk {
  background: var(--clay-deep);
  color: #fff8ec;
}
.price-tier-badge--wholesale {
  background: var(--mist);
  color: #fff8ec;
}
.price-tier-badge--standard {
  background: var(--surface-warm);
  color: var(--muted);
}

/* ===== Inquiry flow strip on home page (U2) ===== */
.inquiry-flow {
  padding: 56px clamp(20px, 4vw, 56px) 64px;
  display: grid;
  gap: 28px;
}
.inquiry-flow-head {
  display: grid;
  gap: 8px;
  text-align: center;
}
.inquiry-flow-head .eyebrow {
  margin: 0;
  color: var(--clay-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.inquiry-flow-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.02em;
}
.inquiry-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.inquiry-flow-steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clay), transparent);
  pointer-events: none;
}
.inquiry-flow-step {
  display: grid;
  gap: 14px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.inquiry-flow-num {
  margin: 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--clay-deep);
  background: var(--surface);
  border: 1px solid var(--clay);
  border-radius: 50%;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  position: relative;
  z-index: 1;
}
.inquiry-flow-text {
  display: grid;
  gap: 6px;
}
.inquiry-flow-text strong {
  color: var(--ink-strong);
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
}
.inquiry-flow-text small {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 28ch;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .inquiry-flow-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .inquiry-flow-steps::before {
    display: none;
  }
  .inquiry-flow-step {
    padding: 18px 12px;
  }
}

/* ===== 站点轮播（员工后台多图轮播位：首页大图 / 目录页 Banner）===== */
.site-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.site-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-7%);
  transition:
    opacity 900ms var(--ease-flow),
    transform 1100ms var(--ease-flow);
  will-change: opacity, transform;
}
.site-carousel-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}
.site-carousel-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 9px;
}
.site-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background 200ms ease, transform 200ms ease;
}
.site-carousel-dot:hover { background: rgba(255, 255, 255, 0.8); }
.site-carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}
