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

:root {
  --ink: #162233;
  --muted: #657184;
  --line: #e7eaf0;
  --paper: #f7f8fb;
  --brand: #1e5f86;
  --accent: #ff2f78;
  --gold: #c6a15b;
  --navy: #10263f;
  --pink-soft: #fff0f5;
  --pink-line: #ffd7e5;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: var(--ink); background: #fbfcfd; 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(251,252,253,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 8px 20px rgba(30,95,134,.2); font-size: 13px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text em { color: var(--accent); font-size: 13px; font-style: normal; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 14px; color: #334258; }
.menu a { padding: 9px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--accent); border-color: var(--accent); }
.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; box-shadow: 0 12px 26px rgba(30,95,134,.16); }
.button.alt { background: var(--accent); box-shadow: 0 12px 26px rgba(255,47,120,.22); }
.hero { background: linear-gradient(110deg, rgba(16,38,63,.94), rgba(30,95,134,.78), rgba(228,95,71,.2)), var(--hero-image); background-size: cover; background-position: center; color: #fff; min-height: 520px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; align-items: end; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); 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; }
.hero-panel { border-left: 4px solid var(--gold); padding: 22px 0 22px 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero-panel strong { display: block; font-size: 54px; line-height: 1; }
.hero-panel span { display: block; margin-top: 8px; color: rgba(255,255,255,.84); font-size: 14px; }
.home-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; background: radial-gradient(circle at 78% 18%, rgba(255,58,126,.14), transparent 28%), radial-gradient(circle at 42% 62%, rgba(30,95,134,.1), transparent 26%), #fff; }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(120deg, rgba(238,242,246,.65) 1px, transparent 1px), linear-gradient(30deg, rgba(238,242,246,.52) 1px, transparent 1px); background-size: 82px 82px; opacity: .55; }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); gap: 44px; align-items: center; padding: 58px 0 78px; min-width: 0; }
.home-hero-copy { min-width: 0; }
.home-hero-copy h1 { margin: 0 0 18px; max-width: 620px; color: #111827; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; overflow-wrap: break-word; }
.home-hero-copy p { margin: 0 0 26px; max-width: 610px; color: #4b5563; font-size: 18px; }
.home-hero .eyebrow, .home-proof .eyebrow, .home-products .eyebrow, .promo-panel .eyebrow { color: #ff2f78; }
.button.ghost { color: #ff2f78; background: #fff; border: 1px solid #ffd0df; box-shadow: 0 8px 18px rgba(255,47,120,.08); }
.home-hero .button.alt, .home-promo .button.alt { background: #ff2f78; box-shadow: 0 12px 26px rgba(255,47,120,.24); }
.hero-mini-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-mini-stats span { display: grid; gap: 2px; color: #6b7280; font-size: 13px; }
.hero-mini-stats strong { color: #ff2f78; font-size: 23px; line-height: 1; }
.hero-visual { position: relative; min-height: 430px; min-width: 0; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; width: 410px; height: 410px; right: 42px; top: 0; border-radius: 50%; background: linear-gradient(135deg, #ffe7ef, #eef6fb); }
.hero-visual img { position: absolute; right: 88px; top: 62px; width: min(420px, 70%); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 80px rgba(17,24,39,.18); }
.floating-chip, .floating-card { position: absolute; z-index: 2; border: 1px solid #ffe0ea; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(17,24,39,.12); backdrop-filter: blur(10px); }
.floating-chip { color: #ff2f78; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 800; }
.chip-top { right: 24px; top: 48px; }
.chip-mid { left: 18px; top: 196px; }
.floating-card { right: 0; bottom: 26px; width: 260px; border-radius: 8px; padding: 18px; }
.floating-card strong { display: block; color: #111827; font-size: 18px; }
.floating-card span { display: block; margin-top: 6px; color: #6b7280; font-size: 13px; }
.home-promo { padding: 42px 0 36px; background: #fff; }
.promo-panel { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; gap: 28px; align-items: center; border: 1px solid #ffd7e5; border-radius: 10px; background: linear-gradient(135deg, #fff0f5, #fff 62%); padding: 28px; box-shadow: 0 22px 54px rgba(255,47,120,.08); }
.promo-visual { min-height: 126px; border-radius: 8px; background: linear-gradient(135deg, #ff2f78, #ff765d); color: #fff; display: grid; place-items: center; text-align: center; padding: 18px; box-shadow: inset 0 -18px 35px rgba(114,20,62,.16); }
.promo-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-weight: 900; font-size: 25px; }
.promo-visual strong { font-size: 18px; }
.promo-panel h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.14; }
.promo-panel p:not(.eyebrow) { margin: 0; color: var(--muted); }
.home-proof { padding: 70px 0 78px; background: linear-gradient(180deg, #fbfcfd, #f4f6f9); }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.center-head h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.proof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.proof-stats div { text-align: center; }
.proof-stats strong { display: block; color: #ff2f78; font-size: clamp(28px, 4vw, 42px); line-height: 1; }
.proof-stats span { color: #6b7280; font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { border: 1px solid #e7eaf0; border-radius: 8px; background: #fff; padding: 24px; text-align: center; box-shadow: 0 16px 40px rgba(17,24,39,.06); }
.service-card span { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 12px; color: #ff2f78; background: #fff0f5; font-weight: 900; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: #6b7280; font-size: 14px; }
.home-flow { padding: 72px 0; background: #fff; }
.flow-list { display: grid; gap: 74px; }
.flow-row { display: grid; grid-template-columns: minmax(280px, 430px) minmax(0, 1fr); gap: 70px; align-items: center; }
.flow-row.reverse { grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); }
.flow-row.reverse .flow-image { order: 2; }
.flow-image { position: relative; }
.flow-image::before { content: ""; position: absolute; inset: 20px -18px -18px 20px; border-radius: 12px; background: #fff0f5; }
.flow-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 22px 60px rgba(17,24,39,.14); }
.flow-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #ff2f78; color: #fff; font-weight: 900; font-size: 12px; }
.flow-copy h2 { margin: 14px 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.08; }
.flow-copy p { margin: 0 0 14px; color: #4b5563; max-width: 620px; }
.flow-copy ul { margin: 0; padding-left: 18px; color: #374151; font-size: 14px; }
.flow-copy li { margin: 6px 0; }
.home-products { background: #fbfcfd; }
.section { padding: 68px 0; }
.section.soft { background: linear-gradient(180deg, #fbfcfd, 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; box-shadow: 0 16px 40px rgba(17,24,39,.06); }
.category-card img, .post-card img, .product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef3f0; }
.category-card:hover, .catalog-card:hover, .post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(22,34,51,.1); }
.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(--accent); 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: 820px; border: 1px solid var(--pink-line); border-radius: 10px; background: linear-gradient(135deg, #fff, var(--pink-soft)); padding: 26px; box-shadow: 0 22px 54px rgba(255,47,120,.08); }
.inquiry-form label { font-weight: 800; color: #111827; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select { width: 100%; border: 1px solid #edf0f4; border-radius: 8px; padding: 12px 14px; font: inherit; background: #fff; box-shadow: inset 0 1px 0 rgba(17,24,39,.03); }
.inquiry-form input:focus, .inquiry-form textarea:focus, .inquiry-form select:focus { outline: 2px solid rgba(255,47,120,.16); border-color: var(--accent); }
.inquiry-form textarea { min-height: 150px; resize: vertical; }
.notice { padding: 14px 16px; border-radius: 8px; background: var(--pink-soft); border: 1px solid var(--pink-line); color: #bc185a; margin-bottom: 18px; }
.site-footer { background: #111827; 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; }
.page-content { background: #fff; }
.inner-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 10%, rgba(255,47,120,.14), transparent 28%), linear-gradient(180deg, #fff, #f7f8fb); border-bottom: 1px solid var(--line); }
.inner-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(120deg, rgba(231,234,240,.72) 1px, transparent 1px), linear-gradient(30deg, rgba(231,234,240,.45) 1px, transparent 1px); background-size: 82px 82px; opacity: .48; }
.inner-hero > .wrap, .shop-hero-inner { position: relative; z-index: 1; }
.page-hero .wrap { padding: 58px 0 48px; }
.inner-lead { margin: 10px 0 0; color: var(--muted); max-width: 640px; font-size: 17px; }
.shop-hero { background: radial-gradient(circle at 82% 10%, rgba(255,47,120,.14), transparent 28%), linear-gradient(180deg, #fff, #f7f8fb); border-bottom: 1px solid var(--line); }
.shop-hero-inner { min-height: 240px; 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: 800; box-shadow: 0 12px 28px rgba(17,24,39,.04); }
.cat-link:hover { color: var(--accent); border-color: var(--pink-line); background: var(--pink-soft); }
.cat-link em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 13px; }
.sidebar-panel { margin-top: 14px; border: 1px solid var(--pink-line); border-radius: 8px; background: var(--pink-soft); 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; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; box-shadow: 0 16px 40px rgba(17,24,39,.06); }
.catalog-card:hover { border-color: var(--pink-line); }
.catalog-image { background: #eef2f6; }
.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 var(--pink-line); border-radius: 999px; color: #bc185a; background: var(--pink-soft); padding: 6px 10px; font-size: 12px; font-weight: 800; }
.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(--accent); 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); background: #fff; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-detail { padding: 64px 0; background: radial-gradient(circle at 88% 8%, rgba(255,47,120,.1), transparent 24%), #fff; }
.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: 10px; background: #f8fafc; overflow: hidden; box-shadow: 0 22px 60px rgba(17,24,39,.08); }
.detail-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.back-link { display: inline-block; color: var(--accent); margin-bottom: 14px; font-size: 14px; font-weight: 800; }
.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(--pink-line); border-radius: 10px; background: linear-gradient(135deg, #fff, var(--pink-soft)); padding: 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; box-shadow: 0 18px 46px rgba(255,47,120,.08); }
.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(--pink-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; box-shadow: 0 10px 26px rgba(17,24,39,.04); }
.post-card h3 a:hover, .catalog-body h2 a:hover { color: var(--accent); }

@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)); }
  .home-hero-grid, .promo-panel, .proof-stats, .service-grid, .flow-row, .flow-row.reverse { grid-template-columns: 1fr; }
  .home-hero-grid { padding: 42px 0 56px; }
  .hero-visual { min-height: 360px; }
  .hero-visual img { right: 42px; width: min(380px, 78%); }
  .flow-row.reverse .flow-image { order: 0; }
  .promo-panel { align-items: stretch; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .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, .proof-stats { grid-template-columns: 1fr; }
  .menu { gap: 12px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .home-hero { min-height: auto; }
  .home-hero-copy h1 { font-size: 42px; }
  .hero-mini-stats { gap: 14px; }
  .hero-visual { min-height: 300px; }
  .hero-visual::before { width: 280px; height: 280px; right: 8px; }
  .hero-visual img { right: 22px; top: 54px; width: min(290px, 82%); }
  .floating-card { left: 0; right: auto; width: min(250px, 84%); }
  .chip-mid { left: 0; top: 150px; }
  .promo-panel { padding: 20px; }
  .flow-row { gap: 30px; }
  .flow-list { gap: 52px; }
  .hero { min-height: 460px; }
  .shop-hero-inner, .shop-toolbar, .quote-panel { align-items: flex-start; flex-direction: column; }
}
