:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --text: #1e293b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header h1 {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-section { flex: 2; min-width: 350px; }
.summary-section { flex: 1; min-width: 300px; }

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.product-item:last-child { border-bottom: none; }

.product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h4 { margin: 0 0 5px 0; }
.product-info p { font-size: 0.9rem; color: #64748b; margin: 0; }
.price-qty { margin-top: 10px; display: flex; justify-content: space-between; font-weight: bold; }

.address-section input, .address-section select, .address-section textarea {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
}

.grid-select {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.delivery-time { color: #059669; font-size: 0.9rem; font-weight: 500; }
.total { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

/* Toast Styling */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .grid-select { grid-template-columns: 1fr; }
}