:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #ffb300; 
    --nav-bg: #000000;
    --border: #262626;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* Navigation & Logo */
nav {
    background: var(--nav-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo img {
    height: 45px;
    width: auto;
    margin-left: 15px;
    border-radius: 4px;
}

.nav-links a {
    color: var(--text-dim);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    color: #fff;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* Coffee Card Image Adjustments */
.card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Ensures the whole label is visible */
    background-color: var(--bg-color); /* Matches dark theme */
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.roast-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    align-self: flex-start;
}

h2 { color: var(--accent); text-transform: uppercase; margin-bottom: 20px; }

.card h3 {
    margin: 10px 0;
    color: var(--text-main);
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Interactive Elements */
button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    width: 100%;
    margin-top: 10px;
}

input, textarea, select {
    width: 100%; padding: 12px; margin: 8px 0;
    background: #1a1a1a; border: 1px solid var(--border);
    color: #fff; border-radius: 6px; box-sizing: border-box;
}

footer {
    background: #000; text-align: center; padding: 40px;
    border-top: 1px solid var(--border); color: var(--text-dim);
}

#cart-toast {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--accent); color: #000;
    padding: 12px 25px; border-radius: 30px;
    font-weight: bold; display: none; z-index: 1000;
}