/*=========================================
SELLER PRODUCT
=========================================*/

:root {

    --primary: #1976ff;
    --primary-light: #eef5ff;

    --green: #18c37e;
    --red: #ff5d73;
    --purple: #7367ff;
    --orange: #ff9800;

    --text: #18263f;
    --muted: #7b8ba3;

    --card: #ffffff;
    --border: #e8eef8;

    --shadow:
        0 10px 35px rgba(16, 35, 60, .08);

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    direction: rtl;

    font-family: "Vazirmatn", sans-serif;

    background: #f4f8fd;

    color: var(--text);

}

button {

    border: none;

    background: none;

    cursor: pointer;

    font-family: inherit;

}

img {

    display: block;

}

/*================================*/

.page {

    max-width: 700px;

    margin: auto;

    padding: 18px;

    padding-bottom: 100px;

}

/*================================*/

.header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

}

.header-center {

    flex: 1;

    text-align: center;

}

.header-center h1 {

    font-size: 22px;

    font-weight: 900;

}

.header-center p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;

}

.icon-btn {

    width: 48px;

    height: 48px;

    border-radius: 16px;

    background: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: var(--shadow);

    font-size: 20px;

    color: var(--text);

}

.add-btn {

    background: linear-gradient(135deg, #1976ff, #4c91ff);

    color: #fff;

}

/*================================*/
.stats {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-bottom: 16px;

}


.stat-card {

    background: #fff;

    border-radius: 18px;

    padding: 12px;

    box-shadow: var(--shadow);

    display: flex;

    align-items: center;

    gap: 10px;

}


.stat-card i {

    width: 38px;

    height: 38px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    background: #f4f8ff;

}


.stat-card strong {

    display: block;

    font-size: 18px;

    font-weight: 900;

    line-height: 1.2;

}


.stat-card span {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;

}



.blue i {

    color: #1976ff;

}


.green i {

    color: #18c37e;

}


.red i {

    color: #ff5d73;

}


.purple i {

    color: #7367ff;

}

/*================================*/

.search-box {

    height: 58px;

    background: #fff;

    border-radius: 18px;

    display: flex;

    align-items: center;

    padding: 0 18px;

    box-shadow: var(--shadow);

    margin-bottom: 16px;

}

.search-box i {

    color: #1976ff;

    font-size: 20px;

    margin-left: 12px;

}

.search-box input {

    border: none;

    outline: none;

    width: 100%;

    font-family: inherit;

    background: none;

    font-size: 15px;

}

/*================================*/

.filter-bar {

    display: flex;

    gap: 10px;

    margin-bottom: 22px;

    overflow: auto;

}

.filter-bar::-webkit-scrollbar {

    display: none;

}

.chip {

    height: 42px;

    padding: 0 18px;

    border-radius: 30px;

    background: #fff;

    box-shadow: var(--shadow);

    color: var(--text);

    font-weight: 800;

    white-space: nowrap;

    transition: .25s;

}

.chip.active {

    background: #1976ff;

    color: #fff;

}

/*================================*/
/*=========================================
PRODUCT LIST
=========================================*/

.products-list {

    display: flex;
    flex-direction: column;
    gap: 12px;

}


/*================================*/

.product-card {

    background: #fff;

    border-radius: 18px;

    box-shadow: var(--shadow);

    display: flex;

    padding: 10px;

    gap: 10px;

}


/*================================*/

.product-image {

    width: 85px;

    height: 85px;

    border-radius: 14px;

    overflow: hidden;

    background: #eef5ff;

    position: relative;

    flex-shrink: 0;

}


.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.discount {

    position: absolute;

    top: 5px;

    left: 5px;

    background: #ff4d67;

    color: #fff;

    padding: 2px 6px;

    border-radius: 8px;

    font-size: 10px;

    font-weight: 800;

}


/*================================*/

.product-body {

    flex: 1;

    min-width: 0;

}


.product-name {

    font-size: 14px;

    font-weight: 900;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.category {

    color: var(--muted);

    margin-top: 3px;

    font-size: 11px;

}


/*================================*/

.price {

    margin-top: 6px;

}


.old-price {

    text-decoration: line-through;

    color: #9ca8bc;

    font-size: 11px;

}


.new-price {

    margin-top: 2px;

    font-size: 15px;

    color: #1976ff;

    font-weight: 900;

}


/*================================*/

.meta {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;

}


.meta span {

    display: flex;

    align-items: center;

    gap: 4px;

    background: #f6f9fd;

    padding: 4px 7px;

    border-radius: 8px;

    font-size: 10px;

    color: #55657e;

}


.meta i {

    color: #1976ff;

    font-size: 11px;

}


/*================================*/
.actions {

    display: flex;

    gap: 8px;

    margin-top: 10px;

}


.actions button {

    flex: 1;

    height: 34px;

    border-radius: 10px;

    font-weight: 800;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    font-size: 12px;

}


.edit-btn {

    background: #1976ff;

    color: #fff;

}


.delete-btn {

    background: #fff1f3;

    color: #ff5d73;

}


.delete-btn i {

    font-size: 16px;

}

/*================================*/

.empty-box {

    background: #fff;

    border-radius: 18px;

    padding: 40px 15px;

    text-align: center;

    box-shadow: var(--shadow);

}


.empty-box i {

    font-size: 45px;

    color: #b7c5d9;

}


.empty-box p {

    margin-top: 12px;

    color: #75849a;

    font-size: 14px;

}