
/*
Theme Name: Blocksy Child
Template: blocksy
Description: WooCommerce minimal UI — FaNum digits, brand price, centered CTA, mask-image icons (currentColor), 1:1 images, in-place CTA swap, centered static spinner; sale strong red; OOS blur + centered pill
Version: 2.0.3-lite
*/
/* System Font */
body {
    font-family: Tahoma, Arial, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
:root{
  --gol-font: "IRANSansXFaNum", "IRANSansX", system-ui, sans-serif;
}

html, body, body *{
  font-family: var(--gol-font) !important;
}

:root{
  --sale:#ff0000;
  /* masks (dedupe) */
  --mask-cart:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3Cpath d='M3 5h3l2.2 10.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L22 8H7'/%3E%3C/svg%3E");
  --mask-bag:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 7h12l1 12H5L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E");
}



/* ===== Golnejad Order Tracking Page ===== */
/* دکمه صفحه پیگیری سفارش */
.page-id-TRACKID .gol-track-wrapper button {
    width: auto;              /* سرتاسری نباشه */
    min-width: 200px;         /* خوش‌فرم */
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
}

/* وسط‌چین دکمه */
.page-id-TRACKID .gol-track-wrapper p:last-child {
    text-align: center;
}
.page-id-TRACKID {
    background: #f7f7f7;
}

/* کانتینر اصلی فرم */

.gol-track-wrapper {
	max-width: 720px;
    margin: 60px auto;
    background: #fff;
    padding: 40px 36px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* عنوان صفحه */
.gol-track-wrapper h2 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

/* لیبل */
.gol-track-wrapper label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #444;
}

/* اینپوت موبایل */
.gol-track-wrapper input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: 0.3s;
    background: #fafafa;
}

.gol-track-wrapper input[type="text"]:focus {
    outline: none;
    border-color: #ff54ad;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,84,173,0.15);
}

/* دکمه */
.gol-track-wrapper button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff54ad, #ff2f92);
    color: #fff;
    transition: 0.3s;
}

.gol-track-wrapper button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,84,173,0.35);
}

