/*
Theme Name: Tokogi
Theme URI: https://Tokogi.com
Author: Your Name
Description: Custom theme (optimized)
Version: 1.1
Text Domain: Tokogi
*/

/* =========================================================
   1) DESIGN TOKENS & BASE
   ========================================================= */
:root{
  /* colors */
  --bg: #ebeef0;
  --text: #111;
  --muted: #444;
  --accent: #ff6600;

  /* layout */
  --container: max(72rem, 70%);
  --header-h: 76px;           /* desktop header height */
  --radius-lg: 28px;

  /* breakpoints */
  --bp-md: 900px;
  --bp-sm: 768px;
}
@media (max-width: 900px){
  :root{ --header-h: 60px; }  /* mobile header height */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
img{ max-width: 100%; height: auto; display: block; }
.container{ width: min(var(--container), 98vw); margin-inline: auto; }
html, body{ overflow-x: hidden; } /* prevent accidental horizontal scroll */


/* ===== Force vertical scroll on mobile ===== */
html, body {
  overflow-x: hidden;   /* فقط افقی بسته باشه */
  overflow-y: auto;     /* عمودی همیشه باز باشه */
  -webkit-overflow-scrolling: touch; /* برای اسکرول نرم روی iOS */
}

/* وقتی منوی موبایل بازه فقط اسکرول بسته میشه */
body.menu-open {
  overflow: hidden;
}

/* مطمئن شو بک‌دراپ وقتی hidden هست کامل حذف شه */
.mobile-backdrop[hidden]{
  display: none !important;
}


/* =========================================================
   Shipping & Delivery
   ========================================================= */
   /* === Shipping & Delivery Page (match Refund/Privacy) === */
.ls-shipping-policy .ls-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.ls-shipping-policy .ls-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
  text-align: center;
}

.ls-shipping-policy .ls-updated {
  font-size: 14px;
  color: #6b7280; /* کمی کم‌رنگ‌تر */
  margin-bottom: 28px;
  text-align: center;
}

.ls-shipping-policy .ls-article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-top: 32px;
  margin-bottom: 12px;
}

.ls-shipping-policy .ls-article p {
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 16px;
  color: #1f2937;
}

.ls-shipping-policy .ls-article ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
  color: #374151;
}

.ls-shipping-policy .ls-article a {
  color: #0073aa;
  text-decoration: underline;
}

.ls-shipping-policy .ls-article strong {
  color: #111;
  font-weight: 600;
}
   
/* =========================================================
   Terms of Service
   ========================================================= */
   /* === Terms Page (match Refund/Privacy style) === */
.ls-terms .ls-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.ls-terms .ls-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
  text-align: center;
}

.ls-terms .ls-updated {
  font-size: 14px;
  color: #6b7280; /* کم‌رنگ */
  margin-bottom: 28px;
  text-align: center;
}

.ls-terms .ls-article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-top: 32px;
  margin-bottom: 12px;
}

.ls-terms .ls-article p {
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 16px;
  color: #1f2937;
}

.ls-terms .ls-article ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
  color: #374151;
}

.ls-terms .ls-article a {
  color: #0073aa;
  text-decoration: underline;
}

.ls-terms .ls-article strong {
  color: #111;
  font-weight: 600;
}

/* =========================================================
   ریفاند
   ========================================================= */
   /* === Refund Policy Page === */
.ls-refund-policy .ls-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.ls-refund-policy .ls-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
  text-align: center;
}

.ls-refund-policy .ls-updated {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
  text-align: center;
}

.ls-refund-policy .ls-article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-top: 32px;
  margin-bottom: 12px;
}

.ls-refund-policy .ls-article p {
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 16px;
  color: #1f2937;
}

.ls-refund-policy .ls-article ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
  color: #374151;
}

.ls-refund-policy .ls-article a {
  color: #0073aa;
  text-decoration: underline;
}

.ls-refund-policy .ls-article strong {
  color: #111;
  font-weight: 600;
}

/* =========================================================
   پالیسی Policy
   ========================================================= */
/* === Privacy Policy Page (refined) === */
.ls-privacy-policy .ls-container {
  max-width: 880px;            /* پهنای کمتر طبق خواسته */
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

/* تیتر و تاریخ هر دو وسط‌چین */
.ls-privacy-policy .ls-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.ls-privacy-policy .ls-updated {
  text-align: center;
  font-size: 14px;
  color: #6b7280;              /* کم‌رنگ‌تر طبق خواسته */
  margin-bottom: 28px;
}

/* تیترهای داخل متن */
.ls-privacy-policy .ls-article h2,
.ls-privacy-policy .ls-article h3 {
  font-size: 22px;             /* سایز تیترها */
  font-weight: 600;
  color: #111;
  margin-top: 32px;            /* فاصله‌ها طبق خواسته */
  margin-bottom: 12px;
}

/* متن پاراگراف‌ها */
.ls-privacy-policy .ls-article p {
  line-height: 1.8;            /* Line-height طبق خواسته */
  font-size: 14px;             /* Font-size طبق خواسته */
  margin: 0 0 16px;
  color: #676767;
}

/* لیست‌ها و لینک‌ها */
.ls-privacy-policy .ls-article ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
  color: #374151;
}

.ls-privacy-policy .ls-article a {
  color: #0073aa;
  text-decoration: underline;
}

.ls-privacy-policy .ls-article strong {
  color: #111;
  font-weight: 600;
}

/* اختیاری: نقل‌قول و تقسیم‌کننده */
.ls-privacy-policy .ls-article blockquote {
  border-left: 4px solid #0073aa;
  background: #f9fafb;
  padding: 12px 18px;
  margin: 20px 0;
  color: #374151;
  font-style: italic;
}

.ls-privacy-policy .ls-article hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

/* =========================================================
   FOOTER
========================================================= */
.tk-footer{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#ffffff;
  color:#111;
  padding:64px 0 28px;
}

.tk-footer::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:min(40vw, 600px);
  height:min(60vw, 800px);
  background-image:url("https://tokogi.com/wp-content/uploads/2026/04/IMG_1882.png");
  background-repeat:no-repeat;
  background-position:right bottom;
  background-size:contain;
  opacity:.95;
  pointer-events:none;
  z-index:1;
}

.tk-footer-wrap{
  position:relative;
  z-index:2;
  width:min(1100px, 92vw);
  margin:0 auto;
}

/* لایه وسطی واقعی برای متن */
.tk-footer-inner{
  width:min(520px, 100%);
  margin:0 auto;
  text-align:center;
}

.tk-footer-navs{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
}

.tk-footer-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.tk-footer-heading{
  margin:0;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:.4em;
  text-transform:uppercase;
  color:#111;
}

.tk-footer-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items: center;
  gap:8px;
}

.tk-footer-list li{
  margin:0;
  padding:0;
}

.tk-footer-list a{
  color:#111;
  text-decoration:none;
  font-size:14px;
  line-height:1.5;
  transition:opacity .2s ease;
}

.tk-footer-list a:hover{
  opacity:.65;
}

.tk-footer-support-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.tk-footer-support-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:160px;
  min-height:40px;
  padding:0 16px;
  border:1px solid #d6d6d6;
  border-radius:999px;
  background:transparent;
  color:#111;
  text-decoration:none;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  transition:opacity .2s ease, transform .2s ease;
}

.tk-footer-support-btn:hover{
  opacity:.75;
  transform:translateY(-1px);
}

.tk-footer-support-btn svg{
  width:16px;
  height:16px;
  fill:currentColor;
  flex:0 0 16px;
}

