/* Single Product Page - Dynamic Styles */

/* Gallery thumbs carousel */
.product-gallery-thumbs {
  display: block;
}
.product-gallery-thumbs .swiper-product-gallery-thumbs {
  width: 100%;
}
.product-gallery-thumbs .swiper-slide {
  height: auto;
}
.product-gallery-thumbs .thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s linear;
}
.product-gallery-thumbs .thumb img {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
  transition: transform 0.3s linear;
}
.product-gallery-thumbs .thumb:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: rgba(255, 255, 255, 0.04);
}
.product-gallery-thumbs .thumb:hover img {
  transform: scale(1.1);
}
.product-gallery-thumbs .thumb.active {
  border-color: #dec87b;
  background-color: rgba(222, 200, 123, 0.08);
  box-shadow: 0 0 0 3px rgba(222, 200, 123, 0.15);
}
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-prev,
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-next {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  margin-top: -18px;
  top: 50%;
  background: rgba(33, 35, 43, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 50% !important;
  color: #fff !important;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-prev::after,
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-next::after {
  display: none !important;
  content: none !important;
}
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-prev svg,
.bg-salute .product-gallery-thumbs .product-gallery-thumbs-next svg {
  display: block !important;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.product-gallery-thumbs-prev {
  right: auto;
  left: -10px;
}
.product-gallery-thumbs-next {
  left: auto;
  right: -10px;
}
.product-gallery-thumbs .swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 575.98px) {
  .product-gallery-thumbs-prev {
    left: -4px;
  }
  .product-gallery-thumbs-next {
    right: -4px;
  }
}

/* Star rating - filled state */
.icon-s-star-11.filled {
  color: #efe253;
}
.salute-rating-stars {
  display: inline-flex;
  gap: 6px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  user-select: none;
}
.salute-rating-stars i {
  transition: color 0.2s ease, transform 0.15s ease;
}
.salute-rating-stars i:hover {
  transform: scale(1.15);
}

/* مخفی کردن نماد پول پیش‌فرض ووکامرس چون "تومان" را در .unit نمایش می‌دهیم */
.product-info-salute .price .woocommerce-Price-currencySymbol {
  display: none;
}
.product-add-to-cart-salute .price .woocommerce-Price-currencySymbol {
  display: none;
}

/* Add to cart wrapper */
.product-add-to-cart-salute {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.product-add-to-cart-salute .quantity,
.product-add-to-cart-salute form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-add-to-cart-salute .quantity {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.product-add-to-cart-salute .quantity .qty {
  width: 70px;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  height: 48px;
  outline: none;
  -moz-appearance: textfield;
}
.product-add-to-cart-salute .quantity .qty::-webkit-outer-spin-button,
.product-add-to-cart-salute .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-add-to-cart-salute .quantity-minus,
.product-add-to-cart-salute .quantity-plus {
  width: 38px;
  height: 48px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.product-add-to-cart-salute .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dec87b;
  color: #1a1a1a;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.product-add-to-cart-salute .single_add_to_cart_button:hover {
  background: #e8d488;
}

/* Variation select dropdowns (محصولات متغیر) */
.product-add-to-cart-salute table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.product-add-to-cart-salute table.variations tr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.product-add-to-cart-salute table.variations th {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 14px;
  text-align: right;
  padding: 0;
  border: 0;
}
.product-add-to-cart-salute table.variations td {
  padding: 0;
  border: 0;
}
.product-add-to-cart-salute table.variations select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
}
.product-add-to-cart-salute .single_variation_wrap {
  width: 100%;
}
.product-add-to-cart-salute .woocommerce-variation {
  margin-bottom: 12px;
}
.product-add-to-cart-salute .woocommerce-variation-price {
  color: #dec87b;
  font-weight: 700;
}

/* Review form grid */
.comment-form-salute .comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.comment-form-salute .comment-form-grid .form-group.full {
  grid-column: 1 / -1;
}
.comment-form-salute .comment-form-grid .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-form-salute .comment-form-grid label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.comment-form-salute .comment-form-grid .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}
.comment-form-salute .comment-form-grid .form-control:focus {
  border-color: #dec87b;
}
.comment-form-salute .submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.comment-form-salute .submit-row .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
}
@media (max-width: 575.98px) {
  .comment-form-salute .comment-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Wishlist YITH integration styling */
.product-info-salute .actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-info-salute .actions-top .yith-wcwl-add-to-wishlist {
  margin: 0;
}
.product-info-salute .actions-top .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a,
.product-info-salute .actions-top .yith-wcwl-wishlistaddedbrowse a,
.product-info-salute .actions-top .yith-wcwl-wishlistexistsbrowse a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-size: 0;
}
.product-info-salute .actions-top .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a:hover,
.product-info-salute .actions-top .yith-wcwl-wishlistaddedbrowse a:hover,
.product-info-salute .actions-top .yith-wcwl-wishlistexistsbrowse a:hover {
  color: #ff5b8e;
  border-color: rgba(238, 33, 108, 0.3);
  background: rgba(238, 33, 108, 0.1);
}
.product-info-salute .actions-top .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a::before {
  content: "\e900";
  font-family: 'icomoon';
  font-size: 16px;
  display: inline-block;
  line-height: 1;
}

/* Hide carousel arrows when fewer than 4 gallery items */
.product-gallery-thumbs.thumbs-no-nav .product-gallery-thumbs-prev,
.product-gallery-thumbs.thumbs-no-nav .product-gallery-thumbs-next {
  display: none !important;
}

/* Gallery video — centered in main stage like product image */
.product-gallery-main .image {
  position: relative;
}
.product-gallery-main .product-gallery-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(12, 13, 18, 0.55);
  z-index: 2;
}
.product-gallery-main .product-gallery-video[hidden] {
  display: none !important;
}
.product-gallery-main .product-gallery-video iframe,
.product-gallery-main .product-gallery-video video {
  width: 88%;
  max-width: 560px;
  max-height: 88%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 15px;
  object-fit: contain;
  background: #0c0d12;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.product-gallery-thumbs .thumb-video {
  position: relative;
}
.product-gallery-thumbs .thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 13, 18, 0.4);
  color: #dec87b;
  pointer-events: none;
}
.product-gallery-thumbs .thumb-play svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* Color variation swatches */
.salute-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.salute-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: all 0.2s ease;
}
.salute-swatch:hover {
  border-color: rgba(222, 200, 123, 0.45);
  color: #fff;
}
.salute-swatch.active {
  border-color: #dec87b;
  background: rgba(222, 200, 123, 0.1);
  box-shadow: 0 0 0 3px rgba(222, 200, 123, 0.12);
  color: #fff;
}
.salute-swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex: 0 0 18px;
}
.salute-swatch-label {
  font-size: 13px;
  line-height: 1;
}
.product-add-to-cart-salute .salute-swatch-select {
  display: none !important;
}
