/* YUSHANG JEWELRY — site stylesheet */

:root {
  --ink: #14110f;
  --ink-soft: #3a3532;
  --paper: #fbfaf7;
  --paper-warm: #f4f1ea;
  --gold: #b08d57;
  --gold-soft: #d8c3a0;
  --muted: #6e6a63;
  --line: #e2ddd3;
  --max: 1180px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.08;
}
h1.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2.display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3.display { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.75;
}

.rule { height: 1px; background: var(--line); border: 0; }

.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 40px 0 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand-text {
  font-family: var(--serif); font-size: 1.65rem; letter-spacing: 0.06em;
  line-height: 1; padding-top: 4px;
}
.brand .brand-text { display: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft);
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--paper); }
.nav a.btn:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border: 1px solid var(--ink);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  transition: background .22s, color .22s, border-color .22s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 0.7rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: #1b1714 center/cover no-repeat;
  opacity: 0.62;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,11,9,.88) 0%, rgba(14,11,9,.58) 48%, rgba(14,11,9,.24) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(84px, 13vw, 150px) 0 clamp(70px, 10vw, 120px);
  max-width: 760px;
}
.hero h1 { margin: 22px 0 24px; color: #fff; }
.hero p { color: rgba(255,255,255,.82); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-alt { background: var(--paper-warm); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { margin: 18px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong {
  display: block; font-family: var(--serif); font-size: 1.55rem;
  font-weight: 500; letter-spacing: 0.01em; margin-bottom: 6px;
}
.stat span { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- cards ---------- */
.card { display: block; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper-warm);
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .7s ease;
}
.card:hover .card-media img { transform: scale(1.02); }
.card-media.is-empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f0ece3, #f0ece3 10px, #eae5db 10px, #eae5db 20px);
}
.card-media.is-empty::after {
  content: attr(data-label); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #a89e8d; text-align: center; padding: 0 14px;
}
.card-body { padding-top: 16px; }
.card-body h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; }
.card-body p { font-size: 0.84rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }

.card-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 40px 28px;
  border: 1px dashed var(--gold-soft); background: var(--paper-warm);
  transition: border-color .22s, background .22s;
}
.card-cta:hover { border-color: var(--gold); background: #f0ece3; }
.card-cta span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-cta strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.card-cta em { font-size: 0.84rem; font-style: normal; color: var(--muted); max-width: 26ch; line-height: 1.6; }

/* ---------- product range blocks ---------- */
.range-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.range-head h2 { margin: 12px 0 0; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }

.pcard { display: block; }
.pcard-media {
  aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  border: 1px solid var(--line); margin-bottom: 14px;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-name {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 500;
  line-height: 1.35; color: var(--ink); margin-bottom: 6px;
}
.pcard-price { font-size: 0.9rem; color: var(--gold); letter-spacing: 0.01em; }
.pcard-moq {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

.range-link {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--gold);
  padding-bottom: 3px; transition: color .2s; white-space: nowrap;
}
.range-link:hover { color: var(--gold); }

/* ---------- feature list ---------- */
.feature { padding: 30px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.feature h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; }
.feature p { font-size: 0.92rem; color: var(--muted); max-width: 46ch; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media { aspect-ratio: 4 / 3; background: var(--paper-warm); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- details table ---------- */
.qc-list { margin-top: 18px; }
.qc-list li {
  position: relative; padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--ink-soft);
}
.qc-list li:first-child { border-top: 1px solid var(--line); }
.qc-list li::before {
  content: ""; position: absolute; left: 2px; top: 23px;
  width: 7px; height: 7px; border-radius: 50%;
}
.qc-list--reject li::before { background: #a8443a; }
.qc-list--accept li::before { background: var(--gold); }

.details { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.details th, .details td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.details th {
  width: 34%; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); padding-right: 20px;
}
.details td { color: var(--ink-soft); }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-band .display { color: #fff; margin: 18px 0 16px; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 54ch; margin: 0 auto; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; margin-top: 32px; }
.cta-band .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500;
  margin: 46px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 32px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose ul { margin: 0 0 18px 0; }
.prose li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--gold); }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300;
  padding: 13px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 0; width: 100%; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.78rem; color: var(--muted); }

/* ---------- contact block ---------- */
.contact-list { display: grid; gap: 26px; }
.contact-item { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-item dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-item dd { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.65; }
.contact-item a:hover { color: var(--gold); }


/* ---------- basket ---------- */
.basket {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft);
}
.basket span {
  display: inline-block; min-width: 19px; padding: 1px 6px;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 0.68rem; font-weight: 500; text-align: center; line-height: 1.5;
}
.basket span[data-empty="true"] { display: none; }

.basket--compact {
  display: none; align-items: center; gap: 5px;
  color: var(--ink); padding: 6px 2px;
}
.basket--compact svg { display: block; }

.pcard-add {
  margin-top: 10px; width: 100%; padding: 9px 8px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: border-color .2s, color .2s, background .2s;
}
.pcard-add:hover { border-color: var(--gold); color: var(--gold); }
.pcard-add.is-added { background: var(--gold); border-color: var(--gold); color: #fff; }

.pcard-name a:hover { color: var(--gold); }
.pcard-media { display: block; }

.basket-table { width: 100%; border-collapse: collapse; margin-top: 34px; }
.basket-table td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.b-img { width: 104px; }
.b-img img { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.b-name { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); padding-right: 20px; }
.b-price { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }
.b-qty input {
  width: 74px; padding: 9px 10px; border: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink); background: #fff;
}
.b-del { width: 42px; text-align: right; }
.b-del button {
  background: none; border: 0; cursor: pointer; font-size: 1.5rem;
  line-height: 1; color: #b9b3a8;
  width: 38px; height: 38px; display: inline-flex;
  align-items: center; justify-content: center;
}
.b-del button:hover { color: #a8443a; }

.basket-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.basket-clear {
  background: none; border: 0; cursor: pointer; padding: 0 0 3px;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.basket-clear:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- payment terms ---------- */
.pay-terms { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.pay-terms h4 {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px; font-weight: 500;
}
.pay-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-badges li {
  border: 1px solid rgba(255,255,255,.22); padding: 8px 14px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.pay-note { margin-top: 14px; font-size: 0.76rem; color: rgba(255,255,255,.42); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 68px 0 30px; font-size: 0.86rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 34ch; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px; font-weight: 500;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.76rem; color: rgba(255,255,255,.44);
}

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.max-56 { max-width: 56ch; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery figure:first-child { grid-column: span 3; grid-row: auto; aspect-ratio: 4/3; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 64px; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 24px 20px 30px; gap: 20px;
    transform: translateY(-120%); transition: transform .3s ease; z-index: 40;
  }
  .nav.is-open { transform: translateY(0); }
  .nav .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .basket--compact { display: inline-flex; margin-left: auto; }
  .grid-2, .grid-3, .grid-4, .split, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: span 2; }
  .details th { width: 42%; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .range-head { margin-bottom: 24px; }
  .basket-table td { padding: 12px 0; }
  .b-img { width: 68px; }
  .b-img img { width: 60px; height: 60px; }
  .b-name { font-size: 0.95rem; padding-right: 10px; }
  .b-qty input { width: 56px; padding: 7px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-inner { padding-top: 72px; padding-bottom: 84px; }
  .hero-actions { gap: 12px; }
}