.tk-footer-social{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.tk-footer-social-btn{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d6d6d6;
  border-radius:999px;
  color:#111;
  text-decoration:none;
  transition:opacity .2s ease, transform .2s ease;
}

.tk-footer-social-btn:hover{
  opacity:.75;
  transform:translateY(-1px);
}

.tk-footer-social-btn svg{
  width:18px;
  height:18px;
  fill:currentColor;
}

.tk-footer-brand{
  margin-top:72px;
  display: flex;
    flex-direction: column;
    align-items: center;
}

.tk-footer-logo{
  display:inline-block;
  color:#111;
  text-decoration:none;
  font-family:Georgia, "Times New Roman", serif;
  font-size:62px;
  font-weight:400;
  line-height:1;
  letter-spacing:.01em;
}

.tk-footer-logo:hover{
  opacity:.75;
}

.tk-footer-tagline{
  margin:18px auto 0;
  max-width:420px;
  color:#555;
  font-size:12px;
  line-height:1.8;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.tk-footer-bottom{
  margin-top:10px;
  padding-top:22px;
  display: flex;
    flex-direction: column;
    align-items: center;
}

.tk-footer-copy{
  margin:0;
  color:#555;
  font-size:12px;
  line-height:1.9;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media (max-width: 991px){
  .tk-footer::after{
    inset:0;
    width:100%;
    height:100%;
    background-image:
      linear-gradient(rgb(255 255 255 / 58%), rgb(255 255 255 / 58%)),
      url("https://tokogi.com/wp-content/uploads/2026/04/IMG_1882.png");
    background-repeat:no-repeat;
    background-position:center right;
    background-size:cover;
    opacity:1;
  }
}

.tk-footer-payments-icons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.tk-footer-payments-icons img{
  height:22px;
  width:auto;
  opacity:0.9;
  transition:all .2s ease;
  filter:grayscale(100%);
}

.tk-footer-payments-icons img:hover{
  opacity:1;
  filter:grayscale(0%);
  transform:translateY(-1px);
}

@media (max-width: 767px){
  .tk-footer{
    padding:48px 0 24px;
  }

  .tk-footer-navs{
    gap:24px;
  }

  .tk-footer-logo{
    font-size:42px;
  }

  .tk-footer-tagline{
    font-size:11px;
    letter-spacing:.12em;
  }

  .tk-footer-copy{
    font-size:11px;
    letter-spacing:.09em;
  }
}
/* =========================================================
   ووکامرس بخش محصولات
   ========================================================= */
   
   /* استایل‌های عمومی */
.ls-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* تقسیم دو به یک برای بخش چپ و راست در دسکتاپ */
    gap: 20px;
}

/* بخش سمت راست در دسکتاپ: ثابت (sticky) و بالا ماندن هنگام اسکرول */
.ls-right {
    position: sticky;
    top: 20px; /* فاصله از بالای صفحه هنگام اسکرول */
    align-self: flex-start; /* این خط کمک می‌کند که المنت به بالای کانتینر خود بچسبد. */
    height: fit-content; /* ارتفاع را بر اساس محتوای داخلش تنظیم می‌کند. */
}

/* مخفی کردن بخش موبایل در دسکتاپ */
.ls-summary-mobile {
    display: none;
}

/* استایل‌ها برای نمایشگرهای موبایل (عرض کمتر از 768px) */
@media screen and (max-width: 768px) {
    .ls-grid {
        display: flex; /* تغییر به فلکس‌باکس برای چیدمان عمودی */
        flex-direction: column;
    }

    /* مخفی کردن بخش دسکتاپ در موبایل */
    .ls-summary-desktop {
        display: none;
    }

    /* نمایش بخش موبایل و قرار دادن آن در بالاترین مکان */
    .ls-summary-mobile {
        display: block; /* یا flex بسته به نیاز */
        width: 100%;
        order: -1; /* این خط باعث می‌شود که در بالای لیست قرار گیرد. */
    }

    /* غیرفعال کردن استایل sticky در موبایل */
    .ls-right {
        position: static;
        top: auto;
    }
}

/* ===== قاب‌بندی کل صفحه محصول ===== */
.ls-product {
  max-width: 1280px;      /* حداکثر عرض در دسکتاپ */
  margin: 25px auto;         /* وسط‌چین کردن */
  padding: 0 16px;        /* فاصله داخلی در چپ و راست (برای موبایل هم کار می‌کنه) */
  box-sizing: border-box; /* برای درست شدن padding در محاسبه عرض */
}


.ls-upsells,
.ls-reviews-wrap {
  display: block;
  width: 100%;
  margin-bottom: 40px;
  clear: both;
}

/* =========================================================
   فرم محصول: قیمت، کشو، تعداد و دکمه
   (رویکرد جامع و بدون تداخل)
========================================================= */
/* ===== عنوان محصول ===== */
h1.product_title.entry-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #111 !important;
  margin: 0 0 18px 0 !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #00000021;
}

/* افکت جذاب روی هاور */
h1.product_title.entry-title:hover {
  color: #838383 !important;
  transition: color 0.3s ease;
}

/* --- بخش Summary --- */
.ls-summary-desktop,
.ls-summary-mobile {
  position: relative !important;
  z-index: 10 !important;
  /* استایل پیشنهادی */
  padding: 20px;              /* فاصله داخلی */
  border: 1px solid #eee;     /* خط دور ملایم */
  border-radius: 8px;         /* گوشه‌های گرد */

}

/* --- ردیف Ratings --- */
/* ریتینگ: تمام‌عرض، بدون مارجین کناری، چسبیده و تمیز */
.ls-summary-desktop .woocommerce-product-rating,
.ls-summary-mobile  .woocommerce-product-rating{
  display: block !important;     /* به‌جای flex */
  width: 100% !important;
  margin: 6px 0 8px !important;  /* بدون مارجین کناری */
  padding: 0 !important;
}

/* هم‌خط شدن آیتم‌های داخل ریتینگ */
.ls-summary-desktop .woocommerce-product-rating > *,
.ls-summary-mobile  .woocommerce-product-rating > *{
  vertical-align: middle;
}

/* حذف هر مارجین ناخواسته از اولین آیتم (مثلاً ستاره‌ها) */
.ls-summary-desktop .woocommerce-product-rating > :first-child,
.ls-summary-mobile  .woocommerce-product-rating > :first-child{
  margin-left: 0 !important;
}

/* اطمینان از صفر بودن مارجین ستاره‌ها */
.woocommerce .woocommerce-product-rating .star-rating{
  margin: 0 !important;
  float: none !important;
  display: inline-block !important;
}

/* ===== لینک شمارش نظرات بالای محصول ===== */
.woocommerce-review-link {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  margin-left: 8px;
  text-decoration: none;
  transition: color .2s ease;
}

.woocommerce-review-link:hover {
  color: #838383;
  text-decoration: underline;
}

/* شمارش داخل پرانتز (تعداد) بولدتر بشه */
.woocommerce-review-link .count {
  font-weight: 400;
  color: #000000;
}
.woocommerce-review-link .count:hover {
    color: #838383;
}

/* ===== استایل مدرن قیمت محصول ===== */
.ls-summary-desktop .price,
.ls-summary-mobile .price {
  margin: 20px 0 !important;       /* حذف مارجین کناری */
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #111 !important;
  display: block;                  /* تمام عرض در دسترس */
  position: relative;
  padding: 0;                      /* حذف بکگراند و پدینگ */
  background: none !important;     /* حذف پس‌زمینه */
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* قیمت تخفیف خورده (قدیمی) */
.ls-summary-desktop .price del,
.ls-summary-mobile .price del {
  font-size: 16px !important;
  color: #888 !important;
  margin-right: 8px;
  text-decoration: line-through;
}

/* قیمت اصلی (جدید) */
.ls-summary-desktop .price ins,
.ls-summary-mobile .price ins {
  text-decoration: none !important;
  color: #111 !important;
}

/* --- بخش Variations: Label و Select --- */
.ls-summary-desktop .variations,
.ls-summary-mobile .variations {
    width: 100% !important;
    margin: 8px 0 !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.ls-summary-desktop .variations td.label,
.ls-summary-mobile .variations td.label {
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 800 !important;
    color: #111 !important;
    white-space: nowrap !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.ls-summary-desktop .variations td.value,
.ls-summary-mobile .variations td.value {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.ls-summary-desktop .variations select,
.ls-summary-mobile  .variations select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 55% !important;
    background: #f6f7f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center !important;
    background-size: 16px !important;
    border: 1px solid #e6e8eb !important;
    border-radius: 14px !important;
    padding: 12px 42px 12px 14px !important;
    font: 400 14px/1.4 Arial, Helvetica, sans-serif !important; /* وزن 400 (نرمال) */
    color: #444 !important; /* کم‌رنگ‌تر از #111 */
    outline: none !important;
    cursor: pointer;
}

/* هنگام فوکوس یا هاور */
.ls-summary-desktop .variations select:hover,
.ls-summary-mobile  .variations select:hover {
    border-color: #0b66ff !important;
}

.ls-summary-desktop .variations select:focus,
.ls-summary-mobile  .variations select:focus {
    border-color: #0b66ff !important;
    box-shadow: 0 0 0 3px rgba(11,102,255,.12);
}

/* --- استایل Select2 / SelectWoo --- */
.ls-summary-desktop .select2-container,
.ls-summary-mobile .select2-container {
    width: 100% !important;
    /* زوم روی استایل‌های کشوی باز شده */
}
/* عرض دلخواه داخل summary ها */
.ls-summary-desktop .variations .select2-container,
.ls-summary-mobile  .variations .select2-container {
  max-width: 205px !important;
  width: 100% !important;
}

/* ===============================
   ظاهر کشوی بسته (Single)
   =============================== */
.select2-container--default .select2-selection--single {
  height: 36px !important;
  background-color: #fff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 0 36px 0 12px !important;   /* متن و فلش مرتب */
  display: flex !important;            /* متن وسط عمودی */
  align-items: center !important;
  transition: border-color .2s, box-shadow .2s;
}

/* متن انتخاب‌شده / placeholder داخل نوار */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  font-size: 13px !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  color: #111 !important;
}

/* فلش کشو هماهنگ با ارتفاع */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px !important;
  right: 8px !important;
}

/* ===============================
   لیست بازشونده (Dropdown)
   =============================== */
.select2-dropdown {
  position: absolute;                  /* از fixed پرهیز کن */
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;                    /* لبه‌های گرد تمیز */
  z-index: 9999;                       /* بالاتر از کارت‌ها */
  touch-action: pan-y;                 /* اسکرول عمودی آزاد در موبایل */
}

.select2-results > .select2-results__options {
  max-height: 280px;                   /* لیست بلند اسکرول‌دار */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.select2-container--default .select2-results__option {
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111 !important;
  border-radius: 8px;
  margin: 2px 6px;
  transition: background-color .2s ease, color .2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: linear-gradient(135deg, #0b66ff, #0846b8) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #f1f4ff !important;
  color: #0b66ff !important;
  font-weight: 600 !important;
  border-radius: 8px;
}

/* حالت hover/focus روی نوار بسته */
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--single:focus {
  border-color: #0b66ff !important;
  box-shadow: 0 0 0 3px rgba(11,102,255,0.12) !important;
}

/* اگر ماسک Select2 ساخته شد، اسکرول را قفل نکند */
.select2-close-mask {
  background: transparent !important;
  /* در صورت نیازِ اضطراری:
  pointer-events: none !important;
  */
}

/* =========================================
   تراز «Label / Select» با Grid دو ستونه
   ========================================= */
/* ——— ردیفِ ویژگی‌ها: دو ستون ثابت/سیال ——— */
.ls-summary-desktop .variations tr,
.ls-summary-mobile  .variations tr{
  display: grid !important;
  grid-template-columns: 70px minmax(0,1fr); /* ← عرض ثابت لیبل + بقیه فضا برای کشو */
  align-items: center;
  column-gap: 5px;
  margin: 0 0 14px 0;
}

/* لیبل‌ها: بدون پهنای شناور */
.ls-summary-desktop .variations th.label,
.ls-summary-mobile  .variations th.label{
  width: 110px !important;          /* با grid یکی باشد */
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap;
  text-align: left;
}

/* سلول کشو: کل فضا را بگیرد */
.ls-summary-desktop .variations td.value,
.ls-summary-mobile  .variations td.value{
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* خودِ select (و select2) یک اندازه شوند */
.ls-summary-desktop .variations td.value select,
.ls-summary-mobile  .variations td.value select,
.ls-summary-desktop .variations td.value .select2-selection,
.ls-summary-mobile  .variations td.value .select2-selection{
  width: 88% !important;
  height: 52px !important;           /* ارتفاع یکسانِ همهٔ کشوها */
  border-radius: 16px !important;
  padding: 0 14px !important;
  font-size: 15px !important;
  line-height: 52px !important;
  background: #f8fafb !important;
  border: 1px solid #e6eaef !important;
  box-sizing: border-box;
}

/* متن داخل select2 */
.ls-summary-desktop .variations td.value .select2-selection__rendered,
.ls-summary-mobile  .variations td.value .select2-selection__rendered{
  line-height: 52px !important;
  padding-left: 0 !important;
  padding-right: 28px !important;    /* جا برای فلش */
  font-size: 15px;
}

/* فلش select2 درست درگوشه */
.ls-summary-desktop .variations td.value .select2-selection__arrow,
.ls-summary-mobile  .variations td.value .select2-selection__arrow{
  height: 100% !important;
  right: 12px !important;
}

/* دکمه Clear ووکامرس هم‌سطح بماند */
.ls-summary-desktop .reset_variations,
.ls-summary-mobile  .reset_variations{
  margin-left: 10px;
  font-size: 13px;
}

/* موبایل: ستون لیبل کمی باریک‌تر شود */
@media (max-width: 640px){
  .ls-summary-desktop .variations tr,
  .ls-summary-mobile  .variations tr{
    grid-template-columns: 70px minmax(0,1fr);
  }
  .ls-summary-desktop .variations th.label,
  .ls-summary-mobile  .variations th.label{
    width: 66px !important;
  }
}

/* --- ردیف Qty و Add to Cart --- */
.ls-summary-desktop form.cart .variations_button,
.ls-summary-mobile form.cart .variations_button {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    flex-direction: row;
    width: 280px;
}

/* فقط محصول متغیّر */
.ls-product.product-type-variable .ls-summary-desktop form.cart .variations_button,
.ls-product.product-type-variable .ls-summary-mobile  form.cart .variations_button{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-top:30px !important;
  flex-direction:row;
  width:280px;
}

/* فقط محصول ساده */
.ls-product.product-type-simple .ls-summary-desktop form.cart,
.ls-product.product-type-simple .ls-summary-mobile  form.cart{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  direction:ltr !important; /* تعداد چپ، دکمه راست */
}

/* کمی پولیش برای ورودی تعداد و دکمه در محصول ساده */
.ls-product.product-type-simple form.cart .quantity{ margin:0 !important; }
.ls-product.product-type-simple form.cart .quantity .qty{
  height:40px; min-width:80px; padding:0 10px;
}
.ls-product.product-type-simple form.cart .single_add_to_cart_button{
  height:40px; line-height:40px; padding:0 18px;
}
/* فیلد تعداد */
.ls-summary-desktop .quantity input.qty,
.ls-summary-mobile .quantity input.qty {
    width: 62px !important;
    min-width: 45px !important;
    max-width: 120px !important;
    padding: 11px 12px !important;
    background: #f6f7f8 !important;
    border: 1px solid #e6e8eb !important;
    border-radius: 14px !important;
}
/* دکمه در محصول ساده */
.ls-product.product-type-simple form.cart .single_add_to_cart_button {
  display: inline-flex;              /* برای وسط‌چین کردن محتوا */
  align-items: center;               /* وسط عمودی */
  justify-content: center;           /* وسط افقی */
  height: 42px;                      /* ارتفاع ثابت */
  padding: 0 20px;                   /* فاصله افقی */
  line-height: normal;               /* جلوگیری از کشیدگی متن */
  font-size: 14px;                   /* بسته به طراحی‌ات */
  font-weight: 600;                  /* کمی ضخیم‌تر برای دکمه */
  border-radius: 6px;                /* اگر گوشه گرد داری */
}

/* دکمه Add to Cart */
.ls-summary-desktop .single_add_to_cart_button.button,
.ls-summary-mobile .single_add_to_cart_button.button {
    flex: 1 !important;
    min-width: 180px !important;
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 28px !important;
    padding: 13px 22px !important;
    font-weight: 800 !important;
}
/* حذف فاصله پیش‌فرض ووکامرس زیر کشو */
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 3.5 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

.ls-summary-desktop .variations select,
.ls-summary-mobile  .variations select,
.ls-summary-desktop .variations .select2-container,
.ls-summary-mobile  .variations .select2-container {
  margin: 0 !important;
}
/* ردیف کشو + دکمه Clear کنار هم */
.ls-summary-desktop .variations td.value,
.ls-summary-mobile  .variations td.value {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important; /* فاصله بین کشو و کلیر */
}

/* خود کشو کوتاه‌تر بشه */
.ls-summary-desktop .variations .select2-container,
.ls-summary-mobile  .variations .select2-container {
  flex: 1 1 auto !important;
  margin: 0 !important;
}

/* استایل دکمه Clear */
.ls-summary-desktop .reset_variations,
.ls-summary-mobile  .reset_variations {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0b66ff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.ls-summary-desktop .reset_variations:hover,
.ls-summary-mobile  .reset_variations:hover {
  text-decoration: underline !important;
}

/* هماهنگی فلش Select2 با ارتفاع 40px */
.ls-summary-desktop .select2-container--default .select2-selection--single .select2-selection__arrow,
.ls-summary-mobile  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;
    width: 20px !important;
}



/* =========================================
   Tokogi — Product Media (Photos + Videos)
   - یک قاب مشترک برای عکس و ویدیو
   - ناوبری یکسان (فلش‌ها)
   - تب‌سوییچر Photos / Videos
   - واکنش‌گرا برای موبایل
========================================= */
/* ===== Frame ===== */
.ls-gallery--simple .ls-media-wrap{
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* دو استیج با نسبت یکسان */
.ls-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;         /* مربعی؛ در موبایل هم خوب جواب می‌دهد */
  display: grid;
  place-items: center;
}
.ls-stage--photos,
.ls-stage--videos{}

/* سوییچ نمایش با کلاس روی سکشن */
.ls-gallery.is-photos  .ls-stage--videos { display: none; }
.ls-gallery.is-videos  .ls-stage--photos { display: none; }

/* ===== Image ===== */
.ls-main-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Video ===== */
.ls-video-holder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.ls-video-holder .ls-video-el{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;     /* محتوا کامل دیده شود؛ کنترل‌ها بیرون نزند */
}

/* ===== Arrows (common) ===== */
.ls-g-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: #111;
  font-size: 1.75rem;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  z-index: 30;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
}
.ls-g-nav:hover{ background: #fff; transform: translateY(-50%) scale(1.05); }
.ls-g-prev, .ls-v-prev{ left: 10px; }
.ls-g-next, .ls-v-next{ right: 10px; }

/* ===== Meta + Switch ===== */
.ls-gallery-meta{
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
.ls-g-count{
  background: #f6f7f8; padding: 4px 10px; border-radius: 999px;
  font-weight: 600; color: #555;
}
.ls-g-switch{ margin-left: auto; display: flex; gap: 8px; }
.ls-g-switch .ls-tab{
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
  user-select: none;
}
.ls-g-switch .ls-tab.is-active{
  background: #111; color: #fff; border-color: #111;
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px){
  .ls-g-nav{ width: 44px; height: 44px; font-size: 2rem; }
  .ls-g-prev, .ls-v-prev{ left: 8px; }
  .ls-g-next, .ls-v-next{ right: 8px; }

  /* برای اینکه کنترل‌های ویدیو خارج قاب نرن */
  .ls-video-holder .ls-video-el{
    max-width: 92%;
    max-height: 92%;
  }
}
/* =========================================
   استایل برای بخش‌های سمت چپ (ls-left)
========================================= */
.ls-left .ls-card{

  border-radius:1px;
  padding:0px;
  overflow:hidden; /* لبه‌های گرد روی محتوای داخلی اعمال شود */
  margin-bottom: 2px;
}

/* فاصله بین سکشن‌ها */
.ls-left > .ls-card + .ls-card{
  margin-top:16px;
}

/* روی موبایل کمی فشرده‌تر */
@media (max-width:768px){
  .ls-left .ls-card{ padding:0px; border-radius:1px; }
  .ls-left > .ls-card + .ls-card{ margin-top:12px; }
}
/* ===== Product Details section (فعلی خودت) ===== */
#ls-description{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  padding:20px 24px;
  margin-top:5px;
}
#ls-description .ls-h2{
  font-size:20px;
  font-weight:800;
  margin-bottom:14px;
  border-bottom:1px solid #eee;
  padding-bottom:8px;
}
#ls-description .ls-content{
  font-size:15px;
  line-height:1.7;
  color:#333;
}
#ls-description .ls-content p{ margin-bottom:12px; }
#ls-description .ls-content ul{ padding-left:20px; list-style:disc; margin:12px 0; }
#ls-description .ls-content li{ margin-bottom:6px; }

/* ===== استایل تصاویر داخل Product Details ===== */
#ls-description .ls-content img{
  display:block;
  width:100%;
  max-width:100%;
  border-radius:12px;
  background:#f6f7f8;                 /* بک‌پلیت لطیف برای لودینگ */
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  margin:14px 0;
  aspect-ratio: 16 / 10;               /* کادر منظم */
  object-fit: cover;                    /* کراپ ظریف داخل کادر */
  cursor: zoom-in;                      /* القای قابل‌بزرگ‌شدن */
}

/* اگر نخواستی همه‌شون کراپ شن، این کلاس رو روی img بذار: .no-crop */
#ls-description .ls-content img.no-crop{
  aspect-ratio:auto;
  object-fit:contain;
}

/* ===== لایت‌باکس ===== */
.ls-lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.8);
  z-index:9999;
  padding:20px;
  cursor: zoom-out;
}
.ls-lightbox.is-open{ display:flex; }
.ls-lightbox__img{
  max-width:90vw;
  max-height:90vh;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  animation: lb-pop .18s ease;
}
@keyframes lb-pop { from{ transform:scale(.96); opacity:0 } to{ transform:scale(1); opacity:1 } }

