/* HARAMEIN — panier & commande */

.header__nav-cta {
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4782a, #e8913a);
  color: #1f0807;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.header__cart-count.is-hidden {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cart-add.is-added {
  animation: cartPop 0.55s var(--ease);
}

@keyframes cartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(212, 183, 143, 0.25); }
  100% { transform: scale(1); }
}

/* ─── Order section ─── */
.order-wrap {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  min-width: 0;
}

@media (min-width: 960px) {
  .order-wrap {
    grid-template-columns: 1fr 1.15fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.order-cart,
.order-form {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(58, 15, 13, 0.55) 0%, rgba(20, 5, 4, 0.85) 100%);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(212, 183, 143, 0.05);
  backdrop-filter: blur(10px);
}

.order-cart {
  padding: 1.35rem 1.35rem 1.15rem;
}

.order-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.order-cart__head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.order-cart__head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.order-cart__sum {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1;
}

.order-cart__count {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 183, 143, 0.25);
  background: rgba(212, 183, 143, 0.06);
}

.order-cart__list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-height: 20rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.15rem;
}

.order-cart__list:not(.has-items) {
  display: none;
}

.order-cart__empty {
  display: none;
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed rgba(212, 183, 143, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 183, 143, 0.08), transparent 58%),
    rgba(15, 4, 3, 0.35);
  margin-bottom: 1rem;
  transform-origin: center top;
}

.order-cart__empty.is-visible {
  display: block;
}

.order-cart__empty.is-pop {
  animation: cartEmptyPop 0.65s var(--ease);
}

.order-cart__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(212, 183, 143, 0.08);
  color: var(--gold);
}

.order-cart__empty-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.order-cart__empty p {
  font-size: 0.82rem;
  color: var(--cream-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.order-cart__empty span:not(.order-cart__empty-icon) {
  display: none;
}

.order-cart__item.is-removing {
  animation: cartItemOut 0.42s var(--ease) forwards;
  animation-delay: calc(var(--clear-i, 0) * 0.07s);
  pointer-events: none;
}

.order-cart.is-clearing .order-cart__quick {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.order-cart__total-bar.is-hiding {
  animation: cartTotalOut 0.35s var(--ease) forwards;
}

@keyframes cartItemOut {
  to {
    opacity: 0;
    transform: translateX(14px) scale(0.96);
    filter: blur(2px);
  }
}

@keyframes cartEmptyPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  55% { opacity: 1; transform: translateY(0) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cartTotalOut {
  to {
    opacity: 0;
    transform: translateY(6px);
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }
}

.order-cart__clear-zone {
  margin-top: 0.75rem;
}

.order-cart__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--btn-soft-border, rgba(74, 44, 6, 0.32));
  background: var(--btn-soft-bg, #7a5538);
  color: var(--btn-muted-text, #fff);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.order-cart__clear:hover,
.order-cart__clear.is-active {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: rgba(168, 111, 26, 0.12);
}

.order-cart__clear.is-active {
  transform: scale(0.99);
}

.order-cart__clear-confirm {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.45s var(--ease),
    opacity 0.35s ease,
    transform 0.45s var(--ease),
    margin 0.35s ease;
  margin-top: 0;
}

.order-cart__clear-confirm.is-visible {
  max-height: 8rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.75rem;
}

.order-cart__clear-question {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cream-muted);
  margin-bottom: 0.75rem;
}

.order-cart__clear-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.order-cart__clear-actions .btn--sm {
  padding: 0.72rem 0.85rem;
  font-size: 0.64rem;
}

.order-cart__clear-zone[hidden] {
  display: none !important;
}

.order-cart__item {
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.45);
  animation: cartItemIn 0.35s var(--ease);
}

.order-cart__item-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.order-cart__thumb {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(31, 8, 7, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.order-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.order-cart__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-deep);
  opacity: 0.7;
}

.order-cart__item-content {
  flex: 1;
  min-width: 0;
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.order-cart__item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.order-cart__item-cat {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.order-cart__remove {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(212, 183, 143, 0.08);
  color: var(--cream-faint);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.order-cart__remove:hover {
  background: rgba(180, 60, 50, 0.35);
  color: #ffb4ae;
}

.order-cart__item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.35;
  margin: 0 0 0.15rem;
}

.order-cart__item-price {
  display: block;
  margin: 0.2rem 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.order-cart__total-bar {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 183, 143, 0.28);
  background: linear-gradient(135deg, rgba(212, 183, 143, 0.12), rgba(58, 15, 13, 0.45));
}

.order-cart__total-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.order-cart__total-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.order-cart__total-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1;
}

.order-cart__total-note {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--cream-faint);
  font-style: italic;
}

.order-cart__item-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.order-cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(31, 8, 7, 0.6);
}

.order-cart__qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(212, 183, 143, 0.12);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.order-cart__qty-btn:hover {
  background: rgba(212, 183, 143, 0.22);
}

.order-cart__qty-val {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
}

.order-cart__size {
  flex: 1;
  min-width: 5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.5);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.order-cart__size::placeholder {
  color: var(--cream-faint);
}

.order-cart__quick {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.order-cart__quick-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.order-cart__quick select,
.order-form input,
.order-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.55);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.order-cart__quick select:focus,
.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 183, 143, 0.1);
}

