/* Shared product-card styles.
   Loaded before page-specific styles so category, manufacturer and product
   pages can add deliberate overrides without duplicating the base card. */

/* ==========================================================
   PRODUCT CARD
========================================================== */

.js-product {
  width: 288px;
  flex: 0 0 288px;
}

.js-product-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 615px;
  background: #FDFAF4;
  border: 1px solid rgba(26, 47, 27, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.js-product-card:hover {
  box-shadow: 0px 18px 40px -18px rgba(26, 47, 27, 0.22);
}

/* ==========================================================
   THUMBNAIL
========================================================== */

.esc-product-thumbnail-container {
  width: 100%;
  height: 360px;
  flex: 0 0 360px;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    radial-gradient(
      70.71% 70.71% at 50% 50%,
      rgba(168, 191, 168, 0.25) 0%,
      rgba(168, 191, 168, 0) 70%
    ),
    #DBE0D3;
}

.esc-product-thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  text-decoration: none;
}

.esc-product-thumbnail picture {
  display: block;
  width: 100%;
  height: 100%;
}

.esc-product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback watermark version */
.esc-product-thumbnail-watermark {
  display: flex;
  align-items: center;

  font-family: "Cormorant-Garamond";
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  text-transform: uppercase;

  color: rgba(26, 47, 27, 0.15);
}

.thumbnail-no-product {
  background-color: #D8DED0 !important;
}

/* Image background swatch */
.esc-product-card__media {
  display: block;
  height: 360px;
  position: relative;
  background:
    radial-gradient(70.71% 70.71% at 50% 50%, rgba(168, 191, 168, 0.25) 0%, transparent 70%),
    #DBE0D3;
}

/* Card body */
.esc-product-card__body {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background-color: var(--color-surface-alt);
}

.esc-product-card-body-top-block,
.esc-product-card-body-bottom-block  {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esc-product-card__brand {
  font-family: "Poppins";
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.esc-product-card__title {
  height: 40px;
  font-family: "Cormorant-Garamond";
  font-size: 20px;
  color: var(--color-primary);
  text-decoration: none;
}

.esc-product-card__title:hover {
  font-family: "Cormorant-Garamond";
  font-size: 20px;
  color: var(--color-accent);
  text-decoration: none;
}

.esc-product-card__meta {
  font-size: 12px;
  color: var(--color-text-faint);
}

.esc-product-card__description {
  font-family: "Poppins";
  font-weight: 400;
  font-size: 14px;
  line-height: 23px;
  color: var(--color-text-soft);
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Card footer: price + CTA */
.esc-product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.esc-product-card__price {
  font-family: "Cormorant-Garamond";
  font-size: 24px;
  color: var(--color-primary);
}

.esc-product-card__cta {
  background: var(--color-bg-dark);
  color: var(--color-secondary);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.esc-product-card__cta:hover {
  background: var(--color-bg-light);
  color:var(--color-secondary) !important;
}

@media (max-width: 768px) {
  .js-product {
    min-width: 320px;
    margin: 0 auto;
    flex: 0 0 320px;
  }
}

