/* One product-card design for the catalogue and home nouveautés; behavior stays shared in productCard(). */
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card {
  --band-slant: 0px;
  --band-action-width: 44px;
  container-type: inline-size;
  min-height: 0;
  border: 1px solid #dfe1d8;
  border-radius: 6px;
  background: #fff;
  color: #1a1d1b;
  box-shadow: 0 3px 12px rgb(26 29 27 / 3%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-redesign :is(#catalogue, #homeNewGrid) .product-media-wrap { border-bottom: 1px solid #efefe8; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-media { aspect-ratio: 1.5; background: #fff; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-media img { padding: 15px; object-fit: contain; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card-preview-track { align-items: stretch; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card:hover .product-media img { transform: none; }

.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .favorite-toggle {
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border-color: #dedfd7;
  border-radius: 5px;
  background: #ffffffed;
  color: #33382f;
  box-shadow: none;
  backdrop-filter: none;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .favorite-toggle.active {
  border-color: #cbb714;
  background: #f7df22;
  color: #1a1d1b;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .favorite-toggle svg { width: 19px; height: 19px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .badge {
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .sale-badge { background: #1a1d1b; color: #f7df22; }

.catalog-redesign :is(#catalogue, #homeNewGrid) .product-body { gap: 12px; padding: 17px 16px 13px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card-heading { gap: 6px; justify-items: start; text-align: left; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card-heading::after { display: none; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .product-title {
  display: block;
  min-height: 0;
  max-width: 100%;
  color: #1a1d1b;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .product-title span {
  display: block;
  overflow: visible;
  padding: 0;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card-heading .product-summary {
  color: #62695e;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .product-topline.price-only {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  margin-top: auto;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .product-pricing-card {
  --band-action-width: 44px;
  display: grid;
  gap: 0;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  border: 1px solid #e9e8d9;
  border-radius: 4px;
  background: #f5f5ee;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-price-row { min-width: 0; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-price-row.with-more { padding-right: 44px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  justify-content: flex-start;
  gap: 3px 5px;
  min-height: 46px;
  padding: 10px 11px;
  background: #f8f3d6;
  color: #1a1d1b;
  border-radius: 3px 3px 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-price > span:first-child { font-size: 22px; letter-spacing: -.045em; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-price > span:not(:first-child) { font-size: 10px; font-weight: 600; color: #53584d; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-caution {
  min-height: 0;
  padding: 8px 11px;
  border-top: 1px solid #e7e6da;
  background: transparent;
  color: #62685c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-options-row {
  min-height: 44px;
  padding-right: 44px;
  border-top: 1px solid #e7e6da;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-options-label {
  justify-content: flex-start;
  min-height: 44px;
  padding: 8px 11px;
  color: #454d3f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.product-price, .product-caution, .product-options-label, .tariff-more-button, .product-options-button)::before {
  display: none;
  clip-path: none;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.tariff-more-button, .product-options-button) {
  width: 44px;
  min-height: 44px;
  border-left: 1px solid #dcded3;
  border-radius: 0 3px 0 0;
  background: #e8eadd;
  color: #1a1d1b;
  box-shadow: none;
  transform: none;
  filter: none;
  will-change: auto;
  transition: background-color 160ms ease;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.tariff-more-button, .product-options-button)::after { display: none; }
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.tariff-more-button, .product-options-button):is(:hover, :focus-visible) {
  width: 44px;
  background: #f7df22;
  color: #1a1d1b;
  filter: none;
  transform: none;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.tariff-more-button, .product-options-button) .band-plus-mark {
  width: 14px;
  height: 14px;
  opacity: 1;
  transform: none;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .band-plus-mark::before { width: 14px; height: 2px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .band-plus-mark::after { width: 2px; height: 14px; }

.catalog-redesign :is(#catalogue, #homeNewGrid) .product-be-license {
  justify-content: flex-start;
  margin-inline: 0;
  padding: 6px 8px;
  border-color: #d9c966;
  border-radius: 4px;
  background: #fff7c4;
  color: #65520f;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-availability { border-radius: 4px; font-size: 11px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 7px;
  padding: 0 16px 16px;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button {
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button.primary { background: #f7df22; border-color: #ddc61b; color: #1a1d1b; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button.secondary { background: #fff; border-color: #d9ddd3; color: #444c3e; }
.catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.catalog-redesign :is(#catalogue, #homeNewGrid) :is(.product-card, .brand-card) :focus-visible,
.catalog-redesign #catalogue .brand-card:focus-visible { outline: 2px solid #5b641e; outline-offset: 3px; }

.catalog-redesign #catalogue .brand-catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.catalog-redesign #catalogue .brand-catalog-grid .brand-card {
  align-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 155px;
  padding: 22px 18px 16px;
  border: 1px solid #dfe1d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.catalog-redesign #catalogue .brand-card img { height: 70px; object-fit: contain; background: #fff; }
.catalog-redesign #catalogue .brand-card span {
  width: 100%;
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #efefe8;
  color: #697161;
  font-size: 11px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-card:hover,
  .catalog-redesign #catalogue .brand-catalog-grid .brand-card:hover { border-color: #c7ceba; box-shadow: 0 7px 22px rgb(26 29 27 / 7%); }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button.primary:hover { background: #eed51b; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions .button.secondary:hover { border-color: #8c987f; background: #f5f6f0; }
}

@container (max-width: 225px) {
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions { grid-template-columns: minmax(0, 1fr); }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-body { padding: 13px 11px 11px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions { padding: 0 11px 12px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .product-title { font-size: 16px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-price { padding: 9px 8px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-price > span:first-child { font-size: 19px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-be-license { font-size: 10px; padding: 5px 6px; }
}

@media (max-width: 1100px) {
  .catalog-redesign #catalogue .brand-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
}
@media (max-width: 620px) {
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-media { aspect-ratio: 1.2; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-media img { padding: 9px; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-card .favorite-toggle { top: 6px; right: 6px; background: #fffffff0; }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-actions { grid-template-columns: minmax(0, 1fr); }
  .catalog-redesign :is(#catalogue, #homeNewGrid) .product-card-heading .product-summary { font-size: 11px; }
  .catalog-redesign #catalogue .brand-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-redesign #catalogue .brand-catalog-grid .brand-card { min-height: 135px; padding: 17px 12px 12px; }
  .catalog-redesign #catalogue .brand-card img { height: 59px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-redesign :is(#catalogue, #homeNewGrid) :is(.product-card, .brand-card, .product-media img, .tariff-more-button, .product-options-button) { transition: none; }
}
