.product-main-data {
  margin-top: calc(2.5rem + 148px);
}

#main:has(.woocommerce-notices-wrapper.active) .product-main-data {
  margin-top: 40px;
}

@media screen and (max-width: 1199.99px) {
  .product-main-data {
    margin-top: calc(1.5rem + 76px);
  }
}

/* --------------------------------------------------------------------------
   WooCommerce notices (e.g. “added to cart”) — single product
   -------------------------------------------------------------------------- */
body.single-product #main>.woocommerce-notices-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0.75rem, 3vw, 1rem);
  box-sizing: border-box;
}

body.single-product #main>.woocommerce-notices-wrapper:not(:empty) {
  margin-bottom: 1rem;
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-error,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-info {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 1rem 1.25rem;
  padding-inline-start: 1.75rem;
  padding-inline-end: 3rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color2);
  box-shadow: 0 8px 28px rgba(6, 115, 140, 0.12);
  margin-top: calc(1rem + 148px);
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message {
  background: linear-gradient(135deg, #f0fafb 0%, #ffffff 55%);
  border-color: rgba(6, 115, 140, 0.2);
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-error {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 55%);
  border-color: rgba(220, 53, 69, 0.25);
  color: #5c2128;
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-info {
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 55%);
  border-color: rgba(6, 115, 140, 0.18);
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message::before,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-error::before,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-info::before {
  content: "";
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.35rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--color1);
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-error::before {
  background: #dc3545;
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-error .button,
body.single-product #main .woocommerce-notices-wrapper .woocommerce-info .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  margin-inline-start: auto;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
  background: var(--color1);
  color: #fff;
  border: 1px solid var(--color1);
}

body.single-product #main .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward:hover {
  background: #fff;
  color: var(--color1);
}

body.single-product #main .woocommerce-notices-wrapper .close-notice.btn-close-sidebar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 0.65rem;
  inset-inline-start: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color2);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

body.single-product #main .woocommerce-notices-wrapper .close-notice.btn-close-sidebar:hover {
  background: var(--color1);
  color: #fff;
}

body.single-product #main .woocommerce-notices-wrapper .close-notice.btn-close-sidebar i {
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 767.98px) {

  body.single-product #main .woocommerce-notices-wrapper .woocommerce-message,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-error,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-info {
    flex-direction: column;
    align-items: stretch;
    padding-inline-start: 1.25rem;
    padding-inline-end: 1.25rem;
    padding-top: 3rem;
  }

  body.single-product #main .woocommerce-notices-wrapper .woocommerce-message::before,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-error::before,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-info::before {
    top: 2.75rem;
    inset-inline-start: 1.25rem;
    transform: none;
  }

  body.single-product #main .woocommerce-notices-wrapper .close-notice.btn-close-sidebar {
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    inset-inline-start: auto;
  }

  body.single-product #main .woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-error .button,
  body.single-product #main .woocommerce-notices-wrapper .woocommerce-info .button {
    margin-inline-start: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Product Gallery Row - full-width main image + horizontal thumbnails below
   ========================================================================== */

.product-gallery-row {
  align-items: flex-start;
  flex-direction: column;
}

.product-gallery-row .wrap-thumbnail-single {
  display: block;
  margin: 0.75rem 0 0;
  width: 100%;
}

.product-gallery-row .wrap-thumbnail-single #single-product-thumbnail {
  display: block;
}

@media (min-width: 1200px) {
  .product-gallery-col {
    position: sticky;
    top: 160px;
    align-self: flex-start;
  }

  .product-gallery-row #single-product-slider {
    max-width: 100%;
    width: 100%;
  }
}

.product-gallery-row .wrap-thumbnail-single .item-thumbnail {
  height: 86px !important;
  min-height: 86px;
  flex-shrink: 0;
  background-color: #f5f5f5;
  border-radius: 1rem;
  padding: 0.75rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  width: 86px !important;
  min-width: 86px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#single-product-slider .product_gallery_item {
  border-radius: 38px;
  overflow: hidden;
  background-color: #f5f5f5;
  height: clamp(288px, 40vw, 522px) !important;
  max-height: clamp(288px, 40vw, 522px) !important;
  /* padding: 50px; */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#single-product-slider .product_gallery_item img {
  width: 100%;
}

