/* Cart Specific Styles */

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.cart-items h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #666;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.item-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-price {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

.item-type {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    outline: none;
}

.item-total {
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

/* Cart Summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.summary-row.total {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.continue-shopping {
    width: 100%;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.continue-shopping:hover {
    background: #667eea;
    color: white;
}

/* Empty Cart */
.empty-cart {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.empty-cart h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.cart-overlay.open {
    display: block;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .item-details {
        grid-column: 1 / -1;
    }
    
    .quantity-controls, .item-total, .remove-btn {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 0.5rem;
    }
    
    .cart-summary {
        position: static;
    }
}
