/* ─────────────────────────────────────────────
   Däckcentrum — Cart drawer + toast
   ───────────────────────────────────────────── */

/* ── Cart pill pulse on add ── */
.cart-pill .count.zero { background: var(--ink-5); color: var(--ink-3); }
.cart-pill.pulse {
  animation: cartPillPulse .7s var(--ease-spring);
}
.cart-pill.pulse .count {
  animation: cartCountBump .7s var(--ease-spring);
}
@keyframes cartPillPulse {
  0%   { transform: translateY(0)    scale(1); }
  35%  { transform: translateY(-2px) scale(1.06); }
  70%  { transform: translateY(0)    scale(.98); }
  100% { transform: translateY(0)    scale(1); }
}
@keyframes cartCountBump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(139,197,63,.35); }
}

/* ── Scrim ── */
.dc-drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-emph);
  z-index: 998;
}
.dc-drawer-scrim.on { opacity: 1; pointer-events: auto; }

/* ── Drawer ── */
.dc-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 96vw);
  background: #F5F4F0;
  color: var(--ink);
  box-shadow: -24px 0 60px -20px rgba(10,10,10,.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .42s var(--ease-emph);
  z-index: 999;
  border-left: 1px solid var(--line);
}
.dc-drawer.on { transform: translateX(0); }

.dc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.dc-drawer-title .eyebrow { margin-bottom: 6px; }
.dc-drawer-title h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.dc-drawer-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.dc-drawer-close:hover { background: var(--bg-alt); transform: rotate(90deg); }

/* ── Free-shipping progress ── */
.dc-ship-progress {
  padding: 14px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg-alt), transparent);
}
.dc-ship-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.dc-ship-text b { color: var(--ink); font-weight: 600; }
.dc-ship-text.dc-ship-done { color: var(--accent-strong); }
.dc-ship-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-warm);
  overflow: hidden;
  position: relative;
}
.dc-ship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  transition: width .6s var(--ease-emph);
  position: relative;
  overflow: hidden;
}
.dc-ship-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-100%);
  animation: shipShine 2.4s var(--ease-emph) infinite;
}
@keyframes shipShine {
  0%, 30% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Body ── */
.dc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* ── Cart line ── */
.dc-cart-list {
  list-style: none;
  margin: 0; padding: 0;
}
.dc-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  position: relative;
  animation: lineIn .42s var(--ease-emph) both;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), background .35s var(--ease-out);
}
@keyframes lineIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}
.dc-cart-line.removing {
  opacity: 0;
  transform: translateX(40px);
}
.dc-cart-line.flash {
  background: var(--accent-soft);
  animation: lineFlash 1.4s var(--ease-emph);
}
@keyframes lineFlash {
  0%, 60% { background: var(--accent-soft); }
  100% { background: transparent; }
}

.dc-cart-img {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  background: var(--bg-warm);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.dc-cart-meta { min-width: 0; }
.dc-cart-brand {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 2px;
}
.dc-cart-title {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -.005em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.dc-cart-specs {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.dc-cart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dc-cart-price {
  font-size: 15px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.dc-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  padding: 3px;
}
.dc-qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.dc-qty button:hover:not(:disabled) {
  background: var(--bg);
  transform: scale(1.08);
}
.dc-qty button:disabled { opacity: .35; cursor: not-allowed; }
.dc-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-feature-settings: "tnum";
}

.dc-cart-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink-4);
  transition: background var(--t-fast), color var(--t-fast);
}
.dc-cart-remove:hover { background: var(--bg-alt); color: var(--danger); }

/* ── Empty state ── */
.dc-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 28px;
  gap: 12px;
}
.dc-cart-empty-art {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  margin-bottom: 8px;
  animation: emptyFloat 4s var(--ease-emph) infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.dc-cart-empty h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.dc-cart-empty p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 12px;
  max-width: 30ch;
}
.dc-cart-empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ── */
.dc-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  background: #EFEDE7;
  display: flex;
  flex-direction: column;
}

/* Dark theme: darker neutral for cart */
[data-theme="dark"] .dc-drawer {
  background: #1A1A1A;
}
[data-theme="dark"] .dc-cart-foot {
  background: #141414;
}
  gap: 14px;
}
.dc-totals { display: flex; flex-direction: column; gap: 6px; }
.dc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-feature-settings: "tnum";
}
.dc-total-mute { color: var(--ink-3); }
.dc-total-grand {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  letter-spacing: -.01em;
}
.dc-vat {
  font-size: 11px;
  color: var(--ink-4);
  text-align: right;
  margin-top: -4px;
}

.dc-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-med);
}
.dc-checkout-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease-emph);
}
.dc-checkout-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.dc-checkout-btn:hover::before { transform: translateX(110%); }
.dc-checkout-btn .arrow {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease-emph);
}
.dc-checkout-btn:hover .arrow { transform: translateX(4px); }

.dc-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dc-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ── Toast (bottom-right) ── */
.dc-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 14px 16px 14px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-3);
  min-width: 300px;
  max-width: 380px;
  animation: toastIn .42s var(--ease-spring) both;
}
.dc-toast::after {
  content: "";
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
  animation: toastBar 2.4s linear forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.dc-toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  animation: toastCheck .5s var(--ease-spring);
}
@keyframes toastCheck {
  0% { transform: scale(0) rotate(-30deg); }
  70% { transform: scale(1.2) rotate(0); }
  100% { transform: scale(1); }
}
.dc-toast-body { flex: 1; min-width: 0; }
.dc-toast-title { font-size: 13.5px; font-weight: 600; }
.dc-toast-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-toast-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
  flex-shrink: 0;
  transition: gap var(--t-med) var(--ease-emph);
}
.dc-toast-cta:hover { gap: 10px; }

@media (max-width: 480px) {
  .dc-toast { left: 12px; right: 12px; min-width: 0; }
  .dc-drawer-head { padding: 18px 18px 14px; }
  .dc-cart-line { padding: 16px 18px; grid-template-columns: 60px 1fr auto; }
  .dc-cart-img { width: 60px; height: 60px; }
  .dc-drawer-foot { padding: 16px 18px 20px; }
}
