:root {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --accent-color: #c7a17a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: #2d2d2d;
    --border-color: #3d3d3d;
    --success-color: #4caf50;
    --danger-color: #e74c3c;
}

.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.clear-cart-btn {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background-color: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.cart-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.cart-items {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--secondary-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--primary-bg);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cart-item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-bg);
    border-radius: 25px;
    padding: 5px 15px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(199, 161, 122, 0.4);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-value {
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    color: var(--text-primary);
}

.remove-item-btn {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background-color: var(--danger-color);
    color: white;
    transform: translateY(-2px);
}

.cart-summary {
    width: 350px;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    color: var(--text-primary);
}

.summary-row.total .summary-label {
    font-size: 1.2rem;
    font-weight: bold;
}

.summary-row.total .summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.checkout-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(199, 161, 122, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-cart p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.empty-cart .btn {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-cart .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(199, 161, 122, 0.4);
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .quantity-control {
        padding: 5px 10px;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}