/* دکمه بستن (اختیاری) */
.ls-lightbox__close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  border-radius:50%;
  background:#fff;
  color:#111;
  border:0;
  font-size:20px;
  line-height:36px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.ls-lightbox__close:hover{ transform:scale(1.05); }

/* ===== Additional Information section ===== */
#ls-additional{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  padding:20px 24px;
}

#ls-additional .ls-h2{
  font-size:20px;
  font-weight:800;
  margin-bottom:14px;
  border-bottom:1px solid #eee;
  padding-bottom:8px;
}

#ls-additional .ls-content{
  font-size:15px;
  line-height:1.6;
  color:#333;
}

/* جدول مشخصات محصول */
#ls-additional table.shop_attributes{
  width:100%;
  border-collapse:collapse;
  margin:0;
}

#ls-additional table.shop_attributes th,
#ls-additional table.shop_attributes td{
  padding:10px 12px;
  border:1px solid #eee;
  text-align:left;
  font-size:14px;
  color:#444;
}

#ls-additional table.shop_attributes th{
  font-weight:700;
  width:30%;
  background:#fafafa;
}


/* ===== Customer Reviews section ===== */
#ls-reviews-wrap{
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  padding:20px 24px;
}

#ls-reviews-wrap .ls-h2{
  font-size:20px;
  font-weight:800;
  margin-bottom:16px;
  border-bottom:1px solid #eee;
  padding-bottom:8px;
}

