/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background-color: #f5f6f7;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== NAVBAR ========== */
nav {
    background-color: #2f2f2f;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffd966;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Headings */
.main-content h1,
.main-content h2 {
    text-align: center;
    color: #222;
    margin-bottom: 25px;
}

/* ========== PROFILE FORM ========== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

input:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.4);
    outline: none;
}

/* Button */
button,
.register-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover,
.register-button:hover {
    background-color: #0056b3;
}

button:active,
.register-button:active {
    transform: scale(0.98);
}

/* Message styles */
.message {
    margin-bottom: 20px;
    text-align: center;
}

/* ========== PRODUCT BOXES (for index page) ========== */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card img {
    max-width: 200px;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0 5px;
}

.product-card p {
    color: #444;
}

.product-card .view-button {
    display: inline-block;
    margin-top: 10px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 14px;
}

.product-card .view-button:hover {
    background: #0056b3;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-content {
        margin: 20px;
        padding: 25px;
    }
    nav {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    button,
    .register-button {
        width: 100%;
    }
}
/* ========== PRODUCT GRID (Our Latest Products) ========== */
.products-section {
    text-align: center;
    margin-top: 40px;
}

.products-section h2 {
    margin-bottom: 25px;
    color: #222;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* Each product card */
.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 280px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.product-card p {
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}

/* View Details button */
.product-card .view-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.product-card .view-button:hover {
    background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        gap: 20px;
    }
    .product-card {
        max-width: 90%;
    }
}
/* ========== HOMEPAGE STYLES ========== */
.homepage {
    padding: 30px;
}

.welcome-section {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 35px 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto 40px;
}

.welcome-section h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 16px;
    color: #444;
    margin: 6px 0;
}

.welcome-section a {
    color: #007bff;
    text-decoration: none;
}

.welcome-section a:hover {
    text-decoration: underline;
}

.cart-link {
    text-align: right;
    margin-top: 10px;
}

/* Divider */
.divider {
    margin: 40px auto;
    max-width: 900px;
    border: none;
    border-top: 1px solid #ddd;
}

/* Product grid already defined before, but we’ll enhance it a bit */
.products-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.products-section h2 {
    color: #222;
    margin-bottom: 25px;
    font-size: 24px;
}

.no-products
/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
    padding: 20px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    padding: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Product Images */
.product-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.1);
}

/* Product Text */
.product-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 10px 0 5px;
}

.product-card .product-price {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card .stock-status {
    font-size: 14px;
    margin-bottom: 10px;
}

.stock-status.in-stock {
    color: green;
}

.stock-status.out-of-stock {
    color: red;
}

/* Buttons */
.view-button,
.wishlist-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 5px;
}

.view-button:hover,
.wishlist-button:hover {
    background: #0056b3;
}
/* General Layout */
body {
    background-color: #f3f3f3;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Top Navigation */
.admin-nav {
    background-color: #444;
    display: flex;
    padding: 12px 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.admin-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.admin-nav a:hover {
    color: #ffc107;
}

/* Admin Container */
.admin-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Headings */
.admin-container h1, .admin-container h2 {
    text-align: center;
    color: #333;
}

/* Form Styling */
.admin-container input, 
.admin-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
}

.admin-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}
.admin-container button:hover {
    background-color: #0056b3;
}
/* CATEGORY BADGE */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #007bff;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    z-index: 5;
}

/* PRODUCT PRICE CURRENCY */
.product-price {
    color: #1a73e8;
    font-size: 16px;
    font-weight: 700;
}

