*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', serif;
    /* display: grid;
    grid-template-rows: 1fr auto 1fr;
    height: 100%; */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo {
    max-width: 12rem;
}

a {
    text-decoration: none;
    color: #000;
}

header {
    display: flex;
    justify-content: center;
    flex-direction: column;

    padding: 1rem;
    text-align: center;
}

footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
}

footer div {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 70vw;
}

.content {
    margin: 0 auto;
}

h1 {
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    margin-top: 4rem;
    text-align: center;
}

p {
    margin-top: 1rem;
    text-align: center;
}

.container_products {
    --columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 1rem;
    margin: 1rem 0 8rem 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}




@media (min-width: 641px) and (max-width: 980px) {
    .container_products:nth-of-type(1) {
        --columns: 4;
    }
    .container_products:nth-of-type(1) {
        --columns: 3;
    }
    .container_products:nth-of-type(1) > :last-child {
        grid-column: 2;
    }
    .container_products:nth-of-type(2) {
        --columns: 3;
    }
    
    .container_products:nth-of-type(2) > :last-child {
        grid-column: 2;
    }
    
    .container_products:nth-of-type(3) {
        --columns: 3;
    }
    
    .container_products:nth-of-type(4) {
        --columns: 1;
    }
}

@media (min-width: 981px) {
    .container_products:nth-of-type(1) {
        --columns: 4;
    }
    .container_products:nth-of-type(1) {
        --columns: 3;
    }
    .container_products:nth-of-type(1) > :last-child {
        grid-column: 2;
    }
    .container_products:nth-of-type(2) {
        --columns: 3;
    }
    
    .container_products:nth-of-type(2) > :last-child {
        grid-column: 2;
    }
    
    .container_products:nth-of-type(3) {
        --columns: 3;
    }
    
    .container_products:nth-of-type(4) {
        --columns: 1;
    }
}


.set {
    text-align: center;
    display: grid;
    place-items: center;
    padding: 1rem;
    width: max-content;
    margin: 0 auto;
}

.set img {
    max-width: 10rem;
}


/* ------------------- */

@media (min-width: 640px) {
    .container_products {
        --columns: 3;
    }
    .set {
        width: clamp(auto, 10rem, 10rem);
    }
}

@media (min-width: 980px) {
    .container_products {
        --columns: 3;
    }
    footer div {
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .content {
        max-width: 1400px;
    }
    .container_products {
        --columns: 4;
    }
}


/* ------------------- */

#diy-widget {
    max-width: 90%;
    min-height: 50vh;
}

@media (min-width: 560px) {
    #diy-widget {
        margin: 0 auto;
    }
}

@media (min-width: 980px) {}

@media (min-width: 1200px) {
    #diy-widget {
        max-width: 60vw;
    }
}

/* ------------------- */

.splide__slide img {
    width: 100%;
    height: auto;
  }

@media (max-width: 640px) {
    .splide__slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}