/**
 * Каталог / категория / PDP — статичная вёрстка по Figma (DEV-52)
 * Брейкпоинты: Desktop 1440 / Tablet 768 / Mobile 360
 */

body.sg-redesign--layout {
    background: var(--sg-bg);
}

body.sg-redesign--layout .puzzle_block.main-container,
body.sg-redesign--layout .block_main_left_menu__content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.sg-redesign--layout .breadcrumb,
body.sg-redesign--layout > .puzzle_block > .block_main_left_menu__content > h1 {
    display: none !important;
}

/* --- Breadcrumbs --- */
.sg-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: 9px;
    font-size: 12px;
    line-height: 9px;
    letter-spacing: 0.02em;
    color: rgba(251, 250, 250, 0.55);
}

.sg-breadcrumbs__link {
    color: rgba(251, 250, 250, 0.55);
    text-decoration: none;
}

.sg-breadcrumbs__link:hover {
    color: var(--sg-text);
}

.sg-breadcrumbs__current {
    color: var(--sg-text);
}

.sg-breadcrumbs__sep {
    opacity: 0.5;
}

/* --- Page header · Figma Catalog Header h=325 --- */
.sg-page-header {
    box-sizing: border-box;
    min-height: 325px;
    padding: 48px 0 80px;
}

.sg-page-header__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.sg-page-header__text {
    margin-top: 48px;
    max-width: 738px;
}

/* Figma: breadcrumbs y=48, title block y=105 → gap 57px from breadcrumbs line */
.sg-page-header .sg-breadcrumbs + .sg-page-header__text {
    margin-top: 48px;
}

.sg-page-header__title {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.025;
    letter-spacing: -0.02em;
    color: #fbfafa;
}

.sg-page-header__desc {
    margin: 36px 0 0;
    font-size: var(--sg-fs-body);
    font-weight: 400;
    line-height: var(--sg-lh-body);
    color: rgba(251, 250, 250, 0.7);
}

/* --- Catalog body · Filter 305 + gap 20 + Main 955 --- */
.sg-catalog__body {
    padding-bottom: 80px;
}

.sg-catalog__inner {
    display: grid;
    grid-template-columns: 305px 955px;
    column-gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
    align-items: start;
    box-sizing: border-box;
}

.sg-catalog__inner--no-filter {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1439px) {
    .sg-catalog__inner {
        grid-template-columns: 305px minmax(0, 1fr);
    }
}

.sg-catalog__filter-surface {
    /* position нужен, иначе z-index игнорируется и «Показать N» уходит под фото карточек */
    position: relative;
    z-index: 5;
    width: 305px;
    box-sizing: border-box;
    padding: 60px 16px;
    border: 1px solid rgba(251, 250, 250, 0.06);
    border-radius: 12px;
    background: #060606;
    overflow: visible;
}

/* Меньшая колонка: сначала едет со страницей, у низа «липнет» и уходит к подвалу;
   при скролле вверх — обратно к шапке. Вешается JS на более короткую сторону. */
@media (min-width: 1200px) {
    .sg-catalog__filter-surface.is-sticky-trail,
    .sg-catalog__main.is-sticky-trail {
        position: sticky;
        bottom: 24px;
        top: auto;
        align-self: start;
    }
}

.sg-catalog__main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 955px;
}

.sg-catalog__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 42px;
    margin: 0 0 36px;
}

.sg-catalog__found {
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
    color: rgba(251, 250, 250, 0.7);
}

.sg-catalog__filter-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #fbfafa;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.sg-catalog__sort {
    position: relative;
}

.sg-catalog__sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-width: 303px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: #131313;
    color: #fbfafa;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.sg-catalog__sort-label {
    color: rgba(251, 250, 250, 0.7);
}

.sg-catalog__sort-value {
    color: #fbfafa;
}

.sg-catalog__sort-icon {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fbfafa;
}

.sg-catalog__sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    min-width: 100%;
    background: #131313;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.sg-catalog__sort-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #fbfafa;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.sg-catalog__sort-menu button:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Figma: Products Grid — 3×305, gap 20 / row gap 24 */
.sg-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    align-items: stretch;
}

/* Figma Product Card 305×638: image-area 280, info-area 358 */
.sg-catalog__grid > .sg-product-mini {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 638px;
    max-height: 638px;
    box-sizing: border-box;
}

.sg-catalog__grid .sg-product-mini__media {
    height: 280px;
    flex-shrink: 0;
    background: #0d0d0d;
}

.sg-catalog__grid .sg-product-mini__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    box-sizing: border-box;
}

.sg-catalog__grid .sg-product-mini__body {
    flex: 1 1 auto;
    min-height: 0;
    gap: 28px;
    padding: 36px 24px;
    box-sizing: border-box;
}

.sg-catalog__grid .sg-product-mini__info {
    gap: 28px;
}

.sg-catalog__grid .sg-product-mini__details {
    gap: 24px;
}

