.product-detail {
    --product-ink: #173f35;
    --product-ink-soft: #315b50;
    --product-accent: #edb242;
    --product-paper: #fffdf8;
    --product-line: #dfe8e3;
    --product-soft: #f3f7f4;
    color: #1b302a;
    padding-bottom: 28px;
}

.product-detail__top {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr);
    gap: clamp(24px, 3.4vw, 54px);
    align-items: start;
    margin-top: 18px;
}

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

.product-gallery__stage,
.product-gallery__placeholder {
    aspect-ratio: 9 / 7;
    border: 1px solid var(--product-line);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #f7faf8 0%, #e7efe9 100%);
}

.product-gallery__stage {
    position: relative;
}

.product-gallery__image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product-gallery__image.is-active {
    display: block;
}

.product-gallery__placeholder {
    display: grid;
    grid-template-columns: minmax(160px, 42%) 1fr;
    align-items: center;
    padding: clamp(22px, 4vw, 52px);
}

.product-gallery__placeholder img {
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: contain;
}

.product-gallery__placeholder div {
    display: grid;
    gap: 8px;
    max-width: 280px;
}

.product-gallery__placeholder strong {
    color: var(--product-ink);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.12;
}

.product-gallery__placeholder span {
    color: #64756f;
    line-height: 1.55;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    overflow-x: auto;
}

.product-gallery__thumb {
    flex: 0 0 90px;
    height: 72px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
}

.product-gallery__thumb.is-active {
    border-color: var(--product-ink);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

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

.product-purchase__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.product-purchase__category {
    color: var(--product-ink-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-purchase h1 {
    max-width: 18ch;
    margin: 8px 0 0;
    color: var(--product-ink);
    font-size: clamp(31px, 3.4vw, 48px);
    line-height: 1.04;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.product-favorite {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--product-line);
    border-radius: 50%;
    background: #fff;
    color: var(--product-ink);
}

.product-favorite svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.product-favorite.is-active {
    border-color: #b44747;
    background: #fff1f1;
    color: #b44747;
}

.product-purchase__meta,
.product-purchase__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.product-purchase__meta {
    margin-top: 16px;
    color: #60716b;
    font-size: 14px;
}

.product-purchase__meta a {
    color: var(--product-ink);
}

.product-purchase__specs {
    margin: 18px 0;
}

.product-purchase__specs span {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--product-soft);
    color: #3d5b52;
    font-size: 13px;
    font-weight: 700;
}

.selected-offer {
    display: grid;
    gap: 8px;
    padding: clamp(20px, 2.5vw, 30px);
    border-radius: 22px;
    background: var(--product-ink);
    color: #fff;
    box-shadow: 0 20px 45px rgb(23 63 53 / 15%);
}

.selected-offer__eyebrow {
    color: #bed1ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.selected-offer__price {
    margin: 2px 0;
    color: #fff;
    font-size: clamp(31px, 3vw, 43px);
    font-weight: 850;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.selected-offer__seller,
.selected-offer__region {
    color: #dce7e3;
    font-size: 14px;
}

.selected-offer__seller a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.selected-offer__stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.selected-offer__stock span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #70d09e;
    box-shadow: 0 0 0 4px rgb(112 208 158 / 14%);
}

.selected-offer__delivery {
    display: grid;
    gap: 3px;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 13px;
    background: rgb(255 255 255 / 8%);
}

.selected-offer__delivery span {
    color: #dce7e3;
    font-size: 13px;
    line-height: 1.45;
}

.product-cart-form {
    margin-top: 18px;
}

.product-cart-form > label {
    display: block;
    margin-bottom: 7px;
    color: var(--product-ink);
    font-weight: 800;
}

.product-cart-form__row {
    display: grid;
    grid-template-columns: minmax(115px, .48fr) 1fr;
    gap: 10px;
}

.product-cart-form__row input,
.product-cart-form__row button {
    min-height: 52px;
}

.product-cart-form__hint,
.product-cart-form__safety {
    margin: 8px 0 0;
    color: #5f706a;
    font-size: 12px;
    line-height: 1.5;
}

.product-cart-form__safety {
    margin-top: 2px;
}

.product-section {
    margin-top: clamp(42px, 6vw, 76px);
}

.product-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.product-section__head h2 {
    margin: 4px 0 0;
    color: var(--product-ink);
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.12;
}

.product-section__head p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #65756f;
}

.product-section__kicker {
    color: #9a6813;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.product-offers__mobile-jump {
    display: none;
}

.offer-list {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.offer-card {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(170px, 1.15fr) minmax(160px, .85fr) minmax(230px, 1.15fr) 88px;
    gap: 16px;
    align-items: center;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid var(--product-line);
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
}

.offer-card:hover {
    border-color: #a9c2b9;
}

.offer-card.is-selected {
    border-color: var(--product-ink);
    background: #f5faf7;
    box-shadow: inset 4px 0 0 var(--product-accent);
}

.offer-card input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.offer-card:focus-within {
    outline: 3px solid #e9ae3e;
    outline-offset: 3px;
}

.offer-card__select {
    width: 20px;
    height: 20px;
    border: 2px solid #91a69f;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
}

.offer-card.is-selected .offer-card__select {
    border-color: var(--product-ink);
    background: var(--product-ink);
}

.offer-card__seller,
.offer-card__terms {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.offer-card__seller strong,
.offer-card__terms strong {
    color: var(--product-ink);
    overflow-wrap: anywhere;
}

.offer-card__seller small,
.offer-card__terms small {
    color: #667771;
    line-height: 1.4;
}

.offer-card__price {
    color: var(--product-ink);
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.offer-card__action {
    color: var(--product-ink);
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.offer-card.is-selected .offer-card__action {
    color: #9a6813;
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
    gap: 24px;
}

.product-content-grid .product-section {
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--product-line);
    border-radius: 22px;
    background: var(--product-paper);
}

.characteristics-list {
    margin: 0;
}

.characteristics-list > div {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid var(--product-line);
}

.characteristics-list > div:last-child {
    border-bottom: 0;
}

.characteristics-list dt {
    color: #687872;
}

.characteristics-list dd {
    margin: 0;
    color: var(--product-ink);
    font-weight: 750;
    overflow-wrap: anywhere;
}

.product-description__text,
.product-empty-copy {
    color: #435b53;
    line-height: 1.7;
}

.product-delivery-note {
    margin-top: 22px;
    padding: 18px;
    border-radius: 15px;
    background: var(--product-soft);
}

.product-delivery-note p {
    margin: 6px 0 0;
    color: #536962;
    line-height: 1.55;
}

.seller-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 12px;
}

.seller-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--product-line);
    border-radius: 17px;
    background: #fff;
}

.seller-card h3,
.seller-card p {
    margin: 0;
}

.seller-card h3 a {
    color: var(--product-ink);
}

.seller-card p {
    margin-top: 6px;
    color: #65756f;
    font-size: 13px;
}

.product-reviews {
    padding: clamp(22px, 3vw, 36px);
    border-radius: 22px;
    background: var(--product-soft);
}

.product-review-empty {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: center;
    max-width: 620px;
    color: #5e716a;
}

.product-review-empty__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--product-ink);
    font-size: 22px;
}

