

/* Start:/local/components/librederm/advisor/templates/.default/style.css?177580656611768*/
/* ============================================================
   Advisor Quiz Widget
   Визуал: librederm:survey
   Карточки товаров: librederm:ask.expert
   Префикс: .av-
   ============================================================ */

/* ---- Обёртка (внутри .container .page m-center) ---- */
.av-wrap {
    font-family: "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #000;
}

/* ---- Экран ---- */
.av-screen {
    padding: 32px 24px;
    background: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Спиннер ---- */
.av-screen--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.av-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e7ef;
    border-top-color: #000;
    border-radius: 50%;
    animation: av-spin .7s linear infinite;
}
@keyframes av-spin { to { transform: rotate(360deg); } }

/* ---- Прогресс-бар ---- */
.av-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.av-progress-bar {
    flex: 1;
    height: 6px;
    background: #fff;
    overflow: hidden;
}
.av-progress-fill {
    height: 100%;
    background: #000;
    transition: width .3s ease;
    width: 0;
}
.av-progress-text {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* ---- Вопрос ---- */
.av-q-image-wrap {
    margin-bottom: 20px;
    text-align: center;
}
.av-q-image {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
}
.av-q-text {
    font: 500 18px/28px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    margin: 0 0 10px;
    color: #000;
}
.av-q-desc {
    font: 300 16px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #888;
    margin: 0 0 24px;
}

/* ---- Варианты ответов (текстовые) ---- */
.av-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.av-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .15s, background .15s, color .15s;
    font: 300 15px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    user-select: none;
    border: none;
    color: #000;
}
.av-option:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.av-option.av-selected {
    box-shadow: 0 0 0 1px #000;
    background: #fff;
    color: #000;
}

.av-option-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    position: relative;
    box-sizing: border-box;
}
.av-selected .av-option-radio {
    border-color: #000;
    background: #000;
}
.av-selected .av-option-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* ---- Варианты с картинками ---- */
.av-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.av-option-card {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #fff;
    text-align: start;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
    border: 1px solid transparent;
}
.av-option-card-wrap-text {
    display: flex;
    flex-direction: row;
}
.av-option-card .av-option-radio {
    margin: 10px 8px 0 0;
    flex-shrink: 0;
    align-self: flex-start;
}
.av-option-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.av-option-card.av-selected {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}
.av-option-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}
.av-option-card-label {
    font: 300 15px/21px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #000;
    padding-top: 10px;
}

/* ---- Навигация ---- */
.av-q-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ---- Кнопки ---- */
.av-btn {
    display: inline-block;
    padding: 11px 28px;
    font: 300 14px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 1px solid #000;
    transition: background .15s, color .15s, opacity .15s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
.av-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.av-btn-primary {
    background: #000;
    color: #fff;
}
.av-btn-primary:hover:not(:disabled) {
    background: #fff;
    color: #000;
}
.av-btn-back {
    background: #fff;
    color: #000;
    border-color: #000;
}
.av-btn-back:hover:not(:disabled) {
    background: #000;
    color: #fff;
}

/* ---- Вступление ---- */
.av-intro-content {
    text-align: center;
    padding: 20px 0;
}
.av-intro-image-wrap {
    margin-bottom: 24px;
}
.av-intro-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}
.av-intro-text {
    font: 300 16px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #444;
    margin-bottom: 28px;
}

/* ---- Результат: первичный ---- */
.av-result-image-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.av-result-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
}
.av-result-title {
    font: 500 22px/30px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    margin: 0 0 16px;
    color: #000;
}
.av-result-desc {
    font: 300 15px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #444;
    margin-bottom: 28px;
}

/* ---- Результат: вторичные ---- */
.av-secondary-wrap {
    margin-bottom: 28px;
}
.av-secondary-title {
    font: 500 16px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #000;
    margin: 0 0 12px;
}
.av-secondary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.av-secondary-item {
    background: #fff;
    padding: 16px 20px;
    transition: box-shadow .15s;
}
.av-secondary-item-title {
    font: 500 15px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    margin: 0 0 4px;
    color: #000;
}
.av-secondary-item-desc {
    font: 300 14px/22px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #666;
    margin: 0;
}

