.shop-main {
  min-height: 70vh;
  padding-top: 110px;
}

.shop-hero {
  padding-bottom: 40px;
  text-align: center;
}

.shop-hero h1 {
  max-width: 900px;
  margin-inline: auto;
}

.shop-hero .lead {
  max-width: 800px;
  margin-inline: auto;
}

.shop-grid {
  display: grid;
  width: min(var(--content-width), calc(100% - 32px));
  align-items: stretch;
  margin: 0 auto 80px;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shop-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s ease;
}

.shop-card:hover {
  box-shadow: 0 34px 95px rgba(89, 67, 114, 0.2);
  transform: translateY(-8px);
}

.product-art {
  height: 220px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff7fb;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 0.7s var(--ease-out);
}

.shop-card:hover .product-art img {
  transform: scale(1.06);
}

.shop-card-title {
  min-height: 3.4rem;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.shop-card p {
  margin: 10px 0 0;
}

.price {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pink-strong);
  font-weight: 900;
}

.shop-card button {
  width: 100%;
  margin-top: 16px;
}

.shop-toggle-wrap {
  display: none;
  width: min(var(--content-width), calc(100% - 32px));
  margin: -48px auto 80px;
  text-align: center;
}

.shop-toggle {
  padding: 13px 22px;
}

@keyframes shop-card-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 108px 20px 24px;
  background: rgba(36, 48, 68, 0.52);
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100dvh - 132px);
  padding: clamp(20px, 4vw, 28px);
  overflow-y: auto;
}

.modal .product-art {
  height: clamp(220px, 42vh, 330px);
  aspect-ratio: 4 / 3;
}

.modal .product-art img {
  object-fit: cover;
  object-position: center 46%;
}

@media (max-width: 700px) {
  .product-art {
    height: auto;
    aspect-ratio: 1;
  }

  .modal {
    align-items: center;
    padding: 22px 14px;
  }

  .modal-content {
    width: min(420px, 100%);
    max-height: calc(100dvh - 44px);
  }

  .modal .product-art {
    height: clamp(190px, 34vh, 245px);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  place-items: center;
}

/* Copyright RZU Informatique */
