/*
Theme Name: Wellnest B2B
Author: Codex
Version: 1.0
Text Domain: wellnest-b2b
*/

:root {
  --ink: #18201d;
  --muted: #66716c;
  --line: #dfe7e2;
  --paper: #f7faf8;
  --brand: #1f7a63;
  --accent: #d95736;
  --gold: #c99b42;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: 0; }
.brand span { color: var(--brand); }
.menu { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; color: #32413b; }
.menu a { padding: 8px 0; }
.button, .wp-block-button__link, button, input[type="submit"] { border: 0; border-radius: 6px; background: var(--brand); color: #fff; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.button.alt { background: var(--accent); }
.hero { background: linear-gradient(90deg, rgba(16,30,25,.86), rgba(16,30,25,.38)), var(--hero-image); background-size: cover; background-position: center; color: #fff; min-height: 560px; display: flex; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 18px; max-width: 820px; }
.hero p { font-size: 19px; max-width: 650px; color: rgba(255,255,255,.88); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 68px 0; }
.section.soft { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.category-card, .post-card, .product-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.category-card img, .post-card img, .product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef3f0; }
.card-body { padding: 18px; }
.card-body h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-band { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.feature { border-top: 3px solid var(--gold); padding: 18px 0 0; }
.feature strong { display: block; font-size: 18px; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 14px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 16px !important; overflow: hidden; background: #fff; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 14px; }
.woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding: 0 14px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .price { display: none !important; }
.woocommerce div.product { padding: 50px 0; }
.woocommerce div.product .product_title { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
.woocommerce div.product form.cart { display: none; }
.inquiry-form { display: grid; gap: 14px; max-width: 760px; }
.inquiry-form label { font-weight: 700; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font: inherit; }
.inquiry-form textarea { min-height: 150px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: 6px; background: #e9f6f0; color: #185d4d; margin-bottom: 18px; }
.site-footer { background: #141c19; color: rgba(255,255,255,.76); padding: 34px 0; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.content { padding: 56px 0; }
.shop-hero { background: #edf5f0; border-bottom: 1px solid var(--line); }
.shop-hero-inner { min-height: 230px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.shop-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.shop-hero p { margin: 0; color: var(--muted); max-width: 680px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.shop-grid-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.shop-sidebar { position: sticky; top: 96px; display: grid; gap: 10px; }
.shop-sidebar h2 { margin: 0 0 8px; font-size: 22px; }
.cat-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 14px; font-weight: 700; }
.cat-link em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 13px; }
.sidebar-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 16px; }
.sidebar-panel p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fff; }
.product-catalog { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.catalog-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.catalog-image { background: #eef3f0; }
.catalog-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.catalog-body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.catalog-meta { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.catalog-body h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.catalog-body p { margin: 0; color: var(--muted); font-size: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-row span, .detail-badges span { border: 1px solid #cfe0d8; border-radius: 999px; color: #185d4d; background: #eef8f3; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.catalog-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.catalog-foot small { color: var(--muted); overflow-wrap: anywhere; }
.catalog-foot a { color: var(--brand); font-weight: 800; }
.woocommerce nav.woocommerce-pagination { margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--line); border-radius: 6px; min-width: 40px; padding: 10px 12px; color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.product-detail { padding: 56px 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 42px; align-items: start; }
.detail-gallery { border: 1px solid var(--line); border-radius: 8px; background: #f3f7f4; overflow: hidden; }
.detail-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.back-link { display: inline-block; color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.detail-summary h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.detail-intro { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.quote-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.quote-panel p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0; }
.detail-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.detail-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.detail-facts dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.detail-info-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 46px; }
.detail-info-grid h2 { margin: 0 0 14px; font-size: 28px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec-list li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff; }

@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .grid, .feature-band, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: 500px; }
  .shop-grid-layout, .detail-grid, .detail-info-grid { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .grid, .feature-band, .woocommerce ul.products, .product-catalog, .detail-facts { grid-template-columns: 1fr; }
  .menu { gap: 12px; }
  .hero { min-height: 460px; }
  .shop-hero-inner, .shop-toolbar, .quote-panel { align-items: flex-start; flex-direction: column; }
}
