/* ==============================
   Accanta Product Page (scoped)
   بدون استایل هدر/فوتر
   ============================== */

.acc-product-v18 {
  --ink: #0b1f17;
  --brand: #1fa97a;
  --accent: #ffd166;
  --card: #ffffff;
  --bg: #eef9f2;
  --border: rgba(20, 80, 60, 0.12);
  --shadow-soft: 0 12px 24px rgba(6, 24, 16, 0.08);

  background: var(--bg);
  color: var(--ink);
  font-family: IRANSans, Vazirmatn, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ==============================
   UI Boot (Prevent flicker)
   تا قبل از اینکه JS اولین بار قیمت/قوانین را apply کند،
   عناصر حساس (قیمت/دلیوری/دکمه خرید) نمایش داده نشوند.
   ============================== */

.acc-product-v18.is-ui-booting .priceRow,
.acc-product-v18.is-ui-booting #delivery-group,
.acc-product-v18.is-ui-booting #duration-group,
.acc-product-v18.is-ui-booting #delivery-extra,
.acc-product-v18.is-ui-booting #region-group,
.acc-product-v18.is-ui-booting .buy {
  visibility: hidden;
}

/* یک جایگزین ساده برای حس «در حال لود» (اختیاری) */
.acc-product-v18.is-ui-booting #accanta-main-price::before {
  content: "در حال محاسبه...";
  display: inline-block;
  font-weight: 800;
  opacity: 0.75;
}

/* box-sizing فقط داخل صفحه محصول */
.acc-product-v18,
.acc-product-v18 * {
  box-sizing: border-box;
}

/* اگر قالب خودش .container دارد، این فقط داخل صفحه محصول override می‌کند */
.acc-product-v18 .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ==============================
   Skeleton Loader (Product Head Card) – RTL (Auto Top via Anchor)
   ============================== */

/* کارت */
.acc-product-v18.is-ui-booting .product-head-content{
  position: relative;
  overflow: hidden;
  --acc-skel-top: 170px; /* fallback اگر JS اجرا نشد */
}

/* anchor فقط برای اندازه‌گیری است */
.acc-product-v18 .acc-skeleton-anchor{
  height: 1px;
}

