body {
  background-color: #f4f4f4;
  overflow-x: hidden;
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

/* تغییرات */
svg {
  pointer-events: none;
}

/* تغییرات */
.category-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: auto;
  margin-bottom: 20px;
}

.category-list {
  overflow-x: auto;
  display: flex;
  gap: 10px;
  width: 100%;
  padding-bottom: 20px;
  margin-top: 40px;
}

.category-item-countainer {
  min-width: 110px;
  height: 128px;
  background-color: white;
  list-style: none;
  border-radius: 10px;
  padding: 6px;
}

.category-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: white;
  cursor: pointer;
  gap: 15px;
  padding-bottom: 20px;
  padding-top: 10px;
}

.category-item-svg {
  width: 50px !important;
  height: 50px !important;
  margin-top: 14px;
}

.category-item-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--toranj-primary-color) !important ;
}

.selected-item,
.selected-item .category-item {
  background-color: var(--toranj-secondary-color);
  transition: background-color 0.2s ease;
  color: var(--toranj-primary-color) !important ;

}

.selected-item .category-item {
  border-radius: 10px;
  border: 2px dashed var(--toranj-primary-color);
}

.selected-category {
  width: 100%;
  position: relative;
  margin-top: 50px;
}

.selected-category-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f4f4f4;
  padding-inline: 38px;
  font-size: 26px;
  font-weight: 600;
  line-height: 120%;
  color: var(--Text-600, #4c4c4c);
}
.socials .selected-category {
  margin-bottom: 50px;
}
.selected-category-line {
  border-top: rgba(6, 76, 79, 0.4) dashed 2px;
  width: 100%;
}

/* Firefox */
.category-list {
  scrollbar-width: thin !important;
  scrollbar-color: var(--toranj-secondary-color) #dfe9eb !important;
}

/* Chrome, Edge and Safari */
.category-list::-webkit-scrollbar {
  height: 4px !important;
}

.category-list::-webkit-scrollbar-track {
  border-radius: 5px !important;
  background-color: #ffffff !important;
}

.category-list::-webkit-scrollbar-thumb {
  border-radius: 5px !important;
  background-color: var(--toranj-secondary-color) !important;
}

.category-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--toranj-secondary-color) !important;
}

.category-list::-webkit-scrollbar-thumb:active {
  background-color: var(--toranj-secondary-color) !important;
}

/* انیمیشن کلاس selected-item */
@keyframes selected-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.selected-category-items-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
  grid-row-gap: 25px;
  margin-block: 40px;
}

