﻿/* =====================================================
   BD WISHLIST PAGE
   ===================================================== */

.bd-wishlist-page { padding: 10px 0 60px; }

.bd-wishlist-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.bd-wishlist-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-wishlist-header h1 i { color: #ff4da6; }

.bd-wishlist-total {
    background: #fdf2f8;
    color: #be185d;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* Guest / Empty states */
.bd-wishlist-guest,
.bd-wishlist-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
}

.bd-wl-guest-icon,
.bd-wl-empty-icon {
    font-size: 64px;
    color: #fbb6ce;
    margin-bottom: 20px;
}

.bd-wishlist-guest h3,
.bd-wishlist-empty h3 { font-size: 22px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.bd-wishlist-guest p,
.bd-wishlist-empty p  { color: #6b7280; margin-bottom: 24px; }

/* Grid */
.bd-wishlist-grid {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    gap: 24px;
}

/* Wishlist Card */
.bd-wl-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bd-wl-card:hover {
    transform: translateY( -4px );
    box-shadow: 0 16px 32px rgba( 0, 0, 0, 0.1 );
}

.bd-wl-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4da6;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.bd-wl-card .bd-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba( 255, 255, 255, 0.9 );
    backdrop-filter: blur( 4px );
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.bd-wl-card .bd-wishlist-btn.in-wishlist { color: #ff4da6; }
.bd-wl-card .bd-wishlist-btn:hover       { color: #ff4da6; background: #fff; }

.bd-wl-img-link { display: block; }

.bd-wl-img-link img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover;
    display: block;
}

.bd-wl-info { padding: 16px; }

.bd-wl-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bd-wl-info h4 a { text-decoration: none; color: #111827; }
.bd-wl-info h4 a:hover { color: #ff4da6; }

.bd-wl-price {
    font-size: 18px;
    font-weight: 800;
    color: #ff4da6;
    margin-bottom: 14px;
}

.bd-wl-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bd-wl-actions .button {
    flex: 1;
    padding: 10px 14px !important;
    border-radius: 50px !important;
    background: linear-gradient( 90deg, #ff4da6, #2563eb ) !important;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    border: none !important;
    cursor: pointer;
    font-size: 13px;
}

.bd-btn-outline-sm {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.bd-btn-outline-sm:hover { border-color: #ff4da6; color: #ff4da6; }

/* Wishlist button on product cards */
.bd-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 36px;
    border-radius: -1%;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.bd-wishlist-btn.in-wishlist { color: #ff4da6; border-color: #fbb6ce; }
.bd-wishlist-btn:hover       { color: #ff4da6; border-color: #fbb6ce; }

/* Wishlist count badge in header */
#bd-wishlist-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff4da6;
    color: #fff;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Responsive */
@media ( max-width: 1100px ) { .bd-wishlist-grid { grid-template-columns: repeat( 3, 1fr ); } }
@media ( max-width: 768px )  { .bd-wishlist-grid { grid-template-columns: repeat( 2, 1fr ); } }
@media ( max-width: 480px )  { .bd-wishlist-grid { grid-template-columns: 1fr; } }

/* Dark mode */
body.dark-mode .bd-wishlist-header h1 { color: #f1f5f9; }
body.dark-mode .bd-wl-card { background: #1e293b; border-color: rgba(255,255,255,0.08); }
body.dark-mode .bd-wl-info h4 a { color: #e2e8f0; }
body.dark-mode .bd-wishlist-guest,
body.dark-mode .bd-wishlist-empty { background: #1e293b; border-color: rgba(255,255,255,0.08); }
body.dark-mode .bd-wishlist-guest h3,
body.dark-mode .bd-wishlist-empty h3 { color: #f1f5f9; }
