.menu-desktop {
  background: #0000005c;
}

.header-pages {
  height: 173px;
}

.header-pages img {
  height: 100%;
  object-fit: cover;
}

/* ستون تامبنیل با تصویر بزرگ هم‌ارتفاع نشود؛ تامبنیل‌ها همیشه مربع */
.header-detail [id^="productDeskCarousel-"].carousel .row > .col-2 {
  align-self: flex-start;
}

.header-detail .gallery-img-small-des {
  height: auto;
  width: 100%;
}

.header-detail .gallery-img-small-des .carousel-indicators {
  position: unset !important;
  flex-direction: column;
  margin: 0 !important;
  height: auto;
  align-items: stretch;
}

.header-detail .gallery-img-small-des .carousel-indicators button {
  border-radius: 14px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  text-indent: unset !important;
  opacity: 1 !important;
  overflow: hidden;
  border-top: unset;
  border-bottom: unset;
  margin-bottom: 18px;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0;
  position: relative;
}

.header-detail .gallery-img-small-des .carousel-indicators button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-detail .gallery-img-small-des .carousel-indicators button:last-child {
  margin-bottom: 0 !important;
}

.header-detail .gallery-img-small-des .carousel-indicators .active {
  border: 2px solid #600e1d;
}

.gallery-img-small-des .btn-more-modal {
  color: #000000 !important;
  border: 1px solid #ddd !important;
  background-color: #fff !important;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border-radius: 14px !important;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-img-small-des .btn-more-modal span {
  color: #999;
}

.header-detail .gallery-img-big-des .carousel-inner {
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
  color: #969593 !important;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #969593 !important;
}

.coption p {
  color: #666;
}

.feature-box ul li:last-child {
  padding-bottom: 0 !important;
}

.feature-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.feature-toggle-btn img {
  transition: transform 0.3s ease;
}

.feature-toggle-btn.open img {
  transform: rotate(180deg);
}

.link-order {
  background: linear-gradient(180deg,
      rgba(141, 15, 39, 1) 0%,
      rgba(96, 14, 29, 1) 100%);
  border: 1px solid #fff;
  font-size: 16px;
  border-radius: 30px;
  width: fit-content;
  padding: 12px 6rem;
}

.header-mobile .carousel-control-next,
.header-mobile .carousel-control-prev {
  background: #000;
  height: max-content;
  width: max-content;
  display: flex;
  margin: auto;
  opacity: 1 !important;
}

.header-mobile .carousel-control-next span,
.header-mobile .carousel-control-prev span {
  width: 1.4rem !important;
  height: 1.8rem !important;
}

.header-mobile .carousel-control-next {
  border-radius: 0 10px 10px 0;
}

.header-mobile .carousel-control-prev {
  border-radius: 10px 0 0 10px;
}

.header-mobile #carouselExampleIndicators-silder-mobile .carousel-indicators {
  background: #000000a1;
  width: max-content;
  margin: auto;
  padding: 0px 10px;
  border-radius: 10px 10px 0 0;
}

.header-mobile #carouselExampleIndicators-silder-mobile .carousel-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  margin: 9px 3px 6px !important;
  border-radius: 50%;
  margin: 8px 3px 6px;
}

.mySwiper-commands .link-commands {
  background-color: #fff;
  border-radius: 25px;
  overflow: hidden;
}

.mySwiper-commands .link-commands img {
  border-radius: 25px;
}

.mySwiper-commands .link-commands::hover .link-commands .title span {
  color: #600e1d !important;
  transition: 0.5s;
}

.tabs .nav .nav-item .nav-link.active {
  background: linear-gradient(180deg,
      rgba(141, 15, 39, 1) 0%,
      rgba(96, 14, 29, 1) 100%) !important;
  color: #fff !important;
  padding: 10px 30px !important;
  border-radius: 30px !important;
  border: 1px solid #fff !important;
}

