
/* ==========================================================
   01. فونت‌ها و تنظیمات پایه
   ========================================================== */


@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');
@font-face {
  font-family: "IRANSansWeb";
  src: url("../webfonts/IRANSansWeb_Medium.eot"); /* IE */
  src: url("../webfonts/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"), /* IE */
  url("../webfonts/IRANSansWeb_Medium.woff") format("woff"), /* Modern Browsers */
  url("../webfonts/IRANSansWeb_Medium.ttf") format("truetype"); /* Safari, Android, iOS */
  font-weight: normal;
}
:root{
  --black:#2c2c54;
  --orange:#ff9f1a;

  /* ======================================================
     SCALE SYSTEM
     ====================================================== */

  --topbar-height: clamp(3.2rem, 3.2vw, 4rem);
  --header-height: clamp(7.8rem, 7.2vw, 9rem);
  --page-gutter: clamp(1.5rem, 4vw, 9%);
  --mobile-menu-width: min(36rem, 82vw);
}

*{
  font-family: "IRANSansWeb";
  margin: 0; padding:0;
  box-sizing: border-box;
  outline: none; border:none;
  text-decoration: none;
  transition: all .1s linear;
  text-align: right;
  direction: rtl;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top:6rem;
  scroll-behavior: smooth;
}

body{
  padding-top:calc(var(--topbar-height) + var(--header-height) + 1rem);
}
section{
  padding:2rem 9%;
}

.heading-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-articles {
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    background-color: rgb(255, 143, 249);
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: .25s;
    border-radius: 0.4rem;
    margin: 0 2rem;
    padding: .5rem 2rem;
}

.more-articles:hover {
    background-color: rgb(255, 66, 246);
    transform: translateY(-5px);
}

.heading {
    text-align: center;
    text-transform: uppercase;
    font-size: 4rem;
    color: var(--black);
    padding: 1rem;
    transition: .25s;
}

@media (max-width: 768px) {

    .heading-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .heading {
        font-size: 3rem;
        padding: 0.5rem;
    }

    .more-articles {
        position: static;
        align-self: flex-start;
        margin: 0 auto;
        font-size: 1.1rem;
        
    }

}

.heading span{
  text-transform: uppercase;
  color:rgb(255, 171, 185);
}

.heading:hover{
    transform:translateY(-0.4rem);
}

.btn {
    display: inline-block;

    margin-top: 1rem;
    border-radius: .5rem;
    border: .2rem solid var(--black);

    font-weight: bolder;
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);

    color: var(--black);
    cursor: pointer;
    background: #fff;

    padding: .7rem clamp(1.5rem, 5vw, 3rem);
}


.btn:hover{
  background:pink;
  color:#fff;
}




/* ==========================================================
   RESPONSIVE — 01. فونت‌ها و تنظیمات پایه
   تغییر فقط برای محدود شدن عرض محتوا در نمایشگرهای کوچک
   ========================================================== */

@media (max-width: 768px) {

  body{
    padding-top:calc(var(--topbar-height) + var(--header-height));
  }

  section{
    padding-left:1.5rem;
    padding-right:1.5rem;
  }

}

/* ==========================================================
   02. نوار بالا و هدر
   ========================================================== */


.top-bar {
  position: fixed; /* یا absolute، بسته به نیاز */
  top: 0; /* دقیقاً بالای هدر */
  left: 0;
  right: 0;
  background-color: rgb(255, 185, 254); /* یا هر رنگی که دوست دارید */
  color: #333;
  text-align: center;
  padding: 1rem 0;
  z-index: 1001; /* باید بیشتر از z-index هدر باشه */
  height:var(--topbar-height); /* ارتفاع این بار رو مشخص کنید */
  box-sizing: border-box; /* اگر padding هم دارید */
}

.top-bar h3{
  color: #333333;
  text-align: center;
  font-weight: bold;
  font-size: medium;
}

.top-bar h3 span{
  color: #7b0169;
  text-align: center;
  font-weight: bold;
  font-size: medium;
  text-decoration: underline;
}

header{
  position: fixed;
  top:var(--topbar-height); left:0; right:0;
  z-index: 1000;
  background:#fff;
  padding:2rem 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
  height:var(--header-height); /* مثال: ارتفاع دلخواه */

}
header .navbar span{
  display: none;

}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* اگر نیاز بود */
  /* flex-shrink: 0; */ /* مانع از کوچک شدن کانتینر لوگو میشه */
}

.logo-pic{
    width: 23rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 3%; /* اگر عکس گرد می‌خوای */
    object-fit: contain;
}

header .navbar a{
  font-size: 1.7rem;
  color: var(--black);
  margin: 0 2rem;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  position: relative;
}



header .icons a{
  font-size: clamp(2.2rem, 1.8vw , 2.8rem);
  color:var(--black);
  margin-left:clamp(1rem, 1.5vw , 3rem);
}

.cart-link, .wishlist-link{

    position:relative;

    display:inline-flex;

    align-items:center;

}

#cart-badge{

    position:absolute;

    top:-0.8rem;

    left:-1rem;

    min-width:2rem;

    height:2rem;

    padding:0 0.5rem;

    border-radius:50%;

    background:#ff4b87;

    color:white;

    font-size:1.2rem;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:bold;
    visibility: visible;

}

#wishlist-badge.empty, #cart-badge.empty{
    background:#bfbfbf;
}

@media (hover: hover) and (pointer: fine) {
  header .navbar a:hover{
    color: rgb(255, 165, 230);
    transform: scale(1.2);
  }

  header .icons a:hover{
    color: pink;
    transform: scale(1.2);
  }



}


#menu-bar{
  font-size: 2rem;
  padding: .5rem 1.5rem;
  border:.1rem solid var(--black);
  color:var(--black);
  border-radius: .3rem;
  cursor: pointer;
  display: none;
}

#menu-bar .close{
  cursor: pointer;
  font-size: 1rem;
  display: none;
}




/* ==========================================================
   RESPONSIVE — 02. نوار بالا و هدر
   تنها جایی که ظاهر واقعاً تغییر می‌کند: تبدیل navbar به منوی کشویی
   ========================================================== */

@media (max-width: 1000px) {

  #menu-bar{
    display:block;
    font-size:2rem;
    padding:.5rem 1.5rem;
    cursor:pointer;
    z-index:10002;
    flex-shrink:0;
  }

  header{
    padding-left:2rem;
    padding-right:2rem;
  }

  header .navbar{
    position:fixed;
    top:var(--topbar-height);
    right:-100%;
    width:var(--mobile-menu-width);
    height:calc(100vh - var(--topbar-height));
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    padding:8rem 1.5rem 2rem;
    overflow-y:auto;
    box-shadow:-10px 0 30px rgba(0,0,0,.08);
    transition:right .3s ease;
    z-index:10001;
  }

  header .navbar.active{
    right:0;
  }

  header .navbar a{
    width:100%;
    margin:0 0 1rem;
    padding:1.3rem 1.5rem;
    border:.1rem solid rgba(255,192,203,.7);
    border-radius:1rem;
    background:rgba(252,201,251,.45);
    font-size:1.7rem;
    text-align:right;
  }

  header .navbar a:hover{
    transform:none;
  }

}

@media (max-width: 768px) {

  .top-bar{
    padding:1rem 1rem;
  }

  .top-bar h3,
  .top-bar h3 span{
    font-size:clamp(1.2rem, 2.3vw, 1.2rem);
  }

  header{
    padding-left:1.5rem;
    padding-right:1.5rem;
  }

  .logo-pic{
    width:clamp(12rem, 32vw, 20rem);
    height:auto;
    max-width:45vw;
  }

  header .icons{
    display:flex;
    align-items:center;
    flex-shrink:0;
  }

  header .icons a{
    font-size:clamp(2.5rem, 4.5vw, 2.8rem);
    margin-left:clamp(1.5rem, 1.4vw, 1.5rem);
  }

}

@media (max-width: 480px) {

  .top-bar{
    padding-left:.6rem;
    padding-right:.6rem;
    height: 4rem;
  }

  header{
    padding-left:1rem;
    padding-right:1rem;
  }

  #menu-bar{
    font-size:1.9rem;
    padding:.4rem 1rem;
  }

  .logo-pic{
    
    width:clamp(10rem, 35vw, 14rem);
    margin-right: 3.3rem;
  }

}

/* ==========================================================
   03. صفحه خانه و اسلایدر
   ========================================================== */

.home{
  padding:0;
  position:relative;
}


.home .slide-container .slide{
  min-height: 90vh;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap:1.5rem;
  padding:0 9%;
}


.home .slide-container .slide .content{
  flex:1 1 40rem;
  animation: slideContent .5s linear 1s backwards;
}


@keyframes slideContent{
  0%{
    opacity: 0;
    transform: translateX(-10rem);
  }
}


.home .slide-container .slide .image{
  flex:1 1 10rem;
  padding-bottom: 10rem;
  padding-top: 1rem;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home .slide-container .slide .image .img{
  width: 80%;
  min-width: 60rem;
  max-width: 60rem;
  min-height: 60rem;
  max-height: 60rem;
  height: auto;
  object-fit:cover;
  border-radius: 10%;
  transform: rotate(-3deg);
  animation:shoe .4s linear;
}


/* =========================
   رنگ و شدو عکس اسلایدها
========================= */


/* اسلاید اول - صورتی */

.home .slide-container:nth-child(1) .slide .image .img{
  box-shadow: 0 0 1.5rem 0.5rem rgba(255, 192, 203, 0.6);
  transition: all 0.3s ease-in-out;
}


.home .slide-container:nth-child(1) .slide .image .img:hover{
  transform: scale(1.05);
  box-shadow:
    0 0 2.5rem 1rem rgba(255, 255, 255, 0.8),
    0 0 2rem 0.8rem rgba(255, 95, 158, 0.7);
}


/* اسلاید دوم - آبی */

.home .slide-container:nth-child(2) .slide .image .img{
  box-shadow: 0 0 1.5rem 0.5rem rgba(193, 246, 255, 0.6);
  transition: all 0.3s ease-in-out;
}


.home .slide-container:nth-child(2) .slide .image .img:hover{
  transform: scale(1.05);
  box-shadow:
    0 0 2.5rem 1rem rgba(255, 255, 255, 0.88),
    0 0 2rem 0.8rem rgba(106, 198, 255, 0.7);
}


/* اسلاید سوم - زرد */

.home .slide-container:nth-child(3) .slide .image .img{
  box-shadow: 0 0 1.5rem 0.5rem rgba(255, 252, 186, 0.5);
  transition: all 0.3s ease-in-out;
}


.home .slide-container:nth-child(3) .slide .image .img:hover{
  transform: scale(1.05);
  box-shadow:
    0 0 2.5rem 1rem rgba(255, 255, 255, 0.88),
    0 0 2rem 0.8rem rgba(255, 252, 74, 0.7);
}


@keyframes shoe{
  0%{
    transform: rotate(0deg) scale(.5);
  }
}


.home .slide-container .slide .image .text{
  position: absolute;
  top:0;
  left:0;
  z-index: -1;
  animation:shoeText .5s linear .5s backwards;
}


@keyframes shoeText{
  0%{
    opacity: 0;
    top:-10rem;
  }
}


.home .slide-container .slide .content span {
    font-size: 2rem;
}

.home .slide-container:nth-child(1) .slide .content span {
    color: rgb(255, 0, 255);
}

.home .slide-container:nth-child(2) .slide .content span {
    color: blue;
}

.home .slide-container:nth-child(3) .slide .content span {
    color: rgb(232, 198, 32);
}

.home .slide-container .slide .content h3{
  font-size: 5rem;
  color:var(--black);
}


.home .slide-container .slide .content p{
  font-size: 1.7rem;
  color:#666;
  padding:.5rem 0;
}


/* =========================
   پس زمینه اسلایدها
========================= */

.home .slide-container:nth-child(1) .slide{
  background:url(../images/home-bg-1.jpg) no-repeat;
  background-size: cover;
  background-position: center;
}


.home .slide-container:nth-child(2) .slide{
  background:url(../images/home-bg-2.jpg) no-repeat;
  background-size: cover;
  background-position: center;
}


.home .slide-container:nth-child(3) .slide{
  background:url(../images/home-bg-3.jpg) no-repeat;
  background-size: cover;
  background-position: center;
}


/* =========================
   نمایش فقط اسلاید فعال
========================= */

.home .slide-container{
  display: none;
}


.home .slide-container.active{
  display: block;
}


/* =========================
   دکمه های قبلی و بعدی
========================= */

.home #prev,
.home #next{
  position: absolute;
  top:50%; 
  transform:translateY(-50%);
  border-radius: 50%;
  z-index: 100;
  height:5rem;
  width:5rem;
  line-height: 4.5rem;
  font-size:2rem;
  color:var(--black);
  border:.2rem solid var(--black);
  cursor:pointer;
  text-align:center;
}


.home #prev:hover,
.home #next:hover{
  color:#fff;
  background:pink;
}


.home #prev{
  left:3rem;
}


.home #next{
  right:3rem;
}




/* ==========================================================
   RESPONSIVE — 03. صفحه خانه و اسلایدر
   ========================================================== */

@media (max-width: 1000px) {

  .home .slide-container .slide{
    padding-left:6%;
    padding-right:6%;
  }

  .home .slide-container .slide .image .img{
    width:min(80%, 48rem);
    min-width:0;
    max-width:48rem;
    min-height:0;
    max-height:none;
    aspect-ratio:1 / 1;
    height:auto;
  }

  .home .slide-container .slide .content h3{
    font-size:clamp(3rem, 5vw, 5rem);
  }

}

@media (max-width: 768px) {

  .home .slide-container .slide{
    min-height:calc(90vh - var(--topbar-height) - var(--header-height));
    padding:0rem 1.5rem 10rem;
    flex-direction:column;
    justify-content:center;
    gap:1rem;
  }

  .home .slide-container .slide .content{
    width:100%;
    flex:0 1 auto;
    text-align:center;
    order:2;
  }

  .home .slide-container .slide .image{
    width:100%;
    flex:0 1 auto;
    padding-top:2rem;
    padding-bottom:2rem;
    order:1;
  }

  .home .slide-container .slide .image .img{
    width:min(82vw, 38rem);
    max-width:38rem;
  }

    .home .slide-container .slide .content h3 {
        font-size: clamp(2.7rem, 7vw, 4rem);
    }

    @media (max-width: 768px) {
        .home .slide-container .slide .content h3 {
            font-size: clamp(2rem, 7vw, 2.8rem);
            text-align: center;
        }
    }


  .home .slide-container .slide .content p{
    font-size:clamp(1.4rem, 3vw, 1.7rem);
  }

  .home #prev,
  .home #next{
    width:4.2rem;
    height:4.2rem;
    line-height:3.8rem;
    font-size:1.7rem;
  }

  .home #prev{left:1rem;}
  .home #next{right:1rem;}

}

@media (max-width: 480px) {

  .home .slide-container .slide{
    padding-left:1rem;
    padding-right:1rem;
  }

  .home .slide-container .slide .image .img{
    width:min(70vw, 32rem);
  }

}

/* ==========================================================
   04. کارت‌ها و Carousel محصولات
   ========================================================== */


.carousel-container {
  width: 100%;
  margin: 2rem auto;
  padding: 2rem auto;
  position: relative; 
            
}

.carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    background: #ffffff;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 0.5rem 0;
    scroll-behavior: smooth;

    position: relative;
    z-index: 1;
}
        
.carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carousel-item {
    flex: 0 0 calc(25% - 1.5rem); /* پیش‌فرض: 4 آیتم در هر ردیف */
    position: relative;
    background-color: #ffffff;
    color: #333;
    border-radius: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    box-shadow: 0 0.8rem 1.5rem rgba(255, 198, 253, 0.412);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.carousel-item:hover {
    transform: translateY(-0.8rem);
    box-shadow: 0 1.5rem 3rem rgba(255, 198, 253, 0.673);
}

.carousel-item img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.stock-badge-unavailable {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: red;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    z-index: 5;
}

.stock-badge-available {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgb(0, 185, 12);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    z-index: 5;
}


.item-content {
    padding: 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    width: 100%;
}

        .item-content h3 {
            margin: 0 0 0.8rem 0;
            font-size: 1.8rem;
            color: #2c3e50;
            font-weight: 600;
        }

        .description {
            font-size: 1.4rem;
            color: #7f8c8d;
            margin-bottom: 1.2rem;
            text-align:right ;
            flex-grow: 1;
            line-height: 1.4;
        }

        .price {
            font-size: 1.6rem;
            font-weight: bold;
            color: #850089;
            margin-bottom: 1.6rem;
        }

.card-buttons{
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .8rem;
}

.card-buttons a{
    flex: 1;
    
}

.like-button{
    width: 6.2rem;
    height: 4.2rem;
    border: none;
    border-radius: 0.8rem;
    background: #ff3049d1;
    cursor: pointer;
    font-size: 2rem;
    box-shadow: 0 0.4rem 1rem rgba(0,0,0,.1);
    transition: .25s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.like-button .heart-icon {
    visibility: visible;
}

.like-button img{
    width: 2rem;
    height: 2rem;
    display: block;
    margin: 0 auto;
}

.details-button {
    width: 100%;
    background: linear-gradient(135deg, #ffc5ed, #f2b6ff);
    color: rgb(255, 255, 255);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    transition: background 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
}

.details-button:hover {
    background: linear-gradient(135deg, rgb(255, 208, 255), #c89bff);
}

.details-button a{
    color: #fff;
}

#wishlistContainer .carousel-item{
    flex: 0 0 calc(33.333% - 1.4rem);
}




/* ==========================================================
   RESPONSIVE — 04. کارت‌ها و Carousel محصولات
   ========================================================== */

@media (max-width: 1000px) {

  .carousel{
    gap:1.5rem;
  }

  .carousel-item{
    flex-basis:calc(33.333% - 1rem);
  }

  .carousel-item img{
    height:auto;
    aspect-ratio:1 / 1;
  }

}

@media (max-width: 768px) {

  .carousel{
    gap:1.2rem;
  }

  .carousel-item{
    flex-basis:calc(50% - .6rem);
  }

  .carousel-item img{
    aspect-ratio:1 / 1;
    object-fit:cover;
  }

  .item-content{
    padding:1.3rem;
  }

  .item-content h3{
    font-size:clamp(1.5rem, 3vw, 1.8rem);
  }

  .description{
    font-size:clamp(1.2rem, 2.5vw, 1.4rem);
  }

  .price{
    font-size:clamp(1.4rem, 3vw, 1.6rem);
  }

  .card-buttons{
    gap:.6rem;
  }

  .like-button{
    width:5.2rem;
    height:3.8rem;
    font-size:1.8rem;
  }

}

@media (max-width: 480px) {

  .carousel{
    gap:1rem;
  }

  .carousel-item{
    flex-basis:100%;
  }

}

/* ==========================================================
   05. بخش نظرات، خبرنامه، خدمات و Footer
   ========================================================== */

/*                  */
.review .box-container{
  display: flex;
  flex-wrap: wrap;
  gap:1.5rem;
}

.review span{
  color: rgb(255, 171, 185);
}

.review .box-container .box{
  flex:1 1 30rem;
  text-align: center;
  border-radius: .5rem;
  padding: 0 1rem;
}


.review .box-container .box a{
  display: inline-block;
  margin-top: 1rem;
  border-radius: .5rem;
  border-bottom:.2rem rgb(186, 168, 255) solid;
  font-weight: bolder;
  font-size: 1.7rem;
  color:var(--black);
  cursor: pointer;
  padding:.8rem 3rem;
  text-align: right;
}

.review .box-container .box a:hover{
  color:rgb(255, 160, 245);
  transform: translateY(-0.8rem);
}

.review .box-container .box img{
  border-radius: 5%;
  object-fit: cover;
  height:30rem;
  width: 100%;
  margin:1rem 0;
}

.review .box-container .box h3{
  font-size: 2.1rem;
  color:var(--black);
  text-align: center;
}

.review .box-container .box p{
  font-size: 1.4rem;
  color:#666;
  padding:1rem 0;
}

.review .box-container .box .stars i{
  color:var(--orange);
  font-size: 2rem;
}

.newsletter{
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.newsletter .content{
  text-align: center;
  border:.1rem solid rgba(0,0,0,.1);
  border-radius: .5rem;
  background:#f9f9f9;
  padding:2rem;
}

.newsletter .content h3{
  font-size: 2.5rem;
  color:var(--black);
  text-align: center;
}

.newsletter .content p{
  font-size: 1.5rem;
  color:#666;
  margin:1rem auto;
  max-width: 60rem;
}

.newsletter .content form{
  margin:1rem auto;
  max-width: 50rem;
  display: flex;
}

.newsletter .content form .box{
  width:100%;
  font-size: 1.7rem;
  text-transform: none;
  color:#333;
  padding:1rem;
  border:.2rem solid var(--black);
  border-right: none;
  margin-top: 1rem;
}

.newsletter .content form .btn{
  border-radius:10%;
}


.service .box-container{
  display: flex;
  flex-wrap: wrap;
  gap:1.5rem;
  background:#fffbfb;
  border:.1rem solid rgba(159, 95, 255, 0.342);
  border-radius: .5rem;
  padding:2rem;
}

.service .box-container .box{
  text-align: center;
  flex:1 1 30rem
}

.service .box-container .box i{
  font-size: 4rem;
  color: rgb(255, 152, 224);
}

.service .box-container .box h3{
  font-size: 2rem;
  color:var(--black);
  padding-top: 1rem;
  text-align: center;
}

.service .box-container .box p{
  font-size: 1.5rem;
  color:#666;
  padding:1rem 0;
  text-align: center;
}

.footer .box-container{
  border:.1rem solid rgb(255, 177, 246);
  border-radius: .5rem;
  background:#fdedff;
  padding:2rem;
  display: flex;
  flex-wrap: wrap;
  gap:1.5rem;
}

.footer .box-container .box{
  flex:1 1 20rem;
}

.footer .box-container .box h3{
  color:var(--black);
  font-size: 2.5rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.footer .box-container .box a{
  color:#666;
  font-size: 1.5rem;
  padding-bottom: 1.5rem;
  display: block;
  text-align: center;
}

.footer .box-container .box a:hover{
  color:pink;
}

.footer .box-container .credit{
  text-align: center;
  width:100%;
  border-top: .1rem solid rgba(255, 96, 207, 0.345);
  font-size: 1.5rem;
  padding:1rem;
  padding-top: 2rem;
  color:#999;
}

.footer .box-container .credit a{
  color: rgb(68, 0, 225);
}






























/* ==========================================================
   RESPONSIVE — 05. نظرات، خبرنامه، خدمات و Footer
   ========================================================== */

@media (max-width: 768px) {

  .footer .box-container{
    flex-direction:column;
  }

  .footer .box-container .box{
    width:100%;
  }

  .newsletter .content form{
    flex-direction:column;
    gap:1rem;
  }

  .newsletter .content form .box,
  .newsletter .content form .btn{
    width:100%;
  }

  .reviews-list{
    grid-template-columns:1fr;
  }

}

@media (max-width: 480px) {

  #toast{
    width:calc(100% - 2rem);
    max-width:42rem;
    font-size:1.3rem;
  }

}

/* ==========================================================
   06. صفحه محصولات و دسته‌بندی‌ها
   ========================================================== */


/* ==========================================================
   CATEGORY + FILTER ROW
   ========================================================== */

.category-filter-row {

    width: 100%;

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    justify-content: flex-start;

    gap: 1rem;

    direction: rtl;

    position: relative;

    z-index: 100;
}


/* ==========================================================
   CATEGORY CONTAINER
   ========================================================== */

.category-filter-row .category-container {

    width: auto;

    padding: 1rem 0;

    direction: rtl;
}


/* ==========================================================
   CATEGORY
   ========================================================== */

.category {

    position: relative;

    width: 18rem;

    margin: 0;

    border: 0.1rem solid #aa21ff;

    border-radius: 1.5rem;

    background-color: #f7f7f7;

    cursor: pointer;

    z-index: 200;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* ==========================================================
   CATEGORY TITLE
   ========================================================== */

.category-title {

    height: 4.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #7f009b;

    font-size: 1.5rem;

    font-weight: bold;
}


.category-title::after {

    content: "";

    width: 0;

    height: 0;

    border-left: 0.5rem solid transparent;

    border-right: 0.5rem solid transparent;

    border-top: 0.7rem solid #7f009b;

    margin-right: 0.8rem;

    transition: transform 0.3s ease;
}


.category:hover .category-title::after {

    transform: rotate(180deg);
}


/* ==========================================================
   CATEGORY HOVER
   ========================================================== */

.category:hover {

    background-color: #eeeeee;

    border-color: #7c4dff;

    box-shadow:
        0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}


/* ==========================================================
   CATEGORY LIST
   ========================================================== */
.category-list {

    position: absolute;

    top: calc(100% - 0.1rem);

    right: -0.1rem;

    width: calc(100% + 0.2rem);

    background: #f7f7f7;

    border: 0.1rem solid #7c4dff;

    border-radius: 0 0 1.2rem 1.2rem;

    padding: 0.5rem 0;

    box-sizing: border-box;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-0.7rem);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 999;
}

.category:hover .category-list {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* ==========================================================
   CATEGORY ITEM
   ========================================================== */

.category-content {

    width: 100%;

    box-sizing: border-box;

    background: #f7f7f7;

    border-bottom: 0.1rem solid #dddddd;

    transition:
        background-color 0.2s ease;
}


.category-content:last-child {

    border-bottom: none;
}


.category-content a {

    display: block;

    width: 100%;

    padding: 1.1rem 1.5rem;

    box-sizing: border-box;

    text-decoration: none;

    color: #3b00c4;
}


.category-content:hover {

    background-color: #f79eff;
}


.category-content:hover a {

    color: #fff;
}


.category-content h3 {

    margin: 0;

    font-size: 1.4rem;

    font-weight: bold;

    text-align: center;

    
}


/* ==========================================================
   CATEGORY ACTIVE
   ========================================================== */

.category-content.active {

    background: #7c4dff;
}


.category-content.active a {

    color: #fff;
}


.category-content.active h3 {

    color: #fff;
}

/* ==========================================================
   FILTER
   ========================================================== */

.product-filters {

    width: auto;

    padding: 1rem 0;

    direction: rtl;

    position: relative;

    z-index: 190;
}


.filter {

    position: relative;

    width: 18rem;

    border: 0.1rem solid #f2a8c8;

    border-radius: 1.5rem;

    background-color: #fff8fc;

    cursor: pointer;

    z-index: 190;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* ==========================================================
   FILTER TITLE
   ========================================================== */

.filter-title {

    height: 4.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #b84d7c;

    font-size: 1.5rem;

    font-weight: bold;

    box-sizing: border-box;

    user-select: none;
}


.filter-title::after {

    content: "";

    width: 0;

    height: 0;

    border-left: 0.5rem solid transparent;

    border-right: 0.5rem solid transparent;

    border-top: 0.7rem solid #b84d7c;

    margin-right: 0.8rem;

    transition: transform 0.25s ease;
}


/* ==========================================================
   FILTER HOVER
   ========================================================== */

.filter:hover {

    background-color: #fff2f8;

    border-color: #e986b2;

    box-shadow:
        0 0.5rem 1.5rem rgba(220, 100, 150, 0.12);
}


.filter:hover .filter-title::after {

    transform: rotate(180deg);
}


/* ==========================================================
   FILTER LIST
   ========================================================== */

.filter-list {

    position: absolute;

    top: calc(100% - 0.1rem);

    right: -0.1rem;

    width: calc(100% + 0.2rem);

    background: #fff8fc;

    border: 0.1rem solid #e9a0bf;

    border-radius: 0 0 1.2rem 1.2rem;

    padding: 0.5rem 0;

    box-sizing: border-box;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-0.7rem);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 999;
}


.filter:hover .filter-list {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* ==========================================================
   FILTER OPTION
   ========================================================== */

.filter-option {

    position: relative;

    width: 100%;

    box-sizing: border-box;

    background: #fff8fc;

    border-bottom: 0.1rem solid #f5d2e0;

    transition:
        background-color 0.2s ease;
}


.filter-option:last-child {

    border-bottom: none;
}


.filter-option:hover {

    background-color: #fff0f6;
}


/* ==========================================================
   CHECK
   ========================================================== */

.filter-check {

    margin-right: 0.8rem;

    color: #d86b98;

    font-size: 1.4rem;

    font-weight: bold;
}


.filter-title .active-filter-count,
.price-title .filter-check,
.sort-title .filter-check {

    display: inline-flex;

    align-items: center;

    justify-content: center;
}


/* ==========================================================
   AVAILABILITY
   ========================================================== */

.availability-option label {

    min-height: 4.3rem;

    padding: 0 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.7rem;

    box-sizing: border-box;

    color: #b84d7c;

    font-size: 1.3rem;

    font-weight: bold;

    cursor: pointer;
}


.availability-option input[type="checkbox"] {

    width: 1.6rem;

    height: 1.6rem;

    margin: 0;

    accent-color: #e986b2;

    cursor: pointer;
}


/* ==========================================================
   RESET
   ========================================================== */

.reset-option a {

    display: block;

    width: 100%;

    padding: 1rem 1.2rem;

    box-sizing: border-box;

    text-align: center;

    text-decoration: none;

    color: #ff2b2b;

    background: #fff8fc;

    font-size: 1.2rem;

    font-weight: bold;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.reset-option a:hover {

    background-color: #f8d9e7;

    color: #680078;
}


.active-filter-count {

    min-width: 1.8rem;

    height: 1.8rem;

    margin-right: 0.6rem;

    padding: 0 0.4rem;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    border-radius: 50%;

    background: #f1a8c5;

    color: #fff;

    font-size: 1.1rem;

    font-weight: bold;
}


/* ==========================================================
   SORT OPTION
   ========================================================== */

.sort-option {

    position: relative;
}


.sort-title {

    width: 100%;

    height: 4.3rem;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    color: #b84d7c;

    font-size: 1.3rem;

    font-weight: bold;

    cursor: pointer;

    user-select: none;
}


.sort-title::after {

    content: "";

    width: 0;

    height: 0;

    border-top: 0.5rem solid transparent;

    border-bottom: 0.5rem solid transparent;

    border-right: 0.6rem solid #b84d7c;

    margin-right: 0.8rem;

    transition:
        transform 0.25s ease;
}


/* ==========================================================
   SORT DROPDOWN — DESKTOP
   ========================================================== */

.sort-dropdown {

    position: absolute;

    top: -0.1rem;

    right: calc(100% + 0.5rem);

    width: 18rem;

    background: #fff8fc;

    border: 0.1rem solid #e9a0bf;

    border-radius: 1.2rem;

    padding: 0.4rem 0;

    box-sizing: border-box;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateX(0.8rem);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1100;
}


/* باز شدن دسکتاپ با hover */

.sort-option:hover .sort-dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(0);
}


/* باز شدن با کلاس JS */

.sort-option.dropdown-open .sort-dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(0);
}


/* فلش */

.sort-option:hover .sort-title::after,
.sort-option.dropdown-open .sort-title::after {

    transform: rotate(180deg);
}


/* ==========================================================
   SORT LINKS
   ========================================================== */

.sort-dropdown a {

    display: block;

    width: 100%;

    padding: 1rem 1.2rem;

    box-sizing: border-box;

    text-align: center;

    text-decoration: none;

    color: #b84d7c;

    background: #fff8fc;

    font-size: 1.3rem;

    font-weight: bold;

    border-bottom: 0.1rem solid #f5d2e0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


.sort-dropdown a:last-child {

    border-bottom: none;
}


.sort-dropdown a:hover {

    background-color: #f5b8d2;

    color: #fff;
}


/* ==========================================================
   PRICE OPTION
   ========================================================== */

.price-option {

    position: relative;
}


.price-title {

    width: 100%;

    height: 4.3rem;

    display: flex;

    align-items: center;

    justify-content: center;

    box-sizing: border-box;

    color: #b84d7c;

    font-size: 1.3rem;

    font-weight: bold;

    cursor: pointer;

    user-select: none;
}


.price-title::after {

    content: "";

    width: 0;

    height: 0;

    border-top: 0.5rem solid transparent;

    border-bottom: 0.5rem solid transparent;

    border-right: 0.6rem solid #b84d7c;

    margin-right: 0.8rem;

    transition:
        transform 0.25s ease;
}


/* ==========================================================
   PRICE DROPDOWN — DESKTOP
   ========================================================== */

.price-dropdown {

    position: absolute;

    top: -0.1rem;

    right: calc(100% + 0.5rem);

    width: 19rem;

    background: #fff8fc;

    border: 0.1rem solid #e9a0bf;

    border-radius: 1.2rem;

    padding: 1rem;

    box-sizing: border-box;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateX(0.8rem);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1100;
}


/* باز شدن دسکتاپ با hover */

.price-option:hover .price-dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(0);
}


/* باز شدن با کلاس JS */

.price-option.dropdown-open .price-dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(0);
}


/* فلش */

.price-option:hover .price-title::after,
.price-option.dropdown-open .price-title::after {

    transform: rotate(180deg);
}


/* ==========================================================
   PRICE FORM
   ========================================================== */

.price-dropdown form {

    width: 100%;

    margin: 0;

    padding: 0;
}


/* ==========================================================
   PRICE INPUT
   ========================================================== */

.price-input {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 0.6rem;

    margin-bottom: 0.8rem;
}


.price-input label {

    width: 2.2rem;

    flex-shrink: 0;

    color: #b84d7c;

    font-size: 1.2rem;

    font-weight: bold;
}


.price-input input {

    width: 100%;

    height: 3.4rem;

    padding: 0 0.8rem;

    box-sizing: border-box;

    border: 0.1rem solid #efbfd3;

    border-radius: 0.8rem;

    outline: none;

    background: #fff;

    color: #8f4266;

    font-family: inherit;

    font-size: 1.2rem;

    text-align: center;
}


.price-input input:focus {

    border-color: #df8faf;

    box-shadow:
        0 0 0 0.2rem rgba(
            223,
            143,
            175,
            0.12
        );
}


/* ==========================================================
   حذف فلش های input number
   ========================================================== */

.price-input input[type="number"]::-webkit-inner-spin-button,
.price-input input[type="number"]::-webkit-outer-spin-button {

    -webkit-appearance: none;

    margin: 0;
}


.price-input input[type="number"] {

    -moz-appearance: textfield;

    appearance: textfield;
}


/* ==========================================================
   APPLY PRICE
   ========================================================== */

.price-apply {

    width: 100%;

    height: 3.6rem;

    border: 0.1rem solid #df8faf;

    border-radius: 0.8rem;

    background: #f5c1d7;

    color: #8f4266;

    font-family: inherit;

    font-size: 1.2rem;

    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.price-apply:hover {

    background: #eaa3c2;

    border-color: #d887aa;

    color: #fff;
}


/* ==========================================================
   AVAILABLE OPTION
   ========================================================== */

.availability-option label {

    min-height: 4.3rem;

    padding: 0 1rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.7rem;

    box-sizing: border-box;

    color: #b84d7c;

    font-size: 1.3rem;

    font-weight: bold;

    cursor: pointer;
}


.availability-option input[type="checkbox"] {

    width: 1.6rem;

    height: 1.6rem;

    margin: 0;

    accent-color: #e986b2;

    cursor: pointer;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .product-filters {

        width: 100%;

        max-width: 100%;

        overflow: visible;

        position: relative;

        z-index: 500;
    }


    .filter {

        width: 18rem;

        max-width: calc(100vw - 2rem);

        overflow: visible;

        z-index: 500;
    }


    .filter-list {

        max-width: calc(100vw - 2rem);

        overflow: visible;

        z-index: 9999;
    }


    /* ======================================================
       SORT DROPDOWN — MOBILE
       ====================================================== */

    .sort-dropdown {

        top: calc(100% + 0.5rem);

        right: 0;

        left: auto;

        width: min(18rem, calc(100vw - 2rem));

        max-width: calc(100vw - 2rem);

        transform: translateY(-0.7rem);

        z-index: 10000;
    }


    .sort-option:hover .sort-dropdown {

        transform: translateY(0);
    }


    .sort-option.dropdown-open .sort-dropdown {

        transform: translateY(0);
    }


    .sort-option:hover .sort-title::after,
    .sort-option.dropdown-open .sort-title::after {

        transform: rotate(180deg);
    }


    /* ======================================================
       PRICE DROPDOWN — MOBILE
       ====================================================== */

    .price-dropdown {

        top: calc(100% + 0.5rem);

        right: 0;

        left: auto;

        width: min(19rem, calc(100vw - 2rem));

        max-width: calc(100vw - 2rem);

        transform: translateY(-0.7rem);

        z-index: 10000;
    }


    .price-option:hover .price-dropdown {

        transform: translateY(0);
    }


    .price-option.dropdown-open .price-dropdown {

        transform: translateY(0);
    }


    .price-option:hover .price-title::after,
    .price-option.dropdown-open .price-title::after {

        transform: rotate(180deg);
    }


    /* ======================================================
       MOBILE SIZE
       ====================================================== */

    .sort-title,
    .price-title {

        height: 4.2rem;

        font-size: 1.15rem;
    }


    .sort-dropdown a {

        padding: .9rem 1rem;

        font-size: 1.15rem;
    }


    .price-input label {

        font-size: 1.1rem;
    }


    .price-input input {

        height: 3.2rem;

        font-size: 1.1rem;
    }


    .price-apply {

        height: 3.4rem;

        font-size: 1.1rem;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .product-filters {

        width: 100%;

        max-width: 100%;
    }


    .filter {

        max-width: calc(100vw - 1.2rem);
    }


    .filter-list {

        max-width: calc(100vw - 1.2rem);
    }


    .sort-dropdown {

        width: min(17rem, calc(100vw - 1.2rem));

        max-width: calc(100vw - 1.2rem);
    }


    .price-dropdown {

        width: min(18rem, calc(100vw - 1.2rem));

        max-width: calc(100vw - 1.2rem);
    }


    .sort-title,
    .price-title {

        height: 4rem;

        font-size: 1.1rem;
    }


    .sort-dropdown a {

        padding: .85rem .8rem;

        font-size: 1.05rem;
    }


    .price-dropdown {

        padding: .8rem;
    }


    .price-input {

        gap: .45rem;

        margin-bottom: .7rem;
    }


    .price-input label {

        width: 2rem;

        font-size: 1rem;
    }


    .price-input input {

        height: 3rem;

        font-size: 1rem;
    }


    .price-apply {

        height: 3.2rem;

        font-size: 1rem;
    }

}



/* ==========================================================
   RESPONSIVE — 06. صفحه محصولات و دسته‌بندی‌ها
   ========================================================== */

@media (max-width: 1200px) {

  .product-page{
    width:94%;
  }

  .product-main{
    gap:clamp(2rem, 3vw, 3.5rem);
  }

  .product-image{
    flex:0 1 clamp(30rem, 34vw, 39rem);
  }

}

@media (max-width: 768px) {

    .product-main {
        flex-direction: column;
        gap: .7rem;
    }

    .product-image {
        width: 100%;
        flex: 0;
        margin-bottom: 0;
    }

    .product-main-image {
        width: min(100%, 48rem);
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-inline: auto;
    }

    

    /* عنوان محصول */
    .product-info h1,
    .product-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }


  .gallery-thumbnails{
    flex-wrap:wrap;
    justify-content:center;
  }

  .gallery-thumb{
    width:clamp(5.5rem, 15vw, 7.5rem);
    height:clamp(5.5rem, 15vw, 7.5rem);
  }

  .product-info{
    width:100%;
  }

  .product-info h1{
    font-size:clamp(2.2rem, 6vw, 3rem);
  }

  .product-description{
    font-size:clamp(1.3rem, 3vw, 1.6rem);
  }

  .variant-list{
    flex-wrap:wrap;
  }

  .variant-btn{
    min-width:min(100%, 14rem);
  }

}

@media (max-width: 480px) {

  .product-page{
    padding-left:1rem;
    padding-right:1rem;
  }

  .product-info{
    padding:1.2rem;
  }

  .product-info h1{
    font-size:clamp(2rem, 7vw, 2.5rem);
  }

  .product-description{
    font-size:1.3rem;
  }

}

/* ==========================================================
   07. جزئیات محصول
   ========================================================== */

/* توضیحات هر پروداکت */
.product-page{

    max-width:120rem;

    width:95%;

    margin:0 auto;

}

.product-main{

    display:flex;

    gap:6rem;

    align-items:flex-start;

}

.product-image{

    flex:0 0 30rem;

}

.product-main-image{

    width:100%;
    
    min-width: 50rem;

    border-radius:2.4rem;

    display:block;

    object-fit:cover;

    height: 50rem;

    box-shadow:0 0.5rem 1.5rem rgb(253, 187, 247);

}

@media (max-width: 768px) {
    .product-main-image{
        min-width: 10rem;
    }
}

.gallery-thumbnails{

    display:flex;
    flex-wrap:wrap;
    gap:1rem;

    margin-top:1.5rem;

}

.gallery-thumb{

    width:7rem;
    height:7rem;

    object-fit:cover;

    border-radius:0.8rem;
    border:0.2rem solid #ffe8ff;

    cursor:pointer;

    transition:.2s;

    display:block;

    flex:0 0 7rem;

    box-shadow: 0 0 1.6rem rgba(253, 187, 247, 0.22) !important;

}

.gallery-thumb:hover{

    border-color:#ffcfe5;

}

.product-info{

    flex:1;
    padding: 1rem;
    background: #fffbfe;
    border-radius: 10%;

    
}

.product-info h1{

    font-size:2.5rem;

    margin-bottom:2.5rem;

    text-align: center;

    color:#333;

}

.product-price{

    font-size:2.8rem;

    color: #850089;

    font-weight:bold;

    margin-bottom:2rem;

}

.product-stock{


    color:#666;

    font-size: clamp(1.4rem, 1.2vw, 1.7rem);

    text-align: center;

    margin: 1rem 0;
    

}

.cart-product-stock{


    color:#666;

    font-size:1.3rem;

    text-align: right;

    margin-top: 1rem ;
    

}

.cart-stock-info{
    color:#666;
    font-size:1.4rem;
}

.out-of-stock-btn {

    background-color: black;

    color: white;

    cursor: not-allowed;

    opacity: 0.8;

}

.out-stock{

    color:#d62522;

    font-weight:bold;


}

.product-description{

    font-size: 1.4rem;

    margin-bottom:1.5rem;

    line-height:2;

    color:#353535;

}

.purchase-section{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:0.75rem;

    margin-top:1.25rem;

}

.variant-selector{

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    margin: 2rem 0;

}

.variant-selector h3{

    font-size: 1.5rem;
    font-weight: 700;

}

.variant-list{

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;

}

.variant-btn{

    min-width: 10rem;

    padding: .8rem 1.3rem;

    border: 0.2rem solid #e5e5e5;
    border-radius: 1.2rem;

    background: white;

    cursor: pointer;

    transition: .25s ease;

    font-size: .95rem;
    font-weight: 600;

}

.variant-btn:hover{

    border-color: #fcd7ff;

    transform: translateY(-0.2rem);

}

.variant-btn.active{

    background: #ffaaef;
    color: white;


    box-shadow: 0 0.3rem 0.7rem rgba(251, 175, 255, 0.35);

    transform: scale(1.05);

}

.variant-btn:focus{

    outline: none;

}

.quantity-selector{

    display:flex;

    align-items:center;

    width:fit-content;
    
    margin:3rem auto 3rem auto;

}
.quantity-selector p{
    font-size: 2rem;
    padding: 0.5rem;
}

.qty-btn{
    width:4.5rem;
    height:4.5rem;
    border:0.1rem solid #fde6ff;
    border-radius: 30%;
    background:#fff3fc;
    cursor:pointer;
    font-size:2.2rem;
}

.qty-btn:hover{
    background:#fae4ff;
}

.qty-btn-disabled{
    width:4.5rem;
    height:4.5rem;
    border:0.1rem solid #fde6ff;
    border-radius: 30%;
    background:#dcdcdc;
    cursor:pointer;
    font-size:2.2rem;
}


#quantity{
    width:6rem;
    text-align:center;
    border:none;
    font-size:1.8rem;
    outline:none;
}





/* ==========================================================
   RESPONSIVE — 07. جزئیات محصول
   ========================================================== */

@media (max-width: 768px) {

  .purchase-section{
    width:100%;
  }

  .add-to-cart-btn,
  .add-to-cart-btn-disabled{
    width:100%;
  }

}

/* ==========================================================
   08. سبد خرید
   ========================================================== */

/*       */

.cart-page {
    width: 100%;
    max-width: 140rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    box-sizing: border-box;
}

.cart-content {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28rem;
    gap: 2rem;
    align-items: start;
    direction: ltr;
}

#cart-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(25rem, 1fr));
    gap: 1rem;
    min-width: 0;
}


#cart-summary {
    width: 28rem;
    position: sticky;
    top: 2rem;
    align-self: start;
    direction: rtl;
}

.cart-summary-info {
    background: #fff9fe;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 0.3rem 1rem rgba(167, 0, 239, 0.2);
}

.cart-summary-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cart-summary-info h2 {
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight:bold;
}

.cart-summary-products p {
    text-align: right;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.back-to-product-btn,
.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    color: #fff;
    

}

.checkout-btn{
    background-color: rgb(160, 120, 255);
}

.checkout-btn:hover{
    background-color: rgb(142, 97, 249);
}

.back-to-product-btn {
    background-color: rgb(237, 167, 231);
}

.back-to-product-btn:hover {
    background-color: rgb(255, 157, 247);
}


/* -------------------- سبد خالی -------------------- */

/* سبد خالی */


#cart-empty {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-empty-box {
    width: min(60rem, 100%);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff9fe;
    border-radius: 2rem;
    box-shadow: 0 0.3rem 1rem rgba(167, 0, 239, 0.2);
    box-sizing: border-box;
}

.cart-empty-icon {
    width: 12rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cart-empty-box h2 {
    font-size: 2.2rem;
    color: #4b3d69;
    margin-bottom: 1rem;
    text-align: center;
}

.cart-empty-box p {
    font-size: 1.4rem;
    color: #777;
    margin-bottom: 2rem;
    line-height: 2;
}

.cart-empty-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.empty-home-btn,
.empty-products-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 1.2rem;
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.25s;
}

.empty-home-btn {
    background: #c95a5a;
    color: white;
}

.empty-home-btn:hover {
    background: #b64545;
}

.empty-products-btn {
    background: #dba8f5;
    color: white;
}

.empty-products-btn:hover {
    background: #cb8eef;
}


.checkout-requirements-box {

    margin-top: 2rem;

    margin-bottom: 1.5rem;

    padding: 1.6rem 1.8rem;

    border-radius: 1.4rem;

    background: #fff8fb;

    border: 0.1rem solid #f2d7e1;

    direction: rtl;
}


.checkout-requirements-box h3 {

    margin: 0 0 1.2rem;

    color: #555;

    font-size: 1.6rem;

    font-weight: 600;
}


.checkout-requirements-list {

    display: flex;

    flex-direction: column;

    gap: 0.8rem;
}


.checkout-requirement-item {

    display: flex;

    align-items: center;

    gap: 0.9rem;

    color: #5a5a5a;

    font-size: 1.4rem;

    line-height: 1.8;
}


.requirement-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 2rem;

    height: 2rem;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e75480;

    color: #fff;

    font-size: 1.1rem;

    font-weight: bold;
}








/* ==========================================================
   RESPONSIVE — 08. سبد خرید
   ========================================================== */

@media (max-width: 1000px) {

  .cart-content{
    grid-template-columns:minmax(0, 1fr) 25rem;
    gap:1.5rem;
  }

  #cart-summary{
    width:25rem;
  }

  #cart-container{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {

  .cart-content{
    grid-template-columns:1fr;
  }

  #cart-summary{
    width:100%;
  }

  #cart-container{
    grid-template-columns:1fr;
  }

  .cart-item{
    width:100%;
  }

  .cart-buttons{
    flex-wrap:wrap;
  }

  .cart-buttons a,
  .remove-btn{
    flex:1 1 16rem;
  }

}

@media (max-width: 480px) {

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

  .cart-buttons a,
  .remove-btn{
    width:100%;
  }

}

/* ==========================================================
   09. Stepper و Checkout
   ========================================================== */

#checkout-stepper {
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}


.checkout-stepper {
    width: min(90rem, 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    direction: rtl;
}

.step-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-wrapper:last-child {
    flex: 0 0 auto;
}

.checkout-step {
    min-width: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 0.2rem solid #ddd;
    background: #fff;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-sizing: border-box;
}

.step-title {
    font-size: 1.5rem;
    color: #999;
    white-space: nowrap;
}

.checkout-step.active .step-circle,
.checkout-step.completed .step-circle {
    background: #d96b9a;
    border-color: #d96b9a;
    color: #fff;
    font-size: 1.5rem;
}

.checkout-step.active .step-title {
    color: #d96b9a;
    font-weight: 700;
    
}

.checkout-step.completed .step-title {
    color: #444;
}

.step-line {
    flex: 1;
    height: 0.2rem;
    background: #e3e3e3;
    margin: 0 1rem;
    margin-top: 2.2rem;
}

.step-wrapper:has(.checkout-step.completed) .step-line {
    background: #d96b9a;
}





.checkout-page {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    box-sizing: border-box;
}

.checkout-content {
    width: 100%;
}

.checkout-main {
    width: 100%;
}

.checkout-section {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 0.8rem 2rem rgba(255, 198, 253, 0.25);
    box-sizing: border-box;
    
    
}

.checkout-section-title {
    margin: 0 0 1.5rem;
    color: #4b3d69;
    font-size: 2rem;
    text-align: right;
}


/* =========================
   Login To Review Button
   ========================= */
#login-review-btn {

    margin-top: 1.5rem;

    background: #ff6b9d;

    color: white;

    border: none;

    border-radius: 1rem;

    padding: 1rem 2.5rem;

    font-size: 1.4rem;

    cursor: pointer;

    transition: .3s;
}


#login-review-btn:hover {

    transform: translateY(-0.2rem);

    opacity: .9;
}


/* ==========================================================
   اطلاعات خریدار
   ========================================================== */
/* ==========================================================
   اطلاعات خریدار Checkout
   ========================================================== */

.checkout-profile-card {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.1rem 1.5rem rgba(255, 198, 253, 0.412);
    box-sizing: border-box;
}

