.product-detail-section {
  direction: rtl;
  background: #fff;
  padding: 0;
  margin: 0;
}

.product-detail-full {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.product-stage {
  position: relative;
  width: 100%;
  min-height: 760px;
  background: #f3f3f3;
  overflow: hidden;
}

.detail-product-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.detail-product-track {
  display: flex;
  height: 100%;
  gap: 0 !important;
  margin: 0;
  padding: 0;
}

.detail-product-slide {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  overflow: hidden;
  background: #f3f3f3;
}

.detail-product-slide img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.detailSwiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.detailSwiper .swiper-wrapper {
  height: 100%;
}

.detailSwiper .swiper-slide {
  height: 100%;
  flex-shrink: 0;
}

.detailSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-card {
  position: absolute;
  left: 100px;
  bottom: 100px;
  width: 350px;
  background: #FCF7F1;
  padding: 20px 0 20px;
  z-index: 5;
}

.product-main-info {
    padding: 20px 32px 0px;
}

.product-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: #000;
}

#productBasePrice {
    font-family: 'IRANSharp';
    font-size: 13px !important;
    font-weight: 400;
    color: #999 !important;
    margin: 0;
    text-align: left;
}

.product-current-price {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.product-price {
  font-weight: 400;
  font-size: 16px !important;
  font-family: 'IRANSharp';
}

.price-currency {
  font-size: 18px;
  font-weight: 500;
  color: #666; 
  
}

.product-title {
  font-size: 18px;
  line-height: 1.8;
  color: #2C3E50;
  font-weight: 500;
  text-align: right;
}

.product-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #777;
  margin-bottom: 15px;
}

.meta-value {
  color: #222;
  font-weight: 500;
}

.thumbs-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.thumb-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  box-sizing: border-box;
}

.thumb-btn.active {
  border-bottom: 2px solid #2C3E50;
}


.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.is-disabled,
.thumb-btn:disabled {
  position: relative;
  opacity: .35;
  filter: grayscale(1);
  cursor: not-allowed;
}

.thumb-btn.is-disabled::after,
.thumb-btn:disabled::after {
  content: "";
  position: absolute;
  inset: 50% -4px auto -4px;
  height: 1px;
  background: #7b1f1f;
  transform: rotate(-35deg);
  pointer-events: none;
}

.product-option-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}


.product-meta {
  margin: 0;
}

.thumb-btn.active {
  border-bottom: 1px solid #2C3E50;
}

.add-to-cart-btn {
    height: 44px;
    border: 0;
    border-radius: 0;
    background: #33455d;
    color: #fff;
    font-size: 14px;
    font-family: 'IRANSharp';
    font-weight: 700;
    letter-spacing: 0%;
    transition: background-color 0.25s ease, color 0.25s ease;
}

    .add-to-cart-btn:hover {
        background: #F7D240;
        color: #2C3E50;
    }

.installment-box {
    border-top: 3px solid #fff;
    padding: 20px 32px 0;
}

.installment-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 1px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.slider-nav i {
  font-size: 20px;
}

.slider-prev {
  right: 24px;
}

.slider-next {
  left: 24px;
}

.slider-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  transition: all 0.3s ease;
}

.indicator.active {
  width: 28px;
  border-radius: 20px;
  background: #111;
}

.installment-top {
  display: flex;
  align-items: center;
  gap: 10px;
}


.snap-icon {
    width: 52px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 15px;
}

.installment-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}



.installment-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-family: 'IRANSharp';

}


.installment-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.installment-text,
.installment-price {
  color: #2C3E50;
  font-weight: 400;
}


.installment-price {
  font-weight: 400;
}

.installment-desc {
  font-size: 12px;
  color: #2C3E50;
  margin: 0;
}

.product-description-section {
  background: #FCF7F1;
  padding: 70px 0;
  direction: rtl;
}

.product-description-container {
  max-width: 100%;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 120px;
  align-items: start;
}

.product-info-text {

  text-align: right;

}

.product-info-text h3 {

  font-size: 18px;
  font-weight: 500;
  color: #222;
  margin-bottom: 35px;

}

.product-info-text p {

  font-size: 14px;
  line-height: 2.4;
  color: #444;
  max-width: 520px;

}



.stars-rating .star:hover,
.stars-rating .star:hover ~ .star {
  color: #ffc107 !important;
}

.stars-rating .star.active,
.stars-rating .star.active ~ .star {
  color: #ffc107 !important;
}


.reviews-list {
  width: 100%;
}

.review-item {
  margin-bottom: 35px;
  border-bottom: 1px solid #f9f9f9;
  padding-bottom: 20px;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  font-weight: bold;
  font-size: 14px;
  color: #222;
}

