.container {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.main {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;

    padding: 0 60px;
}

.section {
    width: 100%;
}

#fold {
    width: 100%;
    height: 400px;

    border-radius: 5px;
    
    /*background: rgba(0, 0, 0, 0.5);*/

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;
}

#fold > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
    position: absolute;

    margin: 20px;

    z-index: 1;
}

#fold > div > img {
    width: 80%;
}

#fold > div > h1 {
    color: #ffffff;

    font-weight: bold;
    
    margin: 0;

    text-align: center;
    text-transform: uppercase;
}

#fold > img {
    width: 100%;
    height: 100%;

    filter: brightness(60%);

    object-fit: cover;
}

.section:not(#fold, #delivery-note, #newsletter, #print) {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

#categories > div {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    overflow-x: auto;
    
    scroll-snap-type: x mandatory;
}

#categories > div::-webkit-scrollbar {
    background-color: transparent;
}

#categories > div::-webkit-scrollbar-thumb {
    border: 5px solid #ffffff;
    border-radius: 10px;
    
    background-color: #f2f3f7;
}

#categories > div::-webkit-scrollbar-button {
    display: none;
}

.category-link {
    border-radius: 5px;

    background: #f2f3f7;

    padding: 5px 10px;

    white-space: nowrap;

    scroll-snap-align: start;
    /* scroll-snap-stop: always; */
}

#delivery-note {
    width: 100%;

    border-radius: 5px;

    background: #1c242d;

    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 20px;
}

#delivery-note > span {
    color: #f2f3f7;

    font-size: 14px;

    text-transform: uppercase;
    text-align: center;
}

#discounted > div {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.discounted-product {
    width: calc(25% - 15px);

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discounted-product-image {
    width: 100%;

    position: relative;
}

.discounted-product-image > span {
    border-radius: 5px;

    color: #ffffff;
    background: #c81508;

    font-size: 14px;

    position: absolute;

    top: 10px;
    left: 10px;

    padding: 5px 10px;

    text-transform: uppercase;
}

.discounted-product-image > img {
    width: 100%;
    height: calc(((100vw - 120px) / 4) - 15px);
    
    border-radius: 5px;

    object-fit: cover;
}

.discounted-product-details {
    width: 100%;
    
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.discounted-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.discounted-product-name {
    font-size: 18px;
    font-weight: bold;
}

.discounted-product-price {
    font-size: 14px;
}

.add-to-cart-btn {
    background: #1c242d;
}

.remove-from-cart-btn {
    background: var(--successColor);
}

.discounted-product-add-to-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

.discounted-product-remove-from-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

#advantages > div {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.advantage {
    width: calc(25% - 15px);

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.advantage-icon {
    border-radius: 5px;

    background: #f2f3f7;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px;
}

#top > div {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.top-product {
    width: calc(25% - 15px);

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-product-image {
    width: 100%;

    position: relative;
}

.top-product-image > span {
    border-radius: 5px;

    color: #ffffff;
    background: #59981A;

    font-size: 14px;

    position: absolute;

    top: 10px;
    left: 10px;

    padding: 5px 10px;

    text-transform: uppercase;
}

.top-product-image > img {
    width: 100%;
    height: calc(((100vw - 120px) / 4) - 15px);
    
    border-radius: 5px;

    object-fit: cover;
}

.top-product-details {
    width: 100%;
    
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.top-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.top-product-name {
    font-size: 18px;
    font-weight: bold;
}

.top-product-price {
    font-size: 14px;
}

.top-product-add-to-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

.top-product-remove-from-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

#newsletter {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#newsletter > h2 {
    text-align: center;
}

#newsletter > div {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#newsletter-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#newsletter-email {
    border: none;
    border-radius: 5px;

    background: #f2f3f7;

    font-size: 16px;

    padding: 10px;

    outline: none;
}

.newsletter-report-box {
    text-align: center;
    text-transform: uppercase;

    display: none;
}

#newsletter-subscribe-btn {
    border: none;
    border-radius: 5px;

    color: #ffffff;
    background: #1c242d;

    font-size: 16px;

    padding: 10px;
}

.newsletter-unsubscribe-note {
    font-size: 12px;

    text-align: center;
    text-transform: uppercase;
}

.newsletter-unsubscribe-note > a {
    font-weight: bold;
}

#print {
    width: 100%;

    border-radius: 5px;

    background: #1c242d;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
    padding: 20px;
}

#print > span {
    color: #f2f3f7;

    font-size: 14px;

    text-transform: uppercase;
}

#print > h2 {
    color: #f2f3f7;

    text-align: center;
    text-transform: uppercase;
}

#print > a {
    border: none;
    border-radius: 5px;

    color: #1c242d;
    background: #f2f3f7;

    font-size: 16px;

    padding: 10px;
}

@media only screen and (max-width: 900px) {
    .main {
        padding: 0 20px;
    }

    .discounted-product {
        width: calc(50% - 10px);
    }

    .discounted-product-image > span {
        font-size: 12px
    }

    .discounted-product-image > img {
        height: calc(((100vw - 40px) / 2) - 10px);
    }

    .discounted-product-name {
        font-size: 16px;
    }
    
    .advantage {
        width: calc(50% - 20px);
        
        flex-direction: column;
        align-items: center;
    }
    
    .advantage > span {
        text-align: center;
    }

    .top-product {
        width: calc(50% - 10px);
    }

    .top-product-image > span {
        font-size: 12px
    }

    .top-product-image > img {
        height: calc(((100vw - 40px) / 2) - 10px);
    }

    .top-product-name {
        font-size: 16px;
    }

    #newsletter > h2 {
        font-size: 22px;
    }
}

@media only screen and (max-width: 700px) {
    #fold > div > img {
        width: 100%;
    }

    #fold > div > h1 {
        font-size: 24px;
    }

    .section:not(#fold, #newsletter, #print, #delivery-note) {
        align-items: center;
    }

    .section:not(#fold, #newsletter) > h2 {
        text-align: center;
    }

    .discounted-product-image > span {
        font-size: 14px
    }

    .discounted-product-name {
        font-size: 18px;
    }

    .top-product-image > span {
        font-size: 14px
    }

    .top-product-name {
        font-size: 18px;
    }

    #newsletter > h2 {
        font-size: 20px;
    }

    #newsletter-form {
        width: 100%;

        flex-direction: column;
    }

    #newsletter-email {
        width: 100%;
    }
    
    #newsletter-subscribe-btn {
        width: 100%;
    }
}