.product-share{list-style: none; display: flex; margin: 18px 0 0px 0; padding: 0; gap: 4px;}
.catalog-item .product-share{margin-bottom: 4px;}
.product-share li{display: inline-flex; position: relative;}

.product-share button picture{
    display: flex;
}
.heart-btn, .share-btn, .pdflink{
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s cubic-bezier(0.28, 0.84, 0.42, 1), transform 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
    will-change: transform;

    box-shadow: none;
}
.catalog-item .heart-btn, .catalog-item .share-btn, .catalog-item .pdflink{
    width: 30px;
    height: 30px;
}
.heart-btn:hover, .share-btn:hover, .pdflink:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: scale(1.1);
}

.heart-btn:active, .share-btn:active {
    transform: scale(0.9);
}

.heart-btn img, .share-btn img, .pdflink img {
    width: 24px;
    height: 24px;
    pointer-events: none;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
    -webkit-tap-highlight-color: transparent;
}
.pdflink {
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-item .heart-btn img, .catalog-item .share-btn img, .catalog-item .pdflink img {
    width: auto;
    height: 16px;
}


/* Анимация сердечка */
.heart-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff4d4d;
    border-radius: 50%;
    z-index: 1;
    transform: scale(0.7);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.28, 0.84, 0.42, 1),
        opacity 0.4s ease;
}

.heart-btn.active::before {
    transform: scale(1);
    opacity: 1;
}

.heart-btn.active img {
    filter: brightness(0) invert(1);
    animation: heartBeat 0.8s cubic-bezier(0.28, 0.84, 0.42, 1) both;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    20% { transform: scale(1.15); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    80% { transform: scale(1); }
    100% { transform: scale(1); }
}



.share-dropdown a{text-decoration: none;}

/* Выпадающее меню */
.share-container {
    position: relative;
    display: inline-block;
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background-color: white;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.share-dropdown::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

/* Кнопки соцсетей */
.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: none;
    background-color: transparent;
    padding: 0;
    overflow: visible;
    transition: background-color 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
    -webkit-tap-highlight-color: transparent;
}

.share-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.share-button:active {
    transform: scale(0.9);
}

.share-button i {
    font-size: 18px;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
    will-change: transform;
    transform: translateZ(0);
}

.share-button:hover i {
    transform: translateZ(0) scale(1.1);
}

.copy-link i { background-color: #6c757d; }
.telegram i { background-color: #26A5E4; }
.whatsapp i { background-color: #25D366; }
.vk i { background-color: #07F; }
.odnoklassniki i { background-color: #F7931E; }

/* Уведомления */
.apple-notification, .heart-notification {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background-color: white;
    color: #333;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    z-index: 11;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    min-width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.28, 0.84, 0.42, 1);
}

.apple-notification::after, .heart-notification::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.heart-notification {
        pointer-events: auto;
}

.apple-notification.show, .heart-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.heart-notification .favorite-text {
    color: #ff732d;
    font-weight: 500;
}

a {
    text-decoration: none;
}

/* ----- Адаптация для мобильных устройств ----- */
@media (max-width: 1024px) {
    .heart-btn:hover, .share-btn:hover, .share-button:hover {
        background-color: transparent;
        transform: none;
    }

    .share-button:hover i {
        transform: translateZ(0) scale(1);
    }

    .share-dropdown, .apple-notification, .heart-notification {
        left: -10px;
        transform: translateY(-10px);
    }
    .share-dropdown{left: -20px;}

    .share-dropdown.active, .apple-notification.show, .heart-notification.show {
        transform: translateY(0);
    }

    .share-dropdown::after, .apple-notification::after, .heart-notification::after {
        left: 30px;
        transform: translateX(-50%);
    }
    .share-dropdown::after{left: 40px;}

    /************/
    .catalog-item .heart-btn, .catalog-item .share-btn, .catalog-item .pdflink {
        width: 40px;
        height: 40px;
    }
    .catalog-item .heart-btn img, .catalog-item .share-btn img, .catalog-item .pdflink img {
        width: auto;
        height: 25px;
    }
    .product-share{gap: 18px;}
}