/* Wider desktop showcases; keep header, product pages and mobile unchanged. */
@media (min-width: 1200px) {
  .category-body > .container,
  .section-featured-home > .container {
    width: calc(100% - 64px);
    max-width: 1600px;
  }
}

/* Envoye showcase format: image, compact name/price and purchase button.
   Palette, fonts, product data and native purchase behaviour are inherited. */
.item-product:not(.item-product-reduced) > .item {
  border: 0 !important;
  border-radius: 0;
  padding: 0 !important;
  background: transparent;
  box-shadow: none !important;
}
.item-product:not(.item-product-reduced) > .item:hover {
  box-shadow: none !important;
  transform: none;
}
.item-product:not(.item-product-reduced) .item-image {
  overflow: hidden;
  margin: 0;
  border: 0 !important;
  border-radius: 16px !important;
}
.item-product:not(.item-product-reduced) .item-image-padding {
  height: 0 !important;
  padding-bottom: 114.285714% !important;
}
.item-product:not(.item-product-reduced) .item-image .js-item-image {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: none !important;
  border-radius: 0;
}
.item-product:not(.item-product-reduced) .item-description {
  padding: 6px 0 0 !important;
  text-align: center !important;
  border: 0;
}
.item-product:not(.item-product-reduced) .item-name-container {
  margin: 0 0 2px !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}
.item-product:not(.item-product-reduced) .item-name-wrapper {
  display: block;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
}
.item-product:not(.item-product-reduced) .item-name-wrapper .item-link {
  display: block;
}
.item-product:not(.item-product-reduced) .item-description .item-name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
  min-height: 32px;
  margin: 0;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  -webkit-line-clamp: 2;
}
.item-product:not(.item-product-reduced) .item-price-container {
  min-height: 20px;
  padding: 0 !important;
  border: 0 !important;
  margin: 0;
  gap: 0;
  justify-content: center;
}
.item-product:not(.item-product-reduced) .item-description .btn-add-to-cart .js-open-quickshop-wording {
  font-size: inherit;
  font-weight: inherit;
}
.item-product:not(.item-product-reduced) .item-description .item-price {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}
/* Keep payment details in product/quickshop, leaving one price line in cards. */
.item-product:not(.item-product-reduced) .item-description .item-price-container > .d-inline-flex,
.item-product:not(.item-product-reduced) .item-description .item-price-container > .item-installments {
  display: none !important;
}
.item-product:not(.item-product-reduced) .item-description .item-actions {
  margin: 5px 18px 0 !important;
}
.item-product:not(.item-product-reduced) .item-description .btn-add-to-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  text-transform: none;
}
.item-product:not(.item-product-reduced) .item-description .btn-add-to-cart:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (min-width: 768px) {
  .js-product-table > .item-product:not(.js-item-slide) {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 24px;
  }
}
@media (max-width: 767px) {
  .item-product:not(.item-product-reduced) .item-image { border-radius: 12px !important; }
  .item-product:not(.item-product-reduced) .item-description .item-actions { margin: 5px 0 0 !important; }
  .item-product:not(.item-product-reduced) .item-description .btn-add-to-cart { min-height: 44px; }
}
/* Minimum available variant, native Pix price and matching installment plan. */
.item-product:not(.item-product-reduced) .item-description {
  display: flex;
  flex-direction: column;
}
.item-product:not(.item-product-reduced) .item-description .item-price-container { order: 0; }
.item-product:not(.item-product-reduced) .item-description .item-name-container { order: 1; margin-top: 6px !important; }
.item-product:not(.item-product-reduced) .item-description .item-actions { order: 2; }
.item-product:not(.item-product-reduced) .envoye-price-summary-ready > :not(.envoye-card-price-summary) { display: none !important; }
.envoye-card-price-summary { width: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.envoye-card-price-from { display: block; font-size: 11px; line-height: 16px; color: var(--envoye-muted, #68635e); }
.envoye-card-price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 3px 7px; }
.envoye-card-price-regular { font-size: 11px; font-weight: 400; line-height: 18px; text-decoration: line-through; color: var(--envoye-muted, #68635e); }
.envoye-card-price-main { font-size: 17px; font-weight: 700; line-height: 24px; color: #7d198e; white-space: nowrap; }
.envoye-card-price-installments { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--envoye-heading, #413d39); }
@media (max-width: 767px) {
  .envoye-card-price-main { font-size: 16px; }
  .envoye-card-price-installments { font-size: 11px; }
}
/* Mobile rows must share one baseline, including cards with a price range. */
@media (max-width: 767px) {
  .js-product-table.row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    row-gap: 22px;
  }
  .js-product-table.row-grid > .item-product:not(.js-item-slide) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    align-self: stretch;
  }
  .js-product-table.row-grid > .item-product > .item {
    margin: 0 !important;
    height: 100%;
  }
  .item-product:not(.item-product-reduced) .envoye-card-price-summary {
    display: grid;
    grid-template-rows: 16px 42px minmax(var(--envoye-installment-row, 18px), max-content);
    align-content: start;
    min-height: 76px;
  }
  .item-product:not(.item-product-reduced) .envoye-card-price-from { grid-row: 1; }
  .item-product:not(.item-product-reduced) .envoye-card-price-line {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
  }
  .item-product:not(.item-product-reduced) .envoye-card-price-installments {
    grid-row: 3;
    line-height: 18px;
    align-self: start;
  }
  .item-product:not(.item-product-reduced) .envoye-card-price-main {
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 24px;
  }
}
