/*
 * Карточка товара — редизайн (view/shopProductNew.php).
 * Все классы с префиксом pc-, старые стили (#good …) на них не действуют.
 * Макет: 1440 (основной), 768, 320. Брейкпоинты: ≥1024 — две колонки, 768–1023 — планшет, <768 — телефон.
 */

.pc {
    --pc-card: #fff;
    --pc-text: #1a1a18;
    --pc-muted: #999;
    --pc-gray: #666;
    --pc-line: #e5e5e5;
    --pc-border: #ddd;
    --pc-yellow: #ffc84f;
    --pc-yellow-hover: #ffbb29;
    --pc-blue: #009bd5;
    --pc-stub: #f08c00;
    background: var(--pc-bg);
    color: var(--pc-text);
    font-family: OpenSansRegular, Arial, sans-serif;
}
.pc *,
.pc *::before,
.pc *::after {
    box-sizing: border-box;
}
.pc__inner {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 30px 16px;
}

/* ---------- Иконки (SVG-маски, цвет = currentColor) ---------- */
.pc-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--pc-i) center / contain no-repeat;
    mask: var(--pc-i) center / contain no-repeat;
}
.pc-icon--share {
    --pc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11A2.99 2.99 0 0 0 21 5c0-1.66-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81A2.99 2.99 0 0 0 3 12a3 3 0 0 0 5.04 2.19l7.12 4.16c-.05.21-.08.43-.08.65A2.92 2.92 0 1 0 18 16.08zM18 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM6 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm12 7.02a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}
.pc-icon--cart {
    --pc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0 0 20.01 4H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
}
.pc-icon--question {
    --pc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-14a4 4 0 0 0-4 4h2a2 2 0 1 1 4 0c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4z'/%3E%3C/svg%3E");
}
.pc-icon--delivery {
    --pc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8h-3V4H3a2 2 0 0 0-2 2v11h2a3 3 0 0 0 6 0h6a3 3 0 0 0 6 0h2v-5l-3-4zm-.5 1.5 1.96 2.5H17V9.5h2.5zM6 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm2.22-3a2.98 2.98 0 0 0-4.44 0H3V6h12v9H8.22zM18 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E");
}
.pc-icon--payment {
    --pc-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7.28V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2.28A2 2 0 0 0 22 15V9a2 2 0 0 0-1-1.72zM20 9v6h-7V9h7zM5 19V5h14v2h-6a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h6v2H5zm11-5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E");
}

/* ---------- Кнопки, списки, поля ---------- */
.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 0;
    font: 11px/1 OpenSansBold, Arial, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.pc-btn .pc-icon {
    width: 16px;
    height: 16px;
}
.pc-btn--primary {
    background: var(--pc-yellow);
    color: var(--pc-text);
}
.pc-btn--primary:hover {
    background: var(--pc-yellow-hover);
}
.pc-btn--dark {
    background: var(--pc-text);
    color: #fff;
}
.pc-btn--dark:hover {
    background: #333;
}
.pc-btn--outline {
    border-color: var(--pc-border);
    background: #fff;
    color: var(--pc-text);
}
.pc-btn--outline:hover {
    border-color: var(--pc-text);
}

.pc-list,
.pc-short ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-list li,
.pc-short li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
    font-size: inherit;
    line-height: inherit;
}
.pc-list li::before,
.pc-short li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.pc-select {
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--pc-border);
    border-radius: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z' fill='%231a1a18'/%3E%3C/svg%3E") right 8px center / 18px no-repeat;
    color: var(--pc-text);
    font: 11px/1 OpenSansRegular, Arial, sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.pc-select:disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* ---------- Заглушки (есть в макете, нет в админке) ---------- */
.pc-stub {
    position: relative;
    outline: 1px dashed var(--pc-stub);
    outline-offset: 4px;
}
.pc-stub__badge {
    position: absolute;
    z-index: 2;
    top: -13px;
    right: -4px;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--pc-stub);
    color: #fff;
    font: 9px/1 OpenSansBold, Arial, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- Поделиться ---------- */