.order-form input.has-error,
.order-form textarea.has-error {
  border-color: rgba(220, 120, 100, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 120, 100, 0.12);
}

.order-cart__quick-btn {
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--btn-soft-border, rgba(74, 44, 6, 0.32));
  background: var(--btn-soft-bg, #7a5538);
  color: var(--btn-muted-text, #fff);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.order-cart__quick-btn:hover {
  background: rgba(168, 111, 26, 0.12);
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.order-form {
  padding: 1.5rem 1.35rem 1.35rem;
  min-width: 0;
}

.order-form__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.order-form__sub {
  font-size: 0.82rem;
  color: var(--cream-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.order-form__grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  .order-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-form__grid .field--full {
    grid-column: 1 / -1;
  }
}

.order-form label,
.order-delivery__legend {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.35rem;
}

.order-delivery {
  border: none;
  margin: 0;
  padding: 0;
}

.order-delivery.has-error .order-delivery__option-body {
  border-color: rgba(220, 120, 100, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 120, 100, 0.12);
}

.order-delivery__options {
  display: grid;
  gap: 0.55rem;
}

.order-delivery__option {
  display: block;
  cursor: pointer;
}

.order-delivery__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-delivery__option-body {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.45);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.order-delivery__option:hover .order-delivery__option-body {
  border-color: var(--line-strong);
  background: rgba(212, 183, 143, 0.06);
}

.order-delivery__option input:focus-visible + .order-delivery__option-body {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 183, 143, 0.14);
}

.order-delivery__option input:checked + .order-delivery__option-body {
  border-color: rgba(212, 183, 143, 0.55);
  background: rgba(212, 183, 143, 0.1);
  box-shadow: 0 0 0 1px rgba(212, 183, 143, 0.2);
}

.order-delivery__option-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.order-delivery__option-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--cream-muted);
}

.order-form textarea {
  min-height: 9.5rem;
  resize: vertical;
  line-height: 1.65;
  font-size: 0.84rem;
  margin-bottom: 1.15rem;
}

.order-form__summary-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.order-form__summary-badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.45rem 0.65rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212, 183, 143, 0.25);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.order-form__summary-badge:hover {
  background: rgba(212, 183, 143, 0.1);
  border-color: var(--line-strong);
}

/* ═══════════════════════════════════════════
   CHECKOUT — paiement carte (design)
═══════════════════════════════════════════ */
.order-checkout {
  margin-top: 0.35rem;
}

.order-checkout__head {
  margin-bottom: 1.1rem;
}

.order-checkout__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.order-checkout__title-text.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.order-checkout__sub {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--cream-muted);
}

.order-payment {
  display: grid;
  gap: 1.15rem;
  padding: 1.15rem;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(212, 183, 143, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(58, 15, 13, 0.92), rgba(15, 4, 3, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-gold);
}

.order-payment__panel {
  min-width: 0;
}

@media (min-width: 720px) {
  .order-payment {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 1.35rem;
    padding: 1.35rem;
  }

  .pay-card-scene {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0.75rem 0 1rem;
  }
}

.pay-card-scene {
  perspective: 1400px;
  padding: 0.5rem 0.25rem 0.85rem;
  min-width: 0;
  width: 100%;
}

.pay-card {
  position: relative;
  width: min(100%, 380px);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42));
}