.sg-catalog__grid .sg-product-mini__brand {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.sg-catalog__grid .sg-product-mini__titles {
    gap: 16px;
    min-height: 96px;
}

.sg-catalog__grid .sg-product-mini__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    min-height: calc(1.1em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sg-catalog__grid .sg-product-mini__kind {
    font-size: var(--sg-fs-body);
    font-weight: 400;
    line-height: var(--sg-lh-body);
    min-height: calc(var(--sg-fs-body) * var(--sg-lh-body));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-catalog__grid .sg-product-mini__specs,
.sg-catalog__grid .sg-product-mini__flavor {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    min-height: 1.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-catalog__grid .sg-product-mini__pack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.sg-catalog__grid .sg-product-mini__flavor {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    opacity: 1;
    min-height: calc(16px * 1.4);
}

.sg-catalog__grid .sg-product-mini__flavor.is-empty {
    visibility: hidden;
}

.sg-catalog__grid .sg-product-mini__flavor-label,
.sg-catalog__grid .sg-product-mini__flavor-value {
    opacity: 0.5;
}

.sg-catalog__grid .sg-product-mini__flavor-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-catalog__grid .sg-product-mini__price {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.sg-catalog__grid .sg-product-mini__price-row {
    margin-top: auto;
    flex-shrink: 0;
}

.sg-catalog__empty {
    color: rgba(251, 250, 250, 0.7);
    padding: 40px 0;
}

.sg-catalog__sort-menu a {
    display: block;
    padding: 10px 16px;
    color: #fbfafa;
    text-decoration: none;
}

.sg-catalog__sort-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sg-category-block__title a {
    color: #fbfafa;
    text-decoration: none;
}

.sg-catalog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.sg-product-mini__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.sg-product-mini__price-old {
    font-size: 13px;
    color: rgba(251, 250, 250, 0.5);
    text-decoration: line-through;
}

/* --- Category blocks --- */
.sg-category-blocks {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.sg-category-block__text {
    margin-bottom: 36px;
}

.sg-category-block__title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}

.sg-category-block__desc {
    margin: 16px 0 0;
    max-width: 955px;
    font-size: var(--sg-fs-body);
    line-height: var(--sg-lh-body);
    color: rgba(251, 250, 250, 0.7);
}

.sg-category-block__divider {
    height: 1px;
    margin: 0 0 36px;
    background: rgba(255, 255, 255, 0.06);
}

/* --- Filter · Figma Catalog Filter 550:3944 --- */
.sg-filter {
    position: relative;
    color: #fbfafa;
}

.sg-filter__form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sg-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sg-filter__title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.32px;
    color: #fbfafa;
}

.sg-filter__close {
    border: 0;
    background: transparent;
    color: #fbfafa;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sg-filter__head-actions {
    margin-top: -16px;
}

.sg-filter__groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sg-filter__group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(251, 250, 250, 0.3);
}

.sg-filter__label {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: #fbfafa;
}

.sg-filter__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-filter__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-filter__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    color: #fbfafa;
    cursor: pointer;
}

.sg-filter__check input {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid #5f5d5d;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.sg-filter__check input:checked {
    border-color: #fbfafa;
    background:
        linear-gradient(#fbfafa, #fbfafa) center / 8px 8px no-repeat;
}

.sg-filter__more {
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(251, 250, 250, 0.6);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
}

.sg-filter__more:hover {
    color: #fbfafa;
}

.sg-filter__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.sg-filter__tags.is-collapsed {
    /* ~4 ряда: до 2 строк текста в теге + gap */
    max-height: calc(var(--sg-filter-tag-rows, 4) * 52px + (var(--sg-filter-tag-rows, 4) - 1) * 8px);
    overflow: hidden;
}

.sg-filter__tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 32px;
    height: auto;
    padding: 8px 14px;
    border: 1px solid #5f5d5d;
    border-radius: 6px;
    background: #131313;
    color: #fbfafa;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: normal;
    cursor: pointer;
}

.sg-filter__tag span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.sg-filter__tag--purpose,
.sg-filter__group[data-sg-filter-param="purpose"] .sg-filter__tag {
    justify-content: flex-start;
}

.sg-filter__tag--purpose span,
.sg-filter__group[data-sg-filter-param="purpose"] .sg-filter__tag span {
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
}

.sg-filter__list > li,
.sg-filter__tag,
.sg-filter__group {
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        max-height 0.28s ease,
        margin 0.22s ease,
        padding 0.22s ease;
}

.sg-filter__list > li.is-facet-out,
.sg-filter__tag.is-facet-out {
    opacity: 0;
    transform: scale(0.96);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    pointer-events: none;
    border-width: 0;
}

.sg-filter__group.is-facet-out {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.sg-filter__list > li.is-facet-in,
.sg-filter__tag.is-facet-in {
    animation: sg-filter-facet-in 0.24s ease;
}

@keyframes sg-filter-facet-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sg-filter__tag input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.sg-filter__tag.is-active,
.sg-filter__tag:has(input:checked) {
    border-color: #fbfafa;
    background: #fbfafa;
    color: #0a0a0a;
}

.sg-filter__price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-filter__price input {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 1px solid #5f5d5d;
    border-radius: 4px;
    background: #131313;
    color: #fbfafa;
    font: inherit;
    font-size: 16px;
}

.sg-filter__price input::placeholder {
    color: #5f5d5d;
}

.sg-filter__price-sep {
    color: #fbfafa;
    font-size: 13px;
}

.sg-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #5f5d5d;
    border-radius: 6px;
    background: #131313;
    color: #fbfafa;
    font: inherit;
    font-size: 13px;
}

.sg-filter__reset {
    border: 0;
    background: transparent;
    color: rgba(251, 250, 250, 0.6);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

.sg-filter__reset:hover {
    color: #fbfafa;
}

.sg-filter__reset[hidden],
.sg-filter__head-actions[hidden] {
    display: none !important;
}

.sg-filter__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 55px;
    padding: 20px 12px;
    border: 0;
    border-radius: 4px;
    background: #fbfafa;
    color: #0a0a0a;
    font: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.sg-filter__submit:hover {
    background: #ffffff;
}

/* Плавающая «Показать N» рядом с изменённым параметром (как modef умного фильтра) */
.sg-filter__hint {
    position: absolute;
    left: calc(100% + 16px);
    top: 0;
    z-index: 60;
    display: none;
    min-width: 200px;
    padding: 12px;
    border: 1px solid rgba(251, 250, 250, 0.12);
    border-radius: 8px;
    background: #131313;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    pointer-events: auto;
}

.sg-filter__hint.is-visible,
.sg-filter__hint:not([hidden]) {
    display: block;
}

.sg-filter__hint[hidden] {
    display: none !important;
}

.sg-filter__hint::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(251, 250, 250, 0.12);
    border-bottom: 1px solid rgba(251, 250, 250, 0.12);
    background: #131313;
    transform: rotate(45deg);
}

.sg-filter__hint-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 4px;
    background: #fbfafa;
    color: #0a0a0a;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;
}

.sg-filter__hint-btn:hover {
    background: #ffffff;
}

.sg-filter--sheet .sg-filter__hint {
    position: sticky;
    left: 0;
    right: 0;
    bottom: 12px;
    top: auto;
    z-index: 5;
    margin-top: 16px;
    width: 100%;
}

.sg-filter--sheet .sg-filter__hint::before {
    display: none;
}

.sg-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.sg-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sg-filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    overflow: auto;
    padding: 20px 16px 24px;
    background: #060606;
    border-radius: 16px 16px 0 0;
}