.pc-share {
    position: relative;
}
.pc-share__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pc-gray);
    font: 13px/1.4 OpenSansRegular, Arial, sans-serif;
    cursor: pointer;
}
.pc-share__toggle:hover {
    color: var(--pc-text);
}
.pc-share__toggle .pc-icon {
    color: var(--pc-muted);
}
.pc-share__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 190px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.pc-share.is-open .pc-share__menu {
    display: block;
}
.pc-share__menu li {
    margin: 0;
    padding: 0;
}
.pc-share__menu a {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}
.pc-share__menu a:hover {
    background: var(--pc-bg);
}

/* ---------- Галерея ---------- */
.pc-gallery {
    grid-area: gallery;
    display: grid;
    grid-template-areas: "stage" "thumbs";
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 10px;
}
.pc-gallery__stage {
    grid-area: stage;
    height: 316px;
    overflow: hidden;
}
.pc-gallery__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pc-gallery__track::-webkit-scrollbar {
    display: none;
}
.pc-gallery__slide {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    height: 100%;
    scroll-snap-align: start;
    cursor: zoom-in;
}
.pc-gallery__slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pc-gallery__slide--video {
    background: var(--pc-text);
    cursor: default;
}
.pc-gallery__slide--video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.pc-gallery__slide--empty {
    background: var(--pc-bg);
    cursor: default;
}
.pc-gallery__play {
    position: relative;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #00a2de;
    cursor: pointer;
}
.pc-gallery__play::after,
.pc-gallery__thumb--video::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    border-width: 9px 0 9px 15px;
    transform: translate(-35%, -50%);
}

.pc-gallery__thumbs {
    grid-area: thumbs;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 4px;
}
.pc-gallery__strip {
    display: flex;
    gap: 8px;
    overflow: hidden;
    scroll-behavior: smooth;
}
.pc-gallery__thumb {
    position: relative;
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    height: 62px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: #fff;
    cursor: pointer;
}
.pc-gallery__thumb.is-active {
    border-bottom-color: var(--pc-yellow);
}
.pc-gallery__thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pc-gallery__thumb--video {
    background: #333;
}
.pc-gallery__thumb--video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.pc-gallery__thumb--video::after {
    border-width: 7px 0 7px 12px;
}
.pc-gallery__arrow {
    position: relative;
    width: 20px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.pc-gallery__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--pc-text);
    border-left: 2px solid var(--pc-text);
    transform: translate(-30%, -50%) rotate(-45deg);
}
.pc-gallery__arrow--next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}
.pc-gallery__arrow:disabled::before {
    opacity: 0.25;
}
.pc-gallery__dots {
    display: none;
}

/* ---------- Заголовок, краткое описание ---------- */
.pc-head {
    grid-area: head;
    position: relative;
    min-width: 0;
}
.pc-head__brand {
    display: inline-block;
    margin-bottom: 12px;
}
.pc-head__brand img {
    display: block;
    width: auto;
    max-width: 160px;
    height: 30px;
    object-fit: contain;
    object-position: left center;
}
.pc-head__share {
    position: absolute;
    top: 0;
    right: 0;
}
.pc-head__title {
    margin: 0;
    padding-right: 130px;
    font: 24px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-head__brand + .pc-head__share + .pc-head__title {
    padding-right: 0;
}
.pc-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 8px 0 0;
    color: var(--pc-muted);
    font-size: 11px;
    line-height: 1.4;
}

.pc-short {
    grid-area: short;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.4;
}
.pc-short p {
    margin: 0 0 8px;
    font-size: inherit;
    line-height: inherit;
}
.pc-short > :last-child {
    margin-bottom: 0;
}

/* ---------- Доставка / оплата ---------- */
.pc-delivery {
    grid-area: delivery;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 20px;
    background: var(--pc-card);
    font-size: 14px;
    line-height: 1.4;
}
.pc-delivery p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
.pc-delivery__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--pc-blue);
    font: 14px/1.4 OpenSansBold, Arial, sans-serif;
}
.pc-delivery__title:hover {
    text-decoration: underline;
}

