/* FIRST SECTION */
.products-hero {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: auto;
    height: 100vh;
    position: relative;
    background-color: black;
}

.products-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: center;
    padding: 0 2rem;
    filter: drop-shadow(0 0 4px black);
    gap: 0.5rem;
    z-index: 5;
    h1 {
        span {
            color: var(--orange);
        }
    }
}

.products-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 2rem 1rem 6rem;
    gap: 0.5rem;
    z-index: 5;
}

.products-btn .btn2 {
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    color: var(--orange);
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: all 0.2s ease-in-out;
}
.products-btn .btn2:hover {
    color: white;
    background-color: var(--orange);
}

.hero-img {
    position: absolute;
    width: 100%;
    outline: 2px dotted white;
    mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 35%,
    rgba(0,0,0,0)); 
    z-index: 1;
    video {
        object-fit: cover;
        height: 100vh;
        width: 100%;
    }
    img{
        object-fit: cover;
        height: 100vh;
        width: 100vw;
    }
}

/* SECOND SECTION */
.products-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    gap: 4rem;
}

.product-category {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
}

.category-title {
    color: black;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateX(0);
    opacity: 1;
}
.category-title.slide-out {
    transform: translateX(20px);
    opacity: 0;
}
.category-title.slide-in {
    transform: translateX(-20px);
    opacity: 0;
}
.carousel {
    position: relative;
    width: 100%;
}
.carousel-track {
    position: relative;
}
.carousel-btn {
    position: absolute;
    font-size: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.carousel-btn.prev { 
    left: -50px; 
    transition: all 0.2s ease-in-out;
}
.carousel-btn.next { 
    right: -50px; 
    transition: all 0.2s ease-in-out;
}
.carousel-btn.prev:hover, .carousel-btn.next:hover {
    font-size: 60px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}
.carousel-dots button {
    width: 55px;
    height: 5px;
    border: none;
    outline: 1px solid var(--blue);
    margin-top: 1rem;
    cursor: pointer;
}
.carousel-dots button.active {
    background: var(--blue);
}

.product {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    position: absolute;
    inset: 0;
    opacity: 0;
    gap: 2rem;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    p {
        margin: 0;
        line-height: 1.2;
    }
}
.product.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
.preview {
    position: relative;
    img {
       max-height: 500px;
       width: 333px;
       object-fit: cover; 
       border-radius: 20px;
    }
}
.product-tag {
    position: absolute;
    top: 1rem;
    color: white;
    background-color: var(--orange);
    padding: 0.5rem 1rem;
    width: max-content;
}
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}
.info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    p {
        font-weight: bold;
    }
}
.product-name {
    font-weight: bold;
    color: var(--orange);
}
.product-features, .product-benefits {
    font-size: 20px;
    margin: 0;
}
.product-description{
    margin-top: 1rem !important;
}
.extra-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.read-more-btn {
    display: none;
    font-weight: bold;
    font-size: 16px;
    color: var(--orange);
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.under-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;           /* space between boxes */
    margin-top: 6px;
  }

.under-tag {
    color: white;
    background-color: var(--blue);
    padding: 0.5rem;
    border-radius: 5px;
}

@media (max-width: 1400px) {
    .carousel-btn.prev { left: 0px; }
    .carousel-btn.next { right: 0px; }
    .product {
        padding: 0 3rem;
        gap: 1rem;
    }
}

@media (max-width: 940px) {
    .carousel-track {
        touch-action: pan-y;
    }
    .product-benefits li, .product-features li {
        font-size: 18px;
    }
    .extra-content {
        display: none;
    }
    .extra-content.show {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .read-more-btn {
        display: inline-block;
    }
    .products-btn .btn2 {
        font-size: 20px;
        text-align: center;
    }
    .preview {
        img {
            border-radius: 10px;
            width: clamp(90px, 60vw, 300px);
        }
    }
    .under-tag {
        font-size: 14px;
        padding: 0.2rem;
    }
}

@media (max-width: 768px) {
    .under-tags {
        justify-content: center;
      }
    .carousel-btn {
        top: 20%;
    }
    .product {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0.5rem;
    }
    .product-name { 
        text-align: center;
    }
    .info-wrapper {
        gap: 0.5rem;
    }
    .product-tag {
        top: unset;
        bottom: 1rem !important;
        padding: 0.5rem;
        height: max-content;
    }
    .extra-content.show {
        gap: 0.5rem;
    }

    
}

@media (max-width: 546px) {
    .product-benefits li, .product-features li {
        font-size: 16px;
    }
    .products-btn .btn2 {
        text-align: center;
        font-size: 16px;
        padding: 1rem;
    }
    .carousel-btn {
        font-size: 40px;
    }
    .under-tag {
        font-size: 12px;
    }
}

