/* Sekcja: ecommerce_products_tiles - pełny CSS sekcji (zapis zagnieżdżony). */

.ecommerce-products-tiles {
    .one-product {
        padding: 15px;

        .one-product-inner {
            border-radius: 9px;
            transition: 0.3s;
            padding: 20px 75px;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .photo {
            margin-bottom: 30px;

            .product-video {
                width: 100%;
                height: 377px;
            }

            img {
                max-width: 100%;
                height: 340px;
                object-fit: contain;
                object-position: bottom center;
            }

            .image {
                display: flex;
                justify-content: center;
            }
        }

        .text {
            display: flex;
            flex-direction: column;
            flex-grow: 1;

            h3 {
                font-weight: 700;
                font-size: 2.1875rem;
                margin-top: 0;
                margin-bottom: 15px;
                font-family: 'Lato', sans-serif;
            }

            .product-date {
                margin-top: 30px;
                margin-bottom: 30px;
                display: flex;
                align-items: center;

                img {
                    width: 45px;
                    margin-right: 15px;
                }

                p {
                    margin-bottom: 0;
                }
            }

            .price {
                font-weight: 300;
                font-size: 1.25rem;
                margin-bottom: 30px;

                &.price_before {
                    color: var(--transparent-color2);
                    font-weight: 500;
                    font-size: 1.25rem;
                    margin-bottom: 0px;

                    strong {
                        color: #909191;
                        text-decoration: line-through;
                        font-weight: 500;
                        font-size: 1.125rem;
                    }
                }

                strong {
                    font-weight: 700;
                    color: var(--element1-color);
                    font-size: 1.375rem;
                }
            }
        }

        .arrow-icon {
            background-image: url('/img/arrow-icon.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            width: 35px;
            height: 35px;
            min-height: 35px;
            margin: 0 auto;
        }
    }
}

@media (max-width: 575.5px) {
    .ecommerce-products-tiles {
        .one-product {
            padding: 5px;

            .one-product-inner {
                padding: 15px 15px;

                .photo {
                    margin-top: 30px;

                    .product-video {
                        height: 49vw;
                    }

                    img {
                        height: auto;
                        max-height: 350px;
                    }
                }
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .ecommerce-products-tiles {
        .one-product {
            padding: 5px;

            .one-product-inner {
                padding: 15px 35px;

                .photo {
                    margin-top: 30px;

                    .product-video {
                        height: 49vw;
                    }

                    img {
                        height: 200px;
                    }
                }
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .ecommerce-products-tiles {
        .one-product {
            padding: 5px;

            .one-product-inner {
                padding: 15px 35px;

                .photo {
                    margin-top: 30px;

                    img {
                        height: 175px;
                    }
                }
            }
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .ecommerce-products-tiles {
        .one-product {
            padding: 5px;

            .one-product-inner {
                padding: 15px 35px;

                .photo {
                    .product-video {
                        height: 240px;
                    }

                    img {
                        height: 175px;
                    }
                }
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .ecommerce-products-tiles {
        .one-product {
            padding: 5px;

            .one-product-inner {
                padding: 20px 30px;

                .photo {
                    .product-video {
                        height: 295px;
                    }

                    img {
                        height: 255px;
                    }
                }
            }
        }
    }
}
