/* Love Jam Signature 1.5.3 — targeted interface recovery.
   Loaded last and intentionally specific to the active product template. */

/* WooCommerce injects list decoration and pseudo-elements into tabs. Reset all
   of it before applying the Love Jam navigation treatment. */
body.single-product .lj-product-after .woocommerce-tabs ul.tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: clamp(16px, 3vw, 42px) !important;
  margin: 0 0 34px !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .lj-product-after .woocommerce-tabs ul.tabs::before,
body.single-product .lj-product-after .woocommerce-tabs ul.tabs::after,
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li::before,
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li::after {
  content: none !important;
  display: none !important;
}
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li {
  display: block !important;
  float: none !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important;
}
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 4px 13px !important;
  color: #938c85 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li.active a,
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li a:hover,
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li a:focus-visible {
  color: #d0ab68 !important;
}
body.single-product .lj-product-after .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: #d40025 !important;
}

/* Compact purchase row: quantity and CTA sit on the same baseline. */
body.single-product .lj-product-overview__summary form.cart:not(.variations_form):not(.grouped_form) {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 28px 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.single-product .lj-product-overview__summary form.cart .quantity {
  float: none !important;
  display: block !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product .lj-product-overview__summary form.cart .qty {
  display: block !important;
  width: 92px !important;
  max-width: 92px !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid rgba(196,168,117,.32) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: #111 !important;
  text-align: center !important;
  box-shadow: none !important;
}
body.single-product .lj-product-overview__summary form.cart .single_add_to_cart_button {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* Variations retain their selectors above a clean quantity/CTA row. */
body.single-product .lj-product-overview__summary form.variations_form,
body.single-product .lj-product-overview__summary form.grouped_form {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .lj-product-overview__summary form.variations_form .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
}

/* Footer address is intentionally given a readable standalone line. */
.lj-footer-brand .lj-footer-email {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin-top: 2px !important;
  color: #d0ab68 !important;
  font-size: .78rem !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 767px) {
  body.single-product .lj-product-after .woocommerce-tabs ul.tabs {
    justify-content: flex-start !important;
    gap: 24px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
  }
}
@media (max-width: 480px) {
  body.single-product .lj-product-overview__summary form.cart:not(.variations_form):not(.grouped_form),
  body.single-product .lj-product-overview__summary form.variations_form .woocommerce-variation-add-to-cart {
    flex-direction: column !important;
  }
  body.single-product .lj-product-overview__summary form.cart .quantity,
  body.single-product .lj-product-overview__summary form.cart .qty {
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.single-product .lj-product-overview__summary form.cart .single_add_to_cart_button {
    width: 100% !important;
  }
}
