/* ============================================================
   ЛИСТА ЖЕЉА — Wishlist styles
   ============================================================ */

/* Heart button on product cards */
.c-product,
.c-icon-card { position: relative; }

.c-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
    color: #ccc;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}
.c-wishlist-btn:hover {
    color: #e74c3c;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.c-wishlist-btn.active {
    color: #e74c3c;
}
.c-wishlist-btn:focus {
    outline: none;
}

/* Header wishlist badge */
.wishlist-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: #fff;
    font-size: 0.6rem;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============================================================
   Wishlist PAGE styles
   ============================================================ */
.wl-page-header {
    padding: 30px 0 20px;
    text-align: center;
}
.wl-page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}
.wl-page-header .line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

/* Empty state */
.wl-empty {
    text-align: center;
    padding: 60px 20px;
}
.wl-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
.wl-empty p {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 20px;
}

/* Wishlist table */
.wl-table-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 30px;
}
.wl-table {
    width: 100%;
    border-collapse: collapse;
}
.wl-table thead th {
    background: var(--dark);
    color: var(--gold);
    padding: 14px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-align: left;
}
.wl-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.wl-table tbody tr:hover {
    background: #faf9f6;
}
.wl-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Table columns */
.wl-td-img {
    width: 80px;
}
.wl-td-img img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8f5f0;
    border-radius: 4px;
    padding: 5px;
}
.wl-td-name strong {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}
.wl-td-name small {
    color: #aaa;
    font-size: 0.8rem;
}
.wl-td-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.wl-td-actions {
    white-space: nowrap;
    text-align: right;
}
.wl-td-actions .btn-gold-sm {
    font-size: 0.78rem;
    padding: 7px 16px;
}
.wl-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.2s;
    margin-left: 8px;
}
.wl-remove:hover {
    color: #e74c3c;
}

/* Clear all button */
.wl-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.wl-count {
    font-size: 0.9rem;
    color: #888;
}
.btn-clear-wl {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 6px 16px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-clear-wl:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .wl-table thead { display: none; }
    .wl-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        align-items: center;
        gap: 10px;
    }
    .wl-table td {
        padding: 4px 0;
        border: none;
    }
    .wl-td-img { width: 60px; }
    .wl-td-img img { width: 55px; height: 55px; }
    .wl-td-name { flex: 1; min-width: 120px; }
    .wl-td-price { width: auto; }
    .wl-td-actions { width: 100%; text-align: left; padding-top: 6px; }
}
