﻿.head, .price {
    font-weight: 700;
}
.head {
    font-family: Verdana;
    word-wrap: break-word;
    margin-right: 130px;
}

.metadata {
    padding-top: 7px;
}

.details_prod {
    position: relative;
    min-width: 700px;
}

.storage {
    position: absolute;
    right: 88px;
    top: 4px;
    list-style: none;
    font-size: .8em;
}

.price .ltx, .price .rtx, .price .up, .productimg {
    position: relative;
}

.storage li {
    text-align: right;
}

    .storage li name {
        margin-right: 5px;
    }

.newitem .ingrid {
    margin-left: 20px;
    line-height: 22px;
}

.newitem .text {
    margin-top: 8px;
}

.ingrid::before {
    content: "• ";
}

.productitem {
    margin: 0 auto;
    width: 300px;
    text-align: center;
    display: block;
    padding: 0;
}

.productimg {
    margin: 5px;
    padding: 5px;
}

.price .up {
    font-size: 1.4em;
    left: 60px;
}

.price .ltx {
    right: 95px;
    top: 10px;
}

.price .rtx {
    top: -15px;
    left: 25px;
    height: 20px;
}

.down {
    font-size: 10px;
}

.price.down {
    font-size: 1em;
}

.price .link {
    padding: 5px 0 0;
}

.details_prod {
    width: 100%;
}

small {
    font-size: 9px;
}

.programLinkList {
    list-style: circle;
    line-height: 20px;
}

.diseaseLinkList {
    margin: 0;
    line-height: 25px;
}

.productions.small {
    padding: 5px;
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    width: 290px;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

    .productions.small li {
        width: 130px;
        height: auto;
        margin: 3px;
    }

div.left_link {
    background-color: #eee;
}

div.item {
    padding: 3px;
}

    div.item:hover {
        background-color: #efefef;
    }

.ya-share2 {
    right: 0;
    top: -32px;
    position: absolute;

}

/*новые стили*/

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

  

.product-visual {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0 0;
}

.thumbnail-vertical {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.4rem;
    scrollbar-width: thin;
}

    .thumbnail-vertical::-webkit-scrollbar {
        width: 4px;
    }

    .thumbnail-vertical::-webkit-scrollbar-track {
        background: #eef2f6;
        border-radius: 4px;
    }

    .thumbnail-vertical::-webkit-scrollbar-thumb {
        background: #b0c4d9;
        border-radius: 4px;
    }

.thumbnail-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
}

    .thumbnail-item:hover {
        transform: scale(1.02);
    }

    .thumbnail-item.active {
        border-color: #ce0000;
    }

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.main-image-container {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s;
    background: #f8fafd;
}

.image-badge {
    position: absolute;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
    z-index: 2;
    font-weight: 600;
}

.badge-new {
    top: 10px;
    left: 10px;
    background: #ce0000;
}

.badge-photo-count {
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
}


@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-vertical {
        width: 70px;
    }

    .product-visual {
        padding: 1rem;
    }

    .product-info {
        padding: 1rem;
    }
}

/*новые стили*/