/* /cart — luxury minimalist editorial */

:root {
  --cc-cart-ink: var(--cc-bx-ink);
  --cc-cart-muted: #8a8a96;
  --cc-cart-border: rgba(10,10,12,0.08);
  --cc-cart-cream: #faf8f5;
  --cc-cart-surface: #f3f1ed;
  --cc-cart-card: #ffffff;
  --cc-cart-gold: var(--cc-bx-accent);
  --cc-cart-gold-light: #fff4f2;
  --cc-cart-champagne: var(--cc-bx-alt);
  --cc-cart-font: var(--cc-font-sans);
  --cc-cart-display: var(--cc-font-display);
}

.content .inside .cc-cart {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 88px 0;
  font-family: var(--cc-cart-font);
  color: var(--cc-cart-ink);
}

/* ── Hero (minimal) ── */
.cc-cart__hero {
  margin: 0 0 32px 0;
  padding: 0 0 18px 0;
  border: 0;
  border-bottom: 1px solid var(--cc-bx-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cc-cart__heroInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.cc-cart__heroCopy { min-width: 0 }
.cc-cart__title {
  margin: 0;
  font-family: var(--cc-cart-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cc-bx-ink);
}
.cc-cart__count {
  margin: 6px 0 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--cc-bx-muted);
  letter-spacing: 0.01em;
}
.cc-cart__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--cc-bx-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cc-bx-ink-secondary);
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cc-cart__clear:hover {
  border-color: var(--cc-bx-accent);
  color: var(--cc-bx-accent);
  background: var(--cc-bx-accent-soft);
  box-shadow: none;
}

/* ── Layout ── */
.cc-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: 72px;
  column-gap: 88px;
}

/* ── Product list (flat rows) ── */
.cc-cart__list {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.cc-cart__line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-cart-border);
  animation: none;
}
.cc-cart__line:last-child { border-bottom: 0 }

.cc-cart__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cc-cart-cream);
  text-decoration: none;
  transition: none;
}
.cc-cart__thumb:hover { transform: none }
.cc-cart__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cc-cart__info { min-width: 0; padding-right: 8px }
.cc-cart__brand {
  display: block;
  margin: 0 0 4px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-cart-gold);
}
.cc-cart__name {
  display: block;
  margin: 0;
  font-family: var(--cc-cart-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--cc-cart-ink);
  text-decoration: none;
  transition: color 0.15s;
}
.cc-cart__name:hover { color: var(--cc-cart-gold) }

.cc-cart__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cc-cart__linePrice {
  font-family: var(--cc-cart-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-cart-ink);
  white-space: nowrap;
}
.cc-cart__linePrice .oldPrice,
.cc-cart__linePrice del {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--cc-cart-muted);
  text-decoration: line-through;
}

.cc-cart__controls {
  display: flex;
  align-items: center;
  gap: 0;
}
.cc-cart__qtyBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--cc-bx-ink);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cc-cart__qtyBtn:first-of-type {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}
.cc-cart__qtyBtn--plus {
  border-radius: 0 6px 6px 0;
  border-left: 0;
}
.cc-cart__qtyBtn:hover {
  border-color: rgba(255, 66, 0, 0.25);
  background: var(--cc-bx-accent-soft);
}
.cc-cart__qtyInput {
  box-sizing: border-box;
  width: 3.2ch;
  min-width: 40px;
  max-width: 48px;
  height: 32px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  color: var(--cc-bx-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.cc-cart__qtyInput:focus {
  outline: none;
  border-top-color: rgba(255, 66, 0, 0.35);
  border-bottom-color: rgba(255, 66, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 66, 0, 0.2);
}
.cc-cart__qtyInput::-webkit-outer-spin-button,
.cc-cart__qtyInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cc-cart__removeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  color: var(--cc-bx-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cc-cart__removeBtn:hover {
  border-color: rgba(211, 32, 32, 0.35);
  color: var(--cc-bx-sale);
}

/* ── Applied vouchers ── */
.cc-cart__voucherRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: transparent;
  border-top: 1px solid var(--cc-cart-border);
}
.cc-cart__voucherIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cc-bx-accent-soft);
  color: var(--cc-cart-gold);
  font-size: 13px;
  flex-shrink: 0;
}
.cc-cart__voucherBody { flex: 1; min-width: 0 }
.cc-cart__voucherTitle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-cart-ink);
}
.cc-cart__voucherMeta {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--cc-cart-muted);
}
.cc-cart__voucherRemove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cc-cart-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.cc-cart__voucherRemove:hover { color: #b91c1c; background: rgba(185,28,28,0.06) }

/* ── Summary panel (shadow, no border) ── */
.cc-cart__aside { position: sticky; top: 92px }
.cc-cart__panel {
  padding: 22px 24px 24px;
  border-radius: 14px;
  background: #fff;
  color: var(--cc-bx-ink);
  border: 0;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.03);
}
.cc-cart__panelTitle {
  margin: 0 0 14px 0;
  font-family: var(--cc-cart-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-bx-muted);
}

.cc-cart__voucherForm {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cc-bx-border);
}
.cc-cart__voucherInput {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--cc-bx-border);
  border-radius: var(--cc-bx-radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cc-bx-ink);
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.cc-cart__voucherInput::placeholder { color: var(--cc-bx-muted) }
.cc-cart__voucherInput:focus {
  outline: none;
  border-color: var(--cc-bx-accent);
  background: var(--cc-bx-accent-soft);
}
.cc-cart__voucherApply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  flex-shrink: 0;
  border: 1px solid var(--cc-bx-accent);
  border-radius: var(--cc-bx-radius-sm);
  background: var(--cc-bx-accent-soft);
  color: var(--cc-bx-accent);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}
