/* Cart Page Styles */

.cart-header {
    padding: 120px 0 60px;
    background: var(--primary-bg);
    text-align: center;
}

.cart-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.cart-section {
    padding: 60px 0 100px;
    background: var(--primary-bg);
    min-height: 60vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: stretch;
}

/* Cart Items */
.cart-items-container {
    background: #000000;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--tertiary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.cart-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #ff5f57;
    background: rgba(255, 95, 87, 0.1);
}

.cart-item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--tertiary-bg);
    padding: 8px 15px;
    border-radius: 8px;
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    color: var(--text-primary);
    transform: scale(1.2);
}

.quantity-value {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cart-empty p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Cart Summary */
.cart-summary {
    background: #000000;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 20px;
}

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

.checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 25px;
    padding: 15px;
    font-size: 1.1rem;
}

.continue-shopping {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    padding: 12px;
}

/* Responsive */
@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2.5rem;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .quantity-controls {
        justify-content: center;
    }

    .cart-item-price {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cart-header h1 {
        font-size: 2rem;
    }

    .cart-items-container {
        padding: 20px 15px;
    }

    .cart-item {
        padding: 20px 15px;
    }

    .cart-summary {
        padding: 25px 20px;
    }
}
