/* Bidu visual finish. Base layout and breakpoints remain in theme.css. */
:root {
  --bidu-ink: #25282b;
  --bidu-graphite: #52565a;
  --bidu-muted: #62686d;
  --bidu-line: #e4e7e8;
  --bidu-soft: #f6f7f8;
  --bidu-accent: #b42324;
  --bidu-radius: 8px;
  --bidu-font: "Manrope", "Segoe UI", Arial, sans-serif;
  /* Major Third (1.25), fluid between 360px and 1280px at a 16px root. */
  --bidu-title-card: clamp(1rem, .902174rem + .434783vw, 1.25rem);
  --bidu-title-small: clamp(1.25rem, 1.127717rem + .543478vw, 1.5625rem);
  --bidu-title-section: clamp(1.5625rem, 1.409647rem + .679348vw, 1.953125rem);
  --bidu-title-page: clamp(1.953125rem, 1.762058rem + .849185vw, 2.44140625rem);
  --bidu-title-hero: clamp(2.44140625rem, 2.202573rem + 1.061481vw, 3.0517578125rem);
}
body { font-family: var(--bidu-font); }
h1,h2,h3,h4 { font-weight: 700; }
h1,.hero h1 { letter-spacing: -.045em; }
h2,.section-heading h2 { letter-spacing: -.025em; }
h1,.page-heading h1,.woocommerce-products-header h1,.woocommerce div.product .product_title,.empty-state h1 {
  font-size: var(--bidu-title-page); line-height: 1.15; overflow-wrap: anywhere;
}
h2,.section-heading h2,.department-section h2,.entry-content h2,.woocommerce .related.products>h2,.woocommerce div.product .woocommerce-tabs .panel>h2 {
  font-size: var(--bidu-title-section); line-height: 1.2;
}
h3,.entry-content h3 { font-size: var(--bidu-title-small); line-height: 1.25; }
.hero h1 { font-size: var(--bidu-title-hero); line-height: 1.15; }
.eyebrow { font-weight: 700; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--bidu-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff;
}
.button,button.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit {
  font-weight: 700;
  border-radius: var(--bidu-radius);
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover {
  background: var(--bidu-accent);
  border-color: var(--bidu-accent);
  color: #fff;
  box-shadow: 0 2px 4px #25282b12;
}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea {
  border-color: #cdd2d5;
  border-radius: 6px;
}
input::placeholder,textarea::placeholder { color: #71777d; opacity: 1; }
.product-search { border-radius: var(--bidu-radius); box-shadow: 0 1px 3px #25282b0d; }
.product-search button { border-radius: 6px; }
.primary-menu a { font-weight: 600; }
.primary-menu a:hover,.header-actions a:hover { color: var(--bidu-accent); }
.primary-menu .sub-menu { border-radius: 0 0 8px 8px; box-shadow: 0 6px 18px #25282b12; }
.demo-note { background: #f6f7f8; color: #62686d; }
.hero { background: #f4f5f5; border-color: #eceeef; }
.hero-copy>p:not(.eyebrow),.woocommerce-product-details__short-description { color: var(--bidu-graphite); }
.department-item { border-radius: var(--bidu-radius); font-weight: 600; }
.department-item:hover { border-color: var(--bidu-accent); background: #fff; color: var(--bidu-accent); }
.department-symbol { width: 48px; height: 48px; background: transparent; border-radius: 0; }
.department-symbol .bidu-department-icon { display: block; width: 48px; height: 48px; }
.bidu-department-icon .bidu-icon-accent { stroke: var(--bidu-accent); }
.department-item>span:nth-child(2) { min-width: 0; }
.useful-strip .bidu-icon { color: var(--bidu-graphite); }
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product {
  --bidu-card-copy-inset: 10px;
  border-radius: var(--bidu-radius); padding: 4px;
}
.woocommerce ul.products li.product:hover { border-color: #c2c8cc; box-shadow: 0 3px 10px #25282b08; }
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img { background: #fff; object-fit: contain; }
.woocommerce ul.products li.product>.woocommerce-loop-product__link>img { margin-bottom: 12px; border-radius: 4px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-inline: var(--bidu-card-copy-inset); font-size: var(--bidu-title-card);
  font-weight: 600; line-height: 1.4; min-height: 2.8em; overflow-wrap: anywhere;
}
.woocommerce ul.products li.product .bidu-product-meta,
.woocommerce ul.products li.product>.price { padding-inline: var(--bidu-card-copy-inset); }
.woocommerce ul.products li.product .bidu-product-detail {
  width: calc(100% - var(--bidu-card-copy-inset) * 2);
  margin-inline: var(--bidu-card-copy-inset); padding-bottom: 10px; font-weight: 600;
}
.woocommerce ul.products li.product>.button {
  margin-inline: var(--bidu-card-copy-inset); margin-bottom: 10px;
  width: calc(100% - var(--bidu-card-copy-inset) * 2);
}
.woocommerce ul.products li.product .bidu-product-detail:hover { text-decoration: underline; text-underline-offset: 4px; }
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.bidu-quote-total { font-variant-numeric: tabular-nums; }
.family-banner { border-radius: var(--bidu-radius); }
.family-1 { background: #eef0f1; }
.account-banner,.bidu-catalog-variations,.bidu-catalog-consultation,.contact-fallback { background: var(--bidu-soft); }
.bidu-catalog-variations,.bidu-catalog-consultation { border-radius: var(--bidu-radius); }
.bidu-catalog-consultation .bidu-catalog-variations { background: transparent; }
.bidu-catalog-swatch { border-radius: 6px; border-color: #cdd2d5; }
.bidu-catalog-swatch[aria-pressed=true] { background: #fff8d8; }
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span { border-radius: 6px; background: #f2f4f5; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bidu-yellow); font-weight: 700; }
.woocommerce .woocommerce-info,.woocommerce .woocommerce-message { background: #f6f7f8; }
.woocommerce form.login,.woocommerce form.register { border-radius: var(--bidu-radius); border-color: var(--bidu-line); }
.site-footer { background: #fff; }

/* Optional quote module: business rules and state remain in the plugin. */
.header-actions { gap: 20px; }
.header-actions .header-quote { position: relative; min-width: 44px; min-height: 44px; gap: 7px; justify-content: center; }
.header-quote-label { white-space: nowrap; }
.header-actions .header-quote-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bidu-ink); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.bidu-quote-form,.bidu-quote-notice { border-radius: var(--bidu-radius); }
.bidu-quote-form label { color: var(--bidu-ink); }
.bidu-quote-table { border-color: var(--bidu-line); font-size: 13px; }
.bidu-quote-table th { color: var(--bidu-graphite); font-weight: 600; }
.bidu-quote-table td,.bidu-quote-table th { border-color: var(--bidu-line); }
.bidu-quote-table input[type=number] { font-variant-numeric: tabular-nums; }
.bidu-quote-actions .button { border-radius: var(--bidu-radius); }
.bidu-quote-total { color: var(--bidu-ink); font-weight: 700; }
@media(max-width:1190px) {
  .header-actions { gap: 17px; }
}
@media(max-width:900px) {
  .header-actions .header-quote-label { display: none; }
  .header-actions .header-quote-count { position: absolute; right: 0; top: 0; }
}
@media(max-width:680px) {
  .woocommerce ul.products li.product,.woocommerce-page ul.products li.product { --bidu-card-copy-inset: 8px; }
  .department-symbol,.department-symbol .bidu-department-icon { width: 36px; height: 36px; }
  .header-actions { gap: 20px; }
  .header-actions .header-quote .bidu-icon { width: 23px; height: 23px; }
  .header-actions .header-quote-count { min-width: 17px; height: 17px; font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .button,button.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { transition: none; }
}
