/*
 * Wishlist Page Styles
 * 自定义Wishlist页面样式 - 列表布局
 */

/* 主容器 */
.wishlist-page-content {
    width: 100%;
    min-height: 60vh;
    padding: 60px 0;
    background: #ffffff;
}

.wishlist-page-content .container-wide {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0px;
}

/* 页面标题 */
.wishlist-title {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: rgb(31, 41, 55);
    gap: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 两列布局 */
.wishlist-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧主内容区 */
.wishlist-main {
    flex: 1;
    min-width: 0;
}

/* 产品列表容器 */
.wishlist-items-list {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

/* 单个产品项 */
.wishlist-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

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

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

/* 产品图片 */
.wishlist-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 24px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

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

/* 产品信息 */
.wishlist-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wishlist-item-name {
    font-family: 'Helvetica', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wishlist-item-price .price-sale {
    font-family: 'Helvetica', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #D4000B;
}

.wishlist-item-price .price-regular {
    font-family: 'Helvetica', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
}

/* WooCommerce原生价格样式 */
.wishlist-item-price .price {
    font-family: 'Helvetica', sans-serif;
}

.wishlist-item-price .price .amount,
.wishlist-item-price .price .woocommerce-Price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #D4000B;
}

.wishlist-item-price .price del {
    font-size: 18px;
    font-weight: 400;
    color: #999999;
    margin-right: 8px;
}

.wishlist-item-price .price del .amount,
.wishlist-item-price .price del .woocommerce-Price-amount {
    font-size: 18px;
    color: #999999;
}

.wishlist-item-price .price ins {
    text-decoration: none;
    font-weight: 700;
}

.wishlist-item-price .price ins .amount,
.wishlist-item-price .price ins .woocommerce-Price-amount {
    font-size: 24px;
    color: #D4000B;
}

.wishlist-item-date {
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    color: #999999;
}

/* 产品操作按钮 */
.wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 24px;
    flex-shrink: 0;
}

.wishlist-item-actions .btn-select-options,
.wishlist-item-actions .btn-delete {
    padding: 10px 24px;
    font-family: 'Helvetica', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 160px;
}

.wishlist-item-actions .btn-select-options {
    background-color: #000000;
    color: #ffffff;
}

.wishlist-item-actions .btn-select-options:hover {
    background-color: #333333;
}

.wishlist-item-actions .btn-delete {
    background-color: #f5f5f5;
    color: #666666;
}

.wishlist-item-actions .btn-delete:hover {
    background-color: #e5e5e5;
    color: #D4000B;
}

/* 右侧分类筛选区 */
.wishlist-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
}

.wishlist-sidebar h3 {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    padding: 16px 20px 12px 0px !important;
    border-bottom: 1px solid #e1e5e9 !important;
    background: none !important;
    text-transform: uppercase;
}

.category-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter li {
    margin-bottom: 4px;
}

.category-filter a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-family: 'Helvetica', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-filter a:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.category-filter a.active {
    background-color: #000000;
    color: #ffffff;
}

.category-filter .category-count {
    font-size: 13px;
    color: #999999;
    margin-left: auto;
}

.category-filter a.active .category-count {
    color: #cccccc;
}

/* Wishlist空状态 */
.wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.wishlist-empty svg {
    margin-bottom: 24px;
    opacity: 0.3;
}

.wishlist-empty p {
    font-family: 'Helvetica', sans-serif;
    font-size: 20px;
    color: #999999;
    margin: 0 0 24px 0;
}

.wishlist-empty .continue-shopping {
    display: inline-block;
    padding: 14px 36px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Helvetica', sans-serif;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.wishlist-empty .continue-shopping:hover {
    background: #333333;
}

/* 隐藏插件默认的分享按钮 */
.tinv-wishlist .tinvwl-txt-wrap-added .social-buttons,
.tinvwl-txt-wrap-added .social-buttons,
.tinvwl_product_added .social-buttons,
.tinv-modal .social-buttons {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .wishlist-layout {
        flex-direction: column;
    }

    /* 移动端隐藏侧边栏 */
    .wishlist-sidebar {
        display: none;
    }

    .wishlist-main {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wishlist-page-content {
        padding: 40px 0;
    }

    .wishlist-page-content .container-wide {
        padding: 20px;
    }

    .wishlist-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .wishlist-item {
        padding: 16px;
    }

    .wishlist-item-image {
        width: 100px;
        height: 100px;
        margin-right: 16px;
    }

    .wishlist-item-name {
        font-size: 16px;
    }

    .wishlist-item-price .price-sale {
        font-size: 20px;
    }

    .wishlist-item-price .price-regular {
        font-size: 16px;
    }

    .wishlist-item-actions {
        margin-left: 16px;
    }

    .wishlist-item-actions .btn-select-options,
    .wishlist-item-actions .btn-delete {
        min-width: 120px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wishlist-page-content {
        padding: 30px 0;
    }

    .wishlist-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .wishlist-item {
        flex-wrap: wrap;
        padding: 12px;
    }

    .wishlist-item-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
    }

    .wishlist-item-info {
        flex: 1;
        min-width: calc(100% - 92px);
    }

    .wishlist-item-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        flex-direction: row;
    }

    .wishlist-item-actions .btn-select-options,
    .wishlist-item-actions .btn-delete {
        flex: 1;
        min-width: 0;
    }
}
