/* CAROUSEL */

.carousel {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #000;
    touch-action: pan-y;
}

.slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}


.slide {
    min-width: 100%;
    flex-shrink: 0;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    transition: transform 0.4s ease-in-out;

}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    -webkit-user-drag: none;
    pointer-events: none;
}

.caption {
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: white;
    font-size: 10px;
    box-shadow: inset 10px 5px 15px rgba(194, 190, 190, 0.473);
}

.caption h2 {
    font-size: 22px;
    color: darkgoldenrod;
    display: ruby-text;
    font-variant-caps: small-caps;
}

.caption p {
    font-size: 20px;
}

/* DOTS */

.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;

}

.dot.active {
    background: orange;
}

/* CATEGORIES */

.categories {
    margin-top: 20px;
    background: linear-gradient(rgba(247, 237, 222, 0.363), rgba(177, 127, 127, 0.5));
    border-radius: 0 0 10px 10px;
    padding: 15px 10%;
}



.categories h3 {
    margin-bottom: 10px;
}
.category-container{
    display: flex;
    flex-direction: column;
    align-content: space-between;
    gap: 10px;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-self: center;
    width: 80%;

}
.flex {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.category {
    max-width: 300px;
    height: 160px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    font-weight: bolder;
    color: rgb(255, 255, 255);
    box-shadow: 1px 5px 15px rgba(0, 0, 0, 0.8);
}

.category:nth-child(1) {
    background: url("https://i.pinimg.com/1200x/90/d2/7b/90d27bf408fb13f255ed7887fd414feb.jpg");
    background-size: cover;
    background-repeat: round;
}

.category:nth-child(2) {
    background: url("https://i.pinimg.com/736x/bd/4b/77/bd4b77af3f7a141bc96e64c9d2dc63fc.jpg");
    background-size: cover;
    background-repeat: round;
}

.category:nth-child(3) {
    background: url("https://i.pinimg.com/736x/b6/7f/36/b67f36818bc6fd59331823e073041de3.jpg");
    background-size: cover;
    background-repeat: round;

}

.category:nth-child(4) {
    background: url("https://i.pinimg.com/736x/35/1f/31/351f317f8c6d4cb2b178120794c4650b.jpg");
    background-size: cover;
    background-repeat: round;
    width: 100%;
}

.category:nth-child(5) {
    background: url("https://i.pinimg.com/1200x/42/a5/9d/42a59d6e33afca58750dd5345ca8cf84.jpg");
    background-size: cover;
    background-repeat: round;
}

.category:nth-child(6) {
    background: url("https://i.pinimg.com/736x/20/0f/70/200f7043ce70f244a18b8b580852e138.jpg");
    background-size: cover;
    background-repeat: round;
    color: grey;
}

.category p {
    font-size: 13px;
    margin-top: 5px;
    font-size: x-large;
    margin-top: 5px;
    text-align: center;

}


.texts {
    height: max-content;
    padding: 10px;
    font-size: 1.3rem;
    line-height: 40px;
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
}

.texts div {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.reveal {
    opacity: 0;
    transition: transform 5s ease, opacity 4s ease;
}

.slide-from-left {
    border-top: solid 1px rgba(128, 128, 128, 0.397);
}

.slide-from-left:nth-child(1) {
    transform: translateX(-50px);
}

.slide-from-left:nth-child(2) {
    transform: translateX(-200px);
}

.slide-from-left:nth-child(3) {
    transform: translateX(-300px);
}

.slide-from-left:nth-child(4) {
    transform: translateX(-350px);
}

.reveal.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}



/* phone */

@media (max-width: 768px) {
     :root {
     --fa-style-family-brands: "Font Awesome 6 Brands";
     --fa-font-brands: normal 400 1em / 1 "Font Awesome 6 Brands";
     background-color: rgb(0, 0, 0);
     width: 100%;

 }
    body {
        background-color: #ffffff;
    }

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

    .carousel {
        height: 370px;
    }

    .slide img {
        height: 370px;

    }

    .categories {
        padding: 15px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .product {
        display: flex;
        gap: 5px;
        flex-direction: column;
    }

    .product button {
        align-self: right;
    }

    .texts {
        color: rgb(125, 163, 189);

    }

    footer {
        width: 100%;
    }
}
