/* /assets/css/style.css */
:root {
    --primary-color: #2a9d8f;
    --secondary-color: #e9c46a;
    --background-color: #f4f1de;
    --text-color: #333;
    --heading-font: 'Arial', sans-serif;
    --body-font: 'Georgia', serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 30px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

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

.search-bar form {
    display: flex;
}

.search-bar input {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px 0 0 5px;
}

.search-bar button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card h3 {
    font-family: var(--heading-font);
    margin: 15px 0 10px;
}

.product-card .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-card a {
    text-decoration: none;
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}
.site-footer a {
    color: var(--secondary-color);
}
/* Append to /assets/css/style.css */

/* Product Detail Page */
.product-detail-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.product-images {
    flex: 1;
    min-width: 300px;
}

.product-images .main-image {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-images .secondary-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer; /* Could add JS to swap images */
}

.product-info {
    flex: 1.5;
    min-width: 300px;
}

.product-info h1 {
    font-family: var(--heading-font);
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.product-info .product-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #333;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    text-decoration: none;
    margin-bottom: 15px;
}

.product-info .product-price {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info .product-description {
    line-height: 1.8;
}
/* Append to /assets/css/style.css */

/* --- Admin Styles --- */

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    font-family: var(--heading-font);
    color: var(--primary-color);
}
.login-box p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Important */
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #217a70; /* A darker shade of primary */
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}
/* Append to /assets/css/style.css */

/* Admin Header & Nav */
.admin-header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo h2 {
    margin: 0;
}
.admin-nav ul {
    margin: 0; padding: 0; list-style: none;
}
.admin-nav li {
    display: inline-block;
    margin-left: 20px;
}
.admin-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.admin-nav a:hover {
    color: var(--secondary-color);
}
.admin-container {
    padding-top: 30px;
    padding-bottom: 30px;
}
.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-actions h1 {
    margin: 0;
}

/* General Buttons */
.btn {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: bold;
    display: inline-block;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-danger { background-color: #dc3545; color: white; }

/* Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.admin-table th {
    background-color: #f2f2f2;
}
.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.admin-table .action-links {
    display: flex;
    gap: 10px;
}
.admin-table .action-links form {
    margin: 0;
}

/* Admin Form */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}