/* Cart page styles */

.breadcrumbs {
    padding: 130px 0 24px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { margin: 0 10px; opacity: 0.5; }
.crumb-current { color: var(--text); }

.cart-page {
    padding: 24px 0 100px;
    min-height: 60vh;
}

.cart-title {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 32px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 88px 1fr auto auto auto;
    gap: 18px;
    align-items: center;
    transition: border-color 0.2s;
}

.cart-item:hover { border-color: rgba(247, 147, 26, 0.3); }

.cart-item-img {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(247, 147, 26, 0.08), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-img.cart-img-xhp { background: linear-gradient(180deg, rgba(56, 159, 255, 0.1), transparent); }

.cart-item-img img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(10, 10, 15, 0.85);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.cart-item-info { min-width: 0; }

.cart-item-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cart-item-badge.super {
    background: rgba(247, 147, 26, 0.12);
    border: 1px solid rgba(247, 147, 26, 0.25);
    color: #f7931a;
}

.cart-item-badge.xhp {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.cart-item-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 4px;
}

.cart-item-name:hover { color: var(--accent); }

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.qty-btn:hover { background: var(--bg-card-hover); }

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    min-width: 80px;
}

.cart-price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.cart-price-new {
    font-size: 18px;
    font-weight: 800;
    color: #f7931a;
    letter-spacing: -0.5px;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cart-item-remove:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

/* Summary */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-summary-row.bundle-active {
    color: #10b981;
    font-weight: 700;
}

.bundle-explainer {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.cart-summary-row.bundle-suggest {
    background: rgba(247, 147, 26, 0.08);
    border: 1px dashed rgba(247, 147, 26, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
    margin: 4px 0;
}

.bundle-info-icon { color: #f7931a; margin-right: 4px; }

.bundle-suggest-link {
    color: #f7931a;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bundle-suggest-link:hover { text-decoration: underline; }

.crypto-row .row-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-pill {
    background: linear-gradient(135deg, #f7931a, #f59e0b);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.total-row {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding: 12px 0 20px;
}

.total-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f7931a, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.cart-checkout {
    width: 100%;
    margin-bottom: 18px;
}

.cart-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-perks li {
    font-size: 12px;
    color: var(--text-muted);
}

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.cart-empty-icon svg { width: 36px; height: 36px; }

.cart-empty h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.7px;
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .cart-item { grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px; }
    .cart-item-img { width: 64px; height: 64px; }
    .cart-item-img img { width: 48px; height: 48px; }
    .cart-item-qty, .cart-item-remove { grid-column: 2 / span 2; justify-self: start; margin-top: 8px; }
    .cart-item-price { grid-column: 1 / -1; flex-direction: row; gap: 12px; align-items: center; justify-content: flex-end; }
    .cart-title { font-size: 32px; }
}