.checkout-profile-card p {
    width: calc(50% - 0.8rem);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.4rem;
    border: 0.1rem solid #f5dbfc;
    border-radius: 1rem;
    font-size: 1.4rem;
    margin: 0;
    box-sizing: border-box;
}

.checkout-profile-card p span {
    color: #777;
    display: block;
}

.checkout-profile-card p strong {
    color: #333;
    font-weight: 600;
}

.checkout-edit-profile-btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 1rem;
    background: #dba8f5;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.checkout-edit-profile-btn:hover {
    background: #c98eef;
    transform: translateY(-0.2rem);
}

/* ==========================================================
   دکمه ویرایش آدرس
   ========================================================== */

.checkout-address-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 0.9rem;
    background: #dba8f5;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: .25s;
}

.checkout-address-edit-btn:hover {
    background: #c98eef;
    transform: translateY(-0.2rem);
}



/* ==========================================================
   آدرس Checkout
   ========================================================== */

.checkout-address-card {
    position: relative;
    cursor: pointer;
}

.checkout-address-card:hover {
    border-color: #dba8f5;
}

.checkout-address-card.selected-address {
    border-color: #d96b9a;
    box-shadow: 0 0.5rem 1.8rem rgba(217, 107, 154, 0.12);
}

.checkout-address-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-address-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.checkout-address-actions .edit-address-btn {
    background: none;
    border: none;
    padding: 0;
    color: #408cff;
    font-size: 1.3rem;
    cursor: pointer;
    font-weight: 600;
}

.checkout-address-actions .edit-address-btn:hover {
    color: #176fd1;
}


/* ==========================================================
   کد تخفیف
   ========================================================== */
/* ==========================================================
   کد تخفیف
   ========================================================== */


.discount-message {
    min-height: 2rem;
    margin: 1rem 0;
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: right;


    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.discount-message.success {
    color: #2e7d32 !important;

    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.checkout-discount-input {
    width: 100%;
    display: flex;
    gap: 1rem;
    direction: rtl;
}

.checkout-discount-input input {
    flex: 1;
    min-width: 0;
    padding: 1.3rem 1.5rem;
    border: 0.1rem solid #ead8ee;
    border-radius: 1rem;
    background: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    outline: none;
    box-sizing: border-box;
}

.checkout-discount-input input:focus {
    border-color: #dba8f5;
}

.checkout-discount-input button {
    padding: 1.3rem 2.2rem;
    border: none;
    border-radius: 1rem;
    background: #dba8f5;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.checkout-discount-input button:hover {
    background: #c98eef;
}


/* ==========================================================
   جمع مبالغ Checkout
   ========================================================== */

.checkout-total-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 0.1rem solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: black;
}


.summary-row strong {
    color: #333;
}

.discount-row strong {
    color: #4ba209;
    font-size: 1.3rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.2rem solid #f0d9ef;
    font-size: 1.7rem;
    color: #850089;
}

.summary-total strong {
    color: #850089;
    font-weight: 800;
    font-size: 1.7rem;
}


/* ==========================================================
   روش پرداخت
   ========================================================== */
/* ==========================================================
   روش پرداخت
   ========================================================== */

.payment-methods {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    direction: rtl;
}

.payment-option {
    flex: 1;
    min-width: 22rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem 1.8rem;
    border: 0.1rem solid #eee;
    border-radius: 1.2rem;
    background: #fff;
    color: #444;
    font-size: 1.4rem;
    cursor: pointer;
    transition: .25s;
    box-sizing: border-box;
}

.payment-option:hover {
    border-color: #dba8f5;
    background: #fff9fe;
}

.payment-option input {
    width: 1.8rem;
    height: 1.8rem;
    margin: 0;
    accent-color: #d96b9a;
    cursor: pointer;
}

/* ==========================================================
   دکمه ادامه خرید
   ========================================================== */

.continue-payment-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    border: none;
    border-radius: 1.2rem;
    background: rgb(160, 120, 255);
    color: #fff;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.continue-payment-btn:hover:not(:disabled) {
    background: rgb(142, 97, 249);
    transform: translateY(-0.2rem);
}

.continue-payment-btn:disabled {
    background: #d8d8d8;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* ================================= */
/* کارت محصول در Checkout */
/* ================================= */

.checkout-item {
    position: relative;
    background-color: #ffffff;
    color: #333;
    border-radius: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0.8rem 1.5rem rgba(255, 198, 253, 0.412);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.checkout-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.5rem 3rem rgba(255, 198, 253, 0.673);
}

.checkout-item img {
    width: 100%;
    height: 22rem;
    object-fit: cover;
}

.checkout-item-info {
    width: 100%;
    padding: 1.6rem;
    text-align: center;
    box-sizing: border-box;
}

.checkout-item-info h4 {
    margin: 0 0 0.8rem;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.checkout-item-info p {
    margin: 0 0 1rem;
    color: #777;
    font-size: 1.4rem;
}

.checkout-item-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #850089;
}


/* ================================= */
/* جمع کل */
/* ================================= */

.checkout-total-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 0.1rem solid #eee;
}


/* =========================================================
   ORDER DETAILS PAGE
   ========================================================= */

.order-details-page {

    width: 92%;
    max-width: 110rem;

    margin: 4rem auto 8rem;

    direction: rtl;
}

/* =========================================================
   ORDERS
   ========================================================= */

.orders-container {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

    margin-top: 2rem;
}


.order-summary-card {

    background: #fff;

    border: 0.1rem solid #eee;

    border-radius: 1.6rem;

    padding: 2rem;

    box-shadow:
        0 0.5rem 1.8rem rgba(0, 0, 0, 0.04);

    transition: 0.2s ease;
}


.order-summary-card:hover {

    transform: translateY(-0.2rem);

    box-shadow:
        0 0.8rem 2.4rem rgba(0, 0, 0, 0.07);
}


.order-summary-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1.5rem;

    padding-bottom: 1.5rem;

    border-bottom: 0.1rem solid #eee;
}


.order-summary-label {

    display: block;

    font-size: 1.2rem;

    color: #999;

    margin-bottom: 0.5rem;
}


.order-code {

    color: #333;

    font-size: 1.5rem;
}


.order-payment-status {

    padding: 0.6rem 1.2rem;

    border-radius: 2rem;

    font-size: 1.2rem;

    text-align: center;

    font-weight: 600;
}


.status-success {

    background: #eaf8ef;

    color: #198754;
}


.status-failed {

    background: #fff0f0;

    color: #dc3545;
}


.status-pending {

    background: #fff7df;

    color: #b58100;
}


.status-refunded {

    background: #f1ecff;

    color: #6f42c1;
}


.status-default {

    background: #f2f2f2;

    color: #666;
}


.order-summary-middle {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;

    padding: 1.8rem 0;
}


.order-summary-info {

    display: flex;

    flex-direction: column;

    gap: 0.6rem;

    color: #777;

    font-size: 1.3rem;
}


.order-summary-price {

    font-size: 1.7rem;

    color: #e75480;

    white-space: nowrap;
}


.order-summary-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1.5rem;
}


.order-status-text {

    font-size: 1.3rem;

    color: #414141;

    font-weight: 600;
}

.order-status-text span{

    display: inline-block;
    color: #e75480;

}


.order-details-btn {

    border: none;

    background: #e75480;

    color: #fff;

    padding: 0.9rem 1.6rem;

    border-radius: 1rem;

    cursor: pointer;

    font-family: inherit;

    transition: 0.2s ease;
}


.order-details-btn:hover {

    transform: translateY(-0.1rem);

    box-shadow:
        0 0.5rem 1.4rem rgba(0, 0, 0, 0.1);
}

.empty-orders {

    width: 100%;

    text-align: center;

    padding: 3rem 1rem;
}


.empty-orders h3 {

    color: #555;

    margin-bottom: 1.5rem;

    font-size: 1.6rem;

    text-align: center;
}

.order-summary-actions {

    display: flex;

    align-items: center;

    gap: 1rem;
}


.retry-payment-btn {

    border: 0.1rem solid #e75480;

    background: #fff;

    color: #e75480;

    padding: 0.9rem 1.6rem;

    border-radius: 1rem;

    cursor: pointer;

    font-family: inherit;

    transition: 0.2s ease;
}


.retry-payment-btn:hover {

    background: #e75480;

    color: #fff;
}


.retry-payment-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;
}


/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.order-details-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 2rem;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.25s ease;

}


.order-details-modal.active {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   MODAL BOX
   ========================================================= */

.order-details-modal-content {

    position: relative;

    width: 100%;

    max-width: 76rem;

    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 2rem;

    padding: 2.8rem;

    direction: rtl;

    box-shadow:
        0 1.5rem 5rem rgba(0, 0, 0, 0.18);

    transform: translateY(1.5rem);

    transition: 0.25s ease;

}


.order-details-modal.active
.order-details-modal-content {

    transform: translateY(0);

}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-order-details-modal {

    position: absolute;

    top: 1.5rem;

    left: 1.5rem;

    width: 3.6rem;

    height: 3.6rem;

    border: none;

    border-radius: 50%;

    background: #f5f5f5;

    color: #555;

    font-size: 2.2rem;

    cursor: pointer;

}


/* =========================================================
   HEADER
   ========================================================= */

.order-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;

    padding-bottom: 2rem;

    border-bottom: 0.1rem solid #eee;

}


.order-modal-header span {

    display: block;

    color: #999;

    font-size: 1.2rem;

    margin-bottom: 0.6rem;

}


.order-modal-header h2 {

    margin: 0;

    color: #333;

    font-size: 2rem;

}


.order-modal-status {

    padding: 0.8rem 1.4rem;

    border-radius: 2rem;

    background: #fdf0f4;

    color: #e75480;

    font-size: 1.3rem;

    font-weight: 600;

    margin-left: 3rem;

}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.order-modal-section {

    margin-top: 2.4rem;

    padding-bottom: 2.2rem;

    border-bottom: 0.1rem solid #eee;

}


.order-modal-section h3 {

    margin: 0 0 1.5rem;

    font-size: 1.7rem;

    color: #333;

}


/* =========================================================
   ITEMS CONTAINER
   ========================================================= */

.order-modal-items {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}


/* =========================================================
   SINGLE ITEM
   ========================================================= */

.order-modal-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 10.5rem;

    padding: 1.4rem 1.8rem;

    border-radius: 1.2rem;

    background: #fafafa;

    direction: rtl;

    box-sizing: border-box;

}


/* =========================================================
   RIGHT SIDE
   IMAGE + PRODUCT INFO
   ========================================================= */

.order-modal-item-product {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 1.5rem;

    flex: 1;

    min-width: 0;

    direction: rtl;

    text-align: right;

}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.order-modal-item-product img,
.order-modal-item-no-image {

    width: 8.8rem;

    height: 8.8rem;

    min-width: 8.8rem;

    min-height: 8.8rem;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 1.4rem;

    border: 0.1rem solid #eee;

}


/* =========================================================
   NO IMAGE
   ========================================================= */

.order-modal-item-no-image {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f5f5f5;

    color: #999;

    font-size: 1.1rem;

    text-align: center;

}


/* =========================================================
   PRODUCT TEXT
   ========================================================= */

.order-modal-item-product > div:last-child {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 0.5rem;

    min-width: 0;

    text-align: right;

}


/* Product name */

.order-modal-item-product strong {

    display: inline-block;

    max-width: 100%;

    color: #333;

    font-size: 1.1rem;

    line-height: 1.8;

    text-align: right;

}


/* Variant */

.order-modal-item-product span {

    color: #686868;

    font-size: 1.4rem;

    line-height: 1.7;

    text-align: right;

}


/* =========================================================
   LEFT SIDE
   QUANTITY + PRICE
   ========================================================= */

.order-modal-item-right {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 0.6rem;

    width: 12.5rem;

    min-width: 12.5rem;

    margin-left: auto;
    margin-right: 0;

    flex-shrink: 0;

    direction: ltr;

    text-align: right;

}


/* Quantity */

.order-modal-item-right span {

    color: #777;

    font-size: 1.3rem;

    white-space: nowrap;

}


/* Price */

.order-modal-item-right strong {

    color: #232323;

    font-size: 1.5rem;

    white-space: nowrap;

}


/* =========================================================
   SUMMARY ROWS
   ========================================================= */

.order-modal-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 0;

    color: #666;

    font-size: 1.4rem;

}


.order-modal-row.discount strong {

    color: #e75480;

}


.order-modal-row.total {

    margin-top: 0.8rem;

    padding-top: 1.6rem;

    border-top: 0.1rem solid #eee;

    font-size: 1.7rem;

}


.order-modal-row.total strong {

    color: #e75480;

    font-size: 1.9rem;

}


/* =========================================================
   ORDER INFO
   ========================================================= */

.order-modal-info-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.2rem;

}


.order-modal-info-grid > div {

    display: flex;

    flex-direction: column;

    gap: 0.6rem;

    padding: 1.3rem;

    border-radius: 1.1rem;

    background: #fafafa;

}


.order-modal-info-grid > div.full {

    grid-column: 1 / -1;

}


.order-modal-info-grid span {

    color: #999;

    font-size: 1.2rem;

}


.order-modal-info-grid strong {

    color: #333;

    font-size: 1.3rem;

    line-height: 1.8;

}


/* =========================================================
   FOOTER
   ========================================================= */

.order-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1.5rem;

    margin-top: 2rem;

    padding-top: 1.8rem;

    border-top: 0.1rem solid #eee;

    color: #666;

    font-size: 1.5rem;

}

.order-modal-footer strong{
    display: inline-block;
    color: #e75480;;
}


/* =========================================================
   LOADING
   ========================================================= */

.order-modal-loading {

    padding: 5rem;

    text-align: center;

    color: #777;

}
/* =========================================================
   ORDER DETAILS HEADER
   ========================================================= */

.order-details-header {

    text-align: center;

    margin-bottom: 3rem;
}

.order-details-header h1 {

    font-size: 2.8rem;

    margin-bottom: 1.2rem;

    text-align: center;

    color: #222;
}

.order-details-header p {

    margin: 0;

    font-size: 1.5rem;

    color: #777;
}

.order-details-header strong {

    color: #222;
}


/* =========================================================
   ORDER STATUS
   ========================================================= */

.order-status-card {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 2rem;

    margin-bottom: 2.5rem;
}

.order-status-card > div {

    background: #fff;

    border: 0.1rem solid #eee;

    border-radius: 1.6rem;

    padding: 2.2rem 2.4rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow: 0 0.5rem 1.8rem rgba(0, 0, 0, 0.04);
}

.order-status-card span {

    color: #777;

    font-size: 1.4rem;
}

.order-status-card strong {

    color: #e75480;

    font-size: 1.5rem;
}


/* =========================================================
   GENERAL CARD
   ========================================================= */

.order-details-card {

    background: #fff;

    border: 0.1rem solid #eee;

    border-radius: 1.8rem;

    padding: 2.5rem;

    margin-bottom: 2.4rem;

    box-shadow: 0 0.5rem 1.8rem rgba(0, 0, 0, 0.04);
}

.order-details-card h2 {

    margin: 0 0 2.2rem;

    font-size: 2rem;

    color: #222;

    padding-bottom: 1.4rem;

    border-bottom: 0.1rem solid #eee;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.order-info-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.8rem;
}

.order-info-grid > div {

    display: flex;

    flex-direction: column;

    gap: 0.7rem;

    background: #fafafa;

    border-radius: 1.2rem;

    padding: 1.5rem 1.7rem;
}

.order-info-grid > div.full-width {

    grid-column: 1 / -1;
}

.order-info-grid span {

    font-size: 1.3rem;

    color: #888;
}

.order-info-grid strong {

    font-size: 1.5rem;

    color: #333;

    line-height: 1.8;
}


/* =========================================================
   ORDER ITEMS
   ========================================================= */

.order-items-list {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}

.order-item-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;

    padding: 1.6rem;

    border: 0.1rem solid #eee;

    border-radius: 1.4rem;

    background: #fff;
}

.order-item-info {

    display: flex;

    align-items: center;

    gap: 1.6rem;

    min-width: 0;
}

.order-item-info img {

    width: 7.5rem;

    height: 7.5rem;

    object-fit: cover;

    border-radius: 1.2rem;

    border: 0.1rem solid #eee;
}

.order-item-info h3 {

    margin: 0 0 0.7rem;

    font-size: 1.6rem;

    color: #222;
}

.order-item-info p {

    margin: 0;

    font-size: 1.3rem;

    color: #888;
}

.order-item-price {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 0.7rem;

    white-space: nowrap;
}

.order-item-price span {

    color: #777;

    font-size: 1.3rem;
}

.order-item-price strong {

    color: #333;

    font-size: 1.5rem;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.order-summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1.4rem 0;

    font-size: 1.5rem;

    border-bottom: 0.1rem solid #f0f0f0;
}

.order-summary-row:last-child {

    border-bottom: none;
}

.order-summary-row span {

    color: #777;
}

.order-summary-row strong {

    color: #333;
}

.order-summary-row.discount-row strong {

    color: #e75480;
}

.order-summary-row.total-row {

    margin-top: 0.8rem;

    padding-top: 2rem;

    font-size: 1.8rem;
}

.order-summary-row.total-row strong {

    color: #e75480;

    font-size: 2rem;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.order-details-actions {

    display: flex;

    justify-content: center;

    gap: 1.3rem;

    margin-top: 3rem;
}

.order-details-actions a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 13rem;

    padding: 1.3rem 2.2rem;

    border-radius: 1.2rem;

    text-decoration: none;

    font-size: 1.4rem;

    transition: 0.2s ease;

    border: 0.1rem solid #e75480;

    color: #e75480;

    background: #fff;
}

.order-details-actions a:first-child {

    color: #fff;

    background: #e75480;
}

.order-details-actions a:hover {

    transform: translateY(-0.2rem);

    box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.08);
}

/* =========================================================
   CANCEL ORDER MODAL
   ========================================================= */

.cancel-order-modal {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 2rem;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.25s ease;

}


.cancel-order-modal.active {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   MODAL BOX
   ========================================================= */

.cancel-order-modal-content {

    position: relative;

    width: 100%;

    max-width: 52rem;

    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 2rem;

    padding: 2.8rem;

    direction: rtl;

    box-shadow:
        0 1.5rem 5rem rgba(0, 0, 0, 0.18);

    transform: translateY(1.5rem);

    transition: 0.25s ease;

}


.cancel-order-modal.active
.cancel-order-modal-content {

    transform: translateY(0);

}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.close-cancel-order-modal {

    position: absolute;

    top: 1.5rem;

    left: 1.5rem;

    width: 3.6rem;

    height: 3.6rem;

    border: none;

    border-radius: 50%;

    background: #f5f5f5;

    color: #555;

    font-size: 2.2rem;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;

}


.close-cancel-order-modal:hover {

    background: #eee;

}


/* =========================================================
   TITLE
   ========================================================= */

.cancel-order-modal-content h2 {

    margin: 0 0 1rem;

    color: #333;

    font-size: 2.1rem;

    text-align: right;

}


/* =========================================================
   HELP TEXT
   ========================================================= */

.cancel-order-help {

    margin: 0 0 2.2rem;

    color: #888;

    font-size: 1.3rem;

    line-height: 1.9;

}


/* =========================================================
   FORM
   ========================================================= */

.cancel-form-group {

    margin-bottom: 1.7rem;

}


.cancel-form-group label {

    display: block;

    margin-bottom: 0.7rem;

    color: #555;

    font-size: 1.3rem;

    font-weight: 500;

}


.cancel-form-group input,
.cancel-form-group textarea {

    width: 100%;

    box-sizing: border-box;

    border: 0.1rem solid #ddd;

    border-radius: 1.1rem;

    padding: 1.2rem 1.3rem;

    background: #fff;

    color: #333;

    font-family: inherit;

    font-size: 1.3rem;

    outline: none;

    transition: 0.2s ease;

}


.cancel-form-group textarea {

    min-height: 11rem;

    resize: vertical;

    line-height: 1.8;

}


.cancel-form-group input:focus,
.cancel-form-group textarea:focus {

    border-color: #e75480;

    box-shadow:
        0 0 0 0.3rem rgba(231, 84, 128, 0.08);

}


/* =========================================================
   ERROR
   ========================================================= */

.cancel-order-error {

    display: none;

    margin-bottom: 1.5rem;

    padding: 1.1rem 1.3rem;

    border: 0.1rem solid #f1b5b5;

    border-radius: 1rem;

    background: #fff2f2;

    color: #dc3545;

    font-size: 1.2rem;

    line-height: 1.8;

}


.cancel-order-error.active {

    display: block;

}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-cancel-order-btn {

    width: 100%;

    border: none;

    border-radius: 1.1rem;

    padding: 1.3rem;

    background: #e75480;

    color: #fff;

    font-family: inherit;

    font-size: 1.4rem;

    cursor: pointer;

    transition: 0.2s ease;

}


.submit-cancel-order-btn:hover {

    background: #d94773;

    transform: translateY(-0.1rem);

}


.submit-cancel-order-btn:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}


/* =========================================================
   CANCELLATION DETAILS
   ========================================================= */

.cancellation-status {

    display: inline-flex;

    align-items: center;

    padding: 0.7rem 1.3rem;

    margin-bottom: 2.2rem;

    border-radius: 2rem;

    background: #fdf0f4;

    color: #e75480;

    font-size: 1.2rem;

    font-weight: 600;

}


.cancellation-detail,
.cancellation-admin-note {

    margin-bottom: 1.6rem;

    padding: 1.4rem;

    border-radius: 1.2rem;

    background: #fafafa;

    border: 0.1rem solid #eee;

}


.cancellation-detail > span,
.cancellation-admin-note > span {

    display: block;

    margin-bottom: 0.7rem;

    color: #999;

    font-size: 1.2rem;

}


.cancellation-detail p,
.cancellation-admin-note p {

    margin: 0;

    color: #333;

    font-size: 1.3rem;

    line-height: 1.9;

    white-space: pre-line;

    overflow-wrap: anywhere;

}


.cancellation-admin-note {

    background: #fff8fb;

    border-color: #f5d8e3;

}


.cancellation-admin-note > span {

    color: #e75480;

    font-weight: 600;

}


.no-admin-note {

    color: #999 !important;

}

.no-address{
    font-size: 1.3rem;
}

/* =========================================================
   ORDER SUMMARY ACTIONS
   ========================================================= */

.order-summary-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 0.8rem;

}


.cancel-order-btn,
.cancellation-details-btn {

    border: 0.1rem solid #e75480;

    border-radius: 1rem;

    padding: 0.9rem 1.5rem;

    background: #fff;

    color: #e75480;

    font-family: inherit;

    font-size: 1.2rem;

    cursor: pointer;

    transition: 0.2s ease;

}


.cancel-order-btn:hover,
.cancellation-details-btn:hover {

    background: #e75480;

    color: #fff;

}



.cancel-online-note {

    margin-bottom: 1.8rem;

    padding: 1.3rem 1.4rem;

    border-radius: 1.1rem;

    background: #fff8fb;

    border: 0.1rem solid #f5d8e3;

    color: #777;

    font-size: 1.2rem;

    line-height: 1.9;

    text-align: right;

}
/* =========================================================
   CHECKOUT STEPPER
   ========================================================= */

#checkout-stepper {

    margin-bottom: 3.5rem;
}

.checkout-stepper {

    width: 100%;

    display: flex;

    align-items: flex-start;

    justify-content: center;
}

.step-wrapper {

    flex: 1;

    display: flex;

    align-items: flex-start;
}

.checkout-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 10rem;

    cursor: default;

    position: relative;

    z-index: 2;
}

.step-circle {

    width: 4.2rem;

    height: 4.2rem;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.4rem;

    font-weight: 600;

    background: #eee;

    color: #777;

    border: 0.2rem solid #eee;

}

.step-title {

    margin-top: 0.9rem;

    font-size: 1.3rem;

    color: #888;

    white-space: nowrap;
}

.checkout-step.active .step-circle {

    background: #e75480;

    border-color: #e75480;

    color: #fff;
}

.checkout-step.active .step-title {

    color: #e75480;

    font-weight: 600;
}

.checkout-step.completed .step-circle {

    background: #e75480;

    border-color: #e75480;

    color: #fff;
}

.checkout-step.completed .step-title {

    color: #444;

}

.step-line {

    flex: 1;

    height: 0.2rem;

    background: #e8e8e8;

    margin-top: 2.1rem;
}


/* =========================================================
   EMPTY / MISSING IMAGE
   ========================================================= */

.order-item-info img[src=""] {

    display: none;
}
/* ================================= */
/* Responsive */
/* ================================= */







/* ==========================================================
   RESPONSIVE — 09. Stepper و Checkout
   ========================================================== */

@media (max-width: 1000px) {

  .checkout-page{
    max-width:110rem;
  }

}