/* لیست سفارش‌ها */
.gol-track-wrapper ul {
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.gol-track-wrapper li {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 14px;
    line-height: 1.9;
    border-right: 4px solid #ff54ad;
}

/* پیام خطا */
.gol-track-wrapper .gol-error {
    margin-top: 20px;
    color: #d8000c;
    background: #fff0f3;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* موبایل */
@media (max-width: 768px) {
    .gol-track-wrapper {
        margin: 30px 16px;
        padding: 28px 22px;
    }
}
/* ✅ FIX: مشکل ستونی/عمودی شدن متن نظرات ووکامرس */
.woocommerce-Reviews .commentlist li,
.woocommerce-Reviews .comment_container,
.woocommerce-Reviews .comment-text,
.woocommerce-Reviews .comment-text .description,
.woocommerce-Reviews .comment-text .description p{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  display: block !important;
  writing-mode: horizontal-tb !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.woocommerce-Reviews .comment_container{
  flex-direction: row !important;
  align-items: flex-start !important;
}

.woocommerce-Reviews .comment-text{
  flex: 1 1 auto !important;
}

/* اگر آواتار/عکس کنار نظر باعث بهم‌ریختگی میشه */
.woocommerce-Reviews .comment_container img.avatar{
  float: none !important;
  margin: 0 0 10px 0 !important;
}

/* WooCommerce Star Rating – Hard Fix for RTL + Custom Font */
.woocommerce .star-rating {
    position: relative;
    display: inline-block;
    width: 5.4em;
    height: 1em;
    font-size: 1rem;
    line-height: 1;
    overflow: hidden;
    direction: ltr;
}

.woocommerce .star-rating::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #ddd;
}

.woocommerce .star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.woocommerce .star-rating span::before {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    color: #ff3d8f;
}
/* ✅ Fix: WooCommerce stars showing "SSSSS" */
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before,
.woocommerce p.stars a:hover::before,
.woocommerce p.stars a.active::before{
  font-family: star !important;
  font-weight: normal !important;
  font-style: normal !important;
}
/* ⭐ Make rating stars readable (empty vs filled) */
.woocommerce .star-rating::before{
  color: #ffffff !important;   /* empty stars */
  opacity: 1 !important;
}

.woocommerce .star-rating span::before{
  color: #ff3d8d !important;   /* filled stars */
}

/* optional: کمی خواناتر روی موبایل */
.woocommerce .star-rating{
  font-size: 16px !important;
  letter-spacing: 2px;
}

/* Hide rating stars in product cards (shop / archive / loops) */
.woocommerce ul.products li.product .star-rating,
.woocommerce .products .product .star-rating {
    display: none !important;
}

/* فول‌واید کردن هدر و بنر المنتور در صفحه محصول */
.single-product .ct-container,
.single-product .ct-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* فقط صفحه محصول: هدر مثل بقیه صفحات (Boxed) */
body.single-product .ct-header .ct-container,
body.single-product .ct-header .ct-container-fluid,
body.single-product .ct-header [class*="ct-container"]{
  max-width: 1200px !important; /* عددش رو اگر خواستی 1100/1280 کن */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px;
  padding-right: 16px;
}

/* اگر خودِ ردیف‌ها هم کش میاد، این هم کمک می‌کنه */
body.single-product .ct-header [data-row]{
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== Brand Page - Compact Grid Fix ===== */

.tax-product_brand ul.products,
.tax-brand ul.products,
.brand ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    justify-content: stretch;
}

/* کارت محصول */
.tax-product_brand ul.products li.product,
.tax-brand ul.products li.product,
.brand ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* حذف فاصله‌های اضافه داخلی Blocksy */
.tax-product_brand .ct-product,
.tax-brand .ct-product,
.brand .ct-product {
    margin: 0 !important;
}

/* دسکتاپ بزرگ – تراکم بیشتر */
@media (min-width: 1200px) {
    .tax-product_brand ul.products,
    .tax-brand ul.products,
    .brand ul.products {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* موبایل */
@media (max-width: 768px) {
    .tax-product_brand ul.products,
    .tax-brand ul.products,
    .brand ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}
/* Show remove button in WooCommerce cart */
.woocommerce-cart .product-remove a {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 20px;
    color: #cc0000;
}

.woocommerce-cart .product-remove a:hover {
    color: #ff0000;
}

html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    position: relative;
}
@media (max-width: 768px) {
    .ct-search-results,
    .woocommerce-products,
    .products,
    .site-main {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* فقط جلوگیری از بیرون‌زدگی سرچ/پیشنهادها – بدون دست زدن به کانتینر کل سایت */
html, body{
  overflow-x: clip !important;
}

/* فقط محدوده فیبو سرچ */
.dgwt-wcas-search-wrapp,
.dgwt-wcas-suggestions-wrapp{
  max-width: 100% !important;
}

/* جلوگیری از بیرون زدن پیشنهادها */
.dgwt-wcas-suggestions-wrapp{
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}
/* جلوگیری از بزرگ شدن سرچ در Zoom (Desktop) */
@media (min-width: 992px){
  /* خود رَپِ سرچ */
  .dgwt-wcas-search-wrapp{
    width: clamp(260px, 34vw, 650px) !important;  /* حداقل/نرمال/حداکثر */
    max-width: 650px !important;
    flex: 0 0 auto !important;
  }

  /* اینپوت داخل سرچ */
  .dgwt-wcas-search-wrapp input[type="search"],
  .dgwt-wcas-search-wrapp input.dgwt-wcas-search-input{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* اگر سرچ داخل flex row هدره، نذار کش بیاد */
  header .ct-header [class*="row"],
  header .ct-header .ct-container,
  header .ct-header .ct-header-row{
    min-width: 0 !important;
  }
}


/* تصویر/ویدیو/آیفریم از کادر نزنه بیرون */
img, video, iframe, svg{
  max-width: 100% !important;
  height: auto;
}

/* فیکس مخصوص FiboSearch (DGWT) – باکس پیشنهادها/نتایج */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-suggestions-wrapp *{
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* خود باکس نتایج: مجبورش کن داخل صفحه بمونه */
.dgwt-wcas-suggestions-wrapp{
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  transform: none !important;
}

@media (max-width: 768px){

  /* کم کردن فضای سفید بالای صفحه سرچ */
  body.search .hero-section{
    padding-top: 15px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
  }

  /* خود عنوان: کوچیک‌تر + طوسی + بدون فاصله اضافه */
  body.search .hero-section .page-title,
  body.search .hero-section .entry-title{
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    color: #9aa0a6 !important;
  }

  /* فاصله بعد از عنوان (که محصولات نفس بکشن) */
  body.search .hero-section + .ct-container,
  body.search .hero-section + .ct-container-fluid{
    margin-top: 10px !important;
  }
}
@media (max-width: 768px){

  /* بالا بردن عنوان نتایج جستجو */
  body.search .hero-section .page-title,
  body.search .hero-section .entry-title{
    margin-top: -55px !important;
  }

}

/* ===== Fix: Add to cart button breaks / stretches on tiny widths ===== */
@media (max-width: 640px){

  /* فرم افزودن به سبد (ساده و متغیر) */
  body.single-product div.product form.cart,
  body.single-product div.product .woocommerce-variation-add-to-cart{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  /* Quantity ثابت بمونه */
  body.single-product div.product form.cart .quantity{
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* دکمه: دیگه 100% نشه */
  body.single-product div.product form.cart .single_add_to_cart_button,
  body.single-product div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button,
  body.single-product div.product form.cart .button{
    width: auto !important;
    max-width: none !important;
    min-width: 160px !important;
    flex: 1 1 auto !important;

    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    white-space: nowrap !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
  }
}

/* اگر یه قانون سراسری دکمه‌ها رو فول‌ویدث می‌کنه، اینو هم خنثی کن */
body.single-product div.product form.cart .button,
body.single-product div.product form.cart button{
  max-width: none !important;
}
/* =========================
   Minimal search title
========================= */

body.search h1,
body.search .page-title {
  font-size: 16px;
  font-weight: 500;
  margin: 10px 0 18px;
  color: #8a8a8a; /* طوسی ملایم */
  line-height: 1.6;
}

/* حذف هر افکت اضافه */
body.search h1::after,
body.search .page-title::after {
  display: none !important;
}

/* کلمه جستجو (مثلاً فینیش) */
body.search h1 span,
body.search .page-title span {
  color: #6f6f6f;
  font-weight: 600;
}
/* =========================
   Golnejad – Search Results Page UI (Blocksy)
   تمیز و مدرن برای صفحه نتایج جستجو
========================= */

/* کانتینر اصلی */
body.search .ct-container,
body.search .site-main,
body.search .content-area{
  max-width: 1240px;
  margin: 0 auto;
}

/* تیتر صفحه */
body.search .page-title,
body.search .entry-title,
body.search h1{
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  margin: 12px 0 8px;
  letter-spacing: -0.3px;
}

/* متن توضیح بالا */
body.search .page-description,
body.search .taxonomy-description,
body.search .no-results .page-content{
  color: #4b5563;
  line-height: 1.9;
  font-size: 15px;
}

/* کارت پیام «نتیجه‌ای پیدا نشد» */
body.search .no-results .page-content{
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* خط اول پیام با آیکن */
body.search .no-results .page-content p:first-child{
  position: relative;
  padding-right: 32px;
  margin: 0 0 10px;
  font-weight: 600;
}
body.search .no-results .page-content p:first-child:before{
  content: "🔎";
  position: absolute;
  right: 0;
  top: 0;
  transform: translateY(2px);
  opacity: .9;
}

/* متن «هیچ محصولی یافت نشد» وسط‌تر و خواناتر */
body.search .no-results .page-content,
body.search .no-results .page-content p{
  text-align: right;
}
body.search .no-results .page-content p{
  margin: 8px 0;
}

/* فرم سرچ داخل صفحه (اگر نمایش داده شود) */
body.search .search-form{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: stretch;
}
body.search .search-form label{ flex: 1; }
body.search .search-form .search-field{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0 14px;
  outline: none;
  background: #fff;
}
body.search .search-form .search-field:focus{
  border-color: rgba(236,72,153,.7);
  box-shadow: 0 0 0 4px rgba(236,72,153,.12);
}
body.search .search-form .search-submit{
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: #ec4899;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
body.search .search-form .search-submit:hover{ filter: brightness(.95); }

/* ستون فیلتر/سایدبار سمت راست (ویجت‌ها) */
body.search .ct-sidebar .widget,
body.search .sidebar .widget{
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  margin-bottom: 14px;
}
body.search .ct-sidebar .widget-title,
body.search .sidebar .widget-title{
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 10px;
}

/* فاصله‌ها در موبایل */
@media (max-width: 768px){
  body.search .no-results .page-content{
    border-radius: 16px;
    padding: 14px;
  }
}
/* Golnejad — Desktop: fix sortbar overlap with header */
@media (min-width: 769px){
  .gol-sortbar{
    margin-top: 18px !important;   /* هرچی بیشترش کنی پایین‌تر میاد */
  }
}
/* GOLNEJAD — Hide breadcrumbs on DESKTOP only */
@media (min-width: 769px){
  .woocommerce-breadcrumb,
  .ct-breadcrumbs,
  .ct-breadcrumbs-container,
  .ct-breadcrumbs-wrap,
  nav.woocommerce-breadcrumb{
    display: none !important;
  }
}

/* =========================
   Golnejad: Related Products Box
   ========================= */

/* قاب کلی بخش محصولات مرتبط */
.single-product .related.products{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 20px 18px;
  margin-top: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

/* نوار ظریف بالای کادر (رنگ برند) */
.single-product .related.products::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #ff2aa6 0%, #ff5fbf 50%, #ff2aa6 100%);
  opacity: .9;
}

/* تیتر بخش */
.single-product .related.products > h2{
  margin: 0 0 14px 0;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* آیکن کوچک کنار تیتر */
.single-product .related.products > h2::before{
  content: "★";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,42,166,.12);
  color: #ff2aa6;
  font-size: 14px;
}

/* فاصله لیست محصولات داخل کادر */
.single-product .related.products ul.products{
  margin: 0 !important;
  padding: 0 !important;
}

/* در موبایل جمع‌وجورتر */
@media (max-width: 768px){
  .single-product .related.products{
    padding: 16px 12px;
    border-radius: 16px;
  }
  .single-product .related.products > h2{
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* === FIX: جلوگیری از افتادن متن‌های "مرتب‌سازی..." در دسکتاپ === */
@media (min-width: 769px){
  .gol-m-sort-btn,
  #golSortOverlay,
  #golSortSheet,
  .gol-m-sort-overlay,
  .gol-m-sort-sheet{
    display: none !important;
  }
}

/* === موبایل: پیش‌فرض مخفی باشه تا متن نیفته پایین صفحه === */
@media (max-width: 768px){
  #golSortOverlay,
  #golSortSheet{
    display: block !important;
  }

  .gol-m-sort-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 99990;
  }

  .gol-m-sort-sheet{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateY(18px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 99999;
    overflow: hidden;
  }

  html.gol-m-sort-open .gol-m-sort-overlay{
    opacity: 1;
    visibility: visible;
  }
  html.gol-m-sort-open .gol-m-sort-sheet{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* =========================
   Header Center Search (Responsive)
   فقط ظاهر/موقعیت
========================= */

/* 1) ردیف هدر باید مبنا بشه */
.ct-header [data-row="middle"] .ct-row-inner,
.ct-header .ct-middle-row .ct-row-inner,
.ct-header [data-row="middle"] .ct-row,
.ct-header .ct-middle-row .ct-row{
  position: relative;
}

/* 2) خود wrapper سرچ: وسط هدر + عرض ریسپانسیو */
#gol-header-search-wrap{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;

  /* عرض ریسپانسیو */
  width: clamp(30px, 46vw, 980px);
    max-width: calc(100% - 120px);
}

/* اگر در بعضی سایزها جا کم شد */
@media (max-width: 1200px){
  #gol-header-search-wrap{
    max-width: calc(100% - 240px);
    width: clamp(240px, 46vw, 520px);
  }
}
@media (max-width: 992px){
  #gol-header-search-wrap{
    max-width: calc(100% - 160px);
    width: clamp(220px, 58vw, 520px);
  }
}
@media (max-width: 768px){
  /* موبایل: معمولاً وسط‌چین خوبه ولی با عرض کمتر */
  #gol-header-search-wrap{
    max-width: calc(100% - 120px);
    width: clamp(210px, 68vw, 420px);
  }
}

/* 3) خود input فول‌عرض */
#gol-header-search-wrap .dgwt-wcas-search-wrapp,
#gol-header-search-wrap form,
#gol-header-search-wrap input[type="search"],
#gol-header-search-wrap input.dgwt-wcas-search-input{
  width: 100% !important;
}

/* FiboSearch dropdown visible in header */
.ct-header,
.ct-header [data-row],
.ct-header .ct-row,
.ct-header .ct-row-inner,
.ct-header .ct-container,
.ct-header .ct-container-fluid{
  overflow: visible !important;
}

#gol-header-search-wrap{ z-index: 9999 !important; }
.dgwt-wcas-suggestions-wrapp{ z-index: 10000 !important; }

/* Golnejad — Back button (mobile, single product only) */
@media (max-width: 689px){
  body.single-product .gol-back-btn{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #ff2f92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;

    /* سمت چپ هدر */
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
  }

  body.single-product .gol-back-btn svg{
    width: 18px;
    height: 18px;
    stroke: #ff2f92;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* وقتی ادمین بار هست (بالا لاگین هستی) کمی پایین‌تر */
  body.single-product.admin-bar .gol-back-btn{
    top: calc(50% + 16px);
  }
    /* مرکز کردن دقیق آیکون داخل دایره */
  body.single-product .gol-back-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
  }
}

/* === Golnejad — Desktop fallback: hide add-to-cart buttons in product cards === */
@media (min-width: 769px){

  /* ووکامرس استاندارد */
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.add_to_cart_button,
  .woocommerce ul.products li.product a.ajax_add_to_cart,
  .woocommerce ul.products li.product a.product_type_simple,
  .woocommerce ul.products li.product a.product_type_variable,
  .woocommerce ul.products li.product a.product_type_external,
  .woocommerce ul.products li.product a.product_type_grouped{
    display: none !important;
  }

  /* Blocksy / CT کلاس‌های رایج */
  .ct-woo-card-actions,
  .ct-product-actions,
  .ct-add-to-cart,
  .ct-woo-card .add_to_cart_button{
    display: none !important;
  }

  /* اگر برای دکمه فضای خالی می‌موند */
  .woocommerce ul.products li.product .price{
    margin-top: 6px !important;
  }
}
/* === Golnejad — Mobile: hide add-to-cart buttons in product cards === */
@media (max-width: 768px){

  /* ووکامرس استاندارد */
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.add_to_cart_button,
  .woocommerce ul.products li.product a.ajax_add_to_cart,
  .woocommerce ul.products li.product a.product_type_simple,
  .woocommerce ul.products li.product a.product_type_variable,
  .woocommerce ul.products li.product a.product_type_external,
  .woocommerce ul.products li.product a.product_type_grouped{
    display: none !important;
  }

  /* Blocksy / CT کلاس‌های رایج */
  .ct-woo-card-actions,
  .ct-product-actions,
  .ct-add-to-cart,
  .ct-woo-card .add_to_cart_button{
    display: none !important;
  }

  /* جمع کردن فاصله‌ای که بعضی وقتا بعد حذف دکمه می‌مونه */
  .woocommerce ul.products li.product .price{
    margin-top: 6px !important;
  }
}
/* === Golnejad — Mobile: remove gap between header and product image === */
@media (max-width: 768px){

  /* فاصله کلی بالای محتوای صفحه محصول */
  body.single-product main#main,
  body.single-product .site-main{
    padding-top: 0 !important;
    margin-top: -80px !important;
  }

  /* کانتینر اصلی محصول */
  body.single-product .woocommerce-product-gallery{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* خود رپ محصول */
  body.single-product .product{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Blocksy wrapper */
  body.single-product .ct-container{
    padding-top: 0 !important;
  }
}

/* Ultra compact product cards */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin-bottom: -10px !important;      /* ← این فاصله اسم تا قیمت */
  padding-bottom: 0 !important;
  line-height: 1.25 !important;     /* ← فشردگی خطوط اسم */
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product span.price{
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 8px !important;    /* ← فاصله قیمت تا دکمه */
  line-height: 1.1 !important;      /* ← ارتفاع خط قیمت */
}

/* =========================================
   GOLNEJAD — Mobile Sort (Header Left of Logo) + Sheet
========================================= */
:root{
  --gol-pink: #ff2aa1; /* رنگ برند */
}

/* فقط موبایل */
@media (max-width: 768px){

  /* 1) حذف کامل نوار مرتب سازی قبلی */
  .gol-sortbar,
  .woo-listing-top,
  .woocommerce-ordering,
  .woocommerce-ordering *,
  select.orderby,
  .orderby{
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* اگر فاصله‌ای از بالا می‌داد */
  .gol-archive-main .ct-container,
  .gol-archive-main .ct-container[data-vertical-spacing]{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* 2) آماده‌سازی هدر برای دکمه */
  header.gol-m-header-ready,
  header.ct-header.gol-m-header-ready,
  #header.gol-m-header-ready{
    position: relative !important;
  }

  /* 3) دکمه سه‌خط: جایگاه "سمت چپ لوگو" */
  .gol-m-sort-btn{
    position: absolute !important;
    left: 14px !important;                 /* سمت چپ */
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;

    border: 2px solid rgba(255,42,161,.35) !important;
    background: #fff !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 50 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
  }

  .gol-m-sort-btn:active{ transform: translateY(-50%) scale(.98) !important; }

  .gol-m-sort-icon{
    width: 18px;
    height: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .gol-m-sort-icon i{
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--gol-pink);
    opacity: .95;
  }
  .gol-m-sort-icon i:nth-child(2){
    width: 14px;
    margin-right: auto;
  }

  /* 4) Overlay + Sheet */
  .gol-m-sort-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 99990;
  }

  .gol-m-sort-sheet{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateY(18px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 99999;
    overflow: hidden;
  }

  .gol-m-sort-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .gol-m-sort-title{
    font-family: inherit !important;
    font-weight: 800;
    font-size: 14px;
  }
  .gol-m-sort-close{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }

  .gol-m-sort-body{
    padding: 12px;
    display: grid;
    gap: 10px;
  }
  .gol-m-sort-item{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #222 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-weight: 700;
    transition: .15s ease;
  }
  .gol-m-sort-item:hover{
    border-color: rgba(255,42,161,.35);
    box-shadow: 0 10px 25px rgba(255,42,161,.12);
  }

  html.gol-m-sort-open .gol-m-sort-overlay{
    opacity: 1;
    visibility: visible;
  }
  html.gol-m-sort-open .gol-m-sort-sheet{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 768px){

  /* فاصله زیر هدر */
  header#header,
  header.ct-header,
  .ct-header{
    padding-bottom: 20px !important;
    margin-bottom: 14px !important;
  }

  /* اگر بازم چسبید، فاصله رو از خود محتوا میدیم */
  body.archive.woocommerce-page #main,
  body.post-type-archive-product #main,
  body.tax-product_cat #main{
    padding-top: 14px !important;
  }
}

/* Golnejad - Search button in Header (mobile) */
@media (max-width: 768px){

  /* وقتی دکمه وارد هدر شد */
  .gol-search-btn.is-in-header{
    position: static !important;
    inset: auto !important;
    margin: 0 10px 0 0 !important; /* فاصله از آیتم کناری */
    box-shadow: none !important;
  }

  .gol-search-btn{
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(255,42,161,.35) !important;
    background: #fff !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    transition: .15s ease;
  }

  .gol-search-btn:active{ transform: scale(.97); }

  .gol-search-icon{
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .gol-search-icon svg{
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ff2aa1;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
@media (max-width: 768px){

  /* هدر رو مرجع موقعیت‌دهی کنیم */
  header#header,
  header.ct-header,
  .ct-header{
    position: relative !important;
  }

  /* سرچ: سمت راستِ هدر */
  .gol-search-btn.is-in-header{
    position: absolute !important;
    right: 12px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 50 !important;
  }

  /* مرتب‌سازی: سمت چپِ هدر */
  .gol-sort-btn{
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 50 !important;
  }

  /* که روی لوگو نیفتن */
  .ct-header [data-row="middle"]{
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
}

/* ===============================
   GOLNEJAD — Desktop Fix
   مخفی کردن المان‌های موبایل در دسکتاپ
   =============================== */

/* دسکتاپ: مخفی کردن دکمه جستجوی موبایل */
@media (min-width: 769px) {
  .gol-search-btn,
  .gol-search-overlay,
  .gol-search-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* دسکتاپ: مخفی کردن نوار پایین موبایل */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* حذف padding-bottom که برای موبایل اضافه شده */
  body {
    padding-bottom: 0 !important;
  }
}

/* دسکتاپ: مخفی کردن دکمه‌های فیلتر موبایل */
@media (min-width: 769px) {
  .gol-mob-filter-row,
  .gol-mob-filter-btn,
  .gol-mob-filter-backdrop {
    display: none !important;
    visibility: hidden !important;
  }
}

/* دسکتاپ: نمایش صحیح نوار جستجوی اصلی */
@media (min-width: 769px) {
  header .ct-header-search,
  .ct-search-box,
  [data-id="search"] {
    display: flex !important;
    visibility: visible !important;
  }
}
/* ===============================
   GOLNEJAD — Responsive Button Fixes
   فقط اندازه کلیدها ریسپانسیو شده
   =============================== */

/* ===== Global Buttons ===== */
:where(.button,.ct-button,.wp-element-button,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.add_to_cart_button,.single_add_to_cart_button,.checkout-button){
  background:var(--brand)!important;
  border:1px solid var(--brand)!important;
  color:#fff!important;
  font-weight:600;
  border-radius:999px;
  padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
  font-size: clamp(12px, 3vw, 14px);
  transition:transform .2s,box-shadow .2s,background .2s,border-color .2s;
  white-space: nowrap;
}

/* ===== دکمه افزودن به سبد خرید (صفحه محصول) ===== */
.woocommerce .single_add_to_cart_button{
  background:#ec2494 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;
  padding: clamp(10px, 12px) clamp(20px, 34px) !important;
  font-weight:800 !important;
  font-size: clamp(13px, 3.5vw, 16px) !important;
  line-height:1 !important;
  box-shadow:0 10px 26px rgba(236,36,148,.22) !important;
  transition:.25s ease !important;
  min-width: clamp(140px, 40vw, 180px) !important;
  min-height: clamp(40px, 10vw, 44px) !important;
  white-space: nowrap !important;
}

/* ===== فیلد تعداد (quantity) ===== */
.woocommerce div.product form.cart .quantity input.qty{
  width: clamp(48px, 12vw, 56px);
  height: clamp(28px, 7vw, 32px);
  line-height: clamp(28px, 7vw, 32px);
  text-align:center;
  background:transparent;
  border:0;
  font-weight:700;
  font-size: clamp(13px, 3.5vw, 16px);
}

/* ===== دکمه‌های کارت محصول (آرشیو) ===== */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button){
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  width:auto;
  min-width:52%;
  margin-top:auto;
  margin-inline:auto;
  padding: clamp(6px, 2vw, 8px) clamp(12px, 3.5vw, 16px);
  font-size: clamp(11.8px, 3vw, 13.5px);
  font-weight:600;
  border-radius:999px!important;
  position:relative;
  overflow:hidden;
  text-align:center;
  padding-left: clamp(28px, 7vw, 34px) !important;
  padding-right:18px!important;
  min-height: clamp(30px, 8vw, 40px);
}

/* ===== دکمه مشاهده سبد خرید ===== */
.woocommerce a.added_to_cart.wc-forward{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  width:auto;
  min-width:52%;
  margin:0 auto;
  padding: clamp(6px, 2vw, 8px) clamp(12px, 3.5vw, 16px);
  font-size: clamp(11.8px, 3vw, 13.5px);
  font-weight:600;
  border-radius:999px!important;
  position:relative;
  text-align:center;
  background:#2ecc71!important;
  border-color:#2ecc71!important;
  color:#fff!important;
  padding-left: clamp(28px, 7vw, 34px) !important;
  padding-right:18px!important;
  transition:none!important;
  animation:none!important;
  transform:none!important;
}

/* ===== تب‌های محصول ===== */
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block;
  padding: clamp(8px, 2vw, 10px) clamp(12px, 3.5vw, 16px);
  border-radius:999px;
  background:#f5f5f5;
  color:#444;
  font-weight:800;
  font-size: clamp(12px, 3vw, 14px);
}

/* ===== دکمه اعمال فیلتر ===== */
.gol-apply,
.gol-apply-btn{
  width:100%;
  margin-top:8px;
  border:none;
  border-radius:999px;
  background:#ec2494;
  color:#fff;
  font-weight:800;
  font-size: clamp(13px, 3.5vw, 14px);
  padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
  cursor:pointer;
  box-shadow:0 8px 18px rgba(236,36,148,.22);
  transition:.18s ease;
}

/* ===== Pills (نوار مرتب‌سازی) ===== */
.gol-sortbar .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: clamp(5px, 1.5vw, 6px) clamp(10px, 2.5vw, 12px);
  border-radius:999px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  font-size: clamp(11px, 2.8vw, 13px);
  color:#333;
  text-decoration:none;
  transition:.18s ease;
  white-space:nowrap;
}

/* ===== دکمه Place Order (Checkout) ===== */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order{
  width:100% !important;
  border-radius:999px !important;
  background:var(--brand, #ec2494) !important;
  border:1px solid var(--brand, #ec2494) !important;
  color:#fff !important;
  font-weight:1000 !important;
  font-size: clamp(13px, 3.5vw, 15px) !important;
  padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 18px) !important;
  box-shadow:0 12px 28px rgba(236,36,148,.20) !important;
  transition:.2s ease !important;
}

/* ===== دکمه‌های My Account ===== */
.woocommerce-MyAccount-navigation a{
  display:flex;
  align-items:center;
  gap:10px;
  padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 18px);
  border-radius:14px;
  background:#f6f6f6;
  color:#222;
  font-weight:600;
  font-size: clamp(13px, 3.5vw, 14px);
  transition:all 0.25s ease;
}

/* ===== دکمه‌های Cart ===== */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce input.button{
  border-radius:999px !important;
  padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 18px) !important;
  height:auto !important;
  min-height: clamp(40px, 10vw, 44px) !important;
  font-weight:900 !important;
  font-size: clamp(13px, 3.5vw, 14px) !important;
  line-height:1 !important;
  box-shadow:0 10px 24px rgba(0,0,0,.06) !important;
  border:1px solid #ececec !important;
}

/* ===== موبایل: تنظیمات خاص ===== */
@media (max-width: 768px){
  
  /* دکمه افزودن به سبد خرید */
  .woocommerce .single_add_to_cart_button{
    width:70% !important;
    font-size:15px !important;
    padding:12px 0 !important;
  }

  /* تب‌های محصول */
  .woocommerce div.product .woocommerce-tabs ul.tabs li a{
    font-size:11.5px !important;
    padding:8px 6px !important;
  }

  /* دکمه‌ها در موبایل */
  body.woocommerce-cart :is(button.button, .button, a.button, button[name="apply_coupon"], button[name="update_cart"], a.checkout-button){
    width:100% !important;
    border-radius:999px !important;
    font-weight:900 !important;
    padding:12px 18px !important;
  }
}
/* ============ Account icon (Blocksy) — make bigger ============ */

/* آیکن حساب کاربری در هدر */
.ct-header-account a,
.ct-account-link,
[data-id="account"] a,
[data-id="account"] .ct-icon-container {
  transform: scale(1.25);
  transform-origin: center;
}

/* اگر آیکن SVG بود */
.ct-header-account svg,
.ct-account-link svg,
[data-id="account"] svg {
  width: 28px !important;
  height: 28px !important;
}

/* آواتار/دایره خاکستری داخل منوی حساب */
.ct-account-dropdown .ct-account-avatar,
.ct-account-dropdown img.avatar,
.ct-account-dropdown .avatar,
.ct-account-dropdown .ct-media-container {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
}

/* کمی فاصله بهتر از کنارها */
.ct-header-account,
[data-id="account"] {
  margin-inline: 6px;
}

/* ===============================
   Golnejad – Woo Tabs Font Fix
   =============================== */

/* خود دکمه‌های تب */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: IRANSansXFaNum, IRANSansX, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* تب فعال */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    font-family: IRANSansXFaNum, IRANSansX, sans-serif !important;
    font-weight: 800 !important;
}

/* محتوای داخل تب‌ها */
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-Tabs-panel * {
    font-family: IRANSansXFaNum, IRANSansX, sans-serif !important;
}

/* Golnejad — Out of stock simple box */
.gol-oos-box{
  width: 100%;
  max-width: 520px;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff5f9;            /* صورتی خیلی ملایم */
  border: 1px solid rgba(236,36,148,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  color: #ec2494;
  font-family: IRANSansXFaNum, IRANSansX, system-ui, sans-serif;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 768px){
  .gol-oos-box{
    font-size: 22px;
    border-radius: 18px;
  }
}
.single-product .stock.out-of-stock{
  display:none !important;
}
/* ✅ موبایل: حذف موقت «فیلترها» و «فقط موجودها» (قوی‌تر) */
@media (max-width: 768px){

  /* کل نوار سفید بالا که توش فیلترها/مرتب‌سازی/فقط موجودهاست */
  .gol-sortbar,
  .gol-sortbar * {
    /* اگر میخوای فقط فیلترها حذف بشه و مرتب‌سازی بمونه، این ۲ خط رو کامنت کن */
  }

  /* فقط «فقط موجودها» */
  .gol-sortbar .pill-toggle,
  a.pill-toggle,
  .pill-toggle{
    display: none !important;
    visibility: hidden !important;
  }

  /* دکمه/ردیف «فیلترها» که با JS ساخته میشه */
  .gol-mob-filter-row,
  .gol-mob-filter-btn,
  button.gol-mob-filter-btn,
  .gol-mob-filter-backdrop{
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* خود سایدبار فیلتر */
  .gol-archive-sidebar,
  aside.gol-archive-sidebar{
    display: none !important;
  }

  /* اگر ویجت‌های ووکامرس فیلتر به هر شکلی تو موبایل دیده میشن */
  .woocommerce-widget-layered-nav,
  .woocommerce-widget-layered-nav-filters,
  .widget_price_filter{
    display: none !important;
  }
}

/* ===============================
   Golnejad – REMOVE SOLD BADGE
   =============================== */

.single-product .onsale,
.single-product .sold-out,
.single-product .out-of-stock-badge,
.single-product .ct-badge,
.single-product .ct-product-badge {
    display: none !important;
}

/* Bottom Mobile Navigation */
@media (max-width: 768px) {

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
    z-index: 9999;
  }

  .mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #555;
    font-family: IRANSansXFaNum, IRANSansX, sans-serif;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .mobile-bottom-nav .nav-item .icon {
    width: 26px;
    height: 26px;
  }

  .mobile-bottom-nav .nav-item svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #555;
    stroke-width: 1.8;
  }

  /* Active item */
  .mobile-bottom-nav .nav-item.active {
    color: #000;
    font-weight: 700;
  }

  .mobile-bottom-nav .nav-item.active svg {
    stroke: #000;
  }

  /* جلوگیری از رفتن محتوا زیر منو */
  body {
    padding-bottom: 90px;
  }
}
@media (max-width: 768px){

  /* ✅ خود دکمه‌های مرتب‌سازی باقی بمونه، فقط فضای اضافه بالاش جمع بشه */
  .gol-sortbar{
    padding-top: 10px !important;   /* هر چی بود کمش می‌کنیم */
    margin-top: 0 !important;
    gap: 10px !important;
  }

  /* ✅ اگر ردیف فیلتر/فقط‌موجودها قبلاً ساخته شده و الان مخفی‌اش کردی، همون باعث فضای خالیه */
  .gol-sortbar .gol-mob-filter-row{
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ✅ بعضی وقتا اولِ sortbar یک فاصله‌ی اضافی از قالب میاد */
  .gol-sortbar-left{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ✅ ردیف قرص‌ها (جدیدترین/پرفروش‌ترین…) رو نزدیک‌تر کن */
  .gol-sortbar-pills{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 768px){

  /* حذف فاصله بالای لیست محصولات */
  .woocommerce-products-header{
    margin-bottom: -55px !important;
    padding-bottom: 0 !important;
  }

  /* فاصله بین لوگو و نوار مرتب‌سازی */
  .woo-listing-top{
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
  }

  /* اگر شمارنده نتایج وجود دارد (نمایش X نتیجه) */
  .woocommerce-result-count{
    margin: 0 !important;
    padding: 0 !important;
    display: none !important; /* چون کاربردی نیست تو موبایل */
  }

  /* خود نوار مرتب‌سازی */
  .gol-sortbar{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
/* === Cart count badge (mobile) === */
.nav-cart {
  position: relative;
}

.nav-cart .cart-count-badge {
  position: absolute;
  top: -6px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  background: #ec2494; /* صورتی برند */
  color: #fff;

  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;

  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);

  font-family: IRANSansXFaNum, IRANSansX, sans-serif;
}

/* ==================================================
   Golnejad Mobile Search (FiboSearch)
   Fixed Top Right — Thicker Border — Hide on Scroll
================================================== */

@media (max-width: 768px){

  /* ===== Button ===== */
  .gol-search-btn{
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99999;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;
    height: 35px;

    background: #ffffff;

    border: 1px solid rgba(236,36,148,.45);   /* کلفت‌تر شد */
    border-radius: 999px;

    box-shadow: 0 10px 26px rgba(0,0,0,.16);
    cursor: pointer;

    transition: transform .22s ease, opacity .22s ease;
  }

  .gol-search-btn:active{
    transform: scale(.96);
  }

  /* Hide on scroll */
  .gol-search-btn.is-hidden{
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  /* ===== Icon ===== */
  .gol-search-icon svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ec2494;
    stroke-width: 1.6;                 /* نازک ولی واضح */
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
  }

  /* ===== Text ===== */
  .gol-search-text{
    font-family: IRANSansXFaNum, IRANSansX, sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #ec2494;
    line-height: 1;
    white-space: nowrap;
  }

  /* ===== Overlay ===== */
  .gol-search-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 99998;
  }

  /* ===== Modal ===== */
  .gol-search-modal{
    position: fixed;
    top: 70px;
    right: 12px;
    left: 12px;

    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #f0f0f0;

    box-shadow: 0 18px 45px rgba(0,0,0,.25);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all .25s ease;

    z-index: 99999;
  }

  .gol-search-head{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;

    font-family: IRANSansXFaNum, IRANSansX, sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #222;
  }

  .gol-search-title{ font-weight: 900; }

  .gol-search-close{
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
  }

  .gol-search-body{
    padding: 14px;
  }

  /* Open */
  body.gol-search-open .gol-search-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  body.gol-search-open .gol-search-modal{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

}

/* ================================
   GOLNEJAD • Categories Page UI
   targets: shortcode wrapper .gol-cats-wrap / .gol-cats
================================== */

.gol-cats-wrap,
.gol-cats-wrap *{
  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

/* کانتینر کلی صفحه */
.gol-cats-wrap{
  max-width: 1240px;
  margin: 22px auto;
  padding: 0 18px;
}

/* لیست اصلی */
.gol-cats{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* کارت هر دسته مادر */
.gol-cat-parent{
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  padding: 14px;
  overflow: hidden;
}

/* لینک دسته مادر */
.gol-cat-parent-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  color:#111;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.7;
  text-decoration:none;
  transition: .18s ease;
}

/* فلش کوچیک کنار عنوان (اختیاری) */
.gol-cat-parent-link::after{
  content:"◀";
  font-size: 12px;
  opacity: .55;
  transform: translateY(-1px);
}

/* هاور دسته مادر */
.gol-cat-parent-link:hover{
  border-color:#ec2494;
  box-shadow:0 6px 16px rgba(236,36,148,.18);
}

/* باکس زیر دسته‌ها */
.gol-cat-children{
  list-style:none;
  padding: 10px 0 0;
  margin: 10px 0 0;
  border-top: 1px solid #f3f3f3;
  display: grid;
  gap: 8px;
}

/* هر زیر دسته */
.gol-cat-child-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background:#fff;
  border:1px solid #f0f0f0;
  color:#333;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration:none;
  transition: .18s ease;
}

.gol-cat-child-link::after{
  content:"↙";
  font-size: 12px;
  opacity: .45;
}

.gol-cat-child-link:hover{
  border-color:#ec2494;
  background:#fff;
  box-shadow:0 6px 14px rgba(236,36,148,.14);
}

/* اگر زیر دسته نداشت (اختیاری: کارت خلوت‌تر) */
.gol-cat-parent .gol-cat-children:empty{
  display:none;
}

/* ================= Mobile ================= */
@media (max-width: 900px){
  .gol-cats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px){
  .gol-cats{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gol-cat-parent{
    border-radius: 14px;
    padding: 12px;
  }

  .gol-cat-parent-link{
    font-size: 14.5px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  .gol-cat-child-link{
    font-size: 13px;
    padding: 10px 11px;
    border-radius: 12px;
  }
}

/* ================== GOLNEJAD • CART (DESKTOP) — ONLY UI POLISH ================== */
/* فقط: فونت + زیباسازی جدول و دکمه‌ها (بدون تغییر چیدمان) */

body.woocommerce-cart,
body.woocommerce-cart *{
  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

/* تیتر صفحه */
body.woocommerce-cart .page-title,
body.woocommerce-cart .entry-title{
  font-weight: 900 !important;
  font-size: 34px !important;
  letter-spacing: -0.2px;
  margin: 10px 0 24px !important;
}

/* ===== جدول سبد خرید ===== */
body.woocommerce-cart table.shop_table{
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important; /* فاصله بین ردیف‌ها (بدون تغییر لایوت) */
  background: transparent !important;
}

body.woocommerce-cart table.shop_table thead th{
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  padding: 10px 12px !important;
}

body.woocommerce-cart table.shop_table tbody tr{
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.06) !important;
  overflow: hidden;
}

body.woocommerce-cart table.shop_table tbody td{
  border: 0 !important;
  padding: 14px 12px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
  color: #222 !important;
}

/* عکس محصول */
body.woocommerce-cart td.product-thumbnail img{
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  border: 1px solid #eee !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.06) !important;
}

/* نام محصول */
body.woocommerce-cart td.product-name a{
  color: #111 !important;
  font-weight: 800 !important;
  line-height: 1.8 !important;
}
body.woocommerce-cart td.product-name a:hover{ color:#ec2494 !important; }

/* قیمت‌ها */
body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal{
  font-weight: 900 !important;
  color: #111 !important;
}

/* دکمه حذف */
body.woocommerce-cart a.remove{
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #ff3b3b !important;
  border: 1px solid #f0f0f0 !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.06) !important;
}
body.woocommerce-cart a.remove:hover{
  background:#ff3b3b !important;
  color:#fff !important;
  border-color:#ff3b3b !important;
}

/* ===== تعداد (quantity) — خوشگل و گرد ===== */
body.woocommerce-cart .quantity{
  background:#fafafa !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
body.woocommerce-cart .quantity input.qty{
  width: 52px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  outline: none !important;
}

/* ===== بخش کد تخفیف ===== */
body.woocommerce-cart .coupon{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
body.woocommerce-cart .coupon input.input-text{
  border: 1px solid #e6e6e6 !important;
  background:#fafafa !important;
  border-radius: 999px !important;
  padding: 12px 16px !important;
  height: 44px !important;
  font-size: 14px !important;
  width: 260px !important;
}
body.woocommerce-cart .coupon input.input-text:focus{
  border-color:#ec2494 !important;
  box-shadow: 0 0 0 3px rgba(236,36,148,.14) !important;
  outline: none !important;
}

/* ===== دکمه‌ها (همه) — برند، گرد، خوش‌دست ===== */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce input.button{
  border-radius: 999px !important;
  padding: 12px 18px !important;
  height: 44px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.06) !important;
  border: 1px solid #ececec !important;
}

/* دکمه‌های اصلی صورتی */
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="update_cart"]{
  background:#ec2494 !important;
  border-color:#ec2494 !important;
  color:#fff !important;
  box-shadow: 0 10px 24px rgba(236,36,148,.22) !important;
}
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="update_cart"]:hover{
  background:#d91f87 !important;
  border-color:#d91f87 !important;
}

/* دکمه ادامه تسویه حساب (اگر لینک بود) */
body.woocommerce-cart a.checkout-button{
  background:#20bf55 !important;
  border-color:#20bf55 !important;
  color:#fff !important;
  box-shadow: 0 10px 24px rgba(32,191,85,.22) !important;
}
body.woocommerce-cart a.checkout-button:hover{
  background:#18a645 !important;
  border-color:#18a645 !important;
}

/* کارت جمع کل سبد خرید کمی شیک‌تر (بدون جابه‌جایی) */
body.woocommerce-cart .cart_totals{
  background:#fff !important;
  border: 1px solid #ececec !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.06) !important;
  padding: 16px !important;
}
body.woocommerce-cart .cart_totals h2{
  font-size: 16px !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
}
body.woocommerce-cart .cart_totals table{
  border:0 !important;
}
body.woocommerce-cart .cart_totals td,
body.woocommerce-cart .cart_totals th{
  border:0 !important;
  padding: 10px 0 !important;
  font-size: 14px !important;
}
/* ===== GOLNEJAD • Cart table headings (محصول/تعداد/جمع کل) ===== */
body.woocommerce-cart .woocommerce-cart-form__contents thead{
  background: transparent !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead tr{
  background: transparent !important;
}

body.woocommerce-cart .woocommerce-cart-form__contents thead th{
  background: #fff !important;
  border: 1px solid #ececec !important;
  color: #111 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
  text-align: center !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.05) !important;
}

/* گرد کردن دو سر هدر */
body.woocommerce-cart .woocommerce-cart-form__contents thead th:first-child{
  border-radius: 16px 0 0 16px !important;
}
body.woocommerce-cart .woocommerce-cart-form__contents thead th:last-child{
  border-radius: 0 16px 16px 0 !important;
}

/* اگر RTL هستی، جهت گرد شدن برعکس */
html[dir="rtl"] body.woocommerce-cart .woocommerce-cart-form__contents thead th:first-child{
  border-radius: 0 16px 16px 0 !important;
}
html[dir="rtl"] body.woocommerce-cart .woocommerce-cart-form__contents thead th:last-child{
  border-radius: 16px 0 0 16px !important;
}

/* تیترها کمی برندتر */
body.woocommerce-cart .woocommerce-cart-form__contents thead th.product-name,
body.woocommerce-cart .woocommerce-cart-form__contents thead th.product-quantity,
body.woocommerce-cart .woocommerce-cart-form__contents thead th.product-subtotal{
  letter-spacing: -0.2px !important;
}

/* فاصله هدر از ردیف‌ها (بدون تغییر لایوت) */
body.woocommerce-cart .woocommerce-cart-form__contents{
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}
/* ===== GOLNEJAD • Cart Title (Robust) ===== */
body.woocommerce-cart :is(
  .ct-page-title h1,
  .hero-section h1,
  .page-title,
  .entry-title,
  h1
){
  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
  font-weight: 950 !important;
  font-size: 44px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.6px !important;
  color: #111 !important;

  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;

  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  background: transparent !important; /* پاک‌کردن استایل تست */
  outline: none !important;           /* پاک‌کردن استایل تست */
}

/* underline */
body.woocommerce-cart :is(.ct-page-title h1,.hero-section h1,.page-title,.entry-title,h1)::after{
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 120px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ec2494 !important;
  box-shadow: 0 10px 24px rgba(236,36,148,.22) !important;
}

/* icon */
body.woocommerce-cart :is(.ct-page-title h1,.hero-section h1,.page-title,.entry-title,h1)::before{
  content: "🛒" !important;
  font-size: 30px !important;
  line-height: 1 !important;
  transform: translateY(2px) !important;
}

/* موبایل */
@media (max-width: 768px){
  body.woocommerce-cart :is(.ct-page-title h1,.hero-section h1,.page-title,.entry-title,h1){
    font-size: 30px !important;
  }
  body.woocommerce-cart :is(.ct-page-title h1,.hero-section h1,.page-title,.entry-title,h1)::after{
    width: 86px !important;
  }
  body.woocommerce-cart :is(.ct-page-title h1,.hero-section h1,.page-title,.entry-title,h1)::before{
    font-size: 22px !important;
  }
}
/* ==============================
   GOLNEJAD • CART QTY FIX (Desktop+Mobile)
   ============================== */

/* 1) Classic WooCommerce cart quantity */
body.woocommerce-cart .woocommerce-cart-form .quantity,
body.woocommerce-cart .cart .quantity{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}

body.woocommerce-cart .woocommerce-cart-form .quantity input.qty,
body.woocommerce-cart .cart .quantity input.qty{
  -webkit-appearance: textfield !important;
  appearance: textfield !important;

  width: 52px !important;
  min-width: 52px !important;
  height: 36px !important;
  line-height: 36px !important;

  padding: 0 !important;
  margin: 0 !important;

  text-align: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;

  color: #111 !important;
  background: #fff !important;

  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

/* remove native spinners */
body.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button{
  -webkit-appearance:none !important;
  margin:0 !important;
}

/* 2) WooCommerce Blocks cart quantity (new cart) */
body.woocommerce-cart .wc-block-components-quantity-selector{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input{
  width: 52px !important;
  min-width: 52px !important;
  height: 36px !important;

  padding: 0 !important;
  margin: 0 !important;

  text-align: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;

  color: #111 !important;
  background: #fff !important;

  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button{
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  border: 1px solid #ededed !important;
  background: #fafafa !important;
  color: #111 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover{
  border-color:#ec2494 !important;
}

/* 3) اگر جایی عدد رو با font-size صفر کرده باشه، این خنثی‌اش می‌کنه */
body.woocommerce-cart :is(.quantity,.wc-block-components-quantity-selector) *{
  font-size: inherit !important;
}
/* =======================
   GOLNEJAD — CART MOBILE FIX (STRONG)
   Paste at END of style.css
======================= */
@media (max-width: 768px){

  /* تیتر */
  body.woocommerce-cart :is(.entry-title,.page-title){
    font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    margin: 10px 0 14px !important;
  }

  /* جدول/فرم اصلی */
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .woocommerce-cart-form *{
    font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
  }

  /* هدر جدول مخفی */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead{
    display:none !important;
  }

  /* هر آیتم = یک کارت */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item{
    display:block !important;
    background:#fff !important;
    border:0 !important;
    border-radius:16px !important;
    overflow:hidden !important;
    margin: 0 0 12px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
  }

  /* هر سلول در کارت */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item > td{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:12px 14px !important;
    border:0 !important;
    border-top:1px solid #f2f2f2 !important;
    float:none !important;
    width:100% !important;
  }

  /* نام محصول: راست‌چین و خوانا */
  body.woocommerce-cart td.product-name{
    justify-content:flex-start !important;
    gap:10px !important;
    text-align:right !important;
  }

  /* عکس محصول */
  body.woocommerce-cart td.product-thumbnail img,
  body.woocommerce-cart .product-thumbnail img{
    width:56px !important;
    height:56px !important;
    object-fit:cover !important;
    border-radius:14px !important;
    border:1px solid #eee !important;
  }

  /* قیمت‌ها */
  body.woocommerce-cart :is(td.product-price, td.product-subtotal) bdi,
  body.woocommerce-cart :is(td.product-price, td.product-subtotal) .amount{
    color: var(--brand, #ec2494) !important;
    font-weight: 900 !important;
  }

  /* فیکس تعداد (نمایش عدد) */
  body.woocommerce-cart :is(td.product-quantity, .quantity){
    justify-content:flex-end !important;
  }
  body.woocommerce-cart input.qty{
    width:56px !important;
    min-width:56px !important;
    height:38px !important;
    line-height:38px !important;
    text-align:center !important;
    font-size:15px !important;
    font-weight:900 !important;
    color:#111 !important;
    opacity:1 !important;
    background:#fff !important;
    border:1px solid #e6e6e6 !important;
    border-radius:12px !important;
  }

  /* دکمه‌ها تمام عرض */
  body.woocommerce-cart :is(button.button, .button, a.button, button[name="apply_coupon"], button[name="update_cart"], a.checkout-button){
    width:100% !important;
    border-radius:999px !important;
    font-weight:900 !important;
    padding:12px 18px !important;
  }

  /* کوپن: عمودی */
  body.woocommerce-cart .coupon{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    width:100% !important;
  }
  body.woocommerce-cart .coupon input#coupon_code{
    width:100% !important;
    height:44px !important;
    border-radius:999px !important;
    border:1px solid #e8e8e8 !important;
    background:#fafafa !important;
    padding:0 16px !important;
    font-weight:800 !important;
  }

  /* کارت جمع کل */
  body.woocommerce-cart .cart-collaterals .cart_totals{
    background:#fff !important;
    border-radius:16px !important;
    padding:16px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.06) !important;
    border:0 !important;
  }
}
/* =======================
   GOLNEJAD — CHECKOUT UI (Desktop + Mobile)
   paste at END of style.css
======================= */
body.woocommerce-checkout,
body.woocommerce-checkout *{
  font-family:'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

/* Title */
body.woocommerce-checkout :is(.entry-title,.page-title){
  font-weight: 900 !important;
  font-size: 34px !important;
  line-height: 1.3 !important;
  margin: 8px 0 18px !important;
  position: relative;
}
body.woocommerce-checkout :is(.entry-title,.page-title)::after{
  content:"";
  display:block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand, #ec2494);
  margin-top: 10px;
}

/* Layout container */
body.woocommerce-checkout .woocommerce{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Two columns spacing (no layout change, just nicer gap) */
body.woocommerce-checkout form.checkout{
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 960px){
  body.woocommerce-checkout form.checkout{
    grid-template-columns: 1fr;
  }
}

/* Cards */
body.woocommerce-checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields){
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  padding:16px;
  margin: 0 0 14px;
}
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review{
  background:#fff;
  border:1px solid #ececec;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
body.woocommerce-checkout #order_review_heading{
  padding: 14px 16px;
  margin: 0 0 10px;
  font-weight: 900;
}
body.woocommerce-checkout #order_review{
  padding: 14px 16px;
}

/* Section headings */
body.woocommerce-checkout h3,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3{
  font-size: 16px !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  color:#111 !important;
}

/* Form fields */
body.woocommerce-checkout .form-row{
  margin: 0 0 12px !important;
}
body.woocommerce-checkout label{
  font-size: 13px !important;
  font-weight: 800 !important;
  color:#333 !important;
  margin-bottom: 6px !important;
}
body.woocommerce-checkout :is(input.input-text, textarea.input-text, select){
  width: 100% !important;
  border: 1px solid #e6e6e6 !important;
  background: #fafafa !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
}
body.woocommerce-checkout :is(input.input-text, textarea.input-text, select):focus{
  border-color: var(--brand, #ec2494) !important;
  box-shadow: 0 0 0 4px rgba(236,36,148,.14) !important;
}

/* Order review table */
body.woocommerce-checkout #order_review table.shop_table{
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
body.woocommerce-checkout #order_review table.shop_table thead th{
  font-weight: 900 !important;
  color:#555 !important;
  border: 0 !important;
  padding: 10px 0 12px !important;
}
body.woocommerce-checkout #order_review table.shop_table td,
body.woocommerce-checkout #order_review table.shop_table th{
  border-top: 1px solid #f1f1f1 !important;
  padding: 12px 0 !important;
}
body.woocommerce-checkout #order_review .order-total td,
body.woocommerce-checkout #order_review .order-total th{
  border-top: 1px solid #e9e9e9 !important;
  padding-top: 14px !important;
}
body.woocommerce-checkout #order_review .order-total .amount{
  color: var(--brand, #ec2494) !important;
  font-weight: 1000 !important;
}

/* Payment box */
body.woocommerce-checkout #payment{
  background: transparent !important;
  border: 0 !important;
}
body.woocommerce-checkout #payment ul.payment_methods{
  padding: 0 !important;
  margin: 10px 0 12px !important;
  border: 0 !important;
}
body.woocommerce-checkout #payment .payment_box{
  background:#fafafa !important;
  border:1px solid #eee !important;
  border-radius:14px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
}

/* Place order button (Brand) */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order{
  width: 100% !important;
  border-radius: 999px !important;
  background: var(--brand, #ec2494) !important;
  border: 1px solid var(--brand, #ec2494) !important;
  color: #fff !important;
  font-weight: 1000 !important;
  font-size: 15px !important;
  padding: 14px 18px !important;
  box-shadow: 0 12px 28px rgba(236,36,148,.20) !important;
  transition: .2s ease !important;
}
body.woocommerce-checkout #place_order:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(236,36,148,.26) !important;
}

/* Notices (nicer) */
body.woocommerce-checkout :is(.woocommerce-error,.woocommerce-message,.woocommerce-info){
  border-radius: 14px !important;
  border: 1px solid #eee !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.04) !important;
}

/* Mobile tightening */
@media (max-width: 768px){
  body.woocommerce-checkout :is(.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, #order_review, #order_review_heading){
    border-radius: 14px !important;
    padding: 14px !important;
  }
  body.woocommerce-checkout :is(.entry-title,.page-title){
    font-size: 28px !important;
  }
}
/* ========== GOLNEJAD • Checkout: Page Title + Select fields ========== */

/* 1) تیتر صفحه پرداخت (زیباتر + آیکن + زیرخط برند) */
body.woocommerce-checkout :is(.entry-title,.page-title){
  font-weight: 1000 !important;
  font-size: 36px !important;
  line-height: 1.25 !important;
  margin: 10px 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
body.woocommerce-checkout :is(.entry-title,.page-title)::before{
  content: "🧾";
  font-size: 22px;
  transform: translateY(-1px);
}
body.woocommerce-checkout :is(.entry-title,.page-title)::after{
  content:"";
  display:block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand, #ec2494);
  margin-top: 10px;
}

/* 2) فیلدهای انتخابی (استان/شهر...) هم مثل inputها کادر سفید و تمیز بگیرن */
body.woocommerce-checkout .select2-container .select2-selection--single{
  background: #fff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 14px !important;
  height: 48px !important;
  display:flex !important;
  align-items:center !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.04) !important;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{
  padding-right: 14px !important;
  padding-left: 34px !important;
  color: #222 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow{
  left: 10px !important;   /* RTL */
  right: auto !important;
  height: 48px !important;
}
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--open .select2-selection--single{
  border-color: var(--brand, #ec2494) !important;
  box-shadow: 0 0 0 4px rgba(236,36,148,.14) !important;
}

/* Dropdown list */
.select2-dropdown{
  border: 1px solid #eee !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.12) !important;
}
.select2-results__option{
  padding: 10px 12px !important;
  font-size: 14px !important;
}
.select2-results__option--highlighted{
  background: rgba(236,36,148,.10) !important;
  color: #111 !important;
}
.select2-results__option[aria-selected="true"]{
  background: var(--brand, #ec2494) !important;
  color: #fff !important;
}
/* ========== GOLNEJAD • Checkout title FIX (guaranteed) ========== */

body.woocommerce-checkout h1,
body.woocommerce-checkout .woocommerce-checkout h1,
body.woocommerce-checkout header h1 {
  position: relative !important;
  display: inline-block !important;
  font-family: 'IRANSansXFaNum','IRANSansX',sans-serif !important;
  font-weight: 900 !important;
  font-size: 34px !important;
  line-height: 1.3 !important;
  margin: 0 0 28px !important;
  padding-bottom: 10px !important;
}

/* خط صورتی دقیقاً زیر متن */
body.woocommerce-checkout h1::after,
body.woocommerce-checkout .woocommerce-checkout h1::after,
body.woocommerce-checkout header h1::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;          /* RTL */
  bottom: 0 !important;
  width: 72px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ec2494 !important;
}
/* ===============================
   ORDER RECEIVED – FINAL POLISH
   Golnejad.ir
================================ */

/* فونت برند برای کل صفحه */
.woocommerce-order-received {
  font-family: IRANSansXFaNum, IRANSans, sans-serif;
}

/* تیتر اصلی صفحه */
.woocommerce-order-received h1,
.woocommerce-order-received .entry-title {
  font-size: 28px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.woocommerce-order-received h1::after,
.woocommerce-order-received .entry-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: #ff2f92;
  border-radius: 6px;
}

/* پیام موفقیت */
.woocommerce-notice--success {
  background: #fff1f7;
  border: 1px solid #ffd3e6;
  color: #333;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* کارت خلاصه سفارش بالا */
.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.woocommerce-order-overview li {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  text-align: center;
  font-weight: 600;
}

/* مبلغ نهایی – قهرمان صفحه */
.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #ff2f92;
}

/* جدول سفارش → کارت */
.woocommerce-table--order-details {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.woocommerce-table--order-details th {
  background: #fafafa;
  font-weight: 700;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-details th {
  padding: 14px;
}

/* ردیف جمع نهایی */
.woocommerce-table--order-details tfoot tr:last-child {
  background: #fff1f7;
}

.woocommerce-table--order-details tfoot tr:last-child td {
  font-weight: 800;
  color: #ff2f92;
}

/* باکس آدرس */
.woocommerce-customer-details,
.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  margin-top: 30px;
}

/* تیترهای داخلی */
.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
}

.woocommerce-order-details h2::after,
.woocommerce-customer-details h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: #ff2f92;
  border-radius: 6px;
}

/* CTA ها */
.woocommerce-order-received .button {
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.woocommerce-order-received .button:hover {
  transform: translateY(-2px);
}

/* فاصله‌ها – فشرده ولی شیک */
.woocommerce-order-details,
.woocommerce-customer-details {
  margin-bottom: 35px;
}

/* ===============================
   MOBILE POLISH
================================ */
@media (max-width: 768px) {

  .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }

  .woocommerce-order-overview li {
    text-align: right;
  }

  .woocommerce-order-received h1,
  .woocommerce-order-received .entry-title {
    font-size: 22px;
  }

  .woocommerce-table--order-details td,
  .woocommerce-table--order-details th {
    font-size: 14px;
  }
}
.woocommerce-order-received .woocommerce-notice--success::before{
  display: none !important;
}
.woocommerce-order-received .woocommerce-notice--success{
  padding-right: 18px !important;
}
/* =========================
   Golnejad – Order Received (Thank you) – Final Polish
   ========================= */
:root{
  --gj-pink:#e91e63;
  --gj-pink-2:#ff4fa3;
  --gj-soft:#fff1f6;
  --gj-border:rgba(233,30,99,.25);
  --gj-text:#111;
  --gj-muted:#666;
  --gj-radius:22px;
  --gj-font: IRANSansXFaNum, IRANSans, Vazirmatn, system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
}

body.woocommerce-order-received,
body.woocommerce-order-received *{
  font-family: var(--gj-font) !important;
}

/* Page title (پرداخت) + fix icon position */
body.woocommerce-order-received .entry-title,
body.woocommerce-order-received h1.entry-title{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  position:relative !important;
  margin: 10px 0 22px !important;
  color: var(--gj-text) !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px;
}

/* underline under the title */
body.woocommerce-order-received .entry-title::after,
body.woocommerce-order-received h1.entry-title::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-10px;
  width:86px;
  height:4px;
  border-radius:999px;
  background:var(--gj-pink);
}

/* If the icon is an <img>/<svg> inside the title */
body.woocommerce-order-received .entry-title img,
body.woocommerce-order-received .entry-title svg,
body.woocommerce-order-received h1.entry-title img,
body.woocommerce-order-received h1.entry-title svg{
  width:22px !important;
  height:22px !important;
  display:inline-block !important;
  vertical-align:middle !important;
  margin:0 !important;
  transform: translateY(1px);
  opacity:.9;
}

/* If the icon is injected via pseudo element (common in themes) */
body.woocommerce-order-received .entry-title::before,
body.woocommerce-order-received h1.entry-title::before{
  top:50% !important;
  transform: translateY(-50%) !important;
}

/* Success notice */
body.woocommerce-order-received .woocommerce-notice,
body.woocommerce-order-received .woocommerce-message,
body.woocommerce-order-received .woocommerce-notice--success{
  background: var(--gj-soft) !important;
  border: 1px solid var(--gj-border) !important;
  color: var(--gj-text) !important;
  border-radius: calc(var(--gj-radius) + 6px) !important;
  padding: 18px 18px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

/* Order details “cards” (شماره سفارش/تاریخ/ایمیل/قیمت) */
body.woocommerce-order-received ul.order_details{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:14px !important;
  justify-content:center !important;
  padding:0 !important;
  margin: 16px auto 22px !important;
}
body.woocommerce-order-received ul.order_details li{
  list-style:none !important;
  background:#fff !important;
  border:1px solid rgba(0,0,0,.06) !important;
  border-radius: var(--gj-radius) !important;
  padding:16px 18px !important;
  min-width: 220px;
  text-align:center !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
}
body.woocommerce-order-received ul.order_details li strong{
  display:block !important;
  margin-top:8px !important;
  font-weight:900 !important;
  color: var(--gj-text) !important;
}
body.woocommerce-order-received ul.order_details li.order strong,
body.woocommerce-order-received ul.order_details li.total strong{
  color: var(--gj-pink) !important;
}

/* Sections as clean boxes */
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-bacs-bank-details{
  background:#fff !important;
  border:1px solid rgba(0,0,0,.06) !important;
  border-radius: calc(var(--gj-radius) + 6px) !important;
  padding: 16px 16px !important;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  margin: 16px auto !important;
  max-width: 980px;
}

/* Section titles (مشخصات بانکی ما / مشخصات سفارش / آدرس صورت‌حساب) */
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-bacs-bank-details-heading{
  position:relative !important;
  display:inline-block !important;
  font-weight: 900 !important;
  margin: 6px 0 14px !important;
  padding-bottom: 10px !important;
}
body.woocommerce-order-received .woocommerce-order-details__title::after,
body.woocommerce-order-received .woocommerce-column__title::after,
body.woocommerce-order-received .woocommerce-bacs-bank-details-heading::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:86px;
  height:4px;
  background:var(--gj-pink);
  border-radius:999px;
}

/* Order table */
body.woocommerce-order-received table.woocommerce-table,
body.woocommerce-order-received table.shop_table{
  border:0 !important;
  overflow:hidden;
  border-radius: var(--gj-radius) !important;
  background:#fff !important;
}
body.woocommerce-order-received table.shop_table thead th{
  background: rgba(0,0,0,.03) !important;
  border:0 !important;
  font-weight:900 !important;
}
body.woocommerce-order-received table.shop_table td,
body.woocommerce-order-received table.shop_table th{
  border:0 !important;
  padding:14px 12px !important;
}
body.woocommerce-order-received table.shop_table tbody tr{
  border-top:1px solid rgba(0,0,0,.06) !important;
}
body.woocommerce-order-received table.shop_table tfoot tr th{
  color: var(--gj-muted) !important;
  font-weight:800 !important;
}
body.woocommerce-order-received table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received table.shop_table tfoot tr:last-child td{
  background: var(--gj-soft) !important;
  font-weight:900 !important;
}

/* Bank details list */
body.woocommerce-order-received .woocommerce-bacs-bank-details{
  padding-top: 10px !important;
}
body.woocommerce-order-received .woocommerce-bacs-bank-details .wc-bacs-bank-details{
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
body.woocommerce-order-received .woocommerce-bacs-bank-details .wc-bacs-bank-details li{
  list-style:none !important;
  background: rgba(0,0,0,.02) !important;
  border:1px solid rgba(0,0,0,.06) !important;
  padding:12px 14px !important;
  border-radius:16px !important;
  margin:10px 0 !important;
}

/* Mobile tweaks */
@media (max-width: 768px){
  body.woocommerce-order-received ul.order_details li{
    min-width: calc(50% - 10px) !important;
  }
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details,
  body.woocommerce-order-received .woocommerce-bacs-bank-details{
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}
@media (max-width: 420px){
  body.woocommerce-order-received ul.order_details li{
    min-width: 100% !important;
  }
}
/* =========================
   Golnejad | Login/Register
   ========================= */

/* فونت برند روی کل صفحه اکانت */
.woocommerce-account,
.woocommerce-account *{
  font-family: "IRANSansXFaNum", "IRANSans", sans-serif !important;
}

/* کانتینر کلی */
.woocommerce-account .woocommerce{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 40px;
}

/* تیتر صفحه (مثل بقیه صفحات) */
.woocommerce-account .entry-title{
  text-align: right;
  font-weight: 900;
  font-size: clamp(26px, 2.2vw, 40px);
  margin: 10px 0 18px;
  position: relative;
  display: inline-block;
}
.woocommerce-account .entry-title:after{
  content:"";
  display:block;
  height:4px;
  width:74px;
  border-radius: 99px;
  margin-top: 8px;
  background: #E91E63;
}

/* باکس های ورود/ثبت نام */
.woocommerce-account .u-columns{
  gap: 18px;
  align-items: stretch;
}
.woocommerce-account .u-column1,
.woocommerce-account .u-column2{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

/* عنوان داخل باکس (ورود/ثبت نام) */
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}
.woocommerce-account .u-column1 h2:after,
.woocommerce-account .u-column2 h2:after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:64px;
  height:3px;
  border-radius: 99px;
  background: #E91E63;
  opacity:.95;
}

/* لیبل‌ها */
.woocommerce-account .woocommerce-form label{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.75);
  margin-bottom: 8px;
}

/* ورودی‌ها */
.woocommerce-account .woocommerce-form .input-text{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  transition: .2s ease;
}
.woocommerce-account .woocommerce-form .input-text:focus{
  border-color: rgba(233,30,99,.55);
  box-shadow: 0 10px 22px rgba(233,30,99,.10);
}

/* دکمه‌ها (ورود/ثبت نام) */
.woocommerce-account .woocommerce-form button.button{
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  background: #E91E63 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(233,30,99,.22);
  transition: .2s ease;
}
.woocommerce-account .woocommerce-form button.button:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(233,30,99,.28);
}

/* چک‌باکس "مرا به خاطر بسپار" */
.woocommerce-account .woocommerce-form .woocommerce-form__label-for-checkbox{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0,0,0,.70);
}
.woocommerce-account .woocommerce-form input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: #E91E63;
}

/* لینک "رمز عبور را فراموش کرده‌اید؟" */
.woocommerce-account .woocommerce-LostPassword a{
  color: #E91E63;
  font-weight: 800;
  text-decoration: none;
}
.woocommerce-account .woocommerce-LostPassword a:hover{
  text-decoration: underline;
}

/* پیام‌ها (موفق/خطا) */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info{
  border-radius: 16px;
  border: 1px solid rgba(233,30,99,.20);
  background: rgba(233,30,99,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

/* ریسپانسیو: دو ستون تبدیل به تک ستون */
@media (max-width: 900px){
  .woocommerce-account .u-columns{
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .woocommerce-account .u-column1,
  .woocommerce-account .u-column2{
    padding: 16px 14px;
  }
}

/* ========== GOLNEJAD • My Account buttons ========== */

body.woocommerce-account {
  font-family: 'IRANSansXFaNum','IRANSansX',sans-serif;
}

/* منوی کناری حساب کاربری */
.woocommerce-MyAccount-navigation ul {
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation li {
  margin-bottom: 10px;
}

/* دکمه‌ها */
.woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f6f6f6;
  color: #222;
  font-weight: 600;
  transition: all 0.25s ease;
}

/* آیکن‌ها */
.woocommerce-MyAccount-navigation a svg,
.woocommerce-MyAccount-navigation a i {
  font-size: 18px;
}
/* ===============================
   Blocksy Mobile Menu (Hamburger) - Fix white/blank
   =============================== */

/* drawer overlay (پشت زمینه تیره) */
.ct-drawer::before,
.ct-panel::before{
  background: rgba(0,0,0,.55) !important;
}

/* خود پنل منو */
.ct-drawer .ct-panel,
.ct-panel[data-location*="menu"],
.ct-panel[data-location*="mobile"]{
  background: #ffffff !important;
  color: #111 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.22) !important;
}

/* تیتر/هدر پنل */
.ct-panel .ct-panel-actions,
.ct-panel .ct-panel-header{
  background: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

/* دکمه بستن (X) */
.ct-panel .ct-close-button,
.ct-panel [class*="close"]{
  color: #111 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* آیتم‌های منو */
.ct-panel .menu,
.ct-panel .menu > li{
  background: transparent !important;
}

.ct-panel .menu a{
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

/* هاور/اکتیو با رنگ برند */
.ct-panel .menu a:hover,
.ct-panel .current-menu-item > a,
.ct-panel .current_page_item > a{
  background: rgba(233, 30, 99, .10) !important;
  color: #e91e63 !important;
}

/* جداکننده‌های بین آیتم‌ها */
.ct-panel .menu > li + li{
  border-top: 1px solid rgba(0,0,0,.06) !important;
}

/* آیکن فلش زیرمنو */
.ct-panel .menu .submenu-toggle,
.ct-panel .menu .ct-toggle-dropdown{
  color: #111 !important;
  opacity: .85 !important;
}

/* اگه زیرمنوها هم سفید میشن */
.ct-panel .sub-menu{
  background: #fff !important;
  padding: 6px 8px 10px !important;
}
.ct-panel .sub-menu a{
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #222 !important;
}

/* فونت برند (اگر IRANSansXFaNum روی سایت داری) */
.ct-panel, .ct-panel *{
  font-family: IRANSansXFaNum, IRANSans, sans-serif !important;
}
/* ===============================
   Mobile Hamburger Menu – FINAL FIX (Blocksy)
   =============================== */

/* overlay تیره */
.ct-drawer::before,
.ct-panel::before {
  background: rgba(0,0,0,.65) !important;
}

/* خود پنل */
.ct-panel,
.ct-panel[data-location*="menu"] {
  background: transparent !important;
}

/* لیست منو */
.ct-panel .menu {
  padding: 24px 16px !important;
}

/* آیتم‌ها */
.ct-panel .menu li {
  margin-bottom: 10px !important;
}

/* لینک‌ها */
.ct-panel .menu a {
  display: block !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: rgba(255,255,255,.06) !important;
  transition: all .25s ease;
}

/* هاور */
.ct-panel .menu a:hover {
  background: rgba(233,30,99,.25) !important;
  color: #fff !important;
}

/* آیتم فعال */
.ct-panel .current-menu-item > a,
.ct-panel .current_page_item > a {
  background: #e91e63 !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(233,30,99,.45) !important;
}

/* حذف نوارهای زشت پیش‌فرض */
.ct-panel .menu li::before,
.ct-panel .menu li::after {
  display: none !important;
}

/* دکمه بستن */
.ct-panel .ct-close-button {
  color: #fff !important;
  opacity: 1 !important;
}

/* فونت */
.ct-panel,
.ct-panel * {
  font-family: IRANSansXFaNum, IRANSans, sans-serif !important;
}

/* هاور */
.woocommerce-MyAccount-navigation a:hover {
  background: #ffe3f1;
  color: #ec2494;
}

/* آیتم فعال */
.woocommerce-MyAccount-navigation li.is-active a {
  background: #ec2494;
  color: #fff;
  box-shadow: 0 8px 20px rgba(236,36,148,0.35);
}

/* دکمه‌های داخل محتوا (مثل مشاهده سفارش، دانلود و...) */
.woocommerce-account .button {
  border-radius: 999px !important;
  padding: 10px 22px !important;
  background: #ec2494 !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
  transition: all 0.25s ease;
}

.woocommerce-account .button:hover {
  background: #d81e86 !important;
  transform: translateY(-1px);
}
/* ===============================
   Mobile Hamburger Menu – PINK VERSION
   =============================== */

/* بک‌گراند کل صفحه (overlay) */
.ct-drawer::before,
.ct-panel::before {
  background: rgba(255, 192, 203, 0.55) !important;
}

/* خود پنل منو */
.ct-panel,
.ct-panel[data-location*="menu"] {
  background: #fff !important;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

/* لیست منو */
.ct-panel .menu {
  padding: 24px 18px !important;
}

/* آیتم‌ها */
.ct-panel .menu li {
  margin-bottom: 12px !important;
}

/* لینک‌ها */
.ct-panel .menu a {
  display: block !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #444 !important;
  background: #f7f7f7 !important;
  transition: all .25s ease;
}

/* هاور */
.ct-panel .menu a:hover {
  background: #ffe3ec !important;
  color: #e91e63 !important;
}

/* آیتم فعال */
.ct-panel .current-menu-item > a,
.ct-panel .current_page_item > a {
  background: linear-gradient(135deg, #e91e63, #ff5fa2) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(233,30,99,.35) !important;
}

/* حذف افکت‌های پیش‌فرض بلاکسی */
.ct-panel .menu li::before,
.ct-panel .menu li::after {
  display: none !important;
}

/* دکمه بستن */
.ct-panel .ct-close-button {
  color: #e91e63 !important;
  opacity: 1 !important;
}

/* فونت */
.ct-panel,
.ct-panel * {
  font-family: IRANSansXFaNum, IRANSans, sans-serif !important;
}
/* ===============================
   FIX MOBILE MENU DARK OVERLAY
   =============================== */

/* خود پنل منو */
.ct-panel {
  background: #ffffff !important;
}

/* overlay اصلی که صفحه رو تیره می‌کنه */
.ct-drawer-overlay,
.ct-panel-overlay,
.ct-drawer-backdrop,
.ct-panel-backdrop {
  background: rgba(255, 230, 240, 0.95) !important;
  backdrop-filter: none !important;
}

/* اگر Blocksy از before استفاده کرده */
.ct-drawer::before,
.ct-panel::before {
  background: rgba(255, 230, 240, 0.95) !important;
}

/* حذف دارک مود تحمیلی */
[data-color-mode="dark"] .ct-drawer,
[data-color-mode="dark"] .ct-panel,
[data-color-mode="dark"] .ct-drawer-overlay {
  background: #ffffff !important;
}

/* آیتم‌های منو */
.ct-panel .menu a {
  color: #333 !important;
}

/* آیتم فعال */
.ct-panel .current-menu-item > a {
  background: linear-gradient(135deg, #e91e63, #ff5fa2) !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(233,30,99,.45);
}

/* ===== GOLNEJAD • My Account Active Item (Blue → Pink) ===== */

/* آیتم فعال */
.woocommerce-MyAccount-navigation li.is-active a {
  background: #ec2494 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(236, 36, 148, 0.35);
}

/* آیکن داخل آیتم فعال */
.woocommerce-MyAccount-navigation li.is-active a i,
.woocommerce-MyAccount-navigation li.is-active a svg {
  color: #fff !important;
}

/* جلوگیری از برگشت آبی Blocksy */
.woocommerce-MyAccount-navigation a {
  background-color: #f6f6f6 !important;
}

.woocommerce-MyAccount-navigation a:hover {
  background-color: #ffe3f1 !important;
  color: #ec2494 !important;
}
/* ===== GOLNEJAD • My Account Title ===== */

.woocommerce-account h1,
.woocommerce-account .entry-title {
  position: relative;
  display: inline-block;
  font-family: IRANSansXFaNum, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin-bottom: 32px;
  padding-bottom: 10px;
}

/* خط صورتی زیر تیتر */
.woocommerce-account h1::after,
.woocommerce-account .entry-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #ec2494, #ff8fc7);
  border-radius: 6px;
}

/* موبایل */
@media (max-width: 768px) {
  .woocommerce-account h1,
  .woocommerce-account .entry-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .woocommerce-account h1::after,
  .woocommerce-account .entry-title::after {
    width: 36px;
  }
}
/*******************************
  Golnejad - Woo Order Received (Thankyou)
*******************************/

/* Font + base */
.woocommerce-order-received .site-main,
.woocommerce-order-received .content-area,
.woocommerce-order-received .entry-content,
.woocommerce-order-received .woocommerce{
  font-family: "IRANSansXFaNum","IRANSansX","IRANSans",Tahoma,Arial,sans-serif !important;
}

/* Page title */
.woocommerce-order-received .entry-title{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900 !important;
  font-size: clamp(26px, 2.2vw, 40px) !important;
  line-height: 1.2 !important;
  margin: 10px 0 18px !important;
  letter-spacing: -0.3px;
}
.woocommerce-order-received .entry-title:after{
  content:"";
  display:block;
  height:4px;
  width: 82px;
  border-radius: 999px;
  background: #ff2f92;
  margin-right: 10px;
  transform: translateY(10px);
}
.woocommerce-order-received .entry-title:before{
  content:"✓";
  display:inline-grid;
  place-items:center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,47,146,.12);
  color: #ff2f92;
  font-weight: 900;
  font-size: 18px;
}

/* Success notice */
.woocommerce-order-received .woocommerce-notice{
  border: 1px solid rgba(255,47,146,.18) !important;
  background: rgba(255,47,146,.06) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin: 0 0 18px !important;
  color: #1f1f1f !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  font-weight: 700;
}

/* Order overview "chips" */
.woocommerce-order-received .woocommerce-order-overview{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  list-style: none !important;
}
.woocommerce-order-received .woocommerce-order-overview li{
  border: 1px solid rgba(0,0,0,.06) !important;
  background: #fff !important;
  border-radius: 18px !important;
  padding: 14px 14px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  font-weight: 800;
}
.woocommerce-order-received .woocommerce-order-overview li strong{
  display:block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 900;
  color:#111;
}
.woocommerce-order-received .woocommerce-order-overview li:nth-child(2) strong,
.woocommerce-order-received .woocommerce-order-overview li:nth-child(3) strong{
  font-variant-numeric: tabular-nums;
}

/* Make total standout */
.woocommerce-order-received .woocommerce-order-overview li.woocommerce-order-overview__total{
  border-color: rgba(255,47,146,.25) !important;
  background: rgba(255,47,146,.06) !important;
}
.woocommerce-order-received .woocommerce-order-overview li.woocommerce-order-overview__total strong{
  color:#ff2f92 !important;
  font-size: 18px !important;
}

/* Sections */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  padding: 18px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  margin: 16px 0;
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title{
  font-weight: 900 !important;
  font-size: 18px !important;
  margin: 0 0 14px !important;
  position: relative;
  padding-bottom: 12px;
}
.woocommerce-order-received .woocommerce-order-details__title:after,
.woocommerce-order-received .woocommerce-column__title:after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background:#ff2f92;
}

/* Order details table -> clean */
.woocommerce-order-received table.shop_table{
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  margin: 0 !important;
}
.woocommerce-order-received table.shop_table thead th{
  border: 0 !important;
  background: rgba(0,0,0,.03) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
}
.woocommerce-order-received table.shop_table tbody tr{
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.woocommerce-order-received table.shop_table tbody td{
  border: 0 !important;
  padding: 14px 14px !important;
  vertical-align: middle !important;
}
.woocommerce-order-received table.shop_table tbody tr td:first-child{
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  font-weight: 800;
}
.woocommerce-order-received table.shop_table tbody tr td:last-child{
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  font-weight: 900;
  color:#111;
}

/* Footer totals */
.woocommerce-order-received table.shop_table tfoot tr th,
.woocommerce-order-received table.shop_table tfoot tr td{
  border: 0 !important;
  padding: 12px 14px !important;
  background: rgba(0,0,0,.02) !important;
}
.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td{
  background: rgba(255,47,146,.08) !important;
  font-weight: 900 !important;
  border-radius: 16px !important;
}
.woocommerce-order-received table.shop_table tfoot tr:last-child td{
  color:#ff2f92 !important;
  font-size: 18px !important;
}

/* Customer address list */
.woocommerce-order-received .woocommerce-customer-details address{
  border: 0 !important;
  background: rgba(0,0,0,.02);
  border-radius: 18px;
  padding: 14px 14px !important;
  line-height: 2 !important;
}

/* Buttons on thankyou (if any) */
.woocommerce-order-received .woocommerce a.button,
.woocommerce-order-received .woocommerce .button{
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-weight: 900 !important;
  border: 0 !important;
  background: #ff2f92 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(255,47,146,.22);
}
.woocommerce-order-received .woocommerce a.button:hover,
.woocommerce-order-received .woocommerce .button:hover{
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px){
  .woocommerce-order-received .woocommerce-order-overview{
    grid-template-columns: 1fr 1fr;
  }
  .woocommerce-order-received .woocommerce-order-details,
  .woocommerce-order-received .woocommerce-customer-details{
    padding: 14px 12px;
    border-radius: 18px;
  }
  .woocommerce-order-received table.shop_table{
    border-spacing: 0 8px !important;
  }
  .woocommerce-order-received .entry-title:after{
    width: 64px;
  }
}

/* === Golnejad — موبایل: استایل نهایی «فقط‌موجودها | فیلترها» داخل کارت سفید === */
@media (max-width: 768px){

  /* ردیف بالا */
  .gol-mob-filter-row{
    display:flex !important;
    flex-direction:row-reverse !important;  /* فیلترها چپ، فقط موجودها راست */
    align-items:center !important;
    justify-content:space-between !important;

    margin:0 0 6px !important;   /* چسبیده به بالا */
    padding:0 6px !important;

    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    border-radius:0 !important;
  }

  /* متن‌های فیلترها و فقط موجودها */
  .gol-mob-filter-row .gol-mob-filter-btn,
  .gol-mob-filter-row .pill-toggle{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;

    padding:0 !important;
    margin:0 !important;

    font-size:14px !important;
    font-weight:700 !important;
    color:#333 !important;

    height:auto !important;
    border-radius:0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
  }

  /* حالت فعال فقط موجودها → صورتی */
  .gol-mob-filter-row .pill-toggle.active{
    color:#ec2494 !important;
  }

  /* فلش کوچک کنار فیلترها */
  .gol-mob-filter-btn::after{
    content:" ▾";
    font-size:11px;
    opacity:.75;
    margin-right:2px;
  }

  /* خود کارت سفید مرتب‌سازی (بالا بیاد) */
  .gol-sortbar{
    padding-top:10px !important;
    padding-bottom:12px !important;
    margin-top:6px !important;
    border-radius:18px !important;
  }
}

/* =========== Golnejad – موبایل: مرتب‌سازی جمع‌وجور =========== */
@media (max-width: 768px) {

  /* خود نوار مرتب‌سازی کمی فشرده‌تر شود */
  .gol-sortbar{
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  /* متن «مرتب‌سازی بر اساس» روی موبایل مخفی شود */
  .gol-sortbar-title{
    display: none !important;
  }

  /* ظرف دکمه‌ها: یک ردیف، کل عرض، فاصله‌ی کم */
  .gol-sortbar-pills{
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
  }

  /* خود ۴ تا دکمه مرتب‌سازی */
  .gol-sortbar-pills .pill{
    flex: 1 1 1 !important;      /* همه تقریباً هم‌عرض */
    padding: 10px 10 !important;   /* ارتفاع کم */
    font-size: 11px !important;  /* فونت کوچیک‌تر */
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }
}
/* === Golnejad — Make "فقط موجودها" + "فیلترها" EXACT like sort pills === */
@media (max-width: 768px){

  .gol-mob-filter-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin: -40px 0 10px;
  }

  /* دکمه‌های موبایل = دقیقا هم‌استایل دکمه‌های مرتب‌سازی بالا */
  .gol-mob-filter-row .gol-mob-filter-btn,
  .gol-mob-filter-row .pill-toggle{
    flex: 1;
    background: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    color: #333 !important;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    height: auto !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  /* حالت فعال – دقیقا مثل pills active */
  .gol-mob-filter-row .gol-mob-filter-btn.is-active,
  .gol-mob-filter-row .pill-toggle.active{
    background: #ec2494 !important;
    border-color: #ec2494 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(236,36,148,.25) !important;
  }
}
/* === Golnejad — Swap buttons: Filters RIGHT, Instock LEFT === */
@media (max-width: 768px){

  .gol-mob-filter-row{
    display: flex;
    flex-direction: row-reverse !important; /* جابه‌جایی ترتیب */
  }

  /* کمی فاصله دقیق‌تر */
  .gol-mob-filter-row .gol-mob-filter-btn{
    margin-right: 0 !important;
    margin-left: 6px !important;
  }

  .gol-mob-filter-row .pill-toggle{
    margin-left: 0 !important;
    margin-right: 6px !important;
  }
}

/* پایه: همه چیز با فونت سایت */
.gol-archive,
.gol-archive * ,
.gol-sortbar,
.gol-sortbar *{
  font-family: 'IRANSansXFaNum','IRANSansX',system-ui,sans-serif !important;
}

/* لی‌آوت کلی */
.gol-archive{
  display:grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap:24px;
  align-items:flex-start;
}
.gol-archive-main{ min-width:0; }
.gol-archive-sidebar{ }

/* کارت‌های سایدبار */
.gol-filter-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  padding:14px 16px;
  margin-bottom:12px;
}
.gfc-head{
  font-size:14px;
  font-weight:700;
  color:#111;
  margin-bottom:10px;
}

/* لینک دسته‌های اصلی */
.gfc-cats{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.gol-cat-link,
.gol-cat-child-link{
  display:block;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  color:#222;
  font-size:13.5px;
  text-decoration:none;
  transition:.2s ease;
}
.gol-cat-link:hover,
.gol-cat-child-link:hover{
  border-color:#ec2494;
  box-shadow:0 4px 12px rgba(236,36,148,.18);
}

/* دسته‌ی فعال (صفحه‌ی فعلی) */
.gol-cat-link.active,
.gol-cat-child-link.active{
  background:#ec2494;
  border-color:#ec2494;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(236,36,148,.25);
}

/* زیرمجموعه‌ها کمی تو رفته */
.gol-cat-children{
  margin:4px 0 2px;
  padding-right:10px;
  border-right:2px dashed #eee;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.gol-cat-child-link{
  font-size:13px;
}

/* فیلتر قیمت */
.gfc-price{
  display:flex;
  align-items:center;
  gap:8px;
}
.gfc-price input{
  flex:1;
  border-radius:12px;
  border:1px solid #e3e3e3;
  background:#fafafa;
  padding:8px 10px;
  font-size:13px;
}
.gfc-price .dash{
  font-size:13px;
  color:#999;
}

/* دکمه اعمال فیلتر */
.gol-apply{
  width:100%;
  margin-top:8px;
  border:none;
  border-radius:999px;
  background:#ec2494;
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:10px 16px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(236,36,148,.22);
  transition:.18s ease;
}
.gol-apply:hover,
.gol-apply:focus{
  background:#c81d7b;      /* صورتی تیره‌تر، بدون آبی */
  color:#fff;
  box-shadow:0 10px 22px rgba(200,29,123,.28);
}

/* نوار مرتب‌سازی بالا */
.gol-sortbar{
  margin-bottom:16px;
  background:#fff;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
  padding:8px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.gol-sortbar-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.gol-sortbar-title{
  font-size:13px;
  color:#777;
}

.gol-sortbar-pills{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.gol-sortbar .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  font-size:13px;
  color:#333;
  text-decoration:none;
  transition:.18s ease;
}
.gol-sortbar .pill:hover{
  border-color:#ec2494;
}

/* فعال */
.gol-sortbar .pill.active{
  background:#ec2494;
  border-color:#ec2494;
  color:#fff;
  box-shadow:0 6px 16px rgba(236,36,148,.25);
}

/* دکمه فقط موجودها */
.gol-sortbar .pill-toggle{
  font-weight:700;
}

/* ریسپانسیو */
@media (max-width:1023.98px){
  .gol-archive{
    display:block;
  }
  .gol-archive-sidebar{
    margin-top:16px;
  }
  .gol-sortbar{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* === Golnejad — موبایل: دکمه فیلترها و پنل شناور === */
@media (max-width: 768px) {

  /* دکمه‌ی کوچک فیلترها، بالای محصولات */
  .gol-mob-filter-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 14px;
    margin:8px auto 4px;
    border-radius:999px;
    border:1px solid #ec2494;
    background:#fff;
    color:#ec2494;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(236,36,148,.15);
  }
  .gol-mob-filter-btn.is-active{
    background:#ec2494;
    color:#fff;
  }

  /* خود سایدبار در موبایل: پیش‌فرض مخفی، حالت باز به‌صورت پنل پایین صفحه */
  .gol-archive-sidebar{
    display:none;
  }
  .gol-archive-sidebar.gol-mob-open{
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    top:80px; /* اگر کم/زیاده، عدد رو تنظیم کن */
    background:#fff;
    z-index:10001;
    padding:12px 14px;
    overflow:auto;
    border-radius:16px 16px 0 0;
    box-shadow:0 -8px 24px rgba(0,0,0,.18);
  }

  /* بک‌دراپ تار پشت پنل */
  .gol-mob-filter-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    z-index:10000;
  }
  .gol-mob-filter-backdrop.is-visible{
    display:block;
  }
}

/* ============= GOLNEJAD • Archive Layout ============= */
.gol-archive{
  display:grid; grid-template-columns: 290px 1fr; gap:24px;
  max-width:1240px; margin:22px auto; padding:0 30px;
    
}
.gol-archive-main{ min-width:0; }

/* Sort bar */
.gol-sortbar{
  background:#fff; border:1px solid #ececec; border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
  padding:10px 12px; margin-bottom:14px; margin-top:-50px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.gol-sortbar-title{ color:#777; font-size:13px; margin-left:6px; }
.gol-sortbar-pills{ display:flex; gap:6px; flex-wrap:wrap; }
.gol-sortbar .pill{
  display:inline-block; padding:8px 12px; border-radius:999px;
  background:#f6f6f6; color:#333; font-weight:700; font-size:12.5px;
}
.gol-sortbar .pill:hover{ background:#ededed; }
.gol-sortbar .pill.active{ background:#ec2494; color:#fff; }
.gol-sortbar .pill-toggle{ margin-inline-start:auto; }

/* Sidebar */
.gol-archive-sidebar{ position:sticky; top:86px; align-self:start; }
.gol-filter{ display:flex; flex-direction:column; gap:14px; }
.gol-filter-card{
  background:#fff; border:1px solid #ececec; border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.05); padding:12px;
}
.gfc-head{ font-weight:800; font-size:14px; margin-bottom:8px; color:#111; }
.gfc-body{ font-size:14px; color:#333; line-height:1.9; }

.gfc-cats .chk{ display:block; margin:3px 0; }
.gfc-children{ margin:4px 0 6px 0; padding-right:10px; border-right:2px solid #f2f2f2; }
.gfc-price{ display:flex; align-items:center; gap:8px; }
.gfc-price input{
  width:100%; padding:10px 12px; background:#fafafa; border:1px solid #e6e6e6;
  border-radius:10px; font-size:13px;
}
.gfc-price .dash{ color:#aaa; }

.gol-apply{
  display:block; width:100%; background:#ec2494; color:#fff; border:0;
  border-radius:999px; padding:12px 16px; font-weight:800; box-shadow:0 8px 18px rgba(236,36,148,.18);
}

/* Stock toggle switch */
.gol-switch{ display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.gol-switch .lbl{ font-size:14px; color:#333; font-weight:700; }
.gol-switch input{ display:none; }
.gol-switch .slider{
  position:relative; width:44px; height:26px; background:#e9e9e9; border-radius:999px; transition:.2s;
}
.gol-switch .slider::after{
  content:""; position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%;
  background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.15); transition:.2s;
}
.gol-switch input:checked + .slider{ background:#20bf55; }
.gol-switch input:checked + .slider::after{ transform:translateX(-18px); }

/* Product grid tightening (آرشیو) */
.woocommerce ul.products{ gap:18px; }
@media (max-width: 1024px){
  .gol-archive{ grid-template-columns: 1fr; }
  .gol-archive-sidebar{ position:static; }
}

/* ===== Fonts ===== */
@font-face{font-family:'IRANSansX';src:url('/wp-content/themes/blocksy-child/assets/fonts/IRANSansX-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IRANSansX';src:url('/wp-content/themes/blocksy-child/assets/fonts/IRANSansX-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'IRANSansXFaNum';src:url('/wp-content/themes/blocksy-child/assets/fonts/IRANSansXFaNum-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IRANSansXFaNum';src:url('/wp-content/themes/blocksy-child/assets/fonts/IRANSansXFaNum-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

/* ===== Base & RTL ===== */
:where(body,button,input,textarea){font-family:'IRANSansX',system-ui,sans-serif}
:where(h1,h2,h3,h4,h5,h6){font-family:'IRANSansX',system-ui,sans-serif;font-weight:700}
html[lang^="fa"]{direction:rtl}
html[lang^="fa"] :where(body,button,input,textarea,h1,h2,h3,h4,h5,h6,
.price,.amount,.woocommerce-Price-amount,.woocommerce-Price-currencySymbol,
.qty,.woocommerce-mini-cart__total,.cart_totals,.order-total,
.woocommerce-checkout-review-order,.woocommerce-table--order-details,
.wc-block-components-number-input input,.woocommerce-breadcrumb){
  font-family:'IRANSansXFaNum','IRANSansX',system-ui,sans-serif!important;font-variant-numeric:normal
}

/* ===== Links & Menu ===== */
a{color:#111;text-decoration:none}
a:hover{color:var(--brand)}
.ct-main-navigation>ul>li>a{position:relative}
.ct-main-navigation>ul>li>a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--brand);transform:scaleX(0);transform-origin:right;transition:transform .2s}
.ct-main-navigation>ul>li:hover>a::after,.ct-main-navigation>ul>li.current-menu-item>a::after{transform:scaleX(1)}
.ct-main-navigation>ul>li.current-menu-item>a{color:var(--brand)}

/* ===== Global Buttons ===== */
:where(.button,.ct-button,.wp-element-button,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.add_to_cart_button,.single_add_to_cart_button,.checkout-button){
  background:var(--brand)!important;border:1px solid var(--brand)!important;color:#fff!important;
  font-weight:600;border-radius:999px;padding:12px 20px;
  transition:transform .2s,box-shadow .2s,background .2s,border-color .2s
}
:where(.button:hover,.ct-button:hover,.wp-element-button:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.add_to_cart_button:hover,.single_add_to_cart_button:hover,.checkout-button:hover){
  transform:translateY(-1px);box-shadow:0 4px 14px rgba(236,36,148,.25)
}
:where(.button.is-style-outline,.ct-button.is-style-outline,.woocommerce a.button.alt){
  background:transparent!important;color:#111!important;border:1px solid #111!important
}
:where(.button.is-style-outline:hover,.ct-button.is-style-outline:hover,.woocommerce a.button.alt:hover){
  background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important
}

/* ==== Golnejad • Filters UI ==== */
.gol-filters { position: sticky; top: 18px; }
.gol-filter-card{
  background:#fff; border:1px solid #ececec; border-radius:16px;
  box-shadow:0 8px 22px rgba(0,0,0,.05); padding:14px; margin:10px 0;
}
.gol-filter-card .widget-title{
  margin:0 0 8px; font-weight:800; font-size:15.5px; color:#111;
}

/* چک‌باکس لیست */
.gol-checklist{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.gol-checklist--scroll{ max-height:260px; overflow:auto; padding-right:4px; }
.gol-checklist li label{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.gol-checklist input[type="checkbox"]{
  width:16px; height:16px; border:1px solid #ccc; border-radius:4px; appearance:none;
  background:#fff; position:relative; transition:.15s;
}
.gol-checklist input[type="checkbox"]:checked{
  border-color:#ec2494; background:#ec2494;
}
.gol-checklist input[type="checkbox"]:checked::after{
  content:""; position:absolute; inset:3px; background:#fff; border-radius:2px;
}
.gol-checklist span{ font-size:14px; color:#333; }

/* سوییچ موجودی */
.gol-switch{ display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.gol-switch input{ display:none; }
.gol-switch__track{
  width:44px; height:24px; border-radius:999px; background:#e9e9e9; position:relative; transition:.2s;
  box-shadow:inset 0 0 0 1px #ddd;
}
.gol-switch__thumb{
  width:20px; height:20px; border-radius:50%; background:#fff; position:absolute; left:2px; top:2px;
  box-shadow:0 2px 6px rgba(0,0,0,.15); transition:.2s;
}
.gol-switch input:checked + .gol-switch__track{ background:#ec2494; }
.gol-switch input:checked + .gol-switch__track + .gol-switch__thumb{ transform:translateX(20px); }
.gol-switch__label{ font-size:14px; color:#333; }

/* دکمه اعمال فیلتر */
.gol-apply-btn{
  width:100%; margin-top:8px; border-radius:999px!important; font-weight:800!important;
  background:#ec2494!important; border-color:#ec2494!important; color:#fff!important;
}

/* مرتب‌سازی مینیمال */
.woocommerce .woocommerce-ordering select.orderby{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat left 10px center/12px ;
  border:1px solid #e5e5e5; border-radius:999px; padding:100px 18px; padding-left:32px;
  font-size:13px; color:#555; box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.woocommerce .woocommerce-result-count{ color:#666; font-size:13px; }
@media (max-width:768px){
  .gol-filter-card{ border-radius:14px; padding:12px; }
  .gol-checklist span{ font-size:13.5px; }
  .woocommerce .woocommerce-ordering{ width:100%; margin-bottom:8px; }
  .woocommerce .woocommerce-ordering select.orderby{ width:100%; }
}

/* ===== Product Card ===== */
.woocommerce ul.products{gap:18px}
.woocommerce ul.products li.product{
  background:#fff;border:1px solid #ececec;border-radius:16px;padding:12px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  transition:transform .2s,border-color .2s,box-shadow .2s;
  box-shadow:0 2px 8px rgba(0,0,0,.03);position:relative;overflow:hidden
}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);border-color:#e2e2e2;box-shadow:0 10px 24px rgba(0,0,0,.06)}

/* Image 1:1 */
.woocommerce ul.products li.product a{display:block}
.woocommerce ul.products li.product a img{
  aspect-ratio:1/1;width:100%;object-fit:cover;border-radius:14px;margin:0 0 10px;transition:transform .25s;
  border:none!important;outline:0!important;box-shadow:none!important
}
.woocommerce ul.products li.product:hover a img{transform:scale(1.02)}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:12px;font-weight:700;line-height:1.45;color:#111;margin:0 0 0px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden
}

/* Price */
.woocommerce ul.products li.product .price{
  color:var(--brand)!important;font-size:20px;line-height:1.2;margin:0 0 10px;letter-spacing:.1px;font-weight:970
}
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol{font-weight:970!important;margin-right:4px}
.woocommerce ul.products li.product .price del{opacity:.5;font-weight:600;font-size:13px;margin-inline-end:6px}
.woocommerce ul.products li.product .price ins{text-decoration:none;font-weight:970}

/* Hide meta */
.woocommerce ul.products li.product :where(.ct-card-meta,.woocommerce-loop-product__meta,.posted_in,.product_meta){display:none!important}

/* ===== SALE ===== */
.woocommerce ul.products li.product.sale{
  border:1px solid var(--sale)!important;
  box-shadow:0 4px 16px rgba(255,0,0,.08)!important
}
.woocommerce ul.products li.product .onsale{
  position:absolute;top:10px;right:10px;z-index:3;
  background:var(--sale)!important;color:#fff!important;
  font-size:12px!important;font-weight:800!important;
  padding:2px 6px!important;border-radius:999px;line-height:1.2;
  box-shadow:0 3px 10px rgba(255,0,0,.28);text-transform:none!important
}
@media (max-width:576px){
  .woocommerce ul.products li.product .onsale{top:8px;right:8px;font-size:11px!important;padding:2px 6px!important}
}
.woocommerce ul.products li.product.sale :is(.price,.button,.add_to_cart_button){color:#fff!important}
.woocommerce ul.products li.product.sale :is(.button,.add_to_cart_button){background:var(--sale)!important;border-color:var(--sale)!important}
.woocommerce ul.products li.product.sale .price{color:var(--sale)!important}
html[lang^="fa"] .woocommerce ul.products li.product.sale .price bdi::after{color:var(--sale)!important}

/* ===== OOS (روی تصویر) ===== */
.woocommerce ul.products li.product:is(.outofstock,.out-of-stock) a{position:relative}
.woocommerce ul.products li.product:is(.outofstock,.out-of-stock) a img{filter:blur(.45px) saturate(.95) contrast(.98)!important}
/* فقط یک لیبل وسط تصویر */
.woocommerce ul.products li.product:is(.outofstock,.out-of-stock) a:has(img)::after{
  content:"اتمام موجودی";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:4;pointer-events:none;padding:8px 16px;border-radius:999px;white-space:nowrap;
  background:rgba(0,0,0,.65);color:#fff;font-weight:900;line-height:1
}
@media (max-width:576px){
  .woocommerce ul.products li.product:is(.outofstock,.out-of-stock) a:has(img)::after{padding:6px 14px;font-size:13px}
}
/* مخفی‌سازی لیبل‌های بومی/افزونه */
.woocommerce ul.products li.product :is(.outofstock-badge,.soldout,.stock.out-of-stock,[class*="outofstock"],[class*="out-of-stock"],.ct-product-badge--out-of-stock,.ct-out-of-stock){display:none!important}

/* ===== CTA (Add → View) ===== */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button){
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;white-space:nowrap;
  width:auto;min-width:52%;margin-top:auto;margin-inline:auto;padding:8px 16px;font-size:13.5px;font-weight:600;
  border-radius:999px!important;position:relative;overflow:hidden;text-align:center;
  padding-left:34px!important;padding-right:18px!important;min-height:40px
}
/* cart icon */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button)::after{
  content:"";width:18px;height:18px;position:absolute;left:10px;top:50%;transform:translateY(-50%);background-color:currentColor;
  -webkit-mask:var(--mask-cart);mask:var(--mask-cart)
}

/* loading (spinner static) */
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).loading{
  position:relative!important;color:transparent!important;font-size:0!important;line-height:0!important;
  padding:0!important;min-height:40px!important;pointer-events:none;
  background:transparent!important;border-color:transparent!important;border-width:0!important;box-shadow:none!important;outline:none!important
}
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).loading::before,
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).loading::after{content:none!important}
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).loading::after{
  content:""!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;
  width:20px;height:20px;border:2px solid rgba(255,255,255,.85);border-radius:50%
}
/* added */
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).added{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  background:transparent!important;border-color:transparent!important;border-width:0!important;box-shadow:none!important;outline:none!important;
  transition:none!important;animation:none!important;transform:none!important
}
/* view cart */
.woocommerce a.added_to_cart.wc-forward{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;white-space:nowrap;width:auto;min-width:52%;
  margin:0 auto;padding:8px 16px;font-size:13.5px;font-weight:600;border-radius:999px!important;position:relative;text-align:center;
  background:#2ecc71!important;border-color:#2ecc71!important;color:#fff!important;padding-left:34px!important;padding-right:18px!important;
  transition:none!important;animation:none!important;transform:none!important
}
.woocommerce a.added_to_cart.wc-forward::after{
  content:"";width:18px;height:18px;position:absolute;left:10px;top:50%;transform:translateY(-50%);background-color:currentColor;
  -webkit-mask:var(--mask-bag);mask:var(--mask-bag)
}

/* center */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button),
.woocommerce a.added_to_cart.wc-forward{margin-left:auto!important;margin-right:auto!important}

/* ===== Responsive ===== */
@media (max-width:576px){
  .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:12px!important;padding-inline:10px!important}
  .woocommerce ul.products li.product{padding:8px!important;border-radius:14px!important}
  .woocommerce ul.products li.product a img{margin:0 0 6px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;min-height:2.6em!important;margin:0 0 4px!important}
  .woocommerce ul.products li.product .price{font-size:16px!important;font-weight:970!important;margin:0 0 6px!important}
  .woocommerce ul.products li.product :is(.button,.add_to_cart_button){min-width:60%!important;min-height:36px;padding:7px 12px!important;font-size:12.2px!important;padding-left:34px!important}
  .woocommerce ul.products li.product :is(.button,.add_to_cart_button)::after{width:14px;height:14px;left:10px}
  .woocommerce a.added_to_cart.wc-forward{min-width:60%!important;padding:7px 12px!important;font-size:12.2px!important;padding-left:34px!important}
  .woocommerce a.added_to_cart.wc-forward::after{width:14px;height:14px;left:10px}
}
@media (min-width:1024px){
  .woocommerce ul.products li.product{max-width:245px!important;padding:12px!important;margin:0 auto 18px!important}
  .woocommerce ul.products li.product a img{max-width:210px!important;margin:0 auto 6px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;margin-bottom:5px!important}
  .woocommerce ul.products li.product .price{font-size:19px!important;font-weight:970!important}
  .woocommerce ul.products li.product :is(.button,.add_to_cart_button),
  .woocommerce a.added_to_cart.wc-forward{min-width:52%!important;font-size:13px!important;padding:7px 14px!important;gap:8px!important;background-position:left 12px center!important;background-size:16px 16px!important;padding-left:34px!important}
}

/* ===== Global price order & bold ===== */
html[lang^="fa"] .woocommerce-Price-amount .woocommerce-Price-currencySymbol{display:none!important}
html[lang^="fa"] .woocommerce-Price-amount bdi::after{content:" تومان";font-weight:inherit;margin-inline-start:4px}
html[lang^="fa"] .woocommerce-Price-amount{font-weight:970!important}

/* QoL */
img{-webkit-tap-highlight-color:transparent}

/* === PATCH — compact card/img + OOS tweaks + in-place view-cart (append at end) === */

/* 1) کارت و تصویر کمی کوچک‌تر */
@media (min-width:1024px){
  .woocommerce ul.products li.product{
    max-width:230px !important;   /* از 245 → 230 */
    padding:10px !important;       /* از 12 → 10 */
  }
  .woocommerce ul.products li.product a img{
    max-width:195px !important;    /* از 210 → 195 */
    margin-bottom:6px !important;  /* از 10 → 6 */
  }
}
@media (max-width:576px){
  .woocommerce ul.products li.product{
    padding:7px !important;
    border-radius:12px !important;
  }
  .woocommerce ul.products li.product a img{
    margin-bottom:5px !important;
    border-radius:12px !important;
  }
}

/* 2) جمع‌وجور کردن دکمه‌ها (بدون تغییر منطق و عرض‌های فعلی) + جلوگیری از هم‌افتادگی آیکن/متن */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button),
.woocommerce a.added_to_cart.wc-forward{
  font-size:11.8px !important;      /* کمی کوچک‌تر */
  padding:7px 12px !important;       /* جمع‌وجورتر از 8px 16px */
  min-height:32px !important;        /* قد کمی کمتر، اما امن برای متن */
  gap:6px !important;
  letter-spacing:0 !important;
  word-spacing:0 !important;
  padding-left:30px !important;      /* فضای کافی برای آیکن سمت چپ */
  white-space:nowrap !important;     /* جلوگیری از شکستن متن */
}
@media (max-width:576px){
  .woocommerce ul.products li.product :is(.button,.add_to_cart_button),
  .woocommerce a.added_to_cart.wc-forward{
    font-size:11px !important;
    padding:6px 10px !important;
    min-height:30px !important;
    padding-left:28px !important;
  }
}

/* 3) ناموجود + تخفیف: خط قرمز کارت حذف شود (برگشت به استایل پیش‌فرض کارت) */
.woocommerce ul.products li.product.sale:is(.outofstock,.out-of-stock){
  border-color:#ececec !important;         /* جایگزین قرمز */
  box-shadow:0 2px 8px rgba(0,0,0,.03) !important; /* مثل حالت عادی کارت */
}

/* 4) در حالت ناموجود، دکمه «اطلاعات بیشتر» طوسی شود */
.woocommerce ul.products li.product:is(.outofstock,.out-of-stock) a.button{
  background:#9e9e9e !important;
  border-color:#9e9e9e !important;
  color:#fff !important;
}

/* 5) «مشاهده سبد خرید» دقیقاً هم‌مکان و هم‌سایز «افزودن…» با فِید
   - دکمه افزودن را بعد از added پنهان می‌کنیم ولی فضا حفظ می‌شود (visibility)
   - دکمه مشاهده با margin منفی دقیقاً جای قبلی می‌نشیند و فقط opacity فید می‌شود
*/
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).added{
  opacity:0 !important;
  visibility:hidden !important;     /* فضا را نگه می‌دارد */
  pointer-events:none !important;
}

/* ارتفاع دکمه برای محاسبه جابه‌جایی دقیق */
.woocommerce ul.products li.product{ --btn-h:36px; }
@media (max-width:576px){ .woocommerce ul.products li.product{ --btn-h:34px; }}

/* جایگذاریِ «مشاهده سبد خرید» بدون خارج شدن از فلو */
.woocommerce a.added_to_cart.wc-forward{
  margin:calc(var(--btn-h) * -1) auto 0 !important;  /* دقیقاً روی جای قبلی می‌آید */
  opacity:0 !important;
  pointer-events:none !important;
  transition:opacity .2s ease !important;
}
.woocommerce ul.products li.product :is(.add_to_cart_button,.button).added + a.added_to_cart.wc-forward{
  opacity:1 !important;
  pointer-events:auto !important;
}
/* ===== OOS: پنهان کردن قیمت در حالت ناموجود ===== */
.woocommerce ul.products li.product.outofstock .price,
.woocommerce ul.products li.product.out-of-stock .price {
  display: none !important;
  visibility: hidden !important;
}
/* ===== 3-line title without increasing card height ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  -webkit-line-clamp: 3 !important; /* از ۲ به ۳ تغییر کرد */
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 4.3em !important; /* کنترل ارتفاع برای ۳ خط */
  line-height: 1.45 !important;
}
/* حذف کامل فاصله بین عکس و تیتر */
.woocommerce ul.products li.product a img {
  margin-bottom: 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.3 !important; /* کمی فشرده‌تر تا فاصله عمودی کمتر شه */
}
/* ============ Golnejad • Single Product — Fresh UI ============ */

/* دو ستون تمیز */
.single-product .entry-content > .product{
  display:grid; grid-template-columns: minmax(0,1fr) 420px;
  gap:18px; max-width:1240px; margin:28px auto; padding:0 18px;
}

/* کارت خلاصه چپ */
.single-product .summary{
  background:#fff; border:1px solid #ececec; border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06); padding:20px 24px;
}

/* عنوان و برچسب‌ها */
.single-product .summary .product_title{
  font-weight:800; font-size:22px; line-height:1.8 ; color:#111; margin:20 20 10px;
   margin-bottom: 15px !important;
}
.gol-tagsline{margin:6px 0 12px; font-size:14px; color:#555}
.gol-tagsline .meta-label{font-weight:700; color:#444}

/* گالری راست – کوچیک و مینیمال */
.single-product .woocommerce-product-gallery{
  background:#fff; border:1px solid #ececec; border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.06); padding:12px; display:flex; flex-direction:column;
  align-items:center; justify-content:flex-start;
}
.single-product .woocommerce-product-gallery__image a img{
  max-width:320px !important; height:auto !important; object-fit:contain;
}
.single-product .flex-control-thumbs{
  display:flex; gap:8px; margin-top:12px; padding:0;
}
.single-product .flex-control-thumbs li{list-style:none;}
.single-product .flex-control-thumbs img{
  width:56px; height:56px; object-fit:cover; border-radius:10px; border:1px solid #eee; cursor:pointer;
}

/* فرم: انتخاب نوع، تعداد، دکمه */
.woocommerce div.product form.cart{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:-80px}
.woocommerce div.product form.cart .value select{
  width:100%; height:42px; border:1px solid #e6e6e6; border-radius:12px; background:#fafafa;
  padding:8px 12px; font-size:14px;
}
.woocommerce div.product form.cart .quantity{
  display:inline-flex; align-items:center; gap:8px; background:#fafafa; border:1px solid #e6e6e6;
  border-radius:12px; padding:6px 10px;
  margin-top: -55px !important; /* بالاتر از این نباشه */
  margin-right: 400px !important;
}
.woocommerce div.product form.cart .quantity input.qty{
  width:56px; height:32px; line-height:32px; text-align:center; background:transparent; border:0; font-weight:700;
  
}
/* فرم: انتخاب نوع، تعداد، دکمه - دسکتاپ */
.woocommerce div.product form.cart{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:-50px;
}
.woocommerce div.product form.cart .value select{
  width:100%;
  height:42px;
  border:1px solid #e6e6e6;
  border-radius:12px;
  background:#fafafa;
  padding:8px 12px;
  font-size:14px;
}
.woocommerce div.product form.cart .quantity{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fafafa;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:6px 10px;
  margin-top:-55px !important;
  margin-right:400px !important;
}
.woocommerce div.product form.cart .quantity input.qty{
  width:56px;
  height:32px;
  line-height:32px;
  text-align:center;
  background:transparent;
  border:0;
  font-weight:700;
}

/* نسخه موبایل (اصلاح کامل و وسط‌چین) */
@media (max-width: 768px){
  .woocommerce div.product form.cart{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-top:0 !important;
    gap:12px;
  }

  /* انتخاب نوع */
  .woocommerce div.product form.cart .value select{
    width:90% !important;
    height:44px;
    font-size:15px;
  }

  /* بخش تعداد */
  .woocommerce div.product form.cart .quantity{
    margin:0 auto !important;
    width:160px;
    justify-content:center;
    align-items:center;
    padding:6px 10px;
    border-radius:12px;
    background:#fafafa;
    border:1px solid #e6e6e6;
  }

  /* دکمه افزودن به سبد خرید */
  .woocommerce div.product form.cart .single_add_to_cart_button{
    width:70% !important;
    font-size:15px !important;
    padding:12px 0 !important;
    border-radius:50px !important;
    margin:10px auto 0 !important;
    text-align:center;
    display:block;
  }
}

/* دکمه‌ها */
.woocommerce .single_add_to_cart_button{
  background:#ec2494; color:#fff; border:0; border-radius:26px; padding:12px 28px; font-weight:800; font-size:15px;
  box-shadow:0 10px 26px rgba(236,36,148,.22); transition:.2s; cursor:pointer;
}
.woocommerce .single_add_to_cart_button:hover{background:#d81f87; transform:translateY(-1px)}
.gol-view-cart{
  display:none; margin-inline-start:6px; background:#20bf55; color:#fff; border-radius:26px; padding:12px 18px; font-weight:800;
}
.gol-view-cart.show{display:inline-block}

/* تب‌ها در بلوک تمیز – راست‌چین و خوانا */
.woocommerce div.product .woocommerce-tabs{
  background:#fff; border:1px solid #ececec; border-radius:16px; box-shadow:0 10px 24px rgba(0,0,0,.06);
  max-width:1240px; margin:22px auto; padding:16px 18px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex; gap:10px; justify-content:flex-end; border:0; margin:0 0 12px}
.woocommerce div.product .woocommerce-tabs ul.tabs:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:before,
.woocommerce div.product .woocommerce-tabs ul.tabs li:after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0; border:0; background:transparent}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block; padding:10px 16px; border-radius:999px; background:#f5f5f5; color:#444; font-weight:800;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{
  background:#ec2494; color:#fff; /* فونت سفید در حالت انتخاب */
}
.woocommerce div.product .woocommerce-tabs .panel{border:0; padding:0}

/* ✅ تب‌ها در موبایل: حتماً یک‌سطرِ سه‌تایی */
@media (max-width: 600px){
  .woocommerce div.product .woocommerce-tabs{
    padding: 12px 14px !important;
    margin: 16px auto !important;
    border-radius: 14px !important;
  }

  /* به‌جای flex از grid سه‌ستونه استفاده می‌کنیم */
  .woocommerce div.product .woocommerce-tabs ul.tabs{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 8px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li{
    margin: 0 !important;
    width: auto !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a{
    display: block !important;
    text-align: center !important;
    padding: 8px 6px !important;      /* کوچک‌تر */
    font-size: 11.5px !important;      /* ریزتر تا جا شود */
    line-height: 1.2 !important;
    border-radius: 999px !important;
    background: #f5f5f5 !important;
    color: #444 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;     /* نپیچه */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
  .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover{
    background: #ec2494 !important;
    color: #fff !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel{
    padding: 0 !important;
  }
}
/* ✅ خط و فاصله بین تب‌ها و توضیحات */
@media (max-width: 600px){
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    margin-bottom: 10px !important; /* فاصله از محتوا */
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e5e5e5 !important; /* خط جداکننده لطیف */
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    margin-top: 10px !important; /* کمی فاصله بعد از خط */
  }
}


/* مخفی کردن توضیحات کوتاه در بالای باکس محصول */
.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .entry-summary .woocommerce-product-details__short-description,
.single-product .summary [itemprop="description"] {
  display: none !important;
}

/* دکمه صورتی: کاملاً گرد و شیک */
.single-product .single_add_to_cart_button{
  background:#ec2494 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;   /* گوشه‌ها کامل گرد */
  padding:12px 34px !important;
  font-weight:700 !important;
  font-size:16px !important;
  line-height:1 !important;
  box-shadow:0 6px 18px rgba(236,36,148,.25) !important;
  transition:.25s ease !important;
  margin-top: 10px !important; /* بالاتر از این نباشه */
  margin-right: -170px !important; /* بالاتر از این نباشه */
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(6px)}
  to{opacity:1; transform:translateY(0)}
}

/* وسط‌چین دقیق عدد داخل فیلد مقدار */
.single-product .quantity input.qty {
  text-align: center !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 16px !important;
  margin: 25px !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
/* مخفی‌سازی هر نوع متای پیش‌فرض محصول (در هر قالبی) */
.single-product .product .product_meta{
  display: none !important;
}
/* بلوک ویژگی‌های محصول زیر نام */


.gfu-title {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  margin-top: 10px;
}

.gfu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gfu-list li {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  display: flex;
  gap: 6px;
}

.gfu-label {
  font-weight: 700;
  color: #222;
}

html[dir="rtl"] .gfu-list li {
  direction: rtl;
  justify-content: flex-start;
}
/* 🔸 استایل شناسه محصول و برچسب‌ها در پایین باکس */
.gol-meta-bottom {
  margin-top: -20px !important;
  padding-top:10px !important;
  border-top: 1px solid #f2f2f2 !important;
  font-size: 14.5px !important;
  color: #333 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gm-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.9;
}

.gm-label {
  font-weight: 800 !important; /* تیتر بولد */
  color: #777 !important;       /* طوسی خوش‌رنگ */
}

.gm-value {
  font-weight: 500 !important;
  color: #111 !important;       /* تیره برای خوانایی */
}

html[dir="rtl"] .gol-meta-bottom {
  direction: rtl;
  text-align: right;
}

/* دکمه ثابت: اندازه تغییر نکند */
.single-product .single_add_to_cart_button{
  box-sizing: border-box !important;
  white-space: nowrap !important;   /* متن یک‌خطه بماند */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 32px !important;    /* در همه حالات ثابت */
}
/* جلوگیری از تغییر سایز دکمه افزودن به سبد خرید */
.single-product .single_add_to_cart_button {
  min-width: 180px !important;   /* پهنای ثابت */
  height: 44px !important;       /* ارتفاع ثابت */
  line-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

/* حالت کلیک یا لود */
.single-product .single_add_to_cart_button.loading,
.single-product .single_add_to_cart_button.added {
  background: #d91f87 !important;    /* رنگ ثابت (صورتی تیره‌تر یا دلخواهت) */
  color: #fff !important;
}

/* متن "در حال افزودن..." */
.single-product .single_add_to_cart_button.loading::after {
  content: " ...";
  animation: golBlink 1s infinite;
}

/* افکت نقطه‌چین چشمک‌زن */
@keyframes golBlink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
/* قیمت اصلی در صفحه محصول */
.single-product .woocommerce-Price-amount,
.single-product .woocommerce-variation-price .price,
.single-product .price ins,
.single-product .price del {
  color: #ec2494 !important;
}

/* در محصولات متغیر (قیمت انتخابی و نهایی) */
.single-product .woocommerce-variation-price .woocommerce-Price-amount {
  color: #ec2494 !important;
}

/* قیمت تخفیف‌خورده و خط‌خورده (اگر خواستی کمرنگ‌تر باشه) */
.single-product .price del {
  opacity: 0.6;
}

/* قیمت اصلی در حالت hover یا انتخاب نوع محصول */
.single-product .price ins {
  text-decoration: none !important;
  color: #ec2494 !important;
  font-weight: 700;
}
/* گل‌نژاد – تاگل ویژگی‌ها (نمایش 3 مورد اول) */
.gol-feats { position: relative; }
.gol-feats.collapsed .feat-item:nth-child(n+4) { display: none; }

/* 🌸 گل‌نژاد – استایل نهایی دکمه نمایش بیشتر */
.gol-feats .gol-feats-toggle {
  background: none;
  border: none;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: all 0.2s ease;
  direction: rtl; /* برای چپ‌چین درست در زبان فارسی */
}

.gol-feats .gol-feats-toggle:hover {
  color: #ec2494; /* رنگ برند در حالت هاور */
  transform: translateY(-1px);
}
/* هم‌عرض کردن توضیحات کوتاه با تب‌های پایین */
.single-product .gol-shortdesc{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
  /* دقیقا مثل تب‌ها: */
  max-width:1240px;
  margin:24px auto;          /* وسط‌چین و فاصله‌ی عمودی هماهنگ */
  padding:16px 18px;
}

.single-product .gol-shortdesc h3{
  color:#ec2494;
  font-size:18px;
  font-weight:700;
  margin:0 0 12px;
  padding-bottom:6px;
  border-bottom:1px solid #f1f1f1;
  display:inline-block;
}

.single-product .gol-shortdesc .inner{
  font-size:15px;
  line-height:2;
  color:#333;
}
/* === GOLNEJAD | Force product title to 2 lines (Blocksy/Woo) === */

/* پوشش چند سلکتور رایج در Blocksy + Woo */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ct-product-title,
.woocommerce ul.products li.product .ct-woo-card-title,
.woocommerce ul.products li.product .ct-product-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a{
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;

  white-space: normal !important;
  word-break: break-word !important;

  line-height: 1.55 !important;
  max-height: calc(1.55em * 2) !important;
}

/* اگر قالب عرض تب‌ها را عوض کند، با تب‌ها sync بماند */
.single-product .woocommerce-tabs{ max-width:1240px; margin:28px auto; }
@media (max-width:900px){
  .single-product .gol-shortdesc,
  .single-product .woocommerce-tabs{ max-width:100%; margin-right:auto; margin-left:auto; }
}
/* رفع مشکل خوانایی تب فعال (صورتی با متن سفید) */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background-color: #ec2494 !important; /* رنگ برند */
  color: #fff !important;               /* متن سفید */
}

/* در حالت عادی تب‌ها مشکی تیره باشند */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #333 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: inline-block;
  margin: 0 8px;
  border: none !important;
  background: #f7f7f7;
  border-radius: 25px !important; /* گوشه‌های گرد */
  transition: all 0.3s ease;
}

/* حذف خطوط و حاشیه‌های اضافی ووکامرس */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
  display: none !important;
}
/* ===== نظرات محصول (طراحی کارت تمیز، مینیمال) ===== */
.woocommerce-Reviews {
  margin-top: 18px;
}
.woocommerce-Reviews #comments, 
.woocommerce-Reviews #review_form_wrapper {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  padding: 18px;
}

/* تیتر بخش نظرات */
.woocommerce-Reviews .woocommerce-Reviews-title,
#review_form #reply-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #111;
}

/* لیست دیدگاه‌ها */
.woocommerce-Reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-Reviews .commentlist li {
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.woocommerce-Reviews .commentlist li .meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}
.woocommerce-Reviews .commentlist .description p {
  margin: 6px 0 0;
  line-height: 1.9;
  color: #333;
  font-size: 14px;
}

/* ستاره‌ها – رنگ برند */
.woocommerce .star-rating span,
.woocommerce .star-rating,
.p.stars a,
.p.stars a:hover,
.p.stars a.active {
  color: #ec2494 !important;
}
.woocommerce .star-rating {
  float: none;
  display: inline-block;
}

/* فرم ارسال نظر */
#review_form_wrapper {
  margin-top: 16px;
}
#review_form .comment-form label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
#review_form .comment-form input[type="text"],
#review_form .comment-form input[type="email"],
#review_form .comment-form select,
#review_form .comment-form textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #222;
}
#review_form .comment-form textarea { min-height: 120px; }

#review_form .comment-form input:focus,
#review_form .comment-form textarea:focus,
#review_form .comment-form select:focus {
  border-color: #ec2494;
  box-shadow: 0 0 0 3px rgba(236,36,148,.15);
  outline: none;
}

/* دکمه ثبت نظر هماهنگ با بقیه دکمه‌ها */
#review_form #respond .form-submit input[type="submit"]{
  background:#ec2494;
  color:#fff;
  border:0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(236,36,148,.22);
  transition: .2s ease;
  cursor: pointer;
}
#review_form #respond .form-submit input[type="submit"]:hover{
  background:#d91f87;
  transform: translateY(-1px);
}

/* نشان "خریدار تأییدشده" */
.woocommerce-review__verified {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #555;
}

/* راست‌چین و جمع‌وجور */
.woocommerce-Reviews, 
.woocommerce-Reviews * { direction: rtl; }
.woocommerce-Reviews .commentlist li .comment_container img.avatar { 
  width: 42px; height: 42px; border-radius: 50%; margin-left: 10px; 
}

/* فاصله‌ها در موبایل */
@media (max-width: 768px){
  .woocommerce-Reviews #comments, 
  .woocommerce-Reviews #review_form_wrapper { padding: 14px; }
  #review_form #respond .form-submit input[type="submit"]{ width: 100%; }
}
/* فونت جمله «اولین کسی باشید که…» و تیتر فرم نظر */
#review_form #reply-title,
.woocommerce-Reviews .woocommerce-noreviews {
  font-family: "IRANSansX", "IRANSansXFaNum", sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
/* دکمه ثبت نظر (WooCommerce Reviews) — اجبار به رنگ برند */
.woocommerce #review_form #respond .form-submit input#submit,
#review_form #respond .form-submit input#submit,
#review_form #respond button[type="submit"],
.woocommerce #review_form #respond button[type="submit"]{
  background: #ec2494 !important;
  background-color: #ec2494 !important; /* برای قالب‌هایی که از background-color استفاده می‌کنند */
  color: #fff !important;
  border: 0 !important;
  border-color: #ec2494 !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  min-width: 120px !important;
  width: auto !important;
  box-shadow: 0 8px 18px rgba(236,36,148,.18) !important;
}

.woocommerce #review_form #respond .form-submit input#submit:hover,
#review_form #respond .form-submit input#submit:hover,
#review_form #respond button[type="submit"]:hover,
.woocommerce #review_form #respond button[type="submit"]:hover{
  background: #d91f87 !important;
  background-color: #d91f87 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(236,36,148,.24) !important;
}
/* استایل حرفه‌ای برچسب درصد تخفیف */
.woocommerce span.onsale {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important; /* انتقال به سمت راست */
  left: auto !important;
  background: #ff3b3b !important;
  color: #fff !important;
  font-family: "IRANSansXFaNum", "IRANSansX", sans-serif !important;
  font-size: 16px !important; /* درشت‌تر */
  font-weight: 800 !important;
  border-radius: 50px !important;
  padding: 10px 18px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 55px !important;
  height: 40px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(255, 59, 59, 0.25) !important;
  direction: rtl !important; /* عدد فارسی درست وسط */
}

/* در موبایل کوچکتر */
@media (max-width: 768px) {
  .woocommerce span.onsale {
    font-size: 14px !important;
    width: 45px !important;
    height: 35px !important;
  }
}
/* فیکس نمایش تصویر محصول در Safari موبایل */
@supports (-webkit-touch-callout: none) {
  .single-product .woocommerce-product-gallery {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .single-product .woocommerce-product-gallery__wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .single-product .woocommerce-product-gallery__image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .single-product .woocommerce-product-gallery__image img {
    display: block !important;
    width: auto !important;
    max-width: 95% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 10px !important;
    -webkit-transform: translateZ(0);
  }
/* جلوگیری از انتخاب سایز کوچک و upscale در Safari موبایل */
@supports (-webkit-touch-callout: none) {
  .single-product .woocommerce-product-gallery,
  .single-product .woocommerce-product-gallery__wrapper,
  .single-product .woocommerce-product-gallery__image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .single-product .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;     /* به اندازه‌ی قاب، نه بزرگ‌تر */
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    -webkit-transform: translateZ(0); /* کمک به رندر تمیز */
    image-rendering: auto;
  }
}
/* Safari fix: نمایش عدد داخل input.qty و مرکزکردن آن */
@supports (-webkit-touch-callout: none) {
  .single-product .quantity{ overflow: visible !important; }

  .single-product .quantity input.qty{
    -webkit-appearance: textfield !important;
    appearance: textfield !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #111 !important;
    opacity: 1 !important;
    transform: none !important;
    position: relative !important;
    top: 0 !important;
  }

  .single-product .quantity input.qty::-webkit-outer-spin-button,
  .single-product .quantity input.qty::-webkit-inner-spin-button{
    -webkit-appearance: none !important;
    margin: 0 !important;
  }
}
/* ===============================
   GOLNEJAD — Responsive Button Fixes
   فقط اندازه کلیدها ریسپانسیو شده
   =============================== */

/* ===== Global Buttons ===== */
:where(.button,.ct-button,.wp-element-button,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.add_to_cart_button,.single_add_to_cart_button,.checkout-button){
  background:var(--brand)!important;
  border:1px solid var(--brand)!important;
  color:#fff!important;
  font-weight:600;
  border-radius:999px;
  padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
  font-size: clamp(12px, 3vw, 14px);
  transition:transform .2s,box-shadow .2s,background .2s,border-color .2s;
  white-space: nowrap;
}

/* ===== دکمه افزودن به سبد خرید (صفحه محصول) ===== */
.woocommerce .single_add_to_cart_button{
  background:#ec2494 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:999px !important;
  padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 34px) !important;
  font-weight:800 !important;
  font-size: clamp(13px, 3.5vw, 16px) !important;
  line-height:1 !important;
  box-shadow:0 10px 26px rgba(236,36,148,.22) !important;
  transition:.25s ease !important;
  min-width: clamp(140px, 40vw, 180px) !important;
  min-height: clamp(40px, 10vw, 44px) !important;
  white-space: nowrap !important;
}

/* ===== فیلد تعداد (quantity) ===== */
.woocommerce div.product form.cart .quantity input.qty{
  width: clamp(48px, 12vw, 56px);
  height: clamp(28px, 7vw, 32px);
  line-height: clamp(28px, 7vw, 32px);
  text-align:center;
  background:transparent;
  border:0;
  font-weight:700;
  font-size: clamp(13px, 3.5vw, 16px);
}

/* ===== دکمه‌های کارت محصول (آرشیو) ===== */
.woocommerce ul.products li.product :is(.button,.add_to_cart_button){
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  width:auto;
  min-width:52%;
  margin-top:auto;
  margin-inline:auto;
  padding: clamp(6px, 2vw, 8px) clamp(12px, 3.5vw, 16px);
  font-size: clamp(11.8px, 3vw, 13.5px);
  font-weight:600;
  border-radius:999px!important;
  position:relative;
  overflow:hidden;
  text-align:center;
  padding-left: clamp(28px, 7vw, 34px) !important;
  padding-right:18px!important;
  min-height: clamp(30px, 8vw, 40px);
}

/* ===== دکمه مشاهده سبد خرید ===== */
.woocommerce a.added_to_cart.wc-forward{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  width:auto;
  min-width:52%;
  margin:0 auto;
  padding: clamp(6px, 2vw, 8px) clamp(12px, 3.5vw, 16px);
  font-size: clamp(11.8px, 3vw, 13.5px);
  font-weight:600;
  border-radius:999px!important;
  position:relative;
  text-align:center;
  background:#2ecc71!important;
  border-color:#2ecc71!important;
  color:#fff!important;
  padding-left: clamp(28px, 7vw, 34px) !important;
  padding-right:18px!important;
  transition:none!important;
  animation:none!important;
  transform:none!important;
}

/* ===== تب‌های محصول ===== */
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  display:inline-block;
  padding: clamp(8px, 2vw, 10px) clamp(12px, 3.5vw, 16px);
  border-radius:999px;
  background:#f5f5f5;
  color:#444;
  font-weight:800;
  font-size: clamp(12px, 3vw, 14px);
}

/* ===== دکمه اعمال فیلتر ===== */
.gol-apply,
.gol-apply-btn{
  width:100%;
  margin-top:8px;
  border:none;
  border-radius:999px;
  background:#ec2494;
  color:#fff;
  font-weight:800;
  font-size: clamp(13px, 3.5vw, 14px);
  padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 16px);
  cursor:pointer;
  box-shadow:0 8px 18px rgba(236,36,148,.22);
  transition:.18s ease;
}

/* ===== Pills (نوار مرتب‌سازی) ===== */
.gol-sortbar .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: clamp(5px, 1.5vw, 6px) clamp(10px, 2.5vw, 12px);
  border-radius:999px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  font-size: clamp(11px, 2.8vw, 13px);
  color:#333;
  text-decoration:none;
  transition:.18s ease;
  white-space:nowrap;
}

/* ===== دکمه Place Order (Checkout) ===== */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order{
  width:100% !important;
  border-radius:999px !important;
  background:var(--brand, #ec2494) !important;
  border:1px solid var(--brand, #ec2494) !important;
  color:#fff !important;
  font-weight:1000 !important;
  font-size: clamp(13px, 3.5vw, 15px) !important;
  padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 18px) !important;
  box-shadow:0 12px 28px rgba(236,36,148,.20) !important;
  transition:.2s ease !important;
}

/* ===== دکمه‌های My Account ===== */
.woocommerce-MyAccount-navigation a{
  display:flex;
  align-items:center;
  gap:10px;
  padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 18px);
  border-radius:14px;
  background:#f6f6f6;
  color:#222;
  font-weight:600;
  font-size: clamp(13px, 3.5vw, 14px);
  transition:all 0.25s ease;
}

/* ===== دکمه‌های Cart ===== */
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce input.button{
  border-radius:999px !important;
  padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 18px) !important;
  height:auto !important;
  min-height: clamp(40px, 10vw, 44px) !important;
  font-weight:900 !important;
  font-size: clamp(13px, 3.5vw, 14px) !important;
  line-height:1 !important;
  box-shadow:0 10px 24px rgba(0,0,0,.06) !important;
  border:1px solid #ececec !important;
}

/* ===== موبایل: تنظیمات خاص ===== */
@media (max-width: 768px){
  
  /* دکمه افزودن به سبد خرید */
  .woocommerce .single_add_to_cart_button{
    width:70% !important;
    font-size:15px !important;
    padding:12px 0 !important;
  }

  /* تب‌های محصول */
  .woocommerce div.product .woocommerce-tabs ul.tabs li a{
    font-size:11.5px !important;
    padding:8px 6px !important;
  }

  /* دکمه‌ها در موبایل */
  body.woocommerce-cart :is(button.button, .button, a.button, button[name="apply_coupon"], button[name="update_cart"], a.checkout-button){
    width:100% !important;
    border-radius:999px !important;
    font-weight:900 !important;
    padding:12px 18px !important;
  }
}