.product-gallery-row .wrap-thumbnail-single .item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary.entry-summary form.cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1199.98px) {
  .product-gallery-col {
    position: static;
  }
}

/* ==========================================================================
   Main Image Slider (#single-product-slider)
   ========================================================================== */

#single-product-slider .product_gallery_item .for-lightgallery {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

#single-product-slider {
  max-width: 100%;
  width: 100%;
}

/* ==========================================================================
   Thumbnails (#single-product-thumbnail)
   ========================================================================== */

#single-product-thumbnail {
  position: relative;
}

#single-product-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  display: block;
}

/* ==========================================================================
   Thumbnails wrapper - general
   ========================================================================== */

.wrap-thumbnail-single {
  position: relative;
  margin: 1rem auto 0;
  width: 100%;
}

/* ==========================================================================
   Thumbnail items - hover effect
   ========================================================================== */
.product-gallery-row .wrap-thumbnail-single .item-thumbnail.swiper-slide-thumb-active {
  border: 4px solid #06738c66;
}

.item-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}

.item-thumbnail:after {
  content: "...";
  letter-spacing: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: 0.3s;
  z-index: 3;
}

.item-thumbnail:hover:after {
  opacity: 1;
}

.item-thumbnail:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: #06738c33;
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
}

.item-thumbnail:hover:before {
  opacity: 1;
}

/* ==========================================================================
   Product short description - expand/collapse (170 char limit)
   ========================================================================== */

.product-excerpt-wrap {
  position: relative;
}

.product-excerpt-toggle {
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-excerpt-content {
  line-height: 1.5;
}

.product-excerpt-content .excerpt-truncated {
  display: inline;
}

.product-excerpt-content .excerpt-full {
  display: none;
}

.product-excerpt-content .excerpt-full.excerpt-measure {
  display: block !important;
}

.product-excerpt-wrap.expanded .product-excerpt-content .excerpt-truncated {
  display: none;
}

.product-excerpt-wrap.expanded .product-excerpt-content .excerpt-full {
  display: block !important;
}

.product-excerpt-content .product-excerpt-read-more {
  display: inline;
  margin: 0;
  margin-inline-start: 0.25em;
  white-space: nowrap;
}

.woocommerce-product-details__short-description {
  color: #707070 !important;
}

.product-description-block {
  margin-top: 120px;
}

.product-excerpt-read-more {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: inherit;
  color: #707070;
  text-decoration: underline;
  font-family: inherit;
  transition: 0.3s;
}

.product-excerpt-read-more:hover {
  color: var(--color1);
}

.product-excerpt-read-more .read-less-text {
  display: none;
}

.product-excerpt-wrap.expanded .product-excerpt-read-more .read-more-text {
  display: none;
}

.product-excerpt-wrap.expanded .product-excerpt-read-more .read-less-text {
  display: inline;
}

/* No button when content is short (≤170 chars) - handled in PHP */
.product-excerpt-wrap.short .product-excerpt-read-more {
  display: none;
}

/* ==========================================================================
   Product ACF blocks (features, specs, install services) - shared accordion UI
   ========================================================================== */
.product-acf-attributes,
.product-specifications,
.product-install-services {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #d9d9d9;
}

.product-acf-attributes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.product-acf-attributes__head .title-heading {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.125rem;
  font-family: var(--bold);
  line-height: 1.8;
  color: var(--color2);
}

.product-acf-attributes__toggle.caticon {
  position: static;
  left: auto;
  top: auto;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9d9d9d;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.product-acf-attributes__toggle.caticon::before {
  content: "\e91d";
  font-family: icomoon;
  transition: 0.3s;
}

.product-acf-attributes__toggle.caticon.active::before {
  content: "\e91c";
}

.product-acf-attributes__panel {
  margin-top: 1.125rem;
}

.product-main-data .editor-content.main-content ul li::marker {
  color: var(--color1);
  font-size: 1.125rem;
}

.product-acf-attributes .product-acf-attr-desc.editor-content ul:not(.acf-checkbox-list, .acf-radio-list, .acf-bl, .woocommerce-error) li,
.product-install-services .product-service-install-desc.editor-content ul:not(.acf-checkbox-list, .acf-radio-list, .acf-bl, .woocommerce-error) li {
  margin-bottom: 0.5rem;
  color: #707070;
}

.product-acf-attributes .product-acf-attr-images {
  margin-top: 1.125rem;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  flex-wrap: wrap;
}

.product-acf-attributes .product-acf-excl-feature {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  direction: ltr;
  background-color: #f5f5f5;
  border-radius: 1.125rem;
  padding: 0.5rem 10px 0.5rem 10px;
}

.product-acf-attributes .product-acf-excl-feature img {
  max-width: 80%;
}

.product-acf-attributes .product-acf-excl-feature--no-media {
  direction: rtl;
}

.product-acf-attributes .product-acf-excl-feature__text {
  direction: ltr;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.product-acf-attributes .product-acf-excl-feature__title {
  font-family: var(--english);
  font-weight: 700;
  line-height: 1;
  color: var(--color2);
  font-size: 17px;
}

.product-acf-attributes .product-acf-excl-feature__subtitle {
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  color: var(--color2);
}

/* Install services — video link (opens modal) */
.product-service-video-wrap {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-service-video-wrap i.icon-play-circle {
  font-size: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color3);
  transition: 0.3s;
}

.product-service-video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color3);
  transition: 0.3s;
}

.product-service-video-trigger:hover,
.product-service-video-wrap:has(.product-service-video-trigger:hover) i.icon-play-circle {
  color: var(--color1);
}

body.product-service-video-modal-open {
  overflow: hidden;
}

.product-service-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.product-service-video-modal[hidden] {
  display: none !important;
}

.product-service-video-modal.is-open {
  display: flex !important;
}

.product-service-video-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.product-service-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  background: #0d0d0d;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.product-service-video-modal__close {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-service-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.product-service-video-modal__inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--color2);
}