/* ---- Продукты (стиль ask.expert) ---- */
.av-products-wrap {
    margin-bottom: 28px;
}
.av-products-title {
    font: 500 18px/28px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    margin: 0 0 16px;
    color: #000;
}
.av-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 768px) {
    .av-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Карточка товара (ae-product-card) */
.av-product-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
    border: 1px solid #eee;
}
.av-product-card:hover {
    border-color: #d9d9d9;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    transform: translateY(-1px);
}

/* Ссылка-картинка */
.av-product-card__image {
    display: block;
    position: relative;
    background: #f7f7f7;
    aspect-ratio: 1/1;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.av-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .25s ease;
    margin: 0 auto;
}
.av-product-card:hover .av-product-card__image img {
    transform: scale(1.03);
}
.av-product-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858585;
    font: 300 12px/16px "GraphikLCG", "Helvetica", "Arial", sans-serif;
}

/* Тело карточки */
.av-product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    margin-top: auto;
}
@media (max-width: 1024px) {
    .av-product-card__body {
        padding: 10px;
    }
}

/* Название */
.av-product-card__name {
    margin: 0;
    font: 500 14px/18px "GraphikLCG", "Helvetica", "Arial", sans-serif;
}
.av-product-card__name a {
    text-decoration: none;
    color: #000;
}
.av-product-card__name a:hover {
    text-decoration: underline;
}

/* Цена */
.av-product-card__price {
    font: 500 18px/21px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #000;
}
.av-product-card__price-old {
    font: 300 13px/18px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #888;
    text-decoration: line-through;
    margin-left: 6px;
}

/* Действия: корзина + избранное */
.av-product-card__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-direction: column;
}
@media (min-width: 1024px) {
    .av-product-card__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* Кнопка «В корзину» (form-button стиль) */
.av-product-card__btn {
    display: inline-block;
    min-width: 120px;
    max-width: 150px;
    padding: 9px 16px;
    font: 300 12px/16px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: background .15s, color .15s, opacity .15s;
    box-sizing: border-box;
}
.av-product-card__btn:hover:not(:disabled) {
    background: #fff;
    color: #000;
}
.av-product-card__btn:disabled {
    opacity: 0.4;
    cursor: default;
    border-color: #ccc;
    background: #ccc;
    color: #666;
}
.av-product-card__btn--done {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

/* Кнопка «Избранное» (сердечко) */
.av-product-card__fav {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: border-color .15s;
    color: #888;
}
.av-product-card__fav:hover {
    border-color: #d9d9d9;
    color: #e57373;
}
.av-product-card__fav.active {
    color: #e53935;
    border-color: #ef9a9a;
    background: #ffebee;
}
.av-product-card__fav.active svg { fill: #e53935; }
.av-product-card__fav svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ---- Denied / Inactive ---- */
.av-denied-content {
    padding: 20px 0;
}
.av-denied-msg {
    font: 300 16px/24px "GraphikLCG", "Helvetica", "Arial", sans-serif;
    color: #444;
    margin-bottom: 20px;
}
.av-done-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

/* ---- Ошибка ---- */
.av-msg--error {
    color: #c0392b;
}

/* ---- Действия после результата ---- */
.av-result-actions {
    margin-top: 8px;
}

/* ---- Адаптив ---- */
@media (max-width: 600px) {
    .av-screen { padding: 24px 16px; }
    .av-q-text { font-size: 16px; line-height: 24px; }
    .av-result-title { font-size: 18px; line-height: 26px; }
    .av-options-grid { grid-template-columns: repeat(2, 1fr); }
    .av-btn { padding: 10px 20px; font-size: 13px; }
    .av-product-card__btn { min-width: 100px; max-width: none; }
}

/* End */
/* /local/components/librederm/advisor/templates/.default/style.css?177580656611768 */
