/* 1. RESET & VARIABLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #FDF5E6;
    --espresso: #4B3621;
    --latte: #6F4E37;
    --money-green: #2E7D32;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* 2. BASE STYLES */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--espresso);
    line-height: 1.6;
}

/* 3. HERO & HEADER */
header.hero {
    background-color: var(--espresso);
    color: var(--cream);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.tagline {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 25px;
    display: block;
}

/* COMMIT: Center the admin button in the hero */
.admin-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* 4. BUTTONS */
.btn-add-new {
    background-color: var(--money-green);
    color: var(--white);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px; /* Modern pill shape */
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-add-new:hover {
    transform: scale(1.05);
    background-color: #1b5e20;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-view {
    display: inline-block;
    background-color: var(--latte);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid var(--latte);
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: transparent;
    color: var(--latte);
}

/* 5. LAYOUT & GRID */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--latte);
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 6. PRODUCT CARDS */
.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.rating {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.price {
    font-weight: bold;
    color: #2e8b57;
    font-size: 1.3rem;
    margin: 10px 0 20px;
}

/* 7. FOOTER */
footer {
    text-align: center;
    padding: 40px;
    background: var(--espresso);
    color: var(--cream);
    margin-top: 60px;
}