/* ==========================================================================
   Nova Plus — Catalog Mode & Quote Buttons
   Brand: blue #425CC7 · purple #7E57C5 · WhatsApp green #25D366
   ========================================================================== */

.nova-quote-box {
  --nova-blue: #425CC7;
  --nova-purple: #7E57C5;
  --nova-wa: #25D366;
  --nova-wa-dark: #1DA851;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.nova-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.nova-btn:hover { transform: translateY(-2px); }
.nova-btn:focus-visible { outline: 3px solid rgba(66, 92, 199, .45); outline-offset: 2px; }

/* WhatsApp — primary */
.nova-btn-wa {
  background: var(--nova-wa);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .30);
}
.nova-btn-wa:hover { background: var(--nova-wa-dark); box-shadow: 0 10px 26px rgba(37, 211, 102, .38); }

/* Form — secondary, brand outline.
   Uses a real border: Woodmart resets box-shadow on links. */
.nova-btn-form {
  background: transparent;
  color: #425CC7 !important;
  border: 2px solid #425CC7 !important;
}
.nova-btn-form:hover {
  background: linear-gradient(135deg, #425CC7 0%, #7E57C5 100%);
  color: #fff !important;
  border-color: transparent !important;
}

.nova-wa-icon { width: 21px; height: 21px; flex: 0 0 auto; }

.nova-quote-note {
  flex: 1 0 100%;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #7A819A;
}

/* --------------------------------------------------------------------------
   Product card button
   -------------------------------------------------------------------------- */
.nova-loop-btn-wrap { margin-top: 10px; }

.nova-btn-loop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #425CC7 0%, #7E57C5 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(66, 92, 199, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nova-btn-loop:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(66, 92, 199, .30); }

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */
.nova-wa-float {
  position: fixed;
  z-index: 380;
  bottom: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px 0 17px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nova-wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); }
.nova-wa-float .nova-wa-icon { width: 26px; height: 26px; }
.nova-wa-right { right: 20px; }
.nova-wa-left  { left: 20px; }

@media (max-width: 768px) {
  .nova-wa-float { bottom: 130px; height: 52px; padding: 0 8px; }
  .nova-wa-float .nova-wa-label { display: none; }
  .nova-wa-float { width: 52px; justify-content: center; padding: 0; }
}

/* --------------------------------------------------------------------------
   Tidy up what catalog mode leaves behind
   -------------------------------------------------------------------------- */
.catalog-mode-on .wd-product .wd-add-btn,
.catalog-mode-on .single_add_to_cart_button,
.catalog-mode-on .added_to_cart,
.catalog-mode-on .quantity,
.catalog-mode-on .wd-sticky-btn-cart,
.catalog-mode-on .woocommerce-cart-form,
.catalog-mode-on .cart-collaterals,
.catalog-mode-on .wd-sticky-add-to-cart { display: none !important; }

/* Woodmart shows an empty footer slot once the price and button are gone */
.catalog-mode-on .wd-product .wd-product-footer:empty { display: none !important; }

/* On the "base" hover style Woodmart fires woocommerce_after_shop_loop_item INSIDE
   .wd-add-btn, which catalog mode hides — keep the wrapper visible when it is ours. */
.catalog-mode-on .wd-product.product .wd-add-btn:has(.nova-loop-btn-wrap),
.wd-product.product .wd-add-btn:has(.nova-loop-btn-wrap) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* --------------------------------------------------------------------------
   Product specification tables
   -------------------------------------------------------------------------- */

.nova-specs-wrap { margin: 32px 0 8px; }

.nova-specs-wrap h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nova-specs-wrap h4 {
  margin: 26px 0 12px;
  font-size: 15px;
  font-weight: 700;
}

table.nova-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  table-layout: auto;
}

table.nova-specs th,
table.nova-specs td {
  padding: 10px 14px;
  border: 1px solid rgba(17, 22, 48, 0.10);
  text-align: left;
  vertical-align: top;
}

table.nova-specs thead th {
  background: #F3F5FB;
  font-weight: 700;
  white-space: nowrap;
}