/* لیست دیدگاه‌ها */
.ls-reviews ul.commentlist{
  list-style:none;
  margin:0;
  padding:0;
}

.ls-reviews ul.commentlist li.review{
  border-bottom:1px solid #eee;
  padding:14px 0;
}

.ls-reviews ul.commentlist li:last-child{
  border-bottom:none;
}

.ls-review-head{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  margin-bottom:6px;
  color:#111;
}

.ls-review-head .star-rating,
.ls-review-head .wc-rating{
  margin-left:auto;
}

.ls-review-body{
  font-size:15px;
  line-height:1.6;
  color:#333;
  margin-bottom:6px;
}

.ls-review-meta{
  font-size:13px;
  color:#777;
}

/* پاسخ‌های تو در تو */
.ls-reviews ul.children{
  list-style:none;
  margin:12px 0 0 18px;
  padding-left:14px;
  border-left:2px solid #eee;
}
.ls-reviews ul.children li.review{
  border:none;
  padding:10px 0;
}

/* فیلتر بالای دیدگاه‌ها */
.ls-reviews-filter{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.ls-reviews-filter .pill{
  background:#f6f7f8;
  border:1px solid #e6e8eb;
  border-radius:20px;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}
.ls-reviews-filter .pill:hover{
  background:#eee;
}
.ls-reviews-filter .pill.is-active{
  background:#111;
  color:#fff;
  border-color:#111;
}


/* صفحه‌بندی */
.ls-rev-paging{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:14px;
}
.ls-rev-paging .page-numbers{
  display:inline-block;
  min-width:28px;
  height:28px;
  line-height:28px;
  text-align:center;
  font-size:13px;
  border:1px solid #ddd;
  border-radius:6px;
  color:#333;
  text-decoration:none;
}
.ls-rev-paging .page-numbers.current{
  background:#111;
  color:#fff;
  border-color:#111;
}

/* فرم ثبت دیدگاه */
.ls-review-form{
  margin-top:20px;
}
.ls-review-form textarea,
.ls-review-form input[type="text"],
.ls-review-form input[type="email"]{
  width:100%;
  border:1px solid #ddd;
  border-radius:8px;
  padding:10px 12px;
  margin-bottom:12px;
  font-size:14px;
}
.ls-review-form textarea:focus,
.ls-review-form input:focus{
  outline:none;
  border-color:#111;
}
.ls-review-form .form-submit input[type="submit"]{
  background:#111;
  color:#fff;
  border:0;
  border-radius:20px;
  padding:10px 22px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s ease;
}
.ls-review-form .form-submit input[type="submit"]:hover{
  background:#333;
}


/* ===== Login box (for reviews) ===== */
.ls-login-box{
  margin-top:24px; /* فاصله از بخش بالایی */
  padding:18px 20px;
  background:#f9f9fb;
  border:1px solid #e6e8eb;
  border-radius:14px;
  text-align:center;
}

.ls-login-box p{
  font-size:14px;
  color:#444;
  margin-bottom:12px !important;
}

.ls-login-btn{
  display:inline-block;
  background:#111;
  color:#fff !important;
  font-size:14px;
  font-weight:700;
  border-radius:24px;
  padding:10px 22px;
  text-decoration:none !important;
  transition:all .2s ease;
}
.ls-login-btn:hover{
  background:#333;
}


/* ===== Review form (logged in users) ===== */
.ls-review-form{
  margin-top:24px;
  padding:20px 22px;
  background:#f9f9fb;
  border:1px solid #e6e8eb;
  border-radius:14px;
}

/* عنوان فرم (Add a review) */
.ls-review-form h3{
  font-size:18px;
  font-weight:800;
  margin-bottom:16px;
  color:#111;
}

/* متن لاگین شده */
.ls-review-form .logged-in-as{
  font-size:13px;
  margin-bottom:12px;
  color:#555;
}
.ls-review-form .logged-in-as a{
  color:#0b66ff;
  font-weight:600;
  text-decoration:none;
}
.ls-review-form .logged-in-as a:hover{
  text-decoration:underline;
}

/* لیبل‌ها */
.ls-review-form label{
  font-size:14px;
  font-weight:700;
  color:#222;
  margin-bottom:6px;
  display:block;
}

/* فیلدهای ورودی */
.ls-review-form textarea,
.ls-review-form input[type="text"]{
  width:100%;
  padding:12px 14px;
  border:1px solid #ddd;
  border-radius:10px;
  font-size:14px;
  line-height:1.4;
  color:#333;
  margin-bottom:14px;
  background:#fff;
}
.ls-review-form textarea:focus,
.ls-review-form input[type="text"]:focus{
  border-color:#0b66ff;
  outline:none;
  box-shadow:0 0 0 2px rgba(11,102,255,.15);
}

/* متن الزامی (Required fields are marked *) */
.ls-review-form .comment-notes{
  font-size:12px;
  color:#777;
  margin-bottom:14px;
}

/* ===== دکمه ارسال در فرم دیدگاه ===== */
.ls-review-form .form-submit{
  margin-top:16px;
  text-align:left; /* دکمه سمت راست قرار بگیره */
}

.ls-review-form .form-submit .submit{
  background:#111;
  color:#fff;
  font-size:14px;
  font-weight:700;
  border:0;
  border-radius:28px;
  padding:12px 28px;
  cursor:pointer;
  transition:all .25s ease;
}

.ls-review-form .form-submit .submit:hover{
  background:#333;
}

.ls-review-form .form-submit .submit:disabled{
  background:#ccc;
  cursor:not-allowed;
}

/* ===== Override استایل ووکامرس برای دکمه ارسال دیدگاه ===== */
.ls-review-form #respond input#submit.submit {
  background:#111 !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:700 !important;
  border:0 !important;
  border-radius:28px !important;
  padding:12px 28px !important;
  cursor:pointer !important;
  transition:all .25s ease !important;
  text-shadow:none !important;
  box-shadow:none !important;
}

