/* XINYUE TEXTILE — front-end stylesheet
   Style: soft cream / light-luxury, plum accent taken from the logo.
   This file lives OUTSIDE the CMS template on purpose. */

:root {
  --bg: #faf6ef;
  --bg-deep: #f2e9dc;
  --surface: #fffdf9;
  --ink: #241a20;
  --muted: #6d6067;
  --plum: #6b2350;
  --rose: #a8447a;
  --plum-soft: #f3e4ec;
  --line: rgba(36, 26, 32, 0.12);
  --line-strong: rgba(36, 26, 32, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px -28px rgba(52, 24, 40, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 860px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--plum);
  opacity: 0.5;
}

.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(250, 246, 239, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
/* the supplied logo is a square lockup (lotus + wordmark); the header shows the lotus only */
.brand-mark { display: block; flex: none; height: 34px; }
.brand-mark img { height: 34px; width: auto; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.brand-tag { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.7rem; font-size: 0.9rem; }
.nav a { color: var(--muted); padding: 0.2rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--ink); border-color: var(--plum); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; border-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: #571b41; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.8rem; font-size: 0.8rem; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: clamp(2.6rem, 5vw, 4.6rem) 0 clamp(2rem, 4vw, 3.4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1.9rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-meta span { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, #fffaf2 0%, rgba(255, 250, 242, 0) 60%),
    linear-gradient(160deg, #efe0cf 0%, #e6d3c4 38%, #d9bfb3 70%, #c9a9a6 100%);
  box-shadow: var(--shadow);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* soft pleat folds, drawn with repeating gradients — no stock photo */
.hero-visual::before {
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.32) 0 3px, rgba(255, 255, 255, 0) 3px 26px),
    repeating-linear-gradient(84deg, rgba(107, 35, 80, 0.06) 0 18px, rgba(107, 35, 80, 0) 18px 54px);
  mix-blend-mode: soft-light;
}
.hero-visual::after {
  background: linear-gradient(to top, rgba(36, 26, 32, 0.28), rgba(36, 26, 32, 0) 55%);
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  background: rgba(255, 253, 249, 0.94);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6);
}

/* ── strips ─────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.strip-item { background: var(--surface); padding: 1.5rem 1.4rem; }
.strip-item strong { display: block; font-family: var(--serif); font-size: 1.02rem; margin-bottom: 0.3rem; }
.strip-item span { font-size: 0.82rem; color: var(--muted); }

section { padding: clamp(2.8rem, 5vw, 4.4rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { margin: 0; }

/* ── product grid ───────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #efe1d2, #e3cdbd 55%, #d8bdb4);
  position: relative;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-empty::after {
  content: "Photo pending";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(107, 35, 80, 0.55);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 22px),
    linear-gradient(150deg, #f2e6d8, #e4cfbf 60%, #d9c0b6);
}
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-cat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); }
.card-title { font-family: var(--serif); font-size: 1.12rem; margin: 0; }
.card-summary { font-size: 0.86rem; color: var(--muted); margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 0.35rem; }
.price { font-size: 0.9rem; font-weight: 600; }
.moq { font-size: 0.76rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}
.chip.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: var(--surface);
  flex: 0 1 340px;
  min-width: 240px;
}
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 0.86rem; width: 100%; min-width: 0; flex: 1; }

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── about / split ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}
.panel h3 { margin-top: 0; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li { font-size: 0.9rem; }
.info-list b { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.15rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.value:first-child { border-left: 0; padding-left: 0; }
.value h3 { font-size: 1.05rem; }
.value p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ── product detail ─────────────────────────────────────── */
.crumbs { font-size: 0.78rem; color: var(--muted); padding: 1.6rem 0 0; }
.crumbs a:hover { color: var(--plum); }
.detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; padding-top: 1.4rem; }
.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #efe1d2, #e3cdbd 55%, #d8bdb4);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.thumb { width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #eee1d4; cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--plum); }

.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-size: 0.88rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.4rem 0 1rem; }
.price-row .big { font-family: var(--serif); font-size: 1.5rem; }
.tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); background: var(--plum-soft); padding: 0.25rem 0.6rem; border-radius: 999px; }
.prose { font-size: 0.95rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.3rem; }
.prose ul { padding-left: 1.1rem; }

/* ── forms ──────────────────────────────────────────────── */
.inquiry-band { background: linear-gradient(170deg, #f6ece0, #f1e0d6 55%, #ecd9d3); border-block: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(107, 35, 80, 0.1); }
.field textarea { min-height: 118px; resize: vertical; }
.form-note { font-size: 0.76rem; color: var(--muted); margin: 0.8rem 0 0; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 320px;
}
.toast.is-on { opacity: 1; transform: translateY(0); }
.toast.is-err { background: #7d2230; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { background: #1f1620; color: #e8dfe4; padding: 3rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #b9a3b3; font-family: var(--sans); margin-bottom: 0.9rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p, .site-footer li { font-size: 0.85rem; color: #cbbec6; }
/* on the dark footer the jpg emblem sits on a cream tile so its white background reads as a badge */
.footer-brand .brand-mark {
  height: auto;
  background: #f7f1e7; border-radius: 10px; padding: 9px 11px;
  display: inline-block; margin-bottom: 0.9rem;
}
.footer-brand .brand-mark img { height: 30px; width: auto; mix-blend-mode: multiply; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.4rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.76rem; color: #9c8b96; flex-wrap: wrap; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .split, .detail { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; border-radius: var(--radius); max-height: 420px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .value { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .value:first-child { border-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 26px 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(52, 24, 40, 0.5);
  }
}

@media (max-width: 620px) {
  .grid-products { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 66px; }
  .toolbar { align-items: stretch; }
  .search { flex: 1 1 100%; min-width: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
