/*
Theme Name: Zonghai Furniture
Theme URI:
Author:
Version: 1.0
Text Domain: zonghai-furniture
*/

:root {
  --zh-black: #111111;
  --zh-charcoal: #2b2b2b;
  --zh-white: #ffffff;
  --zh-offwhite: #f7f7f5;
  --zh-line: #e6e3df;
  --zh-muted: #6d6d6d;
  --zh-accent: #9a7652;
  --zh-max: 1240px;
  --zh-radius: 4px;
  --zh-shadow: 0 18px 55px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--zh-black);
  background: var(--zh-white);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--zh-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 18px;
  color: var(--zh-black);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 26px;
}

p {
  margin: 0 0 18px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.zh-container {
  width: min(var(--zh-max), calc(100% - 40px));
  margin-inline: auto;
}

.zh-topbar {
  background: var(--zh-black);
  color: var(--zh-white);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px 20px;
  text-transform: uppercase;
}

.zh-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--zh-line);
  backdrop-filter: blur(14px);
}

.admin-bar .zh-site-header {
  top: 32px;
}

.zh-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.zh-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--zh-white);
  background: var(--zh-black);
  font-weight: 700;
  letter-spacing: 0;
}

.zh-brand-text {
  display: grid;
  gap: 0;
}

.zh-brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-brand-sub {
  color: var(--zh-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zh-main-nav {
  flex: 1;
}

.zh-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zh-menu li {
  position: relative;
}

.zh-menu a {
  display: block;
  color: var(--zh-black);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zh-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  margin: 20px 0 0;
  padding: 14px 0;
  background: var(--zh-white);
  border: 1px solid var(--zh-line);
  box-shadow: var(--zh-shadow);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.zh-menu li:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.zh-menu .sub-menu a {
  padding: 9px 18px;
  color: var(--zh-charcoal);
  font-size: 13px;
  text-transform: none;
}

.zh-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zh-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--zh-black);
  border-radius: var(--zh-radius);
  color: var(--zh-white);
  background: var(--zh-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.zh-button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  color: var(--zh-white);
  background: var(--zh-accent);
  border-color: var(--zh-accent);
}

.zh-button--ghost {
  color: var(--zh-black);
  background: transparent;
}

.zh-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--zh-line);
  background: var(--zh-white);
}

.zh-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--zh-black);
}

.zh-hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  position: relative;
  color: var(--zh-white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
    url("images/hero-furniture.jpg") center/cover no-repeat,
    #232323;
}

.zh-hero h1,
.zh-hero p {
  color: var(--zh-white);
}

.zh-hero-content {
  max-width: 760px;
  padding: 80px 0;
}

.zh-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--zh-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.zh-hero-text {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.zh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.zh-hero .zh-button--ghost {
  color: var(--zh-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.zh-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.zh-trust-row span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-section {
  padding: 92px 0;
}

.zh-section--soft {
  background: var(--zh-offwhite);
}

.zh-section--dark {
  color: var(--zh-white);
  background: var(--zh-black);
}

.zh-section--dark h2,
.zh-section--dark h3,
.zh-section--dark p {
  color: var(--zh-white);
}

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

.zh-section-head p {
  max-width: 580px;
  color: var(--zh-muted);
}

.zh-grid {
  display: grid;
  gap: 24px;
}

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

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

.zh-card {
  background: var(--zh-white);
  border: 1px solid var(--zh-line);
}

.zh-category-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.zh-card-media {
  min-height: 210px;
  background: linear-gradient(135deg, #dfddd8, #f7f7f5);
}

.zh-card-body {
  padding: 24px;
}

.zh-card-body p {
  color: var(--zh-muted);
}

.zh-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--zh-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-product-card {
  padding: 18px;
  background: var(--zh-white);
  border: 1px solid var(--zh-line);
}

.zh-product-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #efefec, #d9d5cd);
}

.zh-product-meta {
  color: var(--zh-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zh-feature {
  padding: 28px;
  background: var(--zh-white);
  border: 1px solid var(--zh-line);
}

.zh-feature-number {
  display: block;
  margin-bottom: 24px;
  color: var(--zh-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.zh-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 58px;
}

.zh-image-panel {
  min-height: 480px;
  background: linear-gradient(135deg, #d7d2cb, #f7f7f5);
}

.zh-page-header {
  padding: 92px 0;
  background: var(--zh-offwhite);
  border-bottom: 1px solid var(--zh-line);
}

.zh-page-header p {
  max-width: 700px;
  color: var(--zh-muted);
  font-size: 18px;
}

.zh-content {
  padding: 72px 0;
}

.zh-content-area {
  max-width: 820px;
}

.zh-content-area > *:first-child {
  margin-top: 0;
}

.zh-content-area a {
  color: var(--zh-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zh-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 50px;
}

.zh-sidebar {
  padding: 28px;
  background: var(--zh-offwhite);
  border: 1px solid var(--zh-line);
}

.zh-post-list {
  display: grid;
  gap: 28px;
}

.zh-post-card {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--zh-line);
}

.zh-site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--zh-black);
}

.zh-footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
  padding: 68px 0;
}

.zh-site-footer h3,
.zh-site-footer h4 {
  color: var(--zh-white);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zh-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zh-site-footer li {
  margin-bottom: 10px;
}

.zh-site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

.zh-site-footer a:hover {
  color: var(--zh-white);
}

.zh-footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  padding: 16px;
  border: 1px solid var(--zh-line);
  background: var(--zh-white);
}

.woocommerce ul.products li.product .price {
  display: none;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  display: none;
}

.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 52px);
}

.zh-hero--v2 {
  min-height: 790px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24) 68%, rgba(0, 0, 0, 0.08)),
    url("images/hero-furniture.jpg") center/cover no-repeat,
    linear-gradient(135deg, #1d1d1d, #5c5852);
}

.zh-collection-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.zh-collection-card {
  min-height: 420px;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #ddd8d0;
}

.zh-collection-card:nth-child(1),
.zh-collection-card:nth-child(2) {
  grid-column: span 3;
}

.zh-collection-card:nth-child(n + 3) {
  grid-column: span 2;
}

.zh-collection-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.62)),
    linear-gradient(135deg, #f1efeb, #b9b1a7);
  transition: transform 0.45s ease;
}

