/* ==========================================================================
   Huaming Fabric — Design System v3.0
   "Modern Mill": premium B2B textile manufacturer aesthetic
   Display serif (Fraunces) + Inter, ivory/bronze/espresso palette
   ========================================================================== */

:root {
  /* Palette */
  --paper: #F8F5EF;
  --paper-deep: #F1EBE0;
  --surface: #FFFFFF;
  --ink: #211B14;
  --ink-soft: #4A4238;
  --muted: #7C7266;
  --bronze: #9C6D3C;
  --bronze-dark: #7D5530;
  --bronze-tint: #F0E7D8;
  --border: #E7E0D2;
  --dark: #231D16;
  --dark-soft: #2E271E;
  --success: #4F7A5E;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, -apple-system, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 110px);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* Shadows */
  --shadow-s: 0 1px 3px rgba(33, 27, 20, 0.06);
  --shadow-m: 0 10px 30px -12px rgba(33, 27, 20, 0.18);
  --shadow-l: 0 24px 60px -20px rgba(33, 27, 20, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--bronze); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--bronze); color: #fff; }

/* ── Layout helpers ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-deep); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark); color: rgba(255,255,255,0.85); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* ── Eyebrow + section header ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
}
.section--dark .eyebrow { color: var(--bronze-tint); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.section--dark .section-desc { color: rgba(255,255,255,0.65); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn--primary {
  background: var(--bronze);
  color: #fff !important;
}
.btn--primary:hover {
  background: var(--bronze-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}
.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink) !important;
}
.btn--outline:hover { background: var(--ink); color: #fff !important; }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff !important;
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn--light {
  background: #fff;
  color: var(--ink) !important;
}
.btn--light:hover { background: var(--bronze-tint); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
}
a.topbar__item:hover { color: var(--bronze-tint); }
.topbar__item svg { opacity: 0.7; }
@media (max-width: 720px) {
  .topbar__item--hide-mobile { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-s);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-logo img { max-height: 48px; width: auto; }
.site-logo .logo-dot { color: var(--bronze); }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--bronze);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}
.header-icon-btn:hover {
  color: #25D366;
  border-color: #25D366;
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header__quote { display: none; }
}

/* Mobile toggle + menu */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
@media (max-width: 960px) { .menu-toggle { display: inline-flex; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--paper);
  padding: 16px var(--gutter) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 16px; }

/* ==========================================================================
   Hero (front page)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(25,20,14,0.88) 0%, rgba(25,20,14,0.55) 55%, rgba(25,20,14,0.25) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) 0;
  max-width: 720px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-tint);
  margin-bottom: 22px;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--bronze); }
.hero__title {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 500;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--bronze-tint);
}
.hero__desc {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: clamp(36px, 6vh, 60px);
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.hero__cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}
.hero__cert svg { color: var(--bronze); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.stat__num sup { color: var(--bronze); font-size: 0.55em; }
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { padding: 24px 12px; }
}

/* ==========================================================================
   Collection cards
   ========================================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.collection-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--dark);
  aspect-ratio: 4 / 4.6;
  display: block;
}
.collection-card:nth-child(1),
.collection-card:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 2.75; }
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.collection-card:hover img { transform: scale(1.05); opacity: 0.75; }
.collection-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  background: linear-gradient(transparent, rgba(25,20,14,0.82) 45%);
  color: #fff;
}
.collection-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
}
.collection-card__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 10px;
}
.collection-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze-tint);
}
.collection-card__meta .arrow { transition: transform 0.25s var(--ease); }
.collection-card:hover .collection-card__meta .arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-card,
  .collection-card:nth-child(1),
  .collection-card:nth-child(2) { grid-column: auto; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 560px) {
  .collections-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Why / feature cards
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--bronze-tint);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bronze-tint);
  color: var(--bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 28px 24px;
  border-top: 2px solid var(--bronze);
  background: var(--surface);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  box-shadow: var(--shadow-s);
}
.process-step__num {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  color: var(--bronze-tint);
  -webkit-text-stroke: 1px var(--bronze);
  font-weight: 600;
  margin-bottom: 14px;
}
.process-step__title {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-step__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Product cards (shared: home grid + shop loop)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.fabric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.fabric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
}
.fabric-card__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--paper-deep);
}
.fabric-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.fabric-card:hover .fabric-card__media img { transform: scale(1.06); }
.fabric-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(248,245,239,0.94);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.fabric-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fabric-card__title {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.fabric-card__title a { color: var(--ink); }
.fabric-card__title a:hover { color: var(--bronze-dark); }
.fabric-card__sku {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.fabric-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bronze-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fabric-card__cta .arrow { transition: transform 0.25s var(--ease); }
.fabric-card:hover .fabric-card__cta .arrow { transform: translateX(4px); }

/* WooCommerce loop resets to reuse .fabric-card */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { ul.products { grid-template-columns: 1fr; } }
ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

