/* Контейнер для иконки сердечка */
.bagon-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(31 31 31 / 8%);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.bccgc-selector-item:hover .bagon-fav-btn {
    opacity: 1;
}

.bagon-fav-btn.active {
    opacity: 1 !important;
}

@media (max-width: 991px) {
    .bagon-fav-btn {
        opacity: 1;
    }
}

.bagon-fav-btn:hover {
    background: rgb(251 211 141);
    transform: scale(1.1);
}

.bagon-fav-btn svg {
    width: 18px;
    height: 18px;
    fill: #fbd38d00;
    stroke: #555555;
    stroke-width: 1px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.bagon-fav-btn.active svg {
    fill: #fbd38d;
    stroke: #555555;
}

.bagon-fav-btn.active {
    animation: bagonHeartBeat 0.3s;
}

@keyframes bagonHeartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.bagon-clear-fav-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #2d2d2d;
}

.bagon-clear-fav-btn {
    background: transparent;
    border: 1px solid #d94452;
    color: #d94452;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bagon-clear-fav-btn:hover {
    background: #d94452;
    color: #fff;
}

.bagon-header-favorites {
    position: relative;
}
.bagon-fav-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #373737;
    color: #fbd38d;
    font-size: 11px;
    min-width: 8px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 4px;
    box-sizing: border-box;
    z-index: 3;
}
.bagon-header-fav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    background: #1f1f1f;
    border: 0px solid rgba(251, 211, 141, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    padding: 10px;
}
.bagon-header-fav-dropdown.active {
    display: block;
}
.bagon-favorites-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bagon-favorites-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2d2d2d;
}
.bagon-favorites-widget-item:last-child {
    border-bottom: none;
}
.bagon-favorites-widget-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.bagon-favorites-widget-info {
    flex: 1;
}
.bagon-favorites-widget-name {
    display: block;
    font-size: 13px;
    color: #e0e0e0;
    text-decoration: none;
}
.bagon-favorites-widget-price {
    font-size: 12px;
    color: #fbd38d;
}
.bagon-remove-fav-item {
    background: none;
    border: none;
    color: #d94452;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}
.bagon-favorites-widget-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.bagon-favorites-link {
    color: #fbd38d;
    text-decoration: none;
    font-size: 13px;
}
.bagon-clear-fav-btn {
    background: transparent;
    border: 1px solid #d94452;
    color: #d94452;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
}
.bagon-clear-fav-btn:hover {
    background: #d94452;
    color: #fff;
}
.bagon-favorites-empty,
.bagon-favorites-loading,
.bagon-favorites-error {
    text-align: center;
    padding: 20px;
    color: #e0e0e0;
}

.bagon-favorites-widget-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.bagon-favorites-widget-item {
    transition: background 0.2s ease;
    border-radius: 6px;
    padding-left: 6px;
    padding-right: 6px;
}

.bagon-favorites-widget-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bagon-share-btn {
    position: absolute;
    top: 10px;
    right: 48px;
    width: 30px;
    height: 30px;
    z-index: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(31 31 31 / 8%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.bccgc-selector-item:hover .bagon-share-btn {
    opacity: 1;
}
@media (max-width: 991px) {
    .bagon-share-btn {
        opacity: 1;
    }
}
.bagon-share-btn:hover {
    background: rgba(31, 31, 31, 0.9);
    transform: scale(1.1);
}
.bagon-share-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
    stroke: #4a90d9;
}

#bagon-share-toast {
    position: absolute;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 99999;
    pointer-events: none;
    white-space: nowrap;
}

/* ================================================================
   СТИЛІ ДЛЯ ЗАГЛУШКИ НА СТОРІНЦІ /favorites/ (старі, не змінюємо)
   ================================================================ */
#bagon-empty-fav-placeholder {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.empty-fav-container {
    max-width: 500px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
}

.empty-fav-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 25px;
    filter: grayscale(0.5);
}

.empty-fav-container h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-fav-container p {
    color: #888;
    margin-bottom: 30px;
}

.empty-fav-button {
    display: inline-block;
    background: #fbd38d;
    color: #000 !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.empty-fav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 211, 141, 0.3);
}

/* ================================================================
   УНІКАЛЬНІ СТИЛІ ДЛЯ ЗАГЛУШКИ В ШОРТКОДІ (з підвищеною специфічністю)
   ================================================================ */
.bagon-favorites-shortcode-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

#bagon-favorites-shortcode-empty {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

#bagon-favorites-shortcode-empty .bagon-shortcode-empty-container {
    max-width: 500px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
}

#bagon-favorites-shortcode-empty .bagon-shortcode-empty-container h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

#bagon-favorites-shortcode-empty .bagon-shortcode-empty-container p {
    color: #888;
    margin-bottom: 30px;
}

#bagon-favorites-shortcode-empty .bagon-shortcode-empty-btn {
    display: inline-block;
    background: #fbd38d;
    color: #000 !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

#bagon-favorites-shortcode-empty .bagon-shortcode-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 211, 141, 0.3);
}