/* --- Pagination --- */
.sg-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sg-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #fbfafa;
    text-decoration: none;
    font-size: 13px;
}

.sg-pagination__item.is-active,
.sg-pagination__item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #131313;
}

.sg-pagination__ellipsis {
    width: 20px;
    text-align: center;
    color: rgba(251, 250, 250, 0.7);
}

/* --- PDP --- */
.sg-pdp {
    padding-bottom: 120px;
}

.sg-pdp__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 80px 0;
}

.sg-pdp__crumbs {
    margin-bottom: 48px;
}

.sg-pdp__above {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 1280px;
}

.sg-pdp__gallery {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    position: relative;
}

.sg-pdp__thumbs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-pdp__thumb {
    width: 88px;
    height: 88px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sg-bg-elevated);
    cursor: pointer;
}

.sg-pdp__thumb.is-active,
.sg-pdp__thumb:hover {
    border-color: var(--sg-border-hover);
}

.sg-pdp__thumb img,
.sg-pdp__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sg-pdp__main-image {
    border-radius: 12px;
    overflow: hidden;
    background: var(--sg-bg-elevated);
    /* Было 522/726; +10% к ширине относительно высоты. */
    aspect-ratio: 574 / 726;
    width: 100%;
    min-width: 0;
}

.sg-pdp__buy {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
    max-width: 100%;
}

.sg-pdp__brand {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sg-text-muted);
}

.sg-pdp__title {
    margin: 12px 0 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.sg-pdp__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.sg-pdp__stars {
    color: #fbfafa;
    letter-spacing: 2px;
}

.sg-pdp__rating-count {
    color: var(--sg-text-muted);
}

.sg-pdp__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.sg-pdp__tag {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    font-size: 12px;
    background: rgba(251, 250, 250, 0.03);
}

.sg-pdp__tags--cms .sg-pdp__tag {
    border-color: #5f5d5d;
    border-radius: 6px;
    background: #131313;
    color: #fbfafa;
    font-size: 13px;
    font-weight: 500;
}

.sg-pdp__short {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sg-text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sg-pdp__variant-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--sg-text-muted);
}

.sg-pdp__weights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sg-pdp__weight {
    min-width: 101px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    background: transparent;
    color: var(--sg-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.sg-pdp__weight:hover {
    border-color: var(--sg-border-hover);
    background: var(--sg-bg-elevated);
}

.sg-pdp__weight.is-active {
    border-color: #fbfafa;
    background: #fbfafa;
    color: #131313;
}

.sg-pdp__weight.is-active .sg-pdp__weight-servings {
    color: rgba(19, 19, 19, 0.65);
}

.sg-pdp__weight-label {
    font-size: 13px;
    font-weight: 600;
}

.sg-pdp__weight-servings {
    font-size: 11px;
    color: var(--sg-text-muted);
}

.sg-pdp__flavor-pills {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.sg-pdp__flavor-pill {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    background: transparent;
    color: var(--sg-text-muted);
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sg-pdp__flavor-pill.is-active,
.sg-pdp__flavor-pill:hover {
    border-color: var(--sg-border-hover);
    background: var(--sg-bg-elevated);
    color: var(--sg-text);
}

.sg-pdp__flavor-select {
    display: block;
    position: relative;
}

.sg-pdp__flavor-select-toggle {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #fbfafa;
    border-radius: 8px;
    background: transparent;
    color: #fbfafa;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sg-pdp__flavor-select-toggle[aria-expanded="true"] {
    border-color: rgba(251, 250, 250, 0.55);
    background: rgba(251, 250, 250, 0.04);
}

.sg-pdp__flavor-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.sg-pdp__flavor-select-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid #fbfafa;
    border-bottom: 2px solid #fbfafa;
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sg-pdp__flavor-select-toggle[aria-expanded="true"] .sg-pdp__flavor-select-icon {
    transform: rotate(225deg) translateY(-2px);
}

.sg-pdp__flavor-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: #131313;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-pdp__flavor-select-menu[hidden] {
    display: none;
}

.sg-pdp__flavor-select-search {
    position: relative;
    flex-shrink: 0;
}

.sg-pdp__flavor-select-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid rgba(251, 250, 250, 0.16);
    border-radius: 8px;
    background:
        transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%23fbfafa' stroke-opacity='0.45' stroke-width='1.5'/%3E%3Cpath stroke='%23fbfafa' stroke-opacity='0.45' stroke-linecap='round' stroke-width='1.5' d='M11.2 11.2 14 14'/%3E%3C/svg%3E")
        no-repeat 14px 50%;
    color: #fbfafa;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sg-pdp__flavor-select-input::placeholder {
    color: rgba(251, 250, 250, 0.4);
}

.sg-pdp__flavor-select-input::-webkit-search-decoration,
.sg-pdp__flavor-select-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.sg-pdp__flavor-select-input:focus {
    border-color: rgba(251, 250, 250, 0.45);
    background-color: rgba(251, 250, 250, 0.04);
}

.sg-pdp__flavor-select-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 250, 250, 0.28) transparent;
}

