/* =========================================================
   PMT LUXURY CUSTOM WISHLIST STYLES
   - Dark Luxury Palette (#211811, #18100A, #FDD501, #FFFFFF)
   - Responsive Wishlist Table & Mobile Card Rows
   - Header Badge Counter Sync
   - Empty State Experience
========================================================= */

/* 1. Header Wishlist Badge */
.pmt-wishlist-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmt-wishlist-count-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #E53935;
    color: #FFFFFF;
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.pmt-wishlist-count-badge.is-empty {
    display: none !important;
}

/* 2. Standalone Wishlist Page & Guest Banner */
.pmt-wishlist-page-wrapper {
    width: 100%;
    min-height: 70vh;
    padding: 30px 0 80px;
    box-sizing: border-box;
}

.pmt-guest-wishlist-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(253, 213, 1, 0.08);
    border: 1px solid rgba(253, 213, 1, 0.25);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    color: #E0DCD7;
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 14px;
    line-height: 1.5;
}

.pmt-guest-wishlist-banner svg {
    color: var(--pmt-acc-gold, #FDD501);
    flex-shrink: 0;
}

.pmt-guest-wishlist-banner a {
    color: var(--pmt-acc-gold, #FDD501);
    font-weight: 700;
    text-decoration: underline;
}

.pmt-wishlist-standalone-card {
    background: var(--pmt-acc-card-bg, #211811);
    border: 1px solid var(--pmt-acc-card-border, rgba(184, 134, 11, 0.16));
    border-radius: 14px;
    padding: 38px 44px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    width: 100%;
}

.pmt-account-wishlist-wrap {
    width: 100%;
}

.pmt-account-section-heading {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 22px 0;
}

/* 3. Wishlist Table */
.pmt-wishlist-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pmt-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    margin: 0;
}

.pmt-wishlist-table thead {
    background: #FFFFFF !important;
}

.pmt-wishlist-table thead th {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    padding: 14px 18px !important;
    border: none !important;
    background: #FFFFFF !important;
    text-align: left;
    letter-spacing: 0.2px;
}

.pmt-wishlist-table thead th.pmt-wl-col-actions {
    text-align: right;
}

.pmt-wishlist-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, opacity 0.3s ease;
}

.pmt-wishlist-table tbody tr:last-child {
    border-bottom: none;
}

.pmt-wishlist-table tbody td {
    padding: 18px 18px;
    vertical-align: middle;
    border: none !important;
}

/* Product Item */
.pmt-wl-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pmt-wl-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #140E0A;
    border: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.pmt-wl-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pmt-wl-product-thumb:hover img {
    transform: scale(1.06);
}

.pmt-wl-product-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pmt-wl-product-title {
    color: #FFFFFF !important;
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.pmt-wl-product-title:hover {
    color: var(--pmt-acc-gold, #FDD501) !important;
}

.pmt-wl-product-cats {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 12px;
    color: #8E857D;
}

.pmt-wl-product-cats a {
    color: #8E857D !important;
    text-decoration: none !important;
}

/* Price */
.pmt-wl-price {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--pmt-acc-gold, #FDD501) !important;
    white-space: nowrap;
}

.pmt-wl-price del {
    color: #8E857D;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.pmt-wl-price ins {
    text-decoration: none;
    color: var(--pmt-acc-gold, #FDD501);
}

/* Stock Badges */
.pmt-wl-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pmt-wl-stock-badge.in-stock {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.pmt-wl-stock-badge.out-of-stock {
    background: rgba(229, 57, 53, 0.15);
    color: #EF5350;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

/* Actions Group */
.pmt-wl-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.pmt-btn-wl-cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    padding: 0 22px !important;
    border-radius: 25px !important;
    background: var(--pmt-acc-gold-grad, linear-gradient(90deg, #FDD501 0%, #B8860B 100%)) !important;
    color: #080300 !important;
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(253, 213, 1, 0.25) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    white-space: nowrap;
}

.pmt-btn-wl-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(253, 213, 1, 0.45) !important;
    color: #080300 !important;
}


/* Remove Button */
.pmt-wishlist-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #A89F96 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.pmt-wishlist-remove-btn:hover {
    background: rgba(229, 57, 53, 0.25) !important;
    border-color: #EF5350 !important;
    color: #FFFFFF !important;
    transform: scale(1.08);
}

/* Loading State */
.pmt-wl-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 4. Empty State */
.pmt-wishlist-empty-state {
    text-align: center;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pmt-wishlist-empty-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(253, 213, 1, 0.08);
    border: 1px solid rgba(253, 213, 1, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pmt-acc-gold, #FDD501);
    margin-bottom: 22px;
}

.pmt-wishlist-empty-title {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.pmt-wishlist-empty-subtitle {
    font-family: var(--pmt-acc-font, 'DM Sans', sans-serif);
    font-size: 14.5px;
    color: #A89F96;
    max-width: 440px;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.pmt-wishlist-return-shop-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 46px !important;
    padding: 0 32px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* =========================================================
   5. RESPONSIVE MEDIA QUERIES
========================================================= */
@media (max-width: 768px) {
    .pmt-wishlist-standalone-card {
        padding: 24px 18px;
    }

    .pmt-wishlist-table thead {
        display: none;
    }

    .pmt-wishlist-table,
    .pmt-wishlist-table tbody,
    .pmt-wishlist-table tr,
    .pmt-wishlist-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .pmt-wishlist-table tr {
        padding: 18px 0;
        position: relative;
    }

    .pmt-wishlist-table td {
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .pmt-wishlist-table td::before {
        content: attr(data-title);
        font-family: var(--pmt-acc-font);
        font-size: 13px;
        font-weight: 600;
        color: #8E857D;
    }

    .pmt-wishlist-table td.pmt-wl-col-product {
        display: block;
        padding-bottom: 12px;
    }

    .pmt-wishlist-table td.pmt-wl-col-product::before {
        display: none;
    }

    .pmt-wishlist-table td.pmt-wl-col-actions {
        padding-top: 12px;
    }

    .pmt-wishlist-table td.pmt-wl-col-actions::before {
        display: none;
    }

    .pmt-wl-actions-group {
        width: 100%;
        justify-content: space-between;
    }

    .pmt-btn-wl-cart {
        flex: 1;
    }
}