.tabs .nav-pills {
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: unset !important;
  -ms-overflow-style: none;
}

.tabs .nav-pills::-webkit-scrollbar {
  display: none;
}

.tabs .nav .nav-item .nav-link {
  background-color: #fff;
  border: 1px solid #8d0f27;
  padding: 10px 30px;
  border-radius: 30px;
  color: #600e1d;
}

.comments .form {
  background-color: #fff;
  padding: 20px;
  border-radius: 25px;
}

.comments .form .box .form-control {
  background-color: #eee;
  border-color: #eee;
  padding: 17px;
  border-radius: 25px;
}

.comments .form .box .form-control:focus {
  border-color: #8d0f27 !important;
  background-color: #eee !important;
}

.comments .form .box .form-control::placeholder {
  color: #b3b3b3;
  font-size: 14px;
  font-family: PeydaLight;
}

.offcanvas .form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 20px;
}

.offcanvas .form .box .form-control {
  background-color: #eee;
  border-color: #eee;
  padding: 15px;
  border-radius: 15px;
}

.offcanvas .form .box .form-control:focus {
  border-color: #8d0f27 !important;
  background-color: #eee !important;
}

.offcanvas .form .box .form-control::placeholder {
  color: #b3b3b3;
  font-size: 14px;
  font-family: PeydaLight;
}

.offcanvas.offcanvas-bottom {
  height: unset !important;
  border-radius: 25px 25px 0 0;
}

.box-reply {
  background-color: #eee;
  padding: 30px 28px;
  border-radius: 15px;
}

.box-user {
  background-color: #fff;
  padding: 30px 28px;
  border-radius: 25px;
}

.box-user .header-box .img {
  background-color: #d9d9d975;
  padding: 10px 12px;
  border-radius: 50%;
}

.box-user .header-box .name span {
  color: #888888;
}

.faq .accordion-button {
  font-size: 18px;
  color: #333333;
}

.faq .accordion-button:not(.collapsed) {
  color: #333333;
  background-color: #f5f2f2;
}

.faq .accordion-button:focus {
  box-shadow: unset !important;
}

.faq .accordion-body {
  background-color: #f6f2f2;
}

.faq .accordion {
  border: 1px solid #ddd;
  border-radius: 25px !important;
  overflow: hidden;
}

.faq .accordion-item {
  border: 0;
  border-bottom: 1px solid #ddd;
}

.faq .accordion-item:last-child {
  border-bottom: 0;
}

.faq .accordion-button::after {
  background-image: url("../../images/product/detail/icon-faq-active.svg") !important;
  width: 15px !important;
  height: 15px !important;
  background-size: cover !important;
}

.faq .accordion-button:not(.collapsed)::after {
  background-image: url("../../images/product/detail/icon-faq-clos.svg") !important;
}

.mySwiper-product .swiper-slide .link-product img {
  border-radius: 25px;
}

.mySwiper-product .swiper-slide .link-product:hover h3 {
  background: linear-gradient(180deg,
      rgba(141, 15, 39, 1) 0%,
      rgba(96, 14, 29, 1) 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.5;
}

.mySwiper-product .swiper-slide .link-product .title span {
  color: #555;
}

.mySwiper-product .swiper-button-next,
.mySwiper-product .swiper-button-prev {
  color: #8d0f27 !important;
  z-index: 12;
  font-size: 16px !important;
}

.mySwiper-product::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  background: #F8F7F4;
  background: linear-gradient(90deg, rgba(248, 247, 244, 0) 0%, rgba(248, 247, 244, 1) 100%);
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.mySwiper-product::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  background: #f8f7f4;
  background: linear-gradient(90deg, rgba(248, 247, 244, 1) 0%, rgba(248, 247, 244, 0) 100%);
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.fade:not(.show) {
  display: none;
}

#offcanvasBottom-reply .offcanvas-header span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.btn-fixe-mobile {
  z-index: 99;
  background-color: #fff;
  width: 100%;
  padding: 10px;
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
}

