.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h1 {
    margin: 0;
    color: #333;
    font-size: 2em;
}

.cart-stats {
    display: flex;
    gap: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #666;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.empty-cart-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5em;
}

.empty-cart p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1.1em;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 25px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-image div {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.item-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.item-meta span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #666;
}

.item-size {
    color: #007bff;
    font-size: 0.9em;
    font-weight: 500;
}

.item-prices {
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-price {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.item-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.quantity {
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    font-size: 1.1em;
}

.item-total {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.item-remove {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.item-remove:hover {
    background: #c82333;
}

.cart-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid #e9ecef;
}

.order-summary h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1em;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.3em;
    border-bottom: none;
    margin-bottom: 25px;
    padding-top: 10px;
    border-top: 2px solid #dee2e6;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.btn-checkout:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-checkout:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-clear {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-clear:hover {
    background: #5a6268;
}

.quick-cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
    font-size: 1em;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .item-image div {
        width: 80px;
        height: 80px;
    }
    
    .item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-header h1 {
        font-size: 1.5em;
    }
}