/* ==========================================================================
   Factory split section
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bronze-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D5530' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--dark .check-list li { color: rgba(255,255,255,0.82); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__stars { display: flex; gap: 3px; color: var(--bronze); }
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.testimonial__who { margin-top: auto; }
.testimonial__role {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.testimonial__org {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(156,109,60,0.35), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(156,109,60,0.22), transparent 70%);
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-band__title {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 16px;
}
.cta-band__desc {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  margin-bottom: 32px;
}
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.66);
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(48px, 7vw, 80px) 0 48px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer__logo .logo-dot { color: var(--bronze); }
.footer__desc { line-height: 1.7; max-width: 300px; }
.footer__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__links a { color: rgba(255,255,255,0.66); }
.footer__links a:hover { color: var(--bronze-tint); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: 0 0 auto; margin-top: 3px; opacity: 0.6; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s var(--ease);
}
.footer__social a:hover { border-color: var(--bronze); color: var(--bronze-tint); transform: translateY(-2px); }

/* ==========================================================================
   Sub-page hero band (About / Contact / Shop)
   ========================================================================== */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(156,109,60,0.3), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero__title {
  font-size: clamp(32px, 4.6vw, 52px);
  color: #fff;
  margin-bottom: 14px;
}
.page-hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.hm-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.hm-breadcrumb a { color: var(--muted); }
.hm-breadcrumb a:hover { color: var(--bronze-dark); }
.hm-breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ==========================================================================
   Timeline (About)
   ========================================================================== */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 32px;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 34px 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--bronze);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--bronze-dark);
  display: block;
  margin-bottom: 4px;
}
.timeline__title { font-weight: 600; font-size: 16px; display: block; margin-bottom: 4px; }
.timeline__desc { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -52px;
  position: relative;
  z-index: 5;
}
@media (max-width: 960px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  box-shadow: var(--shadow-m);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bronze-tint);
  color: var(--bronze-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.contact-card__title { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-card__value { font-size: 15px; color: var(--ink); font-weight: 500; margin: 0; word-break: break-word; }
.contact-card__note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-m);
}
.form-card__title { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.form-card__desc { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(156,109,60,0.15);
  background: #fff;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-alert {
  padding: 13px 16px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-alert--success { background: #E9F2EB; color: var(--success); border: 1px solid #C6DCCD; }
.form-alert--error { background: #F9E9E7; color: #A13D2D; border: 1px solid #EFC9C2; }

.side-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.side-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.side-list svg { flex: 0 0 auto; color: var(--bronze-dark); margin-top: 2px; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px;
  background: var(--bronze-tint);
  border-radius: var(--radius-m);
}
.mini-stat { text-align: center; }
.mini-stat__num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); display: block; }
.mini-stat__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   FAQ (details/summary accordion)
   ========================================================================== */
.faq-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--bronze-dark);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Shop archive
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.shop-sidebar { display: grid; gap: 20px; }
.shop-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
}
.shop-widget__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.shop-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.shop-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius-s);
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease);
}
.shop-cat-list a:hover,
.shop-cat-list .is-active a { background: var(--bronze-tint); color: var(--ink); }
.shop-cat-list .count { font-size: 12px; color: var(--muted); }

.shop-rfq-card {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-m);
  padding: 24px 22px;
}
.shop-rfq-card h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.shop-rfq-card p { font-size: 13.5px; margin-bottom: 16px; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.shop-toolbar__count { font-size: 14px; color: var(--muted); }
.shop-toolbar__count strong { color: var(--ink); }
.woocommerce-ordering select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
}

