*,
*::before,
*::after {
  box-sizing: border-box;
}
*,
figure {
  margin: 0;
}
:root {
  --main-color: #aa146b;
  --secondary-color: #0e4076;
  --font-regular: "Cairo";
  --title-size: 24px;
}
body {
  direction: rtl;
  text-align: right;
  font-size: 13px;
  color: #333745;
  font-family: var(--font-regular);
}
body.lang-en {
  direction: ltr;
  text-align: left;
}
.hidden {
  display: none;
}
.container {
  margin-left: auto;
  margin-right: auto;
  width: 98%;
  max-width: 1920px;
  padding-left: 15px;
  padding-right: 15px;
}
.bold {
  font-weight: bold;
}
.regular {
  font-weight: normal;
}
a {
  text-decoration: none;
  color: #3866df;
}
.main-layout {
  margin-bottom: 30px;
}
.main-layout .main-left-side {
  max-width: 220px;
  width: 220px;
}
.main-layout .main-right-side {
  width: calc(100% - 220px);
}
.main-layout .main-right-side .box-container {
  padding-inline-start: 12px;
}
.d-flex {
  display: flex;
  display: -webkit-flex;
}
.row-reverse {
  flex-direction: row-reverse;
}
.d-block {
  display: block;
}

.flex-column {
  flex-direction: column;
}

.flex-start {
  justify-content: flex-start !important;
}
.flex-end {
  justify-content: end;
}

.uppercase {
  text-transform: uppercase;
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  text-transform: none;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: end;
}
.space-between {
  justify-content: space-between;
}
.space-around {
  justify-content: space-around;
}

.overflow-hidden {
  overflow: hidden!important;
}
.center {
  text-align: center;
}
.align {
  text-align: right;
}
.pre-line {
  white-space: pre-line;
}

.flex-1 {
  flex: 1;
}

.align-center {
  align-items: center;
}
.align-self {
  align-self: baseline;
}
.align-end {
  align-items: flex-end;
}

.flex-all {
  display: flex;
  align-items: center;
  justify-content: center;
}

.unicode {
  unicode-bidi: plaintext;
}

:focus {
  outline: none;
}

.trans {
  transition: 0.4s;
}

.wrap {
  flex-wrap: wrap;
}

