/* ===== Fonts ===== */
@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../fonts/IRANSansXFaNum-Medium.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../fonts/IRANSansXFaNum-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset / Base ===== */
* {
    font-family: IRANSansXFaNum !important;
    direction: rtl;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ===== Root Vars (گروه 1) ===== */
:root {
    --container-max: 1200px;
    --container-gutter: clamp(16px, 3.2vw, 28px);
}

/* ===== Containers ===== */
.sec-container {
    max-width: var(--container-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}

.sec-container--wide {
    --container-max: 1400px;
}

.sec-container--narrow {
    --container-max: 960px;
}

.sec-container--flush {
    padding-inline: 0;
}

/* Section vertical spacing */
.sec-section {
    padding-block: clamp(28px, 5vw, 56px);
}

/* ===== Root Vars (گروه 2؛ عین خودت) ===== */
:root {
    --max: 1200px;
    --gap: clamp(16px, 3vw, 28px);
    --ink: #fff;
    --muted: #7aa6e6;
    --brand: #008efa;
    --bg1: #031E59;
    --bg2: #031E59;
    --halo-h: clamp(420px, 55vh, 620px);
}

/* ===== Page Background (عین خودت) ===== */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--bg2);
    background-image:
        radial-gradient(ellipse farthest-side at 50% -12%, #0f4ea8 0%, rgba(15, 78, 168, .55) 30%, transparent 70%),
        linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 40%, var(--bg2) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: 50% 0, 50% 0;
    background-size: 100% var(--halo-h), 100% 100%;
    overflow-x: hidden;
}

/* malls section  */

/* ==== مشترک: فقط روی همین سکشن اثر می‌کند ==== */
.malls-slider {
    --m-edge: 160px;
    /* فاصله‌ی دو سر در دسکتاپ (override در desktop.css) */
    --m-gap: 14px;
    /* فاصله‌ی کارت‌ها */
    --m-radius: 16px;
    --m-shadow: 0 10px 30px rgba(2, 6, 23, .08);
    --m-aspect: 3/2;
    /* نسبت تصویر کارت‌ها (override در mobile.css) */

    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 0;
    position: relative;
}

.malls-slider #malls-swiper {
    direction: rtl;
    position: relative;
    padding-inline: var(--m-edge);
    padding-bottom: 10px;
}

.malls-slider .swiper-wrapper {
    align-items: stretch;
}

.malls-slider .swiper-slide {
    height: auto;
    border-radius: var(--m-radius);
    overflow: hidden;
    box-shadow: var(--m-shadow);
    background: transparent;
    border: 1px solid #fff;
}

.malls-slider .m-card {
    position: relative;
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.malls-slider .m-ph {
    aspect-ratio: var(--m-aspect);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.malls-slider .m-ph img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    /* کراپ از بالا */
    display: block;
    background: #e2e8f0;
}

.malls-slider .m-ph::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .48) 75%, rgba(0, 0, 0, .78) 100%);
}

/* عنوان و شهر */
.malls-slider .m-title {
    right: 14px;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    font-weight: 800;
    font-size: clamp(15px, 2.2vw, 20px);
    line-height: 1.5;
    text-align: right;
    color: #fff;
    text-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    padding-top: 10px;
    padding-right: 20px;
}

.malls-slider .m-city {
    margin-top: 5px;
    margin-right: 20px;
    margin-bottom: 22px;
    right: 14px;
    bottom: 58px;
    z-index: 2;
    background: transparent;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
}

/* ناوبری */
.malls-slider .malls-nav {
    position: absolute;
    inset-block: 0;
    margin: auto 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--m-shadow);
    display: grid;
    place-items: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    transition: transform .2s;
}

.malls-slider .malls-nav:hover {
    transform: scale(1.03);
}

.malls-slider .malls-prev {
    right: 12px;
}

.malls-slider .malls-next {
    left: 12px;
}

/* تنطیم رنگ لودر تنبلِ سوایپر */
.malls-slider .swiper-lazy-preloader {
    --swiper-preloader-color: #fff;
}





