/* ── Cart — premium purchase funnel (r154) ─────────────────────────── */

.cart-page {
  padding-top: var(--space-6, 2rem);
  padding-bottom: var(--space-8, 4rem);
  max-width: 1120px;
}

.cart-hero {
  margin-bottom: var(--space-6, 2rem);
  max-width: 36rem;
}

.cart-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink, #111);
  margin: 0 0 0.5rem;
}

.cart-subtitle {
  margin: 0;
  font-size: var(--text-base, 0.9375rem);
  color: var(--ink-muted, #5c5c5c);
  line-height: 1.55;
}

/* Empty state */
.cart-empty {
  padding: var(--space-8, 4rem) 0;
  max-width: 28rem;
}

.cart-empty-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink, #111);
  margin: 0 0 0.75rem;
}

.cart-empty-copy {
  margin: 0 0 1.75rem;
  color: var(--ink-muted, #5c5c5c);
  font-size: var(--text-base, 0.9375rem);
  line-height: 1.6;
}

.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  background: var(--ink, #111);
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-empty-cta:hover {
  background: #000;
  color: #fff;
}

/* Layout */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.cart-items {
  min-width: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line, #e6e6e4);
}

.cart-item:first-child {
  border-top: 1px solid var(--line, #e6e6e4);
}

.cart-item-image {
  width: 140px;
  height: 175px;
  background: var(--bg-soft, #f7f7f5);
  overflow: hidden;
}

.cart-item-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-soft, #f7f7f5);
}

.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink, #111);
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.cart-item-title-link {
  color: inherit;
  text-decoration: none;
}

.cart-item-title-link:hover,
.cart-item-title-link:focus-visible {
  color: var(--ink-muted, #5c5c5c);
}

.cart-item-config {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-item-config li {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink-muted, #5c5c5c);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cart-item-meta {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink-muted, #5c5c5c);
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

.cart-item-unit-price {
  margin: 0;
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink, #111);
}

.cart-item-unit-label {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--ink-faint, #8a8a8a);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cart-item-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line, #e6e6e4);
}

.qty-form {
  margin: 0;
  display: contents;
}

.qty-btn {
  width: 44px;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: var(--ink, #111);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.qty-btn:hover,
.qty-btn:focus-visible {
  background: var(--bg-soft, #f7f7f5);
}

.qty-value {
  min-width: 2.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line, #e6e6e4);
  border-right: 1px solid var(--line, #e6e6e4);
  color: var(--ink, #111);
}

.cart-item-line-total {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.remove-form {
  margin: 0;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--ink-faint, #8a8a8a);
  font-size: var(--text-sm, 0.8125rem);
  cursor: pointer;
  padding: 0.35rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}

.remove-btn:hover,
.remove-btn:focus-visible {
  color: var(--ink, #111);
}

/* Summary */
.cart-summary {
  width: 100%;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line, #e6e6e4);
  position: sticky;
  top: calc(var(--header-h, 4.25rem) + 1.25rem);
  align-self: start;
}

.cart-summary-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #111);
  margin: 0 0 1.25rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: var(--text-base, 0.9375rem);
  color: var(--ink-muted, #5c5c5c);
}

.cart-subtotal {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
}

.cart-summary-note {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink-faint, #8a8a8a);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  background: var(--ink, #111);
  color: #fff;
  border: none;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1rem;
  opacity: 1;
}

.btn-checkout:hover,
.btn-checkout:focus-visible {
  background: #000;
  color: #fff;
}

.cart-continue {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink-muted, #5c5c5c);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cart-continue:hover,
.cart-continue:focus-visible {
  color: var(--ink, #111);
  border-bottom-color: var(--ink, #111);
}

.cart-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ink-muted, #5c5c5c);
}

.cart-trust-list li {
  padding-left: 0.95rem;
  position: relative;
  margin: 0.35rem 0;
  line-height: 1.45;
}

.cart-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--ink, #111);
}

@media (max-width: 991.98px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cart-summary {
    position: static;
    border-top: 1px solid var(--line, #e6e6e4);
    padding-top: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.35rem 0;
  }

  .cart-item-image {
    width: 96px;
    height: 120px;
  }

  .cart-item-title {
    font-size: 1.05rem;
  }

  .cart-item-controls {
    gap: 0.85rem;
  }

  .cart-item-line-total {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .cart-page {
    padding-bottom: calc(var(--space-8, 4rem) + env(safe-area-inset-bottom, 0px));
  }
}