.ls-review-form #respond input#submit.submit:hover {
  background:#333 !important;
}

.ls-review-form #respond input#submit.submit:disabled {
  background:#ccc !important;
  cursor:not-allowed !important;
}
/* استایل بخش کاربر لاگین شده بالای فرم دیدگاه */
.ls-review-form .logged-in-as {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ===== Override استایل ووکامرس برای ستاره‌های امتیاز ===== */
.woocommerce .woocommerce-product-rating .star-rating {
  margin: 0 !important;
  float: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
}


.ls-product p {
  font-weight: 400;       /* وزن متن */
  font-size: 15px;        /* اندازه خوانا */
  line-height: 1.6;       /* فاصله خطوط */
  color: #333;            /* رنگ متن */
  margin: 12px 0;         /* فاصله بالا و پایین */
}

.ls-product p br {
  margin-bottom: 6px;     /* کمی فاصله بعد از هر <br> */
}

/* ===== استایل مدرن برای ستاره‌های امتیاز ===== */
.woocommerce .star-rating {
  font-size: 16px !important;        /* اندازه ستاره‌ها */
  letter-spacing: 3px !important;    /* فاصله بین ستاره‌ها */
  position: relative;
  display: inline-block;
  color: #ddd !important;            /* رنگ ستاره‌های خالی */
}

.woocommerce .star-rating::before {
  content: "★★★★★";                 /* ستاره‌های پس‌زمینه */
  color: #ddd !important;            /* خاکستری روشن برای خالی */
}

.woocommerce .star-rating span::before {
  content: "★★★★★";                 /* ستاره‌های پرشده */
  color: #f5b700 !important;         /* طلایی مدرن */
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}

/* لوگوی هدر در صفحات ووکامرس – بی‌اثر کردن قانون عمومی img */
body.woocommerce .site-header .brand .site-logo{
  height: 50px !important;   /* اندازهٔ نهایی لوگو در دسکتاپ */
  width: auto !important;
  max-width: none !important; /* جلوی محدودیت 100% ووکامرس را می‌گیرد */
  display: block;
  object-fit: contain;
}

@media (max-width: 768px){
  body.woocommerce .site-header .brand .site-logo{
    height: 36px !important; /* کوچکتر برای موبایل */
  }
}


/* ردیف مزایا: 2 تا بالا + 1 دونه وسطِ زیرش */
.ls-perks{
  list-style:none;
  margin:16px 0 0;
  padding:0;
  display:grid;
  grid-template-columns: repeat(2, max-content); /* دو ستون تنگ و مرتب */
  gap:20px 36px;
  justify-content:center;   /* کل گرید وسط شود */
  align-items:center;
}

.ls-perks .ls-perk{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:14px;
  font-weight:400;
  color:#111;
}

/* آیتم سوم بیاید ردیف دوم و دقیقا وسط */
.ls-perks .ls-perk:nth-child(3){
  grid-column: 1 / -1;      /* روی هر دو ستون اسپن کند */
  justify-self: center;     /* خودش وسط ستون‌ها بنشیند */
}

/* آیکن کنار متن */
.ls-perks .ls-perk-anim{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.ls-perks .ls-perk-anim svg,
.ls-perks .ls-perk-anim .truck{ width:100%; height:100%; display:block; }

/* موبایل: تک‌ستونه و همه چپ‌چین/راست‌چین مطابق زبان */
@media (max-width:768px){
  .ls-perks{
    grid-template-columns: 1fr;
    justify-content:start;
    justify-items:start;
  }
  .ls-perks .ls-perk:nth-child(3){
    grid-column:auto;
    justify-self:start;
  }
}
/* انیمیشن کامیون — CSS خالص */
.ls-perk-anim .truck__body,
.ls-perk-anim .truck__line,
.ls-perk-anim .truck__outside1,
.ls-perk-anim .truck__outside2,
.ls-perk-anim .truck__outside3,
.ls-perk-anim .truck__wheel,
.ls-perk-anim .truck__wheel-spin,
.ls-perk-anim .truck__window1,
.ls-perk-anim .truck__window2{
  animation: truck-body 3s linear infinite;
}

.ls-perk-anim .truck__body{ transform-origin:17px 11px }
.ls-perk-anim .truck__line{ animation-name: truck-line }
.ls-perk-anim .truck__outside1{ animation-name: truck-outside1 }
.ls-perk-anim .truck__outside2{ animation-name: truck-outside2 }
.ls-perk-anim .truck__outside3{ animation-name: truck-outside3 }
.ls-perk-anim .truck__window1{ animation-name: truck-window1 }
.ls-perk-anim .truck__window2{ animation-name: truck-window2 }

.ls-perk-anim .truck__wheel{ animation-name: truck-wheel }
.ls-perk-anim .truck__wheel-spin{
  animation-name: truck-wheel-spin;
  transform-origin: 6.5px 17px;
}
.ls-perk-anim .truck__wheel:nth-child(2){ animation-delay: calc(3s * 0.0625) }
.ls-perk-anim .truck__wheel:nth-child(2) .truck__wheel-spin{ transform-origin: 27px 17px }

/* keyframes */
@keyframes truck-body{
  0%,12.5%,25%,37.5%,50%,62.5%,75%,87.5%,100%{
    animation-timing-function: cubic-bezier(0.33,0,0.67,0);
    transform: translate(0,0) rotate(0);
  }
  6.25%,18.75%,31.25%,43.75%,56.25%,68.75%,81.25%,93.75%{
    animation-timing-function: cubic-bezier(0.33,1,0.67,1);
    transform: translate(0,1px) rotate(-0.75deg);
  }
}
@keyframes truck-line{ from{stroke-dashoffset:-18} to{stroke-dashoffset:78} }
@keyframes truck-outside1{ from{stroke-dashoffset:105} to{stroke-dashoffset:-105} }
@keyframes truck-outside2{ from{stroke-dashoffset:168} to{stroke-dashoffset:-42} }
@keyframes truck-outside3{ from{stroke-dashoffset:192} to{stroke-dashoffset:-18} }
@keyframes truck-wheel{
  0%,12.5%,25%,37.5%,50%,62.5%,75%,87.5%,100%{
    animation-timing-function:cubic-bezier(0.33,0,0.67,0);
    transform: translate(0,0);
  }
  6.25%,18.75%,31.25%,43.75%,56.25%,68.75%,81.25%,93.75%{
    animation-timing-function:cubic-bezier(0.33,1,0.67,1);
    transform: translate(0,-1px);
  }
}
@keyframes truck-wheel-spin{
  from{ stroke-dashoffset:-15.71; transform: rotate(0) }
  to  { stroke-dashoffset: 15.71; transform: rotate(-4turn) }
}
@keyframes truck-window1{ from{stroke-dashoffset:-21} to{stroke-dashoffset:189} }
@keyframes truck-window2{ from{stroke-dashoffset:-39} to{stroke-dashoffset:171} }

/* احترام به کاربرانی که motion کمتر می‌خواهند */
@media (prefers-reduced-motion: reduce){
  .ls-perk-anim .truck__body,
  .ls-perk-anim .truck__line,
  .ls-perk-anim .truck__outside1,
  .ls-perk-anim .truck__outside2,
  .ls-perk-anim .truck__outside3,
  .ls-perk-anim .truck__wheel,
  .ls-perk-anim .truck__wheel-spin,
  .ls-perk-anim .truck__window1,
  .ls-perk-anim .truck__window2{
    animation: none !important;
  }
}

/* ===== Badge Star — looped draw each cycle ===== */
.badge-star{display:inline-block;width:32px;height:32px;color:#111}
.badge-star .star{stroke:#0b66ff}

/* مدت کل چرخه (قابل تغییر) */
.badge-star{ --bdg-dur: 3.2s; }

/* همه‌ی مسیرها با یک انیمیشن لوپی که «می‌کِشه → مکث → فوراً ریست» */
@keyframes bdg-dash-loop{
  0%     { stroke-dashoffset:100 }   /* قبل از شروع: خالی */
  40%    { stroke-dashoffset:0 }     /* تا این لحظه کامل کشیده می‌شود */
  60%    { stroke-dashoffset:0 }     /* کمی مکث روی حالت کامل */
  60.01% { stroke-dashoffset:100 }   /* ریست فوری برای شروع چرخه‌ی بعدی */
  100%   { stroke-dashoffset:100 }   /* تا انتها خالی می‌ماند */
}

/* ترتیب ظاهر شدن اجزا در هر لوپ با دیلی متفاوت */
.badge-star .rosette,
.badge-star .inner,
.badge-star .ribbon-left,
.badge-star .ribbon-right,
.badge-star .star{
  stroke-dasharray:100;    /* به لطف pathLength همگی نرمال شده‌اند */
  stroke-dashoffset:100;
  animation: bdg-dash-loop var(--bdg-dur) ease-in-out infinite;
}

/* دیلی‌ها برای ترتیبِ کشیده شدن در هر چرخه */
.badge-star .rosette      { animation-delay: 0s }
.badge-star .inner        { animation-delay: calc(var(--bdg-dur) * .08) }
.badge-star .ribbon-left  { animation-delay: calc(var(--bdg-dur) * .16) }
.badge-star .ribbon-right { animation-delay: calc(var(--bdg-dur) * .24) }
.badge-star .star         { animation-delay: calc(var(--bdg-dur) * .32) }

/* پالس ظریف ستاره روی لوپ جداگانه (همیشه ادامه دارد) */
@keyframes bdg-star-pulse{
  0%,100%{ transform:scale(1);   filter:drop-shadow(0 0 0 rgba(11,102,255,0)) }
  50%    { transform:scale(1.08);filter:drop-shadow(0 0 6px rgba(11,102,255,.45)) }
}
.badge-star .star{
  transform-origin: 50px 44px;
  animation-name: bdg-dash-loop, bdg-star-pulse;
  animation-duration: var(--bdg-dur), 2.2s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: calc(var(--bdg-dur) * .32), 1.2s;
}

/* اسپارکل‌های چشمک‌زن هم‌زمان با هر لوپ */
@keyframes bdg-sparkle{
  0%,100%{ opacity:0; transform:scale(.6) }
  40%    { opacity:1; transform:scale(1.25) }
}
.badge-star .sparkle circle{
  opacity:0; transform-origin:center;
  animation: bdg-sparkle var(--bdg-dur) ease-in-out infinite;
}
.badge-star .sparkle circle:nth-child(2){ animation-delay: .4s }
.badge-star .sparkle circle:nth-child(3){ animation-delay: .8s }


/* احترام به کاربرانی که motion کمتر می‌خواهند */
@media (prefers-reduced-motion: reduce){
  .badge-star *{ animation:none!important; stroke-dashoffset:0!important }
}

/* =========================================================
   استایل و انیمیشن برای آیکون ریفاند
========================================================= */

/* استایل کلی آیتم */
.ls-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* کانتینر SVG */
.refund-badge {
  overflow: visible;
}

/* انیمیشن رسم خطوط (Draw) */
@keyframes draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* انیمیشن پالس (Pulse) برای تیک و حلقه داخلی */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* استایل و انیمیشن حلقه بیرونی */
.rf-ring {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 2s ease-in-out forwards;
}

/* استایل و انیمیشن حلقه داخلی */
.rf-inner {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform-origin: 50% 50%; /* مهم برای اینکه انیمیشن در جای خود انجام شود */
  animation: draw 2s ease-in-out forwards, pulse 1.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* استایل و انیمیشن تیک */
.rf-check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform-origin: 50% 50%; /* مهم برای اینکه انیمیشن در جای خود انجام شود */
  animation: draw 1s ease-in-out forwards, pulse 1.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ============================
   Upsells (دسکتاپ)
   ============================ */
   
   .upsells .onsale,
.related .onsale,
.cross-sells .onsale {
  display: none !important;
}

/* 0) تمیزکاری ووکامرس: برداشتن clearfix قدیمی که فاصله می‌انداخت */
.woocommerce .products ul::before,
.woocommerce .products ul::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

/* 1) شبکه 3 ستونه تمیز */
#ls-upsells ul.products{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#ls-upsells ul.products li.product{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* 2) کارت محصول پایه */
#ls-upsells ul.products li.product{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f5f7;
  cursor: pointer;
  transition: transform .3s ease;
}
#ls-upsells ul.products li.product:hover{
  transform: translateY(-3px);
}

/* 3) لینک/عکس: کاور تمام کارت با نسبت 4:3 */
#ls-upsells ul.products li.product a.woocommerce-LoopProduct-link{
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  
}
#ls-upsells ul.products li.product a.woocommerce-LoopProduct-link img{
  width: 100%;
  height: 130%;
  object-fit: cover;
  transition: filter .3s ease, transform .3s ease;
}
#ls-upsells ul.products li.product:hover a.woocommerce-LoopProduct-link img{
  filter: brightness(.8);
  transform: scale(1.05);
}