.product-service-video-modal__inner .product-service-video-iframe,
.product-service-video-modal__inner .product-service-video-native {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

/* Technical specifications list (title / value columns) */
.product-acf-attributes__panel .product-specifications__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-acf-attributes__panel .product-specifications__list .product-specifications__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  border: 1px solid #eeeeee;
  border-radius: 1rem;
  padding: 0.75rem;
}

.product-acf-attributes__panel .product-specifications__list .product-specifications__item .product-specifications__title {
  font-size: 1rem;
  line-height: 1.8;
  color: #707070;
}

.product-acf-attributes__panel .product-specifications__list .product-specifications__item .product-specifications__value {
  font-size: 1rem;
  line-height: 1.8;
  color: #707070;
  font-family: var(--bold);
}

/*
====================================================== 
product install services
==========================================================
*/
.product-service-install-desc.editor-content>*+* {
  margin-top: 0.75rem;
}

/* ==========================================================================
   Product Actions Block (title, share, wishlist, compare, rating)
   ========================================================================== */
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-head .product_title.entry-title {
  font-size: 2rem;
  font-family: var(--bold);
  line-height: 1.6;
  color: var(--color2);
}

.product_meta .category_post {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.product_meta .category_post .category_post_title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.5rem;
  color: #707070;
  line-height: 1.6;
}

.product_meta .category_post i {
  font-size: 1.25rem;
  color: var(--color1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}

.product_meta .category_post a {
  color: #707070;
  transition: 0.3s;
  line-height: 1.6;
  position: relative;
  padding-left: 0.875rem;
  font-family: var(--regular);
}

.product_meta .category_post a:hover {
  color: var(--color3);
}

.product_meta .category_post a:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 1rem;
  background-color: #707070;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.woocommerce-variation.single_variation .price {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-direction: column;
}

.variations_form .woocommerce-variation.single_variation .price {
  min-height: 5.25rem;
}

.woocommerce-variation.single_variation .price ins,
.woocommerce-variation.single_variation .price del {
  text-decoration: none;
  line-height: 1.58;
}

.woocommerce-variation.single_variation .price ins bdi,
.woocommerce-variation.single_variation .price>.woocommerce-Price-amount bdi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--bold);
  color: var(--color2);
  font-size: 1.75rem;
}

.woocommerce-variation.single_variation .price .woocommerce-Price-currencySymbol {
  font-size: 17px;
  line-height: 1.5;
}

.woocommerce-variation.single_variation .price del:has(bdi) {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.woocommerce-variation.single_variation .price del:has(bdi) .woocommerce-Price-amount bdi::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #707070;
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.woocommerce-variation.single_variation .price del bdi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #707070;
  position: relative;
  font-size: 1.25rem;
}

