* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #ff9800;
    --text-dark: #333;
    --text-light: #666;
    --background: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 120px 20px 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #f57c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .nav-logo h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        max-height: 600px;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
        position: relative;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Medicine image adjustments - keep product and cart images consistent */
.product-image img,
.product-card img,
.cart-item-image img,
.data-table img,
.order-item img,
.medicine-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fill container without distortion */
    border-radius: 8px;
}

/* Specific sensible defaults for table thumbnails (admin lists) */
.data-table img {
    width: 60px;
    height: 60px;
}

/* Ensure cart thumbnails fit their 80x80 container */
.cart-item-image img {
    width: 80px;
    height: 80px;
}

/* Small responsive tweak: on narrow screens make product images taller for readability */
@media (max-width: 480px) {
    .product-image { height: 220px; }
    .cart-item-image img { width: 72px; height: 72px; }
}

/* If images are applied as background on the container, ensure they behave similarly */
.product-image,
.cart-item-image,
.medicine-thumb,
.order-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
/* ===============================
   Order Status Text Color Styles
================================*/

.status-delivered {
    color: #2ecc71; /* Green */
    font-weight: 600;
}

.status-cancelled {
    color: #e74c3c; /* Red */
    font-weight: 600;
}

.status-shipped {
    color: #3498db; /* Blue */
    font-weight: 600;
}

.status-pending {
    color: #f39c12; /* Orange */
    font-weight: 600;
}

