/* Isolated commerce layer. All selectors are namespaced .lt-commerce-*
   Loaded only when COMMERCE_ENABLED=1 on listing/detail/cart/checkout. */
.lt-commerce-root { box-sizing: border-box; }
.lt-commerce-root *,
.lt-commerce-root *::before,
.lt-commerce-root *::after { box-sizing: border-box; }

.lt-commerce-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.lt-commerce-filters a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #E1E5EA;
  color: #0B3C5D;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}
.lt-commerce-filters a.is-current {
  background: #1875BA;
  border-color: #1875BA;
  color: #fff;
}

.lt-commerce-card {
  position: relative;
}
.lt-commerce-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.lt-commerce-badge {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #D4EDFA;
  color: #0B3C5D;
}
.lt-commerce-badge--install { background: #F4B400; color: #0B3C5D; }
.lt-commerce-badge--quote { background: #E1E5EA; color: #58595B; }
.lt-commerce-price {
  margin: 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1875BA;
}
.lt-commerce-stock {
  margin: 0 0 8px;
  font-size: 12px;
  color: #58595B;
}
.lt-commerce-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.lt-commerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #1875BA;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.lt-commerce-btn:hover,
.lt-commerce-btn:focus { background: #0B3C5D; color: #fff; }
.lt-commerce-btn:disabled { opacity: .5; cursor: not-allowed; }
.lt-commerce-btn--ghost {
  background: #fff;
  color: #0B3C5D;
  border: 1px solid #1875BA;
}
.lt-commerce-btn--ghost:hover,
.lt-commerce-btn--ghost:focus { background: #D4EDFA; color: #0B3C5D; }
.lt-commerce-qty {
  width: 72px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #E1E5EA;
  border-radius: 8px;
  font-size: 14px;
}
.lt-commerce-add-form,
.lt-commerce-intent-pane .shop-add-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lt-commerce-panel {
  margin-top: 16px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid #E1E5EA;
  border-radius: 0;
  background: transparent;
}
.lt-commerce-intent-lead {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0B3C5D;
}
.lt-commerce-intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.lt-commerce-intent-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid #E1E5EA;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  color: inherit;
}
.lt-commerce-intent-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F5F7FA;
  color: #1875BA;
}
.lt-commerce-intent-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}
.lt-commerce-intent-card.is-selected .lt-commerce-intent-ico,
.lt-commerce-intent-card[aria-pressed="true"] .lt-commerce-intent-ico {
  background: #1875BA;
  color: #fff;
}
.lt-commerce-intent-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0B3C5D;
  margin: 0;
  line-height: 1.3;
}
.product-meta-warranty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid #dcdcdc;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--theme-font-primary, #505050);
}
.product-meta-warranty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #1875BA;
}
.product-meta-warranty-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}
.product-meta-warranty strong {
  font-weight: 700;
  color: #0B3C5D;
  margin-right: 6px;
}
.product-meta-warranty-sep {
  color: #9aa4ad;
}
.product-meta-warranty a {
  color: #1875BA;
  font-weight: 600;
  text-decoration: none;
}
.product-meta-warranty a:hover {
  text-decoration: underline;
}
.lt-commerce-intent-card.is-selected,
.lt-commerce-intent-card[aria-pressed="true"] {
  border-color: #1875BA;
  background: #f3f8fc;
  box-shadow: 0 0 0 1px #1875BA;
}
.lt-commerce-intent-pane {
  margin-top: 8px;
}
.lt-commerce-intent-pane[hidden] {
  display: none !important;
}
.lt-commerce-consult {
  margin: 0 0 10px;
}
.lt-commerce-consult p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #1F2933;
}
.lt-commerce-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0B3C5D;
}
.lt-commerce-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: #58595B;
}
.lt-commerce-share-secondary {
  margin-top: 20px;
  opacity: .9;
}

.lt-commerce-missing {
  color: #58595B;
  font-style: italic;
}

.lt-commerce-sticky {
  display: none;
}

.lt-commerce-policy-list { list-style: disc; padding-left: 20px; }
.lt-commerce-policy-list a { color: #1875BA; }

.lt-commerce-note {
  font-size: 13px;
  color: #58595B;
  margin: 8px 0;
}

@media (max-width: 767px) {
  .lt-commerce-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 16px rgba(11, 60, 93, .12);
  }
  .lt-commerce-sticky .lt-commerce-btn { flex: 1; }
  body.lt-commerce-has-sticky { padding-bottom: 72px; }
}

@media (min-width: 768px) {
  .products-header-main-title .lt-commerce-panel { max-width: 100%; }
  .lt-commerce-intent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .lt-commerce-intent-card {
    padding: 12px 8px;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  .lt-commerce-intent-card strong {
    font-size: 12px;
  }
}
