:root {
  --cart-gold: #d4af37;
  --cart-gold-light: #f5df8d;
  --cart-panel: #101010;
  --cart-line: rgba(255,255,255,.12);
  --cart-muted: #aaa;
  --cart-danger: #ff8585
}
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1400;
  transform: translateX(-50%);
  width: min(760px,calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 18px;
  background: rgba(8,8,8,.94);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  backdrop-filter: blur(18px)
}
.cart-bar[hidden] {
  display: none
}
.cart-bar__meter {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden
}
.cart-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#8d6b1f,#f1d87a);
  transition: .25s
}
.cart-bar__summary {
  white-space: nowrap;
  font-weight: 800
}
.cart-bar button,
.cart-primary,
.cart-secondary,
.cart-danger {
  border-radius: 999px;
  font-weight: 900;
  padding: 12px 18px;
  cursor: pointer;
  transition: .22s ease
}
.cart-bar button,
.cart-primary {
  border: 0;
  background: linear-gradient(135deg,#f5df8d,#d4af37 45%,#9e7426);
  color: #050505
}
.cart-secondary {
  border: 1px solid var(--cart-line);
  background: transparent;
  color: #fff
}
.cart-danger {
  border: 1px solid rgba(255,133,133,.4);
  background: rgba(255,133,133,.1);
  color: #ffd0d0
}
.cart-bar button:hover,
.cart-primary:hover,
.cart-secondary:hover,
.cart-danger:hover {
  transform: translateY(-2px)
}
.cart-button-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: middle
}
.cart-button-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px)
}
.cart-overlay.open {
  display: flex
}
.cart-modal {
  width: min(760px,100%);
  max-height: min(800px,calc(100vh - 30px));
  overflow: auto;
  border: 1px solid var(--cart-line);
  border-radius: 26px;
  background: var(--cart-panel);
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,.55) rgba(255,255,255,.05)
}
.cart-modal::-webkit-scrollbar {
  width: 10px
}
.cart-modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px
}
.cart-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(#f1d87a,#8d6b1f);
  border: 2px solid #101010;
  border-radius: 999px
}
.cart-modal__head,
.cart-modal__foot {
  position: sticky;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(16,16,16,.98);
  backdrop-filter: blur(14px)
}
.cart-modal__head {
  top: 0;
  border-bottom: 1px solid var(--cart-line)
}
.cart-modal__foot {
  bottom: 0;
  border-top: 1px solid var(--cart-line)
}
.cart-modal__head h2 {
  margin: 0
}
.cart-footer-actions,
.cart-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap
}
.cart-svg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--cart-line);
  background: rgba(255,255,255,.025);
  color: #fff;
  border-radius: 11px;
  cursor: pointer;
  transition: .2s
}
.cart-svg-button:hover {
  border-color: rgba(212,175,55,.55);
  color: #f1d87a;
  background: rgba(212,175,55,.08)
}
.cart-svg-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}
.cart-remove:hover {
  color: #ffb3b3;
  border-color: rgba(255,133,133,.45);
  background: rgba(255,133,133,.08)
}
.cart-items {
  padding: 10px 22px
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cart-line)
}
.cart-item__name {
  font-weight: 850
}
.cart-item__meta {
  color: var(--cart-muted);
  font-size: .9rem
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px
}
.cart-item__actions a {
  color: #e8c864;
  text-decoration: none;
  border-bottom: 1px solid rgba(232,200,100,.45)
}
.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(0,0,0,.18)
}
.cart-quantity span {
  min-width: 22px;
  text-align: center;
  font-weight: 800
}
.cart-quantity .cart-svg-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent
}
.cart-error {
  padding: 0 22px 18px;
  color: #ffb3b3
}
.cart-confirm {
  padding: 28px 22px
}
.cart-confirm h3 {
  font-size: 1.55rem;
  margin-bottom: 14px
}
.cart-confirm p {
  color: #bbb;
  margin: 12px 0 18px;
  line-height: 1.75
}
.cart-confirm-reminder {
  padding: 14px 16px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 14px;
  background: rgba(212,175,55,.07);
  color: #f1df9d!important
}
.cart-confirm-product {
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  font-weight: 800
}
.cart-confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cart-line)
}
.cart-confirm-total {
  font-size: 1.05rem;
  margin-bottom: 22px
}
.cart-toast {
  position: fixed;
  z-index: 1900;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%,20px);
  max-width: min(520px,calc(100% - 32px));
  padding: 13px 18px;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 14px;
  background: #17130a;
  color: #f5df8d;
  box-shadow: 0 18px 55px rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: .25s
}
.cart-toast.visible {
  opacity: 1;
  transform: translate(-50%,0)
}
.cart-toast.warning {
  border-color: rgba(255,185,100,.45);
  background: #1a1207;
  color: #ffd39c
}
@media(max-width:620px) {
  .cart-bar {
    bottom: 8px;
    display: grid;
    grid-template-columns: 1fr auto
  }
  .cart-bar__meter {
    grid-column: 1/-1
  }
  .cart-bar button {
    padding: 10px 13px
  }
  .cart-modal {
    border-radius: 18px;
    max-height: calc(100vh - 16px)
  }
  .cart-item {
    grid-template-columns: 1fr
  }
  .cart-modal__foot {
    align-items: stretch;
    flex-direction: column
  }
  .cart-footer-actions,
  .cart-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%
  }
  .cart-primary,
  .cart-secondary,
  .cart-danger {
    width: 100%
  }
  .cart-confirm-row {
    align-items: flex-start
  }
  .cart-toast {
    bottom: 112px
  }
}


