/* Лендинг /sets/ + состав itemsets на карточке сета */

.sets-hero {
    margin-bottom: 28px;
    padding: 32px 28px;
    background: var(--wrap-bg-color);
    border-radius: 25px;
    box-shadow: 0 5px 17px rgba(0, 0, 0, 0.05);
}

.sets-hero__title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
}

.sets-hero__text {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--body-text-color);
    max-width: 760px;
}

.sets-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.sets-hero__cta {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.sets-hero__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sets-hero__utp {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sets-hero__utp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--body-text-color);
}

.sets-hero__utp-icon {
    color: var(--bs-color);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.sets-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--bs-color);
    line-height: 1.25;
}

/* Доставка на всю ширину grid-карточки; order > content(5), иначе на узком flex уезжает вверх */
.product-page--sets .sets-delivery-wrap {
    grid-column: 1 / -1;
    order: 6;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
}

.product-page--sets .sets-delivery-wrap .dp-product,
.product-page--sets .sets-delivery-wrap .dp-product_candyshop,
.product-page--sets .sets-delivery-wrap .js-dp-product-wrapper,
.product-page--sets .sets-delivery-wrap .dp-container__product {
    width: 100% !important;
    max-width: 100% !important;
}

/* Состав с фото в колонке карточки (под ценой / рядом с галереей) */
.product-page .sets-product-items--inline {
    margin: 4px 0 8px;
    scroll-margin-top: 90px;
    max-height: none;
}

.product-page .sets-product-items--inline .itemsets-block,
.product-page .sets-product-items--inline [class^="itemsets-block-"],
.product-page .sets-product-items--inline .sets-itemsets-wrap {
    margin: 0;
    padding: 16px;
    background: var(--wrap-bg-color, #fff);
    border-radius: 18px;
    box-shadow: 0 5px 17px rgba(0, 0, 0, 0.05);
}

.product-page .sets-product-items--inline .sets-itemsets__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-color);
}

.product-page .sets-product-items--inline .sets-itemsets {
    grid-template-columns: 1fr;
    gap: 8px;
}

.product-page .sets-product-items--inline .sets-itemsets__item {
    padding: 12px 0;
    border-radius: 0;
}

/* на случай текстового тизера */
.sets-card-teaser__list {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.sets-card-teaser__item {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none !important;
}

.sets-card-teaser__item:last-child {
    border-bottom: 0;
}

.sets-card-teaser__item::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    background: linear-gradient(135deg, #e8d5a3 0%, #b8954a 45%, #8a6a2b 100%);
    box-shadow: 0 0 0 1px rgba(184, 149, 74, 0.25);
    transform: rotate(45deg);
}

.product-page .sets-product-items--inline .sets-itemsets__img {
    width: 56px;
    height: 56px;
}

.product-page .sets-product-items--inline .sets-itemsets__name {
    font-size: 14px;
}

.product-page .sets-product-items--inline .sets-itemsets__meta {
    font-size: 13px;
}

.product-page .sets-itemsets__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--body-text-color);
    line-height: 1.3;
}

.product-page .sets-itemsets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.product-page .sets-itemsets__item {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none !important;
}

.product-page .sets-itemsets__item:last-child {
    border-bottom: 0;
}

.product-page .sets-itemsets__item::before {
    display: none;
}

.product-page .sets-itemsets__img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page .sets-itemsets__img-empty {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #ddd;
}

.product-page .sets-itemsets__img img,
[class^="itemsets-block-"] .sets-itemsets__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-page .sets-itemsets__body,
[class^="itemsets-block-"] .sets-itemsets__body {
    min-width: 0;
    flex: 1 1 auto;
}

.product-page .sets-itemsets__name {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--body-text-color);
    text-decoration: none;
}

.product-page .sets-itemsets__brand {
    font-weight: 700;
}

.product-page .sets-itemsets__fragrance {
    font-weight: 400;
}

.product-page .sets-itemsets__name:hover {
    color: var(--bs-color);
}

.product-page .sets-itemsets__meta {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.3;
    color: #8a8f98;
}

.product-page .sets-itemsets__more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--body-text-color);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    background: #fff;
    white-space: nowrap;
}

.product-page .sets-itemsets__more:hover {
    border-color: var(--bs-color);
    color: var(--bs-color);
}

/* Скрыть цены/скидки комплектующих и пустые «в корзину» в штатной таблице itemsets */
.product-page .itemsets-zebra .itemsets-compare-price,
.product-page .itemsets-zebra form.addtocart,
.product-page .itemsets-zebra th:nth-child(3),
.product-page .itemsets-zebra td:nth-child(3),
.product-page .itemsets-zebra th:nth-child(5),
.product-page .itemsets-zebra td:nth-child(5) {
    display: none;
}

.product-page .itemsets-zebra {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.product-page .itemsets-zebra th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    font-weight: 600;
    padding: 0 10px 8px;
    border: 0;
}

.product-page .itemsets-zebra td {
    padding: 10px;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.02);
    border: 0;
}

.product-page .itemsets-zebra tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.product-page .itemsets-zebra tr td:last-child {
    border-radius: 0 12px 12px 0;
}

@media (max-width: 767px) {
    .sets-hero {
        padding: 22px 18px;
    }

    .sets-hero__title {
        font-size: 26px;
    }

    .sets-hero__text {
        font-size: 15px;
    }

    .product-page .sets-itemsets__more {
        padding: 7px 10px;
        font-size: 12px;
    }

    .product-page .sets-itemsets__img {
        width: 48px;
        height: 48px;
    }
}
