/*
Theme Name: Canyon B2B
Author: Codex
Version: 1.0.0
Text Domain: canyon-b2b
*/
:root {
  --ink: #111317;
  --muted: #5f6673;
  --line: #e4e7eb;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --signal: #e22b2f;
  --deep: #172026;
  --green: #1f7a5a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 30px;
  color: #fff;
  background: var(--ink);
  transform: skew(-12deg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #2f343a;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
}
.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 42%, rgba(0,0,0,.08) 100%),
    url("../../uploads/2026/07/bicycle_001.webp") center/cover;
}
.hero-content { max-width: 760px; padding-bottom: 44px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #ffd8d8;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
  max-width: 12ch;
}
.hero p {
  margin: 22px 0 28px;
  max-width: 640px;
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.secondary { border-color: #fff; color: #fff; }
.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32)),
    url("../../uploads/2026/07/cycling-apparel_001.webp") center/cover;
}
.page-hero > div { max-width: 760px; }
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}
.page-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 620px;
  color: rgba(255,255,255,.86);
  line-height: 1.7;
}
.product-detail-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
  background: var(--soft);
}
.product-gallery {
  display: grid;
  place-items: center;
  min-height: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-main-image {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.product-summary { align-self: center; }
.product-summary h1 { max-width: 14ch; margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.product-price { margin: 22px 0; color: var(--signal); font-size: 24px; font-weight: 800; }
.product-intro { max-width: 560px; color: var(--muted); line-height: 1.8; }
.product-facts { display: grid; gap: 12px; margin: 28px 0; }
.product-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-facts span { color: var(--muted); }
.product-facts strong { text-align: right; }
.product-content-band { background: #fff; }
.product-description { max-width: 820px; color: #3b424b; line-height: 1.85; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.catalog-category {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3b424b;
  font-size: 14px;
  font-weight: 700;
}
.catalog-category:hover,
.catalog-category.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.catalog-hero { background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32)), url("../../uploads/2026/07/bicycle_001.webp"); }
.article-inner { max-width: 860px; margin: 0 auto; }
.article-inner h1 { max-width: 900px; margin: 0; font-size: clamp(34px, 6vw, 72px); line-height: 1.05; }
.article-date { margin: 18px 0 36px; color: var(--signal); font-weight: 800; }
.article-content { color: #3b424b; line-height: 1.9; font-size: 18px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.process-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.process-grid span { color: var(--signal); font-size: 14px; font-weight: 800; }
.process-grid h3 { margin: 30px 0 10px; font-size: 22px; }
.process-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.contact-layout h2 { margin: 0 0 14px; font-size: 42px; }
.contact-layout > div { padding: 30px 0; }
.contact-layout > div:first-child { padding-right: 10%; }
.contact-layout p { color: var(--muted); line-height: 1.8; }
.contact-details { display: grid; align-content: center; padding-left: 30px !important; border-left: 1px solid var(--line); }
.contact-details strong { margin-top: 12px; }
.contact-details p { margin: 6px 0; }
.generic-page { min-height: 520px; }
.band { padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px); }
.band.soft { background: var(--soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}
.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-grid,
.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.news-card,
.news-empty {
  min-height: 230px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-date {
  margin-bottom: 18px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 800;
}
.news-card h3,
.news-empty h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.news-card p,
.news-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.read-more {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
}
.feature, .category, .product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.feature { padding: 24px; }
.feature strong { display: block; font-size: 18px; margin-bottom: 8px; }
.feature p, .product-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.category img, .product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.category div, .product-card div { padding: 18px; }
.category h3, .product-card h3 { margin: 0 0 8px; font-size: 20px; }
.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}
.cta {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: var(--deep);
}
.cta p { color: rgba(255,255,255,.78); line-height: 1.7; }
.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  color: #fff;
  background: #0c0f12;
}
.inquiry-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
}
.inquiry-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--signal);
  box-shadow: 0 10px 28px rgba(17,19,23,.22);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.inquiry-toggle-icon { font-size: 18px; line-height: 1; }
.inquiry-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17,19,23,.2);
}
.inquiry-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.inquiry-panel-head strong { font-size: 18px; }
.inquiry-panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.inquiry-close {
  width: 30px;
  height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.inquiry-form { display: grid; gap: 11px; }
.inquiry-form label { display: grid; gap: 5px; color: #3b424b; font-size: 13px; font-weight: 700; }
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-submit { width: 100%; margin-top: 3px; cursor: pointer; }
.inquiry-feedback { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.inquiry-feedback.success { color: var(--green); }
.inquiry-feedback.error { color: var(--signal); }
@media (max-width: 900px) {
  .nav { display: none; }
  .feature-grid, .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-band, .contact-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-details { padding-left: 0 !important; border-left: 0; border-top: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: 560px; }
  .feature-grid, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .catalog-grid, .process-grid { grid-template-columns: 1fr; }
  .product-gallery { min-height: 320px; }
  .section-head { display: block; }
  .inquiry-widget { right: 16px; bottom: 16px; }
}
