/* Carte vitrine — dense (2–3 / 4 colonnes) et plus soignée. */

#pizzas,
#accompagnements,
#boissons {
  padding-bottom: var(--space-8);
}

/* ---------- Grilles ---------- */

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.1rem;
  }
}

@media (min-width: 1120px) {
  #grid-pizzas.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.grid-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .grid-simple {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem;
  }
}

/* ---------- Fiches pizza ---------- */

.grid .card {
  position: relative;
  border: 1px solid rgba(210, 192, 173, 0.65);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(60, 32, 18, 0.06);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.grid .card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 52, 24, 0.28);
  box-shadow: 0 16px 34px rgba(60, 32, 18, 0.12);
}

.grid .card-img-wrap {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 50% 42%, #fff7ec 0%, #f3e6d6 72%);
}

.grid .card-img-wrap img,
.grid .card-img-wrap > img,
.grid .card-img {
  object-fit: cover !important;
  object-position: center 45% !important;
  transform: scale(1.02);
  transition: transform 420ms var(--ease-out);
}

.grid .card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.grid .base-chip {
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 1px 4px rgba(36, 20, 14, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.grid .card-body {
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 0.95rem;
}

.grid .card-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

.grid .card-ingredients {
  color: var(--color-text-muted);
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.grid .card-allergens {
  color: var(--color-text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  opacity: 0.82;
}

.grid .card-sizes {
  margin: 0.15rem 0 0;
  padding: 3px;
  background: #f7efe6;
  border-radius: 999px;
}

.grid .card-size {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 0.2rem;
}

.grid .card-size strong {
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
}

.grid .card-size span {
  font-size: 0.68rem;
  opacity: 0.86;
}

.grid .card-size[aria-pressed="true"] {
  background: var(--color-text);
  color: #fffdf8;
  box-shadow: 0 1px 3px rgba(36, 20, 14, 0.2);
}

.grid .card-controls {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(232, 221, 208, 0.8);
}

.grid .card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.grid .card-price small {
  display: none;
}

.grid .add-btn,
.grid .qty-stepper {
  width: auto;
}

.grid .add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(207, 52, 24, 0.28);
}

.grid .add-btn:hover:not([disabled]) {
  transform: scale(1.06);
}

@media (max-width: 719px) {
  .grid .card-body {
    padding: 0.7rem 0.7rem 0.8rem;
    gap: 0.28rem;
  }

  .grid .card-title-row h3 {
    font-size: 0.92rem;
  }

  .grid .badge-signature {
    display: none;
  }

  .grid .card-ingredients {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .grid .card-price {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid .card,
  .grid .card-img-wrap img,
  .grid .add-btn {
    transition: none;
  }

  .grid .card:hover {
    transform: none;
  }
}

/* ---------- Accompagnements & boissons ---------- */

.card-simple {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 0.55rem;
  min-height: 0;
  padding: 0.55rem 0.55rem 0.55rem 0.5rem;
  border: 1px solid rgba(210, 192, 173, 0.65);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(60, 32, 18, 0.05);
  overflow: hidden;
}

.card-simple picture,
.card-simple .thumb,
.card-simple .emoji-thumb {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 12px;
  object-fit: contain !important;
  background:
    radial-gradient(circle at 50% 45%, #fff 0%, #f6eee4 70%);
  box-shadow: inset 0 0 0 1px rgba(210, 192, 173, 0.35);
}

.card-simple .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  overflow: hidden;
}

.card-simple h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-simple .price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

.card-simple .card-allergens {
  display: none;
}

.card-simple .card-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 36px;
}

.card-simple .add-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  box-shadow: 0 4px 10px rgba(207, 52, 24, 0.24);
}

.card-simple .qty-stepper {
  height: 36px;
  gap: 0;
}

.card-simple .qty-stepper button {
  width: 28px;
  height: 28px;
}

.card-simple input.qty-input {
  width: 1.6rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .card-simple {
    grid-template-columns: 64px minmax(0, 1fr) 40px;
    column-gap: 0.75rem;
    padding: 0.7rem 0.75rem;
  }

  .card-simple picture,
  .card-simple .thumb,
  .card-simple .emoji-thumb {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px;
    border-radius: 14px;
  }

  .card-simple h3 {
    font-size: 0.92rem;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .card-simple .price {
    font-size: 1.05rem;
  }

  .card-simple .card-controls,
  .card-simple .add-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ---------- Kabanito : un peu plus de tenue ---------- */

.kabanito-card {
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(60, 32, 18, 0.07);
}

.kabanito-card__photo {
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 42%, #fff7ec 0%, #f3e6d6 72%);
}
