.profile-header {
    background-color: #ffffff;
    padding: 8px 0;
}

.wishlist-shell {
    --wishlist-action-bar-height: 82px;
    display: flex;
    min-height: calc(100vh - 70px);
    flex-direction: column;
}

.wishlist-shell--has-actions {
    padding-bottom: var(--wishlist-action-bar-height);
}

body.wishlist-page-body {
    --wishlist-action-bar-height: 82px;
}

.wishlist-page {
    flex: 1 0 auto;
    padding: 1.25rem;
}

body .wishlist-page .wishlist-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    gap: 16px;
    justify-content: start;
    margin: 0;
    min-height: calc(100vh - 260px);
}

body .wishlist-page .wishlist-empty-state {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 260px);
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body .wishlist-page .wishlist-product-col {
    width: 100%;
    max-width: 200px;
    margin-bottom: 0 !important;
    padding: 0;
}

body .wishlist-page .wishlist-product-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 200px;
    height: 384px;
    min-height: 384px;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body .wishlist-page .wishlist-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.wishlist-select-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 12;
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(237, 20, 91, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
    cursor: pointer;
}

.wishlist-select-badge input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #ed145b;
    cursor: pointer;
}

.shop-products .wishlist-product-card .card-img-top {
    height: 200px !important;
    flex: 0 0 200px;
    padding: 8px;
    object-fit: contain !important;
}

.shop-products .wishlist-product-card .card-body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 8px;
}

.shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between:first-child {
    min-height: 20px;
}

.shop-products .wishlist-product-card .badge {
    font-size: 0.65rem;
    letter-spacing: 0;
}

.shop-products .wishlist-product-card .discount-percent-badge {
    top: 0.75rem;
    right: 0.75rem;
}

.shop-products .wishlist-product-card .btn {
    font-size: 12px;
    padding: 4px 6px;
}

.shop-products .wishlist-product-card .card-title {
    display: -webkit-box;
    min-height: 30px;
    margin-bottom: 4px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-products .wishlist-product-card .card-text,
.shop-products .wishlist-product-card .card-price {
    font-size: 14px;
}

.shop-products .wishlist-product-card .card-text {
    min-height: 14px;
    margin-bottom: 4px;
    font-size: 11px;
}

.shop-products .wishlist-product-card .wishlist-product-meta {
    display: grid;
    gap: 2px;
    margin: 0 0 4px;
    padding: 6px 7px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: #f8fafc;
}

.shop-products .wishlist-product-card .wishlist-product-meta .card-text {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    gap: 3px;
    margin-bottom: 0;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 600 !important;
    line-height: 1.22;
}

.shop-products .wishlist-product-card .wishlist-product-meta .wishlist-product-stock.text-success {
    color: #157347 !important;
}

.shop-products .wishlist-product-card .wishlist-product-meta .wishlist-product-stock.text-danger {
    color: #b42318 !important;
}

.shop-products .wishlist-product-card .wishlist-product-meta i {
    flex: 0 0 auto;
    font-size: 0.82em;
}

.shop-products .wishlist-product-card .card-price {
    font-weight: 700;
}

.shop-products .wishlist-product-card .product-price-stack {
    display: flex;
    min-width: 0;
    min-height: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    line-height: 1.1;
}

.shop-products .wishlist-product-card .card-original-price {
    color: #8a8a8a !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.shop-products .wishlist-product-card .wishlist-btn,
.shop-products .wishlist-product-card .cart-btn,
.shop-products .wishlist-product-card .inquiry-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    line-height: 1;
}

.shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between.align-items-center {
    min-height: 32px;
    margin-top: auto !important;
}

.wishlist-action-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
    width: 100%;
    z-index: 1040;
}

.wishlist-action-content {
    gap: 1rem;
}

.wishlist-action-summary {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.wishlist-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.wishlist-select-all input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #ed145b;
}

.wishlist-selected-count {
    font-size: 0.9rem;
    white-space: nowrap;
}

.wishlist-action-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-right: 5.5rem;
}

.wishlist-action-controls .btn {
    margin-right: 0 !important;
    white-space: nowrap;
}

.wishlist-action-spacer {
    height: var(--wishlist-action-bar-height);
}

body.wishlist-page-body .frontend-footer {
    padding-top: 0.5rem !important;
    padding-bottom: calc(var(--wishlist-action-bar-height) + 3rem) !important;
    margin-bottom: calc(var(--wishlist-action-bar-height) + 1rem) !important;
}

body.wishlist-page-body .frontend-footer .frontend-footer-links {
    align-items: flex-start;
}

body.wishlist-page-body .frontend-footer h6 {
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem;
    line-height: 1.1;
}

body.wishlist-page-body .frontend-footer ul {
    margin-bottom: 0 !important;
}

body.wishlist-page-body .frontend-footer li + li {
    margin-top: 0.08rem !important;
}

body.wishlist-page-body .frontend-footer a,
body.wishlist-page-body .frontend-footer p {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
}

body.wishlist-page-body .frontend-footer .frontend-footer-divider {
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

body.wishlist-page-body.wishlist-actions-fixed .chat-widget {
    right: 1.25rem !important;
    bottom: calc(var(--wishlist-action-bar-height) + 20px) !important;
}

body.wishlist-page-body.wishlist-actions-fixed .chat-container {
    max-height: calc(100vh - var(--wishlist-action-bar-height) - 100px);
}

html.phone-desktop-mode body.wishlist-page-body .profile-header {
    padding: 0.75rem 0 0.55rem;
}

html.phone-desktop-mode body.wishlist-page-body .profile-header .ms-5 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

html.phone-desktop-mode body.wishlist-page-body .profile-header h4 {
    font-size: 1.15rem;
    line-height: 1.2;
}

html.phone-desktop-mode body.wishlist-page-body .profile-header p {
    margin-bottom: 0;
    font-size: 0.82rem;
}

html.phone-desktop-mode .wishlist-shell {
    min-height: calc(100dvh - 58px);
}

html.phone-desktop-mode .wishlist-page {
    padding: 0.85rem;
}

html.phone-desktop-mode body .wishlist-page .wishlist-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    min-height: auto;
}

