/* ═══════════════════════════════════════════════════════════════
   VividHome — Cart Page
   Design system: #1A1A1A headings, #4A4A4A body, #8A8A8A muted,
   #E5E2DD borders, #F5F0EB bg, DM Sans body, Cormorant Garamond headings
   ═══════════════════════════════════════════════════════════════ */

/* Page hero / breadcrumb */
.s-page-hero {
  background: #F5F0EB;
  padding: 24px 0;
}

/* Breadcrumb — uses unified .vh-breadcrumb from design-system.css */

/* Main content area */
.s-page-content {
  padding: 40px 0 80px;
  background: #fff;
}

.s-page-title {
  font-family: 'Geologica', 'Georgia', serif;
  font-size: 32px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 32px;
}

.s-page-title span {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #8A8A8A;
  margin-left: 10px;
}

/* ── Cart layout ── */
.s-cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .s-cart-layout { grid-template-columns: 1fr; }
}

/* ── Cart items ── */
.s-cart-items {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E5E2DD;
  overflow: hidden;
}

.s-cart-items-header {
  padding: 18px 24px;
  border-bottom: 1px solid #E5E2DD;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.s-cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto 32px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #F0EDE8;
  transition: background 0.15s;
}

.s-cart-row:last-child { border-bottom: none; }
.s-cart-row:hover { background: #FAF9F7; }

.s-cart-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #E5E2DD;
  flex-shrink: 0;
}

.s-cart-name {
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1A1A1A;
  margin-bottom: 4px;
  line-height: 1.3;
}

.s-cart-variant {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 12px;
  color: #8A8A8A;
}

.s-cart-unit-price {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  white-space: nowrap;
  text-align: right;
}

/* Qty */
.s-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #E5E2DD;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.s-qty-btn {
  width: 32px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.s-qty-btn:hover { background: #F5F0EB; }

.s-qty-input {
  width: 38px;
  border: none;
  border-left: 1.5px solid #E5E2DD;
  border-right: 1.5px solid #E5E2DD;
  text-align: center;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  background: #fff;
  height: 34px;
  -moz-appearance: textfield;
}

.s-qty-input::-webkit-outer-spin-button,
.s-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.s-cart-line-total {
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1A1A1A;
  white-space: nowrap;
  text-align: right;
}

.s-cart-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #8A8A8A;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.s-cart-remove:hover { color: #1A1A1A; background: #F5F0EB; }
.s-cart-remove svg { width: 16px; height: 16px; }

.s-cart-footer {
  padding: 18px 24px;
  border-top: 1px solid #E5E2DD;
  background: #FAF9F7;
}

.s-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  transition: gap 0.2s;
}

.s-continue-link:hover { gap: 10px; }
.s-continue-link svg { width: 16px; height: 16px; }

/* ── Empty cart ── */
.s-cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
  gap: 16px;
}

.s-cart-empty.is-visible { display: flex; }
.s-cart-empty-icon { color: #8A8A8A; opacity: 0.3; }

.s-cart-empty h3 {
  font-family: 'Geologica', 'Georgia', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.s-cart-empty p {
  font-family: 'Onest', system-ui, sans-serif;
  color: #8A8A8A;
  font-size: 14px;
  max-width: 280px;
}

/* ── Order Summary ── */
.s-order-summary {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E5E2DD;
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.s-summary-header {
  padding: 18px 24px;
  border-bottom: 1px solid #E5E2DD;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.s-summary-body { padding: 24px; }

.s-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  border-bottom: 1px solid #F0EDE8;
}

.s-summary-row:last-of-type { border-bottom: none; }
.s-summary-row strong { color: #1A1A1A; }
.s-summary-row.s-summary-free { color: #059669; font-weight: 600; }

.s-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  border-top: 2px solid #E5E2DD;
  margin-top: 8px;
}

/* Promo code */
.s-promo-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.s-promo-input {
  flex: 1;
  height: 42px;
  border: 1.5px solid #E5E2DD;
  border-radius: 6px;
  padding: 0 12px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  background: #FAF9F7;
  transition: border-color 0.2s;
}

.s-promo-input:focus { outline: none; border-color: #1A1A1A; }
.s-promo-input::placeholder { color: #B0B0B0; }

.s-promo-btn {
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid #1A1A1A;
  border-radius: 6px;
  background: transparent;
  color: #1A1A1A;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.s-promo-btn:hover { background: #1A1A1A; color: #fff; }

/* Checkout button */
.s-checkout-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 16px;
}

.s-checkout-btn:hover { background: #333; transform: translateY(-1px); }

/* Trust row */
.s-trust-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #E5E2DD;
}

.s-trust-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 11px;
  color: #8A8A8A;
  font-weight: 500;
}

.s-trust-tag svg {
  width: 14px;
  height: 14px;
  color: #059669;
  flex-shrink: 0;
}

/* Browse button in empty state */
.s-btn-browse {
  display: inline-block;
  padding: 12px 28px;
  background: #1A1A1A;
  color: #fff;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.s-btn-browse:hover { background: #333; }

/* ── Mobile responsive ── */
@media (max-width: 767px) {
  .s-cart-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .s-cart-unit-price,
  .s-cart-items-header { display: none; }

  .s-cart-thumb { width: 64px; height: 64px; }

  .s-page-title { font-size: 26px; }
}