.sg-pdp__flavor-select-list::-webkit-scrollbar {
    width: 6px;
}

.sg-pdp__flavor-select-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(251, 250, 250, 0.28);
}

.sg-pdp__flavor-select-option {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(251, 250, 250, 0.72);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sg-pdp__flavor-select-option:hover {
    background: rgba(251, 250, 250, 0.08);
    color: #fbfafa;
}

.sg-pdp__flavor-select-option.is-active {
    background: rgba(251, 250, 250, 0.12);
    color: #fbfafa;
}

.sg-pdp__flavor-select-option[hidden] {
    display: none;
}

.sg-pdp__flavor-select-empty {
    margin: 0;
    padding: 14px 12px 8px;
    color: rgba(251, 250, 250, 0.4);
    font-size: 13px;
    text-align: center;
}

.sg-pdp__flavor-select-empty[hidden] {
    display: none;
}

.sg-pdp__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.sg-pdp__price {
    font-size: 32px;
    font-weight: 600;
}

.sg-pdp__price-old {
    font-size: 16px;
    color: var(--sg-text-muted);
    text-decoration: line-through;
}

.sg-pdp__discount {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #fbfafa;
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 600;
}

.sg-pdp__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 55px;
    gap: 12px;
    align-items: center;
}

.sg-pdp__cart {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.sg-pdp__cart .sg-pdp__add {
    width: 100%;
}

.sg-pdp__add--solo {
    width: 100%;
}

.sg-pdp__qty {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    height: 55px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    overflow: hidden;
}

.sg-pdp__qty button,
.sg-pdp__qty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--sg-text);
    font: inherit;
}

.sg-pdp__qty button {
    cursor: pointer;
}

.sg-pdp__qty button:disabled {
    opacity: 0.4;
    cursor: default;
}

.sg-pdp__add {
    height: 55px;
    border: 0;
    border-radius: 8px;
    background: #fbfafa;
    color: #0a0a0a;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.sg-pdp__add:disabled {
    opacity: 0.5;
    cursor: default;
}

.sg-pdp__add.is-busy,
.sg-product-mini__cart-btn.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.sg-pdp__wish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.sg-pdp__tabs {
    margin-top: 160px;
}

.sg-pdp__tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 1px solid var(--sg-border);
}

.sg-pdp__tab {
    position: relative;
    padding: 0 0 16px;
    border: 0;
    background: transparent;
    color: var(--sg-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sg-pdp__tab.is-active {
    color: var(--sg-text);
}

.sg-pdp__tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #fbfafa;
}

.sg-pdp__panel {
    padding-top: 40px;
}

.sg-pdp__panel-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 600;
}

.sg-pdp__panel-grid--desc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    gap: 20px;
    align-items: start;
}

.sg-pdp__panel-grid--desc-full {
    grid-template-columns: minmax(0, 1fr);
}

.sg-pdp__nutrition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 413px;
    gap: 20px;
    align-items: start;
}

.sg-pdp__nutrition-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-pdp__nutrition-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sg-pdp__nutrition-head-label {
    margin: 0;
    color: var(--sg-text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.sg-pdp__nutrition-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px 8px 12px;
    border: 1px solid #fbfafa;
    border-radius: 5px;
    background: transparent;
    color: #fbfafa;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sg-pdp__nutrition-select-icon {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #fbfafa;
    border-bottom: 1.5px solid #fbfafa;
    transform: rotate(45deg) translateY(-1px);
}

.sg-pdp__nutrition-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 160px;
    z-index: 20;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    background: #131313;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.sg-pdp__nutrition-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fbfafa;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.sg-pdp__nutrition-option:hover,
.sg-pdp__nutrition-option.is-active {
    background: rgba(251, 250, 250, 0.08);
}

.sg-pdp__nutrition-card {
    padding: 24px 28px 22px;
    border-radius: 16px;
    background: #131313;
}

.sg-pdp__nutrition-card-top,
.sg-pdp__nutrition-calories,
.sg-pdp__nutrition-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 46px;
    align-items: center;
}

.sg-pdp__nutrition-card-top {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 14px;
}

.sg-pdp__nutrition-card-top p,
.sg-pdp__nutrition-calories p,
.sg-pdp__nutrition-row p {
    margin: 0;
    color: #fbfafa;
    font-weight: 500;
    line-height: 1.2;
}