table.nova-specs tbody tr:nth-child(odd) td { background: #FAFBFE; }

table.nova-specs tbody td:first-child {
  width: 34%;
  font-weight: 600;
  color: #4A5578;
}

table.nova-specs sub { font-size: 0.78em; }

@media (max-width: 575px) {
  table.nova-specs { font-size: 13.5px; }
  table.nova-specs th, table.nova-specs td { padding: 8px 10px; }
  table.nova-specs tbody td:first-child { width: 42%; }
}

/* --------------------------------------------------------------------------
   Single product — readable description column
   -------------------------------------------------------------------------- */

.woocommerce-tabs .woocommerce-Tabs-panel {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-tabs .woocommerce-Tabs-panel > p,
.woocommerce-tabs .woocommerce-Tabs-panel > ul,
.woocommerce-tabs .woocommerce-Tabs-panel > ol { max-width: 760px; }

.woocommerce-tabs .woocommerce-Tabs-panel h2 { margin-top: 30px; font-size: 22px; }
.woocommerce-tabs .woocommerce-Tabs-panel h2:first-child { margin-top: 0; }

/* ==========================================================================
   Quote request form (Contact Form 7)
   ========================================================================== */

/* CF7 5.9 wraps its hidden inputs in a fieldset; browsers give that a border. */
.wpcf7 .hidden-fields-container,
.wpcf7 fieldset.hidden-fields-container {
  display: none !important;
}

.nova-quote-lead {
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.65;
  color: #4A5578;
}

.nova-quote {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 32px 34px;
  border: 1px solid rgba(17, 22, 48, 0.10);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(17, 22, 48, 0.05);
}

.nova-quote-intro {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #6E7796;
}

.nova-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-bottom: 18px;
}

.nova-quote-field {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2A3154;
}

.nova-quote-wide { display: block; margin-bottom: 18px; }

.nova-quote .wpcf7-form-control-wrap { display: block; margin-top: 7px; }

.nova-quote input[type="text"],
.nova-quote input[type="email"],
.nova-quote input[type="tel"],
.nova-quote select,
.nova-quote textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(17, 22, 48, 0.16);
  border-radius: 9px;
  background: #FCFCFE;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #171B2C;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.nova-quote textarea { min-height: 118px; resize: vertical; }

.nova-quote input:focus,
.nova-quote select:focus,
.nova-quote textarea:focus {
  outline: none;
  border-color: #4A5CE8;
  box-shadow: 0 0 0 3px rgba(74, 92, 232, 0.15);
  background: #FFFFFF;
}

.nova-quote ::placeholder { color: #9AA2BE; opacity: 1; }

.nova-quote-consent {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6E7796;
}

.nova-quote-consent .wpcf7-list-item { margin: 0; }
.nova-quote-consent input[type="checkbox"] { margin-right: 8px; }

.nova-quote-submit { margin: 24px 0 0; }

.nova-quote input[type="submit"] {
  min-height: 52px;
  padding: 0 34px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(100deg, #3D5AF1 0%, #7B4BE0 100%);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}

.nova-quote input[type="submit"]:hover { filter: brightness(1.08); }
.nova-quote input[type="submit"]:active { transform: translateY(1px); }

.nova-quote .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 500; color: #D6334C; }
.nova-quote input.wpcf7-not-valid,
.nova-quote select.wpcf7-not-valid,
.nova-quote textarea.wpcf7-not-valid { border-color: #D6334C; }

.nova-quote .wpcf7-spinner { display: block; margin: 12px 0 0; }

.wpcf7 form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-width: 1px;
  border-radius: 10px;
  font-size: 15px;
}

.wpcf7 form.sent .wpcf7-response-output { border-color: #1DA851; background: #EEFBF3; color: #12603A; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #D6334C; background: #FDF0F2; color: #8C1B2E; }

.nova-quote-alt { max-width: 860px; margin: 26px auto 0; font-size: 15px; color: #4A5578; }
.nova-quote-alt a { font-weight: 600; }

@media (max-width: 767px) {
  .nova-quote { padding: 24px 20px 26px; border-radius: 14px; }
  .nova-quote-grid { grid-template-columns: 1fr; gap: 16px; }
  .nova-quote input[type="submit"] { width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Technical documents box (TDS / MSDS / COA) on the single product    */
/* ------------------------------------------------------------------ */
.nova-docs { margin: 26px 0 6px; padding: 18px 20px; border: 1px solid #e3e6f0; border-radius: 10px; background: #fafbff; }
.nova-docs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.nova-docs-title { font-weight: 700; font-size: 15px; color: #1b2140; }
.nova-docs-note { font-size: 13px; color: #6b7290; }
.nova-docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nova-docs-list li { margin: 0; }
.nova-doc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid #d7dbea; border-radius: 8px; background: #fff; color: #232a4d; font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.nova-doc:hover, .nova-doc:focus { border-color: #425CC7; color: #425CC7; box-shadow: 0 2px 10px rgba(66, 92, 199, .14); }
.nova-doc-i { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nova-doc-ext { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #8a90aa; }
.nova-doc:hover .nova-doc-ext { color: #7E57C5; }
@media (max-width: 575px) {
  .nova-docs { padding: 15px 16px; }
  .nova-doc { width: 100%; justify-content: flex-start; }
}

/* Downloads page — [nova_downloads] */
.nova-downloads { margin: 6px 0 30px; }
.nova-dl-table { width: 100%; }
.nova-dl-table td:first-child { font-weight: 600; }
.nova-dl-table td:first-child a { color: #232a4d; text-decoration: none; }
.nova-dl-table td:first-child a:hover { color: #425CC7; }
.nova-dl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nova-dl-links .nova-doc { padding: 7px 12px; font-size: 13px; gap: 6px; }
@media (max-width: 575px) { .nova-dl-links .nova-doc { width: auto; } }