.woocommerce-variation.single_variation .price del .on-sale {
  position: relative;
  z-index: 3;
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--bold);
  line-height: 1.5;
  margin-right: 1.125rem;
}

.woocommerce-variation.single_variation .price del .on-sale::before {
  content: "\e91b";
  font-family: "icomoon";
  position: absolute;
  font-size: 40px;
  z-index: -1;
  color: var(--color1);
  right: -18px;
  bottom: -19px;
  transition: 0.3s;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Add to cart button - match site button style */
.single_add_to_cart_button.button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  border: none;
  transition: 0.3s;
  background-color: var(--color1);
  border-radius: 2rem;
  font-family: var(--main_font);
  cursor: pointer;
  gap: 0.25rem;
  padding: 3px 4px 3px 8px;
  justify-content: center;
  box-shadow: 0px 0px 13.4px 0px rgba(183, 155, 155, 0.1);
  backdrop-filter: blur(28px);
}

.single_add_to_cart_button.button .button-text {
  background-color: var(--white);
  height: 38px;
  padding: 0 1.5rem;
  color: var(--color1);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  width: 100%;
}

.single_add_to_cart_button.button .icon-shop {
  font-size: 1.125rem;
  color: var(--white);
  transition: 0.3s;
}

.single_add_to_cart_button.button:hover .icon-shop {
  color: var(--color1);
}

/* product-actions-block style */
.product-actions-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Product share - same as single-post (label visible, socials on hover) */
.product-actions-block .socials-share i.icon-share-product {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color1);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.product-actions-block .socials-share,
.product-actions-block .wishlist-action,
.product-actions-block .compare-action,
.product-actions-block .product-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #707070;
}

.product-actions-block .socials-share .socials {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 100%;
  margin-left: 0.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(-0.5rem);
  background-color: var(--color1);
  color: #fff;
  padding: 0.375rem 0.5rem 0.375rem 0.75rem;
  gap: 0.25rem;
  border-radius: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 10;
}

.product-actions-block .socials-share:hover .socials {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* موبایل: پنل شبکه‌ها به سمت چپ (داخل ویوپورت)؛ دسکتاپ همچنان به راست */
@media screen and (max-width: 767.98px) {
  .product-actions-block .socials-share .socials {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
    transform: translateY(-50%) translateX(0.5rem);
  }

  .product-actions-block .socials-share:hover .socials {
    transform: translateY(-50%) translateX(0);
  }
}

.product-actions-block .socials-share .socials a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.product-actions-block .socials-share .socials a:hover {
  transform: scale(1.1);
}

.product-actions-block .socials-share .socials i {
  font-size: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease;
}

.product-actions-block .socials-share .share-label {
  font-size: 1rem;
  color: #707070;
  font-family: var(--regular);
}

.product-actions-block .socials-share .copy-btn {
  position: relative;
  display: flex;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: 0.4s ease;
}

.product-actions-block .socials-share .copy-btn .tooltip-url {
  position: absolute;
  box-shadow: 0 1px 7px rgba(67, 43, 179, 0.1);
  background: #fff;
  padding: 9px 8px;
  border-radius: 6px;
  bottom: 115%;
  min-width: 75px;
  right: 50%;
  transform: translateX(50%);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  white-space: nowrap;
  font-size: 12px;
  direction: ltr;
  color: var(--color1);
  text-align: center;
  z-index: 1;
}

.product-actions-block .socials-share .copy-btn:hover .tooltip-url {
  opacity: 1;
  visibility: visible;
}

.product-actions-block .wishlist-label,
.product-actions-block .compare-label,
.product-actions-block .product-rate-label {
  font-size: 1rem;
  color: #707070;
  font-family: var(--regular);
  transition: 0.3s;
}

.product-actions-block .wishlist-action .wishlist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: start;
}

.product-actions-block .wishlist-action .wishlist-item:focus-visible {
  outline: 2px solid var(--color1);
  outline-offset: 2px;
}

.product-actions-block i.icon-favorite,
.product-actions-block i.icon-favorite-full,
.product-actions-block i.icon-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color1);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.product-actions-block .wishlist-item.wished .wishlist-label {
  color: var(--color1);
}

.product-actions-block .wishlist-action .wishlist-item:hover i.icon-favorite,
.product-actions-block .wishlist-action .wishlist-item:hover i.icon-favorite-full {
  opacity: 0.85;
}

