/* Стили магазина Вектор-06Ц. */

.vector-shop {
    max-width: 1320px;
    margin: 24px auto 48px;
    padding: 0 20px;
}

.vector-shop__lead {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 24px;
}

.vector-shop__layout {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    gap: 24px;
}

.vector-shop__sidebar {
    align-self: start;
    padding: 16px;
    background: #ffdb9d;
    border: 1px solid #ed9500;
    border-radius: 14px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__sidebar details {
    margin: 10px 0;
}

.vector-shop__sidebar summary {
    cursor: pointer;
    font-weight: 600;
}

.vector-shop__sidebar a {
    display: block;
    padding: 7px 0;
    color: #402a12;
    text-decoration: none;
    color: #5d3900;
    font-weight: bold;
}

.vector-shop__sidebar details details {
    padding-left: 12px;
}

.vector-shop__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.vector-shop__filters input[type=search] {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ed9500;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__filters button {
    padding: 9px 16px;
    border: 0;
    background: #ef9700;
    border-radius: 10px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__filters fieldset {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border: 0;
    margin: 0;
    padding: 0;
}

.vector-shop__filters label {
    white-space: nowrap;
}

.vector-shop__item {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff9ef;
    border: 1px solid #ed9500;
    border-radius: 16px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__item img {
    width: 100%;
    height: 170px;
    object-fit: contain;
}

.vector-shop__item h2 {
    font-size: 16px;
    margin: 0 0 12px;
}

.vector-shop__item a {
    color: #5d3900;
    text-decoration: none;

}

.vector-shop__price {
    font-size: 25px;
    color: #24619a;
    font-weight: 700;
}

.vector-shop__status {
    display: inline-block;
    padding: 5px 12px;
    margin: 10px 0;
    border-radius: 8px;
    background: #efe5d2;
}

.vector-shop__status.is-in_stock {
    background: #ddf2d7;
    color: #245822;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__detail {
    padding: 24px;
    background: #fff9ef;
    border: 1px solid #ed9500;
    border-radius: 16px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
}

.vector-shop__gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.vector-shop__gallery>a {
    flex: 0 0 130px;
}

.vector-shop__gallery>a>img {
    width: 130px;
    height: 100px;
    object-fit: contain;
}

.vector-shop__contacts img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 12px;
}

.vector-shop__contacts p {
    overflow-wrap: anywhere;
}

.vector-shop__pages {
    display: flex;
    padding: 9px 14px;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.vector-shop__pages a,.vector-shop__pages strong {
    padding: 9px 14px;
    border-radius: 50%;
    background: #fff;
    text-decoration: none;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__pages strong {
    background: #ef9700;
}

.vector-shop video {
    width: 100%;
    max-height: 460px;
    background: #111;
}

.vector-shop__detail h3 {
    font-size: 21px;
    margin: 24px 0 12px;
}

.vector-shop__description {
    overflow-wrap: anywhere;
}

.vector-shop__description img {
    max-width: 100%;
    height: auto;
}

@media(max-width:767.98px) {
    .vector-shop {
        padding: 0 12px;
    }
    .vector-shop__layout {
        grid-template-columns: minmax(0,1fr);
    }
    .vector-shop__sidebar {
        max-height: 320px;
        overflow: auto;
    }
    .vector-shop__item {
        grid-template-columns: 110px minmax(0,1fr);
        padding: 14px;
        gap: 12px;
    }
    .vector-shop__item img {
        height: 120px;
    }
    .vector-shop__item h2 {
        font-size: 19px;
    }
    .vector-shop__price {
        font-size: 21px;
    }
    .vector-shop__hero {
        grid-template-columns: minmax(0,1fr);
    }
    .vector-shop__detail {
        padding: 16px;
    }
}

.vector-shop__layout > main,.vector-shop__hero > div {
    min-width: 0;
}

.vector-shop__hero h2,.vector-shop__item h2 {
    overflow-wrap: anywhere;
}

/* Размер превью не должен ограничивать картинку в модальном окне. */
.vector-shop__hero > div > a > img {
    width: 100%;
    height: 280px;
    object-fit: contain;
}

.vector-shop .modal-body > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

.vector-shop__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 11px 18px;
    border: 1px solid #d88700;
    border-radius: 10px;
    background: #ef9700;
    color: #402a12;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

.vector-shop__back:hover {
    background: #ffb52b;
    color: #402a12;
    text-decoration: none;
}

.vector-shop__back:focus-visible {
    outline: 3px solid #24619a;
    outline-offset: 3px;
}

.vector-shop__description ul {
    list-style: disc outside;
    padding-left: 1.5em;
}

.vector-shop__description ol {
    list-style: decimal outside;
    padding-left: 1.5em;
}

.vector-shop__description table {
    max-width: 100%;
    border-collapse: collapse;
}

.vector-shop__description {
    overflow-x: auto;
}

.vector-shop__filters legend {
    font-size: inherit;
    width: auto;
    margin: 0;
}