/* ---------- Покупка ---------- */
.pc-variants {
    display: grid;
    gap: 12px;
}
.pc-buy__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pc-variants + .pc-buy__price {
    margin-top: 32px;
}
.pc-buy__old {
    color: var(--pc-muted);
    font-size: 13px;
}
.pc-buy__value {
    font: 22px/1.2 OpenSansBold, Arial, sans-serif;
    white-space: nowrap;
}
.pc-buy__currency {
    font-size: 16px;
}
.pc-buy__value--request {
    font-size: 16px;
    white-space: normal;
}
.pc-buy__availability {
    color: var(--pc-blue);
    font-size: 13px;
    line-height: 1.4;
}
.pc-buy__buttons {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

/* ---------- Задать вопрос ---------- */
.pc-ask__title {
    margin: 0;
    font: 14px/1.4 OpenSansBold, Arial, sans-serif;
}
.pc-ask__text {
    margin: 10px 0 24px;
    color: var(--pc-muted);
    font-size: 10px;
    line-height: 1.5;
}
.pc-ask .pc-btn {
    width: 100%;
}

.pc-actions {
    grid-area: actions;
    display: none;
}
.pc-actions__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pc-gray);
    font: 14px/1.4 OpenSansRegular, Arial, sans-serif;
    cursor: pointer;
}
.pc-actions__item .pc-icon {
    width: 22px;
    height: 22px;
    color: var(--pc-muted);
}
.pc-actions .pc-share__menu {
    right: auto;
    left: 0;
}

/* =========================================================
   ≥1024: контент + сайдбар
   ========================================================= */