/* 4) لایه تاریک روی تصویر در هاور */
/* --- Upsells: حذف کامل دکمه‌ها در کارت --- */
#ls-upsells ul.products li.product .button,
#ls-upsells ul.products li.product .added_to_cart,
#ls-upsells ul.products li.product a + .button,
#ls-upsells ul.products li.product .woocommerce-loop-product__buttons {
  display: none !important;
}

/* --- کارت تمیز بدون پدینگ/مارجین اضافه --- */
#ls-upsells ul.products li.product{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0 !important;      /* بعضی تم‌ها padding می‌دن */
  margin: 0 !important;
  background: #f3f5f7;
}

/* --- لینک/تصویر: کل کارت را بپوشانَد --- */
#ls-upsells ul.products li.product a.woocommerce-LoopProduct-link{
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;        /* نسبت ثابت کارت */
  height: auto;               /* از aspect-ratio پیروی کنه */
}

/* فاصله زیرِ تصویر (baseline) را حذف کن و کاور کامل شود */
#ls-upsells ul.products li.product a.woocommerce-LoopProduct-link img{
  display: block;             /* مهم برای حذف گپ زیر تصویر */
  width: 100%;
  height: 100%;
  object-fit: cover;          /* تصویر تا لبه‌ها */
}

/* --- لایه تاریک هاور کلیک‌پذیری لینک را خراب نکند --- */
#ls-upsells ul.products li.product::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
  opacity:0; transition:.28s ease;
  z-index:1;
  pointer-events: none;       /* کلیک رد شود به لینک */
}
#ls-upsells ul.products li.product:hover::after{ opacity:1; }

