/**
 * Jangro Storefront — product-card Cycle 6 override (plain CSS).
 *
 * DeployHQ bumps static/version and serves updated PHP templates, but the
 * compiled styles-m.css can stay on a pre–Cycle-6 _product-card.less slice
 * (confirmed at version1785699087: no .jangro-card-badge; photo still padded
 * tile with margin-bottom; details lack padding:15px). Same safety-net pattern
 * as jangro-type-override.css — plain CSS loaded after Magento blank CSS so
 * badge + 1:1 thumb + hierarchy land without host SSH / LESS rebuild.
 *
 * Source of truth remains web/css/source/components/_product-card.less;
 * remove this file once DeployHQ reliably recompiles that LESS.
 */

/* Prototype `.pc` shell — flush thumb, clipped radius */
.products-grid .product-item .product-item-info {
  overflow: hidden;
  padding: 0;
}

.products-grid .product-item .product-item-info:hover,
.products-grid .product-item .product-item-info:focus-within {
  transform: translateY(-3px);
}

/* Prototype `.pthumb` — square muted tile */
.products-grid .product-item .product-item-photo {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #eef3eb;
  border-radius: 0;
  /* border-box: width:100% + 22px padding must not oversize the tile */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 22px;
  position: relative;
  text-align: center;
  width: 100%;
}

.products-grid .product-item .product-item-photo .product-image-container {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto !important;
  max-height: 100%;
  max-width: 100%;
  width: 100% !important;
}

.products-grid .product-item .product-item-photo .product-image-wrapper {
  height: 100% !important;
  padding-bottom: 0 !important;
}

/* Prototype `.pbody` */
.products-grid .product-item .product-item-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
  min-width: 0;
  padding: 15px;
}

.products-grid .product-item .product-item-name,
.products-list .product-item .product-item-name {
  margin: 0;
}

.products-grid .product-item .product-item-link,
.products-list .product-item .product-item-link {
  color: #0a2a20;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2.3em;
}

.products-grid .product-item .price-box,
.products-list .product-item .price-box {
  margin: 3px 0 0;
}

.products-grid .product-item .product-item-actions,
.products-list .product-item .product-item-actions {
  margin: 11px 0 0;
}

/* Corner badge overlay */
.jangro-card-badge {
  background: #8dc63f;
  border-radius: 4px;
  color: #0a2a20;
  font-size: 10.5px;
  font-weight: 800;
  left: 10px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  padding: 4px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
  z-index: 2;
}

.jangro-card-badge.jangro-card-badge--ntrl {
  text-transform: none;
}

/* Hierarchy spacing — eyebrow → name → pack·SKU·stock */
.jangro-card-eyebrow {
  color: #4a5a52;
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.jangro-card-meta {
  color: #4a5a52;
  display: block;
  font-size: 12.5px;
  margin: 0;
}

.jangro-card-meta > span + span:before {
  content: '\00b7';
  margin: 0 4px;
}