.product-review-card {
    margin-top: 12px;
    padding: 20px;
    border: 1px solid var(--product-line);
    border-radius: 16px;
    background: #fff;
}

.product-review-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .product-detail__top {
        grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
        gap: 28px;
    }

    .offer-card {
        grid-template-columns: 26px minmax(155px, 1fr) minmax(145px, .85fr) minmax(190px, 1fr);
    }

    .offer-card__action {
        display: none;
    }

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

@media (max-width: 800px) {
    .product-detail__top {
        grid-template-columns: 1fr;
    }

    .product-purchase {
        order: 1;
    }

    .product-gallery {
        order: 2;
    }

    .product-content-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .offer-card {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        gap: 10px 13px;
    }

    .offer-card__seller {
        grid-column: 2;
    }

    .offer-card__price {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }

    .offer-card__terms {
        grid-column: 2 / 4;
    }

    .seller-card {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .product-detail__top {
        gap: 24px;
        margin-top: 10px;
    }

    .product-purchase h1 {
        max-width: none;
        font-size: clamp(29px, 9.5vw, 38px);
    }

    .product-purchase__heading {
        gap: 10px;
    }

    .product-purchase__meta {
        gap: 7px 14px;
    }

    .selected-offer {
        margin-inline: -2px;
        padding: 20px;
        border-radius: 18px;
    }

    .selected-offer__price {
        font-size: clamp(29px, 9vw, 38px);
    }

    .product-cart-form__row {
        grid-template-columns: minmax(92px, .4fr) minmax(0, 1fr);
    }

    .product-cart-form__row button {
        padding-inline: 12px;
    }

    .product-gallery__placeholder {
        min-height: 190px;
        aspect-ratio: auto;
        grid-template-columns: 105px 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 18px;
    }

    .product-gallery__placeholder strong {
        font-size: 18px;
    }

    .product-gallery__placeholder span {
        font-size: 12px;
        line-height: 1.4;
    }

    .product-section {
        margin-top: 44px;
    }

    .product-section__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .product-offers__mobile-jump {
        display: inline-flex;
        min-height: 44px;
    }

    .offer-card {
        min-height: 0;
        padding: 15px 13px;
        border-radius: 15px;
    }

    .offer-card__price {
        max-width: 135px;
        font-size: 19px;
    }

    .characteristics-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 0;
    }

    .product-content-grid .product-section,
    .product-reviews {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .seller-card {
        flex-direction: column;
    }

    .seller-card .btn {
        width: 100%;
    }

    .catalog-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-detail *,
    .product-detail *::before,
    .product-detail *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 390px) {
    main .breadcrumbs a {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    main .breadcrumbs > span[aria-current="page"],
    main .breadcrumbs > span:has(+ span[aria-current="page"]) {
        display: none;
    }

    .product-detail a:not(.btn),
    .product-detail__favorite,
    .product-detail__meta a {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
    }

    .offer-card a {
        position: relative;
        z-index: 2;
    }
}
