@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --black: #404040;
    --lightGray: #f4f4f4;
    --orange: #fb7e2e;
    --redOrange: #ff4f37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    color: var(--black);
}

/* general styles */
a {
    text-decoration: none;
    color: var(--black);
}

button {
    appearance: none;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
}

.text-red-orange {
    color: var(--redOrange);
}

/* --- NAVBAR --- */
header>.search-mobile {
    display: none;
}

.search {
    border: 1px solid var(--lightGray);
    padding: 0 12px;
    display: flex;
    align-items: center;
}

.search input {
    border: none;
    outline: none;
    padding: 0.5rem;
    flex: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* left side */
nav .logo {
    height: 24px;
}

/* middle */
nav ul li a {
    text-transform: uppercase;
}

nav .menu {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    list-style: none;
    z-index: 100;
}

nav .menu>li {
    padding: 1rem 0;
}

nav .menu>li a {
    padding: 0 12px;
}

nav .menu>li a.active {
    color: var(--orange);
    text-decoration: line-through;
    font-weight: 500;
}

nav .menu>li:hover {
    background-color: var(--lightGray);
}

nav .menu>li:not(:last-child)>a {
    border-right: 1px solid #d4d4d4;
}

nav .menu .dropdown {
    position: relative;
}

nav .menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: var(--lightGray);

    position: absolute;
    top: 100%;
    left: 0;
    min-width: 252px;
    display: none;
}

nav .menu .dropdown:hover ul {
    display: block;
}

nav .menu ul li {
    padding: 1rem;
    transition: background-color 0.3s;
}

nav .menu ul li:hover {
    background-color: #bababa;
}

nav .menu ul li:not(:last-child) {
    border-bottom: 1px solid #cacaca;
}

nav .menu ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .9rem;
}

/* right side */
nav .right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav .show-search-btn {
    display: none;
}

nav .right select {
    border: none;
    background-color: transparent;
    background-size: 16px;
}

/* --- HERO --- */
#hero .carousel {
    position: relative;
}

#hero .carousel-item {
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 14, 14, 0.7);
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: calc(100vh - 83px);
    object-fit: cover;
    z-index: -1;
}

#hero .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
}

#hero .carousel-left-arrow {
    left: 0;
}

#hero .carousel-right-arrow {
    right: 0;
}

#hero .carousel-item .carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

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

#hero .carousel-item .carousel-content .row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

#hero .carousel-content .left h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}

#hero .carousel-content .left h4 {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 400;
    color: white;
    line-height: 1.75rem;
}

#hero .carousel-content .right .hero-helmet {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.carousel-content .bottom {
    position: absolute;
    bottom: 2.75rem;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.carousel-content .bottom button {
    background-color: var(--lightGray);
    padding: .75rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-content .bottom .buttons {
    display: flex;
}

.carousel-content .bottom .buttons button:not(:last-child) {
    border-right: 1px solid var(--black);
}

.carousel-content .bottom .buttons button:first-child {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.carousel-content .bottom .buttons button:last-child {
    background-color: var(--redOrange);
    color: white;
}

.carousel-content .bottom-dropdown,
.carousel-content .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.carousel-content .share-icon img {
    width: 15px;
}

.carousel-content .bottom-dropdown {
    display: none;
}

.carousel-content .bottom-dropdown img {
    width: 12px;
    flex-shrink: 0;
}

/* --- PRODUCTS */
#products {
    padding: 0 0 3rem;
}

.section-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.75rem;
    font-weight: 400;
    text-transform: uppercase;
}

#products .card-container {
    flex: 3;
    transition: flex 0.3s ease-in-out;
    height: 100%;
}

#products .card-container:hover {
    flex: 4 !important;
}

#products .card {
    height: 100%;
    background-color: var(--lightGray);
    padding: 1rem 1.75rem;
}

#products .card h3 {
    font-size: 1rem;
    margin: 1rem 0;
    font-weight: 400;
    color: #9a9a9a;
    text-transform: uppercase;
}

#products .card .box h4 {
    font-weight: 700;
    margin-bottom: 2rem;
}

#products .card .box button {
    background-color: var(--redOrange);
    color: white;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
}

#products .card img {
    height: 95px;

    transition: transform 0.3s ease-in-out;
}

#products .card:hover img {
    transform: scale(2.1);
}

/* BLOGS */
#others {
    padding-bottom: 3rem;
}

#others .container .row {
    max-width: 850px;
    margin: 0 auto;
}

.blogs .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d4d4d4;
}

.blogs .header h4 {
    font-weight: 700;
}

.blogs .header a {
    font-size: 0.8rem;
    color: var(--redOrange);
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 600;
}

.blog {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
}

.blog img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: .125rem;
}

.blog .date {
    font-size: .75rem;
    color: #d4d4d4;
    margin-bottom: .5rem;
}

.blog .title {
    font-size: .85rem;
    font-weight: 400;
    margin-bottom: .5rem;
}

.blog a {
    font-size: .75rem;
    color: var(--redOrange);
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: underline;
}

/* BEST SELLERS */
.best-sellers {
    display: flex;
    align-items: center;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../assets/images/best_sellers_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.best-sellers img {
    width: 45%;
    height: auto;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.best-sellers .content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 1rem;
    padding: 2rem;
    z-index: 1;
    text-align: end;
}

.best-sellers h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.best-sellers p {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75rem;
    text-transform: uppercase;
}

.best-sellers button {
    background-color: var(--redOrange);
    color: white;
    padding: .75rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}