/* Floating Wishlist Button */
#dx-floating-wishlist-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99998;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #dx-floating-wishlist-btn {
        top: auto;
        bottom: 80px;
        right: 20px;
    }
}

#dx-floating-wishlist-btn.dx-float-wishlist-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.dx-wishlist-float-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dx-wishlist-float-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.dx-wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Wishlist Sidebar */
#dx-wishlist-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#dx-wishlist-sidebar.dx-sidebar-active {
    display: block;
}

.dx-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#dx-wishlist-sidebar.dx-sidebar-active .dx-sidebar-overlay {
    opacity: 1;
}

.dx-sidebar-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

#dx-wishlist-sidebar.dx-sidebar-active .dx-sidebar-panel {
    transform: translateX(0);
}

.dx-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dx-sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dx-wishlist-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dx-wishlist-close-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.dx-wishlist-close-btn span {
    font-size: 32px;
    line-height: 1;
    color: #000000;
}

.dx-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.dx-sidebar-loading,
.dx-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    text-align: center;
}

.dx-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: dx-spin 0.8s linear infinite;
}

@keyframes dx-spin {
    to {
        transform: rotate(360deg);
    }
}

.dx-wishlist-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.2s;
}

.dx-wishlist-item:hover {
    background: #edf2f7;
    transform: translateX(-4px);
}

.dx-item-top {
    display: flex;
    gap: 16px;
}

.dx-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dx-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dx-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    opacity: 0.5;
}

.dx-item-details {
    flex: 1;
    min-width: 0;
}

.dx-item-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dx-item-author {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #718096;
}

.dx-item-price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.dx-item-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: stretch;
}

.dx-btn-view-item {
    flex: 1;
    padding: 10px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dx-btn-view-item:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
}

.dx-btn-remove-item {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dx-btn-remove-item:hover {
    background: #e53e3e;
    color: #fff;
}

.dx-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.dx-btn-checkout {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.dx-btn-checkout:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dx-sidebar-panel {
        max-width: 100%;
    }

    .dx-sidebar-header {
        padding: 20px;
    }

    .dx-sidebar-content {
        padding: 20px;
    }

    .dx-item-image {
        width: 70px;
        height: 70px;
    }

    .dx-item-actions {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .dx-item-top {
        flex-direction: column;
    }

    .dx-item-image {
        width: 100%;
        height: 160px;
    }
}
