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

:root {
    --background: #050505;
    --surface: #0d0d0d;
    --surface-light: #151515;
    --border: #262626;

    --text: #ffffff;
    --muted: #999999;

    --blue: #1683ff;
    --blue-light: #4da3ff;
    --blue-dark: #0865cc;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


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

.navbar {
    height: 74px;

    display: flex;
    align-items: center;

    padding: 0 6%;

    background: rgba(5, 5, 5, 0.9);

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

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;

    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 900;

    letter-spacing: -1px;

    margin-right: auto;
}

.logo span {
    color: var(--blue);
}

nav {
    display: flex;
    gap: 32px;

    margin-right: 35px;
}

nav a {
    color: #a7a7a7;

    font-size: 14px;

    transition: 0.2s;
}

nav a:hover {
    color: white;
}

.cart-button {
    background: white;

    color: black;

    border: 0;

    padding: 10px 17px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.2s;
}

.cart-button:hover {
    background: #e8e8e8;

    transform: translateY(-1px);
}

#cartCount {
    background: var(--blue);

    color: white;

    padding: 2px 7px;

    border-radius: 20px;

    margin-left: 5px;

    font-size: 11px;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 650px;

    display: flex;

    align-items: center;

    padding: 90px 8%;

    position: relative;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -250px;
    top: -250px;

    background: var(--blue);

    opacity: 0.12;

    filter: blur(120px);

    border-radius: 50%;
}

.hero-content {
    max-width: 800px;

    position: relative;

    z-index: 1;
}

.badge {
    display: inline-block;

    color: var(--blue-light);

    border: 1px solid rgba(22, 131, 255, 0.35);

    background: rgba(22, 131, 255, 0.08);

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 100px);

    line-height: 0.95;

    letter-spacing: -5px;

    margin: 25px 0;
}

.hero h1 span {
    color: var(--blue);
}

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

    font-size: 19px;

    max-width: 570px;

    line-height: 1.6;

    margin-bottom: 35px;
}


/* =========================
   BUTTONS
========================= */

.primary-button {
    display: inline-block;

    background: var(--blue);

    color: white;

    border: 0;

    padding: 14px 22px;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.2s;
}

.primary-button:hover {
    background: var(--blue-light);

    transform: translateY(-2px);

    box-shadow:
        0 8px 30px rgba(22, 131, 255, 0.25);
}


/* =========================
   SECTIONS
========================= */

section {
    padding: 90px 8%;
}

.section-heading {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 35px;
}

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

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 42px;

    letter-spacing: -2px;

    margin-top: 7px;
}


/* =========================
   FEATURED
========================= */

.featured-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--surface);

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

    border-radius: 16px;

    overflow: hidden;
}

.featured-image {
    min-height: 380px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 130px;

    color: white;

    background:
        radial-gradient(
            circle,
            rgba(22, 131, 255, 0.25),
            transparent 60%
        );

    position: relative;
}

.featured-image::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    background: var(--blue);

    filter: blur(80px);

    opacity: 0.35;
}

.featured-info {
    padding: 60px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.featured-tag {
    color: var(--blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.featured-info h3 {
    font-size: 40px;

    margin: 15px 0;
}

.featured-info p {
    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 35px;
}

.featured-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.featured-bottom strong {
    font-size: 28px;
}


/* =========================
   SHOP
========================= */

.controls {
    display: flex;

    gap: 10px;
}

.controls input,
.controls select {
    background: var(--surface);

    color: white;

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

    border-radius: 8px;

    padding: 12px 15px;

    outline: none;
}

.controls input:focus,
.controls select:focus {
    border-color: var(--blue);
}

.products {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

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

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

    border-radius: 12px;

    overflow: hidden;

    transition: 0.25s;
}

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

    border-color: rgba(22, 131, 255, 0.55);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);
}

.product-image {
    height: 230px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 75px;

    color: white;

    background:
        radial-gradient(
            circle at center,
            rgba(22, 131, 255, 0.18),
            transparent 65%
        );

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 7px 0;

    font-size: 18px;
}

.product-category {
    color: #777;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.product-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;
}

.price {
    font-weight: 800;

    font-size: 18px;
}

.add {
    background: white;

    color: black;

    border: 0;

    padding: 9px 14px;

    border-radius: 7px;

    font-weight: 700;

    transition: 0.2s;
}

.add:hover {
    background: var(--blue);

    color: white;
}


/* =========================
   ABOUT
========================= */

.about {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

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

.about h2 {
    font-size: 50px;

    letter-spacing: -3px;

    margin-top: 15px;
}

.about > p {
    color: var(--muted);

    line-height: 1.8;

    max-width: 550px;
}


/* =========================
   CART
========================= */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.75);

    display: none;

    z-index: 500;
}

.overlay.active {
    display: block;
}

.cart {
    position: absolute;

    right: 0;

    top: 0;

    height: 100%;

    width: min(420px, 100%);

    background: #0b0b0b;

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

    padding: 25px;

    display: flex;

    flex-direction: column;

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.4);
}

.cart-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 20px;

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

.cart-header button {
    background: none;

    border: 0;

    color: white;

    font-size: 30px;
}

#cartItems {
    flex: 1;

    overflow-y: auto;

    padding: 20px 0;
}

.cart-item {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 15px 0;

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

.cart-item small {
    color: var(--muted);
}

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

    padding-top: 20px;
}

.total {
    display: flex;

    justify-content: space-between;

    font-size: 20px;

    margin-bottom: 20px;
}

.checkout {
    width: 100%;

    background: var(--blue);

    color: white;

    border: 0;

    padding: 15px;

    border-radius: 8px;

    font-weight: 800;

    transition: 0.2s;
}

.checkout:hover {
    background: var(--blue-light);
}


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

footer {
    padding: 40px 8%;

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

    display: flex;

    justify-content: space-between;

    color: var(--muted);
}


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

@media (max-width: 900px) {

    nav {
        display: none;
    }

    .products {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .hero h1 {
        letter-spacing: -3px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    .section-heading {
        align-items: stretch;

        flex-direction: column;

        gap: 20px;
    }

    footer {
        flex-direction: column;

        gap: 20px;
    }
}