/* استایل سکشن ووچر ها  */

/* ===== Voucher Slider + Tabs (Scoped) ===== */
.vch2 {
    color: #0F172A;
    overflow: hidden;
}

/* ===== Category tabs (Swiper) ===== */
.vch2 .vch2__cats .swiper-wrapper {
    align-items: center;
    padding: 10px 0;
}

.vch2 .vch2__cats .swiper-slide {
    width: auto !important;
}

.vch2 .vch2__btn {
    position: relative;
    border: 1px solid #d8e6ff;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 120px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    text-align: center;
    justify-content: center;
}

.vch2 .vch2__btn:hover {
    box-shadow: 0 3px 12px rgba(2, 6, 23, .08);
}

.vch2 .vch2__btn.is-active {
    background: #fff;
    color: #000;
    border-color: transparent;
}

.vch2 .vch2__count {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    line-height: 18px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, .25);
}

/* ===== Meta line ===== */
.vch2 .vch2__meta {
    margin: 10px 0 12px;
    color: #0f1d3a;
    font-weight: 700;
}

/* ===== Cards slider ===== */
.vch2 .vch2__cards {
    position: relative;
    padding: 0 10px;
}

.vch2 .vch2__cards .swiper-slide {
    height: auto;
}

.vch2 .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e6eeff;
    background: #fff;
    box-shadow: 0 6px 20px rgba(2, 6, 23, .08);
    z-index: 3;
}

.vch2 .nav-btn.prev {
    left: 0px;
}

.vch2 .nav-btn.next {
    right: 0px;
}

.vch2 .nav-btn svg {
    margin-top: 6px;
    padding: 3px;
}

/* ===== Card ===== */
.vch2 .card {
    --vch2-bg: none;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 400/178;
    box-shadow: 0 8px 28px rgba(2, 6, 23, .08);
    /* fallback color */
    background-image: var(--vch2-bg);
    /* از JS ست می‌شود */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vch2 .card__grid {
    display: flex;
    flex-direction: row-reverse;
    height: 100%;
    justify-content: space-between;
}


/* Left (merchant + code) */
.vch2 .card__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 16px 5px;
    width: 130px;
}

.vch2 .card__merchant {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vch2 .card__logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.vch2 .card__store {
    font-weight: 800;
    font-size: clamp(12px, 2.4vw, 14px);
    letter-spacing: -.2px;
}

.vch2 .card__code {
    font-weight: 900;
    font-size: clamp(14px, 3vw, 18px);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
}

/* Right (title + subtitle) */
.vch2 .card__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: #0f1d3a;
    padding: 16px 20px;
}