.product-actions-block .wishlist-action .wishlist-item:hover .wishlist-label {
  color: var(--color1);
}

.product-actions-block i.icon-star {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color1);
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  position: relative;
  transition: 0.3s;
}

/* ====================================================== 
product tags
==========================================================
*/

.tag_product_list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.875rem;
  border-top: 1px solid #eeeeee;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tag_product_list span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color2);
}

.tag_product_list span i {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.tag_product_list a {
  background-color: #06738c1a;
  border-radius: 1rem;
  color: var(--color1);
  height: 3rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  font-size: 1rem;
  line-height: 1.6;
}

.tag_product_list a:hover {
  background-color: var(--color1);
  color: var(--white);
}

/* comment stars */
.woocommerce p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 1px;
  color: var(--color2);
  font-size: 21px;
}

.woocommerce .stars span {
  display: flex;
  gap: 2px;
}

#tab-reviews .form-submit {
  float: left;
  flex: unset;
}

.stars {
  margin: 0 !important;
}

.woocommerce p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: "icomoon";
  text-indent: 0;
  content: "\e945";
  transition: all 0.3s;
  color: #f7b661;
}

.woocommerce p.stars a:hover~a::before {
  content: "\e945";
}

.woocommerce p.stars.selected a.active::before {
  content: "\e946";
}

.woocommerce p.stars.selected a.active~a::before {
  content: "\e945";
}

.woocommerce p.stars.selected a:not(.active)::before {
  content: "\e946";
}

.comment-form-rating {
  display: flex;
  align-items: center;
  flex: 0 0 40%;
  gap: 15px;
}

/* ====================================================== 
product video
==========================================================
*/
.section-video .video-container {
  position: relative;
  width: 100%;
  border-radius: 2rem;
  height: clamp(162px, 42vw, 403px);
}

.section-video .video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000004d;
  z-index: 1;
  border-radius: 2rem;
  transition: 0.3s ease;
}

.section-video .video-wrap.video-playing .video-container::after {
  display: none;
}

.section-video .video-container.video-playing::after {
  display: none;
}

.section-video .video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.section-video .video-poster {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.section-video .video-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(64px, 10vw, 94px);
  height: clamp(64px, 10vw, 94px);
  transform: translate(-50%, -50%);
  display: inline-block;
  cursor: pointer;
  z-index: 2;
}

.section-video .video-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.section-video .video-btn:hover svg {
  transform: scale(1.08);
}

.section-video .video-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section-video .title-heading {
  font-family: var(--bold);
  color: var(--color2);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.6;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-video .video-button-wrap {
  margin-top: 1.5rem;
}

@media screen and (max-width: 991.99px) {
  .section-video .video-visual {
    margin-bottom: 1.125rem;
  }

  .section-video .video-button-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-description-block {
    margin-top: 57px;
  }
}

/* ====================================================== 
product related
==========================================================
*/

.related-products-wrapper {
  background-color: #d5b6a166;
  padding-bottom: 7rem;
  position: relative;
}

.related-products-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(360deg,
      rgba(255, 255, 255, 0) 27.61%,
      #ffffff 82.31%);
  pointer-events: none;
}

.related-products-wrapper .section-title,
.related-products-wrapper .sw {
  z-index: 5;
}

.related-products-crop-svg {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: block;
  width: 100%;
  min-width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 5;
}

#products-related .product-item {
  box-shadow: 0px 24px 38px -14px #ddc4b2;
  backdrop-filter: blur(80px);
  background: linear-gradient(0deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 52.26%);
  border: 1px solid;
  border-image-source: linear-gradient(214.17deg,
      rgba(241, 231, 225, 0) 3.34%,
      #ffffff 96.48%);
  margin-bottom: 36px;
}

#products-related .sw-navigation {
  margin-top: 12px;
}

#products-related .sw-navigation .swiper-nav-prev .icon-direction-left::after,
#products-related .sw-navigation .swiper-nav-next .icon-direction-right::after {
  color: #d5b6a1;
}

#products-related .sw-navigation .swiper-nav-next .icon-direction-right,
#products-related .sw-navigation .swiper-nav-prev .icon-direction-left {
  color: var(--white);
}

#products-related .sw-navigation .swiper-nav-next:not(.swiper-button-disabled):hover .icon-direction-right,
#products-related .sw-navigation .swiper-nav-prev:not(.swiper-button-disabled):hover .icon-direction-left {
  color: #d5b6a1;
}

