/* Novira — Cart page */

.ds-cart-page {
  background: var(--ds-bg-soft);
  padding-bottom: 48px;
}

.ds-cart-tabs {
  display: flex;
  gap: 0;
  background: var(--ds-bg);
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 0;
}

.ds-cart-tab {
  flex: 1;
  max-width: 280px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s;
}

.ds-cart-tab:hover {
  color: var(--ds-text-secondary);
}

.ds-cart-tab.is-active {
  color: var(--ds-brand);
  border-bottom-color: var(--ds-brand);
}

.ds-cart-tab-badge {
  background: var(--ds-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ds-cart-tab-badge--muted {
  background: var(--ds-bg-soft);
  color: var(--ds-text-muted);
}

.ds-cart-tab.is-active .ds-cart-tab-badge--muted {
  background: var(--ds-brand);
  color: #fff;
}

.ds-cart-inner {
  padding-top: 20px;
}

.ds-cart-charity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #c8e6c9;
  border-radius: var(--ds-radius-lg);
  margin-bottom: 20px;
}

.ds-cart-charity-top-text {
  font-size: 13px;
  color: var(--ds-text-secondary);
  line-height: 1.6;
}

.ds-cart-charity-top-text strong {
  color: #2e7d32;
}

.ds-cart-charity-top-btn {
  padding: 8px 16px;
  background: var(--ds-bg);
  border: 1px solid #81c784;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.ds-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .ds-cart-layout {
    grid-template-columns: 1fr 340px;
  }
}

.ds-cart-main {
  min-width: 0;
}

.ds-cart-head {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin-bottom: 16px;
}

.ds-cart-head span {
  font-weight: 400;
  color: var(--ds-text-muted);
  font-size: 13px;
}

.ds-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-cart-line {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .ds-cart-line {
    grid-template-columns: 100px 1fr auto;
    grid-template-rows: auto auto;
  }

  .ds-cart-line-thumb {
    grid-row: 1 / 3;
  }

  .ds-cart-line-body {
    grid-column: 2;
  }

  .ds-cart-line-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .ds-cart-line-footer {
    grid-column: 2 / 4;
  }
}

.ds-cart-line-thumb {
  width: 100px;
  height: 100px;
  background: var(--ds-bg-soft);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.ds-cart-line-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
}

.ds-cart-line-title:hover {
  color: var(--ds-brand);
}

.ds-cart-line-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-text-muted);
}

.ds-cart-line-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ds-cart-line-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  white-space: nowrap;
}

.ds-cart-line-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-cart-line-remove {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ds-text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.ds-cart-line-remove:hover {
  border-color: var(--ds-brand);
  color: var(--ds-brand);
}

.ds-cart-line-footer {
  padding-top: 12px;
  border-top: 1px solid var(--ds-border);
}

.ds-cart-line-move {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-brand);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.ds-cart-line-move:hover {
  text-decoration: underline;
}

.ds-cart-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .ds-cart-summary {
    position: sticky;
    top: 120px;
  }
}

.ds-cart-summary-card {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
}

.ds-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ds-text-muted);
  margin-bottom: 10px;
}

.ds-cart-summary-row strong {
  font-size: 15px;
  color: var(--ds-text-secondary);
}

.ds-cart-summary-row--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--ds-border);
  margin-bottom: 16px;
}

.ds-cart-summary-row--total strong {
  font-size: 17px;
}

.ds-cart-btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

a.ds-cart-btn-checkout {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.ds-cart-btn-checkout:hover {
  background: var(--ds-brand-dark);
  color: #fff;
}

.ds-cart-summary-note {
  font-size: 11px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}

.ds-cart-promo-plus {
  padding: 16px;
  border-radius: var(--ds-radius-lg);
  background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 50%, #6a1b9a 100%);
  color: #fff;
}

.ds-cart-promo-plus-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ds-cart-promo-plus-text {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.6;
}

.ds-cart-promo-charity {
  padding: 16px;
  border-radius: var(--ds-radius-lg);
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border: 1px solid #c8e6c9;
}

.ds-cart-promo-charity-title {
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 6px;
}

.ds-cart-promo-charity-text {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ds-cart-promo-charity-btn {
  padding: 8px 14px;
  background: var(--ds-bg);
  border: 1px solid #81c784;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  cursor: pointer;
  font-family: inherit;
}

.ds-cart-empty {
  text-align: center;
  padding: 48px 24px 32px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  margin-bottom: 24px;
}

.ds-cart-empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: var(--ds-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.ds-cart-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  margin-bottom: 12px;
}

.ds-cart-empty-text {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.ds-cart-empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ds-cart-empty-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-brand);
  padding: 8px 16px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg-soft);
  text-decoration: none;
}

.ds-cart-empty-links a:hover {
  border-color: var(--ds-brand);
}

.ds-cart-later-empty {
  text-align: center;
  padding: 40px 24px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-text-muted);
  font-size: 14px;
}

.ds-cart-recent {
  margin-top: 32px;
}

.ds-cart-recent-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin-bottom: 16px;
}

.ds-cart-faq {
  margin-top: 40px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
}

.ds-cart-faq-item {
  border-bottom: 1px solid var(--ds-border);
}

.ds-cart-faq-item:last-child {
  border-bottom: none;
}

.ds-cart-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.ds-cart-faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ds-cart-faq-item.is-open .ds-cart-faq-trigger svg {
  transform: rotate(180deg);
}

.ds-cart-faq-body {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.8;
}
