.product-page {
    padding-block: 24px 56px;
}

.product-breadcrumbs {
    margin-bottom: 18px;
    font-size: 13px;
}

.product-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.product-breadcrumbs li {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: var(--store-muted);
}

.product-breadcrumbs li + li::before {
    color: #a5a5a5;
    content: "—";
}

.product-breadcrumbs a {
    color: var(--store-dark);
    font-weight: 700;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    color: var(--store-red-action);
}

.product-breadcrumbs li:last-child {
    overflow-wrap: anywhere;
}

.product-title {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    color: var(--store-dark);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 0.80;
    overflow-wrap: anywhere;
}

.product-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
    padding-block: 18px 24px;
}

.product-brand {
    display: inline-flex;
    min-width: 120px;
    min-height: 52px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-small);
    background: var(--store-white);
}

.product-brand img {
    display: block;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.product-brand__caption {
    color: var(--store-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.product-brand strong {
    margin-top: 5px;
    color: var(--store-dark);
    font-size: 17px;
    line-height: 1;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 0;
}

.product-meta div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.product-meta dt {
    color: var(--store-muted);
    font-size: 13px;
}

.product-meta dd {
    margin: 0;
    color: var(--store-dark);
    font-size: 14px;
    font-weight: 750;
}

.product-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.product-gallery__stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    background: var(--store-white);
}

.product-gallery__open {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: var(--store-dark);
    background: transparent;
    cursor: pointer;
}

.product-gallery__main-image {
    position: absolute;
    inset: 22px;
    display: block;
    width: calc(100% - 44px);
    max-width: none;
    height: calc(100% - 44px);
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.product-gallery__main-image--placeholder {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}

.product-gallery__zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px 6px 34px;
    border: 1px solid rgba(33, 42, 49, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 18px rgba(33, 42, 49, 0.12);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    pointer-events: none;
}

.product-gallery__zoom-hint::before,
.product-gallery__zoom-hint::after {
    position: absolute;
    content: "";
}

.product-gallery__zoom-hint::before {
    left: 13px;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.product-gallery__zoom-hint::after {
    left: 24px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

.product-gallery__open:hover .product-gallery__zoom-hint {
    border-color: var(--store-yellow);
    background: var(--store-yellow);
}

.product-gallery__open:focus-visible {
    outline-offset: -4px;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    padding-block: 12px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-gallery__thumb {
    position: relative;
    display: block;
    width: 76px;
    min-width: 76px;
    height: 76px;
    min-height: 76px;
    flex: 0 0 76px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-small);
    background: var(--store-white);
    cursor: pointer;
}

.product-gallery__thumb img {
    position: absolute;
    inset: 3px;
    display: block;
    width: calc(100% - 6px);
    max-width: none;
    height: calc(100% - 6px);
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.product-gallery__thumb.is-active {
    border: 3px solid var(--store-yellow);
}

.purchase-card {
    position: sticky;
    z-index: 10;
    top: 20px;
    padding: 26px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    background: var(--store-white);
    box-shadow: var(--store-shadow);
}

.purchase-card__header,
.purchase-article,
.purchase-price {
    margin-bottom: 24px;
}

.purchase-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.purchase-brand-button {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: var(--store-radius-small);
    color: var(--store-dark);
    background: transparent;
    cursor: pointer;
}

.purchase-brand-button img {
    display: block;
    max-width: 100px;
    height: auto;
}

.purchase-stock {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--store-dark);
    font-size: 15px;
}

.stock-badge {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 5px 11px;
    border: 2px solid var(--store-yellow);
    border-radius: 999px;
    color: var(--store-dark);
    background: var(--store-yellow);
    font-size: 13px;
    font-weight: 800;
}

.stock-badge--outline {
    background: var(--store-white);
}

.purchase-price {
    padding: 0;
}

.purchase-price > span {
    display: block;
    margin-bottom: 0;
    color: var(--store-muted);
    font-size: 13px;
}

.purchase-price > strong {
    display: block;
    color: var(--store-dark);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 850;
    line-height: 1.1;
}

.purchase-offers {
    --purchase-offer-columns: minmax(132px, 1.4fr) minmax(55px, .65fr) minmax(70px, .8fr) minmax(78px, .85fr);
    container: purchase-offers / inline-size;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.purchase-offers legend {
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
    color: var(--store-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.purchase-offers__columns,
.purchase-offer {
    display: grid;
    grid-template-columns: var(--purchase-offer-columns);
    column-gap: 8px;
    align-items: center;
}

.purchase-offers__columns {
    padding: 0 12px 8px;
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.25;
}

.purchase-offers__columns > :first-child { padding-left: 26px; }
.purchase-offers__columns > :nth-child(2),
.purchase-offers__columns > :nth-child(3) { text-align: center; }
.purchase-offers__columns > :last-child { text-align: right; }

.purchase-offers__rows {
    display: flex;
    flex-direction: column;
    border-radius: 7px;
}

.purchase-offer {
    position: relative;
    min-width: 0;
    min-height: 62px;
    padding: 8px 12px;
    align-items: start;
    align-content: center;
    border: 1px solid var(--store-border);
    color: var(--store-dark);
    background: var(--store-white);
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.purchase-offer + .purchase-offer { margin-top: -1px; }
.purchase-offer[hidden] { display: none; }
.purchase-offer:first-child { border-top-left-radius: 7px; border-top-right-radius: 7px; }
.purchase-offer:last-child { border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; }
.purchase-offer:hover { background: #f8f9fa; }
.purchase-offer.is-selected {
    background: var(--store-yellow-light);
}
.purchase-offer.is-selected,
.purchase-offer:focus-within {
    z-index: 1;
    border-color: var(--store-yellow);
}

.purchase-offer__choice {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
}

.purchase-offer__choice input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
    accent-color: var(--store-red-action);
}

.purchase-offer__pricing { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.purchase-offer__price { font-size: 18px; font-weight: 800; white-space: normal; }
.purchase-delivery-note { margin: 12px 0 20px; color: var(--store-muted); font-size: 13px; line-height: 1.5; }
.purchase-offer__quantity { padding-top: 3px; text-align: center; font-weight: 650; }
.purchase-offer__term { display: flex; padding-top: 3px; align-items: center; flex-direction: column; gap: 4px; text-align: center; }
.purchase-offer__term--stock { color: #16813a; font-weight: 400; }
.purchase-offer__shipping { padding-top: 3px; text-align: right; font-size: 13px; }
.purchase-offer__shipping--yes { color: #16813a; }
.purchase-offer__mobile-label { display: none; }
.purchase-offer__badge {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    padding: 1px 5px;
    border-radius: 8px;
    color: #5c3000;
    background: #ffd08a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}
.purchase-unavailable { margin: 0 0 18px; color: var(--store-muted); font-size: 14px; }

@container purchase-offers (max-width: 440px) {
    .purchase-offers__columns { display: none; }
    .purchase-offer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px 10px;
    }
    .purchase-offer__choice { grid-column: 1; grid-row: 1; }
    .purchase-offer__term { grid-column: 2; grid-row: 1; align-items: flex-end; text-align: right; }
    .purchase-offer__quantity {
        grid-column: 1;
        grid-row: 2;
        padding-top: 0;
        padding-left: 26px;
        color: var(--store-muted);
        font-size: 12px;
        font-weight: 400;
        text-align: left;
    }
    .purchase-offer__shipping { grid-column: 2; grid-row: 2; padding-top: 0; font-size: 12px; }
    .purchase-offer__mobile-label { display: inline; }
    .purchase-offer--own .purchase-offer__shipping { display: none; }
}

.purchase-actions {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 22px;
}

.quantity-field > span,
.quantity-field > label {
    display: block;
    margin-bottom: 5px;
    color: var(--store-muted);
    font-size: 12px;
}

.quantity-field input {
    width: 100%;
    height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-small);
    color: var(--store-dark);
    background: var(--store-white);
    font-weight: 750;
    text-align: center;
}

.purchase-quantity { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; overflow: hidden; border: 1px solid var(--store-border); border-radius: var(--store-radius-small); }
.purchase-quantity button, .purchase-quantity input { box-sizing: border-box; width: 100%; min-width: 0; height: 46px; padding: 0; border: 0; border-radius: 0; color: var(--store-dark); background: var(--store-white); text-align: center; font: inherit; }
.purchase-quantity button { font-size: 21px; cursor: pointer; touch-action: manipulation; }
.purchase-quantity button:disabled { color: #aaa; cursor: default; }
.purchase-quantity input { border-inline: 1px solid var(--store-border); appearance: textfield; -moz-appearance: textfield; font-weight: 750; }
.purchase-quantity input::-webkit-inner-spin-button, .purchase-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.purchase-quantity button:focus-visible, .purchase-quantity input:focus-visible { outline: 2px solid var(--store-dark); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .purchase-quantity button:hover:not(:disabled) { background: var(--store-yellow); } }

.purchase-actions .store-button {
    width: 100%;
    padding-inline: 10px;
}

.purchase-note {
    margin: 14px 0 0;
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.45;
}

.product-information {
    margin-top: 40px;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    background: var(--store-white);
    box-shadow: var(--store-shadow);
}

.product-information__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--store-border);
    background: #f6f7f8;
}

.product-information__tabs--single {
    grid-template-columns: minmax(0, 1fr);
}

/* Вкладки блока информации, когда у товара есть теги. */
.product-information__tabs--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-information__tabs--with-tags {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-information__tabs--single .product-information__tab {
    border-right: 0;
}

.product-information__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 13px 14px 9px;
    border: 0;
    border-right: 1px solid var(--store-border);
    color: var(--store-dark);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.product-information__tab:last-child {
    border-right: 0;
}

.product-information__tab:hover {
    background: var(--store-yellow-light);
}

.product-information__tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--store-dark);
    outline-offset: -3px;
}

.product-information__section {
    padding: 26px;
    scroll-margin-top: 90px;
}

.product-information__section.product-information__section--description {
    padding: 0;
}

.product-information__section + .product-information__section {
    border-top: 1px solid var(--store-border);
}

.product-information__section h2:where(:not(.catalog-product-card__title)) {
    margin: 0 0 14px;
    color: var(--store-dark);
    font-size: 22px;
    line-height: 1.2;
}

.product-information__text {
    color: var(--store-dark);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.product-information__text h3 {
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--store-yellow);
    color: var(--store-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.product-information__text p,
.product-information__text ul,
.product-information__text ol {
    margin: 0 0 12px;
}

.product-information__text ul,
.product-information__text ol {
    padding-left: 24px;
}

.product-information__text a {
    color: var(--store-red-action);
}

/* Изображения внутри описания товара */
.product-information__text img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
}

/* Если редактор обернул изображение в абзац — центрируем и убираем лишние отступы */
.product-information__text p:has(> img:only-child) {
    margin: 12px 0;
    text-align: center;
}

.product-information__text p:has(> img:only-child) img {
    margin: 0 auto;
}

/* Пустые строки, которые визуальный редактор может оставить после изображения */
.product-information__text p:empty,
.product-information__text p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
}

.product-information__text > :first-child,
.product-information__description-block > :first-child {
    margin-top: 0;
}

.product-information__text > :last-child,
.product-information__description-block > :last-child {
    margin-bottom: 0;
}

.product-information__description-block
+ .product-information__description-block {
    margin-top: 12px;
}

.product-information__empty {
    margin: 0;
    color: var(--store-muted);
    font-size: 14px;
}

/* Теги товара внутри общего информационного блока. */
.product-tags__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-tags__list a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border: 1px solid var(--store-border);
    border-radius: 999px;
    color: var(--store-dark);
    background: #f6f7f8;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.product-tags__list a:hover {
    border-color: var(--store-yellow);
    background: var(--store-yellow-light);
}

.product-tags__list a:focus-visible {
    outline: 2px solid var(--store-dark);
    outline-offset: 2px;
}

.product-interchange-text {
    margin: 0;
    color: var(--store-dark);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.product-interchange-text__group {
    display: block;
}

body.product-lightbox-open,
body.product-brand-open {
    overflow: hidden;
}

.product-brand-dialog {
    width: min(680px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    color: var(--store-dark);
    background: var(--store-white);
    box-shadow: var(--store-shadow);
}

.product-brand-dialog[open] {
    display: flex;
    flex-direction: column;
}

.product-brand-dialog::backdrop {
    background: rgba(12, 15, 18, 0.65);
}

.product-brand-dialog__header {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
}

.product-brand-dialog__logo {
    width: auto;
    max-width: calc(100% - 112px);
    height: auto;
    max-height: 100px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-brand-dialog__heading {
    width: 100%;
    min-width: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.product-brand-dialog__heading .product-brand__caption {
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.product-brand-dialog__heading h2 {
    display: inline;
    margin: 0;
    color: var(--store-dark);
    font: inherit;
    overflow-wrap: anywhere;
}

.product-brand-dialog .product-brand-dialog__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    color: var(--store-dark);
    background: var(--store-surface);
}

.product-brand-dialog__body {
    min-height: 0;
    padding: 0 24px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.product-brand-dialog__footer {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--store-border);
    background: var(--store-surface);
}

@media (max-width: 640px) {
    .product-brand-dialog__header {
        gap: 14px;
        padding: 18px;
    }

    .product-brand-dialog__heading {
        font-size: 22px;
    }

    .product-brand-dialog .product-brand-dialog__close {
        top: 18px;
        right: 18px;
    }

    .product-brand-dialog__body {
        padding-inline: 18px;
    }

    .product-brand-dialog__footer {
        padding: 14px 18px;
    }

    .product-brand-dialog__footer .store-button {
        width: 100%;
    }
}

.product-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: 44px minmax(0, 1fr) 28px;
    padding: 12px 18px;
    overflow: hidden;
    color: var(--store-white);
    background: rgba(12, 15, 18, 0.96);
}

.product-lightbox[hidden],
.product-lightbox__nav[hidden] {
    display: none;
}

.product-lightbox__top {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: flex-end;
}

.product-lightbox__close,
.product-lightbox__nav {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--store-white);
    background: rgba(255, 255, 255, 0.08);
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.product-lightbox__close {
    position: relative;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0;
}

.product-lightbox__close::before,
.product-lightbox__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.product-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.product-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    border-color: var(--store-yellow);
    color: var(--store-dark);
    background: var(--store-yellow);
}

.product-lightbox__close:hover {
    border-color: transparent;
    color: var(--store-white);
    background: var(--store-red-action);
}

.product-lightbox__viewport {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    place-items: center;
    padding-inline: 72px;
    overflow: hidden;
    touch-action: none;
}

.product-lightbox__image {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    max-width: min(calc(100% - 176px), 1440px);
    height: auto;
    max-height: calc(100% - 24px);
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
}

.product-lightbox__viewport.is-zoomed .product-lightbox__image {
    cursor: grab;
}

.product-lightbox__viewport.is-dragging .product-lightbox__image {
    cursor: grabbing;
}

.product-lightbox__controls {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-lightbox__nav {
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    color: var(--store-dark);
    background: var(--store-yellow);
    font-size: 0;
    transform: translateY(-50%);
}

.product-lightbox__nav::before {
    display: block;
    width: 16px;
    height: 20px;
    background: currentColor;
    content: "";
    transform: translateY(4px);
}

.product-lightbox__nav--previous {
    left: 18px;
}

.product-lightbox__nav--previous::before {
    -webkit-clip-path: polygon(100% 0, 0 50%, 100% 100%);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.product-lightbox__nav--next {
    right: 18px;
}

.product-lightbox__nav--next::before {
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.product-lightbox__nav:hover {
    border-color: transparent;
    color: var(--store-dark);
    background: var(--store-yellow);
    filter: brightness(0.92);
}

.product-lightbox__counter {
    min-height: 28px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-gallery__stage {
        max-height: 680px;
    }

    .purchase-card {
        position: static;
        z-index: auto;
    }



}

@media (max-width: 640px) {
    .product-page {
        padding-block: 16px 34px;
    }

    .product-breadcrumbs {
        margin-bottom: 13px;
        font-size: 11px;
    }

    .product-breadcrumbs li:last-child {
        flex-basis: 100%;
    }

    .product-breadcrumbs li:last-child::before {
        display: none;
    }

    .product-title {
        font-size: 25px;
    }

    .product-identity {
        gap: 12px 18px;
        padding-block: 15px 20px;
    }

    .product-brand {
        min-height: 44px;
    }

    .product-brand img {
        max-width: 130px;
        max-height: 42px;
    }

    .product-meta {
        gap: 5px 18px;
    }

    .product-meta div {
        display: block;
    }

    .product-gallery__stage {
        border-radius: 7px;
    }

    .product-gallery__open .product-gallery__main-image {
        inset: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
    }

    .product-gallery__zoom-hint {
        right: 9px;
        bottom: 9px;
        min-height: 31px;
        padding: 5px 9px 5px 30px;
    }

    .product-gallery__zoom-hint::before {
        left: 10px;
    }

    .product-gallery__zoom-hint::after {
        left: 21px;
    }

    .product-gallery__thumb {
        width: 64px;
        min-width: 64px;
        height: 64px;
        min-height: 64px;
        flex-basis: 64px;
    }

    .purchase-card {
        padding: 20px 16px;
        border-radius: 7px;
        box-shadow: 0 8px 24px rgba(33, 42, 49, 0.07);
    }

    .purchase-card__header,
    .purchase-article,
    .purchase-price {
        margin-bottom: 20px;
    }

    .purchase-card__header {
        gap: 12px;
    }

    .purchase-price > strong {
        font-size: 34px;
    }





    .purchase-actions {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 9px;
    }

    .product-information {
        margin-top: 28px;
        border-radius: 7px;
    }

    .product-information__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-information__tabs--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-information__tabs--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-information__tabs--two .product-information__tab {
        border-bottom: 0;
    }

    .product-information__tabs--with-tags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-information__tabs--with-tags
        .product-information__tab:nth-child(3),
    .product-information__tabs--with-tags
        .product-information__tab:nth-child(4) {
        border-bottom: 1px solid var(--store-border);
    }

    .product-information__tabs--with-tags
        .product-information__tab:nth-child(4) {
        border-right: 0;
    }

    .product-information__tabs--with-tags
        .product-information__tab:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .product-information__tab {
        min-height: 46px;
        padding: 11px 8px 7px;
        font-size: 13px;
    }

    .product-information__tab:nth-child(2) {
        border-right: 0;
    }

    .product-information__tab:nth-child(-n + 2) {
        border-bottom: 1px solid var(--store-border);
    }

    .product-information__tabs--single .product-information__tab {
        border-right: 0;
        border-bottom: 0;
    }

    .product-information__section {
        padding: 20px 16px;
        scroll-margin-top: 72px;
    }

    .product-information__section h2:where(:not(.catalog-product-card__title)) {
        margin-bottom: 11px;
        font-size: 19px;
    }

    .product-tags__list {
        gap: 6px;
    }

    .product-tags__list a {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .product-lightbox {
        grid-template-rows: 40px minmax(0, 1fr) 64px;
        padding: 8px 0;
    }

    .product-lightbox__top {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
    }

    .product-lightbox__viewport {
        padding-inline: 0;
    }

    .product-lightbox__image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 100%;
    }

    .product-lightbox__nav {
        position: static;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        transform: none;
    }

    .product-lightbox__nav--previous {
        left: calc(50% - 54px);
    }

    .product-lightbox__nav--next {
        right: calc(50% - 54px);
    }

    .product-lightbox__counter {
        min-height: 64px;
        line-height: 64px;
    }
}

@media (max-width: 390px) {

    .placeholder-label {
        display: inline-block;
        margin-top: 7px;
    }
}

/* Таблицы характеристик внутри описания товара */
.product-information__text table.product-description-table,
.product-information__text table {
    width: 100%;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--store-radius-small);
    table-layout: auto;
    font-size: inherit;
    line-height: 1.35;
}

.product-information__text table.product-description-table th,
.product-information__text table.product-description-table td,
.product-information__text table th,
.product-information__text table td {
    padding: 4px 7px;
    border: 0;
    border-right: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
    vertical-align: middle;
}

.product-information__text table tr > *:last-child {
    border-right: 0;
}

.product-information__text table tr:last-child > * {
    border-bottom: 0;
}

.product-information__text table.product-description-table th,
.product-information__text table th {
    background: #f6f7f8;
    font-weight: 700;
    text-align: left;
}

.product-information__text table :is(th, td).product-description-align-left {
    text-align: left;
}

.product-information__text table :is(th, td).product-description-align-center {
    text-align: center;
}

.product-information__text table :is(th, td).product-description-align-right {
    text-align: right;
}

/* На десктопе служебная обёртка JS не влияет на содержимое ячейки. */
.product-description-mobile-value {
    display: contents;
}

@media (max-width: 640px) {
    /*
     * Одна таблица для десктопа и мобильной версии.
     * JS ничего не копирует: он только помечает исходные ячейки и
     * подставляет названия колонок в data-mobile-label.
     */
    .product-information__description-block
        table.product-description-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 10px 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
        table-layout: auto !important;
    }

    .product-information__description-block
        table.product-description-table :is(thead, tbody, tfoot) {
        display: block !important;
        width: 100% !important;
    }

    .product-information__description-block
        table.product-description-table tr {
        display: block !important;
        width: 100% !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid var(--store-border) !important;
        border-radius: var(--store-radius-small) !important;
        background: var(--store-white) !important;
    }

    .product-information__description-block
        table.product-description-table tr:last-child {
        margin-bottom: 0 !important;
    }

    /* Общая строка заголовков на мобильном не нужна: её подписи живут в карточках. */
    .product-information__description-block
        table.product-description-table--has-header
        tr.product-description-table__header-row {
        display: none !important;
    }

    .product-information__description-block
        table.product-description-table td,
    .product-information__description-block
        table.product-description-table th {
        box-sizing: border-box !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        color: inherit !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        vertical-align: middle !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    /*
     * Таблица с заголовками:
     * первая ячейка строки — название карточки на белом фоне.
     */
    .product-information__description-block
        table.product-description-table--has-header
        tr:not(.product-description-table__header-row)
        > :first-child {
        display: block !important;
        width: 100% !important;
        padding: 5px 8px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--store-border) !important;
        background: var(--store-white) !important;
        text-align: center !important;
    }

    /*
     * Остальные ячейки этой же строки становятся компактной парой:
     * слева настоящий заголовок колонки, справа её значение.
     */
    .product-information__description-block
        table.product-description-table--has-header
        td.product-description-table__labeled-cell {
        display: grid !important;
        grid-template-columns: minmax(0, 42%) minmax(0, 58%) !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--store-border) !important;
        background: var(--store-white) !important;
    }

    .product-information__description-block
        table.product-description-table--has-header
        tr:not(.product-description-table__header-row)
        > :last-child {
        border-bottom: 0 !important;
    }

    .product-information__description-block
        table.product-description-table--has-header
        td.product-description-table__labeled-cell::before {
        content: attr(data-mobile-label);
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 0;
        padding: 5px 8px;
        border-right: 1px solid var(--store-border);
        background: #f6f7f8;
        color: inherit;
        font-weight: 400 !important;
        line-height: 1.3;
        text-align: center !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .product-information__description-block
        table.product-description-table--has-header
        td.product-description-table__labeled-cell
        > .product-description-mobile-value {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 0;
        padding: 5px 8px;
        background: var(--store-white);
        text-align: center !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /*
     * Таблица без заголовков: та же исходная строка остаётся карточкой,
     * а её ячейки просто идут одна под другой — все белые.
     */
    .product-information__description-block
        table.product-description-table--plain
        tr > :is(td, th) {
        display: block !important;
        width: 100% !important;
        padding: 5px 8px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--store-border) !important;
        background: var(--store-white) !important;
        text-align: center !important;
    }

    .product-information__description-block
        table.product-description-table--plain
        tr > :last-child {
        border-bottom: 0 !important;
    }

    /* Форматирование редактора не меняет мобильную жирность и выравнивание. */
    .product-information__description-block
        table.product-description-table :is(strong, b) {
        font-weight: 400 !important;
    }

    .product-information__description-block
        table.product-description-table :is(p, div, span) {
        text-align: center !important;
    }
}