.review-date {
  color: #8C8C8C;
  font-weight: 400;
  font-size: 14px;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
  margin: 8px 0;
  letter-spacing: 1px;
}

.review-star-empty {
  color: #ddd;
}

.review-text {
  color: #555;
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 10px;
  text-align: justify;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
  
}

.accordion-content p {

  padding: 0 0 20px;
  margin: 0;

  font-size: 14px;
  line-height: 2;
  color: #566573;

}

.accordion-item.active .accordion-icon {

  transform: rotate(180deg);

}

.reviews-wrapper {
    text-align: right;
}

.custom-form-input {
    background-color: #f8f9fa !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 15px !important;
    font-size: 0.9rem;
}

.custom-form-input:focus {
    box-shadow: none !important;
    background-color: #f1f3f5 !important;
}

.btn-submit-review {
    background-color: #344454 !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 10px 40px !important;
    font-weight: 500;
}

.comment-item {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 25px;
}

.comment-item:last-child {
    border-bottom: none;
}

.smaller {
    font-size: 0.75rem;
}

.comment-text {
    font-size: 0.9rem;
    text-align: justify;
    color: #555 !important;
}

.text-light-gray {
    color: #dee2e6;
}

.stars-input i {
    margin-left: 5px;
    cursor: pointer;
    color: #ccc;
}

.suggested-products {
  direction: rtl;
  padding: 40px 0;
}


.section-title {
  text-align: right;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 45px;
}

.suggestedSwiper {
  width: 100%;
  overflow: hidden;
}

.suggestedSwiper .swiper-wrapper {
  align-items: stretch;
}

.suggestedSwiper .swiper-slide {
  height: auto;
}

.suggestedSwiper .product-card {
  width: 100%;
}

.product-card {
  width: 100%;
}

.product-card {
  text-align: right;
}

.product-image {

  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {

  width: 100%;
  height: 100%;
  object-fit: contain;

}

.product-card h3 {

  margin-top: 18px;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  text-align: right;
}

.price {
 font-family: 'IRANSharp';

  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: #65758b;

}


.suggested-products {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2C3E50;
}

.suggestedSwiper {
  overflow: hidden;
}

.suggestedSwiper .swiper-slide {
  height: auto;
}

.product-card {
  background: #fff;
  text-align: center;
  border: none !important;
  
}
.product-card:hover{
  background: #fff;
  text-align: center;
  border: none !important;
  box-shadow: 0px 16px 32px 0px #2C3E501F !important;

}

.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 16px;
  color: #2C3E50;
  margin: 16px 0 8px;
}

.product-card .price {
  display: block;
  color: #2C3E50;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.product-option-container {
  display: flex;
  flex-direction: column;
  gap: 16px; 
  margin-bottom: 25px;
}

.product-selection-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.color-row-wrap {
  flex-direction: row !important; 
  align-items: center; 
  gap: 15px; 
  flex-wrap: wrap; 
  margin-bottom: 18px;
}

    .color-row-wrap .product-meta {
        height: 24px;
        min-height: 24px;
        line-height: 24px;
        overflow: hidden;
    }

    .color-row-wrap .meta-value {
        display: inline-block;
        min-width: 40px;
        white-space: nowrap;
    }

    .color-row-wrap .thumbs-wrap {
/*        height: 64px;
*/        margin-top: 8px;
        flex-wrap: wrap;
    }

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important; 
}
.meta-label{ color:#6b7280; }
.meta-value{ color:#111827; }
.meta-action{
  background: transparent;
  border: 0;
  padding: 0;
  color:#111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-canvas .offcanvas-header{
  justify-content: right;
  position: relative;
  padding-top: 2.25rem;
}
.size-canvas .btn-close{
  position: absolute;
  left: 1rem; 
  right: auto;
}
.size-hint{ color:#6b7280; font-size:.9rem; text-align:center; }

.size-list{
  display:flex;
  flex-direction: column;
}

.size-item{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 1rem 32px;
  text-align: right;
  font-size: 1rem;
  color:#111827;
  transition: background-color .15s ease, opacity .15s ease, filter .15s ease;
}

.size-item + .size-item{
  border-top: 1px solid rgba(17,24,39,.06);
}

.size-item.is-active{
  background: #f6f0e6;
}

.size-item.is-disabled{
  opacity: .35;
  filter: blur(1px);
  cursor: not-allowed;
}

.product-meta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}


.cart-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  width: 360px;
  background: #F5F5F5;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 14px;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cart-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-popup__close {
  position: absolute;
  top: 6px;
  left: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 0;
}

.cart-popup__body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-top: 14px;
}

