/* --- 1. LATTE & FOREST PALETTE --- */
:root {
    --latte: #f2e8d5;     /* Warm tan base */
    --vanilla: #fdfaf5;   /* Light cream for cards */
    --dark-brown: #3e2723;
    --soft-brown: #8d6e63;
    --lilac: #d1c4e9;
    --deep-lilac: #9b7ede;
    --forest: #2d3e2d;    /* Northern Colorado Green */
}

/* --- 2. GLOBAL STYLES --- */
body {
    background-color: var(--latte);
    color: var(--dark-brown);
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* --- 3. NAVIGATION --- */
nav {
    background-color: var(--dark-brown);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--lilac);
}

nav a {
    color: var(--latte);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--lilac);
}

/* --- 4. HEADER --- */
header {
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 1px double var(--soft-brown);
}

header h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--dark-brown);
    letter-spacing: 3px;
    font-family: 'Times New Roman', serif;
}

header p {
    font-style: italic;
    color: var(--soft-brown);
    font-size: 1.2rem;
}

/* --- 5. HERO SECTION --- */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    /* You can change this URL to a ranch photo later */
    background-image: linear-gradient(rgba(62, 39, 35, 0.4), rgba(62, 39, 35, 0.4)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1200&q=80'); 
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--forest);
}

.hero-content {
    background: rgba(253, 250, 245, 0.95); /* Vanilla with slight transparency */
    display: inline-block;
    padding: 3rem;
    border: 2px solid var(--dark-brown);
    box-shadow: 15px 15px 0px var(--forest); /* Colorado Green Shadow */
}

/* --- 6. PRODUCT GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.card {
    background: var(--vanilla);
    border: 1px solid var(--soft-brown);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--forest);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- UPDATED PRODUCT CARDS & SIZE BUTTONS --- */
.card {
    background: var(--vanilla);
    border: 1px solid var(--soft-brown);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* The 'Price + Size' Button Container */
.price-options {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between the different size buttons */
    margin-top: auto; /* Pushes buttons to the bottom of the card */
}

.btn-size {
    display: flex;
    justify-content: space-between; /* Puts Size on left, Price on right */
    align-items: center;
    background: var(--forest);
    color: white;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-size:hover {
    background: var(--dark-brown);
    transform: translateX(4px); /* Subtle slide effect */
}

/* Style for the price specifically inside the button */
.btn-size .price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.9rem;
}

/* Adjusting the card price text (since it's now inside the button) */
.card p.description {
    font-size: 0.9rem;
    color: var(--soft-brown);
    margin: 5px 0 15px 0;
}


/* --- 7. FOOTER --- */
footer {
    background: var(--dark-brown);
    color: var(--latte);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 5rem;
}

/* --- THE SHOP LAYOUT (Side-by-Side) --- */
.shop-layout {
    display: flex;
    align-items: flex-start; /* Keeps them aligned at the top */
    gap: 40px;               /* Space between the column and the products */
    margin-top: 3rem;
}

/* THE LEFT COLUMN */
.sidebar {
    flex: 0 0 250px;         /* This locks the width at 250px so it doesn't shrink */
    background: var(--vanilla);
    padding: 30px;
    border: 1px solid var(--soft-brown);
    border-radius: 4px;      /* Sharp, clean edges */
    height: auto;            /* It will grow with the content */
    position: sticky;        /* This keeps it visible as you scroll */
    top: 20px;
    box-shadow: 8px 8px 0px var(--lilac); /* Our signature Ranch shadow */
}

/* THE MAIN SECTION */
.product-list {
    flex: 1;                 /* This tells the products to take up the remaining space */
}

.sidebar h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--forest);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--soft-brown);
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar li a {
    text-decoration: none;
    color: var(--dark-brown);
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    transition: 0.2s;
}

.sidebar li a:hover {
    color: var(--forest);
    padding-left: 5px; /* Subtle movement on hover */
}

/* Ensure the grid doesn't break the layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

