/* HD CLC Unified v1.4.3 — typography, product cards, prices and RFQ form.
   Loaded AFTER modern.css, unified.css and quotes.css.
   Intentionally scoped: does not alter WordPress/Flatsome elements outside the plugin. */

/* Type system — do not let Flatsome inject badge/pill styling into product text. */
.hdclc-catalog,
.hdclc-rfq-form {
  --hdclc-text: #21382a;
  --hdclc-muted: #52675a;
  --hdclc-green: #176b3a;
  --hdclc-line: #dce5de;
  font-family: "Roboto", Arial, Helvetica, sans-serif !important;
  color: var(--hdclc-text);
  -webkit-font-smoothing: antialiased;
}
.hdclc-catalog .hdclc-product-grid {
  gap: 18px !important;
  align-items: stretch;
}

/* One white product card, without individual colored text boxes. */
.hdclc-catalog .hdclc-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hdclc-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .18s ease !important;
}
.hdclc-catalog .hdclc-product-card:hover {
  border-color: #8fac98 !important;
  box-shadow: none !important;
  transform: none !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-content {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 22px 20px 20px !important;
  background: #fff !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-category {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--hdclc-green) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .045em !important;
  line-height: 1.45 !important;
  text-transform: uppercase;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-content h3 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #20352a !important;
  font-size: 19px !important;
  font-weight: 750 !important;
  letter-spacing: -.015em;
  line-height: 1.38 !important;
  overflow-wrap: anywhere;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-sku {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #65766b !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-content > p {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 13px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--hdclc-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* Make the price legible without a highlighted box or extra border. */
.hdclc-catalog .hdclc-product-card .hdclc-product-price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 7px !important;
  width: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hdclc-green) !important;
  box-shadow: none !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-price strong {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--hdclc-green) !important;
  font-size: clamp(23px, 2.1vw, 27px) !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-product-price small {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #69796f !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

/* Specifications use readable individual lines, never colored chips. */
.hdclc-catalog .hdclc-product-card .hdclc-variant-meta {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 5px !important;
  min-width: 0;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hdclc-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-variant-meta span {
  display: block !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hdclc-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-variant-meta span + span::before {
  content: none !important;
  display: none !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-variant-meta b {
  color: var(--hdclc-text) !important;
  font-weight: 700 !important;
}

/* Only inputs and buttons have visible control surfaces. */
.hdclc-catalog .hdclc-product-card .hdclc-config-controls,
.hdclc-catalog .hdclc-product-card .hdclc-product-actions {
  margin-top: auto;
}
.hdclc-catalog .hdclc-product-card .hdclc-config-controls {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 11px !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-config-controls label,
.hdclc-catalog .hdclc-product-card .hdclc-qty-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #3e5346 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
.hdclc-catalog .hdclc-product-card input:not([type="hidden"]),
.hdclc-catalog .hdclc-product-card select {
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #a8b9ad !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #21382a !important;
  box-shadow: none !important;
  font: 500 16px/1.35 "Roboto", Arial, sans-serif !important;
}
.hdclc-catalog .hdclc-product-card input:focus,
.hdclc-catalog .hdclc-product-card select:focus {
  border-color: var(--hdclc-green) !important;
  outline: 2px solid rgba(23,107,58,.16) !important;
  outline-offset: 1px;
}
.hdclc-catalog .hdclc-product-card .hdclc-add-to-list {
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--hdclc-green) !important;
  color: #fff !important;
  font: 700 15px/1.35 "Roboto", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.hdclc-catalog .hdclc-product-card .hdclc-add-to-list:hover,
.hdclc-catalog .hdclc-product-card .hdclc-add-to-list:focus-visible {
  background: #10532c !important;
}
/* Product images manually configured from WP Admin remain visible. */
.hdclc-catalog .hdclc-product-card .hdclc-product-media-custom {
  border-radius: 0;
  background: #f6f8f6 !important;
}

/* RFQ form: matching Roboto, clean white layout, inputs are the only filled boxes. */
.hdclc-rfq-form {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 28px auto 36px !important;
  padding: 24px 0 12px !important;
  border: 0 !important;
  border-top: 1px solid var(--hdclc-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--hdclc-text) !important;
  box-shadow: none !important;
  clear: both;
}
.hdclc-rfq-form h3 {
  margin: 0 0 8px !important;
  color: #1c5e35 !important;
  font: 750 24px/1.3 "Roboto", Arial, sans-serif !important;
  letter-spacing: -.015em;
}
.hdclc-rfq-form > p:not(.hdclc-rfq-result):not(.hdclc-rfq-privacy) {
  max-width: 850px;
  margin: 0 0 16px !important;
  color: var(--hdclc-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}
.hdclc-rfq-form .hdclc-rfq-fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 20px !important;
  margin: 22px 0 14px !important;
}
.hdclc-rfq-form .hdclc-rfq-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.hdclc-rfq-form .hdclc-rfq-field > span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #31473a !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}
.hdclc-rfq-form .hdclc-rfq-field input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1px solid #a8b9ad !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: var(--hdclc-text) !important;
  box-shadow: none !important;
  font: 500 16px/1.35 "Roboto", Arial, sans-serif !important;
  appearance: none;
  -webkit-appearance: none;
}
.hdclc-rfq-form .hdclc-rfq-field input:focus {
  border-color: var(--hdclc-green) !important;
  outline: 2px solid rgba(23,107,58,.16) !important;
  outline-offset: 1px;
}
.hdclc-rfq-form .hdclc-rfq-privacy {
  margin: 16px 0 18px !important;
  color: #617168 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.hdclc-rfq-form .hdclc-rfq-privacy a {
  color: #176b3a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.hdclc-rfq-form .hdclc-rfq-send {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px !important;
  padding: 13px 24px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #176b3a !important;
  color: #fff !important;
  font: 700 16px/1.35 "Roboto", Arial, sans-serif !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.hdclc-rfq-form .hdclc-rfq-send:hover { background: #10532c !important; }
.hdclc-rfq-form .hdclc-rfq-result {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* RFQ anti-spam honeypot: remove all visible artifacts in every theme. */
.hdclc-rfq-form .hdclc-rfq-hp,
.hdclc-rfq-form .hdclc-rfq-hp *,
.hdclc-rfq-form [hidden].hdclc-rfq-hp,
.hdclc-rfq-form [hidden].hdclc-rfq-hp * {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Preserve the mandatory warehouse-first state, including on mobile. */
.hdclc-catalog .hdclc-product-card[hidden],
.hdclc-catalog .hdclc-warehouse-products[hidden],
.hdclc-catalog .hdclc-spec-step[hidden],
.hdclc-catalog .hdclc-catalog-empty[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hdclc-catalog .hdclc-product-grid { gap: 14px !important; }
  .hdclc-catalog .hdclc-product-card .hdclc-product-content { padding: 18px 16px 17px !important; }
}
@media (max-width: 700px) {
  .hdclc-catalog .hdclc-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }
  .hdclc-catalog .hdclc-product-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .hdclc-catalog .hdclc-product-card[hidden] { display: none !important; }
  .hdclc-catalog .hdclc-product-card .hdclc-product-content {
    padding: 19px 17px !important;
  }
  .hdclc-catalog .hdclc-product-card .hdclc-product-content h3 {
    font-size: 19px !important;
  }
  .hdclc-catalog .hdclc-product-card .hdclc-product-price strong {
    font-size: 25px !important;
  }
  .hdclc-rfq-form {
    margin: 22px auto 28px !important;
    padding: 22px 0 10px !important;
  }
  .hdclc-rfq-form .hdclc-rfq-fields {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .hdclc-rfq-form .hdclc-rfq-wide { grid-column: 1 !important; }
  .hdclc-rfq-form h3 { font-size: 22px !important; }
  .hdclc-rfq-form .hdclc-rfq-send { display: flex !important; width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hdclc-catalog .hdclc-product-card { transition: none !important; }
}



/* Compact RFQ submit panel: customer details are read from the calculator above. */
.hdclc-rfq-form .hdclc-rfq-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.hdclc-rfq-form .hdclc-rfq-heading h3{margin-bottom:6px!important}
.hdclc-rfq-form .hdclc-rfq-heading p{margin:0!important;max-width:820px}
.hdclc-rfq-form .hdclc-rfq-summary{display:flex;align-items:flex-start;gap:12px;max-width:900px;margin:14px 0;padding:14px 16px;border:1px solid #d7e7dc;border-radius:7px;background:#f5faf6}
.hdclc-rfq-form .hdclc-rfq-summary-icon{display:inline-flex;flex:0 0 25px;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;background:#176b3a;color:#fff;font-size:15px;font-weight:800}
.hdclc-rfq-form .hdclc-rfq-summary strong,.hdclc-rfq-form .hdclc-rfq-summary span{display:block}
.hdclc-rfq-form .hdclc-rfq-summary strong{margin:0 0 3px;color:#205b37;font-size:14px}
.hdclc-rfq-form .hdclc-rfq-summary span{color:#5b6d61;font-size:13px;line-height:1.5}
.hdclc-rfq-form .hdclc-rfq-items-note{margin:10px 0 16px!important;font-size:13px!important;color:#66756b!important}
.hdclc-rfq-form .hdclc-rfq-actions{display:flex;align-items:center;gap:12px;margin:16px 0 8px}
.hdclc-rfq-form .hdclc-rfq-send{min-width:190px}
.hdclc-rfq-form .hdclc-rfq-privacy{margin:8px 0 4px!important;font-size:13px!important}
.hdclc-rfq-form .hdclc-rfq-result{margin:10px 0 0!important}
.hdclc-rfq-result .hdclc-request-print-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:10px 0 0;padding:9px 15px;border-radius:5px;background:#176b3a;color:#fff!important;font-weight:750;text-decoration:none!important}
.hdclc-rfq-result .hdclc-request-print-link:hover{background:#10532c}
@media(max-width:700px){
  .hdclc-rfq-form .hdclc-rfq-summary{padding:12px}
  .hdclc-rfq-form .hdclc-rfq-actions{display:block}
  .hdclc-rfq-form .hdclc-rfq-send{width:100%;min-width:0}
}
