:root {
    --tan: #f3eee6;
    --brown: #5c4632;
    --accent: #d8a75c;
    
    --radius: 1rem;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--tan);
    color: var(--brown);
    line-height: 1.6;
    font-family: "Nunito", sans-serif;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    letter-spacing: 0.02rem;
}

/* Hero Section */

.hero {
    position: relative;
    min-height: 90vh;
    background: url('../images/farm-hero.jpg') center/cover no-repeat;
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
}

/* Button Sections */

.btn, button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: .85rem 1.75rem;
    font-size: 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover, button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
}

.grid {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

/* Card Section */

.card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.card-body {
    padding: 1.25rem;
}

.price {
    font-weight: 600;
    margin: 0.5rem 0;
}

.desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

/* Cart Page */

.empty-cart {
    padding: 2rem;
    text-align: center;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.cart-table th,
.cart-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.cart-table th:first-child,
.cart-table td:first-child {
    text-align: left;
}

.qty-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.qty {
    display: inline-block;
    margin: 0 0.5rem;
    min-width: 1.5rem;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--brown);
    text-decoration: underline;
    cursor: pointer;
}

.cart-summary {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-floating {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--brown);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 2rem;
}

/* Responsive Design */
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); } }