/* =========================================================
   KANEEZA MOSLEM WEAR — CSS khusus Wishlist (wishlist.php)
   Style bersama (header, footer, tombol, product card p-grid/
   p-card, dll) ada di assets/css/style.css.
   ========================================================= */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--maroon);
}

.breadcrumb .sep {
    color: var(--border);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ---------- Toolbar (jumlah produk / hapus semua) ---------- */
.wishlist-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    font-size: 14px;
}

.wishlist-count {
    color: var(--text-muted);
    font-size: 13.5px;
}

.wishlist-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

.wishlist-hapus-all {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.wishlist-hapus-all .icon {
    width: 15px;
    height: 15px;
}

.wishlist-hapus-all:hover {
    color: var(--maroon);
}

/* ---------- Wishlist grid (pakai .p-grid/.p-card dari style.css) ---------- */
.wishlist-grid .p-card {
    transition: opacity .2s, transform .2s;
}

.wishlist-grid .p-card.removing {
    opacity: 0;
    transform: scale(.96);
}

/* Tombol love aktif — menandakan produk sudah difavoritkan */
.wishlist-grid .p-wish {
    background: var(--maroon);
    color: #fff;
}

.wishlist-grid .p-wish:hover {
    background: var(--maroon-dark);
}

.wishlist-item-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.wishlist-add-btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 12.5px;
}

.wishlist-remove-btn {
    flex-shrink: 0;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: .15s;
}

.wishlist-remove-btn .icon {
    width: 15px;
    height: 15px;
}

.wishlist-remove-btn:hover {
    background: #fbeceb;
    border-color: #f0d2ce;
    color: #b5342f;
}

/* ---------- Empty state ---------- */
.wishlist-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 70px 20px;
}

.wishlist-empty.show {
    display: flex;
}

.wishlist-empty .icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    margin-bottom: 22px;
}

.wishlist-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--maroon-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.wishlist-empty p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
}

.wishlist-empty .btn {
    padding: 13px 30px;
}

/* ---------- Related products (Kamu mungkin juga suka) ---------- */
.related-section {
    padding: 44px 0 56px;
}

.related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.related-head h2 {
    font-size: 20px;
    color: var(--maroon-dark);
    font-weight: 600;
}

.related-head .view-all {
    font-size: 13px;
    color: var(--maroon);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-row-wrap {
    position: relative;
}

.p-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.row-arrow {
    position: absolute;
    top: 38%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    z-index: 2;
}

.row-arrow.left {
    left: -19px;
}

.row-arrow.right {
    right: -19px;
}

/* ---------- Responsive ---------- */
@media(max-width:1080px) {
    .p-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width:720px) {
    .breadcrumb {
        padding: 14px 0;
        font-size: 11.5px;
    }

    .wishlist-toolbar {
        padding-bottom: 16px;
        font-size: 13px;
    }

    .wishlist-empty {
        padding: 48px 18px;
    }

    .wishlist-empty .icon-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .wishlist-empty h3 {
        font-size: 17px;
    }

    .related-section {
        padding: 30px 0 40px;
    }

    .p-row {
        grid-template-columns: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 4px;
    }

    .p-row .p-card {
        flex: 0 0 46%;
        scroll-snap-align: start;
    }

    .wishlist-item-actions {
        gap: 6px;
        margin-top: 10px;
    }

    .wishlist-add-btn {
        gap: 0;
        padding: 9px 6px;
        justify-content: center;
    }

    .wishlist-add-btn .btn-label {
        display: none;
    }

    .wishlist-add-btn .icon {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .wishlist-remove-btn {
        width: 32px;
    }

    .row-arrow.left {
        display: none;
    }

    .row-arrow.right {
        right: 4px;
        top: 30%;
        width: 32px;
        height: 32px;
    }
}

@media(max-width:480px) {
    .wishlist-remove-btn {
        width: 30px;
    }
}