/* STARS SHOPS theme — industrial B2B redesign (original branding) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
  --stars-blue: #006FBA;
  --stars-navy: #0F172A;
  --stars-orange: #E86C0E;
  --stars-green: #008A00;
  --stars-ink: #212529;
  --stars-steel: #556274;
  --stars-ice: #E6EEF8;
  --stars-ice2: #F3F8FC;
  --stars-line: #DEE2E6;
  --stars-footer: #071D35;
  --stars-shell: 1240px;
  --stars-radius: 8px;
  --stars-pill: 999px;
}

/* Hide Twenty Twenty-Five chrome + Woo mini-cart drawer chrome on front */
body:not(.wp-admin) #wpadminbar,
body:not(.wp-admin) .skip-link,
body:not(.wp-admin) a.skip-link,
body:not(.wp-admin) .wp-block-woocommerce-mini-cart,
body:not(.wp-admin) .wp-block-woocommerce-mini-cart-contents,
body:not(.wp-admin) .wc-block-mini-cart__drawer,
body:not(.wp-admin) .wc-block-components-drawer,
body:not(.wp-admin) .wc-block-mini-cart__empty-cart-wrapper,
body:not(.wp-admin) .wp-site-blocks > header,
body:not(.wp-admin) footer.wp-block-template-part,
body:not(.wp-admin):not(.single-product) .wp-block-post-title,
body:not(.wp-admin) .wp-block-template-part[data-area="header"],
body:not(.wp-admin) .wp-block-template-part[data-area="footer"] {
  display: none !important;
}
body.single-product .stars-buy-panel h1.wp-block-post-title {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
}
body:not(.wp-admin) .wp-site-blocks,
body:not(.wp-admin) main,
body:not(.wp-admin) .entry-content,
body:not(.wp-admin) .wp-block-post-content,
body:not(.wp-admin) .is-layout-constrained,
body:not(.wp-admin) .is-layout-constrained > *,
body:not(.wp-admin) .wp-block-html {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html { margin-top: 0 !important; }
body.stars-has-theme { font-family: "Open Sans", Arial, Helvetica, sans-serif; color: var(--stars-ink); background: #fff; }

.stars-site {
  --blue: var(--stars-blue);
  --deep: var(--stars-navy);
  --ink: var(--stars-ink);
  --steel: var(--stars-steel);
  --line: var(--stars-line);
  --orange: var(--stars-orange);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--stars-ink);
  background: #fff;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden;
}
.stars-site *, .stars-site *::before, .stars-site *::after { box-sizing: border-box; }
.stars-site a { color: inherit; text-decoration: none; }
.stars-shell { max-width: var(--stars-shell); margin: 0 auto; padding: 0 24px; }

/* Utility */
.stars-utility { background: var(--stars-ice2); color: #315374; font-size: 13px; font-weight: 600; border-bottom: 1px solid #d9e7f2; }
.stars-utility .stars-shell { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stars-utility a { color: var(--stars-blue); font-weight: 700; }

/* Sticky brand bar */
.stars-brandbar {
  background: #fff;
  border-bottom: 1px solid var(--stars-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.stars-brandbar .stars-shell {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(160px,220px) minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
}
.stars-logo { display: flex; align-items: center; gap: 10px; color: var(--stars-blue); font-weight: 800; font-size: 22px; line-height: 1.05; }
.stars-logo-mark { width: 44px; height: 44px; display: block; flex: 0 0 44px; border-radius: 8px; overflow: hidden; }
.stars-logo-mark svg { display: block; width: 100%; height: 100%; }
.stars-logo small { display: block; margin-top: 3px; color: var(--stars-steel); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Pill search */
.stars-search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 48px;
  border: 2px solid var(--stars-blue);
  border-radius: var(--stars-pill);
  overflow: hidden;
  background: #fff;
  width: 100%;
}
.stars-search input {
  border: 0; outline: 0; padding: 0 20px; min-width: 0; font-size: 15px;
  font-family: inherit; background: transparent;
}
.stars-search button {
  border: 0; min-width: 108px; padding: 0 22px; background: var(--stars-blue); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
  min-height: 44px;
}
.stars-search button:hover { filter: brightness(1.06); }
.stars-search:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 111, 186, 0.22);
  border-color: #005a96;
}
.stars-brandbar .stars-search {
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(0, 111, 186, 0.08);
}
.stars-search input::placeholder { color: #6b7c90; font-weight: 600; opacity: 1; }

/* Buttons */
.stars-btn, a.stars-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--stars-pill);
  background: var(--stars-blue); color: #fff !important; font-weight: 700; font-size: 14px;
  cursor: pointer; text-align: center; line-height: 1.1; font-family: inherit;
  white-space: nowrap;
}
.stars-btn-primary, .stars-btn.alt { background: var(--stars-blue); border-color: var(--stars-blue); }
.stars-btn-orange { background: var(--stars-orange); border-color: var(--stars-orange); color: #fff !important; }
.stars-btn-light, .stars-btn.light {
  background: #fff; color: var(--stars-blue) !important; border-color: #9cb9d4;
}
.stars-btn-ghost {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.45);
}
.stars-brandbar .stars-btn { min-width: 148px; }

/* Nav */
.stars-nav { background: var(--stars-navy); color: #fff; }
.stars-nav .stars-shell {
  min-height: 46px; display: flex; align-items: center; gap: 22px; font-size: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.stars-nav .stars-shell::-webkit-scrollbar { display: none; }
.stars-nav a { color: #fff; font-weight: 700; flex: 0 0 auto; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.stars-nav a.active, .stars-nav a:hover { color: #ffc078; }
.stars-nav .nav-note { margin-left: auto; color: #b7d5ef; font-weight: 600; font-size: 12px; flex: 0 0 auto; white-space: nowrap; }

.stars-kicker { margin-bottom: 8px; color: var(--stars-orange); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.stars-card { border: 1px solid var(--stars-line); border-radius: var(--stars-radius); background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.05); }

/* Hero */
.stars-hero { position: relative; background: var(--stars-navy); color: #fff; overflow: hidden; }
.stars-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(105deg, rgba(7,29,53,.92) 0%, rgba(7,29,53,.78) 42%, rgba(7,29,53,.35) 72%, rgba(7,29,53,.12) 100%),
    url('https://stars-shops.com/wp-content/uploads/2026/09/stars-shops-industrial-automation-hero.webp');
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.stars-hero .stars-shell {
  position: relative; min-height: 480px;
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,400px);
  gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px;
}
.stars-hero h1 { max-width: 720px; margin: 0 0 16px; color: #fff; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; }
.stars-hero p { max-width: 640px; margin: 0 0 22px; color: #dce8f5; font-size: 16px; line-height: 1.55; }
.stars-hero-search { margin: 0 0 18px; max-width: 560px; }
.stars-hero-search .stars-search { border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.stars-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stars-rfq-panel {
  background: rgba(255,255,255,.96); color: var(--stars-ink); border-radius: 12px;
  padding: 24px; border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.stars-rfq-panel h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--stars-navy); }
.stars-rfq-panel p { margin: 0 0 12px; color: var(--stars-steel); font-size: 14px; line-height: 1.5; }
.stars-rfq-panel ul { margin: 0 0 16px; padding-left: 18px; color: var(--stars-steel); font-size: 13px; line-height: 1.55; }
.stars-rfq-panel .stars-btn { width: 100%; background: var(--stars-orange); border-color: var(--stars-orange); }

/* Circular categories */
.stars-cat-row { background: #fff; border-bottom: 1px solid var(--stars-line); padding: 28px 0 32px; }
.stars-cat-row .stars-section-head { margin-bottom: 18px; }
.stars-cat-circles {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; text-align: center;
}
.stars-cat-circle {
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--stars-ink); font-weight: 700; font-size: 13px;
}
.stars-cat-circle .orb {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--stars-ice2); border: 2px solid var(--stars-ice);
  color: var(--stars-blue); font-size: 13px; font-weight: 800; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.stars-cat-circle:hover .orb {
  transform: translateY(-3px); border-color: var(--stars-blue);
  box-shadow: 0 10px 24px rgba(0,111,186,.15);
}

/* Trust / proof */
.stars-proof { background: var(--stars-ice2); border-bottom: 1px solid #dbe7f1; }
.stars-proof .stars-shell {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
  padding-top: 22px; padding-bottom: 22px;
}
.stars-proof div { text-align: center; padding: 8px 6px; }
.stars-proof strong { display: block; color: var(--stars-blue); font-size: 28px; font-weight: 800; line-height: 1.1; }
.stars-proof span { display: block; margin-top: 4px; color: var(--stars-steel); font-size: 13px; font-weight: 600; }

/* Sections */
.stars-section { padding: 48px 24px; max-width: var(--stars-shell); margin: 0 auto; }
.stars-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
.stars-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--stars-navy); line-height: 1.15; }
.stars-section-head p { margin: 0; max-width: 420px; color: var(--stars-steel); font-size: 14px; line-height: 1.5; }

.stars-categories {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.stars-category {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; padding: 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stars-category:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,23,42,.08); }
.stars-category h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--stars-navy); }
.stars-category p { margin: 0 0 14px; color: var(--stars-steel); font-size: 13px; line-height: 1.45; flex: 1; }
.stars-category span { color: var(--stars-blue); font-weight: 800; font-size: 13px; }

/* How it works */
.stars-process { background: #fff; }
.stars-process-grid {
  max-width: var(--stars-shell); margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: minmax(220px,.9fr) minmax(0,1.1fr); gap: 28px; align-items: stretch;
}
.stars-process-media {
  min-height: 320px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.45)),
    url('https://stars-shops.com/wp-content/uploads/2026/09/stars-shops-rfq-workflow-hydraulic-pump.webp') center/cover no-repeat;
  border: 1px solid var(--stars-line);
}
.stars-steps { display: grid; gap: 12px; }
.stars-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px 18px;
}
.stars-step b {
  width: 36px; height: 36px; border-radius: 50%; background: var(--stars-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.stars-step h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.stars-step p { margin: 0; color: var(--stars-steel); font-size: 13px; line-height: 1.45; }

/* Benefit band */
.stars-benefits {
  background: var(--stars-navy); color: #fff; padding: 48px 24px;
}
.stars-benefits .stars-shell { max-width: var(--stars-shell); }
.stars-benefits h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.stars-benefits > .stars-shell > p { margin: 0 0 28px; color: #b7d5ef; max-width: 640px; }
.stars-benefit-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
}
.stars-benefit {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 18px 18px 20px;
}
.stars-benefit .ico {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(0,111,186,.35);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  color: #9fd0ff; font-weight: 800; font-size: 14px;
}
.stars-benefit h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.stars-benefit p { margin: 0; color: #c5d7ea; font-size: 13px; line-height: 1.5; }

/* Help / RFQ card */
.stars-help {
  max-width: var(--stars-shell); margin: 0 auto; padding: 40px 24px 56px;
}
.stars-help-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center;
  padding: 28px 32px; border-radius: 14px; background: var(--stars-ice2);
  border: 1px solid #d5e4f2;
}
.stars-help-card h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: var(--stars-navy); }
.stars-help-card p { margin: 0; color: var(--stars-steel); font-size: 15px; line-height: 1.5; max-width: 640px; }
.stars-help-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Footer */
.stars-footer { background: #0055B8; color: #d6e3f1; }
.stars-footer-grid {
  max-width: var(--stars-shell); margin: 0 auto; padding: 48px 24px 36px;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px;
}
.stars-footer h2 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.stars-footer a, .stars-footer p { display: block; margin: 0 0 10px; color: #d6e3f1; font-size: 14px; line-height: 1.45; font-weight: 600; }
.stars-footer a:hover { color: #fff; }
.stars-footer .stars-btn { display: inline-flex; margin-top: 8px; }
.stars-footer-legal { background: var(--stars-footer); }
.stars-footer-legal .stars-shell { padding-top: 16px; padding-bottom: 18px; }
.stars-footer-legal p { margin: 0; color: #9bb0c7; font-size: 12px; line-height: 1.5; font-weight: 500; }

/* Hide theme demo nav labels if any leak through */
.wp-block-navigation-item__label:is(:lang(zh-Hans), :lang(zh)) { }
body .wp-block-navigation a[href="#"] { display: none !important; }

/* ========== Products catalog ========== */
.stars-catalog-hero { background: var(--stars-ice2); border-bottom: 1px solid #dbe7f1; }
.stars-catalog-hero .stars-shell {
  display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: center; gap: 28px;
  padding-top: 28px; padding-bottom: 28px;
}
.stars-catalog-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--stars-navy); }
.stars-catalog-hero p { margin: 0; color: var(--stars-steel); font-size: 14px; line-height: 1.5; max-width: 720px; }
.stars-catalog-rfq { padding: 18px; border-left: 4px solid var(--stars-orange); }
.stars-catalog-rfq strong { display: block; margin-bottom: 6px; color: var(--stars-blue); font-size: 16px; }
.stars-catalog-rfq p { margin: 0 0 12px; font-size: 13px; color: var(--stars-steel); }
.stars-catalog-shell { max-width: var(--stars-shell); margin: 0 auto; padding: 28px 24px 56px; }
.stars-catalog-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.stars-catalog-sidebar { display: grid; gap: 14px; position: sticky; top: 88px; }
.stars-side-card { padding: 16px 18px; }
.stars-side-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.stars-side-card p { margin: 0; color: var(--stars-steel); font-size: 13px; line-height: 1.45; }
.stars-side-links { display: grid; gap: 8px; margin-top: 10px; }
.stars-side-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px; background: var(--stars-ice2); font-weight: 700; font-size: 13px;
  min-height: 44px; color: var(--stars-navy);
}
.stars-side-links a span { color: var(--stars-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.stars-catalog-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--stars-line); border-radius: 8px; background: #fff;
}
.stars-catalog-summary strong { display: block; font-size: 16px; }
.stars-catalog-summary small { display: block; margin-top: 4px; color: var(--stars-steel); font-size: 12px; font-weight: 600; }

.stars-products-page .woocommerce-result-count,
.stars-products-page .woocommerce-ordering { display: none !important; }
.stars-products-page .woocommerce ul.products,
.stars-products-page .stars-catalog ul.products,
.stars-products-page ul.products {
  display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
  margin: 0 !important; padding: 0 !important; list-style: none !important; clear: both;
}
.stars-products-page .woocommerce ul.products::before,
.stars-products-page .woocommerce ul.products::after,
.stars-products-page .stars-catalog ul.products::before,
.stars-products-page .stars-catalog ul.products::after { display: none !important; content: none !important; }
.stars-products-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; padding: 14px !important;
  border: 1px solid var(--stars-line); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.05); display: flex; flex-direction: column; min-height: 280px;
  border-top: 3px solid var(--stars-blue); list-style: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stars-products-page ul.products li.product:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15,23,42,.09); }
.stars-products-page ul.products li.product a.woocommerce-loop-product__link {
  display: flex; flex-direction: column; flex: 1; color: inherit;
}
.stars-products-page ul.products li.product img {
  width: 100% !important; height: 130px !important; object-fit: contain; margin: 0 0 10px !important;
  background: var(--stars-ice2); border: 1px solid #edf1f5; border-radius: 6px; padding: 10px;
}
.stars-products-page ul.products li.product { position: relative; }
.stars-products-page ul.products li.product .stars-card-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid #008A00; background: #f3fff3; color: #008A00;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.stars-products-page ul.products li.product .stars-card-brand {
  margin: 0 0 4px; color: var(--stars-steel); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.stars-products-page ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 6px !important; padding: 0 !important; font-size: 18px !important; line-height: 1.25 !important;
  color: var(--stars-blue) !important; font-weight: 800 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stars-products-page ul.products li.product .stars-card-desc {
  margin: 0 0 12px; color: var(--stars-steel); font-size: 12px; line-height: 1.4; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stars-products-page ul.products li.product .price { display: none !important; }
.stars-products-page ul.products li.product .button,
.stars-products-page ul.products li.product a.button {
  display: inline-flex !important; justify-content: center; align-items: center; width: 100%;
  min-height: 44px !important; margin-top: auto !important; padding: 0 12px !important;
  border-radius: var(--stars-pill) !important; background: var(--stars-blue) !important; color: #fff !important;
  font-size: 13px !important; font-weight: 700 !important; border: 0 !important;
}
.stars-products-page .woocommerce-pagination { margin-top: 24px !important; }
.stars-products-page .woocommerce-pagination ul { border: 0 !important; display: flex; gap: 6px; flex-wrap: wrap; }
.stars-search-status { margin-bottom: 14px; font-size: 14px; color: var(--stars-steel); font-weight: 600; }
.stars-search-status strong { color: var(--stars-blue); }
.stars-empty-state {
  padding: 28px; border: 1px dashed #c5d3e2; border-radius: 10px; background: var(--stars-ice2); text-align: left;
}
.stars-empty-state strong { display: block; margin-bottom: 8px; font-size: 18px; color: var(--stars-navy); }
.stars-empty-state p { margin: 0 0 14px; color: var(--stars-steel); }

/* ========== Single product / PDP ========== */
body.single-product .stars-product-workbench { max-width: var(--stars-shell) !important; margin: 0 auto !important; padding: 28px 24px 48px !important; }
body.single-product .stars-product-primary { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(300px,420px) !important; gap: 0 !important; align-items: start; border: 1px solid var(--stars-line); border-radius: 12px; overflow: hidden; background: #fff; }
body.single-product .stars-media-panel { padding: 20px; border-right: 1px solid var(--stars-line); background: #fff; }
body.single-product .stars-buy-panel { padding: 28px 28px 24px; background: #fff; }
body.single-product .stars-detail-label {
  display: none !important; /* replaced by stars-mpn-label */
}
body.single-product .stars-pdp-brand {
  margin: 0 0 6px; color: var(--stars-steel); font-size: 13px; font-weight: 600;
}
body.single-product .stars-pdp-brand strong {
  color: var(--stars-navy); font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
body.single-product .stars-mpn-label {
  display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: var(--stars-pill);
  background: var(--stars-ice); color: var(--stars-blue); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
body.single-product h1.wp-block-post-title {
  display: block !important;
  margin: 0 0 12px !important; font-size: clamp(26px, 3.2vw, 36px) !important; line-height: 1.12 !important;
  color: var(--stars-blue) !important; font-weight: 800 !important;
  letter-spacing: -0.01em;
}
body.single-product .wp-block-post-excerpt,
body.single-product .wp-block-post-excerpt p { color: var(--stars-steel); font-size: 14px; line-height: 1.5; }
body.single-product .stars-rfq-inline {
  margin: 16px 0; padding: 18px 18px; border: 2px solid var(--stars-blue); border-radius: 10px;
  background: #f3f8fc; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 10px 24px rgba(0, 111, 186, 0.1);
}
body.single-product .stars-rfq-inline .stars-rfq-trust {
  display: block; margin-top: 6px; color: #008A00; font-size: 12px; font-weight: 700;
}
body.single-product .stars-rfq-inline strong { display: block; margin: 0 0 4px; color: var(--stars-navy); font-size: 16px; }
body.single-product .stars-rfq-inline span { display: block; color: var(--stars-steel); font-size: 13px; line-height: 1.45; }
body.single-product .stars-rfq-inline .stars-btn,
body.single-product a.button[href^="mailto"] {
  min-height: 48px !important; min-width: 168px; padding: 0 20px !important;
  border-radius: var(--stars-pill) !important; background: var(--stars-blue) !important; color: #fff !important;
  font-size: 14px !important; font-weight: 800 !important; border: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
body.single-product .stars-single-rfq,
body.single-product .wp-block-woocommerce-product-price,
body.single-product .price,
body.single-product .woocommerce-breadcrumb,
body.single-product .wp-block-woocommerce-breadcrumbs { display: none !important; }
/* Primary RFQ, secondary cart — force Woo block form visible */
body.single-product .wp-block-woocommerce-add-to-cart-form,
body.single-product .wc-block-add-to-cart-form,
body.single-product .wp-block-add-to-cart-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 96px !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--stars-line) !important;
}
body.single-product .wp-block-woocommerce-add-to-cart-form form.cart,
body.single-product form.cart {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 88px !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  overflow: visible !important;
  visibility: visible !important;
}
body.single-product form.cart::before,
body.single-product form.cart::after {
  content: none !important;
  display: none !important;
}
body.single-product form.cart > * {
  grid-column: auto !important;
  float: none !important;
}
body.single-product form.cart .quantity {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  min-height: 0 !important;
}
/* Visible Quantity label (override Woo screen-reader-text) */
body.single-product form.cart .quantity > label,
body.single-product form.cart .quantity label.screen-reader-text,
body.single-product form.cart .quantity .stars-qty-label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  border: 0 !important;
  white-space: normal !important;
  word-wrap: normal !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--stars-navy) !important;
  letter-spacing: .02em !important;
}
body.single-product form.cart .quantity .qty,
body.single-product form.cart input.qty {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 44px !important;
  width: 96px !important;
  max-width: 120px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  padding: 8px 10px !important;
  border: 1px solid var(--stars-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--stars-ink) !important;
  box-sizing: border-box !important;
}
body.single-product button.single_add_to_cart_button,
body.single-product .single_add_to_cart_button,
body.single-product form.cart > .single_add_to_cart_button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  float: none !important;
  grid-column: auto !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 20px !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-indent: 0 !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  background: #fff !important;
  color: #006FBA !important;
  border: 2px solid #006FBA !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  z-index: 2 !important;
}
body.single-product .stars-detail-band { margin-top: 28px; padding-top: 8px; }

/* About / cases / contact polish */
.stars-about-hero, .stars-cases-hero, .stars-contact-hero {
  background: linear-gradient(180deg, var(--stars-ice2), #fff); border-bottom: 1px solid var(--stars-line);
}
.stars-about-hero .stars-shell, .stars-cases-hero .stars-shell, .stars-contact-hero .stars-shell {
  padding-top: 40px; padding-bottom: 40px;
}
.stars-about-hero h1, .stars-cases-hero h1, .stars-contact-hero h1 {
  margin: 0 0 12px; font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--stars-navy); line-height: 1.1;
}
.stars-about-hero p, .stars-cases-hero p, .stars-contact-hero p {
  margin: 0 0 18px; max-width: 720px; color: var(--stars-steel); font-size: 16px; line-height: 1.55;
}
.stars-about-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stars-about-grid, .stars-contact-grid {
  max-width: var(--stars-shell); margin: 0 auto; padding: 36px 24px 56px;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
}
.stars-about-card, .stars-contact-card { padding: 20px; }
.stars-about-card h3, .stars-contact-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--stars-navy); }
.stars-about-card p, .stars-contact-card p { margin: 0; color: var(--stars-steel); font-size: 14px; line-height: 1.5; }
.stars-cases-section { max-width: var(--stars-shell); margin: 0 auto; padding: 36px 24px 56px; }
.stars-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.stars-case-card { padding: 0; overflow: hidden; }
.stars-case-body { padding: 18px 20px 20px; }
.stars-contact-page .stars-contact-card a { color: var(--stars-blue); font-weight: 700; }

/* Page content contact (block-based) */
.stars-contact-wrap {
  max-width: 800px; margin: 0 auto; padding: 40px 24px 64px;
}
.stars-contact-wrap h1 { font-size: 36px; font-weight: 800; color: var(--stars-navy); margin: 0 0 12px; }
.stars-contact-wrap a { color: var(--stars-blue); font-weight: 700; }

/* Hide leftover demo Chinese theme labels in any exposed navigation */
body .wp-block-navigation-item:has(.wp-block-navigation-item__label:is([data-label="样板"], [data-label="主题"])),
body li.wp-block-navigation-item a[href*="sample"],
body .menu-item a[href="#"] { display: none !important; }


/* Mobile nav toggle */
.stars-nav-toggle {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--stars-pill);
  background: transparent; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.stars-nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; width: 18px; }
.stars-nav-toggle .bars i { display: block; height: 2px; background: #fff; border-radius: 1px; }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .stars-cat-circles { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stars-categories, .stars-benefit-grid, .stars-about-grid, .stars-contact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stars-catalog-grid { grid-template-columns: 1fr; }
  .stars-catalog-sidebar { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .stars-products-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 900px) {
  .stars-hero .stars-shell { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 36px; }
  .stars-process-grid { grid-template-columns: 1fr; }
  .stars-process-media { min-height: 220px; }
  .stars-help-card { grid-template-columns: 1fr; }
  .stars-help-actions { justify-content: flex-start; }
  .stars-catalog-hero .stars-shell { grid-template-columns: 1fr; }
  .stars-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.single-product .stars-product-primary { grid-template-columns: 1fr !important; }
  body.single-product .stars-media-panel { border-right: 0; border-bottom: 1px solid var(--stars-line); }
  body.single-product .stars-rfq-inline { flex-direction: column; align-items: stretch; }
  body.single-product .stars-rfq-inline .stars-btn { width: 100%; }
}
@media (max-width: 700px) {
  .stars-shell { padding-left: 14px; padding-right: 14px; }
  .stars-brandbar .stars-shell {
    grid-template-columns: 1fr auto; gap: 10px; min-height: 64px; padding-top: 8px; padding-bottom: 8px;
  }
  .stars-brandbar .stars-search { grid-column: 1 / -1; order: 3; }
  .stars-logo { font-size: 18px; }
  .stars-logo-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .stars-logo small { display: none; }
  .stars-brandbar .stars-btn { min-width: 0; padding: 0 14px; font-size: 13px; }
  .stars-nav .stars-shell {
    flex-wrap: wrap; overflow: visible; gap: 8px 16px; min-height: 52px; padding-top: 8px; padding-bottom: 8px;
  }
  .stars-nav-toggle { display: inline-flex; }
  .stars-nav .stars-shell > a,
  .stars-nav .stars-shell > .nav-note { display: none; width: 100%; }
  .stars-nav.is-open .stars-shell > a {
    display: flex; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .stars-nav.is-open .stars-shell > .nav-note { display: block; padding: 8px 0 4px; white-space: normal; }
  .stars-brandbar .stars-search input { font-size: 14px; }
  .stars-brandbar .stars-search input::placeholder { font-size: 13px; }
  .stars-utility .stars-shell { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  .stars-proof .stars-shell { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stars-cat-circles { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .stars-cat-circle .orb { width: 72px; height: 72px; }
  .stars-categories, .stars-benefit-grid, .stars-about-grid, .stars-contact-grid, .stars-case-grid, .stars-footer-grid { grid-template-columns: 1fr; }
  .stars-catalog-sidebar { grid-template-columns: 1fr; }
  .stars-catalog-summary { flex-direction: column; align-items: stretch; }
  .stars-section, .stars-process-grid, .stars-help, .stars-catalog-shell { padding-left: 14px; padding-right: 14px; }
  .stars-products-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  .stars-products-page ul.products li.product { min-height: 0; padding: 10px !important; }
  .stars-products-page ul.products li.product img { height: 100px !important; }
  .stars-products-page ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
}
/* PDP mobile first-screen: keep qty + cart near RFQ */
@media (max-width: 700px) {
  body.single-product .stars-product-workbench { padding: 14px 14px 32px !important; }
  body.single-product .stars-media-panel { padding: 10px 12px !important; }
  body.single-product .stars-buy-panel { padding: 14px 14px 16px !important; }
  body.single-product .stars-media-panel .woocommerce-product-gallery,
  body.single-product .stars-media-panel .wp-block-woocommerce-product-image-gallery {
    margin: 0 !important;
  }
  body.single-product .stars-media-panel img.wp-post-image,
  body.single-product .stars-media-panel .woocommerce-product-gallery__image img,
  body.single-product .stars-media-panel .wp-block-woocommerce-product-image img {
    max-height: 220px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
  body.single-product .stars-detail-label { margin-bottom: 6px !important; }
  body.single-product h1.wp-block-post-title { margin: 0 0 8px !important; }
  body.single-product .wp-block-post-excerpt { margin: 6px 0 0 !important; }
  body.single-product .stars-rfq-inline {
    margin: 10px 0 !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  body.single-product .wp-block-woocommerce-add-to-cart-form,
  body.single-product .wc-block-add-to-cart-form,
  body.single-product .wp-block-add-to-cart-form {
    margin-top: 10px !important;
    padding-top: 10px !important;
    min-height: 0 !important;
  }
  body.single-product form.cart {
    gap: 8px !important;
    min-height: 0 !important;
  }
  body.single-product form.cart .quantity .qty,
  body.single-product form.cart input.qty {
    min-height: 40px !important;
  }
  body.single-product button.single_add_to_cart_button,
  body.single-product .single_add_to_cart_button {
    min-height: 44px !important;
    padding: 10px 16px !important;
  }
}
@media (max-width: 420px) {
  body.single-product .stars-media-panel img.wp-post-image,
  body.single-product .stars-media-panel .woocommerce-product-gallery__image img,
  body.single-product .stars-media-panel .wp-block-woocommerce-product-image img {
    max-height: 180px !important;
  }
  body.single-product .stars-product-workbench { padding: 10px 10px 28px !important; }
  body.single-product .stars-buy-panel { padding: 12px 12px 14px !important; }
}
@media (max-width: 420px) {
  .stars-cat-circles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stars-products-page ul.products { grid-template-columns: 1fr !important; }
}



/* v1.4 gap polish */
@media (max-width: 700px) {
  .stars-utility { font-size: 12px; }
  .stars-utility .stars-shell span { line-height: 1.35; }
  .stars-nav .stars-shell { padding-left: 14px; padding-right: 14px; }
  .stars-nav-toggle { margin: 4px 0; }
  .stars-brandbar .stars-search { box-shadow: none; }
  .stars-products-page ul.products li.product .stars-card-badge { top: 8px; right: 8px; font-size: 10px; padding: 2px 7px; }
  .stars-products-page ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; }
  body.single-product .stars-rfq-inline { border-width: 2px; }
}


/* ========== P2 v1.5: Starts With / Brands wall / sticky RFQ ========== */
.stars-starts-card h3 { margin-bottom: 10px; }
.stars-starts-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.stars-starts-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 0; padding: 0 2px;
  border-radius: 6px; border: 1px solid #d5e4f2; background: #fff;
  color: var(--stars-navy); font-size: 12px; font-weight: 800;
  text-decoration: none !important;
}
.stars-starts-letter:hover { border-color: var(--stars-blue); color: var(--stars-blue); background: #f3f8fc; }
.stars-starts-letter.is-active {
  background: var(--stars-blue); border-color: var(--stars-blue); color: #fff !important;
}
.stars-starts-clear {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--stars-blue);
}
.stars-starts-status,
.stars-brand-status {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 8px;
  background: #f3f8fc; border: 1px solid #d5e4f2;
  font-size: 13px; font-weight: 700; color: var(--stars-navy);
}
.stars-brand-status a { color: var(--stars-blue); font-weight: 800; }

.stars-brands-page .entry-content,
.stars-brands-page .wp-block-post-content {
  max-width: var(--stars-shell); margin-left: auto; margin-right: auto; padding: 12px 24px 48px;
}
.stars-brands-intro p {
  margin: 0 0 16px; color: var(--stars-steel); font-size: 14px; line-height: 1.5; max-width: 760px;
}
.stars-brands-jump {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px;
}
.stars-brands-jump a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 0 8px;
  border-radius: 6px; background: var(--stars-ice2); border: 1px solid #d5e4f2;
  color: var(--stars-navy); font-size: 12px; font-weight: 800;
}
.stars-brands-jump a:hover { border-color: var(--stars-blue); color: var(--stars-blue); }
.stars-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.stars-brand-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px; border-radius: 8px; border: 1px solid var(--stars-line);
  background: #fff; text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.stars-brand-tile:hover {
  transform: translateY(-2px); border-color: var(--stars-blue);
  box-shadow: 0 12px 24px rgba(0,111,186,.1);
}
.stars-brand-name {
  color: var(--stars-navy); font-size: 14px; font-weight: 800; line-height: 1.25;
}
.stars-brand-count {
  color: var(--stars-steel); font-size: 12px; font-weight: 700;
}
.stars-brands-empty {
  padding: 20px; border-radius: 8px; background: var(--stars-ice2); color: var(--stars-steel);
}

.stars-condition-radios {
  margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--stars-line);
  border-radius: 8px; background: #fafcfe;
}
.stars-condition-label {
  margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--stars-steel);
}
.stars-condition-option {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-size: 14px; font-weight: 700; color: var(--stars-navy); cursor: pointer;
}
.stars-condition-option input { accent-color: var(--stars-blue); }

.stars-pdp-sticky-rfq {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); border-top: 1px solid #d5e4f2;
  box-shadow: 0 -8px 24px rgba(15,23,42,.12);
  backdrop-filter: blur(8px);
}
.stars-pdp-sticky-inner {
  max-width: var(--stars-shell); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.stars-pdp-sticky-mpn {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--stars-blue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stars-pdp-sticky-rfq .stars-btn {
  flex: 0 0 auto; min-height: 44px; min-width: 120px; padding: 0 16px;
  border-radius: var(--stars-pill); background: var(--stars-blue); color: #fff;
  font-size: 13px; font-weight: 800;
}
/* Desktop: never show sticky RFQ */
@media (min-width: 901px) {
  .stars-pdp-sticky-rfq { display: none !important; }
}
/* Tablet: hidden until JS reveals after buy box scrolls away */
@media (min-width: 701px) and (max-width: 900px) {
  .stars-pdp-sticky-rfq[hidden] { display: none !important; }
  body.single-product { padding-bottom: 72px; }
}
/* Mobile ≤700px: always show compact bottom Email RFQ CTA */
@media (max-width: 700px) {
  .stars-starts-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .stars-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.single-product { padding-bottom: 72px; }
  body.single-product .stars-pdp-sticky-rfq {
    display: block !important;
  }
  body.single-product .stars-pdp-sticky-rfq[hidden] {
    display: block !important;
  }
}
/* Woo pages: ensure injected chrome sits above TT5 chrome we hide */
body.woocommerce-cart .stars-brandbar,
body.woocommerce-checkout .stars-brandbar,
body.woocommerce-account .stars-brandbar,
body.stars-brands-page .stars-brandbar {
  position: relative; z-index: 40;
}
