::selection{
  background-color: oklch(60.56% 0.2337 19.25);
  color: white;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background-color: #fcfcfc;
}
::-webkit-scrollbar-thumb {
  background: #ed1944; 
  border-radius: 4px;
}
#modal.active {
  opacity: 1;
  visibility: visible;
}
#modal.active div {
  transform: scale(1);
}
.drop-shadow-custom{
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.0784313725));
}
/* hero slider next and prev btn */
.swiper-button-next,
.swiper-button-prev {
  height: 2.2rem;
  width: 2.2rem;
  top: 50%;
  margin-top: -1.1rem;
}

.site-body {
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  background: #fff;
}

.site-top-header__main {
  justify-content: flex-start !important;
}

.site-top-header__main > form {
  flex: 0 0 auto;
}

.heroSlider {
  position: relative;
  overflow: hidden;
}

.heroSlider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: cover;
}

/* دسته‌بندی‌های صفحه اول: عرض ثابت و فشرده تا فاصله‌ی خالی بین دایره‌ها ایجاد نشود */
.heroSlider .hero-edge {
  height: 86%;
  max-height: none;
  width: 4.75rem;
  object-fit: fill;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .heroSlider .hero-edge {
    height: 82%;
  }
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: rgb(113 113 122);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
  color: rgb(63 63 70);
}

/* show and hide next and prev hero slider btn */
@media only screen and (max-width: 768px) {
  .swiper-button-next {
    display: none;
  }
  .swiper-button-prev {
    display: none;
  }
  .swiper-btn-next {
    display: none;
  }
  .swiper-btn-prev {
    display: none;
  }
}
/* progressBar top site */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, oklch(60.56% 0.2337 19.25), oklch(52.33% 0.2041 20.11));
  box-shadow: 0 0 10px oklch(60.56% 0.2337 19.25), 0 0 20px oklch(60.56% 0.2337 19.25), 0 0 30px oklch(52.33% 0.2041 20.11), 0 0 40px oklch(52.33% 0.2041 20.11);
  transition: width 0.2s ease-out;
  z-index: 9999;
}
/* loading */
.wrapper{
  width:200px;
  height:60px;
  position: absolute;
  left:50%;
  top:40%;
  transform: translate(-50%, -50%);
}
.circle{
  width:15px;
  height:15px;
  position: absolute;
  border-radius: 50%;
  background-color: oklch(60.56% 0.2337 19.25);
  left:15%;
  transform-origin: 50%;
  animation: circle .5s alternate infinite ease;
}

@keyframes circle{
  0%{
      top:60px;
      height:5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
  }
  40%{
      height:20px;
      border-radius: 50%;
      transform: scaleX(1);
  }
  100%{
      top:0%;
  }
}
.circle:nth-child(2){
  left:45%;
  animation-delay: .2s;
}
.circle:nth-child(3){
  left:auto;
  right:20%;
  animation-delay: .3s;
}
.shadow{
  width:20px;
  height:4px;
  border-radius: 50%;
  background-color: rgba(124, 124, 124, 0.5);
  position: absolute;
  top:62px;
  transform-origin: 50%;
  z-index: -1;
  left:15%;
  filter: blur(1px);
  animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
  0%{
      transform: scaleX(1.5);
  }
  40%{
      transform: scaleX(1);
      opacity: .7;
  }
  100%{
      transform: scaleX(.2);
      opacity: .4;
  }
}
.shadow:nth-child(4){
  left: 45%;
  animation-delay: .2s
}
.shadow:nth-child(5){
  left:auto;
  right:15%;
  animation-delay: .3s;
}
.wrapper span{
  position: absolute;
  top:75px;
  font-family: 'Lato';
  font-size: 20px;
  letter-spacing: 12px;
  color: #fff;
  left:15%;
}
/* light shadow with hover */
.shiny {
  position: relative;
  overflow: hidden;
}

.shiny::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  transition: all 0.5s ease-in-out;
}

.shiny:hover::after {
  left: 100%;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0 1rem;
}
.faq-content.open {
  max-height: 200px;
  padding: 1rem;
}
.rules-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0 1rem;
}
.rules-content.open {
  max-height: 200px;
  padding: 1rem;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
  }

  .site-body {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    background: #fff;
  }

  html {
    width: 100%;
    min-width: 0;
    background: #fff !important;
  }

  .site-top-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: .5rem;
  }

  .site-top-header__main {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-top-header__main .Relise-picture2 {
    display: block;
    width: auto;
    max-width: 6rem;
    height: auto;
  }

  .site-top-header__actions {
    flex: 0 0 auto;
    gap: .5rem;
  }

  .heroSlider,
  .containerPSlider,
  .containerPSlider .productSlider1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .heroSlider .swiper-wrapper,
  .heroSlider .swiper-slide {
    max-width: 100%;
  }

  .containerPSlider .productSlider1 {
    overflow: hidden;
  }

  .containerPSlider .productSlider1 .swiper-wrapper {
    min-width: 0;
  }

  .containerPSlider .productSlider1 .card {
    min-width: 0;
  }

}