.vch2 .card__title {
    font-weight: 900;
    font-size: clamp(13px, 2.6vw, 18px);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

.vch2 .card__sub {
    font-weight: 500;
    font-size: clamp(11px, 2.2vw, 14px);
    color: #f1f1f1;
    opacity: .95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tooltip */
.vch2 .tip {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: #0f1d3a;
    color: #fff;
    border-radius: 12px;
    padding: 8px;
    display: none;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .22);
    min-width: 220px;
}

.vch2 .tip.is-open {
    display: block;
    animation: tipIn .16s ease-out both;
}

.vch2 .tip-arrow {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #0f1d3a;
}

@keyframes tipIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.vch2 .tip__row {
    display: flex;
    gap: 8px;
}

.vch2 .tip__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.vch2 .tip__btn--go {
    background: linear-gradient(180deg, #1092ff, #0076e6);
    color: #fff;
    border: 1px solid transparent;
    text-decoration: none;
}

.vch2 .tip__btn--copy {
    background: #17223a;
    color: #fff;
    border: 1px solid #2a3650;
}

.card__code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card__code-icon {
    width: 16px;
    height: 16px;
    color: #fff;
}



/* ===== FAQ Accordion (Base) ===== */
.sp-faq {
    --faq-max: 1200px;
    --faq-radius: 32px;
    --faq-ink: #e5e7eb;
    --faq-sub: #9ca3af;
    color: var(--faq-ink);
    padding: clamp(32px, 6vw, 56px) 0;
}

/* کارت اصلی */
.sp-faq .faq-wrap {
    max-width: var(--faq-max);
    margin-inline: auto;
    padding: clamp(20px, 3.4vw, 36px);
    background: var(--faq-bg-card);
    border-radius: var(--faq-radius);
    box-shadow: var(--faq-shadow);
    display: flex;
    gap: 24px;
    flex-direction: column;
    position: relative;
}

/* تیتر وسط مثل طرح */
.sp-faq .faq-title {
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--faq-ink);
}

/* تصویر تزئینی – موبایل بالا، دسکتاپ کنار */
.sp-faq .faq-media {
    justify-self: center;
    position: absolute;
    right: 30%;
    top: 55px;
}

.sp-faq .faq-media img,
.sp-faq .faq-media picture {
    display: block;
    width: min(260px, 60vw);
    width: 20%;
    height: auto;
    align-items: center;
}

/* آکاردئون */
.sp-faq .faq-accordion {
    width: 100%;
}

/* ساختار details: خطوط ساده مثل ماکت */
.sp-faq .faq-item {
    border-bottom: 1px solid var(--faq-border);
}

.sp-faq .faq-item:first-of-type {
    border-top: 1px solid var(--faq-border);
}

/* سرتیتر هر سوال */
.sp-faq .faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: clamp(13px, 1.7vw, 16px);
    line-height: 1.7;
    text-align: center;
    padding: 0;
}

.sp-faq .faq-summary::-webkit-details-marker {
    display: none;
}

/* متن سوال – وسط‌چین شبیه تصویر */
.sp-faq .faq-q {
    flex: 1;
    color: var(--faq-ink);
    text-align: right;
}

/* آیکون + / – */
.sp-faq .faq-icon {
    flex: none;
    inline-size: 26px;
    block-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #f9fafb;
}

.sp-faq .faq-icon::before {
    content: "+";
    transform: translateY(-1px);
}

.sp-faq .faq-item[open] .faq-icon::before {
    content: "−";
}

/* متن پاسخ */
.sp-faq .faq-content {
    padding: 0 0 14px 0;
    font-size: 13.5px;
    color: var(--faq-sub);
}

.sp-faq .faq-content p {
    margin: 0;
}

/* فوکوس کیبورد */
.sp-faq .faq-summary:focus-visible {
    outline: 2px solid rgba(96, 165, 250, .9);
    outline-offset: 4px;
}