@media (max-width: 991.98px) {
  .header-detail .header-mobile > nav[aria-label="breadcrumb"] {
    padding-top: 0.75rem;
  }

  .header-detail .header-mobile > nav[aria-label="breadcrumb"] .breadcrumb {
    margin-bottom: 0.75rem !important;
  }
}

/* Thumbnail strip in product image modal — fixed cell size (do not use width/height:auto on buttons) */
.modal-pro-img .product-gallery-modal-thumbs.carousel-indicators {
  position: relative !important;
  width: 100%;
  margin: 0;
  max-height: 7.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  z-index: 2;
}

.modal-pro-img .product-gallery-modal-thumbs.carousel-indicators button {
  box-sizing: border-box;
  text-indent: 0 !important;
  width: 4.25rem !important;
  height: 4.25rem !important;
  min-width: 4.25rem !important;
  min-height: 4.25rem !important;
  max-width: 4.25rem !important;
  max-height: 4.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 10px !important;
  opacity: 1 !important;
  background-color: #222;
  cursor: pointer;
}

.modal-pro-img .product-gallery-modal-thumbs.carousel-indicators button img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.modal-pro-img .product-gallery-modal-thumbs.carousel-indicators button.active {
  border-color: #600e1d !important;
}

.modal-pro-img .carousel-control-prev,
.modal-pro-img .carousel-control-next {
  height: 2.5rem;
  width: 2.5rem;
  top: 0;
  bottom: 0;
  margin: auto;
  background: rgb(0, 0, 0);
  opacity: 1;
}

.modal-pro-img .carousel-control-prev {
  left: 100%;
  right: auto;
}

.modal-pro-img .carousel-control-next {
  right: 100%;
  left: auto;
}

.modal-pro-img .bg-modal {
  background-color: #000000b8 !important;
}

.modal-pro-img .modal-content .btn-close {
  filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(897%) hue-rotate(263deg) brightness(118%) contrast(100%);
  opacity: 1 !important;
}

.modal-pro-img .modal-body {
  padding: 0;
  height: 100%;
}

.img-slider-modal img {
  object-fit: contain;
}

.btn-more-modal{
  background-color: unset !important;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .header-pages {
    height: 140px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .header-pages {
    height: 67px;
  }

  .mySwiper-product::before {
    display: none;
  }

  .mySwiper-product::after {
    display: none;
  }

  .mySwiper-product .swiper-button-next,
  .mySwiper-product .swiper-button-prev svg {
    height: 25px !important;
    width: 25px !important;
  }

  .link-order {
    padding: 16px 2rem;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .header-pages {
    height: 67px;
  }

  .box-reply {
    padding: 15px 13px;
  }

  .box-user {
    padding: 15px 13px;
  }

  .mySwiper-product::before {
    display: none;
  }

  .mySwiper-product::after {
    display: none;
  }

  .mySwiper-product .swiper-button-next,
  .mySwiper-product .swiper-button-prev svg {
    height: 25px !important;
    width: 25px !important;
  }

  .link-order {
    padding: 16px 2rem;
  }
}

@media (max-width: 576px) {
  .header-pages {
    height: 67px;
  }

  .commands .title h2 {
    font-size: 18px;
  }

  .box-reply {
    padding: 15px 13px;
  }

  .box-user {
    padding: 15px 13px;
  }

  .offcanvas.offcanvas-bottom {
    border-radius: 0;
  }

  .faq .accordion-button {
    font-size: 14px;
    color: #333333;
  }

  .mySwiper-product::before {
    display: none;
  }

  .mySwiper-product::after {
    display: none;
  }

  .mySwiper-product .swiper-button-next,
  .mySwiper-product .swiper-button-prev svg {
    height: 25px !important;
    width: 25px !important;
  }

  .link-order {
    padding: 16px 2rem;
  }
}