@media (max-width: 768px) {

  .checkout-page{
    width:100%;
    padding-left:1rem;
    padding-right:1rem;
  }

  .checkout-section{
    padding:1.2rem;
  }

  .checkout-section-title{
    font-size:clamp(1.5rem, 3vw, 1.8rem);
  }

  .section-header{
    flex-direction:column;
    align-items:stretch;
    gap:1rem;
  }

  .checkout-edit-profile-btn,
  .checkout-address-edit-btn{
    width:100%;
  }

  .checkout-profile-card p{
    flex-wrap:wrap;
    gap:.2rem;
  }

  .payment-methods{
    grid-template-columns:1fr;
  }

  .checkout-items .cart-item{
    width:100%;
  }

  .checkout-items .cart-item img{
    width:6.5rem;
    height:6.5rem;
  }

  .summary-row{
    flex-wrap:wrap;
    gap:.5rem;
  }

  .checkout-requirements-box{
    width:100%;
  }

  .continue-payment-btn{
    width:100%;
  }

  #checkout-stepper{
    margin-bottom:2rem;
  }

  .checkout-stepper{
    width:100%;
    overflow-x:auto;
    justify-content:flex-start;
    padding:0 1rem 1rem;
    scrollbar-width:none;
  }

  .checkout-stepper::-webkit-scrollbar{
    display:none;
  }

  .checkout-step{
    min-width:clamp(6.8rem, 18vw, 7.8rem);
  }

  .step-circle{
    width:3.6rem;
    height:3.6rem;
  }

  .step-line{
    min-width:2.5rem;
    margin-top:1.8rem;
  }

}

@media (max-width: 480px) {

  .checkout-page{
    padding-left:.7rem;
    padding-right:.7rem;
  }

  .checkout-section{
    padding:1rem;
  }

  .checkout-section-title{
    font-size:1.5rem;
  }

  .checkout-profile-card p{
    flex-direction:column;
    align-items:flex-start;
  }

}

/* ==========================================================
   10. دکمه‌ها و عملیات محصول
   ========================================================== */

/*    */

.add-to-cart-btn{

    width:33rem;

    height:5rem;

    border:none;

    border-radius:0.875rem;

    background:#f6a6cb;

    color:white;

    font-size:2rem;

    cursor:pointer;

    transition:.25s;

}





.add-to-cart-btn:hover{

    background:#ef8fbc;

}

.add-to-cart-btn-disabled{

    width:33rem;

    height:5rem;

    border:none;

    border-radius:0.875rem;

    background:#2c2c2c;

    color:white;

    font-size:2rem;

    cursor:pointer;

    transition:.25s;
}

.add-to-cart-btn-disabled:hover{

    background:#1b1b1b;

}

.go-to-cart-text{

  font-size: 1.4rem;

  color: #fff;
  

}

.go-to-cart-btn{

    width: 12rem;

    height:5rem;

    border:none;

    border-radius:0.875rem;

    background: #00ba06d1;

    font-size:0.2rem;

    cursor:pointer;

    transition:.25s;

}

.go-to-cart-btn:hover{

    background:#00cd07d1;

}

.wishlist-btn{

    width: 7rem;

    height:5rem;

    border:none;

    border-radius:0.875rem;

    background: #ff3049d1;

    font-size:0.2rem;

    cursor:pointer;

    transition:.25s;

}

.wishlist-btn:hover{

    background:#ff122e;

}

.empty-wishlist{
    width:100%;
    text-align:center;
    padding:3rem 1rem;
}

.empty-wishlist h3{
    color:#555;
    margin-bottom:1.5rem;
    font-size: 1.6rem;
    text-align: center;
}


.share-btn{

    width:7rem;

    height:5rem;

    border:none;

    border-radius:0.875rem;

    background:#f7f7f7;

    color:#555;

    font-size:1rem;

    cursor:pointer;

    transition:.25s;

}

.share-btn:hover{

    background:#ececec;

}

.share-container {
    position: relative;
    display: inline-block;
}

#copy-message {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    background: #333;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    white-space: nowrap;
    z-index: 999;
}

#copy-message.show {
    opacity: 1;
    visibility: visible;
}


.action-icon{
    width:1.8rem;
    height:1.8rem;
    display:block;
    margin: 0 auto;
}






/* ==========================================================
   RESPONSIVE — 10. دکمه‌ها و عملیات محصول
   ========================================================== */

@media (max-width: 768px) {

  .card-buttons{
    flex-wrap:wrap;
  }

}

/* ==========================================================
   11. جزئیات و بخش‌های تکمیلی محصول
   ========================================================== */

.product-details{

    margin-top:5rem;
    margin-bottom: 3rem;
    
}
/*                */

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom: 1.5rem;
}

.section-title a{

    font-size: 1.4rem;;
    color: black;
    margin-left: 1.5rem;
    background-color: rgb(255, 229, 250);
    padding: 5px;
    border-radius: 10px;

}

.details-title{

    font-size: 2rem;;

    margin-bottom:2.5rem;


}
/*                        */


.details-title-2{

    font-size: 2rem;;

    margin-bottom:0;


}




.details-list{

    border-radius:1.8rem;

    overflow:hidden;

    border:0.1rem solid #eee;
    box-shadow:0 1rem 3rem rgba(0, 0, 0, 0.05);

}

.detail-row{

    display:flex;

    justify-content:space-between;

    padding:1.8rem 2.4rem;

    border-bottom:0.1rem solid #f2f2f2;

}

.detail-row:nth-child(even){

    background:#f8f4fc;

}

.detail-row:last-child{

    border-bottom:none;

}

.detail-key{

    width:35%;

    color:#645b71;

    font-weight:600;

    font-size: 1.5rem;

}

.detail-value{

    width:65%;

    text-align:left;

    color:#333;

    font-size: 1.5rem;

}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 0.1rem solid rgb(146, 22, 255);
}

.section-header h2 {
    font-size: 2rem;
    margin: 0;
}

.see-more {
    font-size: 1.5rem;
}
/* پایان توضیحات هر پروداکت */





/* ==========================================================
   RESPONSIVE — 11. جزئیات و بخش‌های تکمیلی محصول
   ========================================================== */

@media (max-width: 768px) {

  .product-description{
    overflow-wrap:anywhere;
  }

}

/* ==========================================================
   12. عملیات سبد خرید
   ========================================================== */

/* سبد */

.cart-item{
    width:35rem;
    margin:2rem;
}

.cart-actions{
    display:flex;
    justify-content:space-between;
    align-items:right;
    margin-top:1.8rem;
}

.quantity-box{
    display:flex;
    align-items:center;
    gap:1rem;
    margin-bottom: 1rem;
}

.quantity-box span{
    font-size: 1.5rem;
}

.quantity-box button{
    width:4rem;
    height:4rem;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:2rem;
    font-weight:bold;
    transition:.2s;
    background-color: #fff3fc;
}

.quantity-box button:hover{
    transform:scale(1.08);
}

.cart-buttons{
    display:flex;
    justify-content:flex-end;
    gap:1rem;
    margin-top:1.5rem;
}

.cart-buttons a{
    flex:1;
}

.cart-buttons .details-button{
    width:100%;
}

.remove-btn{
    width:12rem;
    padding:1rem 1.8rem;
    border:none;
    border-radius:0.8rem;
    background:#d64545;
    color:white;
    cursor:pointer;
    transition:.2s;
}

.remove-btn:hover{
    background:#b93232;
}

/* پایان سبد */






/* ==========================================================
   RESPONSIVE — 12. عملیات سبد خرید
   ========================================================== */

@media (max-width: 768px) {

  .cart-buttons{
    width:100%;
  }

}

/* ==========================================================
   13. فرم و لیست نظرات
   ========================================================== */

.review-form-section{

    margin:5rem 0;

    padding:2rem;

    background:#fff;

    border-radius:1.5rem;

    box-shadow:0 1rem 3rem rgba(0, 0, 0, 0.05);

}

.hidden-review-form{
    display:none;
}

.review-form-section h2{

    margin-bottom:2rem;

}


.rating-box{

    display:flex;

    align-items:center;

    gap:1rem;

    margin-bottom:1.5rem;

    font-size:1.4rem;

}


#review-rating{

    border:0.1rem solid #ddd;

    border-radius:.8rem;

    padding:.8rem 1rem;

    font-size:1.3rem;

    cursor:pointer;

}


#review-text{

    width:100%;

    min-height:12rem;

    resize:none;

    border:0.1rem solid #ddd;

    border-radius:1rem;

    padding:1.2rem;

    font-size:1.4rem;

    font-family:inherit;

    outline:none;

}


#review-text:focus{

    border-color:#ffbece;

}


#submit-review{

    margin-top:1.5rem;

    background:#ff6b9d;

    color:white;

    border:none;

    border-radius:1rem;

    padding:1rem 2.5rem;

    font-size:1.4rem;

    cursor:pointer;

    transition:.3s;

}


#submit-review:hover{

    transform:translateY(-0.2rem);

    opacity:.9;

}

/* =========================
   Reviews Section
========================= */

.reviews-section{

    margin:4rem 0;

    padding:2rem;

    background:#fff;

    border-radius:1.5rem;

    box-shadow:0 1rem 3rem rgba(0,0,0,.08);

}


.reviews-section h2{

    margin-bottom:2rem;

}


/* کارت هر نظر */

.review-card{

    padding:1.8rem;

    margin-bottom:1.5rem;

    background:#fff6fe;

    border-radius:1.2rem;


}

.no-review {


    border-radius:1rem;

    padding:1rem;

    text-align:right;

    color:#292929;

    font-size:1.4rem;

}

/* بالای کارت */

.review-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:1rem;

}

.review-txt{
    color: black;
    padding: 1rem 0;
    font-size: 1.6rem;
    text-align: right;
}

.review-user{

    font-size:1.7rem;

    font-weight:bold;

    color:#333;

}


.review-rating{

    font-size:1.8rem;

}

.review-date{

    font-size:1.1rem;

}



/* ورینت */

.review-variant{

    display:inline-block;

    background:#fff1f6;

    color:#d63384;

    padding:.5rem 0;

    border-radius:2rem;

    font-size:1.2rem;

    margin-bottom:1rem;

}

.delete-review-btn {

    background:#ff6bbc;

    color:white;

    border:none;

    text-align: right;

    margin-top: 1.5rem;

    padding:.7rem 1.4rem;

    border-radius:.8rem;

    font-size:1rem;

    font-weight:bold;

    cursor:pointer;

    transition:.2s;

}


.delete-review-btn:hover {

    background:#d70015;

    transform:translateY(-0.2rem);

}


/* متن نظر */

.review-text{

    font-size:1.4rem;

    line-height:2;

    color:#555;

    margin:0;

    text-align: right;

}

.reviews-list{

    display:grid;

    grid-template-columns:repeat(4, 1fr);

    gap:1.5rem;

}

/* وقتی نظری نیست */

.reviews-section > p{

    text-align:center;

    color:#777;

    font-size:1.4rem;

}









/* ==========================================================
   RESPONSIVE — 13. فرم و لیست نظرات
   ========================================================== */

@media (max-width: 768px) {

  .reviews-list{
    grid-template-columns:1fr;
  }

}

/* ==========================================================
   14. ثبت‌نام، ورود، پیام‌ها و Toast
   ========================================================== */

/* رجیستر */

.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 3rem 0;
    margin-top:6rem;
}
.register-wrapper h2, p, button{
    text-align: center;
    font-size: 1.3rem;
   }

.register-wrapper p{
    margin-top: 1rem;
}

.register-card {
    max-width:40rem;
    width:100%;
    padding: 1.5rem;
    border-radius: 1.6rem;
    background: #ffffff;
    box-shadow: 0 1rem 3rem rgba(239, 91, 255, 0.18);
    text-align: center;
}

.register-card h2 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size:2.4rem;
font-weight:700;
}

.subtitle {
    font-size: 1.5rem;
    color: #777;
}
.subtitle a{
    color: #d35cb5;
    text-decoration: underline;
}

.name-row{
    display:flex;
    gap:1rem;
}

.name-row input{
    width:50%;
}

.register-card input {
    width: 100%;
    padding: 1.2rem;
    margin: 0.8rem 0;
    border: 0.1rem solid #eb9cd7;
    border-radius: 1rem;
    outline: none;
    transition: 0.2s;
}

.register-card input:focus {
    border-color: #d100d4;
}

.register-card button {
    width: 100%;
    padding: 1.6rem;
    margin-top: 1rem;
    background: #eba7da;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.register-card button:hover{
    transform:translateY(-0.2rem);
    transition:.2s;
}

.register-card button:hover {
    background: #d59dff;
}

.forgot-password{
    margin:0.8rem 0.3rem 1.8rem;

    text-align:right;
}

.forgot-password a{
    color:#d68bcf;

    font-size:1.3rem;

    font-weight:600;

    text-decoration:none;

    transition:.2s;
}

.forgot-password a:hover{
    color:#c55dbc;

    text-decoration:underline;
}

#result {
    margin-top: 1.2rem;
    font-size: 1.3rem;
    color: #333;
    white-space: pre-wrap;
}

.success {
    color: green;
}

.error {
    color: red;
}

.alert {
    width: 90%;
    margin: 1.5rem auto;
    padding: 1.2rem;
    border-radius: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 0.1rem solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 0.1rem solid #f5c6cb;
}

.form-error{

    display:none;

    background:#ffeaea;

    color:#d32f2f;

    border:0.1rem solid #ef9a9a;

    padding:1.4rem;

    border-radius:1rem;

    margin-bottom:1.8rem;

    font-size:1.4rem;

    font-weight:500;

}

.form-help{

    color:#656565;
    font-size:1.3rem;

    margin: 0.5rem;

    line-height:1.8;

    text-align:right;

}

#welcome {
    color: #333;
    margin-bottom: 2rem;
}

#profile-info p {
    font-size: 1.6rem;
    margin: 1rem 0;
}

#register-message{
    display:none;
    width:fit-content;
    margin:1.5rem auto;
    padding:1.4rem 2.8rem;

    background:linear-gradient(135deg,#4CAF50,#66BB6A);

    color:white;
    font-size:1.7rem;
    font-weight:600;

    border-radius:1.2rem;

    box-shadow:
        0 0.8rem 2rem rgba(76,175,80,.25);

    animation:fadeDown .8s ease;
    transition: opacity 0.6s ease;
}

#login-message{
    display:none;
    width:fit-content;
    margin:1.5rem auto;
    padding:1.4rem 2.8rem;

    background:linear-gradient(135deg,#4CAF50,#66BB6A);

    color:white;
    font-size:1.7rem;
    font-weight:600;

    border-radius:1.2rem;

    box-shadow:
        0 0.8rem 2rem rgba(76,175,80,.25);

    animation:fadeDown .8s ease;
    transition: opacity 0.6s ease;
}

#logout-message{
      display:none;
    width:fit-content;
    margin:1.5rem auto;
    padding:1.4rem 2.8rem;

    background: linear-gradient(135deg, #ff9800, #ffb74d);

    color:white;
    font-size:1.7rem;
    font-weight:600;

    border-radius:1.2rem;

    box-shadow:
        0 0.8rem 2rem rgba(177, 117, 43, 0.25);

    animation:fadeDown .4s ease;
    transition: opacity 0.6s ease;

}

#toast{

    position:fixed;

    top: 15rem;;

    left:50%;

    background:#34c759;

    color:white;

    padding:1.4rem 2.2rem;

    border-radius:1rem;

    font-size:1.5rem;

    font-weight:bold;

    opacity:0;

    transform:translateX(-50%) translateY(-2rem);

    transition:.3s;

    z-index:9999;

    pointer-events:none;

    box-shadow:0 1rem 3rem rgba(0,0,0,.2);

}

#toast.show{
    opacity:1;

    transform:translateX(-50%) translateY(0);

}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-1rem);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}




/* ==========================================================
   RESPONSIVE — 14. ثبت‌نام، ورود، پیام‌ها و Toast
   ========================================================== */

@media (max-width: 480px) {

  #toast{
    width:calc(100% - 2rem);
  }

}

/* ==========================================================
   15. پروفایل کاربر
   ========================================================== */

/* media queries  */

/* پروفایل */
.profile-container {
    max-width: 140rem;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;

    visibility: hidden;
}

.profile-container.profile-ready { visibility: visible; }
/* =======================
   SIDEBAR
======================= */

.profile-sidebar{
    width:28rem;
    flex-shrink:0;

    background:#fff;

    border-radius:1.6rem;

    box-shadow:
        0 0.5rem 2rem rgba(0, 0, 0, 0.06);

    overflow:hidden;

    position:sticky;
    top: 14rem;
}

.profile-user{
    padding:3rem 2rem;
    text-align:center;

    border-bottom:0.1rem solid #eee;
}

.profile-avatar {
    width: 9rem;
    height: 9rem;

    margin: 0 auto 1.5rem;

    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 0.1rem solid #6a0063;
}


/* ========================================
   EDIT PROFILE MODAL
======================================== */

.edit-profile-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}


.edit-profile-modal.active {
    opacity: 1;
    visibility: visible;
}


/* خود پنجره */

.edit-profile-modal-content {
    width: 100%;
    max-width: 50rem;

    background: #fff;

    border-radius: 2rem;

    padding: 3rem;

    position: relative;

    box-shadow:
        0 1.5rem 5rem rgba(0, 0, 0, 0.15);

    transform: translateY(1.5rem) scale(0.97);

    transition:
        transform 0.25s ease;
}


.edit-profile-modal.active
.edit-profile-modal-content {

    transform: translateY(0) scale(1);
}


/* دکمه بستن */

.close-edit-profile-modal {
    position: absolute;

    top: 1.5rem;
    left: 1.8rem;

    width: 3.5rem;
    height: 3.5rem;

    border: none;

    background: transparent;

    font-size: 2.8rem;

    line-height: 1;

    cursor: pointer;

    color: #777;

    border-radius: 50%;

    transition: 0.2s;
}


.close-edit-profile-modal:hover {
    background: #f5f5f5;
    color: #333;
}


/* عنوان */

.edit-profile-modal-content h2 {
    margin: 0 0 2.5rem;

    text-align: center;

    font-size: 2.2rem;

    color: #333;
}


/* فرم */

#edit-profile-form {
    display: flex;

    flex-direction: column;

    gap: 1.8rem;
}


#edit-profile-form .form-group {
    display: flex;

    flex-direction: column;

    gap: 0.8rem;
}


#edit-profile-form label {
    font-size: 1.4rem;

    font-weight: 600;

    color: #444;
}


#edit-profile-form input {
    width: 100%;

    box-sizing: border-box;

    padding: 1.2rem 1.4rem;

    border: 0.1rem solid #ddd;

    border-radius: 1rem;

    outline: none;

    font-family: inherit;

    font-size: 1.4rem;

    transition: 0.2s;
}


#edit-profile-form input:focus {
    border-color: #6a0063;

    box-shadow:
        0 0 0 0.3rem rgba(106, 0, 99, 0.08);
}


/* شماره موبایل غیرقابل ویرایش */

#edit-profile-form input:disabled {
    background: #f5f5f5;

    color: #888;

    cursor: not-allowed;
}


/* دکمه ذخیره */

.save-profile-btn {
    width: 100%;

    margin-top: 0.5rem;

    padding: 1.3rem;

    border: none;

    border-radius: 1.1rem;

    background: #6a0063;

    color: white;

    font-family: inherit;

    font-size: 1.5rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.save-profile-btn:hover {
    background: #560052;

    transform: translateY(-0.1rem);
}


.save-profile-btn:active {
    transform: translateY(0);
}




/* دکمه تغییر عکس */

.change-avatar-btn {
    position: absolute;

    right: -0.5rem;
    bottom: -0.5rem;

    width: 3rem;
    height: 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0.2rem solid white;
    border-radius: 0.7rem;

    background: #fffafd;
    color: white;

    font-size: 1.5rem;

    cursor: pointer;

    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);

    transition: 0.2s ease;
}

.change-avatar-btn:hover {
    background: #fff4fb;
}


.avatar-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.45);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 2rem;
    box-sizing: border-box;

    z-index: 999999;
}

.avatar-modal.active {
    display: flex;
}

.avatar-modal-content {
    position: relative;

    width: 100%;
    max-width: 52rem;

    background: white;

    border-radius: 2rem;

    padding: 3rem;

    box-sizing: border-box;

    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);

    z-index: 1000000;
}

.avatar-modal-content h2 {
    margin: 0 0 2.5rem;

    text-align: center;

    font-size: 2.4rem;
}


.close-avatar-modal {
    position: absolute;

    top: 1.5rem;
    right: 1.8rem;

    border: none;

    background: none;

    font-size: 3.2rem;

    line-height: 1;

    cursor: pointer;

    color: #555;
}


.close-avatar-modal:hover {
    color: #ff3dbe;
}

.avatar-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1.8rem;

    margin-bottom: 2.5rem;
}


.avatar-option {
    width: 100%;

    aspect-ratio: 1;

    padding: 0.8rem;

    border: 0.2rem solid transparent;

    border-radius: 1.6rem;

    background: #faf5f9;

    cursor: pointer;

    transition: 0.2s ease;
}


.avatar-option:hover {
    border-color: #ff5cce;

    transform: translateY(-0.2rem);
}


.avatar-option img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 1.2rem;
}

.avatar-upload {
    border-top: 0.1rem solid #eee;

    padding-top: 2rem;

    text-align: center;
}


.avatar-upload-btn {
    width: 100%;

    padding: 1.3rem 1.8rem;

    border: none;

    border-radius: 1rem;

    background: #ff5cce;

    color: white;

    font-size: 1.6rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}


.avatar-upload-btn:hover {
    background: #ff3dbe;
}


.profile-user h3{
    margin-bottom:0.8rem;
    font-size:1.8rem;
    text-align: center;
}

.profile-user p{
    color:#777;
    font-size:1.4rem;
}

.profile-menu{
    padding:1.2rem;
}
/* =========================================
   بخش آدرس‌ها
========================================= */






/* ==========================================================
   RESPONSIVE — 15. پروفایل کاربر
   ========================================================== */

@media (max-width: 768px) {

  .profile-container{
    width:100%;
    padding-left:1rem;
    padding-right:1rem;
  }

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

  .profile-card p{
    width:100%;
  }

  #addresses-container{
    grid-template-columns:1fr;
  }

  .profile-user{
    padding:2rem 1rem;
  }

}

@media (max-width: 480px) {

  .menu-item{
    padding:1.2rem;
  }

}

/* ==========================================================
   16. مدیریت آدرس‌ها
   ========================================================== */

/* هدر بخش آدرس */
/* ==========================================================
   هدر بخش آدرس
   ========================================================== */

.address-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}


/* ==========================================================
   دکمه افزودن آدرس
   ========================================================== */

#add-address-btn {
    background: #ff5cce;
    color: white;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: 0.2s ease;
}

#add-address-btn:hover {
    background: #ff3dbe;
    transform: translateY(-0.2rem);
}


/* ==========================================================
   بازگشت به Checkout
   ========================================================== */

.return-checkout-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 0.8rem;
    background: #a078ff;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.return-checkout-btn:hover {
    background: #8e61f9;
    transform: translateY(-0.2rem);
}


/* وقتی از Checkout آمده */
.return-checkout-btn.show {
    display: inline-flex;
}

/* =========================================
   کانتینر کارت‌ها
========================================= */

#addresses-container {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(35rem, 1fr));

    gap: 1.7rem;

}

/* =========================================================
   CUSTOM SELECT
========================================================= */

.custom-select {

    position: relative;

    width: 100%;

    font-size: 1.5rem;

}


/* =========================================================
   BUTTON
========================================================= */

.custom-select-trigger {

    width: 100%;

    height: 4.5rem;

    padding: 0 1.4rem;

    border: 0.15rem solid #eee;

    border-radius: 1rem;

    background: #fff;

    color: var(--black);

    font-family: inherit;

    font-size: 1.5rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


/* =========================================================
   HOVER
========================================================= */

.custom-select-trigger:hover {

    border-color: #ffb0cc;

}


/* =========================================================
   OPEN
========================================================= */

.custom-select.open
.custom-select-trigger {

    border-color: 1px solid #ff9fc4;

}


/* =========================================================
   TEXT
========================================================= */

.custom-select-text {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* =========================================================
   ARROW
========================================================= */

.custom-select-arrow {

    font-size: 1.7rem;

    transition:
        transform 0.2s ease;

}


/* Arrow rotates */

.custom-select.open
.custom-select-arrow {

    transform: rotate(180deg);

}


/* =========================================================
   OPTIONS CONTAINER
========================================================= */

.custom-select-options {

    position: absolute;

    top: calc(100% + 0.6rem);

    right: 0;

    left: 0;

    z-index: 1000;

    background: #fff;

    border: 0.15rem solid #f1dce4;

    border-radius: 1rem;

    padding: 0.6rem;

    box-shadow:
        0 0.8rem 2.5rem
        rgba(0, 0, 0, 0.12);

    max-height: 18rem;

    overflow-y: auto;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-0.5rem);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease,
        transform 0.15s ease;

}


/* =========================================================
   OPEN OPTIONS
========================================================= */

.custom-select.open
.custom-select-options {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* =========================================================
   OPTION
========================================================= */

.custom-select-option {

    min-height: 4rem;

    padding: 0.8rem 1.2rem;

    border-radius: 0.8rem;

    display: flex;

    align-items: center;

    cursor: pointer;

    color: var(--black);

    background: transparent;

    transition:
        background 0.15s ease,
        color 0.15s ease;

}


/* =========================================================
   HOVER OPTION
========================================================= */

.custom-select-option:hover {

    background: #fff0f5;

    color: #ff5f9e;

}


/* =========================================================
   SELECTED
========================================================= */

.custom-select-option.selected {

    background: #ffe1eb;

    color: #ff4f94;

    font-weight: 600;

}


/* =========================================================
   DISABLED
========================================================= */

.custom-select.disabled
.custom-select-trigger {

    background: #f7f7f7;

    color: #aaa;

    border-color: #eee;

    cursor: not-allowed;

}


/* =========================================================
   SCROLLBAR
========================================================= */

.custom-select-options::-webkit-scrollbar {

    width: 0.6rem;

}


.custom-select-options::-webkit-scrollbar-track {

    background: #fff5f8;

    border-radius: 1rem;

}


.custom-select-options::-webkit-scrollbar-thumb {

    background: #ffb1cb;

    border-radius: 1rem;

}


.custom-select-options::-webkit-scrollbar-thumb:hover {

    background: #ff8fb4;

}



/* ========================================
   Province / City Select
======================================== */

#province,
#city {
    width: 100%;
    height: 4.5rem;

    padding: 0 1.4rem;

    border: 0.15rem solid #eee;
    border-radius: 1rem;

    background: #fff;
    color: var(--black);

    font-size: 1.5rem;
    font-family: inherit;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* ========================================
   Focus
======================================== */

#province:focus,
#city:focus {

    border-color: #ff9fc4;

    box-shadow:
        0 0 0 0.3rem rgba(255, 159, 196, 0.15);
}


/* ========================================
   Disabled
======================================== */

#city:disabled {

    background: #f7f7f7;

    color: #aaa;

    cursor: not-allowed;

    border-color: #eee;
}