nav.woocommerce-pagination { margin-top: 44px; }
nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none !important;
  margin: 0;
  padding: 0;
  border: 0 !important;
}
nav.woocommerce-pagination ul li {
  border: 0 !important;
  margin: 0 !important;
  float: none !important;
}
nav.woocommerce-pagination a,
nav.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-s);
  background: var(--surface) !important;
  color: var(--ink-soft) !important;
  font-size: 14px;
  font-weight: 500;
}
nav.woocommerce-pagination span.current,
nav.woocommerce-pagination a:hover {
  background: var(--bronze) !important;
  border-color: var(--bronze) !important;
  color: #fff !important;
}

.woocommerce-result-count { display: none; }

/* ==========================================================================
   Single product
   ========================================================================== */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

.product-gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: var(--shadow-s);
}
.product-gallery-card .woocommerce-product-gallery__image {
  border-radius: var(--radius-m);
  overflow: hidden;
}
.product-gallery-card img { border-radius: var(--radius-m); }
.product-gallery-card .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.product-gallery-card .flex-control-thumbs li {
  width: 76px;
  cursor: pointer;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 2px solid transparent;
}
.product-gallery-card .flex-control-thumbs li.flex-active,
.product-gallery-card .flex-control-thumbs li:hover { border-color: var(--bronze); }
.product-gallery-card .onsale { display: none; }

.product-summary .product_title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
}
.product-summary .woocommerce-product-details__short-description {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.product-summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 24px;
}
.product-summary .product_meta a { color: var(--bronze-dark); }

.hm-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 22px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.hm-spec-table th,
.hm-spec-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.hm-spec-table tr:last-child th,
.hm-spec-table tr:last-child td { border-bottom: 0; }
.hm-spec-table th {
  width: 42%;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}
.hm-spec-table td { font-weight: 600; color: var(--ink); }

.rfq-panel {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-m);
  padding: 26px 26px 24px;
  margin-top: 26px;
}
.rfq-panel__title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.rfq-panel__desc { font-size: 14px; margin-bottom: 18px; }
.rfq-panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rfq-panel__perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12.5px;
}
.rfq-panel__perks li { display: inline-flex; align-items: center; gap: 6px; }
.rfq-panel__perks svg { color: var(--bronze); }

/* Product tabs */
.product-tabs-section {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0;
}
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  list-style: none !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 22px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft) !important;
}
.woocommerce-tabs ul.tabs li.active {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
}
.woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce-tabs .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: clamp(22px, 3vw, 36px);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Related products */
.related.products { margin-top: clamp(40px, 6vw, 72px); }
.related.products > h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 28px;
}

/* Prev / next */
.product-pn-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.product-pn-nav a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  max-width: 48%;
  transition: all 0.2s var(--ease);
}
.product-pn-nav a:hover { border-color: var(--bronze); box-shadow: var(--shadow-s); }
.product-pn-nav img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-s); }
.product-pn-nav .pn-label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ==========================================================================
   Notices / misc WooCommerce
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  border-radius: var(--radius-s) !important;
  padding: 14px 18px !important;
  color: var(--ink) !important;
  font-size: 14.5px;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--bronze) !important; }
.woocommerce-error::before { color: #A13D2D !important; }

/* Photoswipe caption font */
.pswp { font-family: var(--font-body); }

/* ==========================================================================
   Blog fallbacks
   ========================================================================== */
.blog-grid { display: grid; gap: 32px; max-width: 780px; }
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
}
.post-card__title { font-size: 24px; margin-bottom: 8px; }
.post-card__title a { color: var(--ink); }
.post-card__meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.post-card__excerpt { color: var(--muted); font-size: 15px; }
.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.post-body h2, .post-body h3 { margin-top: 1.6em; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Section footer (centered button under grids) */
.section-actions {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: center;
}

/* ── Inside Huaming gallery (About page) ─────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.gallery-card {
  margin: 0;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(25, 20, 14, 0.10);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.gallery-card__body { padding: 18px 20px 22px; }
.gallery-card__title {
  font-size: 17px;
  margin: 0 0 6px;
}
.gallery-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ── Single product: Colorways 色卡 ─────────────────── */
.colorways {
  padding: 56px 0 8px;
}
.colorways__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 30px;
}
.colorways__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}
.colorways__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 12px;
}
.colorways__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.colorways__card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(33, 27, 20, 0.08);
}
.colorways__card {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.colorways__card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 880px;
}
@media (max-width: 640px) {
  .colorways { padding: 40px 0 4px; }
  .colorways__card { border-radius: 14px; }
}