.sg-pdp__nutrition-card-top p:first-child,
.sg-pdp__nutrition-calories p,
.sg-pdp__nutrition-row p {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.sg-pdp__nutrition-card-top p:last-child {
    color: var(--sg-text-muted);
    font-size: 14px;
}

.sg-pdp__nutrition-calories {
    padding: 8px 0;
}

.sg-pdp__nutrition-row {
    padding: 10px 0;
}

.sg-pdp__nutrition-row p:nth-child(2),
.sg-pdp__nutrition-row p:nth-child(3) {
    text-align: right;
}

.sg-pdp__nutrition-row p:first-child,
.sg-pdp__nutrition-row p:nth-child(2),
.sg-pdp__nutrition-row p:nth-child(3) {
    font-size: 14px;
    letter-spacing: 0;
}

.sg-pdp__nutrition-row p:nth-child(3) {
    color: var(--sg-text-muted);
}

.sg-pdp__nutrition-row.is-muted p:first-child {
    color: var(--sg-text-muted);
}

.sg-pdp__nutrition-row.is-indented p:first-child {
    padding-left: 16px;
}

.sg-pdp__nutrition-divider {
    width: 100%;
    height: 1px;
    background: #5f5d5d;
}

.sg-pdp__nutrition-footnote {
    margin: 12px 0 0;
    color: var(--sg-text-muted);
    font-size: 13px;
    line-height: 1.3;
}

.sg-pdp__nutrition-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sg-pdp__panel-copy {
    color: rgba(251, 250, 250, 0.7);
    font-size: 15px;
    line-height: 1.55;
}

.sg-pdp__panel-copy p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--sg-text-muted);
}

.sg-pdp__panel-copy ul,
.sg-pdp__panel-copy ol {
    margin: 0 0 16px;
    padding-left: 1.2em;
    color: var(--sg-text-muted);
}

.sg-pdp__panel-copy li {
    margin: 0 0 8px;
}

.sg-pdp__panel-copy h2,
.sg-pdp__panel-copy h3,
.sg-pdp__panel-copy h4 {
    margin: 24px 0 12px;
    color: var(--sg-text);
    font-size: 18px;
    font-weight: 600;
}

.sg-pdp__stats {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-pdp__stats li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 49px;
    padding: 0 20px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    background: var(--sg-bg-elevated);
}

.sg-pdp__stats strong {
    font-size: 18px;
    min-width: 54px;
}

.sg-pdp__stats span {
    font-size: 13px;
    color: var(--sg-text-muted);
}

.sg-pdp__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Контент вкладок из CMS: структура по Figma 585:4870 / 569:4787. */
.sg-pdp__application-top {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 20px;
    align-items: start;
}
.sg-pdp__application-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.sg-pdp__application-metrics > div {
    padding: 24px 12px;
    text-align: center;
    background: #131313;
    border-radius: 16px;
}
.sg-pdp__application-metrics strong,
.sg-pdp__application-metrics span { display: block; }
.sg-pdp__application-metrics strong { font-size: 24px; line-height: 1.1; }
.sg-pdp__application-metrics span { margin-top: 8px; font-size: 13px; color: #5f5d5d; }
.sg-pdp__application h3,
.sg-pdp__delivery-content h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.sg-pdp__application-how p,
.sg-pdp__delivery-content p { margin: 0; font-size: 16px; line-height: 1.2; color: rgba(251,250,250,.5); }
.sg-pdp__application-recommendations { margin-top: 32px; padding: 28px; background: #131313; border-radius: 16px; }
.sg-pdp__application-recommendations h3 { text-transform: uppercase; letter-spacing: 3px; font-size: 18px; }
.sg-pdp__application-recommendations ul { list-style: none; margin: 0; padding: 0; }
.sg-pdp__application-recommendations li { position: relative; margin: 12px 0 0; padding-left: 32px; font-size: var(--sg-fs-body); line-height: var(--sg-lh-body); }
.sg-pdp__application-recommendations li::before { content: '—'; position: absolute; left: 0; color: #5f5d5d; }
.sg-pdp__delivery-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.sg-pdp__delivery-content > div { padding: 26px 28px; background: #131313; border-radius: 16px; }
.sg-pdp__delivery-content section { margin-top: 18px; }
.sg-pdp__delivery-content h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.sg-pdp__delivery-content p { font-size: 13px; line-height: 1.3; }
@media (max-width: 1199px) {
    .sg-pdp__application-top { grid-template-columns: 1fr; }
    .sg-pdp__application-recommendations li { font-size: 18px; }
}
@media (max-width: 767px) {
    .sg-pdp__application-metrics { gap: 8px; }
    .sg-pdp__application-metrics > div { padding: 16px 6px; }
    .sg-pdp__application-metrics strong { font-size: 18px; }
    .sg-pdp__application-metrics span { font-size: 11px; }
    .sg-pdp__application-recommendations { padding: 20px; }
    .sg-pdp__application-recommendations li { font-size: 16px; }
    .sg-pdp__delivery-content { grid-template-columns: 1fr; }
}

.sg-pdp__benefit {
    flex: 0 0 calc((100% - 40px) / 3);
    padding: 24px;
    border: none;
    border-radius: 16px;
    background: #131313;
}

.sg-pdp__benefit-num {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5f5d5d;
    line-height: 1.2;
}

.sg-pdp__benefit h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #fbfafa;
}

.sg-pdp__benefit p {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: rgba(251, 250, 250, 0.5);
}

.sg-pdp__label-wrap {
    width: 413px;
}

.sg-pdp__label-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.sg-pdp__nutrition-composition {
    padding: 18px 22px;
    border-radius: 16px;
    background: #131313;
}

.sg-pdp__nutrition-composition h3 {
    margin: 0 0 8px;
    color: #fbfafa;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sg-pdp__nutrition-composition p {
    margin: 0;
    color: var(--sg-text-muted);
    font-size: 14px;
    line-height: 1.2;
}

.sg-pdp__composition-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sg-pdp__composition-list li {
    margin: 0;
    color: var(--sg-text-muted);
    font-size: 14px;
    line-height: 1.2;
}

.sg-pdp__specs {
    margin: 0;
    max-width: 640px;
}

.sg-pdp__specs > div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sg-border);
}

.sg-pdp__specs dt {
    margin: 0;
    color: var(--sg-text-muted);
    font-size: 14px;
}

.sg-pdp__specs dd {
    margin: 0;
    font-size: 14px;
}

.sg-pdp__note {
    color: var(--sg-text-muted);
    font-size: 14px;
}

.sg-pdp__accordion {
    display: none;
}

.sg-pdp__acc-item {
    border-bottom: 1px solid var(--sg-border);
}

.sg-pdp__acc-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    list-style: none;
}

