/*
Theme Name: 源秀家居
Theme URI: https://originmaterials.local
Description: Kadence child theme for Origin Materials — Foshan headquarters, Hong Kong office. Catalog + enquiry, no checkout.
Author: Origin Materials
Template: kadence
Version: 1.3.5
Text Domain: yuanxiu
*/

:root {
  --yx-ink: #1c1f1c;
  --yx-cream: #f3eee4;
  --yx-paper: #f7f3ea;
  --yx-forest: #2f4a3c;
  --yx-forest-dark: #22352b;
  --yx-copper: #b08d57;
  --yx-copper-dark: #8c6c3e;
  --yx-muted: #5e625c;
  --yx-line: #d8d0c2;
  --yx-white: #fffdf8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--yx-paper);
  color: var(--yx-ink);
  font-family: "PingFang HK", "Noto Sans TC", "Helvetica Neue", sans-serif;
  padding-bottom: 72px;
}

body.yx-no-sticky {
  padding-bottom: 0;
}

.yx-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.yx-hero {
  background-color: #2a2d2a;
  background-image:
    linear-gradient(105deg, rgba(28, 31, 28, 0.88) 0%, rgba(34, 53, 43, 0.62) 48%, rgba(34, 53, 43, 0.28) 100%);
  background-size: cover;
  background-position: center;
  color: var(--yx-cream);
  padding: 80px 0 72px;
}

.yx-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.yx-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 650;
}

.yx-hero p.lead {
  font-size: 1.12rem;
  max-width: 40rem;
  color: #e6dfd2;
  margin: 0 0 28px;
}

.yx-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--yx-copper);
  margin-bottom: 10px;
}

.yx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yx-hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yx-hero-side a {
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(243, 238, 228, 0.22);
  color: var(--yx-cream) !important;
  text-decoration: none !important;
  padding: 14px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.yx-hero-side a:hover {
  background: rgba(176, 141, 87, 0.35);
}

.yx-btn {
  display: inline-block;
  background: var(--yx-copper);
  color: var(--yx-ink) !important;
  padding: 12px 22px;
  border-radius: 2px;
  font-weight: 650;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}

.yx-btn:hover {
  background: #c9a56a;
}

.yx-btn-ghost {
  background: transparent;
  color: var(--yx-cream) !important;
  border: 1px solid rgba(244, 240, 232, 0.45);
}

.yx-section {
  padding: 64px 0;
}

.yx-section h2 {
  font-size: 1.7rem;
  margin: 0 0 12px;
}

.yx-section .yx-intro {
  color: var(--yx-muted);
  max-width: 44rem;
  margin-bottom: 28px;
}

.yx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--yx-ink);
  color: var(--yx-cream);
}

.yx-stats article {
  padding: 28px 20px;
  border-right: 1px solid rgba(243, 238, 228, 0.12);
}

.yx-stats article:last-child {
  border-right: 0;
}

.yx-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--yx-copper);
  margin-bottom: 6px;
}

.yx-stats span {
  font-size: 0.9rem;
  color: #d5cfc3;
}

.yx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.yx-card {
  min-height: 188px;
  padding: 22px 18px 20px;
  text-decoration: none !important;
  color: var(--yx-cream) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.yx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 22, 20, 0.72) 100%);
}

.yx-card h3,
.yx-card p {
  position: relative;
  z-index: 1;
}

.yx-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.yx-card p {
  margin: 0;
  color: #e4ddd1;
  font-size: 0.88rem;
}

.yx-card:hover {
  transform: translateY(-2px);
}