.no-wrap {
  white-space: nowrap;
}
.p-0 {
  padding: 0;
}
.p-3 {
  padding: 3px;
}
.p-5 {
  padding: 5px;
}
.pt-5 {
  padding-top: 5px;
}
.pt-10 {
  padding-top: 10px;
}
.pt-15 {
  padding-top: 15px;
}
.pt-20 {
  padding-top: 20px;
}
.pt-25 {
  padding-top: 25px;
}
.pt-30 {
  padding-top: 30px;
}
.pb-5 {
  padding-bottom: 5px;
}
.pb-10 {
  padding-bottom: 10px;
}
.pb-15 {
  padding-bottom: 15px;
}
.pb-20 {
  padding-bottom: 20px;
}
.pb-25 {
  padding-bottom: 25px;
}
.pb-30 {
  padding-bottom: 30px;
}
.p-side-5 {
  padding-left: 5px;
  padding-right: 5px;
}
.p-side-15 {
  padding-left: 15px;
  padding-right: 15px;
}
.m-0 {
  margin: 0;
}
.mt-5 {
  margin-top: 5px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-15 {
  margin-top: 15px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-25 {
  margin-top: 25px;
}
.mt-30 {
  margin-top: 30px;
}
.mb-5 {
  margin-bottom: 5px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-15 {
  margin-bottom: 15px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-25 {
  margin-bottom: 25px;
}
.mb-30 {
  margin-bottom: 30px;
}
.top-2 {
  position: relative;
  top: 2px;
}
.-top-2 {
  position: relative;
  top: -2px;
}
.main-color {
  color: var(--main-color);
}
.secondary-color {
  color: var(--secondary-color);
}
.bg-main {
  background-color: var(--main-color);
}
.white {
  color: #fff;
}
.bg-white {
  background-color: #fff;
}
.white-i {
  color: #fff !important;
}
.main-title {
  font-size: var(--title-size);
}
.font-8 {
  font-size: 8px;
}
.font-10 {
  font-size: 10px;
}
.font-12 {
  font-size: 12px;
}
.font-13 {
  font-size: 13px;
}
.font-14 {
  font-size: 14px;
}
.font-15 {
  font-size: 15px;
}
.font-16 {
  font-size: 16px;
}
.font-17 {
  font-size: 17px;
}
.font-18 {
  font-size: 18px;
}
.font-19 {
  font-size: 19px;
}
.font-20 {
  font-size: 20px;
}
.font-24 {
  font-size: 24px;
}
.font-45 {
  font-size: 45px;
}
.rounded {
  border-radius: 50%;
}
.radius-3 {
  border-radius: 3px;
}
.radius-30 {
  border-radius: 30px;
}
.btn {
  /*i should check where this class is used in other places (not only account, bestsellers )*/
  background-color: var(--main-color);
  border-radius: 3px;
  transition: 0.4s;
  border: 1px solid var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  padding: 5px 15px;
}
.btn:hover {
  background-color: transparent;
  color: var(--main-color);
}

.bg-cover {
  background-size: cover;
}
.bg-soft {
  background-color: rgb(245 245 245 / 54%);
}
.object-fit {
  object-fit: cover;
}
.h-50 {
  height: 50%;
}
.h-100 {
  height: 100%;
}
.w-10 {
  width: 10%;
}
.w-15 {
  width: 15%;
}
.w-20 {
  width: 20%;
}
.w-25 {
  width: 25%;
}
.w-30 {
  width: 30%;
}
.w-32 {
  width: 32%;
}
.w-35 {
  width: 35%;
}
.w-38 {
  width: 38%;
}
.w-40 {
  width: 40%;
}
.w-45 {
  width: 45%;
}
.w-48 {
  width: 48%;
}
.w-50 {
  width: 50%;
}
.w-55 {
  width: 55%;
}
.w-58 {
  width: 58%;
}
.w-60 {
  width: 60%;
}
.w-70 {
  width: 70%;
}
.w-75 {
  width: 75%;
}
.w-80 {
  width: 80%;
}
.w-85 {
  width: 85%;
}
.w-90 {
  width: 90%;
}
.w-100 {
  width: 100%;
}
.w-100-i {
  width: 100% !important;
}
.relative {
  position: relative;
}
.black {
  color: #000;
}

.m-side-auto {
  margin-left: auto;
  margin-right: auto;
}

.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6 {
  display: grid;
  gap: 25px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
  /* grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) )!important; */
}
.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
.gap-0 {
  gap: 0;
}
.gap-1 {
  gap: 1px;
}
.gap-2 {
  gap: 2px;
}
.gap-3 {
  gap: 3px;
}
.gap-5 {
  gap: 5px;
}
.gap-10 {
  gap: 10px;
}
.gap-15 {
  gap: 15px;
}
.gap-20 {
  gap: 20px;
}
.gap-25 {
  gap: 25px;
}
.gap-30 {
  gap: 30px;
}
.gap-35 {
  gap: 35px;
}
.gap-40 {
  gap: 40px;
}
.gap-50 {
  gap: 50px;
}
.gap-60 {
  gap: 60px;
}
.row-gap-10 {
  row-gap: 10px;
}
.pointer {
  cursor: pointer;
}
.mo,
.to,
.to-only {
  display: none;
}
[data-toggle-tab]:not(.active) {
  display: none;
}

[data-toggle-tab].active {
  display: block !important;
}
.z-1,
.z-2 {
  position: relative;
  z-index: 1;
}
.z-2 {
  z-index: 2;
}
.one-line,
.three-line,
.four-line,
.five-line,
.two-line {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.two-line {
  -webkit-line-clamp: 2;
}
.three-line {
  -webkit-line-clamp: 3;
}
.four-line {
  -webkit-line-clamp: 4;
}
.five-line {
  -webkit-line-clamp: 5;
}

.border-top {
  border-top: 1px solid #b9b9b9;
}
.border-bottom {
  border-bottom: 1px solid #b9b9b9;
}
.border-left {
  border-left: 1px solid #b9b9b9;
}
.lang-en .border-left {
  border-left: 0;
  border-right: 1px solid #b9b9b9;
}
.border-right {
  border-right: 1px solid #b9b9b9;
}
.lang-en .border-right {
  border-right: 0;
  border-left: 1px solid #b9b9b9;
}
.border {
  border: 1px solid #b9b9b9;
}
.border-2 {
  border: 1px solid rgb(244, 244, 244);
}
.list-none li {
  list-style: none;
}
.gray {
  color: #6b6868!important;
}
.gray-1 {
  color: #444444;
}
.gray-2 {
  color: #9e9e9e;
}
.red {
  color: red;
}
.price-slide-label {
  position: absolute;
  right: auto;
  padding: 1px 5px;
  min-width: 27px!important;
}
.lang-ar .price-slide-label {
  left: auto;
  right: 0;
}
.swiper-pagination-bullet-active {
  background-color: var(--main-color);
}
.color-hover {
  transition: 0.4s;
}
.color-hover:hover {
  color: var(--main-color);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 9;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.fade-in {
  opacity: 1;
}
.product-slide-name.two-line {
  height: 37px;
}
.line-through:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  background-color: #6b6868;
}
.products-list-box {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  row-gap: 10px;
}
.product-rating .stars-img-base {
  background: url(/catalog/view/theme/journal2/image/new_star_white.png) repeat-x;
  width: 80px;
  height: 14px;
  display: inline-block;
  position: relative;
  background-size: 16px 12px;
}
.product-rating .stars-img {
  background: url(/catalog/view/theme/journal2/image/new_star_pink.svg) repeat-x;
  background-size: 16px 12px;
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.lang-ar .product-rating .stars-img{
  transform: scaleX(-1);
  left: auto;
  right: 0;
}
.rating-small-count {
  font-size: 10px;
  color: #333745;
  position: relative;
  top: -1px;
  margin-inline-start: 2px;
}
.rating-cart-box .stars-img-base[width="0"],.rating-cart-box .stars-img-base[width="0"] ~ .rating-small-count {
  visibility: hidden;
}
@media (max-width: 1024px) {
  .grid-3-t {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2-t {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-1-t {
    grid-template-columns: repeat(1, 1fr);
  }
  .do-only {
    display: none !important;
  }
  .to {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .main-layout .main-right-side {
    width: 100%;
  }
  .container,
  .container-p {
    max-width: 100%;
    padding-inline: 12px;
  }
  .main-layout .main-left-side {
    max-width: none;
  }
  :root {
    --title-size: 20px;
  }
  .grid-1-p,
  .grid-2-p,
  .grid-3-p {
    display: grid;
  }
  .grid-1-p {
    grid-template-columns: repeat(1, 1fr)!important;
  }
  .grid-2-p {
    grid-template-columns: repeat(2, 1fr)!important;
  }
  .grid-3-p {
    grid-template-columns: repeat(3, 1fr)!important;
  }
  .mo {
    display: block !important;
  }
  .do,
  .to-only,
  .mo-none {
    display: none !important;
  }
  .wrap-p {
    flex-wrap: wrap;
  }
  .font-11-p {
    font-size: 11px;
  }
  .font-12-p {
    font-size: 12px;
  }
  .font-13-p {
    font-size: 13px;
  }
  .font-14-p {
    font-size: 14px;
  }
  .font-16-p {
    font-size: 16px;
  }
  .font-17-p {
    font-size: 17px;
  }
  .font-18-p {
    font-size: 18px;
  }
  .font-20-p {
    font-size: 20px;
  }
  .font-26-p {
    font-size: 26px;
  }
  .mt-0-p {
    margin-top: 0px;
  }
  .mt-10-p {
    margin-top: 10px;
  }
  .mt-20-p {
    margin-top: 20px;
  }
  .h-100-p {
    height: 100% !important;
  }
  .w-100-p {
    width: 100% !important;
  }
  .w-90-p {
    width: 90% !important;
  }
  .w-50-p {
    width: 50% !important;
  }
  .center-p {
    text-align: center;
  }
  .justify-center-p {
    justify-content: center;
  }
  .m-side-auto-p {
    margin-left: auto;
    margin-right: auto;
  }
  .p-0-p {
    padding: 0;
  }
  .pt-0-p {
    padding-top: 0px;
  }
  .pt-5-p {
    padding-top: 5px;
  }
  .pt-10-p {
    padding-top: 10px;
  }
  .pt-20-p {
    padding-top: 20px;
  }
  .pt-30-p {
    padding-top: 30px;
  }
  .pb-0-p {
    padding-bottom: 0px;
  }
  .pb-5-p {
    padding-bottom: 5px;
  }
  .pb-10-p {
    padding-bottom: 10px;
  }
  .pb-20-p {
    padding-bottom: 20px;
  }
  .pb-30-p {
    padding-bottom: 30px;
  }
  .mb-0-p {
    margin-bottom: 0;
  }
  .mb-10-p {
    margin-bottom: 10px;
  }
  .mb-15-p {
    margin-bottom: 15px;
  }
  .mb-20-p {
    margin-bottom: 20px;
  }
  .mb-35-p {
    margin-bottom: 35px;
  }
  .column-reverse-p {
    flex-direction: column-reverse;
  }
  .swipe-box-p {
    width: 100%;
    overflow: hidden;
    overflow-x: scroll !important;
    white-space: nowrap;
    display: flex !important;
  }
  .full-p {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .gap-0-p {
    gap: 0px;
  }
  .gap-5-p {
    gap: 5px;
  }
  .gap-10-p {
    gap: 10px;
  }
  .gap-15-p {
    gap: 15px;
  }
  .gap-20-p {
    gap: 20px;
  }
  .gap-30-p {
    gap: 30px;
  }
  .flex-column-p {
    flex-direction: column;
  }
  .d-flex-p {
    display: flex;
  }
  .space-between-p {
    justify-content: space-between;
  }
  .overflow-x-p {
    overflow-x: auto;
  }
  .border-0-p {
    border: 0!important;
  }
  .main-layout .main-right-side .box-container {
    padding: 0;
  }
  .modal-bottom {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    background: #fff;
    border-radius: 13px 13px 0 0;
    padding: 40px 20px 90px 20px;
    max-height: 100%;
    overflow-y: auto;
    transition: 0.4s;
    pointer-events: none;
    transform: translateY(100%);
    z-index: 10;
  }
  .modal-bottom.--half {
    max-height: 60%;
  }
  .modal-bottom.active {
    opacity: 1;
    visibility: visible;
    pointer-events: initial;
    transform: translateY(0);
  }
}