.sg-pdp__acc-item summary::-webkit-details-marker {
    display: none;
}

.sg-pdp__acc-body {
    padding: 0 0 20px;
    color: var(--sg-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sg-pdp__reviews,
.sg-pdp__related {
    margin-top: 120px;
}

.sg-pdp__reviews h2,
.sg-pdp__related h2 {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 600;
}

.sg-pdp__reviews-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.sg-pdp__reviews-subtitle {
    margin: 12px 0 0;
    max-width: 560px;
    color: var(--sg-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sg-pdp__reviews-summary {
    min-width: 180px;
    padding: 18px 20px;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: var(--sg-bg-elevated);
    text-align: right;
}

.sg-pdp__reviews-summary strong {
    display: block;
    font-size: 40px;
    line-height: 1;
}

.sg-pdp__reviews-summary span {
    display: block;
    margin-top: 8px;
    color: var(--sg-text-muted);
    font-size: 13px;
}

.sg-pdp__reviews-list {
    display: grid;
    gap: 16px;
}

.sg-pdp__review {
    padding: 24px;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    background: var(--sg-bg-elevated);
}

.sg-pdp__review-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sg-pdp__review-stars {
    margin: 0 0 12px;
    letter-spacing: 2px;
}

.sg-pdp__related-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 305px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sg-pdp__related-track::-webkit-scrollbar {
    display: none;
}

.sg-pdp__related-track .sg-product-mini {
    scroll-snap-align: start;
    min-width: 0;
    height: auto;
    max-height: none;
}

.sg-pdp__purchase .sg-pdp__note {
    margin-top: 16px;
}

.sg-pdp__sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--sg-border);
}

.sg-pdp__sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sg-pdp__sticky-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sg-pdp__sticky-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-pdp__sticky-price {
    font-size: 16px;
    font-weight: 600;
}

.sg-pdp__sticky .sg-pdp__add {
    flex-shrink: 0;
    height: 48px;
    padding: 0 18px;
    white-space: nowrap;
}

/* --- Tablet --- */
@media (max-width: 1199px) {
    .sg-page-header {
        padding: 32px 0 48px;
    }

    .sg-page-header__inner,
    .sg-catalog__inner,
    .sg-pdp__inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .sg-page-header__title {
        font-size: 32px;
    }

    .sg-page-header__desc {
        font-size: 16px;
    }

    .sg-catalog__inner {
        grid-template-columns: 1fr;
    }

    .sg-catalog__filter-surface {
        display: none;
    }

    .sg-catalog__filter-trigger {
        display: inline-flex;
    }

    .sg-catalog__toolbar {
        flex-wrap: wrap;
        height: auto;
        gap: 16px;
    }

    .sg-catalog__sort-btn {
        min-width: 0;
    }

    .sg-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sg-catalog__grid > .sg-product-mini {
        height: auto;
        max-height: none;
    }

    .sg-catalog__grid .sg-product-mini__media {
        height: 240px;
    }

    .sg-pdp__above {
        grid-template-columns: 1fr;
    }

    .sg-pdp__gallery {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sg-pdp__thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .sg-pdp__main-image {
        order: 1;
        aspect-ratio: 1 / 1;
    }

    .sg-pdp__buy {
        min-height: 0;
    }

    .sg-pdp__tabs-bar,
    .sg-pdp__panels {
        display: none;
    }

    .sg-pdp__accordion {
        display: block;
        margin-top: 64px;
    }

    .sg-pdp__panel-grid--desc {
        grid-template-columns: 1fr;
    }

    .sg-pdp__benefits {
        gap: 16px;
    }

    .sg-pdp__benefit {
        flex-basis: calc((100% - 16px) / 2);
    }

    .sg-pdp__sticky {
        display: block;
    }

    .sg-pdp {
        padding-bottom: 100px;
    }
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .sg-page-header__inner,
    .sg-catalog__inner,
    .sg-pdp__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* node-id=566-4735 / мобильный Figma: "Вкус" как селект на всю ширину */
    .sg-pdp__flavor-pills {
        display: none;
    }

    .sg-pdp__flavor-select {
        display: block;
    }

    /* node-id=563-4681/563-4674: активный "Вес" на мобильном светлый */
    .sg-pdp__weight.is-active {
        background: #fbfafa;
        border-color: #fbfafa;
        color: #131313;
    }

    .sg-pdp__weight.is-active .sg-pdp__weight-servings {
        color: rgba(19, 19, 19, 0.65);
    }

    /* node-id=566-4735: выпадающий "Вкус" должен выглядеть как grid pill-кнопок */
    .sg-pdp__nutrition-menu {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        top: calc(100% + 20px);
        padding: 12px;
        border-radius: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sg-pdp__nutrition-option {
        width: auto;
        display: inline-flex;
        justify-content: center;
        text-align: center;
        padding: 10px 18px;
        border: 1px solid var(--sg-border);
        border-radius: 999px;
        background: transparent;
    }

    .sg-pdp__nutrition-option:hover,
    .sg-pdp__nutrition-option.is-active {
        background: var(--sg-bg-elevated);
        border-color: var(--sg-border-hover);
        color: var(--sg-text);
    }

    .sg-pdp__benefits {
        gap: 12px;
    }

    .sg-pdp__benefit {
        flex-basis: 100%;
    }

    .sg-page-header__title {
        font-size: 28px;
    }

    .sg-page-header__text {
        margin-top: 24px;
    }

    .sg-catalog__sort-btn {
        min-width: 0;
        width: 100%;
    }

    .sg-catalog__grid {
        gap: 12px;
    }

    .sg-catalog__grid .sg-product-mini__media {
        height: 180px;
    }

    .sg-pdp__title {
        font-size: 24px;
    }

    .sg-pdp__actions {
        grid-template-columns: 1fr;
    }

    .sg-pdp__cart {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .sg-pdp__wish {
        display: none;
    }

    .sg-category-blocks {
        gap: 48px;
    }

    .sg-pdp__reviews,
    .sg-pdp__related {
        margin-top: 64px;
    }
}

/* --- Brand detail · Figma Brand / Desktop 1440 · Tablet 768 · Mobile 360 --- */
.sg-catalog__section-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--sg-text);
}

.sg-brand {
    background: var(--sg-bg);
    color: var(--sg-text);
}

.sg-brand-hero {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    padding: 32px 80px 56px;
    overflow: hidden;
    background: #0a0a0a;
}

.sg-brand-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    pointer-events: none;
}

.sg-brand-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.72) 0%,
        rgba(10, 10, 10, 0.35) 42%,
        rgba(10, 10, 10, 0.08) 70%,
        transparent 100%
    );
}

