/*
 * Cart page (T12.5, F9): items on the left, summary on the right. One column on small screens.
 */
.ec-cart-page { background: var(--ec-cream-soft); padding: 26px 0 40px; }
.ec-cart-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 300px; }
.ec-cart-main { min-width: 0; }
.ec-page-heading.ec-cart-title { font-family: var(--ec-font); font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.ec-cart-title small { font-size: 16px; font-weight: 400; }
.ec-cart-empty { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); margin-top: 16px; padding: 48px 20px; text-align: center; }
.ec-cart-empty i { color: var(--ec-muted); font-size: 34px; }
.ec-cart-empty p { margin: 10px 0 18px; }

/* Free delivery progress */
.ec-cart-progress { align-items: center; background: var(--ec-green-soft); border-radius: 6px; color: var(--ec-ink); display: flex; font-size: 12.5px; font-weight: 500; gap: 10px; margin: 16px 0 12px; padding: 10px 14px; }
.ec-cart-progress > i { color: var(--ec-green); }
.ec-cart-progress strong { color: var(--ec-muted); font-size: 11.5px; font-weight: 500; }
.ec-cart-bar { background: #d9e5d5; border-radius: 3px; flex: 1; height: 5px; overflow: hidden; }
.ec-cart-bar span { background: var(--ec-green); display: block; height: 100%; }

/* Lines */
.ec-cart-line { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: flex; gap: 16px; margin-bottom: 12px; padding: 14px; }
.ec-cart-line.is-unavailable { background: #fbf9f6; }
.ec-cart-line.is-unavailable .ec-cart-line-media { opacity: .5; }
.ec-cart-line-media { aspect-ratio: 1; background: #f6f3ee; border-radius: 6px; flex: 0 0 130px; height: 130px; overflow: hidden; position: relative; }
.ec-cart-line-media > img:first-child { height: 100%; object-fit: contain; width: 100%; }
.ec-cart-line-design { object-fit: contain; position: absolute; }
.ec-cart-line-design.is-circle { border-radius: 50%; object-fit: cover; }
.ec-cart-line-body { flex: 1; min-width: 0; }
.ec-cart-eyebrow { color: var(--ec-gold-dark); display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.ec-cart-line h2 { font-size: 15px; font-weight: 700; margin: 2px 0; }
.ec-cart-sub { color: var(--ec-muted); font-size: 11.5px; margin: 0 0 8px; }
.ec-cart-specs { font-size: 12px; list-style: none; margin: 0 0 8px; padding: 0; }
.ec-cart-specs li { margin-bottom: 3px; overflow-wrap: anywhere; }
.ec-cart-specs b { font-weight: 600; }
.ec-cart-dot { border: 1px solid var(--ec-line); border-radius: 50%; display: inline-block; height: 11px; margin-left: 3px; vertical-align: -1px; width: 11px; }
.ec-cart-tag { background: #fbf1e3; border-radius: 3px; color: var(--ec-ink); display: inline-block; font-size: 10.5px; font-weight: 600; padding: 4px 10px; }
.ec-cart-unavailable { color: #c0392b; font-size: 12px; font-weight: 500; margin: 0; }
.ec-cart-line-side { align-items: flex-end; display: flex; flex-direction: column; gap: 22px; }
.ec-cart-price { font-size: 16px; white-space: nowrap; }
.ec-cart-actions { align-items: center; border-left: 1px solid var(--ec-line); display: flex; gap: 12px; padding-left: 14px; }
.ec-cart-qty { align-items: center; border: 1px solid var(--ec-line); border-radius: 4px; display: flex; }
.ec-cart-qty button { background: none; border: 0; height: 30px; padding: 0; width: 28px; }
.ec-cart-qty button:disabled { color: #c9c4bb; }
.ec-cart-qty span { font-size: 12.5px; font-weight: 500; min-width: 26px; text-align: center; }
.ec-cart-remove { background: none; border: 0; padding: 4px; }
.ec-cart-remove:hover { color: #c0392b; }
.ec-cart-tools { display: flex; gap: 10px; justify-content: space-between; margin: 14px 0; }
.ec-cart-tools .ec-btn { font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; }

/* Suggestions */
.ec-cart-also { margin-top: 20px; }
.ec-cart-also h2 { font-size: 13.5px; font-weight: 700; text-transform: uppercase; }
.ec-cart-also-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ec-cart-suggest { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: block; font-size: 11.5px; padding-bottom: 8px; }
.ec-cart-suggest-media { aspect-ratio: 1; display: block; margin-bottom: 6px; overflow: hidden; }
.ec-cart-suggest-media img { height: 100%; object-fit: cover; width: 100%; }
.ec-cart-suggest-name, .ec-cart-suggest strong, .ec-cart-suggest .ec-rating { display: block; padding: 0 8px; }

/* Summary */
.ec-cart-card { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); margin-bottom: 14px; padding: 18px; }
.ec-cart-card h2 { font-size: 13.5px; font-weight: 700; margin: 0 0 14px; text-transform: uppercase; }
.ec-cart-card h3 { font-size: 12.5px; font-weight: 700; margin: 0 0 12px; }
.ec-cart-totals { margin: 0; }
.ec-cart-totals > div { display: flex; font-size: 12.5px; justify-content: space-between; padding: 6px 0; }
.ec-cart-totals dt { font-weight: 400; }
.ec-cart-totals dd { font-weight: 600; margin: 0; }
.ec-cart-total { align-items: center; border-top: 1px solid var(--ec-line); display: flex; font-size: 14px; font-weight: 700; justify-content: space-between; margin-top: 8px; padding-top: 14px; }
.ec-cart-total strong { color: var(--ec-green); font-size: 21px; }
.ec-cart-free { background: var(--ec-green-soft); border-radius: 6px; display: flex; font-size: 11.5px; gap: 12px; margin-top: 14px; padding: 11px 14px; }
.ec-cart-free i { color: var(--ec-green); font-size: 18px; }
.ec-cart-free strong { color: var(--ec-green); }
.ec-cart-free p { margin: 2px 0 0; }
.ec-cart-checkout { justify-content: center; letter-spacing: .6px; margin-top: 14px; text-transform: uppercase; width: 100%; }
.ec-cart-accept { display: flex; flex-wrap: wrap; font-size: 12px; font-weight: 600; gap: 8px 14px; margin: 0; }
.ec-cart-why { list-style: none; margin: 0; padding: 0; }
.ec-cart-why li { align-items: center; display: flex; font-size: 11.5px; gap: 12px; padding: 7px 0; }
.ec-cart-why i { color: var(--ec-gold); font-size: 17px; }
.ec-cart-why strong, .ec-cart-why span { display: block; }
.ec-cart-why span { color: var(--ec-muted); }

@media (max-width: 991.98px) {
    .ec-cart-layout { grid-template-columns: minmax(0, 1fr); }
    .ec-cart-also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ec-cart-line { flex-wrap: wrap; }
    .ec-cart-line-media { flex-basis: 96px; height: 96px; }
    .ec-cart-line-body { flex-basis: calc(100% - 112px); }
    .ec-cart-line-side { align-items: center; flex: 1 0 100%; flex-direction: row; justify-content: space-between; }
    .ec-cart-actions { border-left: 0; padding-left: 0; }
}