/* ========================================
   Options
======================================== */

#province option,
#city option {

    font-family: inherit;

    font-size: 1.4rem;

    color: var(--black);

    background: #fff;

    padding: 0.8rem 1rem;
}


/* ----------------------------------------
   فرم استان / شهر
---------------------------------------- */

.form-row {

    display: flex;

    gap: 1.2rem;

    width: 100%;
}


.form-row .form-group {

    flex: 1;
}


/* ----------------------------------------
   Label
---------------------------------------- */

.form-row .form-group label {

    display: block;

    margin-bottom: 0.7rem;

    font-size: 1.4rem;

    color: #555;

}

/* ==========================================================
   RETURN ORDER
   ========================================================== */

.return-order-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.45);

    z-index: 9999;

    padding: 2rem;
}

.return-order-modal.active {
    display: flex;
}

.return-order-modal-content {
    width: min(68rem, 95vw);
    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 2rem;

    padding: 2.5rem;

    position: relative;

    direction: rtl;

    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.close-return-order-modal {
    position: absolute;

    top: 1.2rem;
    left: 1.5rem;

    width: 4rem;
    height: 4rem;

    border: none;

    border-radius: 50%;

    background: #f7f7f7;

    font-size: 2.5rem;

    cursor: pointer;

    transition: 0.2s;
}

.close-return-order-modal:hover {
    background: #ffe1eb;
    color: #e91e63;
}

.return-modal-title {
    font-size: 2.2rem;
    font-weight: 800;

    margin-bottom: 0.8rem;
}

.return-modal-description {
    color: #777;

    font-size: 1.4rem;

    margin-bottom: 2rem;
}

.return-deadline-box {
    background: #fff5f8;

    border: 0.1rem solid #ffd2df;

    border-radius: 1.2rem;

    padding: 1.2rem 1.5rem;

    margin-bottom: 2rem;

    color: #c2185b;

    font-size: 1.4rem;
}

.return-items-list {
    display: flex;

    flex-direction: column;

    gap: 1rem;

    margin-bottom: 2rem;
}

.return-item-row {
    border: 0.1rem solid #eee;

    border-radius: 1.4rem;

    padding: 1.3rem;

    display: flex;

    align-items: center;

    gap: 1.2rem;

    transition: 0.2s;
}

.return-item-row.selected {
    border-color: #ff9fc4;

    background: #fff8fb;
}

.return-item-checkbox {
    width: 2rem;
    height: 2rem;

    accent-color: #ff78ad;

    flex-shrink: 0;
}

.return-item-info {
    flex: 1;

    min-width: 0;
}

.return-item-name {
    font-weight: 700;

    font-size: 1.5rem;

    margin-bottom: 0.3rem;
}

.return-item-variant {
    color: #888;

    font-size: 1.25rem;
}

.return-item-price {
    margin-top: 0.5rem;

    font-size: 1.25rem;

    color: #555;
}

.return-item-quantity {
    width: 8rem;

    height: 4rem;

    border: 0.1rem solid #ddd;

    border-radius: 0.8rem;

    text-align: center;

    font-family: inherit;

    font-size: 1.4rem;
}

.return-form-group {
    margin-bottom: 1.5rem;
}

.return-form-group label {
    display: block;

    margin-bottom: 0.7rem;

    font-size: 1.4rem;

    font-weight: 700;
}

.return-form-group textarea {
    width: 100%;

    min-height: 12rem;

    resize: vertical;

    border: 0.1rem solid #ddd;

    border-radius: 1rem;

    padding: 1.2rem;

    font-family: inherit;

    font-size: 1.4rem;

    outline: none;
}

.return-form-group textarea:focus {
    border-color: #ff9fc4;

    box-shadow:
        0 0 0 0.3rem rgba(255, 159, 196, 0.12);
}

.return-error {
    display: none;

    background: #ffe9e9;

    color: #c62828;

    border: 0.1rem solid #ffcaca;

    border-radius: 1rem;

    padding: 1rem 1.2rem;

    margin-bottom: 1.5rem;

    font-size: 1.35rem;
}

.return-error.active {
    display: block;
}

.submit-return-btn {
    width: 100%;

    height: 4.8rem;

    border: none;

    border-radius: 1.2rem;

    background: linear-gradient(
        135deg,
        #ff7eb3,
        #ff5f98
    );

    color: #fff;

    font-family: inherit;

    font-size: 1.5rem;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.submit-return-btn:hover {
    transform: translateY(-0.1rem);
}

.submit-return-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.return-order-btn,
.return-details-btn {
    border: none;

    border-radius: 0.9rem;

    padding: 0.9rem 1.4rem;

    font-family: inherit;

    font-size: 1.3rem;

    cursor: pointer;

    transition: 0.2s;
}

.return-order-btn {
    background: #fff0f5;

    color: #d81b60;
}

.return-order-btn:hover {
    background: #ffe2ec;
}

.return-details-btn {
    background: #f3f4f6;

    color: #444;
}

.return-details-btn:hover {
    background: #e8e9eb;
}


/* ==========================================================
   RETURN DETAILS
   ========================================================== */

.return-details-box {
    display: flex;

    flex-direction: column;

    gap: 1.2rem;
}

.return-status-badge {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding: 0.7rem 1.2rem;

    border-radius: 99.9rem;

    background: #fff0f5;

    color: #d81b60;

    font-size: 1.3rem;

    font-weight: 700;
}

.return-details-section {
    border: 0.1rem solid #eee;

    border-radius: 1.2rem;

    padding: 1.3rem;
}

.return-details-section h4 {
    margin-bottom: 0.8rem;

    font-size: 1.4rem;
}

.return-details-section p {
    margin: 0;

    color: #555;

    line-height: 1.9;

    font-size: 1.35rem;
}

.return-refund-card {
    background: #f8fafc;

    border-radius: 1.2rem;

    padding: 1.3rem;
}

.return-refund-row {
    display: flex;

    justify-content: space-between;

    gap: 1rem;

    padding: 0.5rem 0;

    font-size: 1.35rem;
}

.original-price,
.sale-price {
    display: block;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.55;
}

.sale-price {
    font-weight: bold;
}

.detail-price{
    text-align: center;
}
/* =========================================
   کارت آدرس
========================================= */

.address-card {

    background: #ffffff;

    border: 0.1rem solid #f0e2ee;

    border-radius: 1.2rem;

    padding: 1.8rem;

    box-shadow:
        0 0.5rem 1.5rem rgba(225, 110, 205, 0.10);

    display: flex;

    flex-direction: column;

    gap: 1.3rem;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.address-card:hover {

    transform: translateY(-0.3rem);

    box-shadow:
        0 0.8rem 2rem rgba(225, 110, 205, 0.15);

}


/* =========================================
   هدر کارت
========================================= */

.address-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    padding-bottom: 1.1rem;

    border-bottom: 0.1rem solid #f1e7ef;

}


/* عنوان آدرس */

.address-card h3 {

    margin: 0;

    color: #292329;

    font-size: 1.8rem;

    font-weight: 700;

}


/* =========================================
   اطلاعات آدرس
========================================= */

.address-info {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}


.address-info p {
    margin: 0;

    display: flex;

    align-items: flex-start;

    gap: 0.5rem;

    color: #333;

    font-size: 1.4rem;

    line-height: 1.8;

    /* جلوگیری از بیرون زدن متن */
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* عنوان هر اطلاعات */

.address-info p span {

    display: inline;

    color: #777;

    font-size: 1.5rem;

    font-weight: 600;

    white-space: nowrap;

}


/* =========================================
   وضعیت پیش فرض
========================================= */

.default-badge {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fae5f5;

    color: #e34bb5;

    border: 0.1rem solid #f5cde9;

    padding: 0.7rem 1rem;

    min-height: 2.8rem;

    box-sizing: border-box;

    border-radius: 0.75rem;

    font-size: 1.05rem;

    font-weight: 600;

    white-space: nowrap;

}


/* =========================================
   دکمه انتخاب پیش فرض
========================================= */

.default-address-btn {

    width: 100%;

    min-height: 2.8rem;

    border: 0.1rem solid #f3c5e8;

    background: #fff7fd;

    color: #df51b6;

    padding: 0.7rem 1rem;

    border-radius: 0.75rem;

    cursor: pointer;

    font-size: 1.05rem;

    font-weight: 600;

    transition: 0.2s ease;

}


.default-address-btn:hover {

    background: #ffe5f8;

    border-color: #f0a9dc;

}


/* =========================================
   قسمت دکمه های پایین
========================================= */

.address-actions {

    display: flex;

    gap: 0.8rem;

    padding-top: 1rem;

    border-top: 0.1rem solid #f1e7ef;

}


/* دکمه های پایین */

.address-actions button {

    flex: 1;

    border: none;

    padding: 0.85rem 1rem;

    border-radius: 0.75rem;

    cursor: pointer;

    font-size: 1.1rem;

    font-weight: 600;

    transition: 0.2s ease;

}


/* =========================================
   دکمه ویرایش
========================================= */

.edit-address-btn {

    background: #f8f1f7;

    color: #4b4249;

}


.edit-address-btn:hover {

    background: #eee2eb;

}


/* =========================================
   دکمه حذف
========================================= */

.delete-address-btn {

    background: #fff1fd;

    color: #d553d9;

}


.delete-address-btn:hover {

    background: #ffe0e0;

}

.empty-address-text{
    font-size: 1.6rem;
    text-align: right;
}

.address-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 1000;

    padding: 1.5rem;
}


.address-modal.active {
    display: flex;
}


.address-modal-content {
    position: relative;

    width: 100%;
    max-width: 54rem;

    background: white;

    border-radius: 1.8rem;

    padding: 2.2rem 2.5rem;

    box-sizing: border-box;
}


/* دکمه بستن */

.close-address-modal {
    position: absolute;

    top: 1.5rem;
    left: 1.8rem;

    width: 3.2rem;
    height: 3.2rem;

    border: none;
    background: transparent;

    font-size: 2.8rem;

    cursor: pointer;

    line-height: 1;

    color: #666;

    border-radius: 50%;

    transition: 0.2s;
}


.close-address-modal:hover {
    background: #f5f5f5;
    color: #333;
}


/* عنوان */

.address-modal-content h2 {
    margin: 0 0 1.8rem;

    font-size: 2.1rem;

    text-align: center;
}


/* گروه‌های فرم */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    margin-bottom: 1.2rem;
}


.form-group label {
    font-size: 1.3rem;

    font-weight: 600;

    color: #444;
}


/* Input و textarea */

.form-group input,
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 0.9rem 1.2rem;

    border: 0.1rem solid #ddd;

    border-radius: 0.9rem;

    font-family: inherit;

    font-size: 1.3rem;

    outline: none;

    transition: 0.2s;
}


.form-group input {
    height: 3.9rem;
}


.form-group textarea {
    height: 6.5rem;

    resize: none;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: #6a0063;

    box-shadow:
        0 0 0 0.3rem rgba(106, 0, 99, 0.07);
}


/* استان و شهر */

.form-row {
    display: flex;

    gap: 1.2rem;
}


.form-row .form-group {
    flex: 1;
}


/* گزینه آدرس پیش‌فرض */

.default-address-option {
    display: flex;

    align-items: center;

    gap: 0.8rem;

    margin: 0.3rem 0 1.5rem;

    font-size: 1.3rem;

    cursor: pointer;
}


.default-address-option input {
    width: 1.6rem;
    height: 1.6rem;

    cursor: pointer;
}


/* دکمه ذخیره */

.save-address-btn {
    width: 100%;

    padding: 1.1rem;

    border: none;

    border-radius: 1.1rem;

    background: #6a0063;

    color: white;

    font-family: inherit;

    font-size: 1.4rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.save-address-btn:hover {
    background: #560052;

    transform: translateY(-0.1rem);
}


.save-address-btn:active {
    transform: translateY(0);
}






/* ==========================================================
   RESPONSIVE — 16. مدیریت آدرس‌ها
   ========================================================== */

@media (max-width: 768px) {

  .address-header{
    flex-wrap:wrap;
    gap:1rem;
  }

  #add-address-btn,
  .return-checkout-btn{
    flex:1 1 16rem;
  }

  .address-card{
    padding:1.5rem;
  }

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

  .address-actions button{
    width:100%;
  }

  .form-row{
    flex-direction:column;
    gap:0;
  }

}

@media (max-width: 480px) {

  .address-modal-content{
    max-height:92vh;
    overflow-y:auto;
  }

}

/* ==========================================================
   17. تغییر رمز عبور
   ========================================================== */

/* ========================================
   CHANGE PASSWORD MODAL
======================================== */

.change-password-modal {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 1.5rem;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}


.change-password-modal.active {

    opacity: 1;

    visibility: visible;
}


/* Modal Content */

.change-password-modal-content {

    position: relative;

    width: 100%;

    max-width: 50rem;

    background: #fff;

    border-radius: 2rem;

    padding: 2.8rem;

    box-sizing: border-box;

    box-shadow:
        0 1.5rem 5rem rgba(0, 0, 0, 0.15);

    transform:
        translateY(1.5rem)
        scale(0.97);

    transition:
        transform 0.25s ease;
}


.change-password-modal.active
.change-password-modal-content {

    transform:
        translateY(0)
        scale(1);
}


/* Close Button */

.close-change-password-modal {

    position: absolute;

    top: 1.3rem;
    left: 1.7rem;

    width: 3.5rem;
    height: 3.5rem;

    border: none;

    background: transparent;

    font-size: 2.8rem;

    line-height: 1;

    color: #777;

    cursor: pointer;

    border-radius: 50%;

    transition: 0.2s;
}


.close-change-password-modal:hover {

    background: #f5f5f5;

    color: #333;
}


/* Title */

.change-password-modal-content h2 {

    margin: 0 0 2.5rem;

    text-align: center;

    font-size: 2.2rem;

    color: #333;
}


/* Form */

#change-password-form {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;
}


/* Form Group */

.password-form-group {

    display: flex;

    flex-direction: column;

    gap: 0.7rem;
}


.password-form-group label {

    font-size: 1.4rem;

    font-weight: 600;

    color: #444;
}


.password-form-group input {

    width: 100%;

    height: 4.2rem;

    box-sizing: border-box;

    padding: 1rem 1.3rem;

    border: 0.1rem solid #ddd;

    border-radius: 1rem;

    outline: none;

    font-family: inherit;

    font-size: 1.4rem;

    transition: 0.2s;
}


.password-form-group input:focus {

    border-color: #6a0063;

    box-shadow:
        0 0 0 0.3rem rgba(106, 0, 99, 0.08);
}


/* Password Rules */

.password-help-text {

    margin: -0.3rem 0 0.3rem;

    font-size: 1.2rem;

    line-height: 1.8;

    color: #777;

    background: #fafafa;

    padding: 0.8rem 1rem;

    border-radius: 0.8rem;
}


/* Submit */