.pay-card.is-flipped {
  transform: rotateY(180deg);
}

.pay-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(232, 212, 176, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.pay-card__face--front {
  background: #1a0807;
}

.pay-card__face--back {
  transform: rotateY(180deg);
  background: #120504;
  display: flex;
  flex-direction: column;
}

.pay-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pay-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.pay-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(18, 5, 4, 0.18) 0%, rgba(18, 5, 4, 0.42) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
}

.pay-card__overlay--back {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.pay-card__shine {
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 58%
  );
  transform: translateX(-40%) skewX(-8deg);
  animation: pay-card-shine 7s ease-in-out infinite;
}

@keyframes pay-card-shine {
  0%, 100% { transform: translateX(-45%) skewX(-8deg); opacity: 0.45; }
  50% { transform: translateX(45%) skewX(-8deg); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-card__shine { animation: none; opacity: 0.35; }
  .pay-card { transition-duration: 0.01ms; }
}

.pay-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 1.2rem 1.35rem 1.15rem;
}

.pay-card__header {
  position: absolute;
  top: 1.15rem;
  left: 1.35rem;
  right: 1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pay-card__brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pay-card__brand {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.8vw, 1rem);
  letter-spacing: 0.32em;
  color: var(--gold-bright);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(212, 183, 143, 0.35);
}

.pay-card__tier {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.48);
}

.pay-card__contactless {
  color: rgba(245, 237, 227, 0.82);
  opacity: 0.9;
  flex-shrink: 0;
  line-height: 0;
}

.pay-card__contactless-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.pay-card__chip-row {
  display: none;
}

.pay-card__chip {
  display: block;
  width: 2.85rem;
  height: 2.05rem;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #f0ddb8 0%, #c9a56a 38%, #e8d4b0 68%, #a8895a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.pay-card__chip::before {
  content: "";
  position: absolute;
  inset: 0.42rem 0.5rem;
  border: 1px solid rgba(31, 8, 7, 0.22);
  border-radius: 3px;
  box-shadow:
    inset 0.5rem 0 0 -0.35rem rgba(31, 8, 7, 0.14),
    inset -0.5rem 0 0 -0.35rem rgba(31, 8, 7, 0.14),
    inset 0 0.55rem 0 -0.4rem rgba(31, 8, 7, 0.14),
    inset 0 -0.55rem 0 -0.4rem rgba(31, 8, 7, 0.14);
}

.pay-card__number {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.2rem, 1.4vw, 0.55rem);
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(8, 2, 2, 0.38);
  backdrop-filter: blur(3px);
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  font-size: clamp(0.78rem, 2.6vw, 1.02rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.5);
}

.pay-card__num-group {
  display: block;
  text-align: center;
  min-width: 0;
  padding: 0.15rem 0;
  overflow: visible;
  white-space: nowrap;
}

.pay-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.75rem 1rem;
}

.pay-card__meta-block--holder {
  min-width: 0;
}

.pay-card__label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.5);
  margin-bottom: 0.2rem;
}

.pay-card__value {
  display: block;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pay-card__meta-block--holder .pay-card__value {
  max-width: 100%;
}

.pay-card__networks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.05rem;
}

.pay-card__network--visa {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1;
}

.pay-card__network--mc {
  position: relative;
  width: 2.1rem;
  height: 1.3rem;
}

.pay-card__network--mc span {
  position: absolute;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
}

.pay-card__network--mc span:first-child {
  left: 0;
  background: #eb001b;
}

.pay-card__network--mc span:last-child {
  right: 0;
  background: rgba(247, 158, 27, 0.92);
}

.pay-card__stripe {
  display: none;
}

.pay-card__back-body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 4.5rem 1.45rem 0.5rem;
}

.pay-card__sig-label {
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.45);
  margin-bottom: 0.35rem;
}