.sg-brand-hero--empty .sg-brand-hero__shade {
    background: #0a0a0a;
}

.sg-brand-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.sg-brand-hero__crumbs {
    height: auto;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #fbfafa;
}

.sg-brand-hero__crumbs .sg-breadcrumbs__link,
.sg-brand-hero__crumbs .sg-breadcrumbs__sep {
    color: #fbfafa;
    opacity: 0.5;
}

.sg-brand-hero__crumbs .sg-breadcrumbs__link:hover {
    opacity: 1;
    color: #fbfafa;
}

.sg-brand-hero__crumbs .sg-breadcrumbs__current {
    color: #fbfafa;
    opacity: 1;
}

.sg-brand-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

.sg-brand-hero__logo {
    width: 235px;
    height: 50px;
}

.sg-brand-hero__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.sg-brand-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 511px;
    color: #fbfafa;
}

.sg-brand-hero__title {
    margin: 0;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    color: #fbfafa;
}

.sg-brand-hero__lead {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #fbfafa;
}

.sg-brand__body {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: 160px 80px 80px;
}

.sg-brand-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    margin: 0 0 160px;
    color: #fbfafa;
}

.sg-brand-about__overline {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fbfafa;
    opacity: 0.5;
}

.sg-brand-about__layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.sg-brand-about__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sg-brand-about__title {
    margin: 0;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.05;
    color: #fbfafa;
}

.sg-brand-about__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #fbfafa;
}

.sg-brand-about__text p {
    margin: 0;
}

.sg-brand-facts {
    flex: 0 0 413px;
    width: 413px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-brand-facts__item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 20px 24px;
    border-radius: 12px;
    background: #131313;
}

.sg-brand-facts__value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    color: #fbfafa;
}

.sg-brand-facts__desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #fbfafa;
    opacity: 0.5;
}

.sg-brand-products__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 36px;
}

.sg-brand-products__title {
    margin: 0;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.05;
    color: #fbfafa;
}

.sg-brand-products__count {
    margin: 0;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #fbfafa;
    opacity: 0.5;
    white-space: nowrap;
}

.sg-brand-products__toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 36px;
}

.sg-brand-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.sg-brand-chips__item {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #5f5d5d;
    border-radius: 6px;
    background: #131313;
    color: #fbfafa;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.sg-brand-chips__item:hover {
    border-color: rgba(251, 250, 250, 0.55);
    color: #fbfafa;
}

.sg-brand-chips__item.is-active {
    border-color: #fbfafa;
    background: #fbfafa;
    color: #0a0a0a;
}

.sg-brand-chips__item.is-active:hover {
    color: #0a0a0a;
}

.sg-brand-products__sort {
    flex: 0 0 auto;
}

.sg-brand-products__sort-btn {
    min-width: 205px;
    width: 205px;
}

.sg-brand-products__sort-btn .sg-catalog__sort-value {
    margin-right: auto;
}

.sg-brand-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
}

.sg-brand-products__grid > .sg-product-mini {
    height: auto;
    max-height: none;
}

