: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
  }
}