.pay-card__sig-line {
  height: 2rem;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(245, 237, 227, 0.92) 0,
    rgba(245, 237, 227, 0.92) 8px,
    rgba(212, 183, 143, 0.35) 8px,
    rgba(212, 183, 143, 0.35) 9px
  );
  margin-right: 4.5rem;
}

.pay-card__cvc-box {
  position: absolute;
  top: 0.85rem;
  right: 1.45rem;
  text-align: right;
}

.pay-card__cvc {
  display: block;
  min-width: 3.4rem;
  margin-top: 0.25rem;
  padding: 0.42rem 0.6rem;
  border-radius: 6px;
  background: rgba(245, 237, 227, 0.94);
  color: #1f0807;
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}

.pay-card__back-note {
  position: relative;
  z-index: 1;
  padding: 0.65rem 1.45rem 1.1rem;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.order-payment__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.order-payment__panel-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.order-payment__badge {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-deep);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.order-payment__fields {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.order-payment__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.order-payment__panel .field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.order-payment__panel input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.62);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.order-payment__panel input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 183, 143, 0.12);
}

.btn--card-pay {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 212, 176, 0.45);
  background: linear-gradient(135deg, #e8d4b0 0%, #d4b78f 42%, #a8895a 100%);
  color: var(--burgundy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(212, 183, 143, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
}

.btn--card-pay strong {
  font-weight: 800;
  letter-spacing: 0.06em;
}

.btn--card-pay:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 40px rgba(212, 183, 143, 0.38);
}

.btn--card-pay:active {
  transform: translateY(0);
}

.order-payment__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.85rem;
  padding: 0;
}

.order-payment__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cream-faint);
}

.order-payment__trust-stripe {
  margin-left: auto;
  font-weight: 600;
  color: rgba(212, 183, 143, 0.75);
}

.order-payment__note {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--cream-faint);
}