.sg-brand-products__more {
    display: flex;
    justify-content: center;
    margin-top: 56px;
    padding-top: 16px;
}

.sg-brand-products__more-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 55px;
    padding: 20px 40px;
    border: 1px solid #fbfafa;
    border-radius: 4px;
    background: transparent;
    color: #fbfafa;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 1px;
    text-decoration: none;
}

.sg-brand-products__more-btn:hover {
    background: rgba(251, 250, 250, 0.06);
    color: #fbfafa;
}

@media (max-width: 1199px) {
    .sg-brand-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .sg-brand-hero {
        min-height: 420px;
        padding: 24px var(--sg-container-tablet) 40px;
    }

    .sg-brand-hero__content {
        gap: 24px;
    }

    .sg-brand-hero__text {
        gap: 20px;
        max-width: none;
    }

    .sg-brand-hero__title {
        font-size: 44px;
        line-height: 1;
    }

    .sg-brand-hero__lead {
        font-size: 18px;
    }

    .sg-brand__body {
        padding: 100px var(--sg-container-tablet) 80px;
    }

    .sg-brand-about {
        gap: 36px;
        margin-bottom: 100px;
    }

    .sg-brand-about__overline {
        font-size: 18px;
        line-height: 1.3;
    }

    .sg-brand-about__layout {
        flex-direction: column;
        gap: 24px;
    }

    .sg-brand-about__main {
        gap: 24px;
    }

    .sg-brand-about__title {
        font-size: 36px;
    }

    .sg-brand-about__text {
        font-size: 18px;
    }

    .sg-brand-facts {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .sg-brand-facts__item {
        width: calc((100% - 16px) / 2);
    }

    .sg-brand-facts__value {
        font-size: 18px;
        letter-spacing: -0.03em;
    }

    .sg-brand-facts__desc {
        font-size: 18px;
    }

    .sg-brand-products__head {
        margin-bottom: 36px;
    }

    .sg-brand-products__title {
        font-size: 36px;
    }

    .sg-brand-products__count {
        font-size: 18px;
    }

    .sg-brand-products__toolbar {
        align-items: flex-start;
        margin-bottom: 36px;
    }

    .sg-brand-chips {
        gap: 8px;
    }

    .sg-brand-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .sg-brand-products__more {
        margin-top: 40px;
        padding-top: 0;
    }

    .sg-brand-products__more-btn {
        min-width: 200px;
        height: 56px;
    }

    .sg-catalog__section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .sg-brand-hero {
        min-height: 380px;
        padding: 20px var(--sg-container-mobile) 32px;
    }

    .sg-brand-hero__content {
        align-items: center;
        gap: 20px;
    }

    .sg-brand-hero__logo {
        width: 196px;
        height: 42px;
    }

    .sg-brand-hero__logo img {
        object-position: center;
    }

    .sg-brand-hero__text {
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .sg-brand-hero__title {
        font-size: 36px;
        width: 100%;
    }

    .sg-brand-hero__lead {
        font-size: 16px;
        line-height: 1.1;
        max-width: none;
        width: 100%;
    }

    .sg-brand__body {
        padding: 100px var(--sg-container-mobile) 64px;
    }

    .sg-brand-about {
        gap: 32px;
        margin-bottom: 100px;
    }

    .sg-brand-about__overline {
        font-size: 16px;
        line-height: 1.2;
    }

    .sg-brand-about__main {
        gap: 20px;
    }

    .sg-brand-about__title {
        font-size: 28px;
    }

    .sg-brand-about__text {
        gap: 16px;
        font-size: 16px;
        line-height: 1.1;
    }

    .sg-brand-facts {
        gap: 12px;
    }

    .sg-brand-facts__item {
        width: calc((100% - 12px) / 2);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 20px;
        text-align: center;
    }

    .sg-brand-facts__value {
        min-width: 0;
        font-size: 16px;
        letter-spacing: 0;
    }

    .sg-brand-facts__desc {
        font-size: 16px;
        line-height: 1.1;
    }

    .sg-brand-products__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .sg-brand-products__title {
        font-size: 28px;
    }

    .sg-brand-products__count {
        font-size: 16px;
        line-height: 1.1;
    }

    .sg-brand-products__toolbar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .sg-brand-chips {
        gap: 10px;
    }

    .sg-brand-products__sort,
    .sg-brand-products__sort-btn {
        width: 100%;
        min-width: 0;
    }

    .sg-brand-products__grid {
        gap: 16px 12px;
    }

    .sg-brand-products__grid .sg-product-mini__media {
        height: 140px;
    }

    .sg-brand-products__more {
        margin-top: 36px;
    }

    .sg-brand-products__more-btn {
        width: 100%;
        min-width: 0;
        height: 56px;
        font-size: 16px;
    }
}

/* --- Favorites page: full-width grid without catalog filter column --- */
.sg-favorites__grid.sg-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    align-items: stretch;
}

.sg-favorites__grid > .sg-product-mini {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

.sg-favorites__grid .sg-product-mini__media {
    height: 320px;
    flex-shrink: 0;
}

.sg-favorites__grid .sg-product-mini__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sg-favorites__grid .sg-product-mini__body {
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 1199px) {
    .sg-favorites__grid.sg-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .sg-favorites__grid .sg-product-mini__media {
        height: 240px;
    }
}

@media (max-width: 575px) {
    .sg-favorites__grid.sg-catalog__grid {
        grid-template-columns: 1fr;
    }

    .sg-favorites__grid .sg-product-mini__media {
        height: 280px;
    }
}