#products-related .sw-navigation .swiper-nav-prev:not(.swiper-button-disabled):hover .icon-direction-left::after,
#products-related .sw-navigation .swiper-nav-next:not(.swiper-button-disabled):hover .icon-direction-right::after {
  color: var(--white);
}

@media screen and (max-width: 1199.99px) {
  .product-head {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
  }

  .summary.entry-summary {
    margin-top: 1.5rem;
  }
}

/* sticky add to cart */
@media screen and (max-width: 576px) {
  .quick-access-menu-wrapper {
    display: none;
  }

  .mobile-sticky-addcard {
    background-color: var(--white);
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    pointer-events: none;
    transition:
      opacity 0.7s ease,
      visibility 0.7s ease,
      transform 0.8s ease;
  }

  .mobile-sticky-addcard.is-sticky-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-sticky-addcard form.cart,
  .mobile-sticky-addcard .websima-sticky-var-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .mobile-sticky-addcard .websima-sticky-var-cart .single_add_to_cart_button {
    flex: 1;
    min-width: 0;
  }

  .mobile-sticky-addcard .websima-var-sticky-add-to-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
}

/*
 * Single product: quick-access is hidden ≤576px — mirror tablet header icons (576–992)
 * for the full 0–992px range so search / account / cart stay available.
 */
@media screen and (max-width: 992px) {

  body.single-product #header .icons-header-mobile .icon-seach,
  body.single-product #header .icons-header-mobile .icon-shopping,
  body.single-product #header .icons-header-mobile .icon-user {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
  }

  body.single-product #header .icons-header-mobile .icon-seach,
  body.single-product #header .icons-header-mobile .icon-shopping {
    background-color: var(--color1);
    color: var(--white);
  }

  body.single-product #header .icons-header-mobile .icon-user {
    background-color: rgba(238, 238, 238, 1);
    color: var(--color2);
  }
}

/* ==========================================================================
   Variable product: custom image-based variation selector
   ========================================================================== */
.summary.entry-summary form.variations_form.cart {
  display: block;
  margin-top: 0;
}

form.variations_form table.variations {
  display: none !important;
}

.summary .product-variable-variants {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.summary .product-variable-attribute-label {
  margin-bottom: 0.5rem;
  font-family: var(--main_font);
  font-size: 18px;
  color: #707070;
}

.summary .product-variable-selected-value {
  font-family: var(--regular);
  font-size: 18px;
  color: #707070;
}

.summary .websima-variations-selector {
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.summary .websima-variation-row+.websima-variation-row {
  margin-top: 1rem;
}

.summary .websima-variation-images {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.summary .websima-variation-image-item {
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #d9d9d9;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary .websima-variation-image-item img {
  width: 100%;
  height: 100%;
  max-width: 38px;
  max-height: 38px;
}

.summary .websima-variation-text-fallback {
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 6px;
  text-align: center;
}

.summary .websima-variation-image-item:hover {
  transform: scale(1.1);
}

.summary .websima-variation-image-item.selected {
  border: 2px solid var(--color1);
  transform: none;
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.summary .websima-variation-image-item.selected:hover {
  transform: none;
}

.summary .websima-variation-image-item.is-disabled {
  cursor: default;
  opacity: 0.28;
  pointer-events: none;
  border-color: #e5e5e5;
}

.summary .websima-variation-image-item.is-disabled:hover {
  transform: none;
}

.summary .product-price-box {
  margin-top: 1.25rem;
}

.websima-reset-variations {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transition: all 0.25s ease;
  z-index: 2;
}

.websima-reset-variations i {
  font-size: 9px;
  color: #707070;
  line-height: 1;
  transition: color 0.2s ease;
}

.websima-reset-variations::after {
  content: attr(title);
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 100%;
  right: auto;
  margin-left: 8px;
  transform: translateY(calc(-50% + 4px));
  background: var(--color2);
  color: var(--white);
  font-size: 11px;
  font-family: var(--main_font);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.websima-reset-variations:hover::after {
  opacity: 1;
  transform: translateY(-50%);
}

.websima-variations-selector:has(.websima-variation-image-item.selected) .websima-reset-variations {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.websima-reset-variations:hover {
  background: var(--color1);
}

.websima-reset-variations:hover i {
  color: var(--white);
}