.order-checkout__divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0 1rem;
  color: var(--cream-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.order-checkout__divider::before,
.order-checkout__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.order-form__send {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .order-form__send {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Checkout mobile & tablette ─── */
@media (max-width: 719px) {
  .order-form {
    padding: 1.15rem 1rem 1.05rem;
  }

  .order-checkout__head {
    margin-bottom: 0.95rem;
  }

  .order-checkout__title {
    font-size: 0.98rem;
  }

  .order-checkout__sub {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .order-payment {
    padding: 0.95rem;
    gap: 0.95rem;
    border-radius: 16px;
  }

  .pay-card-scene {
    padding: 0.25rem 0 0.65rem;
  }

  .pay-card {
    width: 100%;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
  }

  .pay-card__content {
    padding: 0.85rem 0.95rem 0.9rem;
  }

  .pay-card__header {
    top: 0.85rem;
    left: 0.95rem;
    right: 0.95rem;
  }

  .pay-card__brand {
    letter-spacing: 0.16em;
    font-size: 0.74rem;
  }

  .pay-card__tier {
    font-size: 0.48rem;
  }

  .pay-card__contactless-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .pay-card__number {
    gap: 0.12rem;
    padding: 0.38rem 0.15rem;
    margin-bottom: 0.65rem;
    font-size: clamp(0.64rem, 3.15vw, 0.82rem);
    letter-spacing: 0.02em;
  }

  .pay-card__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "holder holder"
      "expiry networks";
    gap: 0.45rem 0.65rem;
  }

  .pay-card__meta-block--holder { grid-area: holder; }
  .pay-card__meta-block:not(.pay-card__meta-block--holder) { grid-area: expiry; }
  .pay-card__networks {
    grid-area: networks;
    justify-self: end;
    gap: 0.35rem;
  }

  .pay-card__network--visa {
    font-size: 0.78rem;
  }

  .pay-card__network--mc {
    width: 1.85rem;
    height: 1.15rem;
  }

  .pay-card__network--mc span {
    width: 1rem;
    height: 1rem;
  }

  .pay-card__back-body {
    padding-top: 3.6rem;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .pay-card__cvc-box {
    right: 0.95rem;
  }

  .pay-card__sig-line {
    margin-right: 3.75rem;
  }

  .order-payment__panel-head {
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
  }

  .order-payment__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .order-payment__trust-stripe {
    margin-left: 0;
  }

  .order-payment__note {
    font-size: 0.68rem;
  }

  .order-checkout__divider {
    margin: 1rem 0 0.85rem;
    font-size: 0.62rem;
  }

  .order-form__send {
    grid-template-columns: 1fr;
  }

  .order-form__send .btn {
    min-height: 2.85rem;
    justify-content: center;
  }

  .btn--card-pay {
    min-height: 3rem;
    font-size: 0.72rem;
    padding: 0.85rem 1rem;
  }

  .order-delivery__option-body {
    padding: 0.75rem 0.85rem;
  }

  .order-delivery__option-title {
    font-size: 0.86rem;
  }

  .order-delivery__option-desc {
    font-size: 0.74rem;
  }
}

@media (max-width: 359px) {
  .order-payment__row {
    grid-template-columns: 1fr;
  }

  .pay-card__brand {
    letter-spacing: 0.1em;
    font-size: 0.68rem;
  }

  .pay-card__number {
    font-size: 0.62rem;
    gap: 0.08rem;
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .order-payment {
    padding: 1.2rem;
  }

  .pay-card {
    width: min(100%, 360px);
  }
}

.btn--wa {
  background: linear-gradient(135deg, #1fa855 0%, #25d366 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.25);
}

.btn--wa:hover {
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.35);
  filter: brightness(1.05);
}

.btn--ig {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(131, 58, 180, 0.2);
}

.btn--ig:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(131, 58, 180, 0.3);
}

.order-toast {
  position: fixed;
  top: calc(var(--header-h) + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(-130%);
  z-index: 200;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(31, 8, 7, 0.95);
  backdrop-filter: blur(12px);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-deep);
  transition: transform 0.45s var(--ease), opacity 0.45s ease;
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 22rem);
  text-align: center;
}

.order-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.contact__panel--order {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* ═══════════════════════════════════════════
   QAMIS MODAL — taille & quantité
═══════════════════════════════════════════ */
body.qamis-modal-open {
  overflow: hidden;
}

.qamis-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.qamis-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.qamis-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 2, 0.82);
  backdrop-filter: blur(8px);
}

.qamis-modal__card {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(58, 15, 13, 0.95) 0%, rgba(15, 4, 3, 0.98) 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 183, 143, 0.06) inset;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s var(--ease);
}

.qamis-modal.is-open .qamis-modal__card {
  transform: translateY(0) scale(1);
}

.qamis-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 4, 3, 0.6);
  color: var(--cream-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qamis-modal__close:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

.qamis-modal__hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.qamis-modal__thumb {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.qamis-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qamis-modal__brand {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8913a;
  margin-bottom: 0.35rem;
}

.qamis-modal__intro h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.qamis-modal__hint {
  font-size: 0.78rem;
  color: var(--cream-faint);
  line-height: 1.45;
}

.qamis-modal__body {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1rem;
}

.qamis-modal__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.55rem;
}

.qamis-modal__label em {
  color: #e8913a;
  font-style: normal;
}

.qamis-modal__sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.qamis-modal__size {
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.5);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.qamis-modal__size:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

.qamis-modal__size.is-selected {
  border-color: #e8913a;
  background: rgba(232, 145, 58, 0.12);
  color: #f5c98a;
  box-shadow: 0 0 0 1px rgba(232, 145, 58, 0.25);
  transform: translateY(-1px);
}

.qamis-modal__custom {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.55);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.84rem;
}

.qamis-modal__custom:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 183, 143, 0.1);
}

.qamis-modal__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 4, 3, 0.45);
}

.qamis-modal__qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(212, 183, 143, 0.12);
  color: var(--gold);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.qamis-modal__qty-btn:hover {
  background: rgba(212, 183, 143, 0.22);
}

.qamis-modal__qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--cream);
}

.qamis-modal__error {
  font-size: 0.78rem;
  color: #ffb4ae;
  text-align: center;
  margin-bottom: 0.75rem;
}

.qamis-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.65rem;
}

.qamis-modal__actions .btn {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
}

