
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f4f1ea; /* cream background*/
    --text-color: #2c2c2c;
    --accent-color: #d35400; /* orange accent */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* styles for header */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- mobile stuff */

/* default mobile state; hiding the links etc... */
.nav-links {
    display: none; 
}

.menu-icon {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
}

/* desktop State: when screen is wider than 768px */
@media (min-width: 768px) {
    .nav-links {
        display: flex; 
        list-style: none;
        gap: 2rem;
    }
    
    .menu-icon {
        display: none; /* hiding the hamburger */
    }
}

/* main content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* product card styles*/
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    /* 100 width stacks vertically */
    width: 100%; 
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1); /* shadow effect */
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px); /* lift up slightly on hover */
}

/* desktop: 30% width (fits 3 in a row with gaps) */
@media (min-width: 768px) {
    .product-card {
        width: 30%; 
    }
}

.image img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* to make sure the photos don't stretch weirdly */
    display: block;
}

.product-info {
    padding: 1.5rem;
    text-align: left;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

button {
    background-color: var(--text-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
}

button:hover {
    background-color: var(--accent-color);
}
/* JavaScript style */
.featured-item {
    border: 2px solid #d35400;
    box-shadow: 0 8px 16px rgba(211, 84, 0, 0.2);
    transform: scale(1.02); /* makes it slightly larger */
}

.featured-item::before {
    content: "FEATURED";
    position: absolute;
    background: #d35400;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    top: 10px;
    left: 10px;
    z-index: 10;
}