/**
 * Wishlist Dropdown Styles
 *
 * Styles for wishlist selection dropdown menu
 *
 * @version 1.0.0
 */

/* Wishlist Dropdown Container */
.wishlist-dropdown {
    position: absolute;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    z-index: 1000;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dropdown Header */
.wishlist-dropdown-header {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-dropdown-header .create-link {
    color: #6b46c1;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    font-weight: normal;
}

.wishlist-dropdown-header .create-link:hover {
    color: #553c9a;
}

/* Separator */
.wishlist-separator {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Wishlist List */
.wishlist-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.wishlist-dropdown-item {
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wishlist-dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Wishlist Item Label */
.wishlist-item-label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.wishlist-item-label:hover {
    background-color: transparent;
}

/* Checkbox */
.wishlist-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #6b46c1;
    border-radius: 3px;
}

.wishlist-checkbox:checked {
    background-color: #6b46c1;
    border-color: #6b46c1;
}

/* Wishlist Name */
.wishlist-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* Create Wishlist Button */
.create-wishlist-btn {
    width: calc(100% - 32px);
    margin: 4px 16px;
    padding: 10px 16px;
    background-color: transparent;
    color: #6b46c1;
    border: 1px solid #6b46c1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.create-wishlist-btn:hover {
    background-color: #6b46c1;
    color: #ffffff;
}

/* Wishlist with thumbnail preview */
.wishlist-item-with-thumb {
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.wishlist-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    grid-template-rows: repeat(2, 30px);
    gap: 2px;
    margin-right: 12px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 4px;
}

.wishlist-thumb-grid img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 2px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.wishlist-item-count {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .wishlist-dropdown {
        min-width: 260px;
        max-width: calc(100vw - 40px);
    }
}

/* Heart button states */
[id^=heart_] .fa-jelly-fill {
    color: #dc3545;
}

[id^=heart_] .fa-heart:not(.fa-jelly-fill) {
    color: #6c757d;
}

[id^=heart_]:hover .fa-heart {
    color: #dc3545;
}

/* Animation for heart icon */
[id^=heart_] i {
    transition: all 0.3s ease;
}

[id^=heart_]:active i {
    transform: scale(1.2);
}
