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

:root {
    --bg: #080908;
    --bg-secondary: #0f110f;
    --card: #121512;
    --border: #242824;
    --text: #f5f7f4;
    --muted: #929892;
    --accent: #c7ff3d;
    --accent-dark: #9bc51f;
}


/* =========================
   LIGHT MODE VARIABLES
========================= */

body.light-mode {
    --bg: #f5f7f2;
    --bg-secondary: #e9ede7;
    --card: #ffffff;
    --border: #dfe4dc;
    --text: #111410;
    --muted: #667066;
    --accent: #76b900;
    --accent-dark: #5e9400;
}


/* =========================
   BODY
========================= */

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    min-height: 100vh;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* =========================
   LINKS
========================= */

a {
    color: inherit;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    border-bottom: 1px solid var(--border);

    background: rgba(8, 9, 8, 0.95);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

body.light-mode .navbar {
    background: rgba(245, 247, 242, 0.95);
}


.logo {
    color: var(--accent);

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 4px;

    text-decoration: none;
}


/* NAV LINKS */

.navbar nav {
    display: flex;

    align-items: center;

    gap: 30px;
}

.navbar nav a {
    color: var(--muted);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--accent);
}


/* =========================
   NAV ACTIONS
========================= */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


/* =========================
   THEME TOGGLE
========================= */

.theme-toggle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    color: var(--text);

    font-size: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);

    border-color: var(--accent);

    color: var(--accent);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    color: var(--text);

    font-size: 20px;

    cursor: pointer;
}


/* =========================
   PAGE HEADER
========================= */

.page-header {
    text-align: center;

    padding: 100px 20px 70px;
}

.eyebrow {
    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;
}

.page-header h1 {
    margin-top: 15px;

    font-size: clamp(40px, 6vw, 70px);

    line-height: 1;
}

.page-header p {
    color: var(--muted);

    margin-top: 20px;

    font-size: 16px;
}


/* =========================
   PRODUCTS
========================= */

.products-section {
    width: 86%;

    max-width: 1300px;

    margin: auto;

    padding-bottom: 100px;
}

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 25px;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    transition:
        transform 0.25s,
        border-color 0.25s,
        background-color 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);

    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 330px;

    background: var(--bg-secondary);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s;
}

.product-card:hover
.product-image img {
    transform: scale(1.04);
}

.image-placeholder {
    color: var(--accent);

    font-size: 28px;
    font-weight: 900;

    letter-spacing: 5px;
}

.product-content {
    padding: 25px;
}

.product-category {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.product-content h3 {
    margin-top: 10px;

    font-size: 24px;
}

.product-content p {
    color: var(--muted);

    margin-top: 12px;

    line-height: 1.6;

    min-height: 50px;
}

.product-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 25px;
}

.product-price {
    color: var(--text);

    font-size: 15px;
    font-weight: 700;
}

.product-button {
    padding: 11px 16px;

    background: var(--accent);

    color: var(--bg);

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s;
}

.product-button:hover {
    background: var(--accent-dark);
}


/* =========================
   PRODUCT PAGE
========================= */

.product-page {
    width: 86%;

    max-width: 1200px;

    margin: auto;

    padding: 100px 0;
}

.product-detail {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: start;
}

.product-detail-image {
    height: 600px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 24px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.product-detail-info {
    padding-top: 30px;
}

.product-detail-info h1 {
    margin-top: 15px;

    font-size: clamp(
        40px,
        5vw,
        70px
    );

    line-height: 1;
}

.product-description {
    color: var(--muted);

    margin-top: 25px;

    line-height: 1.8;

    font-size: 16px;
}

.detail-price {
    margin-top: 30px;

    font-size: 22px;
    font-weight: 800;

    color: var(--accent);
}


/* =========================
   SPECIFICATIONS
========================= */

.specifications {
    margin-top: 45px;

    border-top: 1px solid var(--border);

    padding-top: 25px;
}

.specifications h2 {
    font-size: 20px;

    margin-bottom: 15px;
}

.spec-row {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.spec-row span {
    color: var(--muted);
}

.spec-row strong {
    color: var(--text);
}


/* =========================
   STATES
========================= */

.loading,
.empty-state,
.error-state {
    text-align: center;

    padding: 80px 20px;

    color: var(--muted);
}

.error-state h2,
.empty-state h3 {
    color: var(--text);

    margin-bottom: 15px;
}

.error-state a {
    display: inline-block;

    margin-top: 20px;

    padding: 12px 20px;

    background: var(--accent);

    color: var(--bg);

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;
}


/* =========================
   FOOTER
========================= */

.footer {
    border-top: 1px solid var(--border);

    text-align: center;

    padding: 60px 20px;

    background: var(--bg);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.footer-logo {
    color: var(--accent);

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 4px;
}

.footer p {
    color: var(--muted);

    margin-top: 15px;
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 25px;
}

.footer-links a {
    color: var(--muted);

    text-decoration: none;

    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 12px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar {
        height: 76px;

        padding: 0 6%;

        flex-direction: row;

        gap: 15px;
    }

    .navbar nav {
        display: none;

        position: absolute;

        top: 76px;

        left: 15px;
        right: 15px;

        padding: 15px;

        flex-direction: column;

        gap: 5px;

        background: var(--card);

        border:
            1px solid var(--border);

        border-radius: 16px;
    }

    .navbar nav.open {
        display: flex;
    }

    .navbar nav a {
        padding: 12px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .page-header {
        padding: 70px 20px 50px;
    }

    .products-section {
        width: 90%;
    }

    .product-detail {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .product-detail-image {
        height: 450px;
    }

    .product-page {
        width: 90%;

        padding: 60px 0;
    }

    .product-footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .product-button {
        width: 100%;

        text-align: center;
    }
}