.yx-tone-tile { background: #6e675c; }
.yx-tone-bath { background: #3d5348; }
.yx-tone-floor { background: #7a5c3c; }
.yx-tone-kit { background: #4a4e55; }
.yx-tone-light { background: #3f4a42; }
.yx-tone-paint { background: #8a8173; }
.yx-tone-door { background: #5b4633; }
.yx-tone-pipe { background: #35545c; }

.yx-audience,
.yx-prep {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.yx-audience article,
.yx-prep article {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  padding: 18px 16px;
}

.yx-audience b,
.yx-prep b {
  display: block;
  margin-bottom: 6px;
}

.yx-audience p,
.yx-prep p {
  margin: 0;
  color: var(--yx-muted);
  font-size: 0.9rem;
}

.yx-prep span {
  color: var(--yx-copper);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.yx-promises {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.yx-promises article {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  padding: 18px 16px;
}

.yx-promises b {
  display: block;
  margin-bottom: 6px;
}

.yx-promises p {
  margin: 0;
  color: var(--yx-muted);
  font-size: 0.9rem;
}

.yx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: yxstep;
}

.yx-step {
  background: var(--yx-white);
  padding: 22px 18px;
  border-bottom: 3px solid var(--yx-copper);
  position: relative;
}

.yx-step span {
  color: var(--yx-copper);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.yx-cta-band {
  background: var(--yx-forest);
  color: var(--yx-cream);
  padding: 48px 0;
  text-align: center;
}

.yx-cta-band h2 {
  margin: 0 0 10px;
}

.yx-cta-band p {
  margin: 0 0 20px;
  color: #d9e4dc;
}

.yx-prose h2,
.yx-prose h3 {
  margin-top: 1.6em;
}

.yx-prose p,
.yx-prose li {
  line-height: 1.75;
}

.yx-subcats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 24px 0 40px;
}

.yx-subcat {
  background: var(--yx-white) center / cover no-repeat;
  border: 1px solid var(--yx-line);
  padding: 28px 10px 20px;
  text-align: center;
  text-decoration: none !important;
  color: var(--yx-cream) !important;
  font-weight: 600;
  min-height: 128px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.yx-subcat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(20, 22, 20, 0.78) 100%);
}

.yx-subcat span {
  position: relative;
  z-index: 1;
}

.yx-subcat:hover {
  border-color: var(--yx-forest);
  background: #f8f3ea;
}

.yx-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.yx-why article {
  background: var(--yx-white);
  padding: 20px;
  border-top: 3px solid var(--yx-copper);
}

.yx-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yx-brands a {
  display: inline-block;
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  color: var(--yx-ink) !important;
  text-decoration: none !important;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.yx-brands a:hover {
  border-color: var(--yx-forest);
  background: #f8f3ea;
}

.yx-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 16px;
}

.yx-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 40px;
}

.yx-pager .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--yx-line);
  background: var(--yx-white);
  color: var(--yx-ink) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
}

.yx-pager .page-numbers.current,
.yx-pager .page-numbers:hover {
  border-color: var(--yx-forest);
  background: #f8f3ea;
}

.yx-product {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  overflow: hidden;
}

.yx-product img,
.yx-ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--yx-forest-dark);
}

.yx-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yx-cream);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.yx-product > a {
  color: inherit !important;
  text-decoration: none !important;
  display: block;
}

.yx-product figcaption {
  padding: 12px 14px 44px;
}

.yx-product .yx-quote-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--yx-ink);
  color: var(--yx-cream) !important;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 8px;
  text-decoration: none !important;
}

.yx-product .yx-quote-tag:hover {
  background: var(--yx-copper);
  color: var(--yx-ink) !important;
}

.yx-form {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  padding: 28px;
  margin-top: 16px;
}

.yx-faq details {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.yx-faq summary {
  font-weight: 650;
  cursor: pointer;
}

.yx-faq p {
  margin: 10px 0 0;
  color: var(--yx-muted);
}

.yx-guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.yx-guides a {
  background: var(--yx-white);
  border: 1px solid var(--yx-line);
  padding: 22px;
  text-decoration: none !important;
  color: inherit !important;
}

.yx-guides a:hover {
  border-color: var(--yx-copper);
}

.yx-langs {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yx-langs a {
  color: inherit;
  text-decoration: none;
}

.yx-langs .current-lang {
  font-weight: 700;
  color: var(--yx-copper);
}

.yx-topbar {
  background: var(--yx-ink);
  color: var(--yx-cream);
  font-size: 0.85rem;
}

.yx-topbar .yx-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}

.yx-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.yx-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.yx-phones a,
.yx-phones-line a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.yx-phones a:hover,
.yx-phones-line a:hover {
  color: var(--yx-copper);
}

.yx-phones-line {
  margin: 0 0 24px;
}

.yx-phones-line a {
  color: var(--yx-forest);
  font-weight: 650;
}

.yx-address {
  margin: -8px 0 24px;
  color: var(--yx-muted);
  line-height: 1.55;
}

.yx-address a {
  color: inherit;
}

.yx-address a:hover {
  color: var(--yx-copper);
}

.yx-crumbs {
  font-size: 0.85rem;
  color: var(--yx-muted);
  margin: 16px 0 24px;
}

.yx-crumbs a {
  color: var(--yx-forest);
}

.yx-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
}

.yx-specs th,
.yx-specs td {
  border-bottom: 1px solid var(--yx-line);
  padding: 10px 8px;
  text-align: left;
}

.yx-specs th {
  width: 30%;
  color: var(--yx-muted);
  font-weight: 600;
}

.yx-sticky {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yx-sticky a {
  background: var(--yx-ink);
  color: var(--yx-cream) !important;
  text-decoration: none !important;
  padding: 12px 16px;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.yx-sticky a.yx-sticky-quote {
  background: var(--yx-copper);
  color: var(--yx-ink) !important;
}

.woocommerce-Price-amount,
.price,
.header-cart-section,
.kadence-header-cart,
.site-header-cart,
.woocommerce-mini-cart,
.added_to_cart,
.single_add_to_cart_button,
.ajax_add_to_cart,
.widget_shopping_cart,
.checkout-button,
.wp-block-woocommerce-mini-cart,
.woocommerce span.onsale {
  display: none !important;
}

.yx-inquiry-btn {
  margin-top: 12px;
}

.site-footer-wrap {
  background: var(--yx-ink) !important;
}

.site-footer a[href*="kadencewp.com"] {
  display: none !important;
}

.site-footer .footer-credit a,
.site-credits a {
  color: var(--yx-cream);
  text-decoration: none;
}

.header-navigation-dropdown ul.sub-menu {
  background: var(--yx-white);
}

@media (max-width: 980px) {
  .yx-hero-grid,
  .yx-grid,
  .yx-stats,
  .yx-promises,
  .yx-audience,
  .yx-prep,
  .yx-steps,
  .yx-why,
  .yx-products,
  .yx-guides,
  .yx-subcats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .yx-hero-grid,
  .yx-grid,
  .yx-stats,
  .yx-promises,
  .yx-audience,
  .yx-prep,
  .yx-steps,
  .yx-why,
  .yx-products,
  .yx-guides,
  .yx-subcats,
  .yx-hero-side {
    grid-template-columns: 1fr;
  }

  .yx-btn-ghost {
    margin: 0;
  }

  .yx-sticky {
    left: 12px;
    right: 12px;
    flex-direction: row;
  }

  .yx-sticky a {
    flex: 1;
    text-align: center;
  }

  .yx-topbar .yx-wrap {
    flex-wrap: wrap;
  }

  .yx-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

.entry-related,
.related-posts,
#comments,
.kadence-related-posts,
.wp-block-kadence-relatedposts {
  display: none !important;
}