@media screen and (min-width: 1024px) {
    .pc-flow {
        --pc-sidebar-width: 224px;
        --pc-sidebar-space: calc(var(--pc-sidebar-width) + 16px);
        --pc-desktop-gutter: 30px;
        position: relative;
        max-width: 1344px;
        margin: 0 auto;
    }
    .pc-top {
        display: grid;
        grid-template-areas: "main" "delivery";
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-right: var(--pc-sidebar-space);
    }
    .pc-sidebar {
        position: absolute;
        inset: 0 var(--pc-desktop-gutter) 0 auto;
        width: var(--pc-sidebar-width);
    }
    .pc-sidebar__inner {
        position: sticky;
        top: 0;
        display: grid;
        gap: 10px;
        max-height: 100vh;
        overflow-y: auto;
    }
    .pc-top__bg {
        display: none;
    }
    .pc-main {
        grid-area: main;
        display: grid;
        grid-template-areas:
            "gallery head"
            "gallery short";
        grid-template-columns: 316px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-content: start;
        column-gap: 20px;
        padding: 20px;
        background: var(--pc-card);
    }
    .pc-buy,
    .pc-ask {
        padding: 20px;
        background: var(--pc-card);
    }
    .pc-buy__buttons .pc-btn {
        width: 100%;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1279.98px) {
    .pc-main {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .pc-gallery__stage {
        height: 260px;
    }
}

/* =========================================================
   <1024: одна карточка, блоки в потоке (планшет, телефон)
   ========================================================= */
@media screen and (max-width: 1023.98px) {
    .pc__inner {
        padding: 0 24px 16px;
    }
    .pc-top {
        display: grid;
        grid-template-areas:
            ". . ."
            ". head ."
            ". gallery ."
            ". short ."
            ". buy ."
            ". actions ."
            ". delivery ."
            ". . .";
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        grid-template-rows: 24px repeat(6, auto) 24px;
    }
    .pc-top__bg {
        grid-area: 1 / 1 / -1 / -1;
        background: var(--pc-card);
    }
    .pc-main,
    .pc-sidebar,
    .pc-sidebar__inner {
        display: contents;
    }
    .pc-ask,
    .pc-head__share {
        display: none;
    }

    .pc-head__brand {
        margin-bottom: 16px;
    }
    .pc-head__brand img {
        height: 40px;
    }
    .pc-head__title {
        padding-right: 0;
        font-size: 28px;
    }
    .pc-head__meta {
        margin-top: 12px;
        font-size: 12px;
    }

    .pc-gallery {
        grid-template-areas: "stage thumbs";
        grid-template-columns: minmax(0, 1fr) 78px;
        column-gap: 12px;
        margin-top: 24px;
    }
    .pc-gallery[data-single] {
        grid-template-columns: minmax(0, 1fr);
    }
    .pc-gallery__stage {
        height: 390px;
    }
    .pc-gallery__thumbs {
        grid-template-columns: 1fr;
        grid-template-rows: 24px minmax(0, 1fr) 24px;
        height: 390px;
    }
    .pc-gallery__strip {
        flex-direction: column;
        height: 100%;
    }
    .pc-gallery__thumb {
        flex: 0 0 78px;
        width: 78px;
        height: 78px;
        border-bottom: 0;
        border-left: 2px solid transparent;
    }
    .pc-gallery__thumb.is-active {
        border-left-color: var(--pc-yellow);
    }
    .pc-gallery__arrow {
        justify-self: center;
        width: 32px;
        height: 24px;
    }
    .pc-gallery__arrow::before {
        transform: translate(-50%, -20%) rotate(45deg);
    }
    .pc-gallery__arrow--next::before {
        transform: translate(-50%, -80%) rotate(-135deg);
    }

    .pc-short {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.5;
    }

    .pc-buy {
        grid-area: buy;
        display: grid;
        grid-template-areas: "price buttons";
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 32px 16px;
        margin-top: 32px;
    }
    .pc-variants {
        grid-area: variants;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .pc-buy .pc-select {
        height: 42px;
        font-size: 12px;
    }
    .pc-buy__price {
        grid-area: price;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        column-gap: 24px;
    }
    .pc-variants + .pc-buy__price {
        margin-top: 0;
    }
    .pc-buy__old {
        flex-basis: 100%;
    }
    .pc-buy__value {
        font-size: 28px;
    }
    .pc-buy__currency {
        font-size: 20px;
    }
    .pc-buy__value--request {
        font-size: 20px;
    }
    .pc-buy__availability {
        font-size: 16px;
    }
    .pc-buy__buttons {
        grid-area: buttons;
        display: flex;
        justify-content: flex-end;
        gap: 16px;
        margin-top: 0;
    }
    .pc-buy .pc-btn {
        height: 42px;
        padding: 0 20px;
        font-size: 12px;
    }

    .pc-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 32px;
        margin-top: 32px;
        padding: 16px 0;
        border-top: 1px solid var(--pc-line);
        border-bottom: 1px solid var(--pc-line);
    }

    .pc-delivery {
        margin-top: 20px;
        padding: 0;
        font-size: 16px;
        line-height: 1.5;
    }
    .pc-delivery__title {
        font-size: 16px;
    }
}

/* =========================================================
   <768: телефон
   ========================================================= */
@media screen and (max-width: 767.98px) {
    .pc__inner {
        padding: 0 0 16px;
    }
    .pc-top {
        grid-template-columns: 16px minmax(0, 1fr) 16px;
        grid-template-rows: 16px repeat(6, auto) 24px;
    }

    .pc-head__brand img {
        height: 32px;
    }
    .pc-head__title {
        font-size: 20px;
    }
    .pc-head__meta {
        flex-direction: column;
        gap: 4px;
    }

    .pc-gallery,
    .pc-gallery[data-single] {
        grid-template-areas: "stage" "dots";
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }
    .pc-gallery__stage {
        height: 280px;
    }
    .pc-gallery__thumbs {
        display: none;
    }
    .pc-gallery__dots {
        grid-area: dots;
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    .pc-gallery__dot {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background: #d0d0d0;
        transition: width 0.2s, background-color 0.2s;
    }
    .pc-gallery__dot.is-active {
        width: 40px;
        background: #00a2de;
    }

    .pc-short {
        font-size: 13px;
        line-height: 1.4;
    }

    .pc-buy {
        grid-template-areas:
            "price"
            "buttons";
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .pc-variants {
        grid-template-columns: 1fr;
    }
    .pc-buy__price {
        justify-content: space-between;
    }
    .pc-buy__buttons {
        flex-direction: column;
    }
    .pc-buy .pc-btn {
        width: 100%;
    }

    .pc-actions {
        gap: 12px 24px;
    }
    .pc-actions__item {
        font-size: 13px;
    }
    .pc-actions__item .pc-icon {
        width: 20px;
        height: 20px;
    }

    .pc-delivery {
        grid-template-columns: 1fr;
        gap: 16px;
        font-size: 13px;
        line-height: 1.4;
    }
}

/* =========================================================
   Панель вкладок и разделы (описание, характеристики)
   ========================================================= */
/* #container обрезает переполнение через overflow: hidden — с ним position: sticky не работает */
#container:has(> .pc-flow) {
    --pc-bg: #efefef;
    background-color: var(--pc-bg);
    overflow: clip;
}
.pc-tabs-bar {
    position: sticky;
    z-index: 50;
    top: 0;
}
.pc-tabs {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0 20px;
    overflow-x: auto;
    list-style: none;
    background: var(--pc-card);
    scrollbar-width: none;
    transition: box-shadow 0.2s;
}
.pc-tabs::-webkit-scrollbar {
    display: none;
}
.pc-tabs-bar.is-stuck .pc-tabs {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.pc-tabs li {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-tabs__link {
    display: flex;
    align-items: center;
    height: 54px;
    border-bottom: 2px solid transparent;
    color: var(--pc-text);
    font: 14px/1.2 OpenSansSemiBold, OpenSansBold, Arial, sans-serif;
    white-space: nowrap;
}
.pc-tabs__link {
    transition: border-color 0.15s;
}
.pc-tabs__link:hover,
.pc-tabs__link:focus-visible,
.pc-tabs__link.is-active {
    border-bottom-color: var(--pc-yellow);
    outline: 0;
}

.pc-section {
    scroll-margin-top: 70px;
    padding: 20px 20px 32px;
    background: var(--pc-card);
}
.pc-section + .pc-section {
    margin-top: 16px;
}
.pc-section__title {
    margin: 0 0 24px;
    font: 20px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-anchor {
    display: block;
    scroll-margin-top: 70px;
}

/* Содержимое из визуального редактора админки */
.pc-content {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
}
.pc-content > :first-child {
    margin-top: 0;
}
.pc-content > :last-child {
    margin-bottom: 0;
}
.pc-content p {
    margin: 0 0 1.4em;
    font-size: inherit;
    line-height: inherit;
}
.pc-content h1,
.pc-content h2 {
    margin: 40px 0 20px;
    font: 18px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-content h3,
.pc-content h4,
.pc-content h5,
.pc-content h6 {
    margin: 40px 0 20px;
    font: 14px/1.4 OpenSansBold, Arial, sans-serif;
}
.pc-content strong,
.pc-content b {
    font-family: OpenSansBold, Arial, sans-serif;
    font-weight: normal;
}
.pc-content a {
    color: var(--pc-blue);
}
.pc-content a:hover {
    text-decoration: underline;
}
/* В редакторе часто стоит выравнивание по ширине и шрифты из Word — приводим к единому виду */
.pc-content [style*="justify"] {
    text-align: left !important;
}
.pc-content [style*="font-family"] {
    font-family: inherit !important;
}
.pc-content [style*="font-size"] {
    font-size: inherit !important;
}
.pc-content ul,
.pc-content ol {
    margin: 0 0 1.4em;
    padding: 0;
}
.pc-content ul li {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
    font-size: inherit;
    line-height: inherit;
}
.pc-content ul li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.pc-content ol {
    padding-left: 20px;
}
.pc-content ol li {
    display: list-item;
    margin: 0;
    padding: 0;
    list-style: decimal;
    font-size: inherit;
    line-height: inherit;
}
.pc-content img {
    max-width: 100%;
    height: auto;
}
.pc-content iframe {
    display: block;
    max-width: 100%;
    margin: 0 0 1.4em;
    border: 0;
}

/* Таблицы — оформление как «Характеристики» в макете: без рамок, названия серым */
.pc-table {
    margin: 0 0 1.4em;
    overflow-x: auto;
}
.pc-table table {
    width: 100% !important;
    margin: 0;
    border: 0;
    border-collapse: collapse;
}
.pc-table td,
.pc-table th {
    padding: 7px 24px 7px 0;
    border: 0;
    font-size: inherit;
    line-height: 1.4;
    text-align: left;
    vertical-align: top;
}
.pc-table td:last-child,
.pc-table th:last-child {
    padding-right: 0;
}
.pc-table td:first-child {
    color: var(--pc-muted);
}
.pc-table td p {
    margin: 0;
}
/* Подзаголовки: th, строки-группы (одна ячейка на всю ширину), шапка таблиц сравнения (3+ колонки) */
.pc-table th,
.pc-table tr:first-child:has(> td:nth-child(3)) > td,
.pc-table td:only-child {
    color: var(--pc-text);
    font-family: OpenSansBold, Arial, sans-serif;
}
.pc-table tr:not(:first-child) > td:only-child {
    padding-top: 28px;
}

@media screen and (min-width: 1024px) {
    .pc-flow .pc__inner {
        padding-inline: var(--pc-desktop-gutter);
    }
    .pc-tabs-bar {
        margin-inline: var(--pc-desktop-gutter) calc(var(--pc-desktop-gutter) + var(--pc-sidebar-space));
    }
    .pc-flow .pc-tabs-bar .pc__inner {
        padding-inline: 0;
    }
    .pc--sections .pc-body {
        margin-right: var(--pc-sidebar-space);
    }
}
@media screen and (max-width: 1023.98px) {
    .pc-tabs {
        padding: 0 24px;
    }
    .pc-section {
        padding: 24px 24px 32px;
    }
    .pc-section__title {
        font-size: 24px;
    }
    .pc-content {
        font-size: 16px;
        line-height: 1.5;
    }
    .pc-content h1,
    .pc-content h2 {
        font-size: 20px;
    }
    .pc-content h3,
    .pc-content h4,
    .pc-content h5,
    .pc-content h6 {
        font-size: 16px;
    }
}
@media screen and (max-width: 767.98px) {
    .pc-tabs {
        padding: 0 16px;
    }
    .pc-section {
        padding: 24px 16px 32px;
    }
    .pc-section__title {
        font-size: 20px;
    }
    .pc-content {
        font-size: 13px;
    }
    .pc-content h3,
    .pc-content h4,
    .pc-content h5,
    .pc-content h6 {
        font-size: 14px;
    }
    .pc-content iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}
.pc-tabs-bar .pc__inner {
    padding-bottom: 0;
}
.pc-tabs-bar + .pc--sections .pc__inner {
    padding-top: 16px;
}

/* Таблицы из редактора: выравнивание, ширины и жирный шрифт в ячейках задаются атрибутами/инлайн-стилями — нормализуем */
.pc-table td,
.pc-table th {
    width: auto !important;
    height: auto !important;
    vertical-align: top !important;
}
.pc-table td,
.pc-table th,
.pc-table td *,
.pc-table th * {
    text-align: left !important;
}
.pc-table td:first-child {
    width: 30% !important;
}
.pc-table td strong,
.pc-table td b {
    font-family: inherit;
}
@media screen and (max-width: 767.98px) {
    /* Таблица «название — значение» (2 ячейки в строке): на телефоне значение под названием */
    .pc-table tr:has(> td:nth-child(2):last-child) {
        display: block;
        padding: 6px 0;
    }
    .pc-table tr:has(> td:nth-child(2):last-child) > td {
        display: block;
        width: auto !important;
        padding: 0;
    }
}

/* =========================================================
   Пустые разделы (режим показа макета), прочие блоки
   ========================================================= */
.pc-tabs__link--empty {
    color: #b5b5b5;
}
.pc-empty {
    margin-top: 8px;
    padding: 16px 20px;
}
.pc-empty__what {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
}
.pc-empty__hint {
    margin: 0;
    color: var(--pc-muted);
    font-size: 13px;
    line-height: 1.4;
}
.pc--sections .pc__inner {
    padding-bottom: 40px;
}
/* Разметка старых блоков (текст, галерея, спецификация): заголовок блока — как заголовок раздела, мобильные «Читать дальше» не нужны */
.pc-content .good-block > .header {
    display: block;
    margin: 0 0 24px;
    font: 20px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-content .good-block > .header:empty {
    display: none;
}
.pc-content .truncate,
.pc-content .show-more-mob {
    display: none;
}

/* =========================================================
   Опции
   ========================================================= */
.pc-option {
    display: grid;
    grid-template-areas:
        "img title"
        "img meta"
        "img text"
        "img buy";
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--pc-line);
}
.pc-option:first-child {
    padding-top: 0;
    border-top: 0;
}
.pc-option:last-child {
    padding-bottom: 0;
}
.pc-option__body {
    display: contents;
}
.pc-option__img {
    grid-area: img;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}
.pc-option__img img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pc-option__title {
    grid-area: title;
    margin: 0;
    font: 16px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-option__title a {
    color: var(--pc-text);
}
.pc-option__title a:hover {
    color: var(--pc-blue);
}
.pc-option__meta {
    grid-area: meta;
}
.pc-option__text {
    grid-area: text;
    margin-top: 16px;
}
.pc-option__more {
    display: none;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pc-blue);
    font: 13px/1.4 OpenSansRegular, Arial, sans-serif;
    cursor: pointer;
}
.pc-option__buy {
    grid-area: buy;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 24px;
}
.pc-option__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin: 0;
}

/* =========================================================
   Документы, доп. материалы, «Вас могут заинтересовать»
   ========================================================= */
.pc-docs {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-docs li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-doc {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--pc-text);
    font-size: 14px;
    line-height: 1.4;
}
.pc-doc:hover .pc-doc__name {
    color: var(--pc-blue);
}
.pc-doc__ext {
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: #f0f0f0;
    color: var(--pc-muted);
    font: 9px/1 OpenSansRegular, Arial, sans-serif;
    text-transform: uppercase;
}
.pc-doc__name {
    overflow-wrap: anywhere;
}
.pc-doc__size {
    color: var(--pc-muted);
    font-size: 12px;
    white-space: nowrap;
}
.pc-materials {
    font-size: 14px;
    line-height: 1.4;
}
.pc-materials li + li {
    margin-top: 6px;
}
.pc-materials a {
    color: var(--pc-text);
}
.pc-materials a:hover {
    color: var(--pc-blue);
}
.pc-interest__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-interest__list li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pc-interest__list a {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--pc-border);
    color: var(--pc-text);
    font-size: 13px;
    line-height: 1.4;
}
.pc-interest__list a:hover {
    border-color: var(--pc-text);
}

/* =========================================================
   Комментарии
   ========================================================= */
.pc-comments {
    display: none;
}
.pc-comments__error {
    margin-bottom: 12px;
    color: #d0021b;
    font-size: 13px;
}
.pc-comments__error:empty {
    display: none;
}
.pc-comments__form {
    display: flex;
    gap: 12px;
    margin: 0;
}
.pc-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--pc-border);
    border-radius: 0;
    color: var(--pc-text);
    font: 13px/1 OpenSansRegular, Arial, sans-serif;
}
.pc-input:focus {
    border-color: var(--pc-text);
}
.pc-comments__list {
    margin-top: 24px;
}
.pc-comment {
    padding: 16px 0;
    border-top: 1px solid var(--pc-line);
}
.pc-comment__head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.4;
}
.pc-comment__author {
    font-family: OpenSansBold, Arial, sans-serif;
}
.pc-comment__date {
    color: var(--pc-muted);
}
.pc-comment__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.pc-comments__list:not(.open) .pc-comment:nth-of-type(n + 4),
.pc-comments__list:not(.open) .hide-comments,
.pc-comments__list.open .show-all-comments {
    display: none;
}
.pc-comments__toggle {
    margin: 8px 0 0;
    font-size: 13px;
}
.pc-comments__toggle a {
    color: var(--pc-blue);
    cursor: pointer;
}

/* =========================================================
   Карусели товаров
   ========================================================= */
.pc-carousels {
    padding: 32px 0 8px;
    background: #fff;
    color: #1a1a18;
    font-family: OpenSansRegular, Arial, sans-serif;
}
.pc-carousels * {
    box-sizing: border-box;
}
.pc-carousel {
    padding: 0 28px 32px;
}
.pc-carousel + .pc-carousel {
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}
.pc-carousel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.pc-carousel__title {
    margin: 0;
    font: 13px/1.3 OpenSansBold, Arial, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pc-carousel__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pc-carousel__arrow {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.pc-carousel__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #1a1a18;
    border-left: 2px solid #1a1a18;
    transform: translate(-30%, -50%) rotate(-45deg);
}
.pc-carousel__arrow--next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}
.pc-carousel__arrow.disabled::before {
    opacity: 0.25;
}
.pc-carousel__dots {
    display: flex;
    gap: 8px;
}
.pc-carousel__dots.disabled {
    display: none;
}
.pc-carousel__dots .owl-dot {
    width: 6px;
    height: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
}
.pc-carousel__dots .owl-dot span {
    display: none;
}
.pc-carousel__dots .owl-dot.active {
    background: #1a1a18;
}
.pc-carousel .owl-stage {
    display: flex;
}
.pc-carousel .owl-item {
    display: flex;
}
.pc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 12px 16px 16px;
    border-left: 1px solid #e5e5e5;
    text-align: center;
}
.pc-carousel .owl-item:last-child .pc-card {
    border-right: 1px solid #e5e5e5;
}
.pc-card__availability {
    align-self: flex-end;
    margin-bottom: 8px;
    color: #009bd5;
    font: 8px/1 OpenSansBold, Arial, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.pc-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 110px;
}
.pc-carousel .pc-card__img img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pc-card__name {
    display: -webkit-box;
    min-height: 4.2em;
    margin-top: 16px;
    overflow: hidden;
    color: #1a1a18;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.pc-card__name:hover {
    color: #009bd5;
}
.pc-card__price {
    width: 100%;
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font: 14px/1.3 OpenSansBold, Arial, sans-serif;
}
.pc-card__name + .pc-card__price {
    margin-top: 16px;
}

/* ---------- Раскладка новых разделов по ширинам ---------- */
@media screen and (max-width: 1023.98px) {
    .pc-banner {
        display: none;
    }
    .pc-option__title {
        font-size: 18px;
    }
    .pc-option__text .pc-content,
    .pc-materials,
    .pc-doc {
        font-size: 16px;
        line-height: 1.5;
    }
    .pc-option .pc-btn,
    .pc-comments .pc-btn {
        height: 42px;
        padding: 0 20px;
        font-size: 12px;
    }
    .pc-input {
        height: 42px;
        font-size: 14px;
    }
    .pc-carousel {
        padding-right: 24px;
        padding-left: 24px;
    }
}
@media screen and (max-width: 767.98px) {
    .pc-option {
        grid-template-areas:
            "title"
            "meta"
            "img"
            "text"
            "buy";
        grid-template-columns: minmax(0, 1fr);
    }
    .pc-option__img {
        height: 200px;
        margin-top: 16px;
    }
    .pc-option__text .pc-content {
        max-height: 7.5em;
        overflow: hidden;
        font-size: 13px;
    }
    .pc-option__text.is-open .pc-content {
        max-height: none;
    }
    .pc-option__text.has-more .pc-option__more {
        display: inline-block;
    }
    .pc-option__price {
        flex-direction: column;
        gap: 2px;
    }
    .pc-materials,
    .pc-doc {
        font-size: 13px;
    }
    .pc-comments__form {
        flex-direction: column;
    }
    .pc-carousels {
        padding-top: 24px;
    }
    .pc-carousel {
        padding-right: 16px;
        padding-left: 16px;
    }
    .pc-carousel__title {
        font-size: 12px;
    }
}
