/* Product page layout helpers (child overrides / soft scope) */

/* Icomoon (detail-product-7 icons) */
@font-face {
  font-family: "icomoon";
  src: url("../fonts/icon/icomoon.eot?vz1");
  src: url("../fonts/icon/icomoon.eot?vz1#iefix") format("embedded-opentype"),
    url("../fonts/icon/icomoon.ttf?vz1") format("truetype"),
    url("../fonts/icon/icomoon.woff?vz1") format("woff"),
    url("../fonts/icon/icomoon.svg?vz1#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

body.varzeshi-single-product-page [class^="icon-"],
body.varzeshi-single-product-page [class*=" icon-"] {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  vertical-align: middle;
}

/* Match site chrome (header.php body: bg-[#FBFAFC]) */
body.varzeshi-single-product-page {
  --bs-body-bg: #fbfafc;
  background-color: #ffffff !important;
  /*
   * Parent theme sets `html,body{overflow-x:hidden!important}`. On <body> that
   * turns overflow-y into `auto` (spec coercion), making body a SECOND scroll
   * container next to <html> — the source of the double scrollbar. Force body
   * back to `visible` so only <html> scrolls the page.
   */
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
}

/* Single, stable scroll container for the whole product page.
 * scrollbar-gutter keeps the scrollbar space reserved so locking scroll when
 * the gallery opens does not shift/jump the layout. */
html:has(body.varzeshi-single-product-page) {
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/*
 * header.php closes .agw before main content, so product markup paints after the
 * header in DOM. Raise the header wrapper above Select2 (z-index:1051) and tabs.
 */
body.varzeshi-single-product-page > .agw:first-of-type {
  position: relative;
  z-index: 1100;
}

/* When slide cart is open, keep header/nav below the drawer */
body.varzeshi-single-product-page:has(.varzeshi-slide-cart.opened) > .agw:first-of-type {
  z-index: 100;
}

body.varzeshi-single-product-page:has(.varzeshi-slide-cart.opened) header,
body.varzeshi-single-product-page:has(.varzeshi-slide-cart.opened) .varzeshi-header-nav {
  z-index: auto !important;
}

body.varzeshi-single-product-page .kav-single-product {
  position: relative;
  z-index: 1;
}

body.varzeshi-single-product-page header {
  background-color: transparent;
}

body.varzeshi-single-product-page header .varzeshi-cart-dd,
body.varzeshi-single-product-page header .varzeshi-account-dd {
  z-index: 2;
}

body.varzeshi-single-product-page header .varzeshi-mini-cart__panel,
body.varzeshi-single-product-page header .varzeshi-account-dd__panel {
  position: relative;
  isolation: isolate;
  background-color: #ffffff !important;
}

body.varzeshi-single-product-page footer {
  background-color: #f5f5f5 !important;
}

body.varzeshi-single-product-page .kav-single-product {
  padding-bottom: 0px;
}

body.varzeshi-single-product-page .kav-single-product .container {
  max-width: 1320px;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
body.varzeshi-single-product-page .kav-single-product-breadcrumb {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  gap: 0;
}

body.varzeshi-single-product-page .kav-single-product-breadcrumb li {
  flex: 0 0 auto;
}

body.varzeshi-single-product-page .kav-single-product-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--vz-sp-muted, #929292);
  margin-inline: 12px;
}

body.varzeshi-single-product-page .kav-single-product-breadcrumb li a {
  color: var(--vz-sp-muted, #929292);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.varzeshi-single-product-page .kav-single-product-breadcrumb li a:hover {
  color: var(--vz-sp-primary, #ff3539);
}

body.varzeshi-single-product-page .kav-single-product-breadcrumb li.is-current {
  color: var(--vz-sp-secondary, #5e5e5e);
}

@media (max-width: 991.98px) {
  body.varzeshi-single-product-page .kav-single-product-breadcrumb {
    margin-bottom: 16px;
    margin-inline: -12px;
    padding-inline: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  body.varzeshi-single-product-page .kav-single-product-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  body.varzeshi-single-product-page .kav-single-product-breadcrumb li {
    white-space: nowrap;
    font-size: 12px;
    line-height: 18px;
  }

  body.varzeshi-single-product-page .kav-single-product-breadcrumb li:not(:last-child)::after {
    margin-inline: 8px;
  }
}

body.varzeshi-single-product-page .kav-single-product-bottom-nav-price {
  z-index: 1040;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06);
}

body.varzeshi-single-product-page .kav-single-product-bottom-nav-price.fixed {
  transform: translateY(0);
}

/* ── Sticky bottom bar ─────────────────────────────────────────── */
body.varzeshi-single-product-page .kav-single-product-bottom-nav-price {
  padding: 18px 16px;
}

@media only screen and (min-width: 992px) {
  body.varzeshi-single-product-page .kav-single-product-bottom-nav-price {
    padding: 22px 0;
  }
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-checkout {
  margin-inline-start: 0;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .kav-single-product-info-payment-price {
  border-top: 0;
  margin: 0 !important;
  padding: 0 0 0 15px !important;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-price__amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 1.15;
  padding-inline-end: 18px;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-price__inner {
  position: relative;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .price-regular {
  font-size: 10px;
  line-height: 1.2;
  margin-bottom: 0;
  white-space: nowrap;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .price-regular-currency {
  font-size: 9px;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-price__sale {
  white-space: nowrap;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .price {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .toman {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500 !important;
  color: #666;
  white-space: nowrap;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .discount {
  font-size: 11px;
  line-height: 1.2;
  padding: 5px 7px;
  position: absolute;
  top: 50%;
  inset-inline-end: -6px;
  transform: translateY(-50%) rotate(-90deg) scale(0.9);
  flex-shrink: 0;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .kav-single-product-info-payment-quantity {
  padding: 10px 12px;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .kav-single-product-info-payment-btn {
  padding: 13px 18px;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop {
  min-width: 0;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop__checkout {
  margin-inline-start: auto;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-price {
  border-top: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-price .price {
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-price .toman {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300 !important;
  color: #000;
  white-space: nowrap;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-price .price-regular {
  font-size: 12px;
  line-height: 18px;
  color: #a0a3a7;
  margin-bottom: 2px;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-price .discount {
  font-size: 12px;
  line-height: 18px;
  color: #ff3539;
  background-color: #fff0f1;
  transform: rotate(-90deg);
  -webkit-mask: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAzNCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODI3NzczIDIuODk4MzdDMC4yMzk3MzQgMS41NzU3NyAxLjIwNzg1IDAuMDg1ODQ1OSAyLjY1NTI5IDAuMDg1ODQ1OUwzMS4zMzc3IDAuMDg1ODQ1OUMzMi43ODUxIDAuMDg1ODQ1OSAzMy43NTMyIDEuNTc1NzggMzMuMTY1MiAyLjg5ODM5TDMwLjc3NyA4LjI2OTc5QzMwLjU0NyA4Ljc4NzA4IDMwLjU0NyA5LjM3NzYgMzAuNzc3IDkuODk0ODhMMzMuMTY1MiAxNS4yNjYzQzMzLjc1MzIgMTYuNTg4OSAzMi43ODUxIDE4LjA3ODggMzEuMzM3NyAxOC4wNzg4TDIuNjU1MjggMTguMDc4OEMxLjIwNzg1IDE4LjA3ODggMC4yMzk3MzQgMTYuNTg4OSAwLjgyNzc3MyAxNS4yNjYzTDMuMjE1OTYgOS44OTQ4NkMzLjQ0NTk0IDkuMzc3NTkgMy40NDU5NCA4Ljc4NzA4IDMuMjE1OTYgOC4yNjk4MUwwLjgyNzc3MyAyLjg5ODM3WiIgZmlsbD0iI0ZGRjBGMSIgc3R5bGU9ImZpbGw6I0ZGRjBGMTtmaWxsOmNvbG9yKGRpc3BsYXktcDMgMS4wMDAwIDAuOTQyNiAwLjk0MzUpO2ZpbGwtb3BhY2l0eToxOyIvPgo8L3N2Zz4K) 0 0/100% 100%;
  mask: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAzNCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODI3NzczIDIuODk4MzdDMC4yMzk3MzQgMS41NzU3NyAxLjIwNzg1IDAuMDg1ODQ1OSAyLjY1NTI5IDAuMDg1ODQ1OUwzMS4zMzc3IDAuMDg1ODQ1OUMzMi43ODUxIDAuMDg1ODQ1OSAzMy43NTMyIDEuNTc1NzggMzMuMTY1MiAyLjg5ODM5TDMwLjc3NyA4LjI2OTc5QzMwLjU0NyA4Ljc4NzA4IDMwLjU0NyA5LjM3NzYgMzAuNzc3IDkuODk0ODhMMzMuMTY1MiAxNS4yNjYzQzMzLjc1MzIgMTYuNTg4OSAzMi43ODUxIDE4LjA3ODggMzEuMzM3NyAxOC4wNzg4TDIuNjU1MjggMTguMDc4OEMxLjIwNzg1IDE4LjA3ODggMC4yMzk3MzQgMTYuNTg4OSAwLjgyNzc3MyAxNS4yNjYzTDMuMjE1OTYgOS44OTQ4NkMzLjQ0NTk0IDkuMzc3NTkgMy40NDU5NCA4Ljc4NzA4IDMuMjE1OTYgOC4yNjk4MUwwLjgyNzc3MyAyLjg5ODM3WiIgZmlsbD0iI0ZGRjBGMSIgc3R5bGU9ImZpbGw6I0ZGRjBGMTtmaWxsOmNvbG9yKGRpc3BsYXktcDMgMS4wMDAwIDAuOTQyNiAwLjk0MzUpO2ZpbGwtb3BhY2l0eToxOyIvPgo8L3N2Zz4K) 0 0/100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body.varzeshi-single-product-page .varzeshi-bottom-bar-desktop .kav-single-product-info-payment-btn {
  padding: 15px 33px;
  white-space: nowrap;
}

@media only screen and (max-width: 575px) {
  body.varzeshi-single-product-page .kav-single-product {
    padding-top: 25px;
    padding-bottom: 80px;
  }

  body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-checkout {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
  }

  body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .varzeshi-bottom-bar-actions {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.varzeshi-single-product-page .varzeshi-bottom-bar-mobile .kav-single-product-info-payment-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 14px;
  }
}

/* Share modal — copy link feedback */
body.varzeshi-single-product-page .modal-kav-share [data-copy].is-copied {
  opacity: 0.85;
}

body.varzeshi-single-product-page .modal-kav-share [data-copy].is-copied .varzeshi-share-copy-btn-label::after {
  content: " ✓";
}

body.varzeshi-single-product-page .varzeshi-share-copy-message {
  color: var(--vz-sp-success, #1a7f37);
  font-weight: 500;
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.varzeshi-single-product-page .varzeshi-share-copy-message.is-visible {
  opacity: 1;
}

body.varzeshi-single-product-page .varzeshi-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 2000;
  transform: translateX(-50%) translateY(12px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.varzeshi-single-product-page .varzeshi-copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media only screen and (max-width: 575px) {
  body.varzeshi-single-product-page .varzeshi-copy-toast {
    bottom: 84px;
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
  }
}

body.varzeshi-single-product-page .kav-single-product-tabs.fixed {
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 992px) {
  body.varzeshi-single-product-page .kav-single-product-tabs {
    overflow: visible;
  }
}

body.varzeshi-single-product-page .varzeshi-product-wishlist.is-active .icon-heart-7 {
  color: var(--vz-sp-wishlist, #eb4646);
}

/* Mobile icon bar: override sticky :hover/:focus after tap on iOS/Android. */
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist:not(.is-active),
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist:not(.is-active):hover,
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist:not(.is-active):focus,
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist:not(.is-active):focus-visible {
  color: var(--vz-sp-secondary, #5e5e5e) !important;
}

body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist:not(.is-active) .icon-heart-7 {
  color: var(--vz-sp-secondary, #5e5e5e) !important;
}

body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist.is-active,
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist.is-active:hover,
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist.is-active:focus,
body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist.is-active:focus-visible {
  color: var(--vz-sp-wishlist, #eb4646) !important;
}

body.varzeshi-single-product-page .kav-single-product-icons-mobile .varzeshi-product-wishlist.is-active .icon-heart-7 {
  color: var(--vz-sp-wishlist, #eb4646) !important;
}

/* Mobile icon bar + bottom sheets — instant start, soft & mellow motion (zero delay). */
@media (max-width: 991.98px) {
  body.varzeshi-single-product-page {
    --vz-mobile-icons-duration: 0.65s;
    --vz-mobile-icons-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --vz-mobile-sheet-duration: 0.7s;
    --vz-mobile-sheet-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --vz-mobile-backdrop-duration: 0.55s;
    --vz-mobile-backdrop-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  body.varzeshi-single-product-page .kav-single-product-icons-mobile {
    opacity: 1;
    transform: translate3d(0, 10px, 0);
    animation: varzeshi-mobile-icons-enter var(--vz-mobile-icons-duration) var(--vz-mobile-icons-ease) 0s forwards;
    animation-delay: 0s !important;
    backface-visibility: hidden;
    will-change: transform;
  }
}

@keyframes varzeshi-mobile-icons-enter {
  from {
    transform: translate3d(0, 10px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.varzeshi-single-product-page .kav-single-product-icons-mobile {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Soften Bootstrap reboot impact on site chrome (Bootstrap loads only on product pages) */
body.varzeshi-single-product-page header a,
body.varzeshi-single-product-page header a:hover,
body.varzeshi-single-product-page header a:focus,
body.varzeshi-single-product-page header a:active,
body.varzeshi-single-product-page footer a,
body.varzeshi-single-product-page footer a:hover,
body.varzeshi-single-product-page footer a:focus,
body.varzeshi-single-product-page footer a:active {
  text-decoration: none;
}

body.varzeshi-single-product-page header .varzeshi-account__btn,
body.varzeshi-single-product-page header .varzeshi-account__btn:hover,
body.varzeshi-single-product-page header .varzeshi-account__btn:focus,
body.varzeshi-single-product-page header .varzeshi-account__btn:active,
body.varzeshi-single-product-page header .varzeshi-account__btn:focus-visible {
  color: #000000 !important;
  background-color: #cdf043 !important;
}

body.varzeshi-single-product-page header .varzeshi-cart > a,
body.varzeshi-single-product-page header .varzeshi-cart > a:hover,
body.varzeshi-single-product-page header .varzeshi-cart > a:focus,
body.varzeshi-single-product-page header .varzeshi-cart > a:active {
  color: #000000 !important;
}

body.varzeshi-single-product-page header .varzeshi-header-search,
body.varzeshi-single-product-page header .varzeshi-header-search:hover,
body.varzeshi-single-product-page header .varzeshi-header-search:focus,
body.varzeshi-single-product-page header .varzeshi-header-search:focus-visible {
  color: inherit !important;
  background: transparent !important;
}

body.varzeshi-single-product-page header .varzeshi-account-dd__list a,
body.varzeshi-single-product-page header .varzeshi-account-dd__list a:hover,
body.varzeshi-single-product-page header .varzeshi-account-dd__list a:focus {
  color: #000000 !important;
}

body.varzeshi-single-product-page header .varzeshi-account-dd__list li.is-logout a,
body.varzeshi-single-product-page header .varzeshi-account-dd__list li.is-logout a:hover,
body.varzeshi-single-product-page header .varzeshi-account-dd__list li.is-logout a:focus {
  color: #e11d48 !important;
}

body.varzeshi-single-product-page header .varzeshi-mini-cart__panel a.text-\[\#000000\],
body.varzeshi-single-product-page header .varzeshi-mini-cart__panel a.text-\[\#000000\]:hover,
body.varzeshi-single-product-page header .varzeshi-mini-cart__panel a.text-\[\#000000\]:focus {
  color: #000000 !important;
}

body.varzeshi-single-product-page header .varzeshi-mini-cart__remove,
body.varzeshi-single-product-page header .varzeshi-mini-cart__remove:hover,
body.varzeshi-single-product-page header .varzeshi-mini-cart__remove:focus {
  color: #9fa1a3 !important;
}

body.varzeshi-single-product-page header .varzeshi-mini-cart__remove:hover,
body.varzeshi-single-product-page header .varzeshi-mini-cart__remove:focus {
  color: #e11d48 !important;
}

body.varzeshi-single-product-page header .varzeshi-account-dd__list,
body.varzeshi-single-product-page header .varzeshi-mini-cart__panel ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

body.varzeshi-single-product-page header .varzeshi-mini-cart__panel {
  --vz-cart-pad-x: 16px;
}

body.varzeshi-single-product-page header .varzeshi-account-dd__panel {
  --vz-account-pad-x: 16px;
  --vz-account-icon: 36px;
}

/* Hide default WC variation price; custom UI handles it */
body.varzeshi-single-product-page .woocommerce-variation.single_variation {
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6,
body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6:disabled,
body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6.disabled,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6:disabled,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6.disabled,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6:disabled,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6.disabled {
  background-color: var(--vz-sp-primary, #ff3539) !important;
  border-color: var(--vz-sp-primary, #ff3539) !important;
  color: var(--vz-sp-on-primary, #fff) !important;
  opacity: 1;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6:disabled,
body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6.disabled,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6:disabled,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6.disabled,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6:disabled,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6.disabled,
body.varzeshi-single-product-page .single_add_to_cart_button.disabled,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].disabled {
  opacity: 0.45 !important;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6:not(:disabled):not(.disabled):hover,
body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6:not(:disabled):not(.disabled):focus,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6:not(:disabled):not(.disabled):hover,
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6:not(:disabled):not(.disabled):focus,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6:not(:disabled):not(.disabled):hover,
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6:not(:disabled):not(.disabled):focus {
  background-color: var(--vz-sp-primary-hover, #e02e32) !important;
  border-color: var(--vz-sp-primary-hover, #e02e32) !important;
  opacity: 1 !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-btn.btn-danger-6:not(:disabled):not(.disabled),
body.varzeshi-single-product-page .single_add_to_cart_button.btn-danger-6:not(:disabled):not(.disabled),
body.varzeshi-single-product-page [data-varzeshi-trigger-atc].btn-danger-6:not(:disabled):not(.disabled) {
  opacity: 1 !important;
}

body.varzeshi-single-product-page .varzeshi-color-swatch {
  cursor: pointer;
  user-select: none;
}

body.varzeshi-single-product-page .varzeshi-color-swatch > span {
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.varzeshi-single-product-page .varzeshi-color-swatch.is-selected > span {
  border-color: #111;
  transform: scale(1.08);
}

body.varzeshi-single-product-page .varzeshi-color-swatch.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field {
  position: relative;
  overflow: visible !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment {
  overflow: visible !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .varzeshi-select-wrap {
  position: relative !important;
  flex: 1 1 auto;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-container {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-container--default .select2-selection--single {
  border: 0 !important;
  background: transparent !important;
  height: auto !important;
  min-height: 24px;
  border-radius: 0 !important;
  width: 100% !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-container--open {
  z-index: 50;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .varzeshi-select-wrap .select2-dropdown,
body.varzeshi-single-product-page .kav-single-product-info-payment-field .varzeshi-select-wrap .select2-dropdown.varzeshi-payment-select-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
  background: #fff !important;
  z-index: 80 !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-search--dropdown {
  display: none !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results > .select2-results__options {
  width: 100% !important;
  max-height: 220px !important;
  padding: 6px !important;
  overflow-y: auto !important;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #d0d0d0 transparent;
}

/* Thin elegant scrollbar (WebKit) */
body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__options::-webkit-scrollbar {
  width: 3px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__options::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__options::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 99px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option {
  margin: 0 0 2px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #222 !important;
  background: transparent !important;
  white-space: nowrap !important;
  width: 100% !important;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option[aria-selected="true"] {
  background: #f3f3f3 !important;
  color: #111 !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option--highlighted[aria-selected],
body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option--highlighted[aria-selected="true"],
body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option--highlighted[aria-selected="false"],
body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option--highlighted,
body.varzeshi-single-product-page .kav-single-product-info-payment-field .select2-results__option:hover {
  background: #000 !important;
  color: #fff !important;
}

/* ── Price block (detail-product-7 + regular price) ───────────── */
body.varzeshi-single-product-page .kav-single-product-info-payment-price .price-regular {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  color: #a0a3a7;
  margin-bottom: 2px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price .price-regular [data-varzeshi-price-regular] {
  text-decoration: line-through;
  text-decoration-color: #c5c7cb;
  text-decoration-thickness: 1.5px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price .price-regular-currency {
  font-size: 11px;
  font-weight: 500;
  color: #b0b3b7;
  text-decoration: none;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price .price-regular.is-hidden,
body.varzeshi-single-product-page .kav-single-product-info-payment-price .price-regular[hidden],
body.varzeshi-single-product-page .kav-single-product-info-payment-price .discount.is-hidden,
body.varzeshi-single-product-page .kav-single-product-info-payment-price .discount[hidden],
body.varzeshi-single-product-page .kav-single-product-info-payment-price .discount:empty {
  display: none !important;
}

/* Tighter payment panel spacing */
body.varzeshi-single-product-page .kav-single-product-info-payment-title {
  margin-bottom: 10px !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price {
  margin-top: 10px !important;
  padding-top: 30px !important;
  margin-bottom: 10px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-field {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Hide any leftover WVS button grids inside cart panel */
body.varzeshi-single-product-page .kav-single-product-info-payment .variable-items-wrapper {
  display: none !important;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price.sm .price {
  font-size: 16px;
  line-height: 24px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price.sm .toman {
  font-size: 12px;
  line-height: 18px;
}

body.varzeshi-single-product-page .kav-single-product-info-payment-price.sm .discount {
  transform: rotate(-90deg) scale(0.9);
}

/* ── Gallery (match detail-product-7) ─────────────────────────── */
body.varzeshi-single-product-page .kav-single-product-image {
  padding-left: 36px;
}

body.varzeshi-single-product-page .kav-single-product-image-icons {
  z-index: 5;
}

body.varzeshi-single-product-page .kav-single-product-image-icons li button,
body.varzeshi-single-product-page .kav-single-product-image-icons li a {
  color: inherit;
  line-height: 1;
}

body.varzeshi-single-product-page .kav-single-product-image-large {
  background-color: transparent;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  padding: 35px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.varzeshi-single-product-page .kav-single-product-image-large::before,
body.varzeshi-single-product-page .kav-single-product-image-large::after {
  pointer-events: none;
}

body.varzeshi-single-product-page .kav-single-product-image-large .bg {
  z-index: 1;
  pointer-events: none;
}

body.varzeshi-single-product-page .kav-single-product-image-large .discount {
  z-index: 3;
}

body.varzeshi-single-product-page .kav-single-product-image-large .timear,
body.varzeshi-single-product-page .kav-single-product-image-large .special-offer {
  z-index: 3;
}

body.varzeshi-single-product-page .kav-single-product-image-large .image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

body.varzeshi-single-product-page .kav-single-product-image-large .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.varzeshi-single-product-page .kav-single-product-image-images > div,
body.varzeshi-single-product-page .kav-single-product-image-images > button {
  width: 64px;
  height: 64px;
  border: 1.5px solid #f2f2f2;
  border-radius: 24px;
  cursor: pointer;
  background: #fff;
  padding: 0;
  flex: 0 0 64px;
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.varzeshi-single-product-page .kav-single-product-image-images > div:hover,
body.varzeshi-single-product-page .kav-single-product-image-images > div.is-active,
body.varzeshi-single-product-page .kav-single-product-image-images > button:hover,
body.varzeshi-single-product-page .kav-single-product-image-images > button.is-active {
  border-color: var(--vz-sp-primary, #ff3539);
}

body.varzeshi-single-product-page .kav-single-product-image-images > div i,
body.varzeshi-single-product-page .kav-single-product-image-images > button i {
  font-size: 24px;
  color: #ddd;
}

body.varzeshi-single-product-page .kav-single-product-image-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
}

@media (max-width: 991.98px) {
  body.varzeshi-single-product-page .kav-single-product-image {
    padding-left: 0;
  }

  body.varzeshi-single-product-page .kav-single-product-image-large {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    padding: 28px 24px;
  }

  body.varzeshi-single-product-page .kav-single-product-image-images > div,
  body.varzeshi-single-product-page .kav-single-product-image-images > button {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 18px;
  }
}

/* ── Gallery lightbox (custom — avoids Bootstrap modal conflicts) ─ */
/*
 * Scroll lock: freeze <html> (the single scroll container). scrollbar-gutter
 * stable (above) keeps the scrollbar space reserved, so no layout shift/jump.
 */
html.varzeshi-gallery-open {
  overflow: hidden !important;
}

body.varzeshi-gallery-open {
  touch-action: none;
}

.varzeshi-gallery-lightbox:not(.is-open) {
  display: none !important;
  pointer-events: none;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  pointer-events: none;
  overscroll-behavior: none;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox.is-open {
  display: flex;
  pointer-events: auto;
  overflow: hidden;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox.is-open.is-preparing .varzeshi-gallery-lightbox__backdrop {
  pointer-events: none;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90vh;
  margin: auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
}

body.varzeshi-single-product-page .varzeshi-gallery-lightbox__content {
  position: relative;
  padding: 72px 24px 24px;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  body.varzeshi-single-product-page .varzeshi-gallery-lightbox.is-open {
    align-items: flex-end;
  }

  body.varzeshi-single-product-page .varzeshi-gallery-lightbox__panel {
    max-height: 92vh;
    margin: 0;
    border-radius: 16px 16px 0 0;
  }

  body.varzeshi-single-product-page .varzeshi-gallery-lightbox__content {
    padding-top: 72px;
  }
}

@media (min-width: 992px) {
  body.varzeshi-single-product-page .varzeshi-gallery-lightbox.is-open {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  body.varzeshi-single-product-page .varzeshi-gallery-lightbox__panel {
    width: min(786px, calc(100% - 48px));
    max-width: 786px;
    border-radius: 24px;
  }

  body.varzeshi-single-product-page .varzeshi-gallery-lightbox__content {
    overflow-y: hidden;
    overscroll-behavior: contain;
  }
}

body.varzeshi-single-product-page .modal-backdrop {
  z-index: 10050 !important;
}

body.varzeshi-single-product-page .modal.modal-mobile.show {
  z-index: 10055 !important;
}

/* Mobile bottom-sheet modals (share, icons, video, price offer).
 * detail-product-7 sets opacity:0/visibility:hidden on .modal-mobile which
 * hides the panel while Bootstrap backdrop still shows → black screen. */
@media (max-width: 991.98px) {
  body.varzeshi-single-product-page .modal.modal-mobile {
    z-index: 10055 !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden;
    transition: visibility 0s linear var(--vz-mobile-sheet-duration) !important;
  }

  body.varzeshi-single-product-page .modal.modal-mobile.show {
    visibility: visible !important;
    pointer-events: auto;
    transition: visibility 0s linear 0s !important;
  }

  body.varzeshi-single-product-page .modal.modal-mobile.fade {
    opacity: 1 !important;
  }

  body.varzeshi-single-product-page .modal.modal-mobile:not(.show) .modal-dialog {
    transform: translate3d(0, 100%, 0) !important;
    opacity: 1 !important;
  }

  body.varzeshi-single-product-page .modal.modal-mobile .modal-dialog {
    position: relative;
    z-index: 1;
    transform-origin: center bottom;
    transform: translate3d(0, 100%, 0) !important;
    opacity: 1 !important;
    backface-visibility: hidden;
    transition: transform var(--vz-mobile-sheet-duration) var(--vz-mobile-sheet-ease) 0s !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
    max-height: 90vh;
    pointer-events: auto;
  }

  body.varzeshi-single-product-page .modal.modal-mobile.show .modal-dialog {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
  }

  body.varzeshi-single-product-page .modal-backdrop.fade {
    transition: opacity var(--vz-mobile-backdrop-duration) var(--vz-mobile-backdrop-ease) 0s !important;
    transition-delay: 0s !important;
  }

  @media (prefers-reduced-motion: reduce) {
    body.varzeshi-single-product-page .modal.modal-mobile .modal-dialog {
      transition: none !important;
    }

    body.varzeshi-single-product-page .modal-backdrop.fade {
      transition: none !important;
    }
  }

  body.varzeshi-single-product-page .modal.modal-mobile .modal-dialog.modal-dialog-centered {
    display: block !important;
    min-height: auto !important;
    align-items: stretch !important;
  }

  body.varzeshi-single-product-page .modal.modal-mobile .modal-content {
    background-color: #fff !important;
    border: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden auto;
    max-height: 90vh;
  }

  body.varzeshi-single-product-page .modal.modal-mobile .modal-body {
    background-color: #fff;
  }
}

body.varzeshi-single-product-page .modal-kav-gallery .nav {
  display: none !important;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large {
  position: relative;
  padding: 0 64px;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large .wrapper {
  border: 1.5px solid #f2f2f2;
  border-radius: 24px;
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  background: #fff;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large .swiper-slide .img {
  min-height: 380px;
  padding: 32px 24px;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large .swiper-slide img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Gallery nav + close icons */
body.varzeshi-single-product-page .modal-kav-gallery .title {
  top: 24px;
  right: 24px;
  left: 24px;
  z-index: 6;
}

body.varzeshi-single-product-page .modal-kav-gallery .title .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--vz-sp-muted, #929292);
  cursor: pointer;
  transition: color 0.2s ease;
}

body.varzeshi-single-product-page .modal-kav-gallery .title .modal-close:hover,
body.varzeshi-single-product-page .modal-kav-gallery .title .modal-close:focus-visible {
  color: var(--vz-sp-primary, #ff3539);
}

body.varzeshi-single-product-page .modal-kav-gallery .title .modal-close i {
  font-size: 20px;
  line-height: 1;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  background: #fff;
  color: var(--vz-sp-secondary, #5e5e5e);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev .swiper-navigation-icon,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next .swiper-navigation-icon {
  display: none !important;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev::after,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next::after {
  content: "\ea29";
  font-family: "icomoon" !important;
  font-size: 18px;
  line-height: 1;
  color: currentColor;
  font-weight: 500;
  display: block;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev::after {
  transform: none !important;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next::after {
  transform: rotate(180deg) !important;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev:hover,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next:hover,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev:focus-visible,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next:focus-visible {
  color: var(--vz-sp-primary, #ff3539);
  border-color: var(--vz-sp-primary-soft, #ffd6d7);
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev.swiper-button-disabled,
body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next.swiper-button-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev {
  left: 8px;
  right: auto;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next {
  right: 8px;
  left: auto;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-small {
  margin-top: 12px;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper-slide {
  cursor: pointer;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper .img img {
  border: 1.5px solid #f2f2f2;
  border-radius: 16px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  transition: all 0.25s ease;
}

body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper-slide-thumb-active .img::after,
body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper-slide.is-active .img::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px) scaleX(1);
  width: 16px;
  height: 2px;
  background-color: var(--vz-sp-primary, #ff3539);
}

body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper-slide-thumb-active .img img,
body.varzeshi-single-product-page .modal-kav-gallery .images-small .swiper-slide.is-active .img img {
  border-color: #000;
  border-radius: 20px;
  width: 72px;
  height: 72px;
}

body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter {
  position: absolute !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  min-width: 4ch;
  height: auto;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  color: #a7a7a7;
  top: 24px;
  left: 50% !important;
  right: auto !important;
  inset-inline-start: 50% !important;
  inset-inline-end: auto !important;
  transform: translateX(-50%) !important;
  writing-mode: horizontal-tb !important;
  direction: ltr;
  text-align: center;
  z-index: 2;
}

body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter .vz-gallery-total,
body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter .vz-gallery-sep,
body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter .vz-gallery-current {
  display: inline-block !important;
  white-space: nowrap !important;
  width: auto !important;
  float: none !important;
}

body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter .vz-gallery-current {
  color: #000;
}

@media (max-width: 767.98px) {
  body.varzeshi-single-product-page .modal-kav-gallery .images-large {
    padding: 0 12px;
  }

  body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev,
  body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  }

  body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-prev {
    left: 4px;
    right: auto;
  }

  body.varzeshi-single-product-page .modal-kav-gallery .images-large > .swiper-button-next {
    right: 4px;
    left: auto;
  }

  body.varzeshi-single-product-page .modal-kav-gallery .images-large .swiper-slide .img {
    min-height: 280px;
    padding: 20px 12px;
  }

  body.varzeshi-single-product-page .modal-kav-gallery .images-large .swiper-slide img {
    max-height: 320px;
  }

  body.varzeshi-single-product-page .modal-kav-gallery .swiper-counter {
    position: relative !important;
    transform: none !important;
    top: auto;
    left: auto !important;
    right: auto !important;
    inset-inline: auto !important;
    margin: 16px auto 0;
  }
}

/* Product reviews — Style 2 (aligned with specs / description tabs) */
body.varzeshi-single-product-page .kav-single-product-comments {
  margin: 100px 0 64px;
}

body.varzeshi-single-product-page .kav-single-product-info-product {
  margin-top: 64px;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__heading {
  margin-bottom: 24px !important;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__heading__title {
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: #000;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__heading__counter {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.48);
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .send-comment-nk {
  margin: 0 0 32px;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .send-comment-nk__form {
  background-color: #fff;
  border-color: #ededed;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .send-comment-nk__title {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 20px;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .send-comment-nk__form .form-group label {
  background-color: #fff;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk {
  margin-top: 0;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item {
  margin-top: 16px;
  background-color: #fff;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item .author .name {
  font-size: 12px;
  line-height: 18px;
  color: #000;
  letter-spacing: -0.02em;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item .author .date {
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.4);
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item .author img {
  width: 32px;
  height: 32px;
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item p {
  font-size: 14px;
  line-height: 24px;
  margin: 20px 0;
  color: rgba(0, 0, 0, 0.64);
}

body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .no-comments {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.48);
  padding: 16px 0 0;
}

@media only screen and (max-width: 991px) {
  body.varzeshi-single-product-page .kav-single-product-comments {
    margin: 48px 0 32px;
  }

  body.varzeshi-single-product-page .kav-single-product-info-product {
    margin-top: 48px;
  }

  body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__heading__title {
    font-size: 18px;
    line-height: 28px;
  }

  body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .send-comment-nk__form {
    padding: 24px;
    border-radius: 12px;
  }

  body.varzeshi-single-product-page .varzeshi-product-comments-style-2 .comments-two-nk__item {
    padding: 20px 24px 24px;
    border-radius: 16px;
  }
}

body.varzeshi-single-product-page .is-sold-individually .kav-single-product-info-payment-quantity {
  display: none !important;
}

body.varzeshi-single-product-page .varzeshi-product-video-player iframe,
body.varzeshi-single-product-page .varzeshi-product-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: #000;
}

body.varzeshi-single-product-page .varzeshi-product-video__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

body.varzeshi-single-product-page .varzeshi-product-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 992px) {
  body.varzeshi-single-product-page .modal-kav-video.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.varzeshi-single-product-page .modal-kav-video .modal-dialog {
    transform: none !important;
  }
}

/* ── Theme color bindings (detail-product-7 + shared UI) ─────────── */
body.varzeshi-single-product-page .btn-danger-6,
body.varzeshi-single-product-page .btn-danger-6:hover,
body.varzeshi-single-product-page .btn-danger-6:focus,
body.varzeshi-single-product-page .btn-danger-6:active {
  background-color: var(--vz-sp-primary, #ff3539) !important;
  border-color: var(--vz-sp-primary, #ff3539) !important;
  color: var(--vz-sp-on-primary, #fff) !important;
}

body.varzeshi-single-product-page .btn-danger-6:hover,
body.varzeshi-single-product-page .btn-danger-6:focus,
body.varzeshi-single-product-page .btn-danger-6:active {
  background-color: var(--vz-sp-primary-hover, #e02e32) !important;
  border-color: var(--vz-sp-primary-hover, #e02e32) !important;
}

body.varzeshi-single-product-page .kav-single-product-image-large .discount {
  background-color: var(--vz-sp-discount-bg, #ff0000) !important;
  color: var(--vz-sp-discount-text, #fff) !important;
}

body.varzeshi-single-product-page .kav-single-product-image-large .timear i {
  color: var(--vz-sp-countdown, #ff0000) !important;
}

body.varzeshi-single-product-page .kav-single-product-image-large .special-offer {
  color: var(--vz-sp-offer-text, #fff) !important;
  background-color: var(--vz-sp-offer-bg, #ff293f) !important;
  background-image: linear-gradient(
    291.86deg,
    var(--vz-sp-offer-bg-2, #bc2830) -20.23%,
    var(--vz-sp-offer-bg, #ff293f) 52.15%
  ) !important;
}

body.varzeshi-single-product-page .kav-single-product-key-category a:hover,
body.varzeshi-single-product-page .kav-single-product-more-reasonable-price button:hover,
body.varzeshi-single-product-page .kav-single-product-icons-mobile button:hover {
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-tabs li.active i {
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-note-alert {
  color: var(--vz-sp-secondary, #5e5e5e) !important;
}

body.varzeshi-single-product-page .kav-single-product-comments-items li .info-user .status:not(.user) {
  background-color: var(--vz-sp-primary-tint-bg, #ffe2e2) !important;
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:hover,
body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:active,
body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:focus {
  background-color: var(--vz-sp-primary, #ff3539) !important;
  color: var(--vz-sp-on-primary, #fff) !important;
}

body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:hover i,
body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:active i,
body.varzeshi-single-product-page .kav-single-product-comments-items li .dropdown-item:focus i {
  color: var(--vz-sp-on-primary, #fff) !important;
}

body.varzeshi-single-product-page .kav-single-product-image-images > div.is-active,
body.varzeshi-single-product-page .kav-single-product-image-images > div:hover {
  border-color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .varzeshi-product-in-stock,
body.varzeshi-single-product-page .kav-single-product-info-payment .stock.in-stock {
  color: var(--vz-sp-success, #1a7f37) !important;
}

body.varzeshi-single-product-page .modal-kav-share .btn-danger-6,
body.varzeshi-single-product-page .modal-register-price-offer .btn-danger-6 {
  background-color: var(--vz-sp-primary, #ff3539) !important;
  border-color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .modal-kav-icons-items button:hover,
body.varzeshi-single-product-page .modal-kav-icons-items a:hover {
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-heading-chevron.is-open,
body.varzeshi-single-product-page .kav-single-product-heading:hover .kav-single-product-heading-chevron {
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-specs-table tr:hover td:first-child,
body.varzeshi-single-product-page .kav-single-product-specs-table tr:hover td:last-child {
  color: var(--vz-sp-primary, #ff3539) !important;
}

body.varzeshi-single-product-page .kav-single-product-related .swiper-button-prev:hover,
body.varzeshi-single-product-page .kav-single-product-related .swiper-button-next:hover {
  border-color: var(--vz-sp-primary-soft, #ffd6d7) !important;
  color: var(--vz-sp-primary, #ff3539) !important;
}