/* --- متن‌ها روی تصویر: کلیک‌پذیری را نگیرند --- */
/* قبلی که مشکل‌ساز بود (حذفش کن یا ویرایشش کن) */
/*
#ls-upsells ul.products li.product .woocommerce-loop-product__title,
#ls-upsells ul.products li.product .price,
#ls-upsells ul.products li.product .star-rating{
  position:absolute; left:50%;
  transform:translate(-50%,8px);
  width:86%; max-width:520px;
  text-align:center; color:#fff;
  margin:0; z-index:2; opacity:0;
  pointer-events:none;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:opacity .28s ease, transform .28s ease;
}
*/

/* ✅ درست: فقط عنوان و قیمت */
#ls-upsells ul.products li.product .woocommerce-loop-product__title,
#ls-upsells ul.products li.product .price{
  position:absolute; left:50%;
  transform:translate(-50%,8px);
  width:86%; max-width:520px;
  text-align:center; color:#fff;
  margin:0; z-index:2; opacity:0;
  pointer-events:none;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:opacity .28s ease, transform .28s ease;
}


#ls-upsells ul.products li.product:hover .woocommerce-loop-product__title,
#ls-upsells ul.products li.product:hover .price,
#ls-upsells ul.products li.product:hover .star-rating{
  opacity:1; transform:translate(-50%,0);
}

/* 6-1) عنوان: بالاتر + کنترل تعداد خط */
#ls-upsells ul.products li.product .woocommerce-loop-product__title{
  top: 10%;
  font-size: 13px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: .2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;          /* حداکثر 3 خط */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6-2) قیمت: دقیقاً مرکز کارت */
#ls-upsells ul.products li.product .price{
  top: 50%;
  transform: translate(-50%, calc(-50% + 0px));
  font-size: 18px;
  font-weight: 700;
  margin: 0 !important;
}

/* 6-3) ستاره‌ها: زیر قیمت و وسط‌چین، کوچک */
#ls-upsells ul.products li.product .star-rating {
  position: absolute;
  top: 70%;              /* جایگاه زیر قیمت */
  left: 50%;             /* وسط افقی */
  transform: translateX(-50%); /* دقیقاً وسط */
  font-size: 12px;
  color: #f5a623;        /* طلایی */
  margin: 0;
  z-index: 2;
  opacity: 0;            /* پیش‌فرض مخفی */
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* 7) ظاهر شدن همه متن‌ها در هاور + تراز نهایی */
#ls-upsells ul.products li.product:hover .woocommerce-loop-product__title,
#ls-upsells ul.products li.product:hover .price,
#ls-upsells ul.products li.product:hover .star-rating{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================
   Upsells – Mobile (≤640px)
   نشان عنوان و قیمت زیر عکس (ستاره نداریم)
============================ */
@media (max-width: 640px){

  /* گرید تک‌ستونه و کارت جمع‌وجور */
  #ls-upsells ul.products{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  #ls-upsells ul.products li.product{
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding-bottom: 10px;
  }

  /* تصویر کاور */
  #ls-upsells ul.products li.product a.woocommerce-LoopProduct-link{
    display: block; position: relative; aspect-ratio: 4/3;margin-bottom: 19px;
  }
  #ls-upsells ul.products li.product a.woocommerce-LoopProduct-link img{
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-bottom: 1px solid #f0f0f0;
    filter: none !important; transform: none !important;
  }

  /* --- خیلی مهم: عنوان و قیمت را از حالت absolute/opacity خارج کن --- */
  #ls-upsells ul.products li.product .woocommerce-loop-product__title,
  #ls-upsells ul.products li.product .price{
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    pointer-events: auto !important;
    text-shadow: none !important;
    color: #111 !important;
    display: block !important;
    text-align: center !important;
  }

  /* عنوان */
  #ls-upsells ul.products li.product .woocommerce-loop-product__title{
    /* استایل خود عنوان */
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
    margin: 8px 0 4px !important;

    /* ریستِ استایل‌های دسکتاپ که وسط‌چین رو به‌هم می‌زنن */
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    width: 99% !important;
    max-width: none !important;
    display: block !important;
    text-align: center !important;
  }

  /* قیمت */

  #ls-upsells ul.products li.product .price{
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
    color: #333 !important;

    /* ریست استایل دسکتاپ */
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    text-align: center !important;
  }

  /* اگر قیمت تخفیف داشت */
  #ls-upsells ul.products li.product .price ins{
    text-decoration: none !important;
    font-weight: 700 !important;
  }
  #ls-upsells ul.products li.product .price del{
    opacity: .6 !important;
    margin-left: 6px !important;
    display: inline-block !important;
  }

  /* دکمه‌ها مخفی بمانند */
  #ls-upsells ul.products li.product .button{
    display: none !important;
  }
}

@media (max-width: 640px){
  /* لینک والد عنوان محصول در کارت‌های upsell */
  #ls-upsells ul.products li.product a.woocommerce-LoopProduct-link,
  #ls-upsells ul.products li.product a.woocommerce-loop-product__link,
  #ls-upsells ul.products li.product a.woocommerce-LoopProduct-link:hover,
  #ls-upsells ul.products li.product a.woocommerce-loop-product__link:hover {
    text-decoration: none !important;
  }

  /* اگر قالب با border زیر عنوان خط میندازه، این هم ریستش می‌کنه */
  #ls-upsells ul.products li.product .woocommerce-loop-product__title {
    border: 0 !important;
  }
}

/* مطمئن شو قوانین اورلی فقط برای دسکتاپ فعال‌اند */
@media (min-width: 641px){
  #ls-upsells ul.products li.product .woocommerce-loop-product__title,
  #ls-upsells ul.products li.product .price{
    position: absolute; /* همان حالت قبلی دسکتاپ شما */
    /* ...بقیه‌ی قوانین دسکتاپ شما... */
  }
}
/* ============================
   Upsells Section Styling
   ============================ */
#ls-upsells { 
  --ls-head-color:#111; 
  --ls-muted:#555; 
}

#ls-upsells .ls-section-head {
  margin: 0 0 16px;
  text-align: left;
}

#ls-upsells .ls-sh-top {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  margin-top: 40px;
}

#ls-upsells .ls-spark {
  display:inline-flex;
  width:26px; height:26px;
  color: var(--ls-head-color);
}

#ls-upsells .ls-eyebrow {
  font-size:18px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: var(--ls-muted);
  line-height:1.2;
}

#ls-upsells .ls-upsells-custom {
  margin: 0 0 6px;
  font-size: 25px;
  font-weight:700;
  line-height:1.4;
  color: var(--ls-head-color);
}

#ls-upsells .ls-lead {
  margin: 0;
  font-size:20px;
  line-height:1.4;
  color: var(--ls-muted);
  font-weight:400;
}

/* فاصله‌ی کمی بین متن و گرید محصولات */
#ls-upsells ul.products { 
  margin-top: 14px; 
}

/* کنار هم‌چین شدن ستاره و شمارش */
.ls-rating-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;           /* فاصله بین ستاره و پرانتز */
}

/* لینک شمارش نظرات */
.ls-rating-count{
  font-size: 13px;
  color: #555;
  text-decoration: none;
}
.ls-rating-count:hover{
  text-decoration: underline;
}