html.phone-desktop-mode body .wishlist-page .wishlist-empty-state {
    min-height: calc(100dvh - 245px);
    align-items: center;
}

html.phone-desktop-mode body .wishlist-page .wishlist-empty-state .py-5 {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

html.phone-desktop-mode body .wishlist-page .wishlist-empty-state .bi-heart {
    font-size: 2.4rem !important;
}

html.phone-desktop-mode body .wishlist-page .wishlist-empty-state p {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem;
    font-size: 0.86rem;
}

html.phone-desktop-mode body .wishlist-page .wishlist-empty-state .btn {
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.86rem;
}

html.phone-desktop-mode body .wishlist-page .wishlist-product-col,
html.phone-desktop-mode body .wishlist-page .wishlist-product-card {
    max-width: none;
}

html.phone-desktop-mode body .wishlist-page .wishlist-product-card {
    height: auto;
    min-height: 310px;
    border-radius: 12px !important;
}

html.phone-desktop-mode .shop-products .wishlist-product-card .card-img-top {
    height: 142px !important;
    flex-basis: 142px;
    padding: 0.45rem;
}

html.phone-desktop-mode .shop-products .wishlist-product-card .card-body {
    padding: 0.5rem 0.6rem 0.65rem;
}

html.phone-desktop-mode .shop-products .wishlist-product-card .card-title {
    min-height: 2rem;
    font-size: 0.78rem;
}

html.phone-desktop-mode .shop-products .wishlist-product-card .card-text,
html.phone-desktop-mode .shop-products .wishlist-product-card .text-muted.small {
    font-size: 0.7rem !important;
}

html.phone-desktop-mode .shop-products .wishlist-product-card .card-price {
    font-size: 0.9rem;
}

html.phone-desktop-mode body.wishlist-page-body.wishlist-actions-fixed .chat-widget {
    right: calc(0.75rem + env(safe-area-inset-right)) !important;
}

@media (max-width: 575.98px) {
    body.wishlist-page-body {
        --wishlist-action-bar-height: 240px;
    }

    .wishlist-shell {
        --wishlist-action-bar-height: 240px;
    }

    .wishlist-page {
        padding-right: 0.75rem;
        padding-bottom: 1.25rem;
        padding-left: 0.75rem;
    }

    body .wishlist-page .wishlist-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body .wishlist-page .wishlist-product-col,
    body .wishlist-page .wishlist-product-card {
        max-width: none;
    }

    body .wishlist-page .wishlist-product-card {
        height: auto;
        min-height: 292px;
    }

    .shop-products .wishlist-product-card .card-img-top {
        height: 124px !important;
        flex-basis: 124px;
        padding: 6px;
    }

    .shop-products .wishlist-product-card .card-body {
        padding: 7px 8px 8px;
    }

    .shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between:first-child {
        height: 18px;
        min-height: 18px;
        align-items: center;
        overflow: hidden;
    }

    .shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between:first-child > .d-flex {
        min-width: 0;
        line-height: 1;
    }

    .shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between:first-child span {
        line-height: 1;
        white-space: nowrap;
    }

    .shop-products .wishlist-product-card .card-title {
        min-height: 28px;
        margin-top: 0.45rem !important;
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .shop-products .wishlist-product-card .card-text {
        min-height: 0;
        margin-bottom: 2px;
        font-size: 10px;
        line-height: 1.2;
    }

    .shop-products .wishlist-product-card .card-text.small {
        font-size: 10px;
    }

    .shop-products .wishlist-product-card .card-body > .card-text.text-muted:not(.small) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shop-products .wishlist-product-card .card-body > .card-text.small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shop-products .wishlist-product-card .wishlist-product-meta {
        gap: 1px;
        margin-bottom: 3px;
        padding: 5px 6px;
        border-radius: 7px;
    }

    .shop-products .wishlist-product-card .wishlist-product-meta .card-text {
        font-size: 10.5px;
        font-weight: 600 !important;
        line-height: 1.22;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shop-products .wishlist-product-card .card-body > .d-flex.justify-content-between.align-items-center {
        min-height: 32px;
        margin-top: 0.35rem !important;
        padding-top: 2px;
    }

    .shop-products .wishlist-product-card .product-price-stack {
        min-height: 30px;
        max-width: calc(100% - 68px);
    }

    .shop-products .wishlist-product-card .card-price {
        font-size: 13px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .shop-products .wishlist-product-card .card-original-price {
        font-size: 10px;
    }

    .shop-products .wishlist-product-card .wishlist-btn,
    .shop-products .wishlist-product-card .cart-btn,
    .shop-products .wishlist-product-card .inquiry-btn {
        width: 26px;
        height: 26px;
        padding: 0;
    }

    .wishlist-action-content {
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch !important;
        padding-right: var(--bs-gutter-x, 0.75rem);
    }

    .wishlist-action-summary {
        justify-content: space-between;
    }

    .wishlist-action-controls {
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        margin-right: 0;
    }
}
