.main-container {
    padding: 1rem;
    padding-bottom: 6rem;
}

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.avatar {
    border-radius: 50%;
    width: 35px;
    height: 35px;
}


.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2F2F2;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
}

.search input {
    width: 100%;
    font-family: "Bold";
    font-size: 0.875rem;
    border: none;
    outline: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    color: var(--title_color);
}

.search button {
    border: none;
    outline: none;
    padding-top: 5px;
    background-color: transparent;
}

/* Banner */
.Banner {
    margin-top: 20px;
    width: 100%;
    border-radius: 1rem;
}

/* category started */
.category-list {
    margin-top: 20px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    scroll-behavior: smooth;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-list__item {
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-shrink: 0;
    gap: 5px;
    cursor: pointer;
}

.category-list__item .category-list__icon.active {
    background: var(--brown_light);
    /* پس‌زمینه‌ی فعال */
}


.category-list__icon {
    width: 100%;
    padding: 10px 0;
    border-radius: 12px;
    background-color: #F2F2F2;
    border: none;
    outline: none;
}

.category-list__icon.active {
    background: var(--brown_light);
}

.category-list__icon svg {
    width: 45px;
    height: 45px;
    width: 100%;
    margin: 0 auto;
}


.category-list__title {
    font-family: "Bold";
    font-size: 0.775rem;
}

/* استایل محصولات که با کتگوری فیلتر شدند */
.products-by-category {
    margin-top: 2rem;
    display: none;
}

.products-by-category.active {
    display: block;
}


.category-products-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* category ended */



.popular {
    margin-top: 2rem;
}

.section-title {
    font-family: "ExtraBold";
    font-size: 1rem;
    color: var(--title_color);
    border-right: 3px solid var(--brown_light);
    padding-right: 5px;
}

.popular-items {
    margin-top: 15px;
    display: flex;
    gap: 1rem;
    overflow-x: scroll;
}

.popular-items::-webkit-scrollbar {
    display: none;
}

.product-card {
    width: 175px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem 0.7rem;
    background-color: #fff;
}

.product-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #FCF9F6;
}

.product-card__image img {
    width: 85%;
    height: 130px;
    object-fit: contain;
}

.product-card__details {
    width: 100%;
}

.product-card__name {
    font-family: "Bold";
    font-size: 0.875rem;
    color: var(--brown_light);
}

.product-card__category {
    font-family: "Regular";
    font-size: 0.675rem;
    color: var(--desc_color);
}


.product-card__footer {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    font-family: "Bold";
    font-size: 0.875rem;
    color: var(--title_color);
}

.product-card__footer button,
.Allproduct-card .product-details-footer button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    padding: 0.3rem;
    border-radius: 0.5rem;
    background-color: var(--brown_light);
    color: var(--cream);
}




/* All Products */
.all {
    margin-top: 2rem;
}


.product-items__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-items__header .seeAll {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bold";
    font-size: 0.775rem;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--brown_light);
}

.product-items {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Allproduct-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1rem;
    padding: 0.8rem 0.7rem;
    background-color: #fff;
}

.product-image {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #FCF9F6;
}

.product-details {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
}

.product-details-header,
.product-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-name {
    font-family: "Bold";
    font-size: 1rem;
    color: var(--brown_light);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: end;
}

.rating-value {
    font-family: "ExtraBold";
    font-size: 0.875rem;
    color: var(--brown_light);
}

.product-category {
    font-family: "Regular";
    font-size: 0.775rem;
    color: var(--desc_color);
}