.carte-page__toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 2rem;
}
.carte-page__toc a {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color 0.18s ease-out, background 0.18s ease-out;
}
.carte-page__toc a:hover {
  border-color: var(--rouge-gc);
  background: rgba(191, 5, 5, 0.03);
}
.carte-page__toc a.is-active {
  border-color: var(--rouge-gc);
  background: var(--rouge-gc);
  color: #fff;
}
@media (max-width: 767px) {
  .carte-page__toc {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin: 0 -1rem 1.5rem;
    padding: 0 1rem 0.4rem;
    scrollbar-width: none;
  }
  .carte-page__toc::-webkit-scrollbar {
    display: none;
  }
  .carte-page__toc a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}
.carte-page__section {
  margin: 0 0 2.8rem;
  scroll-margin-top: 1rem;
}
.carte-page__section-title {
  text-align: center;
  margin: 0 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rouge-gc);
}
.carte-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.carte-page__card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.015);
}
.carte-page__card--soldout {
  opacity: 0.5;
}
.carte-page__card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.04);
}
.carte-page__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carte-page__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 1rem 1rem;
  flex: 1;
}
.carte-page__card-name {
  font-weight: 700;
  line-height: 1.25;
}
.carte-page__card-vol {
  font-weight: 400;
  color: #777;
  font-size: 0.85rem;
}
.carte-page__card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  flex: 1;
}
.carte-page__card-price {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--rouge-gc);
}
.carte-page__card-variation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.carte-page__card-variation {
  font-size: 0.95rem;
  white-space: nowrap;
}
.carte-page__add-btn {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  line-height: 1.9rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rouge-gc);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease-out, background 0.12s ease-out;
}
.carte-page__add-btn:hover {
  background: #8f0404;
}
.carte-page__add-btn:active {
  transform: scale(0.92);
}
.carte-page__card-tag {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #a33;
}
.carte-page__empty {
  text-align: center;
  color: #666;
}
.carte-page__table-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.2rem;
  flex-wrap: wrap;
}
.carte-page__table-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #555;
}
.carte-page__table-edit {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: inherit;
}
.carte-page__table-edit:hover {
  border-color: var(--rouge-gc);
}
.carte-page__cart-toggle {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.carte-page__cart-count {
  background: var(--rouge-gc);
  color: #fff;
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.3rem;
}
.carte-page__cart-popup {
  position: fixed;
  z-index: 500;
  right: 1rem;
  top: 5rem;
  width: 360px;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.carte-page__cart-popup.masked {
  display: none;
}
.carte-page__cart-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carte-page__cart-popup__header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.carte-page__cart-popup__header button {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.carte-page__cart-popup__lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.carte-page__cart-popup__empty {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.carte-page__cart-popup__footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.carte-page__cart-popup__total {
  font-weight: 700;
  text-align: right;
}
.carte-page__cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.carte-page__cart-line-name {
  flex: 1;
}
.carte-page__cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.carte-page__cart-line-qty button {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  line-height: 1;
}