.change-password-submit-btn {

    width: 100%;

    padding: 1.2rem;

    border: none;

    border-radius: 1.1rem;

    background: #6a0063;

    color: #fff;

    font-family: inherit;

    font-size: 1.4rem;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.change-password-submit-btn:hover {

    background: #560052;

    transform: translateY(-0.1rem);
}


.change-password-submit-btn:active {

    transform: translateY(0);
}


.password-error {
    display: none;

    width: 100%;
    box-sizing: border-box;

    padding: 1.1rem 1.4rem;

    margin-bottom: 1.5rem;

    background: #fff0f0;

    border: 0.1rem solid #e3a0a0;

    border-radius: 1rem;

    color: #c62828;

    font-size: 1.3rem;

    line-height: 1.7;

    text-align: right;
}

.password-error.active {
    display: block;
}


.forgot-password-wrapper {
    margin-top: -0.2rem;
    text-align: right;
}

.forgot-password-btn {

    border: none;
    background: none;

    padding: 0;

    color: #6a0063;

    font-family: inherit;
    font-size: 1.4rem;

    cursor: pointer;

    transition: 0.2s;
}

.forgot-password-btn:hover {
    text-decoration: underline;
}






/* ==========================================================
   RESPONSIVE — 17. تغییر رمز عبور
   ========================================================== */

@media (max-width: 768px) {

  .change-password-modal-content{
    width:100%;
    max-width:100%;
    padding:2rem 1.5rem;
  }

}

/* ==========================================================
   18. کارت آدرس پیش‌فرض
   ========================================================== */



/* ========================================
   DEFAULT ADDRESS CARD
======================================== */

.profile-default-address-card {

    width: 100%;

    margin-top: 2rem;

    padding: 1.6rem 2rem;

    box-sizing: border-box;

    background: #fff;

    border: 0.1rem solid #eee;

    border-radius: 1.6rem;

    box-shadow:
        0 0.5rem 1.6rem rgba(0, 0, 0, 0.05);
}


/* ========================================
   HEADER
======================================== */

.default-address-card-header {

    display: flex;

    align-items: center;

    gap: 1.2rem;

    padding-bottom: 1.2rem;

    border-bottom: 0.1rem solid #f0f0f0;
}


/* آیکون */

.default-address-icon {

    width: 3.8rem;
    height: 3.8rem;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff1fb;

    border-radius: 1rem;

    font-size: 1.8rem;
}


/* عنوان */

.default-address-heading {

    flex: 1;
}


.default-address-heading h3 {

    margin: 0 0 0.2rem;

    font-size: 1.5rem;

    color: #333;
}


.default-address-heading span {

    font-size: 1.1rem;

    color: #999;
}


/* برچسب پیش فرض */

.default-address-badge {

    padding: 0.5rem 0.9rem;

    border-radius: 1.8rem;

    background: #fff1fb;

    color: #8a197f;

    font-size: 1.1rem;

    font-weight: 600;

    white-space: nowrap;
}


/* ========================================
   BODY
======================================== */

.default-address-card-body {

    padding-top: 1.2rem;

    color: #555;
}


/* عنوان آدرس مثل «خانه» */

.default-address-card-body .address-title {

    margin-bottom: 1rem;

    color: #333;

    font-size: 1.4rem;

    font-weight: 700;
}


/* ========================================
   DETAILS
======================================== */

.address-details {

    width: 100%;

    display: flex;

    align-items: stretch;
}


/* هر قسمت */

.address-detail-item {

    flex: 1;

    min-width: 0;

    padding: 0 1.6rem;

    border-left: 0.1rem solid #eee;
}


/* اولین قسمت */

.address-detail-item:first-child {

    padding-right: 0;
}


/* آخرین قسمت */

.address-detail-item:last-child {

    border-left: none;

    padding-left: 0;
}


/* عنوان «شهر»، «آدرس»، «کد پستی» */

.address-detail-label {

    display: block;

    margin-bottom: 0.3rem;

    color: #999;

    font-size: 1.1rem;

    font-weight: 600;
}


/* مقدار */

.address-detail-value {

    display: block;

    color: #444;

    font-size: 1.3rem;

    line-height: 1.6;

    word-break: break-word;
}


/* ========================================
   NO DEFAULT ADDRESS
======================================== */

.no-default-address {

    padding: 0.3rem 0;

    color: #999;

    font-size: 1.3rem;
}

/* =========================================  */






/* ==========================================================
   RESPONSIVE — 18. کارت آدرس پیش‌فرض
   ========================================================== */

@media (max-width: 768px) {

  .profile-default-address-card{
    padding:1.3rem;
  }

  .default-address-card-header{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:.8rem;
  }

  .default-address-badge{
    margin-right:0;
    margin-left:auto;
  }

}

/* ==========================================================
   19. منوی پروفایل و صفحات داخلی
   ========================================================== */

.menu-item{
    width:100%;

    display:flex;
    align-items:center;
    gap:1.2rem;

    border:none;
    background:none;

    padding:1.4rem 1.6rem;

    border-radius:1.2rem;

    cursor:pointer;

    font-size:1.5rem;

    transition:.25s;
}

.menu-item:hover{
    background:#f9f5fa;
}

.menu-item.active{
    background:#fdf0fc;

    color:#f58bfb;


    position:relative;
}

.menu-item.active::before{
    content:"";

    position:absolute;

    right:0;
    top:0.8rem;
    bottom:0.8rem;

    width:0.4rem;

    border-radius:5rem;

    background:#c936d3;
}

.logout-btn{
    color:#d32f2f;
}

/* =======================
   CONTENT
======================= */

.profile-content{
    flex:1;
}

.profile-content .page {
    display: none;
}

.profile-content .page.active-page {
    display: block;
}

.page h2 {
    margin-bottom: 2rem;
    font-size: 2.8rem;
    text-align: center;
    font-weight: bold;
}

.default-address-edit-btn {

    border: none;

    background: #fff1fb;

    color: #8a197f;

    padding: 0.7rem 1.3rem;

    border-radius: 0.9rem;

    font-family: inherit;

    font-size: 1.2rem;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.2s ease;
}


.default-address-edit-btn:hover {

    background: #f9dff4;

    transform: translateY(-0.1rem);
}

.profile-card-action {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    direction: ltr;
}


.profile-default-address-edit-btn {
    border: none;

    flex: 0 0 10%;
    width: fit-content;

    background: #fff1fb;
    color: #8a197f;

    padding: 0.7rem 1.3rem;

    border-radius: 0.9rem;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: 0.2s ease;
}


.profile-default-address-edit-btn:hover {

    background: #f9dff4;

    transform: translateY(-0.1rem);

}
/* =======================
   CARDS
======================= */
.profile-card{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 0.1rem 1.5rem rgba(255, 198, 253, 0.412);
    padding: 1.5rem;
    border-radius: 1rem;
}


.profile-card p{
    width: calc(50% - 0.8rem);

    display: flex;
    align-items: center;
    gap: 0.6rem;

    padding: 1.4rem;

    border: 0.1rem solid #f5dbfc;
    border-radius: 1rem;
    font-size: 1.4rem;
    margin: 0;
}

/* =======================
   FORM
======================= */

.card label{
    display:block;
    margin-bottom:1.6rem;
}

.card input{
    width:100%;

    margin-top:0.8rem;

    padding:1.2rem 1.5rem;

    border:0.1rem solid #ddd;

    border-radius:1rem;

    font-size:1.5rem;
}

.card input:focus{
    outline:none;
    border-color:#e6123d;
}

.card button{
    border:none;

    background:#e6123d;
    color:#fff;

    padding:1.2rem 2rem;

    border-radius:1rem;

    cursor:pointer;

    font-size:1.5rem;

    transition:.25s;
}

.card button:hover{
    transform:translateY(-0.2rem);
}





/* ==========================================================
   RESPONSIVE — 19. منوی پروفایل و صفحات داخلی
   ========================================================== */

@media (max-width: 768px) {

  .profile-container{
    max-width:100%;
  }

}

/* ==========================================================
   20. درباره ما
   ========================================================== */

.about-container{

    max-width: 110rem;;

    margin:0 auto;

    padding:2rem;
    
    border-radius: 3rem;

    background-color: rgb(255, 250, 255);

}
.about-image {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-image img {
    width: 30rem;
    height: 30rem;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0.1rem 0.1rem 1rem rgb(251, 162, 248);
}

.about-header{

    text-align:center;

    margin-bottom:4.5rem;

}

.about-header h1{

    color:#be48cb;

    font-size: 3rem;

    text-align: center;

    margin-bottom:1rem;

}


.about-card{

    background:#fff;

    border-radius:1.8rem;

    padding:2.8rem;

    margin-bottom:3.5rem;

    box-shadow:0 0.3rem 1rem rgba(190, 66, 201, 0.3);

}

.about-card h2{

    font-size: 2rem;
    
    color:#ff6ea9;


}

.about-card p{

    font-size: 1.3rem;

    color:#555;

    line-height:2.2;

    text-align:justify;

}

.features{

    display:flex;

    gap:2.5rem;

    justify-content:center;

    flex-wrap:wrap;

    margin-bottom:3.5rem;

}

.feature-box{

    width:30rem;

    background:white;

    border-radius:1.8rem;

    padding:2.5rem;

    text-align:center;

    box-shadow:0 0.5rem 1rem rgba(190, 66, 201, 0.3);

    transition:.25s;

}

.feature-box:hover{

    transform:translateY(-0.6rem);

}

.feature-box span{

    font-size:3rem;

}

.feature-box h3{
    text-align: center;
    margin:1.5rem 0;
    font-size:2rem;

    color:#ff6ea9;

}

.feature-box p{
    font-size:1.3rem;
    color:#666;

    line-height:1.8;

}





/* ==========================================================
   RESPONSIVE — 20. درباره ما
   ========================================================== */

@media (max-width: 768px) {

  .about-image img{
    width:min(22rem, 55vw);
    height:auto;
    aspect-ratio:1 / 1;
  }

  .about-card{
    padding:1.8rem;
  }

  .features{
    flex-direction:column;
    align-items:stretch;
  }

  .feature-box{
    width:100%;
  }

}

/* ==========================================================
   21. استایل‌های تکمیلی پروفایل
   ========================================================== */






/* ==========================================================
   RESPONSIVE — 21. استایل‌های تکمیلی پروفایل
   ========================================================== */

@media (max-width: 768px) {

  .edit-profile-modal-content,
  .address-modal-content,
  .change-password-modal-content,
  .return-order-modal-content,
  .cancel-order-modal-content,
  .order-details-modal-content{
    width:100%;
    max-width:100%;
    padding:2rem 1.5rem;
  }

}

/* ==========================================================
   23. RESPONSIVE SYSTEM - FINAL
   ========================================================== */


/* ==========================================================
   TABLET / LAPTOP
   120rem
   ========================================================== */



/* ==========================================================
   23. تنظیمات نهایی ریسپانسیو
   ========================================================== */

/*
   عمده مقیاس‌پذیری با rem / clamp / min / max انجام شده است.
   Media Query فقط جایی استفاده شده که چیدمان واقعاً باید تغییر کند:
   منوی موبایل، شکستن ستون‌ها و تبدیل Grid/Flex به ساختار عمودی.
*/

@media (max-width: 480px) {

  html{
    overflow-x:hidden;
  }

  img,
  video,
  iframe{
    max-width:100%;
  }

}


/* ==========================================================
   FINAL MOBILE FIXES — فقط موبایل
   دسکتاپ بدون تغییر
   ========================================================== */

@media (max-width: 768px) {

    /* جلوگیری کامل از اسکرول افقی */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* ======================================================
       1. منوی همبرگری: باریک‌تر و گزینه‌ها کوچک‌تر
       ====================================================== */

    :root {
        --mobile-menu-width: min(28rem, 72vw);
    }

    header .navbar {
        padding: 6rem 1.1rem 1.5rem;
    }

    header .navbar a {
        margin: 0 0 .7rem;
        padding: 1rem 1.1rem;
        border-radius: .8rem;
        font-size: 1.4rem;
    }

    /* ======================================================
       2. Badge موبایل کوچک‌تر
       ====================================================== */

    #cart-badge,
    #wishlist-badge {
        min-width: 1.6rem;
        width: 1.6rem;
        height: 1.6rem;
        padding: 0;
        font-size: .9rem;
        line-height: 1;
        top: -.55rem;
        left: -.65rem;
    }

    /* ======================================================
       3 + 6. همه کارت‌های محصول در موبایل دو ستونه
       حتی زیر 480px
       ====================================================== */

    .carousel {
        width: 100%;
        max-width: 100%;
        gap: 1rem;
        overflow: hidden;
    }

    .carousel-item {
        flex-basis: calc(50% - .5rem) !important;
        min-width: 0;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .item-content {
        min-width: 0;
        padding: 1rem;
    }

    .item-content h3,
    .description,
    .price {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .item-content h3 {
        font-size: 1.45rem;
    }

    .description {
        font-size: 1.15rem;
        line-height: 1.6;
    }

    .price {
        font-size: 1.3rem;
    }

    .card-buttons {
        width: 100%;
        gap: .5rem;
        flex-wrap: nowrap;
    }

    .card-buttons a {
        min-width: 0;
        flex: 1;
    }

    .details-button {
        min-width: 0;
        padding: .85rem .5rem;
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .like-button {
        flex: 0 0 4.2rem;
        width: 4.2rem;
        min-width: 4.2rem;
        height: 3.6rem;
    }

    .like-button img {
        width: 1.8rem;
        height: 1.8rem;
    }

    /* ======================================================
       4. عکس جزئیات محصول کوتاه‌تر
       ====================================================== */

    .product-main-image {
        height: 32rem;
        aspect-ratio: auto;
        object-fit: cover;
    }

    /* ======================================================
       5. دکمه افزودن به سبد + لایک در جزئیات محصول
       ====================================================== */

    /* ======================================================
       7. Checkout: استپر کامل داخل صفحه + کارت‌ها دو ستونه
       ====================================================== */

    #checkout-stepper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .checkout-stepper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        justify-content: stretch;
        padding: 0;
    }

    .step-wrapper {
        min-width: 0;
        flex: 1 1 0;
    }

    .checkout-step {
        min-width: 0;
        width: 100%;
    }

    .step-circle {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    .step-title {
        margin-top: .55rem;
        font-size: .95rem;
        white-space: nowrap;
    }

    .step-line {
        min-width: 0;
        width: 100%;
        margin-top: 1.5rem;
    }

    .checkout-items {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .checkout-items .cart-item {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .checkout-items .cart-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* ======================================================
       8. سبد خرید: دو ستونه + حذف کنار مشاهده محصول
       ====================================================== */

    #cart-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .cart-item {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .cart-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .cart-buttons {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        gap: .6rem;
        align-items: stretch;
    }

    .cart-buttons a {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-buttons .details-button {
        width: 100%;
        padding: .8rem .5rem;
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .cart-buttons .remove-btn {
        width: 7.2rem;
        min-width: 7.2rem;
        flex: 0 0 7.2rem;
        padding: .8rem .5rem;
        font-size: 1.05rem;
        white-space: nowrap;
    }

    /* ======================================================
       9. پروفایل: منو بالا، محتوا پایین؛ بدون کنار هم بودن
       ====================================================== */

    .profile-container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        overflow: visible;
    }

    .profile-sidebar {
        width: 100%;
        max-width: 100%;
        position: static;
    }

    .profile-menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: .4rem;
    }

    .menu-item {
        width: 100%;
        min-width: 0;
        padding: 1rem 1.2rem;
        font-size: 1.3rem;
    }

    .profile-content {
        width: 100%;
        min-width: 0;
    }

    .profile-content .page {
        width: 100%;
        max-width: 100%;
    }

    /* اطلاعات پروفایل: چهار کادر در موبایل دو ستونه */
    /* ==========================================================
   اطلاعات پروفایل — دو ستونه در موبایل
   ========================================================== */

    .profile-card {
        width: 100%;
        min-width: 0;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 1rem;
        box-sizing: border-box;
    }

    .profile-card p {
        width: 100%;
        min-width: 0;
        font-size: 1.3rem;
        margin: 0;
        padding: 1rem;

        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    /* آدرس‌ها دو ستونه بمانند */
    #addresses-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

}

/* ==========================================================
   موبایل خیلی باریک: همچنان دو ستونه، ولی با فشرده‌سازی بیشتر
   ========================================================== */

@media (max-width: 480px) {

    header .navbar {
        padding: 6rem 1.3rem 1.2rem;
        margin-top: 1rem;
        
    }

    header .navbar a {
        margin: 1rem 0;
        padding: .85rem 1rem;
        font-size: 1.3rem;
        line-height: 3rem;
    }

    .carousel {
        gap: .8rem;
    }

    .carousel-item {
        flex-basis: calc(50% - .4rem) !important;
    }

    .item-content {
        padding: .85rem;
    }

    .item-content h3 {
        font-size: 1.6rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .details-button {
        font-size: 1.2rem;
        padding: .75rem .35rem;
    }

    .like-button {
        flex-basis: 3.8rem;
        width: 3.8rem;
        min-width: 3.8rem;
        height: 3.4rem;
    }

    .product-main-image {
        height: 26rem;
    }


    .checkout-section {
        min-width: 0;
    }

    .checkout-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    #cart-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .cart-buttons {
        gap: .45rem;
    }

    .cart-buttons .details-button {
        font-size: .95rem;
    }

    .cart-buttons .remove-btn {
        width: 6.4rem;
        min-width: 6.4rem;
        flex-basis: 6.4rem;
        font-size: .9rem;
        padding-inline: .3rem;
    }

    
    .profile-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}


.profile-card-action {
    grid-column: 1 / -1;

    width: 100%;

    display: flex;

    justify-content: flex-start;
    align-items: flex-start;

    margin-bottom: 1rem;

    direction: ltr;
}


.profile-default-address-edit-btn {
    border: none;

    display: block;

    width: fit-content;

    margin: 0;

    background: #fff1fb;

    color: #8a197f;

    padding: 0.7rem 1.3rem;

    border-radius: 0.9rem;

    font-family: inherit;

    font-size: 1.2rem;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition: 0.2s ease;
}
    

    #addresses-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

}



/* ==========================================================
   MOBILE — PRODUCT PURCHASE BUTTONS
   ========================================================== */

@media (max-width: 768px) {

    .purchase-section {

        width: 100%;
        max-width: 100%;

        display: flex;

        align-items: stretch;

        gap: .6rem;

        flex-wrap: wrap;

        box-sizing: border-box;
    }


    /* ======================================================
       افزودن به سبد خرید
       یک خط کامل در پایین
    ====================================================== */

    .purchase-section .add-to-cart-btn,
    .purchase-section .add-to-cart-btn-disabled {

        order: 2;

        flex: 0 0 100%;

        width: 100%;

        min-width: 100%;

        height: 5rem;

        padding: .8rem 1rem;

        font-size: 1.35rem;

        line-height: 1.5;

        white-space: normal;

        display: flex;

        align-items: center;

        justify-content: center;

        text-align: center;

        box-sizing: border-box;
    }


    /* ======================================================
       مشاهده سبد
    ====================================================== */

    .purchase-section .go-to-cart-btn {

        order: 1;

        flex: 1 1 0;

        width: auto;

        min-width: 0;

        height: 5rem;

        padding: .8rem .6rem;

        font-size: 1.25rem;

        line-height: 1.4;

        white-space: normal;

        display: flex;

        align-items: center;

        justify-content: center;

        text-align: center;

        box-sizing: border-box;
    }


    .purchase-section .go-to-cart-text {

        font-size: 1.25rem;

        line-height: 1.5;

        white-space: normal;

        text-align: center;
    }


    /* ======================================================
       لایک
    ====================================================== */

    .purchase-section .wishlist-btn {

        order: 1;

        flex: 0 0 5rem;

        width: 5rem;

        min-width: 5rem;

        height: 5rem;

        padding: 0;

        display: flex;

        align-items: center;

        justify-content: center;
    }

}


/* ==========================================================
   MOBILE — FIX PRICE / SORT DROPDOWNS
   ========================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------------------
       PRICE
       موبایل فقط با کلاس dropdown-open کنترل شود
       ------------------------------------------------------ */

    .price-option:hover .price-dropdown {

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform: translateY(-0.7rem) !important;
    }


    .price-option.dropdown-open .price-dropdown {

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: translateY(0) !important;
    }


    /* ------------------------------------------------------
       SORT
       ------------------------------------------------------ */

    .sort-option:hover .sort-dropdown {

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events: none !important;

        transform: translateY(-0.7rem) !important;
    }


    .sort-option.dropdown-open .sort-dropdown {

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: translateY(0) !important;
    }


    /* ------------------------------------------------------
       فلش قیمت
       ------------------------------------------------------ */

    .price-option:hover .price-title::after {

        transform: rotate(0deg) !important;
    }


    .price-option.dropdown-open .price-title::after {

        transform: rotate(180deg) !important;
    }


    /* ------------------------------------------------------
       فلش مرتب‌سازی
       ------------------------------------------------------ */

    .sort-option:hover .sort-title::after {

        transform: rotate(0deg) !important;
    }


    .sort-option.dropdown-open .sort-title::after {

        transform: rotate(180deg) !important;
    }

}

/* ==========================================================
   PAGINATION
========================================================== */

.pagination {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 35px;

    margin-bottom: 20px;

    direction: rtl;
}


/* ==========================================================
   PAGINATION BUTTON
========================================================== */

.pagination-button {

    min-width: 42px;

    height: 42px;

    padding: 0 12px;

    display: flex;

    justify-content: center;

    align-items: center;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: #fff;

    color: #333;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================
   HOVER
========================================================== */

a.pagination-button:hover {

    background: #f8f8f8;

    border-color: #ccc;

    color: #111;

    transform: translateY(-1px);

}


/* ==========================================================
   ACTIVE PAGE
========================================================== */

.pagination-button.active {

    background: pink;

    border-color: #111;

    color: #fff;

    cursor: default;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .pagination {

        gap: 6px;

        margin-top: 25px;

        margin-bottom: 15px;

    }


    .pagination-button {

        min-width: 38px;

        height: 38px;

        padding: 0 10px;

        border-radius: 7px;

        font-size: 13px;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .pagination {

        gap: 5px;

        margin-top: 20px;

    }


    .pagination-button {

        min-width: 35px;

        height: 35px;

        padding: 0 8px;

        font-size: 12px;

    }

}



/* ==========================================================
   HIDE REVIEW FORM AFTER USER HAS REVIEWED
========================================================== */

#review-logged-in.review-form-hidden {
    display: none !important;
}

#review-guest.review-form-hidden {
    display: none !important;
}
.review-submitted-message {

    margin-top: 15px;

    padding: 16px 18px;

    border: 1px solid #f3c7e5;

    border-radius: 10px;

    background: #fff4fa;

    color: #9c1b72;

    font-size: 14px;

    font-weight: 700;

    line-height: 2;

    text-align: center;

}

.edit-profile-error {

    display: none;

    margin-bottom: 12px;

    padding: 10px 12px;

    border:
        1px solid #fecaca;

    border-radius: 8px;

    background:
        #fef2f2;

    color:
        #b91c1c;

    font-size:
        13px;

    line-height:
        1.8;

}


.edit-profile-error.active {

    display: block;

}


.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-select-inline-search {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    direction: rtl;
    text-align: right;
}

.custom-select-inline-search::placeholder {
    color: #999;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1000;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #f0d4e3;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.custom-select.open .custom-select-options {
    display: block;
}

.review-cannot-review-message {

    margin-top: 15px;

    padding: 16px 18px;

    border:
        1px solid #f3c7e5;

    border-radius: 10px;

    background:
        #fff8fc;

    color:
        #8f155f;

    font-size:
        14px;

    font-weight:
        700;

    line-height:
        2;

    text-align:
        center;

}


/* ==========================================================
   SEARCHABLE SELECT
========================================================== */

.searchable-select {
    position: relative;
}


/* ==========================================================
   TRIGGER
========================================================== */

.searchable-select
.custom-select-trigger {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    background: transparent;

    border: none;

    padding: 0;

}


/* ==========================================================
   SEARCH INPUT
========================================================== */

.custom-select-search {

    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    font-family: inherit;

    font-size: inherit;

    color: inherit;

}


.custom-select-search::placeholder {

    color: inherit;

    opacity: 1;

}


/* ==========================================================
   ARROW
========================================================== */

.custom-select-arrow {

    flex-shrink: 0;

    pointer-events: none;

}


/* ==========================================================
   OPTIONS
========================================================== */

.custom-select-options {

    max-height: 240px;

    overflow-y: auto;

}


/* ==========================================================
   NO RESULT
========================================================== */

.custom-select-option.no-result {

    cursor: default;

    opacity: 0.6;

    pointer-events: none;

}


/* ==========================================================
   DISABLED CITY
========================================================== */

.searchable-select.disabled
.custom-select-search {

    cursor: not-allowed;

}



/* ==========================================================
   SEARCH MODAL
========================================================== */

.search-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);

    z-index: 9999;

    padding: 20px;
}

.search-modal.active {
    display: flex;
}


.search-modal-content {
    position: relative;

    width: 100%;
    max-width: 550px;

    background: #ffffff;

    border-radius: 18px;

    padding: 35px 30px 30px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

    direction: rtl;
}


.search-modal-content h3 {
    margin: 0 0 22px;

    text-align: center;

    font-size: 22px;
}


.search-modal-close {
    position: absolute;

    top: 12px;
    left: 15px;

    width: 35px;
    height: 35px;

    border: none;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    color: #777;
}


.search-modal-close:hover {
    color: #000;
}


.search-modal-form {
    display: flex;

    gap: 10px;

    width: 100%;
}


.search-modal-form input {
    flex: 1;

    min-width: 0;

    height: 48px;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 5px 15px;

    font-family: inherit;
    font-size: 15px;

    outline: none;
}


.search-modal-form input:focus {
    border-color: #e88bb5;
}


.search-modal-form button {
    height: 48px;

    border: none;

    border-radius: 10px;

    padding: 0 20px;

    background: #e88bb5;

    color: white;

    font-family: inherit;

    cursor: pointer;

    transition: 0.2s;
}


.search-modal-form button:hover {
    background: #d978a5;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .search-modal {
        padding: 15px;
    }


    .search-modal-content {
        padding: 35px 18px 20px;

        border-radius: 15px;
    }


    .search-modal-form {
        flex-direction: column;
    }


    .search-modal-form button {
        width: 100%;
    }

}




/* ==========================================================
   LIVE SEARCH RESULTS
========================================================== */

#search-modal-results {
    width: 100%;

    margin-top: 15px;

    max-height: 300px;

    overflow-y: auto;
    overflow-x: hidden;

    direction: rtl;
}


.search-message {
    text-align: center;

    padding: 20px 10px;

    color: #777;

    font-size: 14px;
}


.search-result-item {
    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    padding: 10px;

    margin-bottom: 8px;

    background: #fafafa;

    border: 1px solid #eee;

    border-radius: 10px;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;

    overflow: hidden;
}


.search-result-item:hover {
    border-color: #e88bb5;

    background: #fff;

    /* بدون بزرگ شدن خود کارت */
    transform: none;
}


.search-result-image {
    width: 70px;

    height: 70px;

    flex: 0 0 70px;

    object-fit: cover;

    border-radius: 8px;

    display: block;
}


.search-result-info {
    min-width: 0;

    flex: 1;

    text-align: right;

    overflow: hidden;
}


.search-result-info h4 {
    margin: 0 0 5px;

    color: #333;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.search-result-info p {
    margin: 0;

    color: #888;

    font-size: 12px;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================================
   FIX SEARCH RESULT HOVER
========================================================== */

#search-modal-results {
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}


#search-modal-results .search-result-item {
    transform: none !important;

    scale: 1 !important;

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

    overflow: hidden;

    margin-left: 0;
    margin-right: 0;
}


#search-modal-results .search-result-item:hover {
    transform: none !important;

    scale: 1 !important;

    width: 100%;

    box-shadow: none;
}


#search-modal-results .search-result-image {
    transform: none !important;

    scale: 1 !important;
}


#search-modal-results .search-result-item:hover
.search-result-image {
    transform: none !important;

    scale: 1 !important;
}


/* دسکتاپ: سرچ موبایل مخفی */
.mobile-search-link {
    display: none !important;
}


@media (max-width: 1000px) {

    /* سرچ اصلی که کنار آیکون‌های هدر است مخفی شود */
    #header-search-link {
        display: none !important;
    }


    /* سرچ داخل همبرگری نمایش داده شود */
    header .navbar .mobile-search-link {
        display: block !important;
    }

}

/* ==========================================================
   TERMS & CONDITIONS MODAL
========================================================== */

.terms-modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.55);

    z-index: 99999;
}


.terms-modal.active {

    display: flex;

}


.terms-modal-content {

    position: relative;

    width: 100%;

    max-width: 650px;

    max-height: 80vh;

    overflow-y: auto;

    background: #fff;

    border-radius: 18px;

    padding: 30px;

    box-sizing: border-box;

    direction: rtl;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.2);

}


.terms-modal-content h2 {

    margin:
        0 0 25px;

    text-align: center;

    font-size: 23px;

    color: #333;

}


.terms-modal-close {

    position: absolute;

    top: 12px;

    left: 15px;

    width: 35px;

    height: 35px;

    border: none;

    background: transparent;

    color: #777;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

}


.terms-modal-close:hover {

    color: #000;

}


/* ==========================================================
   TERMS MODAL BODY
========================================================== */

.terms-modal-body {

    direction: rtl;

    text-align: right;

    padding-left: 0.5rem;
}


/* ==========================================================
   SECTION TITLE
========================================================== */

.terms-modal-body h3 {

    position: relative;

    margin:
        0 0 0.8rem;

    padding-right: 1.2rem;

    color: #333;

    font-size: 1.7rem;

    font-weight: 700;

    line-height: 1.8;
}


.terms-modal-body h3::before {

    content: "";

    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    width: 0.35rem;

    height: 2rem;

    border-radius: 1rem;

    background:
        linear-gradient(
            to bottom,
            #e88bb5,
            #f5b6d0
        );
}


/* ==========================================================
   TEXT
========================================================== */

.terms-modal-body p {

    margin:
        0 0 2rem;

    padding:
        1.1rem 1.4rem;

    color: #666;

    font-size: 1.4rem;

    line-height: 2.1;

    background: #fffafd;

    border:
        0.1rem solid #f6e3eb;

    border-radius: 1rem;

    box-sizing: border-box;
}


/* ==========================================================
   LAST PARAGRAPH
========================================================== */

.terms-modal-body h3:last-of-type {

    margin-top: 0.5rem;

}


.terms-modal-body p:last-child {

    margin-bottom: 0;

}


/* ==========================================================
   IMPORTANT TERMS
========================================================== */

.terms-modal-body strong {

    color: #d96591;

    font-weight: 700;
}


/* ==========================================================
   SCROLLBAR
========================================================== */

.terms-modal-content {

    scrollbar-width: thin;

    scrollbar-color:
        #e8a5be
        transparent;

}


.terms-modal-content::-webkit-scrollbar {

    width: 0.6rem;

}


.terms-modal-content::-webkit-scrollbar-thumb {

    background: #e8a5be;

    border-radius: 1rem;

}


.terms-modal-content::-webkit-scrollbar-track {

    background: transparent;

}


/* ==========================================================
   MODAL TITLE
========================================================== */

.terms-modal-content h2 {

    margin:
        0 0 2.5rem;

    padding-bottom: 1.4rem;

    text-align: center;

    color: #333;

    font-size: 2.3rem;

    font-weight: 700;

    border-bottom:
        0.1rem solid #f1dce5;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .terms-modal-body h3 {

        font-size: 1.55rem;

    }


    .terms-modal-body p {

        padding:
            1rem 1.1rem;

        font-size: 1.3rem;

        line-height: 2;

        margin-bottom: 1.6rem;

    }


    .terms-modal-content h2 {

        font-size: 2rem;

        margin-bottom: 2rem;

    }

}

/* ==========================================================
   CHECKOUT TERMS
========================================================== */

.checkout-terms {

    margin-top: 20px;

    padding: 15px;

    border:
        1px solid #eee;

    border-radius: 12px;

    background: #fafafa;

    direction: rtl;

}


.checkout-terms-label {

    display: flex;

    align-items: center;

    gap: 10px;

    cursor: pointer;

    color: #555;

    font-size: 14px;

    line-height: 1.8;

}


.checkout-terms-label input {

    width: 18px;

    height: 18px;

    flex-shrink: 0;

    accent-color: #e88bb5;

    cursor: pointer;

}


.checkout-open-terms {

    margin-top: 8px;

    padding: 0;

    border: none;

    background: transparent;

    color: #e88bb5;

    font-family: inherit;

    font-size: 13px;

    cursor: pointer;

}


.checkout-open-terms:hover {

    text-decoration: underline;

}

/* ==========================================================
   BLOG
========================================================== */

.blog-page,
.blog-detail-page {
    width: 100%;
    padding: 45px 20px 80px;
}

.blog-container,
.blog-detail-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* ==========================================================
   BLOG HEADER
========================================================== */

.blog-header {
    margin: 0 auto;
    text-align: center;
    
    color:var(--black);
    padding:1rem;
    transition: .25s;
}

.blog-header h1 {
    text-align: center;
    font-size: clamp(2.3rem, 4.2vw, 3.8rem);
    font-weight: 800;

    line-height: 1.5;
}

.blog-header span {
    color:rgb(255, 171, 185);
}

.blog-header p {
    margin: 0;

    color: #888;

    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 2;
}


/* ==========================================================
   BLOG CATEGORIES
========================================================== */

.blog-categories {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 3rem;
}

.blog-category-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 4rem;

    padding: 0 3rem;

    color: #c95586;
    background: #fff;

    border: 1px solid #f1c8da;
    border-radius: 12px;

    font-size: 1.3rem;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(214, 83, 139, 0.07);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.blog-category-link:hover {
    color: #c4457d;
    background: #fff4f8;
    border-color: #e9a9c4;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(214, 83, 139, 0.12);
}

.blog-category-link.active {
    color: #fff;

    background:rgb(255, 171, 185);

    border-color: #d6538b;

    box-shadow:
        0 6px 18px rgba(214, 83, 139, 0.22);
}


/* ==========================================================
   BLOG GRID
========================================================== */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* ==========================================================
   BLOG CARD
========================================================== */

