* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
}
body {
    background: #eef5ea;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: auto;
    background: white;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid #cbe5cb;
    padding-bottom: 15px;
}
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #2c5e2e;
    font-weight: 500;
}
nav a.active {
    background: #2c5e2e;
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
}
.medicine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 24px;
}
.medicine-card {
    background: #fefdf8;
    border-radius: 28px;
    padding: 18px;
    border: 1px solid #daecda;
    transition: 0.2s;
}
.medicine-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a3a1a;
}
.potency-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}
select, input[type="number"], input[type="text"], textarea, input[type="password"] {
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid #cde0cd;
    background: white;
}
button, .btn-add, .btn-buy, .btn-update, .btn-combo {
    background: #2c5e2e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
button:hover { background: #1f4521; transform: scale(0.98); }
.btn-combo { background: #ff9800; }
.btn-buy { background: #0f4e1f; font-size: 1.1rem; padding: 12px; width: 100%; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.cart-table th, .cart-table td {
    padding: 12px;
    border-bottom: 1px solid #e0ecdf;
    text-align: left;
}
.checkout-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8fff8;
    border-radius: 28px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
}
.alert {
    padding: 12px 18px;
    border-radius: 60px;
    margin-bottom: 20px;
    background: #dff0df;
    color: #1f5422;
}
.empty-cart {
    text-align: center;
    padding: 50px;
    background: #faf9f0;
    border-radius: 32px;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    gap: 24px;
}
.card {
    background: #fefefa;
    border-radius: 24px;
    padding: 18px;
    border: 1px solid #cfe3cf;
}
.full-width {
    grid-column: 1 / -1;
}
.med-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #e2eddf;
}
.remove-link {
    color: #c7362b;
    text-decoration: none;
    font-weight: bold;
}
.combos {
    margin-top: 12px;
}
@media (max-width: 700px) {
    header { flex-direction: column; gap: 12px; }
    nav a { margin: 0 8px; }
    .medicine-grid { grid-template-columns: 1fr; }
}