/*
 * Страница «Собери свой подарок».
 * Прямое подключение со страницы gift-builder.htm через {% put styles %}.
 *
 * Исходник SCSS: themes/default/pages/gift-builder.scss.
 * При изменении стилей — обновите и SCSS, и этот CSS (или пересоберите
 * тему через `npm run dev`).
 */

.gift-builder {
    padding-bottom: 40px;
}

.gift-builder__tabs {
    border-bottom: 2px solid #e5e5e5;
}

.gift-builder__tabs .nav-link {
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    font-weight: 500;
    transition: color .2s, border-color .2s;
}

.gift-builder__tabs .nav-link:hover {
    color: #c1af0e;
    border-bottom-color: rgba(193, 175, 14, 0.4);
}

.gift-builder__tabs .nav-link.active {
    color: #c1af0e;
    border-bottom-color: #c1af0e;
    background: transparent;
}

.gift-builder__panels {
    padding-top: 24px;
}

.gift-set-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.gift-set-card__image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-set-card__image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.gift-set-card__image-placeholder {
    width: 100%;
    min-height: 240px;
    background: #f7f7f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 48px;
}

.gift-set-card__title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}

.gift-set-card__preview {
    color: #444;
    font-size: 16px;
    margin-bottom: 12px;
}

.gift-set-card__description {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.gift-set-card__price-block {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 6px;
    border-left: 4px solid #c1af0e;
}

.gift-set-card__price {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-right: 12px;
}

.gift-set-card__old-price {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
}

.gift-set-card__price-note {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
}

.gift-set-card__section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 16px;
}

.gift-set-card__actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.gift-set-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.gift-set-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 14px;
    background: #fff;
}

.gift-set-item__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.gift-set-item__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: #222;
}

.gift-set-item__link {
    font-size: 12px;
    color: #c1af0e;
    white-space: nowrap;
}

.gift-set-item__link:hover {
    text-decoration: underline;
}

.gift-set-item__offers-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.gift-set-item__offers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gift-set-item__single-offer {
    padding: 6px 0;
}

.gift-offer-option {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 6px;
    background: #fafafa;
    transition: border-color .15s, background .15s;
    margin: 0;
}

.gift-offer-option input.gift-offer-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-offer-option:hover {
    background: #f0f0f0;
}

.gift-offer-option.active {
    border-color: #c1af0e;
    background: #fff8d6;
}

.gift-offer-option__image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.gift-offer-option__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gift-offer-option__noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 24px;
}

.gift-offer-option__name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .gift-set-card {
        padding: 16px;
    }

    .gift-set-card__title {
        font-size: 22px;
    }

    .gift-set-card__price {
        font-size: 24px;
    }

    .gift-set-items {
        grid-template-columns: 1fr;
    }

    .gift-set-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gift-set-card__actions .btn {
        width: 100%;
    }
}
