/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ظرف اصلی: کنار دکمه اسکرول بالا */
.custom-support-float {
  position: fixed;
  left: 80px; /* کنار دکمه اسکرول */
  bottom: 20px;
  z-index: 10050;
}

/* دکمه گرد اصلی */
.support-toggle {
  width: 55px;
  height: 55px;
  background-color: #044741;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}

/* منو بالای دکمه */
.support-menu {
  position: absolute;
  left: 0;
  bottom: 70px;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.support-menu.open {
  display: flex;
}

/* آیتم‌ها */
.support-item {
  display: flex;
  align-items: center;
  flex-direction: row; /* آیکن و متن در یک خط */
  text-decoration: none;
}

/* آیکن‌های دایره‌ای */
.support-icon {
  min-width: 42px; /* ثابت نگه داشتن اندازه */
  height: 42px;
  border-radius: 50%;
  background: #044741;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* متن کنار آیکن */
.support-text {
  margin-left: 10px;
  background: #fff;
  color: #333;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .custom-support-float {
    left: 70px;
    bottom: 15px;
  }
  .support-toggle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .support-icon {
    min-width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .support-text {
    font-size: 13px;
    padding: 5px 10px;
  }
}

/* رنگ و افکت چشمک‌زن برای دکمه هدفون (toggle) */
.support-toggle {
  background-color: #dbbe74 !important;
  /* چشمک‌زن بدون تداخل با rotate: */
  animation: headset-blink 1.3s ease-in-out infinite;
}

/* اگر دوست داری وقتی منو بازه چشمک نزنه، این خط رو نگه دار؛ اگر نه حذفش کن */
.support-toggle.open { animation: none; }

/* انیمیشن: هاله‌ی پالس‌مانند با box-shadow (transform دست نخورَد) */
@keyframes headset-blink {
  0%, 100% {
    box-shadow:
      0 4px 10px rgba(0,0,0,.25),
      0 0 0 0 rgba(219,190,116,.55);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 4px 10px rgba(0,0,0,.25),
      0 0 0 12px rgba(219,190,116,0);
    opacity: .92;
  }
}



@media (max-width: 768px) {
  .custom-support-float { display: none !important; }
}


/* ========== Artist Single – Polished UI (Woodmart/Woo) ========== */
:root{
  --gsr-accent:#DCBF74;   /* طلایی برند */
  --gsr-ink:#17202a;      /* تیترها */
  --gsr-text:#43505e;     /* متن بدنه */
  --gsr-muted:#7b8794;    /* متون کم‌اهمیت */
  --gsr-card:#ffffff;     /* زمینه کارت */
  --gsr-soft:#f6f7f9;     /* زمینه‌های نرم */
}

/* ظرف کلی صفحه */
body.single-artist .gsr-artist-page{
  max-width: 1240px !important;
  margin: 28px auto !important;
  padding: 0 18px !important;
  direction: rtl;
  color: var(--gsr-text);
}

/* ── هدر هنرمند ─────────────────────────────────── */
body.single-artist .gsr-artist-hero{
  display: grid !important;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--gsr-card);
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(23,32,42,.04);
  margin-bottom: 18px;
}
body.single-artist .gsr-artist-hero img{
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
body.single-artist .gsr-artist-hero__name{
  margin: 0 0 4px; color: var(--gsr-ink);
  font-weight: 800; font-size: 24px; letter-spacing: -.2px;
}
body.single-artist .gsr-artist-hero__profession{
  font-size: 14.5px; color: var(--gsr-muted);
}
body.single-artist .gsr-artist-hero__bio{
  background: var(--gsr-soft);
  border: 1px dashed #e7ebf0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 6px;
  line-height: 2;
}

/* تیتر بخش محصولات */
body.single-artist .artist-products-title{
  display: inline-block;
  font-size: 18px; font-weight: 800; color: var(--gsr-ink);
  margin: 14px 0 10px; position: relative;
}
body.single-artist .artist-products-title:after{
  content:""; display:block; width:72px; height:3px;
  background: var(--gsr-accent); border-radius:3px; margin-top:8px;
}

/* ── گرید محصولات 4 ستونه (با احترام به Woodmart) ───────────── */
body.single-artist ul.products,
body.single-artist .products,
body.single-artist .wd-products-holder,
body.single-artist .elements-grid,
body.single-artist .grid-items{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap: 26px !important;
  margin-top: 14px !important;
}

/* کارت محصول */
body.single-artist ul.products li.product,
body.single-artist .products li.product,
body.single-artist .products .product,
body.single-artist .wd-products-holder .product-grid-item{
  list-style: none !important;
  width:auto !important; float:none !important; margin:0 !important;
  background: var(--gsr-card);
  border:1px solid #eceff3;
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 6px 18px rgba(23,32,42,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display:flex !important; flex-direction:column; height:100%;
}
body.single-artist ul.products li.product:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(23,32,42,.08);
  border-color:#e2e7ee;
}

/* تصویر محصول */
body.single-artist ul.products li.product a img,
body.single-artist .product a img{
  width:100% !important; height:auto !important;
  aspect-ratio: 1/1; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.06));
  transition: transform .25s ease;
}
body.single-artist ul.products li.product:hover a img{ transform: scale(1.03); }

/* عنوان محصول – تمیز و دو خطی */
body.single-artist .woocommerce-loop-product__title,
body.single-artist .wd-entities-title a{
  margin: 10px 0 8px !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: var(--gsr-ink) !important; text-align:center !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height: 54px;
}

/* قیمت و دکمه‌ها */
body.single-artist ul.products li.product .price{
  text-align:center; font-size:14px; margin-bottom:8px; color:#222;
}
body.single-artist ul.products li.product .button,
body.single-artist .product a.button{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; margin-top:auto; /* بچسبه به پایین کارت */
  border-radius:10px; padding:10px 14px; font-size:13.5px;
  background: var(--gsr-accent); color:#0e2a2a; border:0;
}
body.single-artist ul.products li.product .button:hover{ filter: brightness(0.98); }

/* آیکون‌های علاقه‌مندی/مقایسه اگر هستند */
body.single-artist .wd-add-btns,
body.single-artist .product .wrap-wishlist-button,
body.single-artist .product .tawcvs-swatches{
  justify-content:center; gap:8px;
}

/* صفحه‌بندی */
body.single-artist .gsr-artist-products__pagination{
  margin: 18px 0 6px; display:flex; justify-content:center; gap:8px; flex-wrap:wrap;
}
body.single-artist .gsr-artist-products__pagination .page-numbers{
  min-width:38px;height:38px;line-height:38px;text-align:center;
  border-radius:10px;background:var(--gsr-soft);border:1px solid #e8ecf2;
  color:#344; padding:0 10px; text-decoration:none;
}
body.single-artist .gsr-artist-products__pagination .page-numbers.current{
  background:var(--gsr-accent); color:#0e2a2a; border-color:var(--gsr-accent);
}

/* ── ریسپانسیو ─────────────────────────────────────────────── */
@media (max-width:1200px){
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items{
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width:860px){
  body.single-artist .gsr-artist-hero{
    grid-template-columns: 88px 1fr;
  }
  body.single-artist .gsr-artist-hero img{ width:88px; height:88px; }
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items{
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap:20px !important;
  }
}
@media (max-width:420px){
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items{
    grid-template-columns: 1fr !important;
  }
  body.single-artist .gsr-artist-hero{
    grid-template-columns: 64px 1fr;
  }
  body.single-artist .gsr-artist-hero img{ width:64px;height:64px; }
}


/* ===== Artist page tweaks – bigger avatar, smaller titles, 6-cols on desktop ===== */

/* ۱) عکس هنرمند بزرگ‌تر */
body.single-artist .gsr-artist-hero img,
body.single-artist .gsr-artist-hero .artist-avatar img,
body.single-artist [class*="artist"] img.avatar {
  width: 140px !important;
  height: 140px !important;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
@media (min-width: 1200px){
  body.single-artist .gsr-artist-hero img,
  body.single-artist .gsr-artist-hero .artist-avatar img,
  body.single-artist [class*="artist"] img.avatar {
    width: 160px !important;
    height: 160px !important;
  }
}

/* ۲) عنوان محصولات کوچک‌تر و جمع‌وجورتر */
body.single-artist .woocommerce-loop-product__title,
body.single-artist .wd-entities-title a{
  font-size: 13.5px !important;          /* قبلاً 15px بود */
  line-height: 1.7 !important;
  min-height: 46px !important;            /* دو خطی تمیز */
}

/* ۳) ۶ ستونه شدن گرید محصولات روی دسکتاپ بزرگ */
@media (min-width: 1360px){
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items{
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

/* حاشیه‌های کارت‌ها کمی فشرده‌تر تا ۶‌ستونه شکیل‌تر شود */
@media (min-width: 1360px){
  body.single-artist ul.products li.product,
  body.single-artist .products li.product,
  body.single-artist .wd-products-holder .product-grid-item{
    padding: 14px 12px !important;
  }
}


/* ۱) عکس هنرمند – دایره کامل */
body.single-artist .gsr-artist-hero img,
body.single-artist .artist-avatar img,
body.single-artist [class*="artist"] img.avatar {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  object-fit: cover !important; /* جلوگیری از کشیده شدن */
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* ۲) گرید محصولات – ۵ تایی در دسکتاپ */
@media (min-width: 1280px){
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

/* ۳) حذف آیکون‌های علاقه‌مندی / مقایسه / جستجو */
body.single-artist .product-element-top .wd-add-btn,
body.single-artist .product-element-top .wd-compare-btn,
body.single-artist .product-element-top .wd-quick-view-btn,
body.single-artist .product-element-top .wd-action-btn,
body.single-artist .product-element-top .yith-wcwl-add-to-wishlist {
  display: none !important;
}


/* استایل بخش هنرمند */
body.single-artist .gsr-artist-hero,
body.single-artist .artist-header {
  text-align: center !important;
  margin-bottom: 40px;
}

/* عکس هنرمند */
body.single-artist .gsr-artist-hero img,
body.single-artist .artist-avatar img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 auto 15px auto !important; /* وسط چین + فاصله پایین */
  display: block;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* نام هنرمند */
body.single-artist .gsr-artist-hero .artist-name,
body.single-artist .artist-header .artist-name {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  color: #222;
}

/* حرفه هنرمند */
body.single-artist .gsr-artist-hero .artist-profession,
body.single-artist .artist-header .artist-role {
  font-size: 15px;
  font-weight: 500;
  color: #666;
  margin-top: 5px;
}


/* کانتینر هنرمند وسط چین */
body.single-artist .artist-header {
  text-align: center !important;
  margin-bottom: 40px;
}

/* عکس هنرمند دایره‌ای وسط */
body.single-artist .artist-header img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
  margin: 0 auto 15px auto !important; /* وسط چین + فاصله پایین */
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* نام هنرمند */
body.single-artist .artist-header .artist-name {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  color: #222;
}

/* حرفه هنرمند */
body.single-artist .artist-header .artist-profession {
  font-size: 15px;
  font-weight: 500;
  color: #666;
  margin-top: 5px;
}


/* === SINGLE PRODUCT – Artist box right aligned === */

/* 1) هدر هنرمند: تصویر سمت راست + متن‌ها سمت چپ (RTL) */
body.single-product .gsr-artist-header {
  display: flex !important;
  flex-direction: row-reverse !important;
  /* تصویر می‌رود راست */
  align-items: flex-start;
  gap: 12px;
  text-align: right;
}

/* مطمئن شو آواتار واقعاً سمت راست می‌ایستد */
body.single-product .gsr-artist-ava {
  order: 2;
}

body.single-product .gsr-artist-titlewrap {
  order: 1;
}

/* متن‌ها داخل کارت راست‌چین */
body.single-product .gsr-artist-name,
body.single-product .gsr-artist-profession,
body.single-product .gsr-artist-bio {
  text-align: right !important;
}

/* 2) ردیف لینک «مشاهده بیو…» و امتیازها: هر دو سمت راست */
body.single-product .gsr-artist-links {
  display: flex !important;
  flex-direction: row-reverse !important;
  /* شروع از راست */
  justify-content: flex-start !important;
  /* بچسبند به راست */
  gap: 12px;
  text-align: right;
}

/* ترتیب: اول لینک، بعد ستاره‌ها (در صورت نیاز جابه‌جا کن) */
body.single-product .gsr-artist-links a {
  order: 1;
}

body.single-product .gsr-artist-rating {
  order: 2;
  margin: 0 !important;
  /* هر مارجین اتومات را خنثی کن */
  margin-inline-start: 0 !important;
}

/* موبایل: مرکز نکن—همچنان راست بماند */
@media (max-width: 768px) {
  body.single-product .gsr-artist-header {
    flex-direction: column-reverse !important;
    align-items: flex-end;
  }

  body.single-product .gsr-artist-titlewrap {
    width: 100%;
  }

  body.single-product .gsr-artist-links {
    justify-content: flex-end !important;
  }
}



/* === SINGLE PRODUCT – راست‌چین کردن لینک و امتیاز هنرمند === */

/* کل باکس هنرمند را راست‌چین کن */
body.single-product .gsr-artist-inner {
  text-align: right !important;
}

/* لینک «مشاهده بیو…» سمت راست و inline */
body.single-product .gsr-artist-links {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

/* ردیف امتیاز/ستاره‌ها هم کنار لینک و سمت راست بایستد */
body.single-product .gsr-artist-rating {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  /* هر auto-margin قبلی خنثی شود */
  vertical-align: middle;
}

/* اگر لینک و امتیاز زیر هم می‌افتند، به‌صورت یک ردیف کنار هم نشان بده */
body.single-product .gsr-artist-links,
body.single-product .gsr-artist-rating {
  float: none !important;
  width: auto !important;
}

/* موبایل: همچنان راست‌چین بمانند (در صورت تنگی، زیر هم ولی راست) */
@media (max-width: 768px) {

  body.single-product .gsr-artist-links,
  body.single-product .gsr-artist-rating {
    display: inline-flex !important;
  }
}




/* ======= Final Fix – Artist Page ======= */

/* عکس هنرمند دایره و وسط */
body.single-artist .gsr-artist-hero img,
body.single-artist .artist-header img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto 15px auto !important; /* وسط چین + فاصله پایین */
}

/* کانتینر هنرمند وسط چین */
body.single-artist .gsr-artist-hero,
body.single-artist .artist-header {
  display: block !important;
  text-align: center !important;
}

/* نام و حرفه وسط چین */
body.single-artist .artist-name,
body.single-artist .artist-profession,
body.single-artist .artist-role {
  text-align: center !important;
  display: block;
}

/* محصولات ۵ تایی در دسکتاپ */
@media (min-width: 1280px){
  body.single-artist ul.products,
  body.single-artist .products,
  body.single-artist .wd-products-holder,
  body.single-artist .elements-grid,
  body.single-artist .grid-items {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 24px !important;
  }
}

/* حذف آیکون‌های اضافه */
body.single-artist .product-element-top .wd-add-btn,
body.single-artist .product-element-top .wd-compare-btn,
body.single-artist .product-element-top .wd-quick-view-btn,
body.single-artist .product-element-top .wd-action-btn,
body.single-artist .product-element-top .yith-wcwl-add-to-wishlist {
  display: none !important;
}


/* فقط تصویر شاخصِ محصول در صفحه هنرمند */
body.single-artist .product-element-top img ~ img,
body.single-artist .product-element-top .wd-secondary-image,
body.single-artist .product-element-top .secondary-image,
body.single-artist .product-element-top .hover-img,
body.single-artist .product-element-top .product-image-hover,
body.single-artist .product-element-top .wd-hover-images,
body.single-artist .product-element-top .product-gallery,
body.single-artist .product-element-top .product-thumbnails,
body.single-artist .product-element-top .owl-carousel,
body.single-artist .product-element-top .swiper,
body.single-artist .product-element-top .slick-slider {
  display: none !important;
}

/* مطمئن شو اولین تصویر دیده می‌شود */
body.single-artist .product-element-top img:first-child {
  opacity: 1 !important;
  visibility: visible !important;
}

/* اگر لایه‌بندی هاور تصویر باعث هم‌پوشانی می‌شود */
body.single-artist .product-element-top {
  overflow: hidden;
}

/* دکمه افزودن به سبد خرید وسط‌چین در صفحه هنرمند */
body.single-artist .product-grid-item .add-to-cart-loop,
body.single-artist .product-grid-item .add_to_cart_button,
body.single-artist .product-grid-item .button {
  display: block !important;
  margin: 10px auto !important;
  text-align: center !important;
}

body.single-artist .artist-profile img {
  border-radius: 50%; /* دایره‌ای بمونه */
  transition: all 0.8s ease-in-out;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeZoomIn 1s forwards;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==== Artist box on SINGLE PRODUCT – isolated fix ==== */
body.single-product .gsr-artist-card { margin-top: 14px; }
body.single-product .gsr-artist-inner{
  display:flex; flex-direction:column; gap:12px;
  padding:16px; background:#fff; border:1px solid #e9edf3; border-radius:12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* header: avatar RIGHT, texts LEFT (RTL) */
body.single-product .gsr-artist-header{
  display:flex; flex-direction:row-reverse !important; /* تصویر سمت راست */
  align-items:flex-start; gap:12px; text-align:right;
}

body.single-product .gsr-artist-ava img{
  width:78px; height:78px; border-radius:50%; object-fit:cover;
  border:3px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,.08);
}

body.single-product .gsr-artist-titlewrap{
  flex:1; display:flex; flex-direction:column; align-items:flex-start;
}
body.single-product .gsr-artist-name{
  font-weight:800; font-size:15px; color:#222; margin:0 0 6px;
}
body.single-product .gsr-artist-profession{
  font-size:12.5px; color:#666; margin:0;
}

/* bio + links */
body.single-product .gsr-artist-bio{
  font-size:12.5px; color:#444; line-height:1.9; margin-top:2px;
}
body.single-product .gsr-artist-bio a{ color:#0a7cc4; }

body.single-product .gsr-artist-links{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  flex-wrap:wrap;
}
body.single-product .gsr-artist-links > a{ color:#0a7cc4; font-size:12.5px; }

/* make sure rating row looks neat next to the link */
body.single-product .gsr-artist-rating{ margin-inline-start:auto; }

/* mobile */
@media (max-width: 768px){
  body.single-product .gsr-artist-inner{ padding:14px; }
  body.single-product .gsr-artist-header{
    flex-direction:column-reverse !important; align-items:center; text-align:center;
  }
  body.single-product .gsr-artist-titlewrap{ align-items:center; }
  body.single-product .gsr-artist-links{ justify-content:center; }
}


/* آواتار دیدگاه‌ها در صفحه هنرمند – کاملاً دایره‌ای و بدون کشیدگی */
body.single-artist .comment-author .avatar,
body.single-artist .comment .avatar,
body.single-artist .comment-list .avatar,
body.single-artist #comments img.avatar {
  width: 72px !important;
  height: 72px !important;
  aspect-ratio: 1 / 1 !important; /* در مرورگرهای جدید هم کمک می‌کند */
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;   /* خنثی‌سازی img { max-width:100% } */
}

/* اگر قالب روی img داخل نویسنده استایل دیگری داشته، خنثی کن */
body.single-artist .comment-author img,
body.single-artist .comment-author .avatar {
  transform: none !important;
  flex: 0 0 72px !important;
}

wp_list_comments([
  'style'       => 'ol',
  'avatar_size' => 72,
  'short_ping'  => true,
]);

/* === Accent underline for artist section titles === */
:root{ --gsr-accent:#DCBF74; }

body.single-artist .gsr-section-title{
  position:relative;
  display:inline-block;
  margin: 18px 0 12px;
  font-weight:800;
  font-size:20px;
  color:#1f2a37;
  line-height:1.4;
}
body.single-artist .gsr-section-title:after{
  content:"";
  display:block;
  width:82px; height:3px;
  background:var(--gsr-accent);
  border-radius:3px;
  margin-top:8px;
}


.mfp-img {
    max-width: 95%;
    max-height: 90vh;
    margin: 0 auto;
}
.mfp-title {
    text-align: center;
    padding-top: 6px;
    font-size: 13px;
    color: #eee;
}




/* --- مخفی‌سازی هر نوع سواچ/لیست بالای سلکت --- */
.single-product .variations .wd-swatches,
.single-product .variations .swatches-wrapper,
.single-product .variations .swatches-select,
.single-product .variations .wd-attr-values,
.single-product .variations .wd-selected-term {
  display: none !important;
}

/* فقط خود <select> و لینک «صاف ×» را نگه دار */
.single-product .variations td.value > :not(select):not(.reset_variations) {
  display: none !important;
}

/* --- چیدمان: لیبل (نام ویژگی) سمت راست، دراپ‌داون کنار آن --- */
.single-product .variations tr { display: table-row !important; }
.single-product .variations td.label{
  display: table-cell !important;
  width: 110px; min-width: 110px;
  padding: 0 0 0 10px;              /* فاصله بین لیبل و سلکت - RTL */
  white-space: nowrap;
  vertical-align: middle;
  font-size: 13px; color: #6b7280;
}
.single-product .variations td.value{
  display: table-cell !important;
  width: 100%;
}

/* --- استایل تمیز برای دراپ‌داون (تمام‌عرض ستون) --- */
.single-product .variations select{
  width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  min-height: 48px;
  padding: 12px 52px 12px 16px;     /* RTL: فضای فلش سمت چپ */
  border: 1px solid #d9d9d9; border-radius: 14px; background: #fff;
  font-size: 15px; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  appearance: none; direction: rtl; text-align: right;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 22px 22px;
}
.single-product .variations select:hover{ border-color:#bfbfbf; }
.single-product .variations select:focus{ outline:none; border-color:#044741; box-shadow:0 0 0 3px rgba(4,71,65,.12); }

/* فاصله بین چند ویژگی (وقتی بیش از یکی هست) */
.single-product .variations tr + tr td.value { padding-top: 10px !important; }

/* لینک «صاف ×» ظریف */
.single-product .reset_variations{
  display:inline-flex !important; align-items:center; gap:6px;
  margin-top:6px; font-size:12px; color:#8a8a8a;
}
.single-product .reset_variations:hover{ color:#5a5a5a; }
.single-product .reset_variations:before{ content:"×"; font-size:14px; line-height:1; }

/* موبایل */
@media (max-width:600px){
  .single-product .variations td.label{ width:84px; min-width:84px; font-size:12px; padding-left:8px; }
  .single-product .variations select{ min-height:50px; font-size:15px; }
}



/* 1) سواچ‌/لیست‌های وودمارت را کامل پنهان کن */
.single-product .variations .wd-swatches,
.single-product .variations .swatches-wrapper,
.single-product .variations .swatches-select,
.single-product .variations .wd-attr-values,
.single-product .variations .wd-selected-term,
.single-product .variations .wd-attr-list {
  display: none !important;
}

/* 2) چیدمان: نام ویژگی (label) سمت راست، dropdown کنار آن */
.single-product .variations tr { display: table-row !important; }
.single-product .variations td.label{
  display: table-cell !important;
  width: 110px; min-width: 110px;
  padding: 0 0 0 10px;      /* RTL: فاصله بین لیبل و سلکت */
  white-space: nowrap;
  vertical-align: middle;
  font-size: 13px; color: #6b7280;
}
.single-product .variations td.value{
  display: table-cell !important;
  width: 100%;
}

/* 3) خود dropdown همیشه دیده شود (حتی اگر داخل یک wrapper باشد) */
.single-product .variations td.value select{
  display:block !important; visibility:visible !important; opacity:1 !important;
  width:100% !important; max-width:100% !important; box-sizing:border-box;
  min-height:48px;
  padding:12px 52px 12px 16px;      /* RTL: فضای فلش سمت چپ */
  border:1px solid #d9d9d9; border-radius:14px; background:#fff;
  font-size:15px; line-height:1.4; box-shadow:0 1px 2px rgba(0,0,0,.06);
  appearance:none; direction:rtl; text-align:right;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:left 14px center; background-size:22px 22px;
}
.single-product .variations td.value select:hover{ border-color:#bfbfbf; }
.single-product .variations td.value select:focus{
  outline:none; border-color:#044741; box-shadow:0 0 0 3px rgba(4,71,65,.12);
}

/* 4) فاصله بین چند ویژگی */
.single-product .variations tr + tr td.value{ padding-top:10px !important; }

/* 5) استایل لینک «صاف ×» */
.single-product .reset_variations{
  display:inline-flex !important; align-items:center; gap:6px;
  margin-top:6px; font-size:12px; color:#8a8a8a;
}
.single-product .reset_variations:before{ content:"×"; font-size:14px; }
.single-product .reset_variations:hover{ color:#5a5a5a; }

/* موبایل */
@media (max-width:600px){
  .single-product .variations td.label{ width:84px; min-width:84px; font-size:12px; padding-left:8px; }
  .single-product .variations td.value select{ min-height:50px; font-size:15px; }
}



/* مخفی‌سازی همهٔ سواچ‌ها/لیست‌های وودمارت بالای select */
.single-product .variations .wd-swatches,
.single-product .variations .swatches-wrapper,
.single-product .variations .swatches-select,
.single-product .variations .wd-attr-values,
.single-product .variations .wd-selected-term,
.single-product .variations .wd-attr-list {
  display: none !important;
}

/* ردیف ویژگی به‌صورت افقی (label سمت راست + dropdown کنار آن) */
.single-product table.variations tbody tr{
  display: flex !important;
  align-items: center;
  gap: 10px;
  /* صفحه RTL است؛ ترتیبِ DOM باعث می‌شود لیبل در سمت راست قرار بگیرد */
}
.single-product .variations .label{
  white-space: nowrap;
  color: #6b7280;
  font-size: 13px;
  min-width: 84px;   /* در صورت نیاز بزرگ/کوچک کن */
}
.single-product .variations .value{
  flex: 1 1 auto;
  min-width: 0;      /* اجازه بده dropdown تمام‌عرض شود */
}

/* استایل تمیز برای dropdown */
.single-product .variations .value select{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
  min-height:48px;
  padding:12px 52px 12px 16px;          /* RTL: فضای فلش سمت چپ */
  border:1px solid #d9d9d9;
  border-radius:14px;
  background:#fff;
  font-size:15px; line-height:1.4;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  appearance:none; direction:rtl; text-align:right;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:left 14px center; background-size:22px 22px;
}
.single-product .variations .value select:hover{ border-color:#bfbfbf; }
.single-product .variations .value select:focus{
  outline:none; border-color:#044741; box-shadow:0 0 0 3px rgba(4,71,65,.12);
}

/* فاصله بین چند ویژگی زیر هم */
.single-product table.variations tbody tr + tr{ margin-top:10px; }

/* لینک «صاف ×» ظریف زیر dropdown */
.single-product .reset_variations{
  display:inline-flex !important; align-items:center; gap:6px;
  margin-top:6px; font-size:12px; color:#8a8a8a;
}
.single-product .reset_variations:before{ content:"×"; font-size:14px; }

/* موبایل: کمی جمع‌وجور، ولی همچنان کنار هم */
@media (max-width: 520px){
  .single-product .variations .label{ min-width:74px; font-size:12px; }
  .single-product .variations .value select{ min-height:50px; font-size:15px; }
}


/* کشاندن دراپ‌داون به سمت راست و تعیین عرض معقول */
.single-product .variations td.value{
  justify-self: start;           /* در RTL یعنی سمت راست ستون */
}

.single-product .variations td.value select{
  width: auto !important;        /* دیگر تمام‌عرض نباشد */
  min-width: 260px;
  max-width: 380px;              /* اگر بزرگ/کوچک می‌خواهی این عدد را تغییر بده */
  margin: 0 !important;          /* از هر سمتی فاصله نگیرد */
}




/* موبایل/دسکتاپ: جلوی لیبل مقدار انتخاب‌شده را نشان نده */
.single-product .variations th.label:after,
.single-product .variations td.label:after,
.single-product .variations .label:after{
  content: none !important;
  display: none !important;
}

/* اگر وودمارت مقدار را به‌صورت عنصر داخل لیبل گذاشته باشد، آن را هم پنهان کن */
.single-product .variations th.label .wd-selected-term,
.single-product .variations td.label .wd-selected-term,
.single-product .variations .label .wd-selected-term,
.single-product .variations .label .wd-attr-values,
.single-product .variations .label .swatches-select,
.single-product .variations .label .swatches-wrapper{
  display: none !important;
}

/* فقط عنوانِ لیبل را نگه‌دار (label یا .wd-attr-title) و بقیه فرزندان را مخفی کن */
.single-product .variations .label > :not(label):not(.wd-attr-title){
  display: none !important;
}

/* اندازه کارت و فاصله را یکجا کنترل کن */
.gsr-org-wall{
  --card-w: 180px;   /* عرض کارت */
  --gap: 16px;       /* فاصله ستون‌ها */
  display:grid;
  gap:var(--gap);
  grid-template-columns:repeat(auto-fit, minmax(var(--card-w), 1fr));
  /* دیوار را محدود و وسط کنیم: 6 ستون × کارت + 5 فاصله */
  max-width: calc(6 * var(--card-w) + 5 * var(--gap));
  margin: 0 auto;           /* وسط‌چین کل Grid */
  padding-inline: 12px;     /* کمی نفس از لبه‌ها */
}
.gsr-org-item{ width:100%; }  /* کارت‌ها کل ستون را پر کنند */

/* تبلت و موبایل همچنان واکنش‌گرا بماند */
@media (max-width: 992px){
  .gsr-org-wall{ max-width: calc(4 * var(--card-w) + 3 * var(--gap)); }
}
@media (max-width: 640px){
  .gsr-org-wall{
    --card-w: 120px;
    max-width: none;         /* تمام عرض؛ ستون‌ها خودکار کم/زیاد شوند */
    padding-inline: 8px;
  }
}


/* دکمه‌های ویدیو – استایل و چشمک‌زن */
.gsr-video-wrap{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin:12px 0 6px;
}
@media (max-width: 768px){
  .gsr-video-wrap{ grid-template-columns: 1fr; }
}
.gsr-video-btn{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  gap:8px; width:100%;
  padding:12px 14px; border-radius:14px;
  background: var(--wd-primary-color, #0a7); /* رنگ اصلی قالب اگر تعریف شده */
  color:#fff; border:none; cursor:pointer; font-weight:600;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  animation: gsrBlink 1.25s infinite;
}
.gsr-video-btn.alt{
  background:#2a2a2a;
}
.gsr-video-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}
.gsr-video-dot{
  width:10px;height:10px;border-radius:999px;background:#fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.8);
  animation: gsrPulse 1.25s infinite cubic-bezier(.19,1,.22,1);
}
@keyframes gsrBlink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .6; transform: scale(1.02); }
}
@keyframes gsrPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* مودال ویدیو – ریسپانسیو کامل */
.gsr-vmodal{ position: fixed; inset:0; z-index: 99999; display:none; }
.gsr-vmodal.show{ display:block; }
.gsr-vback{ position:absolute; inset:0; background:rgba(15,23,42,.6); backdrop-filter:saturate(120%) blur(2px); }
.gsr-vbox{
  position:relative; margin:4vh auto; width:min(900px, 94vw);
  background:#000; border-radius:18px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}
.gsr-vbox::before{ /* نسبت تصویر 16:9 بدون محاسبه JS */
  content:""; display:block; padding-top:56.25%;
}
.gsr-vbox iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0; display:block;
}
.gsr-vclose{
  position:absolute; top:8px; right:8px;
  width:40px;height:40px;border:none;border-radius:12px;
  background:#ffffff22; color:#fff; font-size:22px; cursor:pointer;
}
.gsr-vclose:hover{ background:#ffffff35; }

/* به استایل وودمارت: اگر دکمه پیش‌فرض ویدیو دارد، چشمک‌زنش کن */
.product-images .woodmart-show-video,
.product-images .wd-show-video,
.product-images .wd-action-btn.wd-show-video{
  animation: gsrBlink 1.25s infinite;
}





/* اطمینان از ظاهر اولیه (ممکن است تکراری باشد) */
.giftsr-video-overlay{
  z-index: 99999;
  pointer-events: auto;
}

/* حالت وقتی overlay زیر گالری یا در فلو قرار گرفته */
.gsr-video-below{
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  margin-top: 14px !important;
  justify-content: center;
  pointer-events: auto;
  gap: 10px;
}

/* در موبایل اگر لازم شد کمی فاصله بیشتر */
@media (max-width: 420px){
  .gsr-video-below{ margin-top: -100px !important; }
}

/* برای ایمن بودن روی دکمه‌ها */
.giftsr-video-overlay, .giftsr-video-overlay * {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}



/* Force Yekan Bakh on artist titles */
.gsr-org-item .org-name,
.gsr-title,
.gsr-actions .gsr-all,
h1.artist-name.gsr-title {
  font-family: 'YekanBakh','Yekanbakh','IRANSansx',system-ui,sans-serif !important;
  font-weight: 700; /* یا 800 اگر در المنتور Bold Extra می‌خواهی */
}




/* Fonts on single artist page */
body.single-artist h2.artist-products-title.gsr-title,
body.single-artist .gsr-title,
body.single-artist .product-grid-item .wd-entities-title,
body.single-artist .product-grid-item .wd-entities-title a {
  font-family: 'YekanBakh','Yekanbakh','IRANSansx',system-ui,sans-serif !important;
  font-weight: 700; /* اگر بولدتر می‌خوای 800 بگذار */
  line-height: 1.25;
}



/* فقط نیم‌خط زیر عنوان اصلی هنرمند (H1) وسط‌چین شود */
h1.artist-name.gsr-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: #DCBF74;
    border-radius: 3px;
    margin: 8px auto 0; /* auto باعث میشه بیاد وسط */
}

/* بقیه تایتل‌ها مثل قبل راست‌چین بمونن */
.gsr-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: #DCBF74;
    border-radius: 3px;
    margin-top: 8px;
    margin-right: 0; /* پیش‌فرض راست */
    margin-left: auto;
}



/* هاور سفید برای دکمه‌ها در کارت رویداد */
.gsr-event-card .btn.btn-primary:hover,
.gsr-event-card .btn.btn-outline:hover {
  color: #fff !important;
  background-color: #044741 !important;
  border-color: #044741 !important;
  transition: all .25s ease;
}

/* استایل لیبل قیمت توافقی */
.price-agreed{
  display:inline-block;
  font-weight:700;
  font-size:0.95rem; /* کوچکتر از قبل */
  padding:.18rem .50rem;
  border:1px dashed #bfa14a;
  border-radius:8px;
  line-height:1.8;
  margin-bottom:6px;
}

/* دکمه تلگرام فقط در صفحه محصول */
.single-product .gsr-request-price-underprice{
  margin-top:16px;
  text-align:center;
}
.single-product .button.gsr-request-price-btn{
  display:inline-flex;
  align-items:center; justify-content:center;
  padding:.7rem 1.4rem;
  border-radius:50px;
  font-weight:600;
  background:linear-gradient(135deg,#0088cc,#02638a);
  color:#fff;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .2s ease;
}
.single-product .button.gsr-request-price-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.15);
  color:#fff;
}

/* 1) دکمه تلگرام کمی پایین‌تر بیاد (فقط در صفحه محصول) */
.single-product .gsr-request-price-underprice{
  margin-top:16px; /* اگر هنوز نزدیکه، 20px یا 24px کن */
}

/* 2) فونت «قیمت توافقی» کوچیک‌تر بشه (فقط در باکس قیمت صفحه محصول) */
.single-product .summary .price .price-agreed{
  font-size: .95rem;   /* قبلاً ~1.05rem بود */
  padding: .18rem .50rem;
}

/* در بعضی اسکین‌های Woodmart این یکی بهتر می‌نشیند؛ اگر بالا اثر نکرد، این را هم نگه دار */
.woocommerce.single-product div.product .summary .price .price-agreed{
  font-size: .95rem;
  padding: .18rem .50rem;
}

/* (اختیاری) کمی فاصله‌ی زیر لیبل هم می‌تونی اضافه کنی تا از دکمه جدا‌تر شود */
.single-product .summary .price-agreed{
  margin-bottom: 6px; /* افزایش/کاهش به سلیقه */
  display: inline-block;
}
