.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;
}

.product {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.product-image {
    width: 100%;

    position: relative;
}

.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;
}

.product-image > img {
    width: 100%;
    height: calc((100vw - 120px) / 2);
    
    border-radius: 5px;

    object-fit: cover;
}

.product-details {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.product-category {
    border-radius: 5px;

    background: #f2f3f7;

    padding: 5px 10px;
}

.product-name {
    margin: 0;
}

.add-to-cart-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity {
    border-radius: 5px;
    
    -webkit-box-shadow: inset 0px 0px 0px 2px #f2f3f7;
    -moz-box-shadow: inset 0px 0px 0px 2px #f2f3f7;
    box-shadow: inset 0px 0px 0px 2px #f2f3f7;

    line-height: 1;

    display: flex;
    align-items: center;
    gap: 20px;

    padding: 10px 20px;
}

.quantity-decrease-btn, .quantity-increase-btn {
    cursor: pointer;
}

.advanced-add-to-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    background: #1c242d;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

.advanced-remove-from-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    background: #c81508;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

.related-products {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.related-products > div {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.related-product {
    width: calc(25% - 15px);

    display: flex;
    flex-direction: column;
    gap: 20px;
}
    
.related-product > a {
    width: 100%;
}

.related-product-image {
    width: 100%;

    position: relative;
}

.related-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;
}

.related-product-image > img {
    width: 100%;
    height: calc(((100vw - 120px) / 4) - 15px);
    
    border-radius: 5px;

    object-fit: cover;
}

.related-product-details {
    width: 100%;
    
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.related-product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.related-product-name {
    font-size: 18px;
    font-weight: bold;
}

.related-product-price {
    font-size: 14px;
}

.add-to-cart-btn {
    background: #1c242d;
}

.remove-from-cart-btn {
    background: var(--successColor);
}

.related-product-add-to-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

.related-product-remove-from-cart-btn {
    border-radius: 5px;

    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    cursor: pointer;
}

@media only screen and (max-width: 900px) {
    .main {
        padding: 0 20px;
    }
    
    .product-image > img {
        height: calc((100vw - 40px) / 2);
    }
    
    .related-product {
        width: calc(50% - 10px);
        
        flex-direction: column;
        align-items: center;
    }
    
    .related-product > span {
        text-align: center;
    }

    .related-product-image > span {
        font-size: 12px
    }
    
    .related-product-image > img {
        height: calc(((100vw - 40px) / 2) - 10px);
    }

    .related-product-name {
        font-size: 16px;
    }
}

@media only screen and (max-width: 700px) {
    .product {
        flex-direction: column;
    }
    
    .product-image > img {
        height: calc(100vw - 40px);
    }

    .add-to-cart-box {
        width: 100%;
    }

    .advanced-add-to-cart-btn {
        width: 100%;
    }

    .related-product-image > span {
        font-size: 14px
    }

    .related-product-name {
        font-size: 18px;
    }
}