@media (max-width: 400px) {
  .qamis-modal__actions {
    grid-template-columns: 1fr;
  }

  .qamis-modal__sizes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Panier tiroir (drawer) ─── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(42, 24, 16, 0.38);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f9f6f1;
  border-left: 1px solid rgba(74, 55, 40, 0.1);
  box-shadow: -12px 0 40px rgba(42, 24, 16, 0.12);
  transform: translateX(104%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(74, 55, 40, 0.08);
}

.cart-drawer__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(184, 149, 106, 0.95);
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #4a3728;
}

.cart-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(74, 55, 40, 0.06);
  color: #4a3728;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 0.85rem 0.5rem;
}

.cart-drawer__foot {
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(74, 55, 40, 0.08);
  background: rgba(255, 253, 250, 0.92);
}

.cart-drawer__checkout-actions[hidden] {
  display: none !important;
}

.cart-drawer__checkout-label {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(74, 55, 40, 0.62);
}

.cart-drawer__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.cart-drawer__checkout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 4.15rem;
  padding: 0.65rem 0.3rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease;
}

.cart-drawer__checkout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
}

.cart-drawer__checkout-icon svg {
  width: 100%;
  height: 100%;
}

.cart-drawer__checkout--wa {
  background: #4a3728;
  color: #f9f6f1;
}

.cart-drawer__checkout--wa:hover {
  background: #3f2f23;
}

.cart-drawer__checkout--ig {
  background: #fffdfa;
  color: #4a3728;
  border: 1px solid rgba(74, 55, 40, 0.18);
}

.cart-drawer__checkout--ig:hover {
  border-color: rgba(184, 149, 106, 0.55);
  background: rgba(184, 149, 106, 0.08);
}

.cart-drawer__checkout--card {
  background: linear-gradient(165deg, #9a6b20, #6e4510);
  color: #fffaf3;
}

.cart-drawer__checkout--card:hover {
  background: linear-gradient(165deg, #8b5a14, #5c3a0e);
}

.cart-drawer__checkout:active {
  transform: scale(0.99);
}

.cart-drawer__channel-hint {
  margin: 0.65rem 0 0;
  font-size: 0.62rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(74, 55, 40, 0.58);
}

.cart-drawer__channel-hint strong {
  font-weight: 600;
  color: rgba(74, 55, 40, 0.78);
}

.cart-drawer__foot-hint {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  text-align: center;
  color: rgba(74, 55, 40, 0.55);
}

.cart-drawer__foot-hint[hidden] {
  display: none;
}

.cart-drawer__note {
  margin: 0.55rem 0 0;
  font-size: 0.62rem;
  text-align: center;
  color: rgba(74, 55, 40, 0.55);
}

body.cart-drawer-open {
  overflow: hidden;
}

/* Challenge banque (3-D Secure) au-dessus du sheet */
iframe[src*="js.stripe.com"],
iframe[src*="stripe"],
iframe[name^="__privateStripeFrame"] {
  z-index: 420 !important;
}

.pay-sheet {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: grid;
  place-items: end center;
  padding: 0.75rem;
}

.pay-sheet[hidden] {
  display: none !important;
}

.pay-sheet__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 18, 12, 0.48);
  cursor: pointer;
}

.pay-sheet__card {
  position: relative;
  width: min(100%, 26.5rem);
  max-height: min(92dvh, 42rem);
  overflow: auto;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(139, 90, 20, 0.2);
  background: linear-gradient(180deg, #fffdf9, #f7f1e8);
  box-shadow: 0 24px 64px rgba(26, 18, 12, 0.32);
  outline: none;
}

.pay-sheet:not([hidden]) .pay-sheet__card {
  animation: pay-sheet-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pay-sheet-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pay-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.pay-sheet__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b5a14;
}

.pay-sheet__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: #1a120c;
}

.pay-sheet__close {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 18, 12, 0.06);
  color: #1a120c;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pay-sheet__total {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6e4510;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 90, 20, 0.16);
}

