/* Cartes communes aux pièces, packs, vêtements et accessoires. */
.home-market-grid { align-items: start; }

.featured-product-card,
.home-market-grid .featured-product-card,
.featured-modal-grid .featured-product-card {
  background: #fff;
  border: 1px solid #dce2dc;
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  min-width: 0;
}

.home-market-grid .featured-track { align-items: flex-start; gap: 16px; }
.home-market-grid .featured-product-card { flex: 0 0 clamp(236px, 20vw, 280px); }
.home-market-grid .featured-window > .featured-arrow { top: 70px; }

.featured-product-card .featured-product-media,
.home-market-grid .featured-product-card .featured-product-media,
.featured-modal-grid .featured-product-card .featured-product-media {
  aspect-ratio: auto;
  background: #fff;
  flex: 0 0 140px;
  height: 140px;
  min-height: 0;
}

.featured-product-card .featured-product-media img,
.home-market-grid .featured-product-card .featured-product-media img {
  height: 100%;
  object-fit: contain;
  padding: 12px 18px 8px;
  width: 100%;
}

.featured-product-card .featured-product-body,
.home-market-grid .featured-product-card .featured-product-body,
.featured-modal-grid .featured-product-card .featured-product-body {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.featured-product-card .featured-product-body > .featured-type,
.home-market-grid .featured-product-card .featured-type,
.featured-detail-info > .featured-type {
  color: #536052;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.featured-product-card .featured-product-body > strong,
.home-market-grid .featured-product-card .featured-product-body > strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #182018;
  display: -webkit-box;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  text-transform: none;
}

.featured-product-card .featured-product-body > small,
.home-market-grid .featured-product-card .featured-product-body > small {
  color: #647064;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-product-card .featured-product-body > p,
.home-market-grid .featured-product-card .featured-product-body > p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #536052;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow: hidden;
}

.featured-product-card .featured-components { gap: 5px; }
.featured-product-card .featured-components span {
  background: #f3f6f1;
  border: 0;
  border-radius: 3px;
  color: #4d5a4c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  padding: 4px 6px;
}

.featured-product-card .featured-size-picker,
.home-market-grid .featured-product-card .featured-size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  padding: 2px 0;
}

.featured-product-card .featured-size-picker button,
.home-market-grid .featured-product-card .featured-size-picker button {
  border-radius: 5px;
  flex: 0 1 auto;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  white-space: nowrap;
}

.featured-product-card .featured-product-foot,
.home-market-grid .featured-product-card .featured-product-foot {
  align-items: flex-end;
  border-top: 1px solid #e7ebe4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  padding-top: 10px;
}

.featured-product-card .featured-product-foot > span,
.home-market-grid .featured-product-card .featured-product-foot > span {
  flex: 1 1 110px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.featured-product-card .featured-product-foot > strong,
.home-market-grid .featured-product-card .featured-product-foot > strong {
  color: #172017;
  flex: 0 0 auto;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.featured-product-card .featured-product-body > button[data-featured-add],
.home-market-grid .featured-product-card .featured-product-body > button[data-featured-add],
.featured-modal-grid .featured-product-card .featured-product-body > button[data-featured-add] {
  background: #2f8010;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 14px;
  text-transform: none;
  width: 100%;
  max-width: none;
}

.featured-product-card .featured-product-body > button[data-featured-add]:hover:not(:disabled) { background: #2e7b08; }
.featured-product-card .featured-product-body > button[data-featured-add]:disabled,
.home-market-grid .featured-product-card .featured-product-body > button[data-featured-add]:disabled,
.featured-modal-grid .featured-product-card .featured-product-body > button[data-featured-add]:disabled {
  background: #e6eae5;
  box-shadow: none;
  color: #687166;
  cursor: not-allowed;
  opacity: 1;
}
.featured-product-card button:focus-visible { outline: 2px solid #246a06; outline-offset: 3px; }
.featured-product-card:focus-visible { outline: 2px solid #246a06; outline-offset: 3px; }

.featured-modal-grid { align-items: start; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.featured-detail-info { font-family: "Segoe UI", Arial, sans-serif; }
.featured-detail-info h2 { line-height: 1.25; text-transform: none; }
.featured-detail-info .featured-detail-reference { color: #647064; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.featured-detail-info .featured-detail-description { font-size: 15px; line-height: 1.65; }

@media (max-width: 680px) {
  .home-market-grid .featured-track { gap: 12px; }
  .home-market-grid .featured-product-card { flex-basis: min(78vw, 268px); }
  .featured-product-card .featured-product-body,
  .home-market-grid .featured-product-card .featured-product-body { padding: 14px; }
  .featured-modal-grid { gap: 14px; grid-template-columns: minmax(0, 1fr); }
  .featured-product-card .featured-size-picker button { min-width: 48px; }
}

/* Catégories des fenêtres Accessoires moto et Vêtements. */
.menu-category-picker {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  min-width: 0;
}

.menu-category-picker > button[data-menu-category-index] {
  align-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  box-shadow: none;
  color: #182018;
  display: grid;
  gap: 3px 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-content: normal;
  min-height: 82px;
  min-width: 0;
  padding: 14px;
  text-align: left;
  text-transform: none;
  transition: background-color 150ms ease, border-color 150ms ease;
  width: 100%;
}

.menu-category-picker > button[data-menu-category-index]:hover,
.menu-category-picker > button[data-menu-category-index]:focus {
  background: #f4faf1;
  border-color: var(--catalog-green);
  box-shadow: none;
  color: #182018;
  transform: none;
}

.menu-category-picker > button[data-menu-category-index]:focus-visible {
  outline: 2px solid #246a06;
  outline-offset: 3px;
}

.menu-category-picker .menu-category-icon {
  align-self: center;
  background: #edf5e9;
  border-radius: 9px;
  color: #327516;
  display: block;
  fill: none;
  grid-column: 1;
  grid-row: 1 / 3;
  height: 48px;
  padding: 9px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 48px;
}

.menu-category-picker .menu-category-label {
  align-self: end;
  color: #182018;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1;
  letter-spacing: 0;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: none;
  white-space: normal;
}

.menu-category-picker .menu-category-count {
  align-self: start;
  background: none;
  border-radius: 0;
  color: #647064;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  grid-column: 2;
  grid-row: 2;
  letter-spacing: 0;
  line-height: 1.4;
  padding: 0;
  text-transform: none;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .menu-category-picker {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-category-picker > button[data-menu-category-index] {
    min-height: 80px;
    padding: 12px;
  }
}
