/* your styles go here */
/* Example site test */

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    min-height: 230px;
}

.main-img {
    width: 100%;
    border-radius: 8px;
}

.thumb {
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.8;
}

.thumb:hover {
    opacity: 1;
}

html {
  scroll-behavior: smooth;
}

.product-page{
    margin:40px 0;
}

.product-main-image{
    width:100%;
    border:1px solid #ddd;
    padding:8px;
    background:#fff;
}

.product-main-image {
    max-width: 100%;
    height: auto;      /* сохраняет пропорции */
    width: auto;       /* НЕ заставляет растягиваться */
    max-height: 500px; /* ограничение по высоте */
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

.product-thumbs{
    display:flex;
    gap:10px;
    margin-top:15px;
    flex-wrap:wrap;
}

.product-thumb{
    width:80px;
    cursor:pointer;
    border:1px solid #ddd;
    padding:3px;
    transition:.2s;
}

.product-thumb:hover{
    border-color:#337ab7;
}

.product-title{
    margin-top:0;
}

.product-price{
    font-size:36px;
    font-weight:bold;
    color:#c62828;
    margin:25px 0;
}

.product-content{
    margin-top:40px;
}

@media (max-width:767px){

    .product-price{
        text-align:center;
        font-size:28px;
    }

    .product-title{
        text-align:center;
    }

    .product-thumbs{
        justify-content:center;
    }

    .product-main-image{
        max-width:320px;
        margin:0 auto;
        display:block;
    }
}

.footer-contact-img {
    background: #fff;
    padding: 10px;
    border-radius: 6px; /* необязательно */
}

.footer-contact-mail a {
    color: #fff;
    
}

.col-md-3 {
    outline: 1px solid red;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
}

.product-card .box-image-text {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .image img {
    width: 100%;
    height: auto;
    display: block;
}

/* mobile */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.box-image-text .image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-title {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
}