.pay-methods__btn {
  min-height: 2.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(26, 18, 12, 0.62);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pay-methods__btn.is-active {
  background: #fff;
  color: #6e4510;
  box-shadow: 0 4px 14px rgba(80, 50, 20, 0.08);
}

.pay-plastic {
  position: relative;
  aspect-ratio: 1.586 / 1;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(26, 18, 12, 0.34),
    inset 0 0 0 1px rgba(240, 212, 138, 0.28);
  transform: translateZ(0);
}

.pay-sheet:not([hidden]) .pay-plastic {
  animation: pay-plastic-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pay-plastic-in {
  from { opacity: 0; transform: perspective(700px) rotateX(10deg) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pay-plastic__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pay-plastic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 244, 220, 0.34) 49%, transparent 60%);
  transform: translateX(-140%);
  animation: pay-shine 0.7s ease 0.08s 1 both;
}

@keyframes pay-shine {
  to { transform: translateX(140%); }
}

.pay-plastic__face {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.28rem;
  padding: 0.85rem 1rem 0.72rem;
  color: #f8f1e6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.pay-plastic__brand {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: #f3d48a;
}

.pay-plastic__number {
  margin: 0;
  font-size: clamp(0.86rem, 3.4vw, 1.02rem);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.pay-plastic__bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pay-fields {
  display: grid;
  gap: 0.65rem;
}

.pay-fields label,
.pay-fields__row label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6e4510;
}

.pay-fields input {
  padding: 0.7rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(139, 90, 20, 0.28);
  background: #fff;
  color: #1a120c;
  font: inherit;
  font-size: 0.95rem;
}

.pay-fields input:focus {
  outline: none;
  border-color: #8b5a14;
  box-shadow: 0 0 0 3px rgba(139, 90, 20, 0.16);
}

.pay-fields__row {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 0.65rem;
}

.pay-stripe-mount {
  min-height: 12rem;
  padding: 0.15rem 0 0.25rem;
}

.pay-stripe-mount:empty {
  min-height: 3.5rem;
}

.pay-submit.is-busy,
.pay-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pay-submit {
  width: 100%;
  margin-top: 0.85rem;
  min-height: 2.85rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(165deg, #9a6b20, #6e4510);
  color: #fffaf3;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.pay-submit--paypal {
  background: #003087;
}

.pay-paypal {
  padding: 1.15rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 48, 135, 0.16);
  text-align: center;
}

.pay-paypal__mark {
  margin: 0 0 0.45rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #003087;
}

.pay-paypal > p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(26, 18, 12, 0.72);
}

.pay-sheet__status {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(139, 90, 20, 0.1);
  color: #6e4510;
  font-size: 0.8rem;
  line-height: 1.4;
}

.pay-sheet__status.is-error {
  background: rgba(140, 40, 30, 0.1);
  color: #8a2e22;
}

.pay-sheet__note {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(26, 18, 12, 0.55);
}

@media (min-width: 720px) {
  .pay-sheet {
    place-items: center;
  }
}

.order-cart--drawer {
  padding: 0.85rem 0.35rem 0.5rem;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.order-cart--drawer .order-cart__head--drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border: none;
}

.order-cart--drawer .order-cart__count {
  color: rgba(74, 55, 40, 0.62);
}

.order-cart--drawer .order-cart__sum {
  color: #b8956a;
}

.order-cart--drawer .order-cart__empty-title,
.order-cart--drawer .order-cart__empty p {
  color: rgba(74, 55, 40, 0.72);
}

.order-cart--drawer .order-cart__item {
  background: #fffdfa;
  border-color: rgba(74, 55, 40, 0.1);
}

.order-cart--drawer .order-cart__item-name,
.order-cart--drawer .order-cart__item-cat {
  color: #4a3728;
}

.order-cart--drawer .order-cart__total-bar {
  background: rgba(255, 253, 250, 0.95);
  border-color: rgba(74, 55, 40, 0.1);
}

.order-cart--drawer .order-cart__total-label,
.order-cart--drawer .order-cart__total-amount {
  color: #4a3728;
}

.order-wrap--form-only {
  grid-template-columns: 1fr !important;
  max-width: 40rem;
}

button.header__nav-cta {
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer__panel,
  .cart-drawer__overlay,
  .pay-sheet:not([hidden]) .pay-sheet__card,
  .pay-sheet:not([hidden]) .pay-plastic,
  .pay-plastic::after {
    transition: none !important;
    animation: none !important;
  }

  .cart-drawer.is-open .cart-drawer__panel {
    transform: none;
  }
}