/* لAYOUT: موبایل = ستون‌عمودی، دسکتاپ = تصویر کنار آکاردئون */
@media (min-width: 768px) {
    .sp-faq .faq-wrap {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
        align-items: center;
    }

    .sp-faq .faq-media {
        order: 1;
        /* تصویر سمت راست برای RTL */
        justify-self: end;
    }

    .sp-faq .faq-accordion {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .sp-faq .faq-wrap {
        border-radius: 24px;
        gap: 20px;
    }

    .sp-faq .faq-media {
        order: 2;
        /* تصویر زیر آکاردئون یا حذفش اگر نخواستی */
    }
}

/* کاهش موشن */
@media (prefers-reduced-motion: reduce) {

    .sp-faq .faq-summary,
    .sp-faq .faq-icon {
        scroll-behavior: auto;
        transition: none;
    }
}


.psec__visual {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    /* اگر نسبت‌تصویرت فرق دارد، این را عوض کن */
    object-fit: cover;
    border-radius: 12px;
    /* اختیاری */
}

.heading-2 {
    text-align: center;
}

.heading-3 {
    text-align: center;
    font-size: 12px;
}

/* تصویر سیاه‌سفید وقتی محصول تمام شده */
.pcard--soldout .pcard__imgwrap img {
    filter: grayscale(1);
    opacity: .7;
}

/* تگ تمام شد روی عکس */
.pcard__tag-soldout {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* اطمینان از relative بودن تامب اگر قبلاً نبود */
.pcard__thumb {
    position: relative;
}

/* ===== Base: ساختار عمومی اسلایدر ===== */
.promo-slider {
    --promo-radius: 16px;
    --promo-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    --promo-nav-size: 36px;
    --promo-nav-bg: rgba(15, 23, 42, 0.8);
    --promo-nav-color: #fff;
    --promo-dot-color: rgba(148, 163, 184, 0.7);
    --promo-dot-active: #0ea5e9;

    /* ⬇️ مهم‌ها */
    width: min(100vw, 1920px);
    /* تا ۱۹۲۰ بزرگ میشه، بیشتر نه */
    max-width: 100%;
    margin-inline: auto;
    /* وسط چین در صفحات عریض */

    background: var(--promo-bg);
    padding-block: 12px;
}


.promo-slider .promo-swiper {
    width: 100%;
    overflow: hidden;
}

/* خود اسلایدها */
.promo-slider .swiper-slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.promo-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* تصویر بنر */
.promo-slide-img {
    display: block;
    width: 100%;
    height: auto;
    /* نسبت خود عکس حفظ میشه */
    border-radius: var(--promo-radius);
    box-shadow: var(--promo-shadow);
}


/* ناوبری چپ/راست */
.promo-nav {
    position: absolute;
    inset-block: 0;
    margin-block: auto;
    z-index: 5;
    width: var(--promo-nav-size);
    height: var(--promo-nav-size);
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--promo-nav-bg);
    color: var(--promo-nav-color);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.promo-nav:hover {
    transform: scale(1.05);
    opacity: 1;
}

.promo-prev {
    right: 8px;
}

.promo-next {
    left: 8px;
}

/* پیجینیشن */
.promo-pagination {
    position: absolute;
    inset-inline: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.promo-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--promo-dot-color);
    opacity: 1;
    transition: width 0.2s ease, background 0.2s ease;
}

.promo-pagination .swiper-pagination-bullet-active {
    width: 16px;
    background: var(--promo-dot-active);
}



/* سکشن تمام‌عرض */
#sec-seo.sec-seo {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw); /* فول‌بلید */
  padding: 40px 0 48px;
  font-family: system-ui, -apple-system, "Segoe UI", "Vazirmatn", sans-serif;
  color: #fff !important;
}

/* ظرف وسط سکشن */
.sec-seo__container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

/* تیتر سئو */
.sec-seo__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

/* جعبه متن – در حالت بسته ارتفاع محدود دارد */
.sec-seo__text {
  position: relative;
  max-height: 220px;          /* مقدار قابل تنظیم: چقدر باز باشد */
  overflow: hidden;
  transition: max-height .35s ease;
}

/* وقتی باز است */
.sec-seo__text.is-open {
  max-height: 9999px;         /* عملاً بدون محدودیت */
}

/* خود متن */
.sec-seo__inner {
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: justify;
  color: #fff;
}

/* فید پایین در حالت بسته */
.sec-seo__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 72px;
  pointer-events: none;
}

/* وقتی باز است، فید را پنهان کن */
.sec-seo__text.is-open .sec-seo__fade {
  display: none;
}

/* دکمه ادامه مطلب / بستن */
.sec-seo__toggle {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #008efa;
  background: #008efa;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* استایل هنگام باز بودن (اختیاری – مثلاً رنگ برعکس شود) */
.sec-seo__toggle.is-open {
  background: #fff;
  color: #008efa;
}

/* ریسپانسیو موبایل */
@media (max-width: 640px) {
  #sec-seo.sec-seo {
    padding: 32px 0 40px;
  }

  .sec-seo__title {
    font-size: 1.1rem;
  }

  .sec-seo__inner {
    font-size: 0.9rem;
  }
}

.ipw-oldprice{
    text-decoration: line-through;
    color: #fff;
    font-size: 9px;
    padding: 0 5px ;
    display: block;
}