.cart-popup__image {
    width: 177px;
    height: 177px;
    object-fit: contain;
    flex-shrink: 0;
}

.cart-popup__info {
  flex: 1;
  text-align: right;
  color: #333;
}

.cart-popup__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.cart-popup__code {
  margin-bottom: 18px;
  font-size: 14px;
  color: #666;
}

.cart-popup__meta {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.cart-popup__row {
  display: flex;
  gap: 12px;
}

.cart-popup__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 12px;
  text-decoration: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  margin-top: 10px;
}



.cart-popup__btn--light {
  background: #FCF7F1;
  color: #333;
  border: 1px solid #959EA7;
}

.cart-popup__btn--dark {
  background: #2C3E50;
  color: #fff;
  border: 1px solid #2C3E50;
}


    .cart-popup__btn--dark:hover {
        background: #F7D240;
        color: #2C3E50;
        border: none;
    }


.pd-acc {
    width: 100%;
}

.pd-acc__item {
    border-top: 1px solid #959EA7;
}

    .pd-acc__item:last-child {
        border-bottom: 1px solid #9da7b5;
    }

.pd-acc__header {
    width: 100%;
    height: 55px;
    background: none;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    cursor: pointer;
    font-size: 16px;
    color: #34495e;
    padding: 0;
    font-family: inherit;
}

.pd-acc__icon {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    transition: transform .3s ease;
}

.pd-acc__item.is-open .pd-acc__icon {
    transform: rotate(180deg);
}

.pd-acc__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
}

.pd-acc__item.is-open .pd-acc__body {
    grid-template-rows: 1fr;
}

.pd-acc__content {
    overflow: hidden;
    min-height: 0;
}

    .pd-acc__content p {
        padding: 0 0 20px;
        margin: 0;
        font-size: 14px;
        line-height: 2;
        color: #566573;
    }


@media (max-width: 1400px) {
  .detail-product-slider {
    height: 700px;
  }

  .product-stage {
    min-height: 700px;
  }

  .detail-product-slide img {
    max-height: 620px;
  }
}

@media (max-width: 1199.98px) {
  .detail-product-slide {
    flex: 0 0 60%;
  }

  .detail-product-slider {
    height: 680px;
  }

  .product-info-card {
    left: 32px;
    bottom: 32px;
  }
}

@media (max-width: 991.98px) {
  .detail-product-track {
    height: 100%;
  }


  .detail-product-slide img {
    max-height: 420px;
  }

  .product-info-card {
    width: 100%;
    left: 0;
    bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-weight: 500;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;

  }

  .suggested-products {
    padding: 20px 0;
  }

  .product-stage {
    min-height: auto;
  }

  .detail-product-slider {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .detail-product-track {
    height: 100%;
  }

  .detail-product-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .detail-product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-info-card {
    position: relative;
    width: 100%;
    left: 0;
    bottom: auto;
  }

  .product-option-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .product-info-card {
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 16px 14px 45px;
  }

  .slider-nav {
    width: 42px;
    height: 42px;
  }

  .slider-nav i {
    font-size: 16px;
  }

  .product-info-card .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }


  .product-title {
    text-align: right;
    width: 100%;
  }


  .product-price-wrap {
    width: 100%;
    justify-content: flex-end;
  }

  .product-price {
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -2%;
    color: #2C3E50;
  }

  .installment-box {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #eee;
  }


  .installment-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }


  .snap-icon {
    order: -1;
    width: 40px;
    height: 40px;
    object-fit: contain;
  }


  .installment-content {
    flex: 1;
  }

  .installment-wrapper {
    flex-direction: row-reverse;
  }

  .installment-content {
    text-align: right;
  }

  .product-description-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .accordion-header {
    padding: 0 20px;
  }

  .accordion-content p {
    padding: 0 20px;
  }

  .product-info-text {
    order: 1;
    padding: 0 20px;
  }

  .product-accordion {
    order: 2;
    background: #fff;
  }

  .product-description-section {
    background: #FCF7F1;
    padding: 0;
    direction: rtl;
  }

  .size-item{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 1rem 32px;
  text-align: center;
  font-size: 1rem;
  color:#111827;
  transition: background-color .15s ease, opacity .15s ease, filter .15s ease;
}

.cart-popup {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
  
    border-radius: 16px 16px 0 0; 
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0.3s ease;
  }

  .cart-popup.is-open {
    transform: translateY(0);
  }

  .cart-popup__image {
 width: 198px;
    height: 198px;
  }
  .cart-popup__close {
    position: absolute;
    top: 6px;
    left: 18px;
    border: 0;
    background: transparent;
    font-size: 41px;
    line-height: 1;
    cursor: pointer;
    color: #222;
    padding: 0;
}
}
