

/* Start:/local/templates/eco_26/components/bitrix/catalog.element/eco_element/style.css?17768554896131*/
/* === VISUAL DOCKING STYLES === */
.product-visual-wrapper {
    position: relative;
}

.visual-clip-layer {
    position: relative;
    border-radius: 0.25rem;
    line-height: 0;
    overflow: hidden; /* МАША: Обрезаем слои, чтобы не вылезали за пределы картинки */
}

.visual-clip-layer a.lightgallery-item {
    display: block;
    line-height: 0;
}

.molding-phantom-visual-layer {
    position: absolute;
    pointer-events: none;
    opacity: 0.15; /* МАША: Прозрачность 15% в изначальном виде */
    transition: opacity 0.3s ease;
    z-index: 5;
    transform-origin: center center;
}

.molding-phantom-visual {
    width: 100%;
    transform-origin: center center;
}

.molding-phantom-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.molding-interaction-layer {
    position: absolute;
    z-index: 10;
    cursor: crosshair;
    transform-origin: center center;
}

.molding-hover-zone {
    width: 100%;
    transform-origin: center center;
}

.molding-hover-zone img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0; /* Only needed for dimensions and hit area */
}

.molding-phantom-visual-layer.active-visual {
    opacity: 1;
}

/* Info Box */
.molding-info-box {
    position: absolute;
    background: var(--color-primary, #23392F);
    border: none;
    border-radius: 6px;
    padding: 15px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.m-info-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.m-info-close:hover {
    color: var(--color-white, #fff);
}

.molding-info-box.active-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-info-title {
    color: var(--color-white, #fff);
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.2;
    padding-right: 15px;
}

.m-info-price {
    color: var(--color-white, #fff);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.m-info-btns {
    display: flex;
    gap: 10px;
}

.m-btn-v, .m-btn-b {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.m-btn-v {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white, #fff);
    position: relative;
}

.m-btn-v:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white, #fff);
}

/* Убираем лупу на кнопке Смотреть */
.m-info-btns .m-btn-v::before,
.m-info-btns .m-btn-v::after {
    display: none !important;
    content: none !important;
}

.m-btn-b {
    background: transparent;
    border: 1px solid var(--color-secondary, #b99961);
    color: var(--color-secondary, #b99961);
}

.m-btn-b:hover {
    background: var(--color-secondary, #b99961);
    color: var(--color-primary, #23392F);
}

/* Toggle Switch */
.visual-docking-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 30px;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.toggle-label {
    color: #fff;
    font-size: 13px;
    user-select: none;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 20px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.custom-switch input:checked + .switch-slider {
    background-color: #D08C55;
}

.custom-switch input:checked + .switch-slider:before {
    transform: translateX(16px);
}

.product-visual-wrapper.show-all-docking .molding-phantom-visual-layer {
    opacity: 1 !important;
}

/* Hint Animation */
.masha-onboarding-hint {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 12px 6px 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeOutHint 1s ease 5s forwards; /* Исчезает через 5 секунд */
    transition: opacity 0.3s;
}

/* При наведении прячем подсказку сразу */
.molding-interaction-layer:hover .masha-onboarding-hint {
    opacity: 0 !important;
}

@keyframes fadeOutHint {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.hint-pulse {
    width: 10px;
    height: 10px;
    background: #D08C55;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(208, 140, 85, 0.7);
    animation: pulseHint 2s infinite;
}

.hint-text {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@keyframes pulseHint {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 140, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(208, 140, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 140, 85, 0); }
}

/* End */
/* /local/templates/eco_26/components/bitrix/catalog.element/eco_element/style.css?17768554896131 */