/* اسکلتون RTL */
.acc-product-v18.is-ui-booting .product-head-content::after{
  content: "";
  position: absolute;

  /* ✅ اسکلتون فقط پایین کارت باشد (از زیر متن ثابت) */
  left: 18px;
  right: 18px;
  bottom: 18px;
  top: var(--acc-skel-top);

  border-radius: 16px;
  pointer-events: none;
  opacity: 0.95;

  background:
    /* price row (RTL) */
    linear-gradient(#e5e7eb 0 0) right 0px / 46% 20px no-repeat,

    /* selectors (delivery/region/duration) */
    linear-gradient(#eceff3 0 0) right 36px / 100% 54px no-repeat,
    linear-gradient(#eceff3 0 0) right 100px / 100% 54px no-repeat,
    linear-gradient(#eceff3 0 0) right 164px / 100% 54px no-repeat,

    /* buy row */
    linear-gradient(#e5e7eb 0 0) right 232px / 100% 52px no-repeat,

    /* shimmer layer */
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.65) 50%,
      rgba(255,255,255,0) 100%
    ) -200% 0 / 200% 100% no-repeat;

  animation: accSkeletonShimmerRTL 1.2s ease-in-out infinite;
}

@keyframes accSkeletonShimmerRTL{
  0%   { background-position: right 0px, right 36px, right 100px, right 164px, right 232px, -200% 0; }
  100% { background-position: right 0px, right 36px, right 100px, right 164px, right 232px,  200% 0; }
}


/* ==============================
   Breadcrumbs (نان‌ریزه‌ها)
   ============================== */
.acc-product-v18 .breadcrumbs {
  font-size: 13px;
  opacity: 0.85;
  margin: 10px 0;
}
.acc-product-v18 .breadcrumbs a {
  color: #14532d;
  text-decoration: none;
}
/* ==============================
   سرِ صفحه محصول (فرم + تصویر بالا)
   ============================== */
/* ===== OVERRIDE نهایی سرِ صفحه محصول ===== */

.acc-product-v18 .product-head {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important; /* ستون چپ = تصویر (باریک‌تر)، ستون راست = فرم (پهن‌تر) */
  grid-template-areas: "visual info" !important; /* چپ visual ، راست info */
  gap: 28px !important;
  align-items: stretch !important; /* هم‌ارتفاع شدن دو کارت */
  margin-top: 18px !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* مپ کردن عناصر روی گرید */
.acc-product-v18 .product-head-visual {
  grid-area: visual !important; /* ستون چپ: عکس */
}

/* ارتفاع برابر برای هر دو کارت */
.acc-product-v18 .product-head .card {
  height: 100% !important;
}
/* ==============================
   موبایل (تا 980px)
   ============================== */
@media (max-width: 980px) {
  .acc-product-v18 .product-head {
    display: block !important; /* گرید کامل خاموش */
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
    gap: 0 !important;
    align-items: unset !important;
    margin-top: 12px !important;
  }

  /* کارت‌ها در موبایل ارتفاع طبیعی داشته باشند */
  .acc-product-v18 .product-head .card {
    height: auto !important;
  }

  /* عکس محدود نشود */
  .acc-product-v18 .product-head-visual img {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
  }
}

/* کارت هدر محصول — خود container سفید و با پدینگ مطمئن */
.acc-product-v18 .card.product-head-content {
  background: #fff !important;
  border-radius: 22px !important;
  box-shadow: var(--shadow-soft);
  padding: 22px 26px !important; /* این مهم است */
  overflow: visible; /* به جای hidden */
}

/* pills بالا عنوان */
.acc-product-v18 .pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}

.acc-product-v18 .pill {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

/* عنوان محصول */
.acc-product-v18 h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

/* ==============================
   موبایل کوچک (تا 560px)
   ============================== */
@media (max-width: 560px) {
  .acc-product-v18 .container {
    padding: 0 12px !important;
  }

  .acc-product-v18 h1 {
    font-size: 20px !important;
  }

  .acc-product-v18 .pills {
    gap: 6px !important;
  }
}

/* ==============================

   قیمت‌ها و باکس خرید
   ============================== */
.acc-product-v18 .priceRow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
}
.acc-product-v18 .old {
  text-decoration: line-through;
  opacity: 0.6;
}
.acc-product-v18 .now {
  font-size: 22px;
  font-weight: 900;
}
.acc-product-v18 .discount {
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}

/* === Accanta Product – Selector cards (v2) === */

/* گرید کلی (delivery/region/duration/seats) */
.acc-product-v18 .selectors{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

/* کارت هر گزینه */
.acc-product-v18 .selectors .sel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 46px 12px 16px; /* جا برای radio سمت راست */
  min-height: 56px;

  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;

  cursor: pointer;
  user-select: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

/* متن داخل کارت (برای duration/region که span ساده دارند) */
.acc-product-v18 .selectors .sel > span{
  font-weight: 850;
  line-height: 1.6;
}

/* رادیوی واقعی: کل کارت کلیک‌پذیر */
.acc-product-v18 .selectors .sel input[type="radio"]{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Focus برای کیبورد */
.acc-product-v18 .selectors .sel:focus-within{
  border-color: rgba(31, 169, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 169, 122, 0.12);
}

/* دایره سمت راست */
.acc-product-v18 .selectors .sel::before{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #fff;
  box-sizing: border-box;
}

/* نقطه وسط */
.acc-product-v18 .selectors .sel::after{
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
}

/* Hover */
.acc-product-v18 .selectors .sel:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}
.acc-product-v18 .selectors .sel.is-disabled:hover{
  transform: none;
  box-shadow: none;
}

/* Active (اگر JS کلاس is-active می‌ذاره) */
.acc-product-v18 .selectors .sel.is-active{
  background: #ecfdf5;
  border-color: #16a34a;
}
.acc-product-v18 .selectors .sel.is-active::before{
  border-color: #16a34a;
}
.acc-product-v18 .selectors .sel.is-active::after{
  transform: translateY(-50%) scale(1);
}

/* Active بدون JS (Chrome/Safari): اگر مرورگر :has را ساپورت کند */
@supports selector(:has(*)){
  .acc-product-v18 .selectors .sel:has(> input[type="radio"]:checked){
    background: #ecfdf5;
    border-color: #16a34a;
  }
  .acc-product-v18 .selectors .sel:has(> input[type="radio"]:checked)::before{
    border-color: #16a34a;
  }
  .acc-product-v18 .selectors .sel:has(> input[type="radio"]:checked)::after{
    transform: translateY(-50%) scale(1);
  }
}

/* Disabled */
.acc-product-v18 .selectors .sel.is-disabled{
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.acc-product-v18 .selectors .sel.is-disabled::before{
  border-color: #e5e7eb;
}
.acc-product-v18 .selectors .sel.is-disabled::after{
  display: none;
}

/* =========================
   Delivery cards – polished (grid + corner badge)
   ========================= */

/* Grid: 4 گزینه → همیشه 2×2 */
.acc-product-v18 .selectors-delivery {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
}

/* Card layout: متن مرتب + جا برای radio سمت راست */
.acc-product-v18 .selectors-delivery .sel {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: right;

  padding: 18px 46px 14px 16px; /* top بیشتر تا badge نفس بکشه */
  min-height: 88px;
  gap: 6px;
}

/* Title: کمی پایین‌تر تا با badge تداخل نداشته باشد */
.acc-product-v18 .selectors-delivery .sel-title {
  display: block;
  width: 100%;
  font-weight: 950;
  font-size: 14px;
  line-height: 1.75;
  padding-top: 18px; /* فاصله از badge */
}

/* Badge: گوشه‌ی چپ-بالا (clean tag) */
.acc-product-v18 .selectors-delivery .sel-badge {
  position: absolute;
  top: 10px;
  left: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  line-height: 1;

  color: var(--ink);
  background: rgba(31, 169, 122, 0.12);
  border: 1px solid rgba(31, 169, 122, 0.25);
  box-shadow: 0 8px 16px rgba(6, 24, 16, 0.06);

  /* جلوگیری از تداخل با radio سمت راست */
  max-width: calc(100% - 76px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active badge (با کلاس JS) */
.acc-product-v18 .selectors-delivery .sel.is-active .sel-badge {
  background: rgba(255, 209, 102, 0.40);
  border-color: rgba(255, 209, 102, 0.60);
}

/* Active badge (بدون JS، با :has اگر ساپورت شود) */
@supports selector(:has(*)) {
  .acc-product-v18 .selectors-delivery .sel:has(> input[type="radio"]:checked) .sel-badge {
    background: rgba(255, 209, 102, 0.40);
    border-color: rgba(255, 209, 102, 0.60);
  }
}

/* رنگ‌بندی اختیاری بر اساس نوع */
.acc-product-v18 .selectors-delivery .sel[for="del-ready"] .sel-badge {
  background: rgba(255, 209, 102, 0.42);
  border-color: rgba(255, 209, 102, 0.62);
}
.acc-product-v18 .selectors-delivery .sel[for="del-family_member"] .sel-badge {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
}
.acc-product-v18 .selectors-delivery .sel[for="del-family_pack"] .sel-badge {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.26);
}
.acc-product-v18 .selectors-delivery .sel[for="del-activate"] .sel-badge {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.36);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 600px) {
  /* Delivery: تک ستونه */
  .acc-product-v18 .selectors-delivery {
    grid-template-columns: 1fr !important;
  }

  .acc-product-v18 .selectors-delivery .sel {
    padding: 18px 46px 14px 16px;
    min-height: 84px;
  }

  .acc-product-v18 .selectors-delivery .sel-badge {
    top: 10px;
    left: 10px;
    font-size: 11.5px;
    max-width: calc(100% - 72px);
  }

  /* duration/region/seats: دو ستونه */
  .acc-product-v18 .selectors-duration,
  .acc-product-v18 .selectors-region,
  .acc-product-v18 .selectors-seats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 380px) {
  .acc-product-v18 .selectors-duration,
  .acc-product-v18 .selectors-region,
  .acc-product-v18 .selectors-seats {
    grid-template-columns: 1fr;
  }
}

/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
  .acc-product-v18 .selectors .sel {
    transition: none;
  }
  .acc-product-v18 .selectors .sel:hover {
    transform: none;
    box-shadow: none;
  }
}

/* باکس خرید */
.acc-product-v18 .buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.acc-product-v18 .trust {
  font-size: 13px;
  opacity: 0.9;
}
.acc-product-v18 .btn {
  background: linear-gradient(135deg, #ffd166, #fdd24f);
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

/* --- Mobile: show price near Add to cart --- */
.acc-product-v18 .buy-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.acc-product-v18 .buy-bottom-price{
  display: none;            /* فقط موبایل */
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

/* موبایل کوچک (هم‌راستا با breakpoint های خود فایل) */
@media (max-width: 560px){
  .acc-product-v18 .buy{
    align-items: stretch;
  }

  .acc-product-v18 .buy-actions{
    width: 100%;
    justify-content: space-between;
    order: 1;
  }

  .acc-product-v18 .trust{
    width: 100%;
    order: 2;
    margin-top: 6px;
  }

  .acc-product-v18 .buy-bottom-price{
    display: inline-block;
  }
}

/* تصویر سمت راست در صفحه محصول (Plan B: match stretched height) */
.acc-product-v18 .product-head-visual {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  display: flex;                 /* ✅ مهم: اجازه می‌دهد img height:100% بگیرد */
}

.acc-product-v18 .product-head-visual picture{
  display: block;
  width: 100%;
  height: 100%;                  /* ✅ اگر از picture استفاده می‌کنی */
}

.acc-product-v18 .product-head-visual img {
  display: block;
  width: 100%;
  height: 100% !important;       /* ✅ مهم */
  max-height: none !important;   /* ✅ مهم: محدودیت 520 برداشته شود */
  border-radius: 22px;
  object-fit: cover;             /* crop طبیعی */
}

/* ==============================
   فیلدهای شرطی فرم
   ============================== */
.acc-product-v18 .form-extra {
  margin-top: 8px;
}
.acc-product-v18 .field {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.acc-product-v18 .field input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}
.acc-product-v18 .hint {
  font-size: 12px;
  opacity: 0.85;
  margin: 4px 0 0;
}
.acc-product-v18 .extra[hidden] {
  display: none !important;
}

/* ==============================
   سکشن‌های پایین + گرید دو ستونه
   ============================== */
.acc-product-v18 .section {
  margin-top: 24px;
}
.acc-product-v18 .block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

/* دو ستون (توضیحات + سایدبار) */
.acc-product-v18 .grid-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}
@media (max-width: 980px) {
  .acc-product-v18 .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.acc-product-v18 details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
}
.acc-product-v18 summary {
  cursor: pointer;
  font-weight: 800;
}
/* ===========================
   مدل‌های تحویل در صفحه محصول
   =========================== */
/* ===========================
   مدل‌های تحویل (هم‌استایل WHY در هوم)
   =========================== */

.acc-product-v18 .delivery-tiles {
  margin-top: 32px;
}

.acc-product-v18 .delivery-tiles-head {
  margin-bottom: 16px;
}

.acc-product-v18 .delivery-tiles-head h2 {
  margin: 0 0 8px;
}

/* گرید مثل why-grid */
.acc-product-v18 .delivery-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .acc-product-v18 .delivery-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .acc-product-v18 .delivery-tiles-grid {
    grid-template-columns: 1fr;
  }
}

/* کارت دقیقاً مثل why-card */
.acc-product-v18 .delivery-tile {
  background: #fff;
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.acc-product-v18 .delivery-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

/* باکس آیکن دقیقاً مثل badge-icon */
.acc-product-v18 .delivery-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 0 12px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  line-height: 1;
}

/* عنوان مثل why-card b */
.acc-product-v18 .delivery-tile-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

/* متن مثل muted */
.acc-product-v18 .delivery-tile-text {
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.9;
}


/* ======================
   محصولات مشابه
   ====================== */

.acc-product-v18 .related-products {
  margin: 40px 0 10px;
}

.acc-product-v18 .related-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 18px;
}

/* گرید کارت‌ها */
.acc-product-v18 .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

/* هر کارت */
.acc-product-v18 .related-card {
  text-align: center;
}

/* قاب اصلی زیر عکس */
.acc-product-v18 .related-thumb {
  display: block;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(6, 24, 16, 0.16);
}

/* خود عکس – مربع با گوشه گرد زیاد */
.acc-product-v18 .related-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 26px;
  object-fit: cover;
}

/* عنوان محصول */
.acc-product-v18 .related-name {
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 2px;
}
.acc-product-v18 .related-name a {
  color: inherit;
  text-decoration: none;
}
.acc-product-v18 .related-name a:hover {
  text-decoration: underline;
}

/* قیمت زیر عنوان */
.acc-product-v18 .related-price {
  font-size: 14px;
  font-weight: 900;
}
.acc-product-v18 .related-price del {
  opacity: 0.6;
  margin-left: 6px;
}
.acc-product-v18 .related-price ins {
  text-decoration: none;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .acc-product-v18 .related-products {
    margin-top: 28px;
  }
  .acc-product-v18 .related-grid {
    gap: 16px;
  }
}

body.single-product
  main.acc-product-v18
  .product-head
  article.card.product-head-content {
  padding: 24px 28px !important;
}

/* ======================
   نظرات کاربران
   ====================== */
/* ======================
   Base Modal Backdrop (Shared)
   ====================== */

.acc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.acc-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ======================
   Modal Box (Shared)
   ====================== */

.acc-modal {
  position: relative;
  background: #fff;
  padding: 26px;
  border-radius: 18px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  animation: accModalIn 0.25s ease forwards;
}

/* Animation */
@keyframes accModalIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======================
   Modal Controls
   ====================== */

.acc-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.acc-modal-close:hover {
  opacity: 1;
}

/* ======================
   Modal Buttons
   ====================== */

.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.acc-btn--primary {
  background: var(--brand);
  color: #fff;
}

.acc-btn--primary:hover {
  background: #158a63;
}

.acc-btn--ghost {
  background: #fff;
  border: 2px solid var(--border);
}

.acc-btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ======================
   Modal Layout Helpers
   ====================== */

.acc-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.acc-modal-hint {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.8;
}

/* ======================
   Visual Form Guide (Product Page Only)
   ====================== */

.acc-product-v18 .acc-guide {
  position: relative;
}

.acc-product-v18 .acc-guide::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(31, 169, 122, 0.25);
  box-shadow: 0 0 0 0 rgba(31, 169, 122, 0.4);
  animation: accGuidePulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes accGuidePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 169, 122, 0.45);
    opacity: 0.6;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(31, 169, 122, 0);
    opacity: 0.9;
  }
  100% {
    opacity: 0.4;
  }
}

/* === Fix FAQ & Related width === */
.acc-product-v18 .grid-2 .faq-section,
.acc-product-v18 .grid-2 .related-products {
  grid-column: 1 / -1;
}

.faq-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.faq-heading:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
/* =========================
   Accanta Toast (Mobile helper)
   ========================= */

/* Toast پایین صفحه */
.acc-product-v18 .acc-toast{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483647; /* خیلی بالا برای اطمینان */

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);

  font-weight: 800;
  font-size: 13px;
  line-height: 1.6;

  pointer-events: auto;
}

.acc-product-v18 .acc-toast.is-open{
  display: flex;
}

.acc-product-v18 .acc-toast .acc-toast-btn{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

/* روی دسکتاپ کلاً نیا */
@media (min-width: 981px){
  .acc-product-v18 .acc-toast{ display: none !important; }
}
