:root {
    --bg: #ffffff;
    --text: #111111;
    --card: #f6f6f6;
    --card-alt: #eaeaea;
}

.dark {
    --bg: #111111;
    --text: #ffffff;
    --card: #1a1a1a;
    --card-alt: #333333;
}

/* Apply global colors */
body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s ease;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HERO */
.hero {
    padding: 60px 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-text p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.hero-image img {
    width: 450px;
    max-width: 100%;
}

/* BUTTON */
.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

/* PRODUCTS */
.products {
    padding: 70px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-card img {
    width: 180px;
    margin-bottom: 15px;
}

.price {
    font-weight: 700;
    margin: 10px 0;
}
/* PRODUCT PAGE -------------------------------- */
.product-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 70px 0;
}

.product-image img {
    width: 450px;
    max-width: 100%;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.benefits {
    margin-bottom: 20px;
}

.benefits li {
    margin: 5px 0;
}

#cartMessage {
    display: none;
    text-align: center;
    margin-top: 20px;
    background: #e8ffe8;
    border: 1px solid #b6eeb6;
    color: #0a8a0a;
    padding: 12px;
    width: 80%;
    max-width: 500px;
    margin-inline: auto;
    border-radius: 6px;
}
/* CART PAGE ------------------------------- */
.cart-page {
    padding: 60px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.cart-item img {
    width: 120px;
}

.cart-total {
    text-align: right;
    margin-top: 20px;
}
/* NAVBAR */
.navbar {
    background: var(--card);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text);
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

/* HAMBURGER (MOBILE) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* THEME BUTTON */
.theme-btn {
    background: var(--card-alt);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text);
}
.footer {
    background: var(--card);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    color: var(--text);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--card);
        padding: 20px;
        border-radius: 8px;
        display: none;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        display: flex;
    }
}
