/* Wishlist Page Styles */
.wishlist-container {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FE9900;
}

.wishlist-count {
    font-size: 14px;
    color: #5A6B75;
}

.wishlist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.wishlist-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.wishlist-btn-primary {
    background-color: #FE9900;
    color: #fff;
}

.wishlist-btn-primary:hover {
    background-color: #e88a00;
    color: #fff;
}

.wishlist-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.wishlist-btn-secondary:hover {
    background-color: #e8e8e8;
    color: #333;
}

.wishlist-btn-danger {
    background-color: #fff;
    color: #d9534f;
    border: 1px solid #d9534f;
}

.wishlist-btn-danger:hover {
    background-color: #d9534f;
    color: #fff;
}

/* Category Section */
.wishlist-category {
    margin-bottom: 25px;
}

.wishlist-category-title {
    background: linear-gradient(to right, #FE9900, #FFB347);
    color: #fff;
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

/* Family/Series Section */
.wishlist-family {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.wishlist-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.wishlist-family-header:hover {
    background-color: #fafafa;
}

.wishlist-family-name {
    font-size: 15px;
    font-weight: bold;
    color: #0066c0;
    text-decoration: none;
    flex: 1;
}

.wishlist-family-name:hover {
    color: #FE9900;
    text-decoration: underline;
}

.wishlist-family-count {
    background-color: #FE9900;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.wishlist-family-toggle {
    font-size: 18px;
    color: #666;
    margin-left: 15px;
    transition: transform 0.3s;
}

.wishlist-family.expanded .wishlist-family-toggle {
    transform: rotate(180deg);
}

/* Product Items */
.wishlist-products {
    padding: 0;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
    flex-wrap: wrap;
    background-color: #fff;
}

.wishlist-item:last-child {
    border-bottom: none;
}

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

.wishlist-item-image {
    flex: 0 0 80px;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item-image img {
    max-width: 80px;
    max-height: 100px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wishlist-item-details {
    flex: 1;
    min-width: 200px;
}

.wishlist-item-name {
    font-size: 14px;
    font-weight: bold;
    color: #0066c0;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.4;
}

.wishlist-item-name:hover {
    color: #FE9900;
    text-decoration: underline;
}

.wishlist-item-bought {
    color: #5cb85c;
    font-size: 11px;
    font-style: italic;
}

/* Status Badges */
.wishlist-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}

.wishlist-status-available {
    background-color: #dff0d8;
    color: #3c763d;
}

.wishlist-status-preorder {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.wishlist-status-order {
    background-color: #d9edf7;
    color: #31708f;
}

.wishlist-status-unavailable {
    background-color: #f2dede;
    color: #a94442;
}

/* Price Section */
.wishlist-item-price {
    flex: 0 0 100px;
    text-align: right;
}

.wishlist-price-current {
    font-size: 16px;
    font-weight: bold;
    color: #B12704;
}

.wishlist-price-old {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

/* Action Buttons */
.wishlist-item-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.wishlist-btn-cart {
    background-color: #5cb85c;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wishlist-btn-cart:hover {
    background-color: #449d44;
    color: #fff;
    text-decoration: none;
}

.wishlist-btn-delete {
    background-color: transparent;
    color: #999;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
    text-decoration: none;
}

.wishlist-btn-delete:hover {
    color: #d9534f;
    text-decoration: none;
}

/* Footer Actions */
.wishlist-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-actions {
        width: 100%;
    }

    .wishlist-btn {
        flex: 1;
        justify-content: center;
    }

    .wishlist-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .wishlist-item-image {
        margin: 0 auto;
    }

    .wishlist-item-price {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .wishlist-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .wishlist-btn-cart {
        flex: 1;
        justify-content: center;
    }

    .wishlist-footer {
        flex-direction: column;
    }

    .wishlist-footer .wishlist-btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (min-width: 601px) and (max-width: 768px) {
    .wishlist-item-details {
        min-width: 150px;
    }
}