.blog-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #f1dce5;

    border-radius: 20px;

    box-shadow:
        0 8px 25px rgba(214, 83, 139, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);

    border-color: #edbfd1;

    box-shadow:
        0 16px 35px rgba(214, 83, 139, 0.18);
}


/* ==========================================================
   CARD IMAGE
========================================================== */

.blog-card-image {
    display: block;

    width: 100%;
    height: 235px;

    overflow: hidden;

    background: #fff5f8;
}

.blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #d38ba9;

    background: #fff5f8;

    font-size: 0.95rem;
}


/* ==========================================================
   CARD CONTENT
========================================================== */

.blog-card-content {
    padding: 22px 22px 24px;
}

.blog-card-category {
    display: inline-block;

    margin-bottom: 9px;

    color: #d6538b;

    font-size: 1.3rem;
    font-weight: 700;
}

.blog-card h2 {
    margin: 0 0 15px;

    line-height: 1.8;
}

.blog-card h2 a {
    color: #252525;

    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-weight: 750;

    line-height: 1.8;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #d6538b;
}

.blog-card-meta {
    color: #999;

    font-size: 1.3rem;
}


/* ==========================================================
   EMPTY
========================================================== */

.blog-empty {
    padding: 65px 20px;

    text-align: center;

    background: #fff8fb;

    border: 1px solid #f3dce6;

    border-radius: 20px;

    box-shadow:
        0 8px 24px rgba(214, 83, 139, 0.08);
}

.blog-empty h2 {
    margin: 0 0 10px;

    color: #333;

    font-size: 1.8rem;
}

.blog-empty p {
    margin: 0;

    color: #888;

    font-size: 1.95rem;
}


/* ==========================================================
   ARTICLE
========================================================== */

.blog-article {
    width: min(850px, 100%);

    margin: 0 auto;
}

.blog-article-category {
    margin-bottom: 12px;

    color: #d6538b;

    font-size: 1.95rem;
    font-weight: 700;
}

.blog-article h1 {
    margin: 0 0 18px;

    color: #222;

    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;

    line-height: 1.6;
}

.blog-article-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 30px;

    color: #999;

    font-size: 1.5rem;
}

.blog-article-image {
    width: 100%;

    margin-bottom: 38px;

    overflow: hidden;

    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(214, 83, 139, 0.3);
}

.blog-article-image img {
    display: block;

    width: 100%;
    max-height: 50rem;

    object-fit:cover;

}

.blog-article-image:hover{
    box-shadow:
        0 12px 35px rgba(214, 83, 139, 0.4);
}

.blog-article-content {
    color: #444;
    text-align: right;
    font-size: 1.6rem;

    line-height: 2.4;
}

.blog-article-content p {
    margin: 0 0 1rem;
    text-align: right;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .blog-card-image {
        height: 220px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .blog-page,
    .blog-detail-page {
        padding: 30px 14px 55px;
    }

    .blog-header {
        margin-bottom: 24px;
    }

    .blog-header h1 {
        font-size: 1.9rem;
    }

    .blog-header p {
        font-size: 0.9rem;
    }


    /* categories */

    .blog-categories {
        justify-content: flex-start;

        gap: 8px;

        margin-bottom: 28px;
    }

    .blog-category-link {
        min-height: 39px;

        padding: 0 15px;

        border-radius: 10px;

        font-size: 0.85rem;
    }


    /* cards */

    .blog-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .blog-card {
        border-radius: 17px;
    }

    .blog-card-image {
        height: 205px;
    }

    .blog-card-content {
        padding: 19px 18px 21px;
    }

    .blog-card-category {
        font-size: 0.82rem;
    }

    .blog-card h2 {
        margin-bottom: 12px;
    }

    .blog-card h2 a {
        font-size: 1.12rem;
        line-height: 1.8;
    }

    .blog-card-meta {
        font-size: 0.8rem;
    }


    /* article */

    .blog-article h1 {
        font-size: 1.75rem;

        line-height: 1.75;
    }

    .blog-article-meta {
        font-size: 0.8rem;

        margin-bottom: 23px;
    }

    .blog-article-image {
        margin-bottom: 27px;

        border-radius: 16px;
    }

    .blog-article-content {
        font-size: 0.98rem;

        line-height: 2.2;
    }

}

@media (max-width: 600px) {

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .blog-card {
        border-radius: 14px;
    }

    .blog-card-image {
        height: 145px;
    }

    .blog-card-content {
        padding: 13px;
    }

    .blog-card h2 a {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .blog-card-category {
        font-size: 0.72rem;
    }

    .blog-card-meta {
        font-size: 0.72rem;
    }

}


.home {
    position: relative;
}

.home-scroll-down {
    position: absolute;

    left: 50%;
    bottom: 10rem; /* بالاتر از قبل */

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    border: none;
    background: transparent;

    color: #d45b8a;

    cursor: pointer;

    z-index: 30;
}

.home-scroll-down span {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-weight: 600;
    white-space: nowrap;
}


.home-scroll-down i {
    width: clamp(3rem, 10vw, 4rem);
    height: clamp(3rem, 10vw, 4rem);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f8d9e7;

    font-size: 1.7rem;

    animation: homeArrowDown 1.5s infinite;
}

@keyframes homeArrowDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }

}

@media (max-width: 768px) {

     .home-scroll-down {
         bottom: 2rem; /* پایین‌تر در موبایل */ 
        } 
    }

/* ==========================================================
   INLINE PROFILE EDITING
   ========================================================== */

.inline-profile-field {

    display: inline-flex;

    align-items: center;

    position: relative;

    min-width: 90px;

    padding: 5px 9px;

    border-radius: 8px;

    cursor: text;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;

}


.inline-profile-field:hover {

    background: #faf3f7;

}


.inline-profile-field::after {

    content: "✏️";

    font-size: 11px;

    opacity: 0;

    margin-right: 7px;

    transition: opacity 0.2s ease;

}


.inline-profile-field:hover::after {

    opacity: 0.7;

}


.inline-profile-field.inline-editing {

    padding: 2px 5px;


}


.inline-profile-input {

    width: 100%;

    min-width: 120px;

    padding: 7px 9px;

    border: 1px solid #ddd;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: inherit;

    color: #333;

    background: #fff;

}


.inline-profile-input:focus {

    border-color: #d66896;

    box-shadow:
        0 0 0 3px rgba(214, 104, 150, 0.1);

}


.inline-profile-saving {

    position: relative;

    opacity: 0.65;

}


.inline-profile-saving::after {

    content: "در حال ذخیره...";

    position: absolute;

    right: calc(100% + 10px);

    white-space: nowrap;

    font-size: 11px;

    color: #999;

}


.inline-profile-saved {

    position: relative;

}


.inline-profile-saved::after {

    content: "✓ ذخیره شد";

    position: absolute;

    bottom: calc(100% + 6px);

    right: 0;

    white-space: nowrap;

    font-size: 11px;

    font-weight: 500;

    color: #3a9b62;

    background: #f0fff6;

    padding: 4px 8px;

    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    opacity: 0;

    animation: profileSavedMessage 2s ease;

    z-index: 10;
}


.inline-profile-error::after {

    content: "خطا در ذخیره";

    position: absolute;

    bottom: calc(100% + 6px);

    right: 0;

    white-space: nowrap;

    font-size: 11px;

    font-weight: 500;

    color: #d9534f;

    background: #fff3f3;

    padding: 4px 8px;

    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    z-index: 10;
}


.inline-profile-field.readonly {

    cursor: default;

}


.inline-profile-field.readonly:hover {

    background: transparent;

}


.inline-profile-field.readonly::after {

    display: none;

}


@keyframes profileSavedMessage {

    0% {
        opacity: 0;
        transform: translateX(5px);
    }

    20% {
        opacity: 1;
        transform: translateX(0);
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

.inline-profile-field-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 12px 14px;

    border-radius: 10px;

    cursor: text;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;

}


.inline-profile-field-row:hover {

    background: #faf3f7;

}


.inline-profile-field-row > span:first-child {

    flex-shrink: 0;

}


/* مقدار اطلاعات فضای بیشتری بگیرد */

.inline-profile-field-row .inline-profile-field {

    flex: 1;

    min-width: 0;

    justify-content: flex-start;

}


/* آیکون ویرایش هنگام هاور کل ردیف */

.inline-profile-field-row:hover
.inline-profile-field::after {

    opacity: 0.7;

}

/* ==========================================================
   INLINE PROFILE - MOBILE FIX
   ========================================================== */

.inline-profile-field-row {

    position: relative;

    width: 100%;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 10px;

}


/* برچسب نام / ایمیل و ... */

.inline-profile-field-row > span:first-child {

    flex-shrink: 0;

    white-space: nowrap;

}


/* مقدار */

.inline-profile-field-row .inline-profile-field {

    flex: 1;

    min-width: 0;

    max-width: 100%;

    overflow-wrap: anywhere;

    word-break: break-word;

    box-sizing: border-box;

}


/* ==========================================================
   INPUT
   ========================================================== */

.inline-profile-input {

    display: block;

    width: 100%;

    min-width: 0;

    max-width: 100%;

    height: 38px;

    min-height: 38px;

    padding: 6px 9px;

    margin: 0;

    box-sizing: border-box;

    font-family: inherit;

    font-size: 14px;

    line-height: 24px;

    border: 1px solid #ddd;

    border-radius: 7px;

    outline: none;

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .inline-profile-field-row {

        gap: 8px;

        padding: 10px 9px;

        min-height: 48px;

        box-sizing: border-box;

    }


    .inline-profile-field-row > span:first-child {

        font-size: 13px;

    }


    .inline-profile-field {

        font-size: 13px;

        line-height: 22px;

    }


    .inline-profile-input {

        height: 36px;

        min-height: 36px;

        padding: 5px 8px;

        font-size: 13px;

        line-height: 24px;

    }


    /* پیام ذخیره بالای فیلد، بدون بیرون زدن از صفحه */

    .inline-profile-saved::after,
    .inline-profile-error::after {

        right: 0;

        bottom: calc(100% + 4px);

    }

}

@media (max-width: 600px) {

    .inline-profile-field-row {

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        width: 100%;
        box-sizing: border-box;

        padding: 10px 9px;
    }


    .inline-profile-field-row > span:first-child {

        width: 100%;

        font-size: 13px;

        line-height: 1.5;
    }


    .inline-profile-field-row .inline-profile-field {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        box-sizing: border-box;

        padding: 5px 8px;

        font-size: 13px;

        line-height: 22px;

        overflow-wrap: anywhere;
        word-break: break-word;
    }


    .inline-profile-field.inline-editing {

        width: 100%;

        max-width: 100%;

        box-sizing: border-box;

        padding: 2px 4px;

    }


    .inline-profile-input {

        width: 100%;

        max-width: 100%;

        min-width: 0;

        height: 36px;

        min-height: 36px;

        box-sizing: border-box;

        font-size: 13px;

        padding: 5px 8px;

    }

}

/* ==========================================================
   CHECKOUT INLINE PROFILE EDITING
   ========================================================== */

.checkout-inline-profile-row {

    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    margin: 0;

    border-radius: 10px;

    cursor: text;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.checkout-inline-profile-row:hover {

    background: #faf3f7;
}


.checkout-inline-profile-row > span {

    flex-shrink: 0;

    white-space: nowrap;
}


.checkout-inline-profile-field {

    position: relative;

    flex: 1;

    min-width: 0;

    max-width: 100%;

    padding: 5px 8px;

    border-radius: 7px;

    font-weight: 500;

    overflow-wrap: anywhere;

    word-break: break-word;

    box-sizing: border-box;
}


.checkout-inline-profile-field::after {

    content: "✏️";

    font-size: 11px;

    margin-right: 7px;

    opacity: 0;

    transition: opacity 0.2s ease;
}


.checkout-inline-profile-row:hover
.checkout-inline-profile-field::after {

    opacity: 0.7;
}


.checkout-inline-profile-field.inline-editing {

    display: flex;

    align-items: center;

    width: auto;

    min-width: 0;

    max-width: 22rem;

    padding: 2px 4px;
}

.checkout-inline-profile-input {

    width: 28rem;

    min-width: 0;

    max-width: 100%;


    padding: 6px 9px;

    margin: 0;

    box-sizing: border-box;

    border: 1px solid #ddd;

    border-radius: 7px;

    outline: none;

    background: #fff;

    color: #333;

    font-family: inherit;

    font-size: 1.4rem;
}


.checkout-inline-profile-input:focus {

    border-color: #d66896;

    box-shadow:
        0 0 0 3px rgba(214, 104, 150, 0.1);
}


.checkout-inline-profile-saving {

    opacity: 0.6;
}


.checkout-inline-profile-saving::after {

    content: "در حال ذخیره...";

    position: absolute;

    bottom: calc(100% + 4px);

    right: 0;

    white-space: nowrap;

    font-size: 11px;

    color: #999;

    background: #fff;

    padding: 4px 8px;

    border-radius: 6px;

    z-index: 20;
}


.checkout-inline-profile-saved::after {

    content: "✓ ذخیره شد";

    position: absolute;

    bottom: calc(100% + 5px);

    right: 0;

    white-space: nowrap;

    font-size: 11px;

    font-weight: 500;

    color: #3a9b62;

    background: #f0fff6;

    padding: 4px 8px;

    border-radius: 6px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);

    z-index: 20;

    opacity: 0;

    animation:
        checkoutProfileSavedMessage 2s ease;
}


.checkout-inline-profile-error::after {

    content: "خطا در ذخیره";

    position: absolute;

    bottom: calc(100% + 5px);

    right: 0;

    white-space: nowrap;

    font-size: 11px;

    font-weight: 500;

    color: #d9534f;

    background: #fff3f3;

    padding: 4px 8px;

    border-radius: 6px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);

    z-index: 20;
}


@keyframes checkoutProfileSavedMessage {

    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-3px);
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .checkout-inline-profile-row {

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        padding: 9px;

        

    }


    .checkout-inline-profile-row > span {

        width: 100%;

        font-size: 13px;

        line-height: 1.5;

        
        
    }


    .checkout-inline-profile-field {

        display: block;

        width: 100%;

        max-width: 100%;

        padding: 5px 8px;

        font-size: 13px;

        line-height: 22px;

        box-sizing: border-box;

    }


    .checkout-inline-profile-field.inline-editing {

        width: 100%;

        padding: 2px 4px;

    }


    .checkout-inline-profile-input {

        width: 100%;

        min-width: 0;

        height: 36px;

        min-height: 36px;

        padding: 5px 8px;

        font-size: 13px;

    }


    .checkout-inline-profile-saved::after,
    .checkout-inline-profile-error::after,
    .checkout-inline-profile-saving::after {

        right: 0;

        bottom: calc(100% + 4px);

    }

}

.checkout-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}


.checkout-phone-info {

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    flex: 1;

}


.checkout-phone-info > span {

    flex-shrink: 0;

    white-space: nowrap;

}


.checkout-phone-info strong {

    min-width: 0;

    overflow-wrap: anywhere;

    word-break: break-word;

}


.checkout-change-phone-btn {

    flex-shrink: 0;

    border: none;

    background: transparent;

    color: #d66896;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    padding: 6px 8px;

    border-radius: 7px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;

}


.checkout-change-phone-btn:hover {

    background: #faf3f7;

    color: #c65382;

}


@media (max-width: 600px) {

    .checkout-phone-row {

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        padding: 9px;

    }


    .checkout-phone-info {

        width: 100%;

        gap: 8px;

    }


    .checkout-phone-info > span {

        font-size: 13px;

    }


    .checkout-phone-info strong {

        font-size: 13px;

    }


    .checkout-change-phone-btn {

        align-self: flex-start;

        padding: 5px 7px;

        font-size: 12px;

    }

}

@media (max-width: 768px) {

    #addresses-container {
        width: 100% !important;
        max-width: none !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 1.2rem;
    }

    #addresses-container .address-card {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        box-sizing: border-box;
    }

}

.section-heading-row {
    position: relative;

    width: 100%;

    margin-bottom: 2rem;
}

.section-heading-row .heading {
    margin: 0;
    text-align: center;
}

.section-more-btn {
    position: absolute;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #d66896;

    font-size: 1.4rem;
    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;
}

.section-more-btn:hover {
    color: #c65382;
}

.section-more-btn span {
    font-size: 1.7rem;
    transition: transform 0.2s ease;
}

.section-more-btn:hover span {
    transform: translateX(-4px);
}



@media (max-width: 768px) {

    .section-heading-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .section-heading-row .heading {
        width: 100%;
        text-align: center;
    }

    .section-more-btn {
        position: static;
        transform: none;
        align-self: center;
        font-size: 1.3rem;
    }

}


.phone-profile-row {
    display: flex;
    align-items: center;
}

.profile-phone-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.profile-change-phone-btn {
    border: none;
    background: transparent;
    color: #d98aa5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 7px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.profile-change-phone-btn:hover {
    background: #fff1f6;
    color: #c86f8f;
}

@media (max-width: 600px) {

    .phone-profile-row {
        align-items: flex-start;
    }

    .profile-phone-wrapper {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .profile-change-phone-btn {
        padding: 3px 0;
    }

}@media (max-width: 600px) {

    .phone-profile-row {
        align-items: flex-start;
    }

    .profile-phone-wrapper {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .profile-change-phone-btn {
        padding: 3px 0;
    }

}

/* =====================================================
   CHECKOUT CHANGE PHONE MODAL
   ===================================================== */

.checkout-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.checkout-phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-phone-number {
    margin: 0;
    padding: 5px 8px;
    font-weight: 500;

    direction: ltr;
    text-align: right;

    white-space: nowrap;
}

.checkout-change-phone-btn {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #d98aa5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 9px;
    border-radius: 8px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.checkout-change-phone-btn:hover {
    background: #fff1f6;
    color: #c96f8f;
}


/* =====================================================
   MODAL
   ===================================================== */

.checkout-change-phone-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
}

.checkout-change-phone-modal.active {
    display: flex;
}

.checkout-change-phone-modal-content {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-sizing: border-box;
}

.checkout-close-change-phone-modal {
    position: absolute;
    top: 10px;
    left: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.checkout-change-phone-modal-content h2 {
    margin: 0 0 10px;
    text-align: center;
}

.checkout-change-phone-help {
    margin: 0 0 20px;
    color: #777;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.9;
}

.checkout-change-phone-error {
    display: none;
    margin-bottom: 15px;
    color: #d33;
    font-size: 1.1rem;
    line-height: 1.8;
}

.checkout-change-phone-error.active {
    display: block;
}

.checkout-back-change-phone-btn {
    display: block;
    margin: 14px auto 0;
    border: none;
    background: transparent;
    color: #d98aa5;
    cursor: pointer;
}

@media (max-width: 600px) {

    .checkout-phone-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-change-phone-btn {
        padding: 4px 0;
    }

    .checkout-change-phone-modal-content {
        padding: 25px 20px;
    }

}

/* ==========================================================
   CHANGE PHONE MODAL
   ========================================================== */

.change-phone-modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.45);

    z-index: 9999;

}


.change-phone-modal.active {

    display: flex;

}


/* ==========================================================
   MODAL CONTENT
   ========================================================== */

.change-phone-modal-content {

    position: relative;

    width: min(420px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: #fff;

    border-radius: 18px;

    padding: 30px;

    box-sizing: border-box;

}


/* ==========================================================
   CLOSE
   ========================================================== */

.close-change-phone-modal {

    position: absolute;

    top: 12px;

    left: 14px;

    width: 32px;

    height: 32px;

    border: none;

    background: transparent;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    padding: 0;

}


/* ==========================================================
   TITLE
   ========================================================== */

.change-phone-modal-content h2 {

    margin: 0 0 10px;

    text-align: center;

}


/* ==========================================================
   HELP
   ========================================================== */

.change-phone-help {

    margin: 0 0 20px;

    text-align: center;

    font-size: 1.5rem;

    color: #292929;

    line-height: 1.8;

}


/* ==========================================================
   ERROR
   ========================================================== */

.change-phone-modal-content
.password-error {

    margin-bottom: 15px;

}


/* ==========================================================
   FORM GROUP
   ========================================================== */

.change-phone-modal-content
.form-group {

    width: 100%;

    box-sizing: border-box;

}


/* ==========================================================
   INPUT
   ========================================================== */

.change-phone-modal-content
.form-group input {

    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

}


/* ==========================================================
   MAIN BUTTON
   ========================================================== */

.change-phone-modal-content
.save-profile-btn {

    width: 100%;

    box-sizing: border-box;

}


/* ==========================================================
   BACK BUTTON
   ========================================================== */

.change-phone-back-btn {

    display: block;

    margin: 14px auto 0;

    border: none;

    background: transparent;

    color: #d98aa5;

    cursor: pointer;

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .change-phone-modal {

        padding: 15px;

    }


    .change-phone-modal-content {

        width: 100%;

        padding: 25px 20px;

        border-radius: 16px;

    }

}
/* ==========================================================
   EDIT PHONE ROW
   ========================================================== */

.edit-phone-row {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 100%;

}


/* شماره موبایل */

.edit-phone-row #edit-phone {

    flex: 1;

    min-width: 0;

}


/* دکمه تغییر */

.edit-phone-change-btn,
.edit-change-phone-btn {

    flex-shrink: 0;

    white-space: nowrap;

    border: none;

    background: #f6d6e6;

    color: #b84f7f;

    padding: 10px 16px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition: 0.2s ease;

}


/* Hover */

.edit-phone-change-btn:hover,
.edit-change-phone-btn:hover {

    background: #edbfd4;

    transform: translateY(-1px);

}


/* موبایل */

@media (max-width: 600px) {

    .edit-phone-row {

        gap: 8px;

    }


    .edit-change-phone-btn {

        padding: 10px 13px;

        font-size: 13px;

    }

}

/* ==========================================================
   MOBILE FILTER DROPDOWN
   ========================================================== */

@media (max-width: 1000px) {

    /*
       روی موبایل hover نباید کنترل اصلی Dropdown باشد.
    */

    .filter:hover .filter-list {

        opacity: 0 !important;

        visibility: hidden !important;

        transform: translateY(-0.7rem) !important;
    }


    /*
       وقتی با کلیک باز شده
    */

    .filter.filter-mobile-open .filter-list {

        opacity: 1 !important;

        visibility: visible !important;

        transform: translateY(0) !important;
    }


    /*
       فلش بسته
    */

    .filter:not(.filter-mobile-open)
    .filter-title::after {

        transform: rotate(0deg) !important;
    }


    /*
       فلش باز
    */

    .filter.filter-mobile-open
    .filter-title::after {

        transform: rotate(180deg) !important;
    }

}

/* ==========================================================
   DISABLE HOVER EFFECTS ON MOBILE
   ========================================================== */

@media (max-width: 1000px) {

    .carousel-item:hover {

        transform: none !important;

        box-shadow:
            0 0.8rem 1.5rem
            rgba(255, 198, 253, 0.412) !important;
    }


    .details-button:hover {

        background:
            linear-gradient(
                135deg,
                #ffc5ed,
                #f2b6ff
            ) !important;

        transform: none !important;
    }


    .like-button:hover {

        transform: none !important;

        box-shadow:
            0 0.4rem 1rem
            rgba(0, 0, 0, 0.1) !important;
    }


    /*
       Hover آیتم‌های داخل منو هم روی لمس موبایل نچسبد.
       خود باز/بسته شدن Dropdown دست‌نخورده می‌ماند.
    */

    .category-content:hover {
        background-color: #f7f7f7;
    }

    .category-content:hover a {
        color: #3b00c4;
    }


    .filter-option:hover {
        background-color: #fff8fc;
    }

}

/* ==========================================================
   MOBILE PRODUCT GALLERY
   گالری عمودی در کنار عکس اصلی
   ========================================================== */

@media (max-width: 768px) {

    .product-image {

        width: 100%;

        max-width: 100%;

        display: flex;

        flex-direction: row-reverse;

        align-items: flex-start;

        gap: 1rem;

        margin: 0 auto;

    }


    /* =========================
       عکس اصلی
       ========================= */

    .product-main-image {

        width: calc(100% - 7rem) !important;

        max-width: none !important;

        height: auto !important;

        aspect-ratio: 1 / 1;

        object-fit: cover;

        margin: 0 !important;

        flex: 1 1 auto;

        min-width: 0;

        border-radius: 1.6rem;

    }


    /* =========================
       گالری سمت راست
       ========================= */

    .gallery-thumbnails {

        width: 6rem;

        min-width: 6rem;

        max-width: 6rem;

        height: auto;

        max-height: 100%;

        margin: 0 !important;

        padding: 0;

        display: flex;

        flex-direction: column;

        flex-wrap: nowrap !important;

        align-items: center;

        justify-content: flex-start;

        gap: 0.8rem;

        overflow-y: auto;

        overflow-x: hidden;

    }


    /* =========================
       عکس‌های گالری
       ========================= */

    .gallery-thumb {

        width: 5.5rem !important;

        height: 5.5rem !important;

        min-width: 5.5rem;

        min-height: 5.5rem;

        max-width: 5.5rem;

        max-height: 5.5rem;

        flex: 0 0 5.5rem !important;

        object-fit: cover;

        border-radius: 0.8rem;

        margin: 0;

    }


    /* =========================
       غیرفعال کردن Hover گالری
       ========================= */

    .gallery-thumb:hover {

        border-color: #ffe8ff !important;

    }

}


/* ==========================================================
   MOBILE VERY SMALL
   ========================================================== */

@media (max-width: 480px) {

    .product-image {

        gap: 1.3rem;

    }


    .product-main-image {

        width: calc(100% - 6rem) !important;

    }


    .gallery-thumbnails {

        width: 5.3rem;

        min-width: 5.3rem;

        max-width: 5.3rem;

        gap: 0.6rem;

        border-radius: 10%;

    }


    .gallery-thumb {

        width: 4.8rem !important;

        height: 4.8rem !important;

        min-width: 4.8rem;

        min-height: 4.8rem;

        max-width: 4.8rem;

        max-height: 4.8rem;

        flex-basis: 4.8rem !important;

    }

}

/* ==========================================================
   MOBILE — SPACE BETWEEN IMAGE AND PRODUCT INFO
   ========================================================== */

@media (max-width: 768px) {

    .product-main {

        gap: 2rem !important;

    }


    .product-info {

        margin-top: 0 !important;

    }

}




/* ==========================================================
   HOME SLIDER — محدود کردن توضیحات
   ========================================================== */

.home .slide-container .slide .content p {

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;

    text-overflow: ellipsis;

    line-height: 1.9;
}

@media (max-width: 1000px) {

    .home #prev:hover,
    .home #next:hover {

        color: var(--black) !important;
        background: transparent !important;

    }

}


