:root {
    --dark: #202020;
    --dim-white: #ccc;
    --btn-inactive: #BFBFBF;
    --title: #333333;
    --sub-text: #999;
}

* {
    font-family: "Poppins", sans-serif;
    line-height: 1.2em;
    letter-spacing: 0.05em;
    box-sizing: content-box;
}

img {
    width: 100%;
}


header {
    background-color: var(--dark);
    display: flex;
    height: 100px;
    align-items: center;
    padding: 0 4rem;
}

#header-logo {
    max-width: 150px;
    transform: translate(0, 2px);
}

nav>ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-left: 3rem;
}

nav>ul>li>a {
    color: var(--dim-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.landing-switches {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.landing-switch {
    border: none;
    background-color: var(--btn-inactive);
    aspect-ratio: 1/1;
    width: 14px;
    border-radius: 50%;
    box-sizing: border-box;
}
.landing-switch.active {
    background-color: var(--dark);
}

.main-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 300;
}

.popular-section {
    padding: 45px;
    display: flex;
    flex-direction: column;
}

.product-links {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    justify-content: space-around;
}
.product-links>a {
    color: var(--title);
    text-decoration: none;
    text-align: center;
    width: 20%;
    min-width: 200px;
}

.product-links>a>h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.product-links>a>img {
    object-fit: contain;
    aspect-ratio: 1/1;
}

.product-links>a>span {
    color: var(--sub-text);
    font-size: 0.9rem;
}

#all-products-link {
    margin: auto;
    margin-top: 4rem;
    color: var(--sub-text);
    font-size: 0.9rem;
    text-underline-offset: 0.5em;
    color: hsla(0, 100%, 50%, 1);
}