/* === Fix WooCommerce star fill (global) === */
.woocommerce .star-rating{
  position: relative;
  display: inline-block;
  line-height: 1;
}
.woocommerce .star-rating::before{
  content:"★★★★★";
  color:#ddd;               /* رنگ ستاره‌های خالی */
}
.woocommerce .star-rating span{
  position:absolute;        /* مهم: باید absolute باشه */
  left:0; top:0;
  height:100%;
  overflow:hidden;          /* مهم: تا بر اساس width برش بده */
  display:block;
}
.woocommerce .star-rating span::before{
  content:"★★★★★";
  color:#f5b700;            /* رنگ ستاره‌های پر */
  position:absolute;
  left:0; top:0;
}
/* ============================
 عکس داخل کامنت ها
   ============================ */
   /* استایل عکس‌های داخل کامنت‌ (ریویوهای محصولات) */
.ls-review-body img {
  display: inline-block;        /* در یک خط، ولی با فاصله */
  max-width: 120px;             /* حداکثر عرض استاندارد */
  max-height: 120px;            /* حداکثر ارتفاع استاندارد */
  height: auto;                 /* تناسب تصویر حفظ شود */
  margin: 6px;                  /* فاصله بین عکس‌ها */
  border-radius: 8px;           /* گوشه‌های گرد */
  object-fit: cover;            /* برش منظم داخل کادر */
  cursor: pointer;              /* حالت کلیک‌پذیر برای زوم یا لایت‌باکس */
  transition: transform 0.2s ease;
}

.ls-review-body img:hover {
  transform: scale(1.03);       /* افکت کوچک برای هاور */
}

/* عکس‌های داخل متن ریویو کلیک‌پذیر و با نشانگر بزرگ‌نمایی */
.ls-review-body img{
  cursor: zoom-in;
  border-radius: 10px;
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ریشه لایت‌باکس */
#ls-review-lightbox[aria-hidden="true"]{ display:none; }
#ls-review-lightbox{
  position: fixed; inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

/* بک‌دراپ */
#ls-review-lightbox .ls-rlb-backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}

/* قاب تصویر */
#ls-review-lightbox .ls-rlb-figure{
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* تصویر */
#ls-review-lightbox .ls-rlb-img{
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* کپشن (alt) */
#ls-review-lightbox .ls-rlb-cap{
  color: #fff;
  font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-align: center;
  opacity: .9;
}

/* دکمه بستن */
#ls-review-lightbox .ls-rlb-close{
  position: absolute;
  top: -10px; right: -10px;
  width: 36px; height: 36px;
  border: 0; border-radius: 999px;
  background: #111;
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
#ls-review-lightbox .ls-rlb-close:hover{ background:#333; }

/* هنگام باز بودن، اسکرول صفحه قفل شود */
html.ls-rlb-open, html.ls-rlb-open body{
  overflow: hidden !important;
  touch-action: none;
}

/* ============================
   ستاره امتیاز دادن کنار کامنت
   ============================ */
   
   /* Star widget inside product review form */
.comment-form-rating .ls-stars {
  display: inline-flex; flex-direction: row-reverse; gap: 6px;
}
.comment-form-rating .ls-stars input { display: none; }
.comment-form-rating .ls-stars label {
  font-size: 20px; color: #ddd; cursor: pointer; line-height: 1;
  transition: color .15s ease;
}
.comment-form-rating .ls-stars input:checked ~ label,
.comment-form-rating .ls-stars label:hover,
.comment-form-rating .ls-stars label:hover ~ label { color: #f5b700; }

/* نشانگر دست روی دکمه‌های ووکامرس */
.woocommerce .button,
.woocommerce a.button,
.single_add_to_cart_button,
.add_to_cart_button,
.ls-btn {
  cursor: pointer !important;
}

/* وقتی دکمه غیرفعاله (مثلاً وارییشن انتخاب نشده) */
.single_add_to_cart_button[disabled],
.single_add_to_cart_button.disabled,
.woocommerce .button[disabled],
.woocommerce .button.disabled {
  cursor: not-allowed !important;
  opacity: .6;
}


/* ============================
 حذف هاشیه های قرمز دور فیلدها توسط ووکامرس
   ============================ */
   
   /* فقط صفحات محصول، سبد و تسویه‌حساب */
.single-product *,
.woocommerce-cart *,
.woocommerce-checkout * {
  outline: none !important; /* حذف outline پیش‌فرض مرورگر */
}

/* حالت فوکوس: به‌جای قرمز، یه رینگ ملایم خاکستری/برند */
.single-product input:focus,
.single-product select:focus,
.single-product textarea:focus,
.woocommerce-cart input:focus,
.woocommerce-cart select:focus,
.woocommerce-cart textarea:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(11,102,255,0.12) !important; /* اگر نمی‌خوای رینگ داشته باشه، این خط رو هم بردار */
  border-color: #bfc5d0 !important; /* یا همون رنگ تم خودت */
}

/* خنثی کردن قرمزی خطاهای ووکامرس */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea,
.woocommerce form .form-row.woocommerce-invalid .select2-selection--single,
.woocommerce form .form-row.woocommerce-invalid .select2-selection--multiple {
  border-color: #e6e8eb !important;
  box-shadow: none !important;
}

/* اگر اعتبارسنجی HTML5 قرمز می‌کند */
.single-product input:required:invalid,
.single-product select:required:invalid,
.woocommerce-cart input:required:invalid,
.woocommerce-checkout input:required:invalid {
  box-shadow: none !important;
  border-color: #e6e8eb !important;
}

/* Select2 هم اگه داری */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
  outline: none !important;
  box-shadow: none !important;
}



/* =========================================================
   کانتکت contact
   ========================================================= */
/* ===== Contact Page (Tokogi) ===== */
.lfs-contact{ --card:#fff; --border:#e5e7eb; --muted:#6b7280; --text:#111; --shadow:0 12px 28px rgba(0,0,0,.06); }

/* Container 1: centered, stacked */
.lfs-c1{ padding:48px 16px; background:#fff; }
.lfs-c1 .c1-inner{ max-width:940px; margin:0 auto; text-align:center; }
.c1-title{ font-size:32px; font-weight:900; margin:0 0 18px; }
.c1-block{ margin:14px 0; }
.c1-label{ display:block; font-weight:800; font-size:12px; text-transform:uppercase; letter-spacing:.76em; opacity:.7; margin-bottom:6px;margin-top: 40px; }
.c1-value{ margin:0; font-size:18px; }
.c1-value a{ color:#0a66c2; text-decoration:none; }
.c1-value a:hover{ text-decoration:underline; }

/* Social icons */
.c1-social{ margin-top:18px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.c1-social-link{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:12px; border:1px solid var(--border);
  background:#f9fafb; text-decoration:none; color:#111; font-weight:700;
  transition:.15s ease; box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.c1-social-link:hover{ transform:translateY(-1px); background:#eef2ff; border-color:#dbeafe; }
.c1-icon{ width:18px; height:18px; display:inline-block; fill:currentColor; }

/* Container 2: gradient background + card form */
.lfs-c2{
  padding:56px 16px;
  background: linear-gradient(45deg, rgb(240,80,35) 0%, rgb(215,15,130) 25%, rgb(35,45,130) 80%);
  color:#fff;
}
.lfs-c2 .c2-inner{ max-width:960px; margin:0 auto; }
.c2-card{
  background:var(--card); color:var(--text);
  border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow);
  padding:20px;
}
.c2-title{ margin:0 0 6px; font-size:24px; font-weight:900; }
.c2-desc{ margin:0 0 16px; color:var(--muted); }

/* Form */
.lfs-form .row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lfs-form .field{ text-align:start; }
.lfs-form label{ display:block; font-weight:800; font-size:12px; margin-bottom:6px; opacity:.8; }
.lfs-input{
  width:100%; border:1px solid var(--border); border-radius:12px; padding:10px 12px; background:#fff;
  font:600 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.lfs-input:focus{ outline:2px solid #bfdbfe; border-color:#93c5fd; }
.lfs-actions{ margin-top:12px; }
.lfs-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 16px; border-radius:12px; border:1px solid transparent; cursor:pointer; text-decoration:none;
  font-weight:800; transition:.15s ease;
}
.lfs-btn.is-black{ background:#000; color:#fff; }
.lfs-btn.is-black:hover{ transform:translateY(-1px); opacity:.95; }

/* Notices */
.lfs-note{ padding:10px 12px; border-radius:10px; font-weight:700; margin:10px 0; }
.lfs-note.is-ok{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.lfs-note.is-err{ background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

/* Responsive */
@media (max-width: 768px){
  .lfs-form .row{ grid-template-columns:1fr; }
  .c1-title{ font-size:26px; }
}




#ls-cart-notice{
  display:none;
}

#ls-cart-notice.is-visible{
  display:block;
}