.selected-category-items {
  position: relative;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  width: 416px;
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.item-details {
  display: flex;
  gap: 15px;
}

.item-image {
  width: 120px !important;
  height: 120px !important;
}

.item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.like-btn {
  cursor: pointer;
  position: absolute;
  top: 10%;
  left: 5%;
  width: fit-content;
  border: none;
  background-color: transparent;
}

.like-btn * {
  pointer-events: none;
}

.like-checkbox:checked + .like-btn svg {
  stroke: var(--toranj-accent-color);
  fill: var(--toranj-accent-color);
  transition: fill 0.2s;
}

.item-name {
  font-size: 18px;
  font-weight: 600;
}

/* تغییرات */
.item-ingredients {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 32px; /* 200% */
}

/* تغییرات */
.item-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-btn {
  display: inline-flex;
  padding: 14px;
  align-items: center;
  border-radius: 8px;
  background: #ededed;
  border: none;
  cursor: pointer;
}

.add-btn svg {
  pointer-events: none;
  stroke-width: 2px;
  stroke: #909090;
}

.add-btn:hover svg {
  stroke: #ffffff;
}

.add-btn:hover {
  background: var(--toranj-primary-color) !important ;
}

.add-btn:hover + .selected-category-items {
  box-shadow: -4px 4px 24px 0px rgba(24, 61, 61, 0.2);
}

.price-tag {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.price-tag-product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.item-price-with-discount {
  color: var(--Text-600, #4c4c4c);
  font-size: 18px;
  font-weight: 600;
  line-height: 120%; /* 21.6px */
}

.discount {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.discount-percent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2px;
  padding-inline: 11px;
  background-color: var(--toranj-accent-color);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 126%; /* 17.64px */
}

.item-price-without-discount,
.item-price-without-discount-popup {
  color: var(--Text-400, #909090);
  font-size: 14px;
  font-weight: 400;
  line-height: 175.5%; /* 24.57px */
  text-decoration: line-through;
}

.order-counter {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.item-counter {
  color: var(--Text-600, #4c4c4c);
  font-size: 16px;
  font-weight: 600;
}

.plus-btn,
.minus-btn {
  display: flex;
  padding: 14px;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid var(--toranj-primary-color) !important ;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.plus-btn svg,
.minus-btn svg {
  pointer-events: none;
}

.plus-btn:hover,
.minus-btn:hover {
  background: var(--toranj-primary-color) !important ;
  border-color: var(--toranj-primary-color) !important ;
}

.plus-btn:hover svg,
.minus-btn:hover svg {
  stroke: #fff;
}

.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(--toranj-primary-color) !important ;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.category-plus-btn:hover,
.category-minus-btn:hover {
  background: var(--toranj-primary-color) !important ;
  border-color: var(--toranj-primary-color) !important ;
}

.category-plus-btn:hover svg,
.category-minus-btn:hover svg {
  stroke: #fff;
}

.category-item-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100svh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.category-item-container {
  position: relative;
  width: 856px;
}

.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 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--Text-300, #d9d9d9);
  background: #fff;
  cursor: pointer;
}

#category-item-like-btn:checked + .category-item-img-btns svg {
  fill: var(--toranj-accent-color);
  stroke: var(--toranj-accent-color);
}

.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: var(--toranj-accent-color);
  border-radius: 50%;
  text-align: center;
  margin: 4px 4px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  user-select: none;
}

.category-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding-top: 92px;
}

.category-item-close-btn {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 4px;
  background: var(--Text-300, #d9d9d9);
  cursor: pointer;
  margin: 20px 0 0 20px;
}

.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-size-and-ingredients {
  margin-bottom: 42px;
}

.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 p {
  max-height: 160px;
  overflow: auto;
  line-height: 182.5%;
}

.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(--toranj-primary-color) !important ;
  background: #fff;
  color: var(--toranj-primary-color) !important ;
  font-size: 14px;
  font-weight: 600;
}

.category-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  padding-inline: 32px;
  border-top: 1px solid var(--Text-300, #d9d9d9);
}

.add-category-item-btn {
  width: 145px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 12px;
  background: var(--toranj-primary-color) !important ;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 0;
  cursor: pointer;
}

.add-category-item-btn svg {
  width: 22px;
  height: 22px;
}

.category-item-slider-navigation {
  position: absolute;
  display: flex;
  gap: 5px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.category-item-slider-btn {
  border: none;
  outline: none;
  background-color: #909090;
  border-radius: 9999px;
  width: 8px;
  height: 8px;
  cursor: pointer;
  transition-property: width, background-color;
  transition-duration: 0.2s;
}

.category-item-slider-btn.active {
  width: 16px;
  background-color: var(--toranj-accent-color);
}

.category-item-img-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.category-item-img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  transition: transform 0.2s;
  user-select: none;
  --x: 0;
  transform: translateX(var(--x));
}

.to-left {
  --x: 100%;
}

.to-right {
  --x: -100%;
}

/* تغییرات */
.category-see-all-btn {
  width: 158px;
  height: 46px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  background-color: var(--toranj-secondary-color);
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--toranj-primary-color) !important ;
  cursor: pointer;
  transition: all 0.3s;
  margin-inline: auto;

  text-decoration: none;
}

.category-see-all-btn:hover {
  gap: 15px;
}

/* تغییرات */
.ui-item-overlay {
  position: fixed;
  width: 100vw;
  height: 100svh;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(1.5px);
  background-color: #00000073;
  z-index: 100;
}

.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:checked + .category-item-img-btns svg {
  fill: var(--toranj-accent-color);
  stroke: var(--toranj-accent-color);
}

.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: var(--toranj-accent-color);
  border-radius: 50%;
  text-align: center;
  margin: 4px 4px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  user-select: none;
}

.category-item-img-box {
  height: 100%;
}

.category-item-img-box .glide__track {
  height: 100%;
}

.category-item-img-box .glide__slides {
  height: 100%;
}

.ui-item-image {
  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(--toranj-primary-color) !important ;
  background: #fff;
  color: var(--toranj-primary-color) !important ;
  font-size: 14px;
  font-weight: 600;
}

.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(--toranj-primary-color) !important ;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.category-plus-btn:hover,
.category-minus-btn:hover {
  background: var(--toranj-primary-color) !important ;
  border-color: var(--toranj-primary-color) !important ;
}

.category-plus-btn:hover svg,
.category-minus-btn:hover svg {
  stroke: #fff;
}

/* تغییرات */
.category-item-footer-price {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  color: var(--Text-500, #646464);
  font-size: 12px;
  font-weight: 400;
}

.category-item-footer-price span {
  color: var(--Text-700, #2f2f2f);
  font-size: 18px;
  font-weight: 600;
}

/* تغییرات */
.footer-price {
  color: var(--Text-700, #2f2f2f);
  font-size: 18px;
  font-weight: 600;
}

.category-item-img-box .glide__bullet {
  background-color: #909090;
}

.category-item-img-box .glide__bullet--active {
  width: 16px;
  height: 8px;
  background-color: var(--toranj-accent-color);
  border-radius: 9999px;
}

@media screen and (max-width: 1400px) {
  .selected-category-items-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 950px) {
  .selected-category-items-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .selected-category-items {
    width: 100%;
  }

  .selected-item .category-item {
    border: none;
    /*background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='10' ry='10' stroke='black' stroke-width='1.5' stroke-dasharray='3%2c 5' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");*/
  }



  .category-item-countainer {
    min-width: 80px;
    height: 100px;
    padding: 4px;
  }

  .category-item-svg {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 904px) {
  .category-item-container {
    width: auto;
    position: fixed;
    left: 24px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .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 {
    right: 20px;
  }

  .ui-item-container {
    background-color: transparent;
  }
}

@media screen and (max-width: 640px) {
  .selected-category-text {
    font-size: 16px;
    padding-inline: 14px;
  }
  .category-item-name-and-price {
    font-size: 20px;
  }

  .category-item-time-and-rate {
    font-size: 16px;
    margin-top: 24px;
  }

  .category-item-order-ingredients {
    font-size: 18px;
  }
}

@media screen and (max-width: 512px) {
  .category-item-container {
    width: 100vw;
    height: 100svh;
    position: unset;
    top: 0;
    left: 0;
    transform: none;
  }

  .category-item-section {
    max-height: 100svh;
    height: 100%;
    border-radius: 0;
  }

  .ui-item-container {
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  .ui-close-overlay-btn {
    position: fixed;
  }

  .category-item-close-btn-mobile {
    display: none;
  }

  .category-item-order-info {
    padding-inline: 24px;
  }

  .category-item-order-ingredients p {
    font-size: 16px;
  }

  .price-tag {
    gap: 5px;
  }

  .price-tag-product {
    gap: 5px;
  }

  .discount-percent {
    padding-inline: 5px;
    font-size: 12px;
  }

  .overlay-bottom-price-number {
    font-size: 18px;
  }

  .overlay-bottom-price-number + span {
    font-size: 14px;
  }

  .overlay-main-price span {
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {
  .add-category-item-btn {
    width: 115px;
    height: 43px;
    font-size: 16px;
  }

  .add-category-item-btn svg {
    width: 18px;
    height: 18px;
  }

  .plus-btn,
  .minus-btn {
    padding: 12px;
  }
}
