input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}
*, *:after, *:before{
    -webkit-tap-highlight-color: transparent;
    padding:0;
    margin:0;
    box-sizing: border-box;

}
body {
    background-color: #f4f4f4;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;

}
/* پاپ آپ محصول */
.ui-item-overlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    right:0;
    display: flex;
    visibility: hidden;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(1.5px);
    background-color: #00000073;
    z-index: 1000;

}
.ui-item-container {
    position: relative;
    max-width: 856px;
    max-height: 535px;
    width: 100%;
    border-radius: 20px;
    background-color: #fff;
    z-index: 2;
}
.ui-close-overlay-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    position: absolute;
    left: 20px;
    top: 20px;
    border: none;
    z-index: 2;
    border-radius: 4px;
    cursor: pointer;
}
.ui-close-overlay-btn svg {
    width: 18px;
    height: 18px;
}
.category-item-section {
    position: relative;
    display: grid;
    grid-template-columns: 371px auto;
    max-height: 535px;
    background-color: #fff;
    border-radius: 20px;
    overflow-y: hidden;
}
.category-item-img-slider {
    position: relative;
}
.category-item-img-actions {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    margin: 24px 0 0 24px;
    gap: 6px;
    z-index: 10;
}
.category-item-img-btns {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--Text-300, #d9d9d9);
    background: #fff;
    cursor: pointer;
}
.category-item-like-btn {
    cursor: not-allowed;
}
.category-item-basket-btn {
    position: relative;
}
.category-item-basket-btn span {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    min-height: 16px;
    background-color: #ffa600;
    border-radius: 50%;
    text-align: center;
    margin: 4px 4px 0 0;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    user-select: none;
}
.archive-item-img-box {
    height: 100%;
}
.archive-item-img-box .glide__track {
    height: 100%;
}
.archive-item-img-box .glide__slides {
    height: 100%;
}
.ui-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-top: 92px;
}
.category-item-close-btn svg {
    width: 18px;
}
.category-item-close-btn-mobile {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 4px;
    background: var(--Text-300, #d9d9d9);
    cursor: pointer;
}
.category-item-close-btn-mobile svg {
    width: 18px;
}
.category-item-order-info {
    padding-inline: 32px;
}
.category-item-name-and-price {
    display: flex;
    justify-content: space-between;
    color: var(--Text-600, #4c4c4c);
    font-size: 18px;
    font-weight: 600;
}
.category-item-time-and-rate {
    display: flex;
    gap: 30px;
    margin-top: 22px;
    color: var(--Text-600, #4c4c4c);
    font-size: 12px;
    font-weight: 600;
}
.category-item-time-and-rate div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.category-item-order-ingredients {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--Text-500, #646464);
    font-size: 16px;
    font-weight: 400;
    margin-top: 32px;
}
.category-item-order-ingredients span {
    font-weight: 600;
}
.category-item-order-ingredients p {
    max-height: 160px;
    overflow: auto;
    line-height: 182.5%;
}
.category-item-order-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 31px;
}
.order-size-btn {
    border-radius: 8px;
    border: 1px solid var(--Text-400, #909090);
    background: var(--Text-100, #f9f9f9);
    padding: 10px 30px;
    color: var(--Text-400, #909090);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-wrap: nowrap;
}
.category-item-active-size {
    border-radius: 8px;
    border: 1px solid var(--Primary-500, #6C3317);
    background: #fff;
    color: var(--Primary-500, #6C3317);
    font-size: 14px;
    font-weight: 600;
}
.category-item-footer {
    display: flex;
    justify-content: space-between;
    padding-block: 26px;
    padding-inline: 32px;
    border-top: 1px solid var(--Text-300, #d9d9d9);

}
.add-category-item-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: none;
    border-radius: 12px;
    background: var(--Primary-500, #6C3317);
    padding: 12px 40px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 0;
    cursor: pointer;
}
.add-category-item-btn svg {
    width: 22px;
    height: 22px;
}
.category-order-counter {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.category-item-counter {
    color: var(--Text-600, #4c4c4c);
    font-size: 16px;
    font-weight: 600;
}

.category-plus-btn,
.category-minus-btn {
    display: flex;
    padding: 13px;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    border: 1px solid var(--Primary-500, #6C3317);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.category-plus-btn:hover,
.category-minus-btn:hover {
    background: var(--Primary-500, #6C3317);
    border-color: #6C3317;
}
.category-plus-btn:hover svg,
.category-minus-btn:hover svg {
    stroke: #fff;
}
.category-item-footer-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--Text-500, #646464);
    font-size: 12px;
    font-weight: 400;
}
.footer-price {
    color: var(--Text-700, #2f2f2f);
    font-size: 18px;
    font-weight: 600;
}

/* بخش علاقه مندی */
.archive-products-container {
    max-width: 1296px;
    margin-inline: auto;
    margin-bottom: 119px;
}
.archive-products-title {
    font-size: 26px;
    font-weight: 600;
    padding-block: 42px 60px;
    color: #2f2f2f;
}
.archive-products-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-radius: 20px;
    margin-inline: 24px;
}
.archive-products-items {
    max-width: 478px;
    width: 100%;
    position: relative;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    list-style: none;
    user-select: none;
    transition: box-shadow 0.3s ease 0s;
}
.archive-products-items:hover {
    box-shadow: -4px 4px 24px 0px #6C331733;
}
.archive-products-btn {
    position: absolute;
    top: 23px;
    left: 22px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.liked-item path {
    fill: #ffa600;
    stroke: #ffa600;
}

.archive-products-item-details {
    height: 126.8px;
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.archive-products-item-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
}

.archive-products-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.archive-products-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
}
.archive-products-item-ingredients {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 32px;
    margin-left: 46px;
}
.archive-products-item-line {
    border-top: #d9d9d9 dashed 2px;
    width: 100%;
    margin-block: 20px;
}
.archive-products-item-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.archive-products-add-btn {
    display: inline-flex;
    padding: 13px;
    align-items: center;
    border-radius: 8px;
    background: #6C3317;
    border: none;
    cursor: pointer;
}
.archive-products-add-btn svg {
    width: 24px;
    height: 24px;
}
.archive-products-add-btn path {
    stroke: #fff;
}
.archive-products-order-counter {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.archive-products-plus-btn svg {
    stroke-width: 2px;
}
.archive-products-plus-btn:hover svg {
    stroke: #ffffff;
}
.archive-products-plus-btn:hover {
    background: #6C3317;
}
.archive-products-plus-btn:hover + .archive-products-items {
    box-shadow: -4px 4px 24px 0px rgba(24, 61, 61, 0.2);
}

.archive-products-item-counter {
    color: var(--Text-600, #4c4c4c);
    font-size: 16px;
    font-weight: 600;
}

.archive-products-plus-btn,
.archive-products-minus-btn {
    display: flex;
    padding: 16px;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    border: 1px solid var(--Primary-500, #6C3317);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.archive-products-plus-btn:hover,
.archive-products-minus-btn:hover {
    background: var(--Primary-500, #6C3317);
    border-color: #6C3317;
}
.archive-products-plus-btn:hover svg,
.archive-products-minus-btn:hover svg {
    stroke: #fff;
}
.archive-products-price-tag {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.archive-products-discount {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}
.archive-products-item-price-without-discount {
    color: var(--Text-400, #909090);
    font-size: 14px;
    font-weight: 400;
    line-height: 175.5%; /* 24.57px */
    text-decoration: line-through;
}
.archive-products-discount-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 2px;
    padding-inline: 11px;
    background-color: var(--Tertiary-500, #ffa600);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 126%; /* 17.64px */
}
.archive-products-item-price-with-discount {
    color: var(--Text-600, #4c4c4c);
    font-size: 18px;
    font-weight: 600;
}
.no-order-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    margin-inline: auto;
}
.no-order-img {
    width: 180px;
    height: 278px;
    margin-bottom: 25px;
    margin-top: 60px;
}
.no-order-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 75px;
    color: #646464;
}
.no-order-btn {
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    padding-block: 12px;
    padding-inline: 58px;
    text-decoration: none;
    color: #ffffff;
    background-color: #6C3317;
    border-radius: 12px;
    margin-bottom: 56px;
}
.ui-mobile-title {
    display: none;
    font-size: 20px;
}
@media screen and (max-width: 1124px) {
    .archive-products-container {
        width: auto;
        margin-inline: 24px;
    }
    .archive-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 1005px) {
    .archive-products-item-ingredients {
        margin-left: 15px;
    }
}
@media screen and (max-width: 942px) {
    .archive-products-list {
        grid-template-columns: 1fr;
        margin-inline:0;
    }
    .archive-products-items {
        margin-inline: auto;
    }
    .archive-products-item-image {
        width: 90px;
        height: 90px;
        border-radius: 16px;
    }
    .archive-products-item-name {
        font-size: 16px;
    }
    .archive-products-item-ingredients {
        font-size: 14px;
        margin-left: 80px;
    }
    .archive-products-item-price-with-discount {
        font-size: 16px;
    }
    .archive-products-item-price-without-discount {
        font-size: 12px;
    }
    .archive-products-discount-percent {
        font-size: 12px;
    }
    .archive-products-item-line {
        margin-block: 10px;
    }
    .archive-products-item-info {
        gap: 10px;
    }
    .archive-products-item-name {
        margin-top: 5px;
    }
    .category-item-section {
        grid-template-columns: 100%;
        grid-template-rows: 375px auto;
        overflow-y: auto;
    }
    .category-item-details {
        padding-top: 40px;
    }
    .category-item-img-slider {
        width: 100%;
    }
    .ui-close-overlay-btn {
        left: unset;
        right: 20px;
    }
}
@media screen and (max-width: 640px) {
    .category-item-time-and-rate {
        font-size: 16px;
    }
    .category-item-order-size-and-ingredients {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 34px;
        margin-top: 34px;
        margin-bottom: 42px;
    }
    .category-item-order-ingredients {
        font-size: 18px;
        order: 2;
        margin-top: 0;
    }
    .category-item-order-size {
        order: 1;
        margin-bottom: 0;
    }
    .category-item-price-unit {
        font-size: 14px;
    }
}
@media screen and (max-width: 576px) {
    .archive-products-container {
        margin-inline: 24px;
    }
    .archive-products-list {
        border: none;
        padding: 0;
    }
    .archive-products-add-btn {
        width: 42px;
        height: 42px;
    }
    .archive-products-plus-btn,
    .archive-products-minus-btn {
        padding: 12px;
    }
    .archive-products-plus-btn svg,
    .archive-products-minus-btn svg {
        width: 15px;
        height: 15px;
    }
    .archive-products-item-counter {
        font-size: 14px;
    }
    .archive-products-order-counter {
        gap: 8px;
    }
    .archive-products-item-image {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    .archive-products-title {
        padding-block: 28px 18px;
    }
    .archive-products-item-name {
        font-size: 14px;
    }
    .archive-products-item-ingredients {
        font-size: 12px;
        margin-left: 40px;
    }
    .archive-products-item-price-with-discount {
        font-size: 14px;
    }
    .category-item-time-and-rate {
        font-size: 14px;
    }
    .archive-products-item-line {
        margin-block: 6px;
    }
    .category-item-price-unit {
        font-size: 12px;
    }
    .archive-products-item-details {
        height: fit-content;
    }
    .archive-products-title {
        font-size: 18px;
    }
    .ui-mobile-title {
        display: block;
    }
}
@media screen and (max-width: 512px) {
    .ui-item-container {
        width: 100vw;
        height: 100vh;
        position: unset;
        top: 0;
        left: 0;
        transform: none;
        max-height: 100%;
        border-radius: 0;
    }
    .category-item-section {
        max-height: 100%;
        border-radius: 0;
    }
    .category-item-details {
        padding-top: 0;
    }
    .category-item-order-info {
        padding-top: 40px;
        background-color: #f4f4f4;
    }
    .archive-item-img-box .glide__slide {
        border-radius: 12px;
    }
    .order-size-btn {
        padding: 8px 24px;
    }
    .category-item-order-ingredients {
        font-size: 14px;
    }
    .footer-price {
        font-size: 12px;
    }
    .footer-price-number {
        font-size: 18px;
    }
    .category-item-img-slider {
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .archive-products-list {
        gap: 12px;
    }
    .archive-products-item-info {
        gap: 6px;
    }
    .archive-products-item-ingredients {
        line-height: 14px;
    }
}
@media screen and (max-width: 400px) {
    .archive-products-btn {
        top: 14px;
        left: 14px;
    }
}