* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* HEADER */

header {
    background: #2e7d32;
    color: white;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


/* HERO */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/hero.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 15px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e68900;
}


/* FEATURES */

.features {
    padding: 60px 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* SHOP */

.products {
    padding: 50px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 5px;
    padding: 10px;
}

.product-card h4 {
    margin: 10px 0;
}

.price {
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 10px;
}

.add-cart {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.add-cart:hover {
    background: #f57c00;
}

.category-title{
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #2e7d32;
    border-left: 6px solid #ff9800;
    padding-left: 12px;
    font-weight: 600;
}

/* CART */

.cart-section {
    padding: 50px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.cart-table th,
.cart-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.cart-table th {
    background: #2e7d32;
    color: white;
}

#cart-total {
    margin-top: 20px;
    font-size: 22px;
    color: #2e7d32;
}


/* CHECKOUT */

.checkout-section {
    padding: 50px 0;
}

.payment-info {
    background: #fff3cd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkout-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.checkout-form textarea {
    height: 80px;
    resize: none;
}

.checkout-form button {
    margin-top: 20px;
    width: 100%;
}


/* ADMIN LOGIN */

.login-section {
    background: url('../images/hero.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2e7d32;
}

.login-container label {
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 18px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.login-container button:hover {
    background: #1b5e20;
}


/* FOOTER */

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


/* =========================
ADMIN ORDERS PAGE
========================= */

.admin-orders {
    padding: 60px 0;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-top h2 {
    color: #2e7d32;
}

.admin-btn {
    background: #2e7d32;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.admin-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

.order-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.order-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.order-meta {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.admin-table th {
    background: #2e7d32;
    color: white;
}

.order-total {
    background: #f1f8e9;
    font-weight: bold;
}

.no-orders {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-top: 40px;
}

/* =========================
ADMIN AUTH (LOGIN / CHANGE PASSWORD)
========================= */

.admin-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: #f4f6f8;
    padding: 20px;
}

.auth-card {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 20px;
    color: #2e7d32;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.auth-card input:focus {
    outline: none;
    border-color: #2e7d32;
}

.full-btn {
    width: 100%;
    margin-top: 10px;
}

.auth-message {
    margin-bottom: 15px;
    font-weight: bold;
    color: #2e7d32;
}

.back-link {
    display: block;
    margin-top: 15px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #2e7d32;
}