/* CART PAGE STYLES */

:root {
    --gold: #d4af37;
    --gold-soft: #e8c547;
    --bg-0: #05070d;
    --bg-1: #0f1218;
    --bg-2: #1a1f2e;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --border: rgba(212, 175, 55, 0.15);
    --success: #58cc02;
    --error: #ff4444;
}

.cart-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
    padding: 40px 20px;
}

.cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* === ITEMS SECTION === */

.cart-items-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 80px 1fr 120px 50px;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.cart-item:hover::before {
    opacity: 1;
}

/* Product image */
.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 32px;
}

/* Product info */
.cart-item-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.cart-item-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-plan {
    font-size: 12px;
    color: var(--gold-soft);
    font-weight: 600;
}

/* Price */
.cart-item-price {
    text-align: right;
}

.item-price-main {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

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

/* Remove button */
.cart-item-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 6px;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.6);
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.cart-empty p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--bg-0);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* === SUMMARY SECTION === */

.cart-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.summary-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

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

.summary-value {
    color: var(--text);
    font-weight: 500;
}

.summary-value.discount {
    color: var(--success);
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.summary-total span:first-child {
    font-size: 14px;
    color: var(--text-muted);
}

.total-price {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

/* Balance info */
.balance-info {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 14px;
    margin: 20px 0;
    text-align: center;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
    margin: 0;
}

/* Buttons */
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--bg-0);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Promo section */
.promo-section {
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.promo-label {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.promo-input {
    flex: 1;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.promo-input::placeholder {
    color: var(--text-muted);
}

.promo-apply {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-apply:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.promo-applied {
    font-size: 12px;
    color: var(--success);
    margin: 0;
    padding: 8px;
    background: rgba(88, 204, 2, 0.1);
    border-radius: 4px;
    text-align: center;
}

/* === MOBILE === */

@media (max-width: 768px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 70px 1fr 60px;
        gap: 15px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .item-price-main {
        font-size: 16px;
    }

    .cart-items-section h1 {
        font-size: 24px;
    }
}
