/* Сторінка товару (PDP) — десктоп двоколонковий, мобільний стек + фіксована панель «Додати» */
body.page-product {
    --pdp-bg: #f5f5f2;
    --pdp-lime: #d4e157;
    --pdp-radius: 24px;
    --pdp-radius-sm: 14px;
    --pdp-mob-buybar-inner: 76px;
    background-color: var(--pdp-bg);
    color: var(--sw-black);
    min-height: 100vh;
}

@media (max-width: 1023px) {
    body.page-product {
        padding-bottom: calc(var(--pdp-mob-buybar-inner) + env(safe-area-inset-bottom, 0px));
    }

    body.page-product .sw-cart-toast {
        bottom: calc(16px + var(--pdp-mob-buybar-inner) + env(safe-area-inset-bottom, 0px));
    }
}

body.page-product .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdp-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px 48px;
    background-color: var(--pdp-bg);
}

.pdp-breadcrumb {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 22px;
}

.pdp-breadcrumb a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.pdp-breadcrumb a:hover {
    color: var(--sw-black);
}

.pdp-breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.5;
}

.pdp-breadcrumb__current {
    color: rgba(0, 0, 0, 0.65);
    font-weight: 600;
}

.pdp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .pdp-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 40px 48px;
    }

    .pdp-below,
    .pdp-trust,
    .section-partners {
        grid-column: 1 / -1;
    }
}

.pdp-mobile-only {
    display: block;
}

@media (min-width: 1024px) {
    .pdp-mobile-only {
        display: none !important;
    }
}

.pdp-desktop-only {
    display: none !important;
}

@media (min-width: 1024px) {
    .pdp-desktop-only {
        display: block !important;
    }
}

.pdp-info__rating__stars--desk,
.pdp-info__rating__rev--desk {
    display: none;
}

.pdp-info__rating__stars--mob,
.pdp-info__rating__score--mob,
.pdp-info__rating__rev--mob {
    display: inline;
}

.pdp-info__rating-score {
    font-weight: 700;
    color: var(--sw-black);
}

@media (min-width: 1024px) {
    .pdp-info__rating__stars--desk,
    .pdp-info__rating__rev--desk {
        display: inline;
    }

    .pdp-info__rating__stars--mob,
    .pdp-info__rating__score--mob,
    .pdp-info__rating__rev--mob {
        display: none !important;
    }
}

/* Галерея */
.pdp-gallery__stage {
    position: relative;
    border-radius: var(--pdp-radius);
    background: linear-gradient(165deg, #ecece8 0%, #dfdfda 100%);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: min(72vw, 520px);
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pdp-gallery__stage {
        max-height: none;
        aspect-ratio: 4 / 3;
    }
}

.pdp-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    box-sizing: border-box;
}

/* Фіксована мобільна панель замість bottom-nav (лише PDP) */
.pdp-mob-buybar {
    display: none;
}

@media (max-width: 1023px) {
    .pdp-mob-buybar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        min-height: var(--pdp-mob-buybar-inner);
        box-sizing: border-box;
        padding: 14px 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--sw-white);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06);
    }
}

.pdp-mob-buybar__price {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--sw-black);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.pdp-mob-buybar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.pdp-mob-buybar__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pdp-gallery__thumbs {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 1024px) {
    .pdp-gallery__thumbs {
        display: grid;
    }
}

.pdp-gallery__thumb {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--pdp-radius-sm);
    background: #ecece8;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdp-gallery__thumb.is-active {
    border-color: var(--sw-black);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

@media (min-width: 1024px) {
    .pdp-gallery__dots {
        display: none;
    }
}

.pdp-gallery__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.pdp-gallery__dot.is-active {
    background: var(--sw-black);
    transform: scale(1.15);
}

/* Інфо колонка */
.pdp-info__cat {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.42);
}

.pdp-info__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--sw-black);
}

.pdp-info__badge-mob {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.72rem;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .pdp-info__badge-mob {
        display: none;
    }
}

.pdp-info__feat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
}

.pdp-info__feat svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0d5c2e;
}

.pdp-info__lead {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.52);
}

@media (min-width: 1024px) {
    .pdp-info__lead {
        font-size: 0.92rem;
    }
}

.pdp-info__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.45);
}

.pdp-info__stars {
    color: var(--sw-black);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.pdp-info__stars--outline {
    letter-spacing: 4px;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--sw-black);
}

.pdp-info__price-block {
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

@media (min-width: 1024px) {
    .pdp-info__price-block {
        display: flex;
    }
}

.pdp-price {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pdp-info__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 420px;
}

.pdp-btn-buy {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--pdp-radius-sm);
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pdp-btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.pdp-btn-wish {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--pdp-radius-sm);
    background: var(--sw-white);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--sw-black);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pdp-btn-wish[aria-pressed="true"] {
    background: rgba(212, 225, 87, 0.25);
    border-color: var(--pdp-lime);
}