/* =========================================================
   ÉTAPE DE FACTURATION
   ========================================================= */

.cart-confirm-intro {
  margin-bottom: 24px
}

.cart-confirm-step {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 999px;
  background: rgba(212,175,55,.07);
  color: #f1df9d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase
}

.cart-order-summary {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.025)
}

.cart-order-summary h4 {
  margin: 0 0 8px;
  color: #f1df9d;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase
}

.cart-billing-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%,rgba(212,175,55,.09),transparent 34%),
    rgba(255,255,255,.025)
}

.cart-billing-form legend {
  padding: 0 10px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900
}

.cart-billing-help {
  margin: 0 0 18px;
  color: #aaa;
  line-height: 1.65
}

.cart-customer-type {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px
}

.cart-customer-type__option {
  cursor: pointer
}

.cart-customer-type__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.cart-customer-type__card {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  transition: .2s ease
}

.cart-customer-type__card strong {
  color: #fff
}

.cart-customer-type__card small {
  color: #999;
  line-height: 1.4
}

.cart-customer-type__option:hover .cart-customer-type__card {
  border-color: rgba(212,175,55,.4);
  transform: translateY(-1px)
}

.cart-customer-type__option input:checked + .cart-customer-type__card {
  border-color: rgba(212,175,55,.72);
  background: rgba(212,175,55,.1);
  box-shadow: 0 0 0 3px rgba(212,175,55,.07)
}

.cart-customer-type__option input:focus-visible + .cart-customer-type__card {
  outline: 2px solid #f5df8d;
  outline-offset: 3px
}

.cart-billing-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px
}

.cart-field {
  display: grid;
  gap: 8px
}

.cart-field--wide {
  grid-column: 1/-1
}

.cart-field > span {
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  font-weight: 800
}

.cart-field > span span {
  color: #777;
  font-size: .74rem;
  font-weight: 500
}

.cart-field input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  outline: 0;
  background: rgba(0,0,0,.3);
  color: #fff;
  font: inherit;
  transition: .2s ease
}

.cart-field input:focus {
  border-color: rgba(212,175,55,.65);
  box-shadow: 0 0 0 4px rgba(212,175,55,.08)
}

.cart-field.has-error input {
  border-color: rgba(255,133,133,.68);
  box-shadow: 0 0 0 4px rgba(255,133,133,.07)
}

.cart-field__error {
  min-height: 0;
  color: #ffb3b3;
  font-size: .76rem
}

.cart-privacy-note {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid rgba(94,232,135,.2);
  border-radius: 15px;
  background: rgba(34,176,82,.07)
}

.cart-privacy-note strong {
  color: #a8f5bd
}

.cart-privacy-note span {
  color: rgba(255,255,255,.66);
  font-size: .87rem;
  line-height: 1.5
}

.cart-billing-actions {
  margin-top: 20px
}

.cart-primary:disabled,
.cart-secondary:disabled {
  cursor: wait;
  opacity: .62;
  transform: none
}

@media(max-width:620px) {
  .cart-billing-form fieldset {
    padding: 18px
  }

  .cart-customer-type,
  .cart-billing-grid {
    grid-template-columns: 1fr
  }

  .cart-field--wide {
    grid-column: auto
  }
}