/* ویژه‌فروشی صفحه اصلی */
.offer-body {
  position: relative;
  max-width: 1220px;
  margin: 3.5rem auto 2rem;
  padding: 1.5rem 3.5rem 2rem;
  direction: rtl;
}
.weekly-offer {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffafa 0%, #fff 48%, #fef2f2 100%);
  box-shadow: 0 20px 50px rgba(42, 15, 15, .08);
}
.Offer-Text-Vije, .Offer-Text-Vije2 {
  position: absolute;
  top: 50%;
  color: #ef4444;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 0, 0, .35);
  white-space: nowrap;
  z-index: 3;
  animation: weekly-offer-blink 1.5s infinite;
}
.Offer-Text-Vije { right: .35rem; transform: translateY(-50%) rotate(90deg); }
.Offer-Text-Vije2 { left: .35rem; transform: translateY(-50%) rotate(-90deg); }
@keyframes weekly-offer-blink { 50% { opacity: .45; } }
.weekly-offer__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  align-items: center;
  gap: 36px;
}
.weekly-offer__media {
  position: relative;
  min-height: 380px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: rgba(255,255,255,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.weekly-offer__image { width: 100%; max-width: 420px; max-height: 360px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(15,23,42,.14)); }
.weekly-offer__badge, .weekly-offer__discount {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.weekly-offer__badge { top: 18px; right: 18px; padding: 10px 16px; color: #7c2d12; background: rgba(255,237,213,.95); border: 1px solid rgba(251,191,36,.35); }
.weekly-offer__discount { bottom: 18px; left: 18px; padding: 10px 18px; color: #fff; background: linear-gradient(135deg,#ef4444,#f91616); box-shadow: 0 12px 24px rgba(239,68,68,.28); }
.weekly-offer__eyebrow { margin: 0 0 10px; color: #0c10ea; font-size: 14px; font-weight: 700; }
.weekly-offer__title { margin: 0; color: #0f172a; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 800; }
.weekly-offer__description { margin: 16px 0 0; color: #475569; font-size: 16px; line-height: 2; max-width: 620px; }
.weekly-offer__features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.weekly-offer__features span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(226,232,240,.95); color: #334155; font-size: 14px; font-weight: 600; }
.weekly-offer__pricing { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-top: 28px; }
.weekly-offer__old-price { display: block; margin-bottom: 10px; color: #94a3b8; font-size: 18px; text-decoration: line-through; }
.weekly-offer__new-price-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.weekly-offer__new-price { color: #b91c1c; font-size: clamp(30px, 4vw, 42px); line-height: 1; font-weight: 900; }
.weekly-offer__currency { margin-bottom: 4px; color: #334155; font-size: 18px; font-weight: 700; }
.weekly-offer__timer { min-width: 240px; padding: 18px; border: 1px solid #fff; border-radius: 20px; background: #fff; }
.weekly-offer__timer-label { margin: 0 0 14px; color: #232324; font-size: 14px; font-weight: 700; }
.weekly-offer__countdown { display: flex; gap: 10px; }
.weekly-offer__count-item { flex: 1; min-width: 62px; padding: 12px 8px; text-align: center; border: 1px solid rgba(226,232,240,.95); border-radius: 16px; background: rgba(255,255,255,.88); }
.weekly-offer__count-item strong { display: block; color: #0f172a; font-size: 22px; font-weight: 800; line-height: 1.1; }
.weekly-offer__count-item span { display: block; margin-top: 6px; color: #64748b; font-size: 12px; font-weight: 700; }
.weekly-offer__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.weekly-offer__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 16px; text-decoration: none; font-size: 15px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.weekly-offer__btn--primary { color: #fff; background: linear-gradient(135deg,#f91616,#ea0c0c); box-shadow: 0 14px 30px rgba(249,22,22,.24); }
.weekly-offer__btn--secondary { color: #0f172a; background: rgba(255,255,255,.78); border: 1px solid rgba(203,213,225,.9); }
.weekly-offer__btn:hover { transform: translateY(-2px); }
.weekly-offer__glow { position: absolute; z-index: 1; border-radius: 50%; filter: blur(30px); opacity: .55; }
.weekly-offer__glow--one { top: -40px; right: -20px; width: 220px; height: 220px; background: rgba(251,36,36,.10); }
.weekly-offer__glow--two { bottom: -60px; left: 80px; width: 260px; height: 260px; background: rgba(248,113,113,.12); }
@media (max-width: 991px) {
  .weekly-offer { padding: 24px; }
  .weekly-offer__content, .weekly-offer__pricing { grid-template-columns: 1fr; }
  .weekly-offer__content { gap: 24px; }
  .weekly-offer__media { min-height: 300px; }
  .weekly-offer__timer { min-width: 0; }
}
@media (max-width: 575px) {
  .offer-body { margin: 2.5rem auto 1.5rem; padding: 1.25rem 1rem 1.5rem; }
  .Offer-Text-Vije, .Offer-Text-Vije2 { display: none; }
  .weekly-offer { padding: 16px; border-radius: 20px; }
  .weekly-offer__media { min-height: 260px; padding: 18px; }
  .weekly-offer__discount { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 11px; }
  .weekly-offer__badge { right: 10px; top: 10px; font-size: 11px; }
  .weekly-offer__actions { flex-direction: column; }
  .weekly-offer__btn { width: 100%; }
}
