:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    color: var(--primary-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: bold;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card h3 {
    margin-top: 0;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-card .prescription-tag {
    background-color: var(--error-color);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
}

.form-container input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-container button {
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #0056b3;
}

.message {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 4px;
    display: none; /* Hidden by default */
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Add these styles to your existing style.css file */

.welcome-banner {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.cart-table th, .cart-table td {
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    text-align: left;
}

.cart-table th {
    background-color: var(--secondary-color);
}

.cart-summary {
    text-align: right;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.add-to-cart-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--success-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
}

.prescription-tag-small {
    background-color: #dc3545;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

#checkout-form-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

#prescription-upload-area {
    margin-bottom: 1rem;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 1rem;
    border-radius: 4px;
}

#prescription-upload-area label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.order-history-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.order-history-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.order-history-header .order-status {
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: #fff;
    background-color: #ffc107; /* Default for Pending */
}

.order-history-header .order-status.delivered {
    background-color: var(--success-color);
}

.order-history-header .order-status.cancelled {
    background-color: var(--error-color);
}

.order-items-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.order-items-table th, .order-items-table td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.order-items-table th {
    font-weight: bold;
}