.self-product-page .panel {
    overflow: hidden;
}

.self-product-page .panel > .panel-body:last-of-type {
    padding: 0 16px 18px;
}

.self-product-store {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    min-height: 440px;
    color: #3f4654;
}

.self-product-catalog,
.self-product-selection {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ebf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .06);
}

.self-product-catalog__header,
.self-product-selection__toolbar {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f4;
    background: #fafbfc;
}

.self-product-catalog__header {
    gap: 8px;
    color: #555d6a;
    font-size: 14px;
    font-weight: 700;
}

.self-product-catalog__header i,
.self-product-selection__heading > i {
    color: #818a98;
}

.self-product-catalog__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px;
}

.self-product-category {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #5f6672;
    background: transparent;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.self-product-category:hover {
    color: #313743;
    background: #f4f6f8;
}

.self-product-category.active {
    color: #e45ba1;
    background: #fff2f8;
    box-shadow: inset 3px 0 #ec75b1;
}

.self-product-category__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border-radius: 7px;
    color: #929aa6;
    background: #f0f2f5;
}

.self-product-category.active .self-product-category__icon {
    color: #df5b9d;
    background: #ffe5f2;
}

.self-product-category__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.self-product-category__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.self-product-selection__toolbar {
    justify-content: space-between;
    gap: 14px;
}

.self-product-selection__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #4b5260;
    font-size: 14px;
    font-weight: 700;
}

.self-product-selection__heading strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.self-product-selection__heading small {
    flex: 0 0 auto;
    color: #9299a5;
    font-size: 12px;
    font-weight: 400;
}

.self-product-search {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 1 230px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    color: #8f97a4;
    background: #fff;
}

.self-product-search:focus-within {
    border-color: #c7a4db;
    box-shadow: 0 0 0 3px rgba(185, 129, 216, .12);
}

.self-product-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: #444b57;
    background: transparent;
    font-size: 13px;
}

.self-product-table-head,
.self-product-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 92px 100px 74px;
    align-items: center;
    column-gap: 12px;
}

.self-product-table-head {
    min-height: 42px;
    padding: 8px 14px;
    border-bottom: 1px solid #edf0f4;
    color: #747c89;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.self-product-table-head span:last-child {
    text-align: center;
}

.self-product-list {
    min-height: 260px;
}

.self-product-row {
    min-height: 94px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    transition: background-color .16s ease;
}

.self-product-row:last-child {
    border-bottom: 0;
}

.self-product-row:hover {
    background: #fdfdfe;
}

.self-product-row.sold-out {
    background: #fafafa;
}

.self-product-row__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.self-product-row__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 9px;
    color: #a1a8b2;
    background: #f6f7f9;
}

.self-product-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.self-product-row__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.self-product-row__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.self-product-row__name {
    display: -webkit-box;
    overflow: hidden;
    color: #555c68;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.self-product-row__name:hover {
    color: #c44f91;
}

.self-product-row__meta,
.self-product-row__mobile-stock {
    color: #9aa1ac;
    font-size: 11px;
}

.self-product-row__mobile-stock {
    display: none;
}

.self-product-row__mobile-stock b {
    color: #55a86e;
    font-weight: 600;
}

.self-product-row__price {
    color: #d84f9a;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.self-product-row__price span {
    margin-right: 3px;
    font-size: 11px;
    font-weight: 600;
}

.self-product-row__stock {
    overflow: hidden;
    color: #56aa70;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.self-product-row__stock.is-empty,
.self-product-row.sold-out .self-product-row__mobile-stock b {
    color: #a1a7b0;
}

.self-product-row__action {
    text-align: center;
}

.self-product-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #e2e5e9;
    border-radius: 9px;
    color: #777f8b;
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 41, 55, .07);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.self-product-buy:hover {
    color: #d25298;
    border-color: #e6b5d1;
    box-shadow: 0 7px 16px rgba(199, 76, 143, .13);
    transform: translateY(-1px);
}

.self-product-buy:disabled {
    color: #a6abb3;
    background: #f3f4f5;
    box-shadow: none;
    cursor: not-allowed;
}

.self-product-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 260px;
    padding: 28px;
    color: #8e95a0;
    font-size: 13px;
    text-align: center;
}

.self-product-state--empty {
    flex-direction: column;
}

.self-product-state--empty i {
    color: #c3c8cf;
    font-size: 30px;
}

.self-product-state--empty strong {
    color: #6b727e;
    font-size: 14px;
}

.self-product-state--empty span {
    color: #9da3ad;
    font-size: 12px;
}

@media (max-width: 991.98px) {
    .self-product-store {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 12px;
    }

    .self-product-table-head,
    .self-product-row {
        grid-template-columns: minmax(170px, 1fr) 80px 82px 66px;
        column-gap: 8px;
    }
}

@media (max-width: 640px) {
    .self-product-page.container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .self-product-page .panel > .panel-body:last-of-type {
        padding: 0 8px 10px;
    }

    .self-product-store {
        grid-template-columns: 106px minmax(0, 1fr);
        gap: 8px;
        min-height: 390px;
    }

    .self-product-catalog,
    .self-product-selection {
        border-radius: 9px;
    }

    .self-product-catalog__header,
    .self-product-selection__toolbar {
        min-height: 48px;
        padding: 9px;
    }

    .self-product-catalog__header {
        gap: 5px;
        font-size: 12px;
    }

    .self-product-catalog__list {
        gap: 3px;
        padding: 5px;
    }

    .self-product-category {
        gap: 5px;
        min-height: 38px;
        padding: 6px;
        border-radius: 7px;
        font-size: 11px;
    }

    .self-product-category__icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .self-product-selection__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .self-product-selection__heading {
        font-size: 12px;
    }

    .self-product-selection__heading small {
        font-size: 10px;
    }

    .self-product-search {
        flex-basis: auto;
        width: 100%;
        height: 30px;
        padding: 0 8px;
    }

    .self-product-search input {
        font-size: 11px;
    }

    .self-product-table-head,
    .self-product-row {
        grid-template-columns: minmax(0, 1fr) 58px 48px;
        column-gap: 5px;
    }

    .self-product-table-head {
        min-height: 34px;
        padding: 6px;
        font-size: 10px;
    }

    .self-product-table-head span:nth-child(3) {
        display: none;
    }

    .self-product-row {
        min-height: 78px;
        padding: 8px 6px;
    }

    .self-product-row__main {
        gap: 6px;
    }

    .self-product-row__thumb {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 7px;
    }

    .self-product-row__name {
        font-size: 11px;
        line-height: 1.35;
    }

    .self-product-row__meta {
        display: none;
    }

    .self-product-row__mobile-stock {
        display: block;
        font-size: 9px;
    }

    .self-product-row__price {
        font-size: 11px;
    }

    .self-product-row__price span {
        font-size: 9px;
    }

    .self-product-row__stock {
        display: none;
    }

    .self-product-buy {
        min-width: 44px;
        min-height: 28px;
        padding: 5px;
        border-radius: 7px;
        font-size: 10px;
    }

    .self-product-buy i {
        display: none;
    }

    .self-product-state {
        min-height: 220px;
        padding: 16px 8px;
        font-size: 11px;
    }
}