.zh-collection-card:hover .zh-collection-image {
  transform: scale(1.04);
}

.zh-collection-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding: 32px;
  color: var(--zh-white);
}

.zh-collection-copy h3,
.zh-collection-copy p,
.zh-collection-copy .zh-link {
  color: var(--zh-white);
}

.zh-product-card--v2 {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zh-product-card--v2:hover,
.woocommerce ul.products li.product:hover {
  border-color: rgba(154, 118, 82, 0.45);
  box-shadow: var(--zh-shadow);
  transform: translateY(-3px);
}

.zh-product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--zh-line);
  padding-top: 14px;
}

.zh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.zh-stats div {
  padding: 24px;
  border: 1px solid var(--zh-line);
  background: var(--zh-white);
}

.zh-stats strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.zh-stats span {
  color: var(--zh-muted);
  font-size: 14px;
}

.zh-split--wide {
  grid-template-columns: 0.9fr 1.1fr;
}

.zh-image-panel--factory {
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.08), rgba(154, 118, 82, 0.12)),
    linear-gradient(135deg, #cbc6be, #f7f7f5);
}

.zh-service-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.zh-service-card p {
  color: rgba(255, 255, 255, 0.72);
}

.zh-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--zh-line);
  border-left: 1px solid var(--zh-line);
}

.zh-process div {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--zh-line);
  border-bottom: 1px solid var(--zh-line);
}

.zh-process span {
  display: block;
  margin-bottom: 42px;
  color: var(--zh-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.zh-map-panel {
  min-height: 440px;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(154, 118, 82, 0.28), transparent 32%),
    linear-gradient(135deg, #242424, #69645f);
}

.zh-map-panel span {
  min-width: 230px;
  padding: 14px 18px;
  color: var(--zh-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-testimonial {
  padding: 34px;
  border: 1px solid var(--zh-line);
  background: var(--zh-white);
}

.zh-testimonial p {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--zh-charcoal);
  font-size: 22px;
  line-height: 1.45;
}

.zh-testimonial strong {
  display: block;
  margin-top: 22px;
  color: var(--zh-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-final-cta {
  padding: 112px 0;
}

.zh-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  margin-top: 12px;
}

.woocommerce ul.products li.product .zh-quick-inquiry {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.zh-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}

.zh-contact-panel,
.zh-contact-info {
  padding: 36px;
  border: 1px solid var(--zh-line);
  background: var(--zh-white);
}

.zh-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.zh-form input,
.zh-form textarea {
  width: 100%;
  border: 1px solid var(--zh-line);
  border-radius: var(--zh-radius);
  padding: 14px 16px;
  color: var(--zh-black);
  background: var(--zh-offwhite);
}

.zh-form input:focus,
.zh-form textarea:focus {
  outline: 1px solid var(--zh-accent);
  border-color: var(--zh-accent);
}

.zh-whatsapp {
  width: 100%;
  margin-bottom: 24px;
  background: #1f7a4f;
  border-color: #1f7a4f;
}

.zh-info-block {
  padding: 20px 0;
  border-top: 1px solid var(--zh-line);
}

.zh-info-block h3 {
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  margin-top: 22px;
  color: var(--zh-white);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.08)),
    linear-gradient(135deg, #9f9b94, #dad6cd);
}

.zh-map-placeholder span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 17, 17, 0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 28px auto;
  width: min(var(--zh-max), calc(100% - 40px));
  color: var(--zh-muted);
}

.elementor-page .zh-content {
  padding: 0;
}

@media (max-width: 1024px) {
  .zh-main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--zh-white);
    border-bottom: 1px solid var(--zh-line);
  }

  .zh-main-nav.is-open {
    display: block;
  }

  .zh-menu {
    display: block;
    width: min(var(--zh-max), calc(100% - 40px));
    margin-inline: auto;
    padding: 18px 0;
  }

  .zh-menu a {
    padding: 12px 0;
  }

  .zh-menu .sub-menu {
    position: static;
    width: auto;
    margin: 0;
    padding: 0 0 0 18px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .zh-menu-toggle {
    display: block;
  }

  .zh-header-actions .zh-button {
    display: none;
  }

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

  .zh-grid--3,
  .zh-split,
  .zh-split--wide,
  .zh-contact-grid,
  .zh-layout-with-sidebar,
  .zh-footer-main {
    grid-template-columns: 1fr;
  }

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

  .zh-collection-card,
  .zh-collection-card:nth-child(1),
  .zh-collection-card:nth-child(2),
  .zh-collection-card:nth-child(n + 3) {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .admin-bar .zh-site-header {
    top: 0;
  }

  .zh-container {
    width: min(100% - 28px, var(--zh-max));
  }

  .zh-header-inner {
    min-height: 68px;
  }

  .zh-brand-sub {
    display: none;
  }

  .zh-hero {
    min-height: 620px;
  }

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

  .zh-section-head {
    display: block;
  }

  .zh-grid--4,
  .zh-grid--3,
  .zh-collection-grid,
  .zh-process,
  .zh-stats {
    grid-template-columns: 1fr;
  }

  .zh-collection-card {
    min-height: 360px;
  }

  .zh-cta-actions {
    justify-content: flex-start;
  }

  .zh-footer-main {
    padding: 48px 0;
  }
}
