/* Phase2: product page styles. Loaded when $action == product. */

/* ── Product flavor profile (PDP): aroma left · taste right ── */
.p-taste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 4px;
    padding: 14px 0 4px;
    border-top: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 70%, transparent);
    min-width: 0;
    overflow: visible;
    container-type: inline-size;
    container-name: p-taste;
}
.p-taste__head {
    min-width: 0;
}
.p-taste__title {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--g-text, #1C2A24);
    line-height: 1.25;
}
.p-taste__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 16px;
    align-items: start;
    min-width: 0;
    overflow: visible;
}
.p-taste--split .p-taste__body {
    grid-template-columns: minmax(168px, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
        "atitle ttitle"
        "aroma  taste";
    align-items: start;
}
.p-taste--aroma-only .p-taste__body {
    grid-template-areas:
        "atitle"
        "aroma";
}
.p-taste--meters-only .p-taste__body {
    grid-template-areas:
        "ttitle"
        "taste";
}
.p-taste__col-title {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    line-height: 1.3;
    min-height: 1.3em;
}
.p-taste__col-title--aroma { grid-area: atitle; }
.p-taste__col-title--taste { grid-area: ttitle; }
.p-taste__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.p-taste__col--aroma {
    grid-area: aroma;
    overflow: visible;
}
.p-taste__col--taste {
    grid-area: taste;
    justify-content: flex-start;
    padding-top: 2px;
}
.p-taste__wheel-block {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow: visible;
    width: 100%;
    max-width: 260px;
    /* запас под ободные подписи слева/справа */
    padding: 2px 10px 0;
    box-sizing: border-box;
}
.p-taste__wheel {
    width: 100%;
    max-width: 248px;
    height: auto;
    aspect-ratio: 1;
    display: block;
    /* SVG по умолчанию режет текст за viewBox — без !important подписи обрезаются */
    overflow: visible !important;
}
.p-taste--split .p-taste__wheel {
    max-width: 236px;
}
.p-taste__seg {
    fill: color-mix(in srgb, var(--g-emerald, #0F5A4A) 8%, var(--g-bg, #F7F4EE));
    stroke: var(--g-border, #E2D8CF);
    stroke-width: 0.9;
    transform-box: view-box;
    transform-origin: 50px 50px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), fill 0.22s ease, stroke 0.22s ease, stroke-width 0.22s ease, filter 0.22s ease;
}
.p-taste__seg--on {
    fill: color-mix(in srgb, var(--g-emerald, #0F5A4A) 52%, #fff);
    stroke: var(--g-emerald, #0F5A4A);
}
.p-taste__slice--on {
    cursor: pointer;
}
.p-taste__slice--on:hover .p-taste__seg--on,
.p-taste__slice--on:focus-within .p-taste__seg--on {
    transform: scale(1.12);
    fill: color-mix(in srgb, var(--g-emerald, #0F5A4A) 72%, #fff);
    stroke: var(--g-emerald, #0F5A4A);
    stroke-width: 1.25;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--g-emerald, #0F5A4A) 45%, transparent));
}
.p-taste__slice--on:hover .p-taste__rim--on,
.p-taste__slice--on:focus-within .p-taste__rim--on {
    fill: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    font-weight: 700;
}
.p-taste__hub-fill {
    fill: var(--g-surface, #fff);
    pointer-events: none;
}
.p-taste__hub-label {
    font-family: var(--g-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: 15px;
    font-weight: 700;
    fill: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    pointer-events: none;
}
.p-taste__hub-sub {
    font-family: var(--g-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: 9.5px;
    font-weight: 600;
    fill: var(--g-muted, #5B6157);
    pointer-events: none;
}
.p-taste__rim {
    font-family: var(--g-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.015em;
    fill: var(--g-muted, #5B6157);
    pointer-events: none;
    transition: fill 0.22s ease;
    /* не обрезать хвосты букв у края viewBox */
    paint-order: stroke fill;
}
.p-taste__rim--on {
    font-weight: 700;
    fill: var(--g-text, #1C2A24);
}
.p-taste__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    color: var(--g-muted, #5B6157);
}
.p-taste__legend-on,
.p-taste__legend-off {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.p-taste__legend i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid var(--g-border, #E2D8CF);
    flex-shrink: 0;
}
.p-taste__legend-on i {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 52%, #fff);
    border-color: var(--g-emerald, #0F5A4A);
}
.p-taste__legend-off i {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 8%, var(--g-bg, #F7F4EE));
}
.p-taste__meters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.p-taste__meter {
    display: grid;
    grid-template-columns: minmax(0, 5.5rem) 1fr auto;
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
}
.p-taste__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--g-text, #1C2A24);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.p-taste__dots {
    display: flex;
    gap: 5px;
    align-items: center;
    min-width: 0;
}
.p-taste__dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.4px solid var(--g-emerald, #0F5A4A);
    background: transparent;
    flex-shrink: 0;
    transform-origin: center;
}
.p-taste__dots span.on {
    background: var(--g-emerald, #0F5A4A);
    opacity: 1;
    transform: scale(1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.p-taste__dots span.on.gold {
    background: var(--g-gold, #C6A15B);
    border-color: var(--g-gold-deep, #8A6D1E);
}
/* анимация только при наведении на шкалу — не при загрузке */
@media (prefers-reduced-motion: no-preference) {
    .p-taste__meter:hover .p-taste__dots span.on {
        animation: p-taste-dot-pop 0.5s cubic-bezier(0.34, 1.35, 0.64, 1) both;
    }
    .p-taste__meter:hover .p-taste__dots span:nth-child(1).on { animation-delay: 0ms; }
    .p-taste__meter:hover .p-taste__dots span:nth-child(2).on { animation-delay: 50ms; }
    .p-taste__meter:hover .p-taste__dots span:nth-child(3).on { animation-delay: 100ms; }
    .p-taste__meter:hover .p-taste__dots span:nth-child(4).on { animation-delay: 150ms; }
    .p-taste__meter:hover .p-taste__dots span:nth-child(5).on { animation-delay: 200ms; }
    .p-taste__meter:hover .p-taste__dots span.on:not(.gold) {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-emerald, #0F5A4A) 22%, transparent);
    }
    .p-taste__meter:hover .p-taste__dots span.on.gold {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-gold, #C6A15B) 35%, transparent);
    }
}
@keyframes p-taste-dot-pop {
    0%   { transform: scale(0.55); opacity: 0.5; }
    55%  { transform: scale(1.32); opacity: 1; }
    100% { transform: scale(1.12); opacity: 1; }
}
.p-taste__score {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    white-space: nowrap;
}

/* Динамика вкусового профиля — как у способа заварки */
.p-taste__head,
.p-taste__col-title,
.p-taste__col--aroma,
.p-taste__col--taste,
.p-taste__notes-block {
    animation: p-brew-in 0.45s ease both;
}
.p-taste__head { animation-delay: 0ms; }
.p-taste__col-title--aroma { animation-delay: 50ms; }
.p-taste__col-title--taste { animation-delay: 90ms; }
.p-taste__col--aroma { animation-delay: 110ms; }
.p-taste__col--taste { animation-delay: 160ms; }
.p-taste__notes-block { animation-delay: 220ms; }
.p-taste__meter {
    animation: p-brew-in 0.4s ease both;
    animation-delay: calc((var(--p-i, 1) - 1) * 70ms + 180ms);
}
.p-taste__note-chip {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    padding: 6px 12px;
    border-radius: 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    cursor: default;
    transform-origin: center bottom;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.35s ease,
        filter 0.2s ease;
}
/* появление: opacity остаётся 1 — hover больше не сбрасывает анимацию в 0 */
.js-p-taste-notes.is-inview .p-taste__note-chip {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: calc((var(--p-i, 1) - 1) * 55ms + 40ms), calc((var(--p-i, 1) - 1) * 55ms + 40ms), 0s, 0s, calc((var(--p-i, 1) - 1) * 55ms + 40ms), 0s;
}
/* hover: только чуть больше, без смены animation (иначе чип «пропадает») */
.js-p-taste-notes.is-inview .p-taste__note-chip:hover,
.js-p-taste-notes.is-inview .p-taste__note-chip:focus-visible {
    transform: translateY(-3px) scale(1.07);
    transition-delay: 0s;
    z-index: 1;
}
.p-taste__note-chip--0:hover,
.p-taste__note-chip--0:focus-visible {
    box-shadow: 0 6px 16px color-mix(in srgb, var(--g-emerald, #0F5A4A) 28%, transparent);
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 55%, transparent);
    filter: brightness(1.04);
}
.p-taste__note-chip--1:hover,
.p-taste__note-chip--1:focus-visible,
.p-taste__note-chip--roast:hover,
.p-taste__note-chip--roast:focus-visible {
    box-shadow: 0 6px 16px color-mix(in srgb, var(--g-gold, #C6A15B) 40%, transparent);
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 65%, transparent);
    filter: brightness(1.05);
}
.p-taste__note-chip--2:hover,
.p-taste__note-chip--2:focus-visible {
    box-shadow: 0 6px 14px color-mix(in srgb, var(--g-text, #1C2A24) 12%, transparent);
    border-color: color-mix(in srgb, var(--g-border, #E2D8CF) 100%, var(--g-text, #1C2A24) 15%);
    filter: brightness(1.03);
}
.p-taste__notes-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.p-taste__note-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 3 тона: изумруд · золото · лён */
.p-taste__note-chip--0 {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 14%, #fff);
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 28%, transparent);
}
.p-taste__note-chip--1 {
    background: var(--g-gold-soft, rgba(198, 161, 91, 0.18));
    color: var(--g-gold-deep, #8A6D1E);
    border: 1px solid color-mix(in srgb, var(--g-gold, #C6A15B) 40%, transparent);
}
.p-taste__note-chip--roast {
    background: var(--g-gold-soft, rgba(198, 161, 91, 0.18));
    color: var(--g-gold-deep, #8A6D1E);
    border: 1px solid color-mix(in srgb, var(--g-gold, #C6A15B) 40%, transparent);
}
.p-taste__note-chip--2 {
    background: color-mix(in srgb, var(--g-bg, #F7F4EE) 70%, #E8E0D4);
    color: var(--g-text, #1C2A24);
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 90%, transparent);
}
.p-taste__notes-desc {
    display: none;
}

.dark-theme .p-taste__seg {
    fill: color-mix(in srgb, var(--g-text, #ECE7DD) 7%, var(--g-surface, #1E2420));
    stroke: color-mix(in srgb, var(--g-muted, #A7ADA1) 28%, transparent);
}
/* «есть»: ярче emerald-soft, чтобы не сливаться с фоном кольца */
.dark-theme .p-taste__seg--on {
    fill: color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 78%, #0a2f28);
    stroke: var(--g-emerald-soft, #6AD4B8);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 50%, transparent));
}
.dark-theme .p-taste__slice--on:hover .p-taste__seg--on,
.dark-theme .p-taste__slice--on:focus-within .p-taste__seg--on {
    fill: color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 92%, #fff);
    stroke: var(--g-emerald-text, #72DCC4);
    stroke-width: 1.35;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 65%, transparent));
}
.dark-theme .p-taste__slice--on:hover .p-taste__rim--on,
.dark-theme .p-taste__slice--on:focus-within .p-taste__rim--on {
    fill: var(--g-emerald-text, #72DCC4);
}
.dark-theme .p-taste__hub-fill {
    fill: var(--g-surface, #1E2420);
}
.dark-theme .p-taste__hub-label {
    fill: var(--g-emerald-text, #72DCC4);
}
.dark-theme .p-taste__hub-sub {
    fill: color-mix(in srgb, var(--g-text, #ECE7DD) 72%, var(--g-muted, #A7ADA1));
}
.dark-theme .p-taste__rim {
    /* неактивные подписи: светлее muted — иначе на dark не читаются */
    fill: color-mix(in srgb, var(--g-text, #ECE7DD) 78%, var(--g-muted, #A7ADA1));
}
.dark-theme .p-taste__rim--on {
    fill: var(--g-text, #ECE7DD);
}
.dark-theme .p-taste__legend-on i {
    background: color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 78%, #0a2f28);
    border-color: var(--g-emerald-soft, #6AD4B8);
}
.dark-theme .p-taste__legend-off i {
    background: color-mix(in srgb, var(--g-text, #ECE7DD) 7%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-muted, #A7ADA1) 40%, transparent);
}
.dark-theme .p-taste__dots span {
    border-color: var(--g-emerald, #2E8B76);
}
.dark-theme .p-taste__dots span.on {
    background: var(--g-emerald, #2E8B76);
}
.dark-theme .p-taste__name {
    color: var(--g-text, #ECE7DD);
}
.dark-theme .p-taste__note-chip--0 {
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 22%, var(--g-surface, #1E2420));
    color: var(--g-emerald-text, #72DCC4);
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 40%, transparent);
}
.dark-theme .p-taste__note-chip--1 {
    background: var(--g-gold-soft, rgba(216, 184, 119, 0.16));
    color: var(--g-gold, #D8B877);
    border-color: color-mix(in srgb, var(--g-gold, #D8B877) 35%, transparent);
}
.dark-theme .p-taste__note-chip--2 {
    background: color-mix(in srgb, var(--g-surface, #1E2420) 80%, #2a302c);
    color: var(--g-text, #ECE7DD);
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}

.product-main__mobile-summary .p-taste {
    margin-top: 12px;
    padding-top: 12px;
}

/* Узкий контейнер: аромат сверху, вкус снизу; заголовки остаются над своими блоками */
@container p-taste (max-width: 340px) {
    .p-taste--split .p-taste__body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "atitle"
            "aroma"
            "ttitle"
            "taste";
        gap: 8px;
    }
    .p-taste--split .p-taste__wheel {
        max-width: 244px;
    }
}
@media (max-width: 560px) {
    .p-taste--split .p-taste__body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "atitle"
            "aroma"
            "ttitle"
            "taste";
        gap: 8px;
    }
    .p-taste--split .p-taste__wheel {
        max-width: 256px;
    }
    .p-taste__rim {
        font-size: 11px;
    }
    .p-taste__hub-label {
        font-size: 16px;
    }
    .p-taste__hub-sub {
        font-size: 10px;
    }
    .p-taste__meter {
        grid-template-columns: minmax(0, 4.75rem) 1fr auto;
        gap: 4px 8px;
    }
}

/* ── Product brew guide (PDP) — step flow ── */
.p-brew {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
    padding: 14px 0 4px;
    border-top: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 70%, transparent);
    min-width: 0;
}
.p-brew__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-brew__title {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--g-text, #1C2A24);
    line-height: 1.25;
}
.p-brew__lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--g-muted, #5B6157);
}
.p-brew__steps {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.p-brew__steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--g-emerald, #0F5A4A) 45%, transparent),
        color-mix(in srgb, var(--g-gold, #C6A15B) 55%, transparent)
    );
    opacity: 0.55;
    pointer-events: none;
}
.p-brew__step {
    position: relative;
    display: grid;
    grid-template-columns: 40px 44px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    min-width: 0;
    padding: 10px 0;
    animation: p-brew-in 0.45s ease both;
    animation-delay: calc((var(--p-brew-i, 1) - 1) * 70ms);
}
.p-brew__num {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    color: var(--g-gold-deep, #8A6D1E);
    letter-spacing: 0.02em;
}
.p-brew__icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--g-emerald, #0F5A4A);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--g-emerald, #0F5A4A) 14%, #fff), color-mix(in srgb, var(--g-bg, #F7F4EE) 80%, #fff));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 18%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.p-brew__step:hover .p-brew__icon {
    transform: translateY(-2px) scale(1.04);
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 35%, transparent);
}
.p-brew__step--temp .p-brew__icon,
.p-brew__step--time .p-brew__icon {
    color: var(--g-gold-deep, #8A6D1E);
    background:
        linear-gradient(145deg, var(--g-gold-soft, rgba(198, 161, 91, 0.22)), color-mix(in srgb, var(--g-bg, #F7F4EE) 75%, #fff));
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 35%, transparent);
}
.p-brew__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.p-brew__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
}
.p-brew__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    line-height: 1.3;
}
.p-brew__step--temp .p-brew__label,
.p-brew__step--time .p-brew__label {
    color: var(--g-gold-deep, #8A6D1E);
}
.p-brew__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--g-text, #1C2A24);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.p-brew__value--accent {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes p-brew-in {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .p-brew__step,
    .p-ware-guide__card {
        animation: none;
    }
    .p-brew__step:hover .p-brew__icon,
    .p-ware-guide__card:hover .p-ware-guide__icon,
    .p-ware__chip:hover,
    .p-ware__chip:focus-visible {
        transform: none;
    }
    .p-taste__head,
    .p-taste__col-title,
    .p-taste__col--aroma,
    .p-taste__col--taste,
    .p-taste__notes-block,
    .p-taste__meter,
    .p-taste__note-chip,
    .p-taste__dots span.on,
    .p-chars__fact,
    .p-chars__block,
    .p-overview__head,
    .p-overview__p,
    .p-overview__h,
    .p-overview__list,
    .p-ware,
    .p-ware-guide {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .p-audience__col:hover,
    .p-audience__col:hover .p-audience__badge,
    .p-audience__col:hover .p-audience__list li {
        transform: none !important;
        box-shadow: none !important;
    }
    .p-taste__note-chip:hover,
    .p-chars__fact:hover .p-chars__icon,
    .p-taste__slice--on:hover .p-taste__seg--on,
    .p-taste__slice--on:focus-within .p-taste__seg--on,
    .p-tags__chip:hover,
    .p-taste__meter:hover .p-taste__dots span.on {
        transform: none !important;
        filter: none !important;
        box-shadow: none !important;
        animation: none !important;
    }
    .p-tags__group,
    .p-tags__item {
        animation: none !important;
    }
}

.dark-theme .p-brew__lead {
    color: var(--g-muted, #A7ADA1);
}
.dark-theme .p-brew__icon {
    color: var(--g-emerald-soft, #6AD4B8);
    background: linear-gradient(145deg, color-mix(in srgb, var(--g-emerald, #2E8B76) 22%, var(--g-surface, #1E2420)), var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 30%, transparent);
    box-shadow: none;
}
.dark-theme .p-brew__step--temp .p-brew__icon,
.dark-theme .p-brew__step--time .p-brew__icon {
    color: var(--g-gold, #D8B877);
    background: linear-gradient(145deg, color-mix(in srgb, var(--g-gold, #D8B877) 18%, var(--g-surface, #1E2420)), var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-gold, #D8B877) 30%, transparent);
}
.dark-theme .p-brew__value {
    color: var(--g-text, #ECE7DD);
}
.dark-theme .p-brew__num {
    color: var(--g-gold, #D8B877);
}
.product-main__mobile-summary .p-brew {
    margin-top: 8px;
}

@media (min-width: 560px) {
    .p-brew__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }
    .p-brew__steps::before {
        display: none;
    }
    .p-brew__step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
        background:
            linear-gradient(155deg, color-mix(in srgb, var(--g-emerald, #0F5A4A) 5%, var(--g-bg, #F7F4EE)), var(--g-surface, #fff));
        border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 75%, transparent);
        animation-name: p-brew-in-up;
    }
    .p-brew__step--temp,
    .p-brew__step--time {
        background:
            linear-gradient(155deg, color-mix(in srgb, var(--g-gold, #C6A15B) 10%, var(--g-bg, #F7F4EE)), var(--g-surface, #fff));
    }
    .p-brew__num {
        position: absolute;
        top: 10px;
        right: 12px;
        line-height: 1;
        font-size: 12px;
        opacity: 0.7;
    }
    .p-brew__step {
        padding-top: 14px;
    }
    .dark-theme .p-brew__step {
        background: linear-gradient(155deg, color-mix(in srgb, var(--g-emerald, #2E8B76) 12%, var(--g-surface, #1E2420)), var(--g-surface, #1E2420));
        border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
    }
    .dark-theme .p-brew__step--temp,
    .dark-theme .p-brew__step--time {
        background: linear-gradient(155deg, color-mix(in srgb, var(--g-gold, #D8B877) 12%, var(--g-surface, #1E2420)), var(--g-surface, #1E2420));
    }
}
@keyframes p-brew-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Категории и теги PDP — чипы в фирменном стиле */
.product-tags.p-tags {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 40px;
    padding: 4px 0 0;
    min-width: 0;
}
.p-tags__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    animation: p-brew-in 0.45s ease both;
}
.p-tags__group:nth-child(1) { animation-delay: 40ms; }
.p-tags__group:nth-child(2) { animation-delay: 120ms; }
.p-tags__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    line-height: 1.3;
}
.p-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-tags__item {
    margin: 0;
    padding: 0;
    animation: p-brew-in-up 0.4s ease both;
    animation-delay: calc((var(--p-i, 1) - 1) * 45ms + 100ms);
}
.p-tags__chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.p-tags__chip:hover {
    transform: translateY(-2px);
}
.p-tags__chip--cat {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 14%, #fff);
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 28%, transparent);
}
.p-tags__chip--cat:hover {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 22%, #fff);
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 42%, transparent);
}
.p-tags__chip--0 {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 12%, #fff);
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 24%, transparent);
}
.p-tags__chip--1 {
    background: var(--g-gold-soft, rgba(198, 161, 91, 0.18));
    color: var(--g-gold-deep, #8A6D1E);
    border: 1px solid color-mix(in srgb, var(--g-gold, #C6A15B) 40%, transparent);
}
.p-tags__chip--2 {
    background: color-mix(in srgb, var(--g-bg, #F7F4EE) 70%, #E8E0D4);
    color: var(--g-text, #1C2A24);
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 90%, transparent);
}
.p-tags__chip--0:hover,
.p-tags__chip--1:hover,
.p-tags__chip--2:hover {
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 40%, transparent);
}
.dark-theme .p-tags__label {
    color: var(--g-emerald-text, #72DCC4);
}
.dark-theme .p-tags__chip--cat,
.dark-theme .p-tags__chip--0 {
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 18%, var(--g-surface, #1E2420));
    color: var(--g-emerald-soft, #6AD4B8);
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 32%, transparent);
}
.dark-theme .p-tags__chip--1 {
    background: color-mix(in srgb, var(--g-gold, #D8B877) 16%, var(--g-surface, #1E2420));
    color: var(--g-gold, #D8B877);
    border-color: color-mix(in srgb, var(--g-gold, #D8B877) 32%, transparent);
}
.dark-theme .p-tags__chip--2 {
    background: color-mix(in srgb, var(--g-surface, #1E2420) 90%, #2a302c);
    color: var(--g-text, #ECE7DD);
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}

/* ── Product overview (Обзор чая) — читаемый, спокойный ── */
.p-overview {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    max-width: 42rem;
}
.p-overview__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    animation: p-brew-in 0.45s ease both;
}
.p-overview__title {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    margin: 0;
    color: var(--g-text, #1C2A24);
    line-height: 1.3;
}
.p-overview__story {
    min-width: 0;
    padding: 18px 18px 20px;
    border-radius: 14px;
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--g-bg, #F7F4EE) 88%, #fff),
            color-mix(in srgb, var(--g-surface, #fff) 94%, var(--g-bg, #F7F4EE))
        );
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 75%, transparent);
}
.p-overview__p,
.p-overview__h,
.p-overview__list {
    animation: p-brew-in-up 0.4s ease both;
    animation-delay: calc((var(--p-i, 1) - 1) * 55ms + 60ms);
}

.p-overview__prose {
    font-family: var(--g-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: clamp(15.5px, 1.05vw, 17px);
    line-height: 1.78;
    letter-spacing: 0.005em;
    color: color-mix(in srgb, var(--g-text, #1C2A24) 92%, #5B6157);
    text-wrap: pretty;
}
.p-overview__prose > :first-child {
    margin-top: 0;
}
.p-overview__prose > :last-child {
    margin-bottom: 0;
}
.p-overview__h {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.55em 0 0.55em;
    line-height: 1.35;
    color: var(--g-text, #1C2A24);
    padding-left: 11px;
    border-left: 2.5px solid var(--g-gold, #C6A15B);
}
.p-overview__h:first-child {
    margin-top: 0;
}
.p-overview__p {
    margin: 0 0 1.05em;
}
.p-overview__p--lead {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: clamp(1.02rem, 1.8vw, 1.14rem);
    line-height: 1.62;
    font-weight: 500;
    color: var(--g-text, #1C2A24);
    padding-bottom: 0.95em;
    margin-bottom: 1.15em;
    border-bottom: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 72%, transparent);
}
.p-overview__p--callout {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.02rem;
    line-height: 1.58;
    font-style: italic;
    font-weight: 500;
    color: var(--g-text, #1C2A24);
    padding: 10px 0 10px 14px;
    margin: 1.15em 0;
    border-left: 2.5px solid var(--g-emerald, #0F5A4A);
    background: transparent;
    border-radius: 0;
}
.p-overview__p--process,
.p-overview__p--effect {
    padding: 12px 14px 12px 15px;
    margin: 1.2em 0;
    border-radius: 10px;
    border: 1px solid transparent;
}
.p-overview__p--process {
    background: color-mix(in srgb, var(--g-gold, #C6A15B) 7%, var(--g-surface, #fff));
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 20%, transparent);
}
.p-overview__p--effect {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 6%, var(--g-surface, #fff));
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 14%, transparent);
}
.p-overview__p--process::before,
.p-overview__p--effect::before {
    content: attr(data-ov-label);
    display: block;
    margin-bottom: 5px;
    font-family: var(--g-sans, "Source Sans 3", system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.3;
}
.p-overview__p--process::before {
    color: var(--g-gold-deep, #8A6D1E);
}
.p-overview__p--effect::before {
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
}
.p-overview__mark {
    background: color-mix(in srgb, var(--g-gold, #C6A15B) 18%, transparent);
    color: inherit;
    padding: 0 0.15em;
    border-radius: 2px;
    font-style: normal;
    font-weight: 600;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.p-overview__prose strong {
    font-weight: 700;
    color: var(--g-emerald, #0F5A4A);
}
.p-overview__prose a.p-overview__xref,
.p-overview__prose a:not([class]) {
    display: inline;
    color: var(--g-emerald, #0F5A4A);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid color-mix(in srgb, var(--g-gold, #C6A15B) 70%, transparent);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.p-overview__prose a.p-overview__xref:hover,
.p-overview__prose a:not([class]):hover {
    color: var(--g-emerald-hover, #0A4438);
    border-bottom-color: var(--g-gold, #C6A15B);
}
.p-overview__notes {
    list-style: none;
    margin: 0.35em 0 1.2em;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.p-overview__notes li {
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.86em;
    font-weight: 600;
    line-height: 1.35;
    color: var(--g-emerald, #0F5A4A);
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 8%, var(--g-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 16%, transparent);
    animation: p-brew-in-up 0.35s ease both;
}
.p-overview__notes li:nth-child(1) { animation-delay: 40ms; }
.p-overview__notes li:nth-child(2) { animation-delay: 80ms; }
.p-overview__notes li:nth-child(3) { animation-delay: 120ms; }
.p-overview__notes li:nth-child(4) { animation-delay: 160ms; }
.p-overview__notes li:nth-child(5) { animation-delay: 200ms; }
.p-overview__notes li:nth-child(6) { animation-delay: 240ms; }
.p-overview__notes li::before { display: none; }
.p-overview__quote {
    margin: 1.15em 0 1.35em;
    padding: 14px 16px 14px 18px;
    border-left: 3px solid var(--g-gold, #C6A15B);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--g-gold, #C6A15B) 8%, var(--g-surface, #fff));
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
    color: var(--g-text, #1C2A24);
    animation: p-brew-in-up 0.4s ease both;
}
.p-overview__list {
    list-style: none;
    margin: 0.5em 0 1.25em;
    padding: 0;
    display: grid;
    gap: 7px;
}
.p-overview__list li {
    position: relative;
    margin: 0;
    padding: 8px 10px 8px 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--g-surface, #fff) 70%, transparent);
    border: none;
    line-height: 1.5;
}
.p-overview__list li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0.85em;
    width: 6px;
    height: 6px;
    margin-top: 0;
    border-radius: 50%;
    background: var(--g-emerald, #0F5A4A);
    box-shadow: none;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .p-overview__story {
        padding: 14px 14px 16px;
        border-radius: 12px;
    }
    .p-overview__prose {
        font-size: 15.5px;
        line-height: 1.72;
    }
}

.dark-theme .p-overview__story {
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--g-surface, #1E2420) 92%, #2a302c),
        var(--g-surface, #1E2420)
    );
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}
.dark-theme .p-overview__p--callout {
    color: var(--g-text, #ECE7DD);
    border-left-color: var(--g-emerald, #2E8B76);
    background: transparent;
}
.dark-theme .p-overview__p--process {
    background: color-mix(in srgb, var(--g-gold, #D8B877) 8%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-gold, #D8B877) 20%, transparent);
}
.dark-theme .p-overview__p--effect {
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 10%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 22%, transparent);
}
.dark-theme .p-overview__mark {
    background: color-mix(in srgb, var(--g-gold, #D8B877) 20%, transparent);
}
.dark-theme .p-overview__prose strong {
    color: var(--g-emerald-soft, #6AD4B8);
}
.dark-theme .p-overview__prose a.p-overview__xref,
.dark-theme .p-overview__prose a:not([class]) {
    color: var(--g-emerald-soft, #6AD4B8);
    border-bottom-color: color-mix(in srgb, var(--g-gold, #D8B877) 55%, transparent);
}
.dark-theme .p-overview__notes li {
    color: var(--g-emerald-soft, #6AD4B8);
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 14%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 28%, transparent);
}
.dark-theme .p-overview__quote {
    color: var(--g-text, #ECE7DD);
    background: color-mix(in srgb, var(--g-gold, #D8B877) 10%, var(--g-surface, #1E2420));
    border-left-color: var(--g-gold, #D8B877);
}
.dark-theme .p-overview__list li {
    background: transparent;
    border: none;
}
.dark-theme .p-overview__list li::before {
    background: var(--g-emerald-soft, #6AD4B8);
    box-shadow: none;
}
.dark-theme .p-overview__h {
    color: var(--g-text, #ECE7DD);
}
.dark-theme .p-overview__prose {
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 90%, #A7ADA1);
}
.dark-theme .p-overview__p--lead {
    color: var(--g-text, #ECE7DD);
}

/* Характеристики: 3 цветных блока (география / сырьё / ценность) */
.p-chars {
    --p-geo: #0F5A4A;
    --p-leaf: #5C7A3A;
    --p-value: #B8862E;
    min-width: 0;
}
.p-prov { display: none !important; }

.p-chars__blocks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.p-chars__block {
    --p-accent: var(--p-geo);
    min-width: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--p-accent) 22%, var(--g-border, #E2D8CF));
    background:
        linear-gradient(160deg,
            color-mix(in srgb, var(--p-accent) 9%, var(--g-surface, #fff)) 0%,
            var(--g-surface, #fff) 48%);
    overflow: hidden;
    animation: p-brew-in-up 0.4s ease both;
}
.p-chars__block--geo { --p-accent: var(--p-geo); animation-delay: 0ms; }
.p-chars__block--leaf { --p-accent: var(--p-leaf); animation-delay: 60ms; }
.p-chars__block--value { --p-accent: var(--p-value); animation-delay: 120ms; }
.p-chars__block--ware { --p-accent: var(--p-leaf); animation-delay: 0ms; }
.p-chars__block--ware-item { --p-accent: var(--p-leaf); animation-delay: 0ms; }
.p-chars__block--ware-mat { --p-accent: var(--p-value); animation-delay: 60ms; }
.p-chars__block--ware-geo { --p-accent: var(--p-geo); animation-delay: 120ms; }

.p-chars__block-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 16%, transparent);
}
.p-chars__block-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--p-accent);
    background: color-mix(in srgb, var(--p-accent) 14%, var(--g-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--p-accent) 20%, transparent);
    flex-shrink: 0;
}
.p-chars__block-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.p-chars__block-titles {
    min-width: 0;
    padding-top: 1px;
}
.p-chars__block-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--p-accent);
    line-height: 1.25;
}
.p-chars__block-lead {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 650;
    color: var(--g-text, #1C2A24);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.p-chars__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 2px 6px 6px;
}
.p-chars__row {
    display: grid;
    grid-template-columns: minmax(78px, 38%) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: baseline;
    padding: 8px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 10%, var(--g-border, #E2D8CF));
    min-width: 0;
}
.p-chars__row:nth-last-child(-n+2) {
    border-bottom: 0;
}
.p-chars__row dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: color-mix(in srgb, var(--p-accent) 55%, var(--g-muted, #6B7A72));
    line-height: 1.3;
}
.p-chars__row dd {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--g-text, #1C2A24);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.p-chars__row--hint dd {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-chars__hint {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--g-muted, #5B6157);
    overflow-wrap: anywhere;
}

.dark-theme .p-chars {
    --p-geo: #6AD4B8;
    --p-leaf: #A8C96A;
    --p-value: #E0C06A;
}
.dark-theme .p-chars__block {
    background:
        linear-gradient(160deg,
            color-mix(in srgb, var(--p-accent) 14%, var(--g-surface, #1E2420)) 0%,
            var(--g-surface, #1E2420) 55%);
    border-color: color-mix(in srgb, var(--p-accent) 28%, rgba(216, 184, 119, 0.12));
}
.dark-theme .p-chars__block-head {
    border-bottom-color: color-mix(in srgb, var(--p-accent) 22%, transparent);
}
.dark-theme .p-chars__block-icon {
    background: color-mix(in srgb, var(--p-accent) 16%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--p-accent) 28%, transparent);
}
.dark-theme .p-chars__block-lead,
.dark-theme .p-chars__row dd {
    color: var(--g-text, #ECE7DD);
}
.dark-theme .p-chars__hint {
    color: var(--g-muted, #A8B0A6);
}
.dark-theme .p-chars__row {
    border-bottom-color: color-mix(in srgb, var(--p-accent) 14%, rgba(216, 184, 119, 0.1));
}
.dark-theme .p-chars__row dt {
    color: color-mix(in srgb, var(--p-accent) 45%, var(--g-muted, #A8B5AD));
}

@media (min-width: 900px) {
    .p-chars__blocks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
    }
    .p-chars__grid {
        grid-template-columns: 1fr;
    }
    .p-chars__row:nth-last-child(-n+2) {
        border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 10%, var(--g-border, #E2D8CF));
    }
    .p-chars__row:last-child {
        border-bottom: 0;
    }
    .dark-theme .p-chars__row:nth-last-child(-n+2) {
        border-bottom-color: color-mix(in srgb, var(--p-accent) 14%, rgba(216, 184, 119, 0.1));
    }
}

@media (max-width: 899px) {
    .p-chars__blocks {
        gap: 8px;
    }
    .p-chars__block {
        border-radius: 11px;
        border-left-width: 3px;
        border-left-color: var(--p-accent);
    }
    .p-chars__block-head {
        padding: 10px 12px 8px;
        gap: 9px;
        grid-template-columns: 32px minmax(0, 1fr);
    }
    .p-chars__block-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .p-chars__block-icon svg {
        width: 16px;
        height: 16px;
    }
    .p-chars__block-title {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .p-chars__block-lead {
        font-size: 13px;
    }
    .p-chars__grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 4px 4px;
    }
    .p-chars__row {
        grid-template-columns: 1fr;
        gap: 1px;
        padding: 7px 8px;
    }
    .p-chars__row dt {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    .p-chars__row dd {
        font-size: 12.5px;
    }
    .p-chars__row:nth-last-child(-n+2) {
        border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 10%, var(--g-border, #E2D8CF));
    }
    .p-chars__row:last-child {
        border-bottom: 0;
    }
    /* нечётный последний ряд — на всю ширину */
    .p-chars__row:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 380px) {
    .p-chars__grid {
        grid-template-columns: 1fr;
    }
    .p-chars__row:nth-last-child(-n+2) {
        border-bottom: 1px solid color-mix(in srgb, var(--p-accent) 10%, var(--g-border, #E2D8CF));
    }
    .p-chars__row:last-child {
        border-bottom: 0;
    }
    .p-chars__row {
        grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
        gap: 6px;
        align-items: baseline;
    }
    .p-chars__row dt {
        text-transform: none;
        letter-spacing: 0;
        font-size: 11px;
    }
}

/* ===== PDP CRO package: offer / audience / review quote ===== */
/* H1 + actions в ряд; оффер — на всю ширину ниже (не рядом с длинным названием) */
.product-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    line-height: normal;
}
.product-head__row {
    display: flex;
    align-items: flex-start;
    gap: 16px 24px;
    min-width: 0;
}
.product-head__row h1 {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}
.product-head__actions {
    flex: 0 0 auto;
    margin-left: 0;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
@media (max-width: 850px) {
    .product-head {
        display: flex !important;
        flex-direction: column;
        line-height: normal;
    }
    .product-head__row {
        flex-direction: column;
        gap: 12px;
    }
    .product-head__row h1 {
        margin-bottom: 0;
    }
}
@media (max-width: 700px) {
    .product-head {
        margin-bottom: 20px;
        line-height: normal;
    }
}

.p-offer {
    margin: 0;
    max-width: 42rem;
    min-width: 0;
}
.p-offer__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--g-text, #1C2A24) 88%, var(--g-muted, #5b6157));
    animation: p-offer-in 0.45s ease both;
    overflow-wrap: break-word;
}
@media (max-width: 400px) {
    .p-offer__lead {
        font-size: 14px;
        line-height: 1.45;
    }
}
/* чипы под оффером не используем — ноты только в .p-taste__note-chips */
.p-offer__chips {
    display: none;
}
.p-offer__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    max-width: 100%;
    overflow-wrap: break-word;
    animation: p-offer-chip-in 0.4s ease both;
    animation-delay: calc(80ms + var(--p-i, 0) * 55ms);
    transition: transform 0.2s ease;
}
.p-offer__chip--0 {
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 10%, var(--g-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 18%, transparent);
}
.p-offer__chip--1,
.p-offer__chip--roast {
    color: #6b5420;
    background: color-mix(in srgb, var(--g-amber, #C9A227) 14%, var(--g-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--g-amber, #C9A227) 28%, transparent);
}
.p-offer__chip--2 {
    color: var(--g-text, #1C2A24);
    background: color-mix(in srgb, var(--g-border, #E2D8CF) 55%, var(--g-surface, #fff));
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 90%, transparent);
}
.p-offer__chip:hover {
    transform: translateY(-1px);
}
@keyframes p-offer-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes p-offer-chip-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .p-offer__lead,
    .p-offer__chip {
        animation: none;
    }
    .p-offer__chip:hover {
        transform: none;
    }
}
.dark-theme .p-offer__lead {
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 90%, #A7ADA1);
}
.dark-theme .p-offer__chip--0 {
    color: var(--g-emerald-soft, #6AD4B8);
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 16%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #2E8B76) 28%, transparent);
}
.dark-theme .p-offer__chip--1,
.dark-theme .p-offer__chip--roast {
    color: #e6d3a0;
    background: color-mix(in srgb, var(--g-amber, #C9A227) 18%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-amber, #C9A227) 32%, transparent);
}
.dark-theme .p-offer__chip--2 {
    color: var(--g-text, #ECE7DD);
    background: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 40%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}

/* ₽/г в блоке цены справа */
.product-main__stock-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
    max-width: 100%;
}
.product-main__price-per-g {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--g-muted, #5b6157);
    white-space: nowrap;
}
.product-main__price-per-g.display-none {
    display: none;
}
.dark-theme .product-main__price-per-g {
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 65%, transparent);
}

/* buy-box: убрать 5px overflow от margin ±5 у кнопок */
.product-main__prices-add2cart {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}
.product-main__prices-add2cart .product-main__btns {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.product-main__prices-add2cart .product-main__btns > * {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.product-main__cart {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.product-main__content,
.product-main__cart-outer,
.product-main {
    min-width: 0;
}
@media (max-width: 400px) {
    .product-main__cart {
        padding: 20px;
    }
}

/* Наличие + артикул: одна служебная строка, без отдельного «блока артикула» */
.product-main__avail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0 0 14px;
    min-width: 0;
}
.product-main__avail .product-main__stock {
    margin: 0;
}
.product-main__avail .product-main__sku,
.product-main__avail .product-sku {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--g-muted, #5b6157);
}
.product-main__avail .product-sku__title {
    font-weight: 400;
    opacity: 0.85;
}
.product-main__cart .product-main__avail .product-main__sku {
    margin-bottom: 0;
}
.dark-theme .product-main__avail .product-main__sku,
.dark-theme .product-main__avail .product-sku {
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 62%, transparent);
}

.p-audience {
    display: grid;
    /* в узкой колонке контента/корзины (~300px) — 1 колонка; шире — 2 */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin: 12px 0 14px;
    padding: 0;
    background: none;
    border: none;
    min-width: 0;
}
.p-audience__col {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    box-sizing: border-box;
    opacity: 1;
    transform: scale(1) translateY(0);
    transform-origin: center top;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.2s ease;
}
/* только увеличение при hover — без opacity:0 и без сброса animation (иначе «пропадает») */
@media (prefers-reduced-motion: no-preference) {
    .p-audience__col:hover {
        transform: scale(1.035) translateY(-3px);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--g-text, #1C2A24) 10%, transparent);
        z-index: 1;
    }
    .p-audience__badge {
        transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
        transform: scale(1);
    }
    .p-audience__col:hover .p-audience__badge {
        transform: scale(1.14);
    }
    .p-audience__list li {
        transition: transform 0.22s ease;
        transform: scale(1);
    }
    .p-audience__col:hover .p-audience__list li {
        transform: scale(1.02);
    }
}
/* «да» — мягкий изумруд; «нет» — льняной фон */
.p-audience__col--yes {
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 9%, var(--g-surface, #fff));
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 18%, transparent);
}
.p-audience__col--no {
    background: color-mix(in srgb, var(--g-bg, #F7F4EE) 88%, #E8DFD2);
    border-color: color-mix(in srgb, var(--g-border, #E2D8CF) 90%, transparent);
}
.p-audience__label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
}
.p-audience__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35em;
    height: 1.35em;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.p-audience__col--yes .p-audience__label {
    color: var(--g-emerald-text, var(--g-emerald, #0F5A4A));
}
.p-audience__col--yes .p-audience__badge {
    background: var(--g-emerald, #0F5A4A);
    color: #fff;
}
.p-audience__col--no .p-audience__label {
    color: var(--g-muted, #5b6157);
}
.p-audience__col--no .p-audience__badge {
    background: color-mix(in srgb, var(--g-muted, #5b6157) 18%, var(--g-bg, #F7F4EE));
    color: var(--g-muted, #5b6157);
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 90%, transparent);
}
.p-audience__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-audience__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    /* Аудит 18.08.2026, п.12: было 13px при body 15px — самый убедительный
       блок карточки («кому подойдёт / кому нет») набирался мельче основного
       текста. На мобиле 40 из 60 длинных текстовых узлов шли 13px. */
    font-size: 15px;
    line-height: 1.5;
    color: var(--g-text, #1C2A24);
    overflow-wrap: break-word;
}
.p-audience__list li:last-child {
    margin-bottom: 0;
}
.p-audience__mark {
    flex-shrink: 0;
    width: 1em;
    margin-top: 0.1em;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}
.p-audience__col--yes .p-audience__mark {
    color: var(--g-emerald, #0F5A4A);
}
.p-audience__col--no .p-audience__mark {
    color: var(--g-muted, #5b6157);
}
.p-audience__item {
    min-width: 0;
    flex: 1;
}
.dark-theme .p-audience__col--yes {
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 16%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald-soft, #6AD4B8) 28%, transparent);
}
.dark-theme .p-audience__col--no {
    background: color-mix(in srgb, var(--g-bg, #151916) 70%, #2A2F2B);
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}
.dark-theme .p-audience__col--yes .p-audience__label {
    color: var(--g-emerald-soft, #6AD4B8);
}
.dark-theme .p-audience__col--yes .p-audience__badge {
    background: var(--g-emerald-soft, #6AD4B8);
    color: #0F1A16;
}
.dark-theme .p-audience__col--yes .p-audience__mark {
    color: var(--g-emerald-soft, #6AD4B8);
}
.dark-theme .p-audience__col--no .p-audience__label,
.dark-theme .p-audience__col--no .p-audience__mark {
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 68%, transparent);
}
.dark-theme .p-audience__col--no .p-audience__badge {
    background: color-mix(in srgb, var(--g-text, #ECE7DD) 12%, transparent);
    color: color-mix(in srgb, var(--g-text, #ECE7DD) 75%, transparent);
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}
.dark-theme .p-audience__list li {
    color: var(--g-text, #ECE7DD);
}

.p-review-quote {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 3px solid var(--g-emerald, #0F5A4A);
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 6%, var(--g-surface, #fff));
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.p-review-quote__text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--g-text, #1C2A24);
    font-style: italic;
    overflow-wrap: break-word;
}
.p-review-quote__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 12px;
    color: var(--g-muted, #5b6157);
    min-width: 0;
}
.p-review-quote__author {
    font-style: normal;
    font-weight: 600;
    color: var(--g-text, #1C2A24);
    max-width: 100%;
    overflow-wrap: break-word;
}
.p-review-quote__stars {
    color: var(--g-amber, #C9A227);
    letter-spacing: 1px;
}
.p-review-quote__star--off {
    opacity: 0.28;
}
.p-review-quote__more {
    cursor: pointer;
}
.dark-theme .p-review-quote {
    background: color-mix(in srgb, var(--g-emerald, #2E8B76) 12%, var(--g-surface, #1E2420));
    border-left-color: var(--g-emerald-soft, #6AD4B8);
}
.dark-theme .p-review-quote__text,
.dark-theme .p-review-quote__author {
    color: var(--g-text, #ECE7DD);
}

.product-main__taste-brew {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Funnel ≤799px: title → gallery → cart/buy → offer → taste → decide → content.
   H1 внутри form (.product-main__head). Оффер после buy, не между названием и фото. */
@media (max-width: 799px) {
    .product-main.-sk-mobile {
        display: flex;
        flex-direction: column;
    }
    .product-main__head {
        order: 0;
        width: 100%;
        margin: 0 0 10px;
    }
    .product-main__gallery-outer {
        order: 1;
    }
    .product-main__cart-outer {
        order: 2;
    }
    .product-main__offer-after-buy {
        order: 3;
        width: 100%;
        margin: 12px 0 0;
    }
    .product-main__taste-brew,
    .product-main__ware-profile {
        order: 12;
        width: 100%;
        margin-top: 8px;
    }
    .product-main__decide {
        order: 14;
        width: 100%;
    }
    .product-main__content {
        order: 16;
    }
}

/* legacy ≤599 kept in sync (site.css sets gallery/content/cart orders) */
@media (max-width: 599px) {
    .product-main__cart-outer {
        order: 2;
    }
    .product-main__content {
        order: 16;
    }
    .product-main__taste-brew,
    .product-main__ware-profile {
        order: 12;
        width: 100%;
        margin-top: 8px;
    }
    .product-main__decide {
        order: 14;
        width: 100%;
    }
}

/* Desktop grid: вкус/заварка и посуда — на всю ширину под колонками */
@media (min-width: 600px) {
    .product-main__taste-brew,
    .product-main__ware-profile,
    .product-main__decide {
        grid-column: 1 / -1;
    }
}

.product-main__decide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    min-width: 0;
}

/* ── Ware PDP profile + guide (только $ghs_is_ware) ── */
.product-main__ware-profile {
    margin: 12px 0 0;
    min-width: 0;
}
.p-ware {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 8px;
    padding: 14px 0 4px;
    border-top: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 70%, transparent);
    min-width: 0;
}
.p-ware__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-ware__title {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--g-text, #1C2A24);
    line-height: 1.25;
}
.p-ware__lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--g-muted, #5B6157);
    overflow-wrap: anywhere;
}
.p-ware__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-ware__chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 22%, transparent);
    background: color-mix(in srgb, var(--g-emerald, #0F5A4A) 10%, #fff);
    cursor: default;
    opacity: 1;
    transform: scale(1);
    transform-origin: center bottom;
    transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
.p-ware__chip:nth-child(even) {
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 36%, transparent);
    background: var(--g-gold-soft, rgba(198, 161, 91, 0.16));
}
.p-ware__chip:hover,
.p-ware__chip:focus-visible {
    transform: translateY(-2px) scale(1.05);
    z-index: 1;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--g-text, #1C2A24) 10%, transparent);
}
.p-ware__chip-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--g-muted, #5B6157);
    line-height: 1.2;
}
.p-ware__chip-value {
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    color: var(--g-text, #1C2A24);
    overflow-wrap: anywhere;
}
.p-ware__chip--clay,
.p-ware__chip--form {
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 40%, transparent);
    background: var(--g-gold-soft, rgba(198, 161, 91, 0.18));
}
.p-ware__chip--clay .p-ware__chip-value,
.p-ware__chip--form .p-ware__chip-value {
    color: var(--g-gold-deep, #8A6D1E);
}

.p-ware-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
    padding: 14px 0 4px;
    border-top: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 70%, transparent);
    min-width: 0;
}
.p-ware-guide__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-ware-guide__title {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--g-text, #1C2A24);
    line-height: 1.25;
}
.p-ware-guide__lead {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--g-muted, #5B6157);
}
.p-ware-guide__cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.p-ware-guide__cards::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--g-emerald, #0F5A4A) 45%, transparent),
        color-mix(in srgb, var(--g-gold, #C6A15B) 55%, transparent)
    );
    opacity: 0.55;
    pointer-events: none;
}
.p-ware-guide__card {
    position: relative;
    display: grid;
    grid-template-columns: 40px 48px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    min-width: 0;
    padding: 10px 0;
    animation: p-brew-in 0.45s ease both;
    animation-delay: calc((var(--p-wg-i, 1) - 1) * 70ms);
}
.p-ware-guide__num {
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    color: var(--g-gold-deep, #8A6D1E);
    letter-spacing: 0.02em;
}
.p-ware-guide__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--g-emerald, #0F5A4A);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--g-emerald, #0F5A4A) 14%, #fff), color-mix(in srgb, var(--g-bg, #F7F4EE) 80%, #fff));
    border: 1px solid color-mix(in srgb, var(--g-emerald, #0F5A4A) 18%, transparent);
    box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.p-ware-guide__icon svg {
    width: 28px;
    height: 28px;
    overflow: visible;
}
.p-ware-guide__card:hover .p-ware-guide__icon {
    transform: translateY(-2px) scale(1.04);
    border-color: color-mix(in srgb, var(--g-emerald, #0F5A4A) 35%, transparent);
}
.p-ware-guide__card--form .p-ware-guide__icon,
.p-ware-guide__card--care .p-ware-guide__icon {
    color: var(--g-gold-deep, #8A6D1E);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--g-gold, #C6A15B) 18%, #fff), color-mix(in srgb, var(--g-bg, #F7F4EE) 80%, #fff));
    border-color: color-mix(in srgb, var(--g-gold, #C6A15B) 28%, transparent);
}
.p-ware-guide__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}
.p-ware-guide__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--g-muted, #5B6157);
}
.p-ware-guide__value,
.p-ware-guide__pair,
.p-ware-guide__clay {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--g-text, #1C2A24);
    overflow-wrap: anywhere;
}
.p-ware-guide__pair,
.p-ware-guide__clay {
    font-size: 12.5px;
    color: var(--g-muted, #5B6157);
}
.p-ware-guide__clay strong {
    color: var(--g-text, #1C2A24);
    font-weight: 650;
}

.dark-theme .p-ware,
.dark-theme .p-ware-guide {
    border-top-color: color-mix(in srgb, rgba(216, 184, 119, 0.22) 70%, transparent);
}
.dark-theme .p-ware__title,
.dark-theme .p-ware-guide__title,
.dark-theme .p-ware__chip-value,
.dark-theme .p-ware-guide__value {
    color: var(--g-text, #E8E4DC);
}
.dark-theme .p-ware__chip {
    background: color-mix(in srgb, var(--g-emerald, #6AD4B8) 12%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #6AD4B8) 28%, transparent);
}
.dark-theme .p-ware__chip:nth-child(even),
.dark-theme .p-ware__chip--clay,
.dark-theme .p-ware__chip--form {
    background: color-mix(in srgb, var(--g-gold, #E0C06A) 14%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-gold, #E0C06A) 32%, transparent);
}
.dark-theme .p-ware-guide__icon {
    background: color-mix(in srgb, var(--g-emerald, #6AD4B8) 14%, var(--g-surface, #1E2420));
    border-color: color-mix(in srgb, var(--g-emerald, #6AD4B8) 24%, transparent);
}

.p-decide {
    margin: 0;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--g-border, #E2D8CF) 80%, transparent);
    background: color-mix(in srgb, var(--g-surface, #fff) 92%, transparent);
    overflow: hidden;
}

.p-decide__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    font-family: var(--g-serif, "Literata", Georgia, serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--g-text, #1C2A24);
    user-select: none;
}

.p-decide__summary::-webkit-details-marker {
    display: none;
}

.p-decide__summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.2s ease;
    margin-top: -0.2em;
}

.p-decide[open] .p-decide__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.15em;
}

.p-decide__body {
    padding: 0 12px 12px;
    min-width: 0;
}

/* внутри аккордеона свои заголовки не дублируем */
.p-decide--audience .p-audience {
    margin-top: 0;
}
.p-decide--brew .p-brew {
    margin-top: 0;
    padding-top: 4px;
    border-top: none;
}
.p-decide--brew .p-brew__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.p-decide--ware-material .p-ware-guide {
    margin-top: 0;
    padding-top: 4px;
    border-top: none;
}
.p-decide--ware-material .p-ware-guide__title,
.p-decide--ware-material .p-ware-guide__lead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dark-theme .p-decide {
    background: color-mix(in srgb, var(--g-surface, #1E2420) 88%, #000);
    border-color: color-mix(in srgb, var(--g-border, rgba(216, 184, 119, 0.16)) 90%, transparent);
}
.dark-theme .p-decide__summary {
    color: var(--g-text, #ECE7DD);
}

.product-trust-more {
    margin: 6px 0 0;
}
.product-trust-more__summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--g-emerald, #0F5A4A);
    user-select: none;
}
.product-trust-more__summary::-webkit-details-marker {
    display: none;
}
.product-trust-more__summary::after {
    content: "";
    width: 0.4em;
    height: 0.4em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    margin-top: -0.15em;
}
.product-trust-more[open] .product-trust-more__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.1em;
}
.product-trust--extra {
    margin: 6px 0 0;
}
.product-trust--compact {
    margin-bottom: 0;
}
.dark-theme .product-trust-more__summary {
    color: var(--g-emerald-soft, #6AD4B8);
}

/* PDP: sticky «В корзину» не перекрывает «Рекомендуем посмотреть» / related */
body:has(.product-fixed-cart.sk-bottom.sk-fixed),
body.ghs-product-fixed-cart-on {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

body:has(.product-fixed-cart.sk-bottom.sk-fixed) .products-list__offers,
body.ghs-product-fixed-cart-on .products-list__offers {
    scroll-margin-bottom: 88px;
}

body:has(.product-fixed-cart.sk-bottom.sk-fixed) .products-list__offers:last-of-type,
body.ghs-product-fixed-cart-on .products-list__offers:last-of-type {
    padding-bottom: 12px;
    margin-bottom: 8px;
}

/* Заголовок related: «Сравнить все» рядом с title */
.products-list__offers .wrap-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.products-list__offers .wrap-section__title {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.products-list__offers .wrap-section__title .wrap-section__more {
    flex: 0 0 auto;
    font-family: var(--main-font, inherit);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.products-list__offers .wrap-section__direction {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 600px) {
    body:has(.product-fixed-cart.sk-bottom.sk-fixed),
    body.ghs-product-fixed-cart-on {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }
}


/* -------------------------------------------------------------------------- */
/* PDP: rating-distribution — contrast on dark + entrance animation           */
/* -------------------------------------------------------------------------- */
.rating-distribution__bar {
    overflow: hidden;
    background: color-mix(in srgb, var(--g-gold, #C6A15B) 18%, var(--wrap-bg-color, #eee));
}

.rating-distribution__filling,
.rating-distribution__filling.bg-bs-color {
    background: var(--rating-color, var(--g-gold, #C6A15B)) !important;
    box-shadow: none;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.dark-theme .rating-distribution__bar {
    background: rgba(255, 255, 255, 0.14);
}

.dark-theme .rating-distribution__filling,
.dark-theme .rating-distribution__filling.bg-bs-color {
    background: var(--rating-color, var(--g-gold, #D8B877)) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--g-gold, #D8B877) 35%, transparent);
}

.dark-theme .rating-distribution__count,
.dark-theme td.rating-distribution__count {
    color: rgba(236, 231, 221, 0.72);
}

.dark-theme .rating-distribution__stars .rating,
.dark-theme .rating-distribution__stars .icon10.star,
.dark-theme .rating-distribution__stars .icon10.star-half,
.dark-theme .rating-distribution__stars .fa-star {
    color: var(--rating-color, var(--g-gold, #D8B877));
}

.dark-theme .rating-distribution__stars .icon10.star-empty {
    opacity: 0.45;
    color: var(--rating-color, var(--g-gold, #D8B877));
}

.dark-theme .product-rating-total__stars .icon16.star,
.dark-theme .product-rating-total__stars .icon16.star-half,
.dark-theme .product-rating-total__stars .fa-star,
.dark-theme .product-rating-total__stars .fa-star-half-alt {
    color: var(--rating-color, var(--g-gold, #D8B877));
}

.dark-theme .product-rating-total__stars .icon16.star-empty {
    opacity: 0.4;
    color: var(--rating-color, var(--g-gold, #D8B877));
}

/* Entrance: bars grow, stars pop — stagger by row */
@media (prefers-reduced-motion: no-preference) {
    .rating-distribution__filling {
        transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: calc(var(--rd-i, 0) * 70ms);
    }

    .rating-distribution.is-inview .rating-distribution__filling {
        transform: scaleX(1);
    }

    .rating-distribution__stars .rating > i,
    .rating-distribution__stars .rating .icon10,
    .rating-distribution__stars .rating .fa-star {
        display: inline-block;
        opacity: 0;
        transform: scale(0.45) translateY(4px);
        transition:
            opacity 0.35s ease,
            transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
        transition-delay: calc(60ms + var(--rd-i, 0) * 85ms);
    }

    .rating-distribution.is-inview .rating-distribution__stars .rating > i,
    .rating-distribution.is-inview .rating-distribution__stars .rating .icon10,
    .rating-distribution.is-inview .rating-distribution__stars .rating .fa-star {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .rating-distribution.is-inview .rating-distribution__stars .icon10.star-empty {
        opacity: 0.4;
    }

    .dark-theme .rating-distribution.is-inview .rating-distribution__stars .icon10.star-empty {
        opacity: 0.45;
    }

    .rating-distribution__count {
        opacity: 0;
        transform: translateX(6px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(120ms + var(--rd-i, 0) * 70ms);
    }
    .rating-distribution.is-inview .rating-distribution__count {
        opacity: 1;
        transform: translateX(0);
    }

    /* Hover: повтор «появления» полосы и звёзд по строке */
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__filling {
        transition: none;
        animation: rd-bar-appear 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > i,
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10,
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .fa-star {
        transition: none;
        animation: rd-star-appear 0.42s cubic-bezier(0.34, 1.35, 0.64, 1) both;
    }

    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > *:nth-child(1),
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10:nth-child(1) { animation-delay: 0ms; }
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > *:nth-child(2),
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10:nth-child(2) { animation-delay: 45ms; }
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > *:nth-child(3),
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10:nth-child(3) { animation-delay: 90ms; }
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > *:nth-child(4),
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10:nth-child(4) { animation-delay: 135ms; }
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating > *:nth-child(5),
    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .rating .icon10:nth-child(5) { animation-delay: 180ms; }

    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__stars .icon10.star-empty {
        animation-name: rd-star-appear-empty;
    }

    .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__bar {
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--g-gold, #C6A15B) 35%, transparent);
    }

    .dark-theme .rating-distribution.is-inview .rating-distribution__row:hover .rating-distribution__filling {
        box-shadow: 0 0 14px color-mix(in srgb, var(--g-gold, #D8B877) 55%, transparent);
    }

    /* Hover: крупные звёзды среднего рейтинга сверху */
    .product-rating-total__stars .icon16,
    .product-rating-total__stars .icon10,
    .product-rating-total__stars .fa-star,
    .product-rating-total__stars .fa-star-half-alt,
    .product-rating-total__stars i {
        display: inline-block;
    }

    .product-rating-total__stars:hover .icon16,
    .product-rating-total__stars:hover .icon10,
    .product-rating-total__stars:hover .fa-star,
    .product-rating-total__stars:hover .fa-star-half-alt,
    .product-rating-total__stars:hover i {
        animation: rd-star-appear 0.45s cubic-bezier(0.34, 1.35, 0.64, 1) both;
    }

    .product-rating-total__stars:hover .icon16:nth-child(1),
    .product-rating-total__stars:hover .icon10:nth-child(1),
    .product-rating-total__stars:hover .fa-star:nth-child(1),
    .product-rating-total__stars:hover .fa-star-half-alt:nth-child(1),
    .product-rating-total__stars:hover i:nth-child(1) { animation-delay: 0ms; }
    .product-rating-total__stars:hover .icon16:nth-child(2),
    .product-rating-total__stars:hover .icon10:nth-child(2),
    .product-rating-total__stars:hover .fa-star:nth-child(2),
    .product-rating-total__stars:hover .fa-star-half-alt:nth-child(2),
    .product-rating-total__stars:hover i:nth-child(2) { animation-delay: 50ms; }
    .product-rating-total__stars:hover .icon16:nth-child(3),
    .product-rating-total__stars:hover .icon10:nth-child(3),
    .product-rating-total__stars:hover .fa-star:nth-child(3),
    .product-rating-total__stars:hover .fa-star-half-alt:nth-child(3),
    .product-rating-total__stars:hover i:nth-child(3) { animation-delay: 100ms; }
    .product-rating-total__stars:hover .icon16:nth-child(4),
    .product-rating-total__stars:hover .icon10:nth-child(4),
    .product-rating-total__stars:hover .fa-star:nth-child(4),
    .product-rating-total__stars:hover .fa-star-half-alt:nth-child(4),
    .product-rating-total__stars:hover i:nth-child(4) { animation-delay: 150ms; }
    .product-rating-total__stars:hover .icon16:nth-child(5),
    .product-rating-total__stars:hover .icon10:nth-child(5),
    .product-rating-total__stars:hover .fa-star:nth-child(5),
    .product-rating-total__stars:hover .fa-star-half-alt:nth-child(5),
    .product-rating-total__stars:hover i:nth-child(5) { animation-delay: 200ms; }

    .product-rating-total__stars:hover .icon16.star-empty,
    .product-rating-total__stars:hover .icon10.star-empty {
        animation-name: rd-star-appear-empty;
    }
}

@keyframes rd-bar-appear {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes rd-star-appear {
    from {
        opacity: 0;
        transform: scale(0.4) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rd-star-appear-empty {
    from {
        opacity: 0;
        transform: scale(0.4) translateY(5px);
    }
    to {
        opacity: 0.45;
        transform: scale(1) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rating-distribution__filling,
    .rating-distribution.is-inview .rating-distribution__filling {
        transform: scaleX(1);
        transition: none;
        animation: none !important;
    }
    .rating-distribution__stars .rating > i,
    .rating-distribution__stars .rating .icon10,
    .rating-distribution__stars .rating .fa-star,
    .rating-distribution__count,
    .product-rating-total__stars .icon16,
    .product-rating-total__stars .icon10,
    .product-rating-total__stars .fa-star,
    .product-rating-total__stars .fa-star-half-alt,
    .product-rating-total__stars i {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none !important;
    }
}

/* Стрелки вертикальной ленты превью — контраст на светлой и тёмной теме */
.product-gallery-previews__outer .product-gallery-previews__prev,
.product-gallery-previews__outer .product-gallery-previews__next,
.product-gallery-previews__outer .carousel-mini-prev,
.product-gallery-previews__outer .carousel-mini-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    margin: 0 auto 6px;
    line-height: 1;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid rgba(26, 26, 26, 0.28);
    background: #ffffff;
    color: #1a1a1a !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
    opacity: 1;
    cursor: pointer;
}

.product-gallery-previews__outer .product-gallery-previews__next,
.product-gallery-previews__outer .carousel-mini-next {
    margin: 6px auto 0;
}

.product-gallery-previews__outer .product-gallery-previews__prev:hover,
.product-gallery-previews__outer .product-gallery-previews__next:hover,
.product-gallery-previews__outer .carousel-mini-prev:hover,
.product-gallery-previews__outer .carousel-mini-next:hover {
    background: #f0f2f5;
    border-color: rgba(26, 26, 26, 0.45);
    color: #000 !important;
}

.product-gallery-previews__outer .product-gallery-previews__prev.disabled,
.product-gallery-previews__outer .product-gallery-previews__next.disabled,
.product-gallery-previews__outer .carousel-mini-prev.disabled,
.product-gallery-previews__outer .carousel-mini-next.disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

/* Прогресс до бесплатной доставки (аудит, п.19).
   Достигнутый порог — изумрудом: это выигрыш покупателя, а не рядовая
   строка доверия. Остальные состояния наследуют обычный вид блока. */
.product-trust__item--freeship-reached .product-trust__text,
.product-trust__item--freeship-reached .product-trust__icon {
    color: var(--g-emerald, #0F5A4A);
}
.dark-theme .product-trust__item--freeship-reached .product-trust__text,
.dark-theme .product-trust__item--freeship-reached .product-trust__icon {
    color: var(--g-emerald-soft, #6AD4B8);
}