.cc-cart__voucherApply:hover { background: var(--cc-bx-accent); border-color: var(--cc-bx-accent); color: #fff }

/* Voucher feedback dialog */
.cc-cartVoucherDialog {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cc-cartVoucherDialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.cc-cartVoucherDialog__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.cc-cartVoucherDialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  font-size: 22px;
}

.cc-cartVoucherDialog__icon--ok {
  background: #ecfdf5;
  color: #166534;
}

.cc-cartVoucherDialog__icon--warn {
  background: #fffbeb;
  color: #92400e;
}

.cc-cartVoucherDialog__icon--err {
  background: #fef2f2;
  color: #b91c1c;
}

.cc-cartVoucherDialog__title {
  margin: 0 0 10px 0;
  font-family: var(--cc-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cc-bx-ink);
}

.cc-cartVoucherDialog__message {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cc-bx-muted);
}

.cc-cartVoucherDialog__btn {
  margin-top: 4px;
}

.cc-cart__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.cc-cart__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--cc-bx-muted);
}
.cc-cart__row b {
  font-weight: 500;
  color: var(--cc-bx-ink);
}
.cc-cart__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-bx-border);
  font-size: 14px;
  color: var(--cc-bx-ink);
}
.cc-cart__row--total b {
  font-family: var(--cc-cart-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cc-bx-accent);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.cc-cart__shipHint {
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--cc-bx-muted);
  background: var(--cc-bx-surface);
  border: 1px solid var(--cc-bx-border);
}
.cc-cart__shipHint--free {
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  background: #ecfdf5;
  border-color: #86efac;
}
.cc-cart__shipHint--free strong,
.cc-cart__shipHint--free b {
  color: #14532d;
  font-weight: 700;
}
.cc-cart__shipBar {
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--cc-bx-surface);
  overflow: hidden;
}
.cc-cart__shipBarFill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cc-cart-gold), var(--cc-cart-champagne));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-cart__checkoutLink {
  display: block;
  margin-top: 12px;
  text-decoration: none;
}

.cc-cart__checkoutLink .cc-ds-btn { width: 100% }

.cc-cart__checkoutBtn { margin-top: 16px }

.cc-cart__warehouseGroup { margin-bottom: 8px }

.cc-cart__warehouseTitle {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-bx-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-cart__empty .cc-ds-empty {
  margin: 0 auto;
  max-width: 420px;
}

.cc-cart__voucherForm .cc-ds-field { flex: 1; min-width: 0 }

.cc-cart__voucherForm .cc-ds-input { width: 100% }

.cc-checkout__fields .cc-ds-input,
.cc-checkout__fields .cc-ds-field { width: 100% }

.cc-account__sectionCardBody .cc-ds-input { width: 100% }

.cc-account .cc-ds-empty {
  padding: 32px 16px;
}

.cc-cart__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: 0;
  border-radius: 14px;
  font-family: var(--cc-cart-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cc-bx-accent);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 66, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cc-cart__checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 66, 0, 0.35);
  color: #fff;
  background: var(--cc-bx-accent-hover);
  opacity: 1;
}
.cc-cart__checkout i { font-size: 12px; opacity: 0.7 }
.cc-cart__continue {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--cc-bx-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.cc-cart__continue:hover { color: var(--cc-bx-accent) }

/* ── Alerts ── */
.cc-cart__alert {
  margin: 0 0 20px 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.cc-cart__alert--err {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.cc-cart__alert--warn {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* ── Empty state ── */
.cc-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 56px 32px;
  text-align: center;
  border-radius: 28px;
  background: var(--cc-cart-card);
  border: 1px solid var(--cc-cart-border);
}
.cc-cart__emptyRing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--cc-cart-cream);
  border: 1px solid rgba(255,66,0,0.25);
  color: var(--cc-cart-gold);
  font-size: 32px;
  box-shadow: 0 0 0 8px rgba(255,66,0,0.06);
}
.cc-cart__emptyTitle {
  margin: 0 0 10px 0;
  font-family: var(--cc-cart-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.cc-cart__emptyText {
  margin: 0 0 28px 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-cart-muted);
}
.cc-cart__emptyCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cc-cart-ink);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.cc-cart__emptyCta:hover { opacity: 0.9; color: #fff; transform: translateY(-1px) }

/* ── Loading ── */
.cc-cart__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 20px;
  color: var(--cc-cart-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-cart__spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--cc-cart-border);
  border-top-color: var(--cc-cart-gold);
  border-radius: 50%;
  animation: ccCartSpin 0.8s linear infinite;
}
@keyframes ccCartSpin { to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  .cc-cart__line { animation: none }
  .cc-cart__checkout:hover { transform: none }
}

@media screen and (max-width: 960px) {
  .cc-cart__layout {
    grid-template-columns: 1fr;
    gap: 40px;
    column-gap: 0;
  }
  .cc-cart__aside { position: static }
}

@media screen and (max-width: 640px) {
  .cc-cart__line {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px 0;
  }
  .cc-cart__thumb { width: 72px; height: 72px }
  .cc-cart__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--cc-cart-border);
  }
  .cc-cart__linePrice { font-size: 14px }
}