.checkout-step.clickable {
    display: flex;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.checkout-step.clickable:hover .step-title {
    color: #e75480;
}

.checkout-step.clickable:hover .step-circle {
    border-color: #e75480;
    background: #fff0f6;
    color: #e75480;
}

/* چشمک نرم مرحله فعلی */
.checkout-step.active {
    animation: activeStepBlink 2s ease-in-out infinite !important;
    will-change: opacity, transform;
}

.checkout-step.active .step-circle,
.checkout-step.active .step-title {
    animation: none !important;
}

@keyframes activeStepBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(1.025);
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-step.active {
        animation: none !important;
        will-change: auto;
    }
}


/* =========================================
   LATEST ORDER - PROFILE DASHBOARD
   ========================================= */

.profile-latest-order-card {
    margin-top: 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid #f3e5ec;
    border-radius: 18px;
    box-shadow: 0 5px 22px rgba(45, 25, 35, 0.045);
    direction: rtl;
}

.latest-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.latest-order-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.latest-order-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff0f6;
    font-size: 23px;
}

.latest-order-header h3 {
    margin: 0 0 5px;
    color: #292329;
    font-size: 17px;
}

.latest-order-header p {
    margin: 0;
    color: #999;
    font-size: 12px;
}

.latest-order-all-link {
    flex-shrink: 0;
    color: #e75480;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.latest-order-all-link:hover {
    color: #c63868;
}

.latest-order-summary-card {
    margin: 0;
    box-shadow: none;
    border-color: #f1e8ed;
}

.latest-order-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f2edf0;
    font-size: 13px;
}

.latest-order-status span {
    color: #888;
}

.latest-order-status strong {
    color: #444;
    font-size: 13px;
}

.latest-order-actions {
    display: flex;
    margin-top: 16px;
}

.latest-order-actions .order-details-btn {
    width: 100%;
    min-height: 43px;
    border: 1px solid #f0c9d8;
    border-radius: 11px;
    background: #fff7fa;
    color: #d84777;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.latest-order-actions .order-details-btn:hover {
    background: #ffedf4;
    border-color: #e9a8c1;
}

.latest-order-empty,
.latest-order-loading {
    padding: 24px 12px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.latest-order-empty-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.latest-order-empty h4 {
    margin: 0 0 8px;
    color: #383038;
    font-size: 1.6rem;
    text-align: center;
}

.latest-order-empty p {
    margin: 0 0 16px;
    line-height: 1.9;
}

.latest-order-shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    background: #e75480;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease;
}

.latest-order-shop-link:hover {
    background: #d33e6c;
}

@media (max-width: 600px) {
    .profile-latest-order-card {
        padding: 15px;
        margin-top: 18px;
        border-radius: 15px;
    }

    .latest-order-header {
        gap: 8px;
    }

    .latest-order-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .latest-order-header h3 {
        font-size: 15px;
    }

    .latest-order-header p {
        font-size: 11px;
    }

    .latest-order-all-link {
        font-size: 11px;
    }

    .latest-order-summary-card {
        padding: 14px;
    }

    .latest-order-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* فقط نمایش آیکون قلب؛ بدون تغییر ظاهر دکمه */
#wishlistContainer .like-button .heart-icon {
    display: block !important;
    width: 23px;
    height: 23px;
    object-fit: contain;
    visibility: visible !important;
    opacity: 1 !important;
}


/* =========================================
   هدر کادر آخرین سفارش در پروفایل
   ========================================= */

.profile-latest-order-card .latest-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    direction: rtl;
}

.profile-latest-order-card .latest-order-title-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.profile-latest-order-card .latest-order-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff0f6;
    font-size: 25px;
    line-height: 1;
}

.profile-latest-order-card .latest-order-title-group h3 {
    margin: 0 0 6px;
    color: #292329;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
}

.profile-latest-order-card .latest-order-title-group p {
    margin: 0;
    color: #888;
    font-size: 13px;
    line-height: 1.7;
}

.profile-latest-order-card .latest-order-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #e75480;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.profile-latest-order-card .latest-order-all-link:hover {
    color: #c63868;
}

/* نمایش مناسب در موبایل */
@media (max-width: 600px) {
    .profile-latest-order-card .latest-order-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .profile-latest-order-card .latest-order-title-group {
        gap: 9px;
    }

    .profile-latest-order-card .latest-order-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 22px;
        border-radius: 12px;
    }

    .profile-latest-order-card .latest-order-title-group h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .profile-latest-order-card .latest-order-title-group p {
        font-size: 11px;
    }

    .profile-latest-order-card .latest-order-all-link {
        font-size: 11px;
    }
}

/* =========================================
   Home Blog Cards - Hover & Click
========================================= */

.review .blog-home-card {
    overflow: hidden;
}

.review .blog-home-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.review .blog-home-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.review .blog-home-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.review .blog-home-card-link:hover .blog-home-image img {
    transform: scale(1.05);
    filter: brightness(0.94);
}

.review .blog-home-card-link h3 {
    transition: color 0.25s ease;
}

.review .blog-home-card-link:hover h3 {
    color: #b77b91;
}

.review .blog-home-card-link:focus-visible,
.review .blog-home-card .review-btn:focus-visible {
    outline: 2px solid #b77b91;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .review .blog-home-image img,
    .review .blog-home-card-link h3 {
        transition: none;
    }
}

/* =========================================
   Clean Description Limits
========================================= */

/* کارت‌های محصولات */
.carousel-item .item-content .description {
    line-height: 1.9;
    height: calc(1.9em * 3);
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow-wrap: anywhere;
}

/* اسلایدر صفحه اصلی */
.home .slide .content p {
    line-height: 1.9;
    max-height: calc(1.9em * 3);
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow-wrap: anywhere;
}

/* کارت‌های مقالات */
.review .blog-home-card-link p {
    line-height: 1.9;
    height: calc(1.9em * 3);
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    overflow-wrap: anywhere;
}

/* Fix: home blog description clipping */

.review .blog-home-card-link p {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;

    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;

    line-height: 1.9;
    margin-bottom: 16px;
    overflow-wrap: break-word;
}


/* =========================================
   Empty Product Results - Vanilla Shop
========================================= */

.empty-results {
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
    margin: 35px auto;
    padding: clamp(30px, 5vw, 55px) 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    direction: rtl;
    text-align: center;
}

/* آیکون جستجو */
.empty-results > i {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 3px;
    border-radius: 50%;

    background: #fff0f5;
    color: #d98ba8;
    font-size: 32px;
}

/* تیتر نتیجه یافت نشد */
.empty-results h3 {
    margin: 0;
    color: #393139;

    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.7;
}

/* متن توضیحات */
.empty-results p {
    width: 100%;
    max-width: 520px;
    margin: 0 0 8px;

    color: #777078;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 2.1;
    font-weight: 400;
}

/* دکمه مشاهده محصولات */
.empty-results-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 13px 32px;

    border: 1px solid #f0b5cb;
    border-radius: 12px;

    background: #f9d5e2;
    color: #633b4b;

    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(190, 113, 143, 0.12);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* افکت هاور دکمه */
.empty-results-btn:hover {
    background: #f4bfd2;
    border-color: #e9a6be;
    box-shadow: 0 7px 18px rgba(190, 113, 143, 0.2);
    transform: translateY(-2px);
}

/* دسترسی با کیبورد */
.empty-results-btn:focus-visible {
    outline: 3px solid #d98ba8;
    outline-offset: 4px;
}

/* موبایل */
@media (max-width: 576px) {
    .empty-results {
        margin: 20px auto;
        padding: 30px 16px;
        gap: 12px;
    }

    .empty-results > i {
        width: 70px;
        height: 70px;
        font-size: 27px;
    }

    .empty-results p {
        line-height: 2;
    }

    .empty-results-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .empty-results-btn {
        transition: none;
    }
}

/* =========================================
   Product Images - Smooth Hover Zoom
========================================= */

.carousel-item {
    overflow: hidden;
}

.carousel-item > img {
    display: block;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.carousel-item:hover > img {
    transform: scale(1.045);
}

/* جلوگیری از انیمیشن ناخواسته */
@media (prefers-reduced-motion: reduce) {
    .carousel-item > img {
        transition: none;
    }
}

/* Continue payment button */

.latest-order-actions .continue-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 20px;

    border: 1px solid #e9b2c6;
    border-radius: 10px;

    background: #f8d9e5;
    color: #704256;

    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.latest-order-actions .continue-payment-btn:hover {
    background: #f1c2d4;
    transform: translateY(-1px);
}

.latest-order-actions .continue-payment-btn:focus-visible {
    outline: 2px solid #bd7995;
    outline-offset: 3px;
}

/* =========================================
   Profile Avatar - Soft Pink Shadow
========================================= */

.profile-avatar #profile-avatar-img {
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(220, 140, 175, 0.28);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.profile-avatar #profile-avatar-img:hover {
    box-shadow: 0 6px 22px rgba(220, 140, 175, 0.42);
    transform: translateY(-2px);
}

.profile-avatar #profile-avatar-img:active {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .profile-avatar #profile-avatar-img {
        transition: none;
    }
}



.product-main-image:hover {
    transform: scale(1.01);
    box-shadow:0 0.5rem 1.5rem rgb(253, 187, 247);
}
/* =========================================
   Continue Payment - Vanilla Shop
========================================= */

.latest-order-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.latest-order-actions .continue-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 11px 22px;
    box-sizing: border-box;

    border: 1px solid #e8b2c6;
    border-radius: 10px;

    background: linear-gradient(135deg, #fbe7ef, #f6d4e1);
    color: #75465a;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;

    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 3px 9px rgba(183, 123, 145, 0.10);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.latest-order-actions .continue-payment-btn i {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.latest-order-actions .continue-payment-btn:hover {
    background: linear-gradient(135deg, #f7d5e3, #efbfd2);
    border-color: #dca0b7;

    box-shadow: 0 5px 14px rgba(183, 123, 145, 0.20);
    transform: translateY(-2px);
}

.latest-order-actions .continue-payment-btn:hover i {
    transform: translateX(-2px);
}

.latest-order-actions .continue-payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(183, 123, 145, 0.12);
}

.latest-order-actions .continue-payment-btn:focus-visible {
    outline: 2px solid #c987a2;
    outline-offset: 3px;
}

/* موبایل */
@media (max-width: 480px) {
    .latest-order-actions .continue-payment-btn {
        flex: 1;
        min-width: 0;
        padding: 11px 15px;
        font-size: 13px;
    }
}

/* کاهش انیمیشن برای کاربران نیازمند */
@media (prefers-reduced-motion: reduce) {
    .latest-order-actions .continue-payment-btn,
    .latest-order-actions .continue-payment-btn i {
        transition: none;
    }
}

.test-payment-page {
    direction: rtl;
    box-sizing: border-box;
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 60px) 16px;
    background:
        radial-gradient(ellipse at 10% 15%, #f0e3ff 0, transparent 36%),
        radial-gradient(ellipse at 90% 85%, #dff6e9 0, transparent 35%),
        #faf8fc;
}

.test-payment-page *,
.test-payment-page *::before,
.test-payment-page *::after {
    box-sizing: border-box;
}

.test-payment-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 570px);
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid #eee4f6;
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 60px rgba(69, 43, 91, .12);
    color: #392c47;
    text-align: center;
}

.test-payment-card::before {
    content: "";
    position: absolute;
    top: -90px;
    left: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #f1e4ff;
    opacity: .7;
    pointer-events: none;
}

.test-payment-card h1 {
    position: relative;
    margin: 0 0 12px;
    color: #644582;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 850;
    line-height: 1.8;
}

.test-payment-card > p {
    margin: 0 auto 26px;
    color: #82768d;
    font-size: 1.1rem;
    line-height: 2;
}

.test-payment-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.test-payment-info > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 18px 12px;
    border: 1px solid #eee5f5;
    border-radius: 17px;
    background: #fcfaff;
}

.test-payment-info span {
    color: #61447e;
    font-size: 1.5rem;
}

.test-payment-info strong {
    color: #61447e;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.test-payment-result {
    margin: 0 0 16px;
    padding: 0;
    border-radius: 13px;
    color: #28734f;
    font-size: .92rem;
    line-height: 2;
}

.test-payment-result:empty {
    display: none;
}

.test-payment-result:not(:empty) {
    padding: 12px 15px;
    border: 1px solid #d6eddf;
    background: #f0faf4;
}

.test-payment-result.payment-failed {
    color: #856000;
    border-color: #f2dfaa;
    background: #fff8e5;
}

.test-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.test-payment-actions button,
.test-payment-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 49px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

#success-btn {
    color: #fff;
    background: linear-gradient(135deg, #25865b, #40ad79);
    box-shadow: 0 6px 16px #25865b26;
    font-size: 1.4rem;
}

#fail-btn {
    color: #96543d;
    background: #fff5ef;
    border-color: #f3dfd4;
    font-size: 1.4rem;
}

.test-payment-details-btn {
    grid-column: 1 / -1;
    color: #654781;
    background: #f7f1fc;
    border-color: #e8dcf3;
    font-size: 1.1rem;
}

.test-payment-actions button:hover:not(:disabled),
.test-payment-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 43, 91, .13);
}

.test-payment-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.test-payment-actions button:focus-visible,
.test-payment-details-btn:focus-visible {
    outline: 3px solid #b99bd6;
    outline-offset: 3px;
}

@media (max-width: 460px) {
    .test-payment-card {
        border-radius: 21px;
    }

    .test-payment-info {
        gap: 8px;
    }

    .test-payment-info > div {
        padding: 14px 8px;
    }

    .test-payment-actions {
        grid-template-columns: 1fr;
    }

    .test-payment-details-btn {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-payment-actions button,
    .test-payment-details-btn {
        transition: none;
    }
}


/* Mobile Dark Mode: remove slider backgrounds */
@media screen and (max-width: 768px) and (prefers-color-scheme: dark) {
    .home,
    .home .slide-container,
    .home .slide-container .slide {
        background: transparent !important;
        background-image: none !important;
        background-color: transparent !important;
    }
}


/* Change phone number link on OTP page */
.change-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    width: fit-content;
    max-width: 100%;
    margin: 1rem auto 0;
    padding: 0.4rem 0.65rem;

    color: var(--text-color, inherit);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;

    opacity: 0.72;
    border-radius: 0.5rem;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.change-phone-link span {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.change-phone-link:hover {
    opacity: 1;
    text-decoration: none;
    background-color: rgb(128 128 128 / 10%);
}

.change-phone-link:hover span {
    transform: translateX(3px);
}

.change-phone-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .change-phone-link {
        margin-top: 0.85rem;
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .change-phone-link,
    .change-phone-link span {
        transition: none;
    }
}


/* ==========================================================
   SUPPORT TICKETS
   ========================================================== */

#support {
    direction: rtl;
}

#support > p {
    margin: 1rem 0 2rem;
    line-height: 2;
    color: var(--text-color, #777);
}

#support-feedback {
    margin: 1rem 0;
    color: var(--text-color, inherit);
}

#support button,
#support input,
#support select,
#support textarea {
    font: inherit;
}

#support button {
    cursor: pointer;
}

#support-new-ticket-toggle,
#support-new-ticket-form button,
#support-reply-form button {
    border: 0;
    border-radius: 0.8rem;
    padding: 1rem 1.6rem;
    background: #e879ad;
    color: #fff;
    margin: 0.8rem 0 1.5rem;
}

#support-new-ticket-form {
    margin: 1.5rem 0 2rem;
    padding: 1.8rem;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 1.2rem;
}

#support-new-ticket-form[hidden],
#support-ticket-detail[hidden],
#support-reply-form[hidden] {
    display: none !important;
}

#support-new-ticket-form label,
#support-reply-form label {
    display: block;
    margin: 1rem 0 0.5rem;
}

#support-new-ticket-form input,
#support-new-ticket-form select,
#support-new-ticket-form textarea,
#support-reply-form textarea {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    background: var(--input-background, #fff);
    color: var(--text-color, #333);
}

.support-ticket-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    width: 100%;
    text-align: right;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(128, 128, 128, 0.22);
    border-radius: 1rem;
    background: var(--card-background, transparent);
    color: var(--text-color, inherit);
}

.support-ticket-card:hover {
    border-color: #e879ad;
}

.support-ticket-card span,
.support-ticket-card small {
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.support-empty {
    padding: 2rem 0;
    font-size: 1.6rem;
}

#support-ticket-conversation {
    margin-top: 2rem;
}

.support-messages {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.support-message {
    padding: 1.4rem;
    border-radius: 1rem;
    border: 1px solid rgba(128, 128, 128, 0.2);
    overflow-wrap: anywhere;
}

.support-message p {
    white-space: pre-wrap;
    line-height: 2;
    margin: 0.8rem 0;
}

.support-message small {
    opacity: 0.7;
}

.support-message-staff {
    border-right: 3px solid #e879ad;
}

.support-message-user {
    border-right: 3px solid #8b9cf6;
}

@media (max-width: 600px) {
    #support-new-ticket-form {
        padding: 1.2rem;
    }

    .support-ticket-card {
        padding: 1.2rem;
    }
}

/* ==========================================================
   SUPPORT TICKETS — COMPACT DESIGN
   ========================================================== */

#support {
    direction: rtl;
}

/* Buttons */
#support button {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

#support button:hover {
    transform: translateY(-1px);
}

#support button:focus-visible {
    outline: 2px solid #c76ad6;
    outline-offset: 2px;
}

#support button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* New ticket button */
#support-new-ticket-toggle {
    min-height: 4rem;
    padding: 0.8rem 1.5rem;
    margin: 0.8rem 0 1.5rem;
    color: #fff;
    background: #ff5cce;
    box-shadow: 0 3px 10px rgba(180, 90, 165, 0.13);
}

#support-new-ticket-toggle:hover {
    filter: brightness(1.04);
}

/* Form */
#support-new-ticket-form {
    margin: 0 0 1.8rem;
    padding: 1.5rem;
    border: 1px solid rgba(195, 120, 180, 0.25);
    border-radius: 1.2rem;
    background: rgba(204, 150, 220, 0.07);
}

#support-new-ticket-form[hidden],
#support-ticket-detail[hidden],
#support-reply-form[hidden] {
    display: none !important;
}

#support-new-ticket-form label,
#support-reply-form label {
    display: block;
    margin: 0.9rem 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 600;
}

#support-new-ticket-form input,
#support-new-ticket-form select,
#support-new-ticket-form textarea,
#support-reply-form textarea {
    display: block;
    width: 100%;
    min-height: 4rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1.25rem;
    color: var(--text-color, #39313e);
    background: var(--input-background, transparent);
    border: 1px solid rgba(170, 112, 180, 0.3);
    border-radius: 0.8rem;
}

#support-new-ticket-form textarea,
#support-reply-form textarea {
    min-height: 9rem;
    line-height: 1.9;
    resize: vertical;
}

#support-new-ticket-form input:focus,
#support-new-ticket-form select:focus,
#support-new-ticket-form textarea:focus,
#support-reply-form textarea:focus {
    outline: none;
    border-color: #d66eae;
    box-shadow: 0 0 0 2px rgba(214, 110, 174, 0.12);
}

#support-new-ticket-form button,
#support-reply-form button {
    min-height: 4rem;
    padding: 0.8rem 1.5rem;
    margin-top: 0.5rem;
    color: white;
    background: linear-gradient(135deg, #dc72ad, #a17bdb);
}

/* Ticket list */
#support-ticket-list {
    display: grid;
    gap: 1rem;
    margin-top: 0.8rem;
}

.support-ticket-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
    padding: 1.2rem 1.4rem;
    text-align: right;
    color: var(--text-color, #41334b);
    background: rgba(190, 145, 220, 0.07);
    border: 1px solid rgba(190, 120, 185, 0.25) !important;
    border-radius: 1rem !important;
}

.support-ticket-card:hover {
    border-color: #d578b0 !important;
    background: rgba(220, 150, 205, 0.12);
}

.support-ticket-card strong {
    font-size: 1.5rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.support-ticket-card span {
    font-size: 1.3rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.support-ticket-card small {
    font-size: 1.3rem;
    opacity: 0.7;
}

/* Conversation */
#support-ticket-conversation h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.support-messages {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.support-message {
    padding: 1.2rem;
    border: 1px solid rgba(170, 112, 180, 0.2);
    border-radius: 1rem;
    overflow-wrap: anywhere;
    font-size: 1.5rem;
}

.support-message p {
    margin: 0.6rem 0;
    font-size: 1.3rem;
    line-height: 2;
    white-space: pre-wrap;
    text-align: right;
    overflow-wrap: anywhere;
}

.support-message small {
    font-size: 1.3rem;
    opacity: 0.7;
}

.support-message-staff {
    border-right: 3px solid #d66eaa;
    background: rgba(220, 145, 195, 0.08);
}

.support-message-user {
    border-right: 3px solid #9979dc;
    background: rgba(155, 130, 220, 0.08);
}

#support-back-button {
    padding: 0.8rem 1.2rem;
    color: #9150a7;
    background: rgba(180, 130, 210, 0.12);
    border: 1px solid rgba(170, 112, 200, 0.25);
}

#support-feedback:not(:empty) {
    margin: 0.8rem 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

@media (max-width: 600px) {
    #support-new-ticket-toggle {
        min-height: 4.2rem;
    }

    #support-new-ticket-form {
        padding: 1.1rem;
    }

    #support-new-ticket-form button,
    #support-reply-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #support button {
        transition: none;
    }
}

/* Support category dropdown */
#support-new-ticket-form #support-category {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    min-height: 4.2rem;
    padding: 0.9rem 1.2rem 0.9rem 3.8rem;

    direction: rtl;
    text-align: right;
    font-family: inherit;
    font-size: 1.25rem;

    color: var(--text-color, #39313e);
    background-color: var(--input-background, #fff);

    border: 1px solid #e2b5d3;
    border-radius: 0.8rem;
    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #bd6a9f 50%),
        linear-gradient(135deg, #bd6a9f 50%, transparent 50%);

    background-position:
        1.4rem 50%,
        1.8rem 50%;

    background-size: 0.5rem 0.5rem;
    background-repeat: no-repeat;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#support-new-ticket-form #support-category:hover {
    border-color: #d77caf;
}

#support-new-ticket-form #support-category:focus {
    outline: none;
    border-color: #ce69a6;
    box-shadow: 0 0 0 3px rgb(206 105 166 / 13%);
}

#support-new-ticket-form #support-category option {
    padding: 0.8rem;
    font-weight: 800;
    color: #39313e;
    background: #fff;
}

/* Ensure hidden ticket list stays hidden */
#support-ticket-list[hidden] {
    display: none !important;
}
/* Support ticket status accordion */

.support-ticket-status[hidden] {
    display: none !important;
}

.support-status-toggle {
    align-self: flex-start;
    padding: 0.65rem 1rem;
    margin-top: 0.5rem;
    color: #a34885;
    background: rgba(218, 133, 187, 0.12);
    border: 1px solid rgba(205, 107, 180, 0.3) !important;
}

.support-ticket-status {
    width: 100%;
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: 0.8rem;
    background: rgba(180, 145, 220, 0.08);
}

.support-ticket-status p {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    line-height: 1.9;
}

.support-status-answered {
    color: #27855d;
}

.support-status-pending {
    color: #b07a35;
}

.support-open-ticket {
    padding: 0.65rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #dc72ad, #a17bdb);
}

.support-char-count {
    display: block;
    margin: -0.6rem 0 1.2rem;
    color: #8b7892;
    font-size: 1.1rem;
    direction: rtl;
    text-align: left;
}

.support-char-count-limit {
    color: #d14f72;
    font-weight: 700;
}

#support-feedback:not(:empty) {
    padding: 0.8rem 1rem;
    margin: 0.8rem 0 1.2rem;
    border-radius: 0.7rem;
    font-size: 1.25rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
    background: rgba(220, 145, 195, 0.1);
    border: 1px solid rgba(205, 107, 180, 0.25);
}