/*
 * HD CLC Unified 1.5.78 — Fresh Industrial product-card skin
 * Visual-only overrides for product cards. No HTML, labels, data, or actions
 * are changed. Keep existing card layout, image sizing, responsive grid,
 * warehouse-first flow, inputs, and button behavior intact.
 */

.hdclc-catalog {
  --hdclc-fresh-green: #176B48;
  --hdclc-fresh-green-deep: #14583D;
  --hdclc-fresh-green-soft: #EAF4EF;
  --hdclc-fresh-green-pale: #F4F8F5;
  --hdclc-fresh-line: #D7E7DD;
  --hdclc-fresh-muted: #64776C;
  --hdclc-fresh-gold: #D6A84F;
  --hdclc-fresh-gold-soft: #F1E7D1;
}

/* Main card surface */
.hdclc-catalog .hdclc-product-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--hdclc-fresh-line) !important;
  border-top: 3px solid var(--hdclc-fresh-gold) !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(28, 76, 54, .075) !important;
  transform: translateY(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease !important;
}

.hdclc-catalog .hdclc-product-card:hover {
  border-color: #B9D4C3 !important;
  border-top-color: var(--hdclc-fresh-gold) !important;
  background: #FFFFFF !important;
  box-shadow: 0 11px 26px rgba(28, 76, 54, .12) !important;
  transform: translateY(-3px) !important;
}

.hdclc-catalog .hdclc-product-card:focus-within {
  border-color: #A8CDB7 !important;
  box-shadow: 0 0 0 3px rgba(23, 107, 72, .10), 0 8px 22px rgba(28, 76, 54, .09) !important;
}

/* Image panel — retain existing aspect ratio, image fit, and dimensions. */
.hdclc-catalog .hdclc-product-card .hdclc-product-media,
.hdclc-catalog .hdclc-product-card .hdclc-product-media-custom {
  background: linear-gradient(140deg, #F0F7F2 0%, #E4F0E8 100%) !important;
  border: 0 !important;
  border-bottom: 1px solid #DCEAE1 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-media-custom img.hdclc-product-image {
  object-fit: contain !important;
  background: transparent !important;
}

/* Existing placeholder artwork follows the same soft mint palette. */
.hdclc-catalog .hdclc-product-card .hdclc-panel-art,
.hdclc-catalog .hdclc-product-card .hdclc-product-placeholder {
  background: linear-gradient(140deg, #EAF4EF 0%, #DCECE2 100%) !important;
  color: var(--hdclc-fresh-green-deep) !important;
}

/* Content area */
.hdclc-catalog .hdclc-product-card .hdclc-product-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: #FFFFFF !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-category {
  display: inline-flex !important;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  padding: 5px 9px !important;
  border: 1px solid #D7E9DE !important;
  border-radius: 5px !important;
  background: var(--hdclc-fresh-green-soft) !important;
  color: var(--hdclc-fresh-green) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .045em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-content h3,
.hdclc-catalog .hdclc-product-card .hdclc-product-content h3 a {
  color: #203D2E !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-content h3 a:hover {
  color: var(--hdclc-fresh-green) !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-sku {
  color: #718176 !important;
}

/* Description stays plain text and readable. */
.hdclc-catalog .hdclc-product-card .hdclc-product-content > p {
  color: #53685B !important;
}

/* Price is the primary visual anchor: pale mint surface + champagne accent. */
.hdclc-catalog .hdclc-product-card .hdclc-product-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  margin: 5px 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #E0ECE4 !important;
  border-left: 3px solid var(--hdclc-fresh-gold) !important;
  border-radius: 7px !important;
  background: var(--hdclc-fresh-green-pale) !important;
  color: var(--hdclc-fresh-green) !important;
  box-shadow: none !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-price strong {
  color: var(--hdclc-fresh-green) !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-product-price small,
.hdclc-catalog .hdclc-product-card .hdclc-contact-price {
  color: #64776C !important;
}

/* Technical details remain in the same order and wording. */
.hdclc-catalog .hdclc-product-card .hdclc-variant-meta {
  padding: 10px 12px !important;
  border: 1px solid #E5EEE8 !important;
  border-radius: 7px !important;
  background: #F8FBF9 !important;
  color: #5B6F62 !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-variant-meta span {
  color: #5B6F62 !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-variant-meta span + span {
  padding-top: 5px !important;
  border-top: 1px solid #E7EFE9 !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-variant-meta b {
  color: #294A37 !important;
}

/* Length marker keeps its position; only its visual treatment changes. */
.hdclc-catalog .hdclc-product-card .hdclc-length-badge {
  border: 1px solid #D6A84F !important;
  border-radius: 5px !important;
  background: #176B48 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(20, 88, 61, .16) !important;
}

/* Quantity / unit controls */
.hdclc-catalog .hdclc-product-card .hdclc-config-controls label,
.hdclc-catalog .hdclc-product-card .hdclc-qty-label {
  color: #355D46 !important;
}

.hdclc-catalog .hdclc-product-card input:not([type="hidden"]),
.hdclc-catalog .hdclc-product-card select {
  border: 1px solid #D0E1D6 !important;
  border-radius: 7px !important;
  background: #FFFFFF !important;
  color: #263E30 !important;
  box-shadow: 0 1px 2px rgba(24, 65, 43, .035) !important;
}

.hdclc-catalog .hdclc-product-card input:not([type="hidden"]):focus,
.hdclc-catalog .hdclc-product-card select:focus {
  border-color: var(--hdclc-fresh-green) !important;
  outline: 3px solid rgba(23, 107, 72, .12) !important;
  outline-offset: 1px !important;
}

/* Existing add-to-list actions remain fully functional. */
.hdclc-catalog .hdclc-product-card .hdclc-add-to-list {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid var(--hdclc-fresh-green) !important;
  border-radius: 7px !important;
  background: var(--hdclc-fresh-green) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(23, 107, 72, .13) !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease !important;
}

.hdclc-catalog .hdclc-product-card .hdclc-add-to-list:hover,
.hdclc-catalog .hdclc-product-card .hdclc-add-to-list:focus-visible {
  border-color: var(--hdclc-fresh-green-deep) !important;
  background: var(--hdclc-fresh-green-deep) !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 12px rgba(20, 88, 61, .20) !important;
  transform: translateY(-1px);
}

.hdclc-catalog .hdclc-product-card .hdclc-add-to-list:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(20, 88, 61, .16) !important;
}

/* Preserve the existing responsive layout and respect reduced-motion settings. */
@media (max-width: 700px) {
  .hdclc-catalog .hdclc-product-card {
    border-radius: 10px !important;
  }

  .hdclc-catalog .hdclc-product-card .hdclc-product-content {
    background: #FFFFFF !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hdclc-catalog .hdclc-product-card,
  .hdclc-catalog .hdclc-product-card .hdclc-add-to-list {
    transition: none !important;
  }

  .hdclc-catalog .hdclc-product-card:hover,
  .hdclc-catalog .hdclc-product-card .hdclc-add-to-list:hover {
    transform: none !important;
  }
}
