/* =========================================
   WISHLIST PAGE STYLES
   ========================================= */

/* --- Reuse Breadcrumb Style (Consistency) --- */
.page-header {
    background: #f4f4f4;
    padding: 40px 0;
    margin-bottom: 50px;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 700; }
.breadcrumb { color: #666; font-size: 0.9rem; }
.breadcrumb a { color: var(--dark); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 5px; color: #ccc; }
.breadcrumb span.current { color: var(--primary); font-weight: 600; margin-left: 0; }

/* --- Wishlist Table Styling --- */
.wishlist-section { margin-bottom: 80px; }

.wishlist-table-wrapper {
    overflow-x: auto; /* Scroll on very small screens if needed */
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
}

.wishlist-table th {
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--dark);
    border-bottom: 2px solid #eee;
}

.wishlist-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Column Specifics */
.w-remove { width: 50px; text-align: center; }
.remove-btn { color: #ccc; cursor: pointer; transition: 0.3s; font-size: 1.2rem; }
.remove-btn:hover { color: red; transform: rotate(90deg); }

.w-image { width: 100px; }
.w-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; }

.w-name a { font-weight: 600; font-size: 1.1rem; color: var(--dark); }
.w-name a:hover { color: var(--primary); }

.w-price { font-weight: 600; color: #555; }

.w-stock span {
    font-size: 0.85rem; font-weight: 600; padding: 5px 10px; border-radius: 4px;
}
.in-stock { color: #2ecc71; background: rgba(46, 204, 113, 0.1); }
.out-stock { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }

.w-btn button.add-cart-btn-sm {
    background: var(--dark); color: var(--white);
    border: none; padding: 10px 20px; border-radius: 4px;
    cursor: pointer; font-weight: 600; transition: var(--transition);
    white-space: nowrap;
}
.w-btn button.add-cart-btn-sm:hover { background: var(--primary); color: var(--dark); }
.w-btn button.disabled { background: #eee; color: #999; cursor: not-allowed; }
.w-btn button.disabled:hover { background: #eee; color: #999; }

/* --- Share Section --- */
.wishlist-share {
    margin-top: 30px;
    display: flex; align-items: center; gap: 15px;
    justify-content: center;
}
.wishlist-share span { font-weight: 600; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 35px; height: 35px; border-radius: 50%;
    background: #f4f4f4; color: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); color: var(--dark); }

/* --- Responsive Layout (Mobile Cards) --- */
@media (max-width: 768px) {
    .wishlist-table thead { display: none; } /* Hide headers */
    
    .wishlist-table, .wishlist-table tbody, .wishlist-table tr, .wishlist-table td {
        display: block; width: 100%;
    }
    
    .wishlist-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        position: relative;
        padding-bottom: 15px;
    }
    
    .wishlist-table td {
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #f9f9f9;
        display: flex; justify-content: space-between; align-items: center;
    }
    
    /* Add Labels for Mobile */
    .wishlist-table td::before {
        content: attr(class); /* Fallback */
        content: attr(data-label); /* Better approach if data attributes used, but here using specific classes */
        font-weight: 600; color: #888; font-size: 0.85rem;
    }
    
    /* Specific overrides */
    .w-remove {
        position: absolute; top: 10px; right: 10px;
        border: none !important; width: auto; padding: 0 !important;
    }
    .w-image { text-align: center !important; border-bottom: none !important; justify-content: center !important; }
    .w-image img { width: 100px; height: 100px; margin-top: 10px; }
    
    .w-name { text-align: center !important; display: block !important; border-bottom: none !important; padding-top: 0 !important; }
    .w-name a { font-size: 1.2rem; }
    
    /* Hide Labels for Image/Name/Remove */
    .w-image::before, .w-name::before, .w-remove::before { display: none; }
    
    /* Show Labels for others */
    .w-price::before { content: "Price:"; }
    .w-stock::before { content: "Status:"; }
    .w-btn::before { display: none; }
    
    .w-btn { text-align: center !important; display: block !important; border: none !important; padding-top: 0 !important; }
    .add-cart-btn-sm { width: 100%; }
}