/* Accueil marketplace — style Amazon (boutique centrée) */

.site-main--marketplace {
  padding-top: var(--nav-h) !important;
  background: #eaeded;
}

.mp-home {
  padding-bottom: 48px;
}

.mp-banner {
  position: relative;
  height: clamp(220px, 32vw, 380px);
  overflow: hidden;
  background: #001040;
}

.mp-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-decoration: none;
  color: inherit;
}

.mp-banner__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.mp-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.mp-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 24, 88, 0.55) 0%, rgba(0, 24, 88, 0.15) 55%, transparent 100%);
}

.mp-banner__copy {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 2;
  max-width: 420px;
  color: #fff;
}

.mp-banner__copy strong {
  display: block;
  font-family: "Literata", serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.mp-banner__copy span {
  font-size: 14px;
  opacity: 0.9;
}

.mp-banner__dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.mp-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.mp-banner__dot.is-active {
  background: #fff;
}

.mp-deck {
  width: min(1500px, 100%);
  margin: -80px auto 0;
  padding: 0 clamp(12px, 2vw, 20px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mp-card {
  background: #fff;
  border-radius: 4px;
  padding: 20px 22px 22px;
  box-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
}

.mp-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mp-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f1111;
  margin: 0;
  line-height: 1.2;
}

.mp-card__link {
  font-size: 13px;
  font-weight: 600;
  color: #007185;
  text-decoration: none;
  white-space: nowrap;
}

.mp-card__link:hover {
  color: #c7511f;
  text-decoration: underline;
}

.mp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
}

.mp-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: #0f1111;
  text-align: center;
}

.mp-cat-tile__img {
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(145deg, #f5f0e6, #e8efe9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  transition: box-shadow 0.2s ease;
}

.mp-cat-tile:hover .mp-cat-tile__img {
  box-shadow: 0 4px 14px rgba(0, 24, 88, 0.12);
}

.mp-cat-tile span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.mp-cat-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mp-cat-tile--sm .mp-cat-tile__img {
  font-size: 1.6rem;
}

.mp-cat-tile--sm span {
  font-size: 12px;
}

.mp-scroll {
  position: relative;
}

.mp-scroll__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.mp-scroll__track::-webkit-scrollbar {
  display: none;
}

.mp-scroll__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 80px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 17, 17, 0.12);
  color: #0f1111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.mp-scroll__btn:hover {
  background: #f7fafa;
}

.mp-scroll__btn--prev { left: -8px; }
.mp-scroll__btn--next { right: -8px; }

@media (min-width: 900px) {
  .mp-scroll:hover .mp-scroll__btn { display: block; }
}

.mp-product {
  flex: 0 0 clamp(140px, 16vw, 180px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-product__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #f7fafa;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.mp-product__media img,
.mp-product__media .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-product__media .product-photo-fallback {
  font-size: 2.4rem;
}

.mp-product__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-product__title a {
  color: #0f1111;
  text-decoration: none;
}

.mp-product__title a:hover { color: #c7511f; }

.mp-product__price {
  font-size: 14px;
  font-weight: 700;
  color: #0f1111;
}

.mp-product__price small {
  font-weight: 400;
  font-size: 11px;
  color: #565959;
}

.mp-product__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.mp-product__cart {
  width: 32px;
  height: 32px;
  border: 1px solid #fcd200;
  border-radius: 50%;
  background: #ffd814;
  color: #0f1111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.mp-product__cart:hover { background: #f7ca00; }

.mp-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mp-recipe {
  border: 1px solid #e3e6e6;
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.mp-recipe:hover {
  box-shadow: 0 4px 12px rgba(15, 17, 17, 0.08);
}

.mp-recipe__emoji {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

.mp-recipe h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0f1111;
}

.mp-recipe p {
  margin: 0;
  font-size: 13px;
  color: #565959;
  line-height: 1.45;
}

.mp-recipe__price {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b12704;
}

.mp-promo {
  text-align: center;
  padding: 28px 20px;
}

.mp-promo h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #0f1111;
}

.mp-promo p {
  margin: 0 0 16px;
  color: #565959;
  font-size: 14px;
}

.mp-promo__btn {
  display: inline-block;
  padding: 10px 22px;
  background: #ffd814;
  border: 1px solid #fcd200;
  border-radius: 20px;
  color: #0f1111;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.mp-promo__btn:hover { background: #f7ca00; }

.mp-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .mp-deck { margin-top: -48px; }
  .mp-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-cat-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp-row-2 { grid-template-columns: 1fr; }
  .mp-recipe-grid { grid-template-columns: 1fr; }
}
