/* ====================== WISHLIST PAGE ====================== */
.wishlist-page {
    padding: 80px 0;
    background: #f9f9f9;
}

.wishlist-page .page-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.wishlist-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
}

.wishlist-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.wishlist-item a {
    text-decoration: none;
    color: inherit;
}

.wishlist-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.wishlist-item h3 {
    font-size: 18px;
    margin: 15px 0 10px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.wishlist-item h3 a {
    color: #333;
    transition: color 0.3s;
}

.wishlist-item h3 a:hover {
    color: #ff6b00;
}

.wishlist-item .price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin: 15px 0;
}

.wishlist-item .price del {
    color: #999;
    font-weight: normal;
    margin-right: 8px;
    font-size: 16px;
}

.remove-wishlist {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 10px;
}

.remove-wishlist:hover {
    background: #cc0000;
}

/* ====================== COMPARE PAGE ====================== */
.compare-page {
    padding: 80px 0;
    background: #f9f9f9;
}

.compare-page .page-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin: 0 -15px;
    padding: 0 15px;
}

.compare-table {
    width: 100%;
    min-width: 800px; /* Đảm bảo cuộn ngang trên mobile */
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.compare-table th,
.compare-table td {
    padding: 20px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.compare-table th:last-child,
.compare-table td:last-child {
    border-right: none;
}

.compare-table th {
    background: #333;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.compare-table tbody tr:hover {
    background: #f8f8f8;
}

.compare-table img {
    width: 120px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.compare-table .button {
    background: #ff6b00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s;
}

.compare-table .button:hover {
    background: #e65c00;
}

.remove-compare {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    transition: background 0.3s;
}

.remove-compare:hover {
    background: #cc0000;
}

/* ====================== RESPONSIVE ====================== */

/* Tablet lớn (≤1024px) */
@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 15px;
    }
    
    .compare-table img {
        width: 100px;
        height: 130px;
    }
}

/* Tablet nhỏ (≤768px) */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .wishlist-item img {
        height: 180px;
    }
    
    .wishlist-item h3 {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 28px !important;
        margin-bottom: 30px;
    }
    
    .wishlist-page,
    .compare-page {
        padding: 50px 0;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wishlist-item {
        padding: 15px;
    }
    
    .wishlist-item img {
        height: 200px;
    }
    
    .page-title {
        font-size: 24px !important;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .compare-table img {
        width: 80px;
        height: 100px;
    }
    
    .compare-table .button {
        padding: 8px 12px;
        font-size: 13px;
    }
}