/* 🌑 Improved Dark Mode Styling */

body.dark-mode {
    background-color: #0b1a0f !important;
    color: #cdeac0 !important;
    font-family: 'Segoe UI', sans-serif;
}

body.dark-mode nav {
    background-color: #133e1e !important;
    border-bottom: 2px solid #7fdb6a !important;
}

body.dark-mode a {
    color: #8bf599 !important;
    text-decoration: none;
}

body.dark-mode a:hover {
    text-decoration: underline;
    color: #b7ffcc !important;
}

body.dark-mode .login-container,
body.dark-mode .content-box,
body.dark-mode .product-card,
body.dark-mode .cart-box {
    background-color: #122a18 !important;
    border: 1px solid #356f4f !important;
    box-shadow: 0 0 10px rgba(139, 245, 153, 0.15);
    padding: 1.5em;
    border-radius: 12px;
    color: #e2ffe2 !important;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #a7ffb5 !important;
}

body.dark-mode button {
    background-color: #1f4e31 !important;
    color: #cdeac0 !important;
    border: 1px solid #8bf599 !important;
    border-radius: 6px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

body.dark-mode button:hover {
    background-color: #296e45 !important;
    cursor: pointer;
}

body.dark-mode footer {
    background-color: #112c1c !important;
    color: #85d993 !important;
    border-top: 1px solid #1c4c30 !important;
    padding: 1em;
    text-align: center;
}

.product-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-categories a {
    background-color: #88c88f;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #003300;
    font-weight: bold;
}

.product-section {
    margin-top: 40px;
}

.product-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-card {
    background-color: #f8fff8;
    border: 1px solid #88c88f;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #e0f5e0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

.image-placeholder img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.product-link {
    color: inherit;
    text-decoration: none;
}

.product-card h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.5em 0 0.2em;
}

.product-card p {
    font-size: 0.95em;
    color: #333;
}
