/* public/style.css - Shopping Cart Demo Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f8f9fa;
    color: #333;
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; 
    padding: 20px 0; 
    margin-bottom: 30px;
    border-radius: 10px;
}
.header h1 { text-align: center; font-size: 2.5em; }
.header p { text-align: center; margin-top: 10px; opacity: 0.9; }

.main-content { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.products-section, .cart-section { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title { 
    font-size: 1.5em; 
    margin-bottom: 20px; 
    color: #667eea;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.product { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px; 
    margin: 10px 0; 
    border: 1px solid #eee; 
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-info h3 { color: #333; margin-bottom: 5px; }
.product-info p { color: #666; font-size: 0.9em; }
.product-price { font-weight: bold; color: #667eea; font-size: 1.2em; }

.product-actions { display: flex; align-items: center; gap: 10px; }
.quantity-input { width: 50px; padding: 4px; font-size: 1em; }

.cart-section { min-width: 350px; }
.cart-item { display: flex; justify-content: space-between; margin: 8px 0; }
.cart-total { margin: 18px 0; font-size: 1.2em; }
.action-section { display: flex; gap: 10px; margin: 10px 0; }

button { padding: 8px 16px; border: none; border-radius: 6px; font-size: 1em; cursor: pointer; transition: background 0.2s; }
button.success { background: #667eea; color: white; }
button.danger { background: #e53e3e; color: white; }
button:active { opacity: 0.8; }

.result { margin: 10px 0; padding: 10px; border-radius: 6px; font-size: 1em; }
.success-msg { background: #e6fffa; color: #276749; border: 1px solid #38b2ac; }
.error-msg { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

.order-info { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; margin-top: 18px; }