.pdp-btn-wish svg {
    width: 22px;
    height: 22px;
}

/* Мобільна картка ціна + наявність */
.pdp-mobile-card {
    background: var(--sw-white);
    border-radius: var(--pdp-radius);
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

@media (min-width: 1024px) {
    .pdp-mobile-card {
        display: none;
    }
}

.pdp-mobile-card__main {
    min-width: 0;
}

.pdp-mobile-card__price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pdp-mobile-card__stock {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: rgba(0, 0, 0, 0.45);
}

.pdp-mobile-card .pdp-btn-wish {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ecece8;
    border: none;
}

/* Опції (пігулки) */
.pdp-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.pdp-options--card {
    background: var(--sw-white);
    border-radius: var(--pdp-radius);
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
    .pdp-options--card {
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
    }
}

.pdp-opt__label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pdp-opt__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-pill {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--sw-white);
    color: var(--sw-black);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdp-pill.is-active {
    background: var(--sw-black);
    color: var(--sw-white);
    border-color: var(--sw-black);
}

.pdp-compat {
    margin-bottom: 8px;
}

.pdp-compat__label {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sw-black);
}

.pdp-compat__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-compat__tag {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
}

/* Акордеони */
.pdp-acc {
    background: var(--sw-white);
    border-radius: var(--pdp-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
    overflow: hidden;
}

.pdp-acc__summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sw-black);
}

.pdp-acc__summary::-webkit-details-marker {
    display: none;
}

.pdp-acc__summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pdp-acc[open] .pdp-acc__summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.pdp-acc__body {
    padding: 0 20px 20px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.55);
}

.pdp-acc__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--sw-black);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.pdp-spec-grid {
    margin: 0;
    display: grid;
    gap: 0;
}

.pdp-spec-grid dt,
.pdp-spec-grid dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
}

.pdp-spec-grid dt {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
}

.pdp-spec-grid dd {
    font-weight: 600;
    color: var(--sw-black);
    text-align: right;
}

@media (min-width: 640px) {
    .pdp-spec-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pdp-spec-grid dt {
        border-right: 1px solid transparent;
    }

    .pdp-spec-grid dd {
        text-align: left;
        padding-left: 16px;
    }
}

.pdp-spec-add {
    width: 100%;
    margin-top: 18px;
    padding: 16px 20px;
    border: none;
    border-radius: 999px;
    background: var(--sw-black);
    color: var(--sw-white);
    font-size: 0.9rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.pdp-spec-add svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 1024px) {
    .pdp-spec-add {
        display: none;
    }
}

/* Характеристики повна ширина під сіткою */
.pdp-below {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.pdp-char-details {
    background: var(--sw-white);
    border-radius: var(--pdp-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pdp-char-details .pdp-acc__summary {
    font-size: 1.05rem;
}

/* Trust */
.pdp-trust {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pdp-trust__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    text-align: center;
    margin-bottom: 22px;
}

.pdp-trust__graphic {
    display: inline-flex;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 18px rgba(212, 225, 87, 0.3));
}

.pdp-trust__graphic svg,
.pdp-trust__graphic img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.pdp-trust__title {
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3em 0.4em;
    font-family: var(--sw-display, Georgia, "Times New Roman", serif);
    font-weight: 800;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    letter-spacing: -0.02em;
    color: var(--sw-black);
}

.pdp-trust__bas {
    position: relative;
    display: inline-block;
    padding: 0 0.15em;
}

.pdp-trust__bas::after {
    content: "";
    position: absolute;
    inset: -0.18em -0.28em -0.22em;
    border: 2.5px solid var(--pdp-lime);
    border-radius: 48% 52% 50% 50% / 46% 48% 52% 54%;
    transform: rotate(-3deg);
    pointer-events: none;
}

.pdp-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pdp-trust__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pdp-trust__logo {
    background: var(--sw-white);
    border-radius: 18px;
    padding: 20px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-trust__logo img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pdp-trust__logo--empty {
    opacity: 1;
    box-shadow: none;
}

body.page-product .site-footer {
    padding-bottom: 64px;
}

@media (max-width: 1023px) {
    body.page-product .site-footer {
        padding-bottom: calc(32px + var(--pdp-mob-buybar-inner) + env(safe-area-inset-bottom, 0px));
    }

    .pdp-page {
        padding-bottom: calc(24px + var(--pdp-mob-buybar-inner));
    }
}
