:root {
    --ec-primary: #127f3e;
    --ec-primary-dark: #125d30;
    --ec-primary-soft: rgba(3, 192, 81, .08);
    --ec-success: #127f3e;
    --ec-page: #f6fbf8;
    --ec-border: #e3ece6;
    --ec-line: #ebf2ee;
    --ec-radius: 12px;
    --ec-radius-lg: 20px;
    --ec-font: iranSite, iranyekan, Tahoma, sans-serif;
    --yf-soft: rgba(3, 192, 81, .06);
    --yf-grey: #ebebeb;
}
.ec-sf.ec-pd, .ec-sf.ec-pd button, .ec-sf.ec-pd input, .ec-sf.ec-pd select, .ec-sf.ec-pd textarea, .ec-modal, .ec-modal button { font-family: var(--ec-font); }

.ec-sf.ec-pd .ec-pd-top { grid-template-columns: minmax(0, 520px) minmax(0, 1fr) 320px; gap: 28px; }
.ec-sf.ec-pd .ec-gal-main { background: var(--yf-soft); border-radius: 16px; padding: 20px; }
.ec-sf.ec-pd .ec-gal-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ec-sf.ec-pd .ec-gal-thumbs { justify-content: center; }
.ec-sf.ec-pd .ec-gal-thumbs button { width: 76px; height: 76px; background: var(--yf-soft); border-color: transparent; border-radius: 12px; }
.ec-sf.ec-pd .ec-gal-thumbs button.ec-on { border: 2px solid var(--ec-primary); }
.ec-sf.ec-pd .ec-gal-thumbs button img { mix-blend-mode: multiply; }

.ec-sf.ec-pd .ec-pd-title { color: #000; }
.ec-sf.ec-pd .ec-pd-buy { background: var(--yf-grey); border: 0; border-radius: 16px; }
.ec-sf.ec-pd .ec-pd-buy .ec-btn, .ec-sf.ec-pd .ec-buy-bar .ec-btn { border-radius: 8px; }
.ec-sf.ec-pd .ec-btn:hover { background: var(--ec-primary-dark); border-color: var(--ec-primary-dark); }

.ec-sf.ec-pd .ec-pd-tabs { background: var(--yf-soft); border: 1px solid var(--ec-primary-dark); border-radius: 20px; padding: 6px 16px; backdrop-filter: blur(6px); background-color: rgba(244, 252, 247, .96); }
.ec-sf.ec-pd .ec-pd-tabs a { padding: 16px 14px; font-size: 14px; }
.ec-sf.ec-pd .ec-pd-section { background: var(--yf-soft); border-radius: 20px; padding: 24px; margin: 20px 0; }
.ec-sf.ec-pd .ec-pd-section > h2 { color: var(--ec-primary-dark); }

.ec-lb .ec-lb-box { border-radius: 16px; }
.ec-lb .ec-lb-close { width: auto; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--ec-primary); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ec-lb .ec-lb-close:hover { background: var(--ec-primary-dark); }
.ec-lb .ec-lb-close::after { content: "بستن"; font-size: 13px; font-weight: 700; }
.ec-lb .ec-lb-prev, .ec-lb .ec-lb-next { width: 48px; height: 48px; font-size: 18px; color: var(--ec-primary); border-color: var(--ec-border); }
.ec-lb .ec-lb-strip button.ec-on { border-color: var(--ec-primary); }

@media (max-width: 1199px) {
    .ec-sf.ec-pd .ec-pd-top { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .ec-sf.ec-pd .ec-pd-top { grid-template-columns: minmax(0, 1fr); }
    .ec-sf.ec-pd .ec-gal-main { padding: 12px; }
    .ec-sf.ec-pd .ec-gal-thumbs button { width: 60px; height: 60px; }
    .ec-sf.ec-pd .ec-pd-tabs { border-radius: 14px; padding: 2px 8px; }
    .ec-sf.ec-pd .ec-pd-section { padding: 16px; border-radius: 16px; }
    .ec-lb .ec-lb-prev, .ec-lb .ec-lb-next { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; z-index: 2; }
    .ec-lb .ec-lb-prev { inset-inline-start: 6px; } .ec-lb .ec-lb-next { inset-inline-end: 6px; }
    .ec-lb .ec-lb-stage { padding: 12px 52px; }
    .ec-lb .ec-lb-box:has(.ec-lb-strip button:only-child) .ec-lb-prev, .ec-lb .ec-lb-box:has(.ec-lb-strip button:only-child) .ec-lb-next { display: none !important; }
}

.ec-sf.ec-pd .yf-guarantees { display: flex; flex-direction: column; gap: 10px; }
.ec-sf.ec-pd .yf-guarantee { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.ec-sf.ec-pd .yf-guarantee i, .ec-sf.ec-pd .yf-facility i { color: #03c051; font-size: 22px; }
.ec-sf.ec-pd .yf-facilities { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 24px; margin: 28px 0 8px; }
.ec-sf.ec-pd .yf-facility { display: flex; align-items: center; gap: 12px; background: #f3fbf6; border: 1px solid #d6efdf; border-radius: 14px; padding: 16px 18px; transition: box-shadow .2s, border-color .2s; }
.ec-sf.ec-pd .yf-facility:hover { border-color: #03c051; box-shadow: 0 6px 18px rgba(3, 192, 81, .12); }
.ec-sf.ec-pd .yf-facility > i { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ec-sf.ec-pd .yf-facility b { display: block; font-size: 14px; color: var(--ec-primary-dark); }
.ec-sf.ec-pd .yf-facility span { display: block; font-size: 11px; color: var(--ec-muted); margin-top: 2px; }
@media (max-width: 767px) { .ec-sf.ec-pd .yf-facilities { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* reviewer type badge and filter chips in the site's green */
.ec-sf.ec-pd .ec-badge-rvtype { color: var(--ec-primary); background: #e7f6ed; border: 1px solid #c9ebd6; }
.ec-sf.ec-pd .ec-rv-type.ec-on { border-color: var(--ec-primary); color: var(--ec-primary); background: #f3fbf6; }

/* phones: the buy bar sits right above the site's bottom menu (its height is measured into --yf-mnav-h by js/controller.js) */
@media (max-width: 991px) {
    body:has(.header-mobile-bottom) .ec-sf.ec-pd .ec-buy-bar.ec-on { bottom: var(--yf-mnav-h, 77px); padding-bottom: 10px; border-radius: 12px 12px 0 0; }
    body:has(.header-mobile-bottom) .ec-sf.ec-pd:has(.ec-buy-bar.ec-on) { padding-bottom: 0; }
    body:has(.header-mobile-bottom):has(.ec-sf.ec-pd .ec-buy-bar.ec-on) { padding-bottom: calc(var(--yf-mnav-h, 77px) + 72px) !important; }
    body:has(.header-mobile-bottom) .ec-compare-fab { bottom: calc(var(--yf-mnav-h, 77px) + 88px); }
}
/* service boxes: same markup and styles as the live site */
.ec-sf.ec-pd .facilities-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 44px 0; }
.ec-sf.ec-pd .facilities-wrapper .item { position: relative; width: 256px; }
.ec-sf.ec-pd .facilities-wrapper .item::before, .ec-sf.ec-pd .facilities-wrapper .item::after { content: ""; position: absolute; top: -5px; right: 35%; left: 35%; height: 11px; background-color: var(--accent-color3, #125d30); border-radius: 4px; z-index: 0; }
.ec-sf.ec-pd .facilities-wrapper .item::after { top: auto; bottom: -5px; background-color: var(--accent-color, #03c051); }
.ec-sf.ec-pd .facilities-wrapper .item .content { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 8px; background-color: var(--light-3, #ebebeb); padding: 24px 18px; z-index: 1; }
.ec-sf.ec-pd .facilities-wrapper .item .content::before { content: ""; position: absolute; inset: 8px; border: solid 1px var(--accent-color, #03c051); border-radius: 4px; z-index: -1; }
.ec-sf.ec-pd .facilities-wrapper .item svg { width: 32px; height: 32px; fill: var(--accent-color3, #125d30); stroke: var(--accent-color3, #125d30); flex-shrink: 0; }
.ec-sf.ec-pd .facilities-wrapper .item .title { display: block; font-weight: 700; color: var(--accent-color3, #125d30); }
.ec-sf.ec-pd .facilities-wrapper .item .subtitle { display: block; font-size: 12px; color: var(--dark-5, #888); }

/* typography: one readable scale for the product page (Persian body text 15-16px, line-height 1.9-2, headings 1.25 ratio, AA contrast) */
.ec-sf.ec-pd { --yf-text: #2b2b2b; --yf-text-2: #555; --yf-muted: #6b6b6b; color: var(--yf-text); }
.ec-sf.ec-pd .ec-pd-title { font-size: 22px; line-height: 1.6; font-weight: 700; color: var(--yf-text); margin: 4px 0 8px; }
.ec-sf.ec-pd .ec-pd-sub, .ec-sf.ec-pd .ec-pd-brand { font-size: 13px; line-height: 1.8; color: var(--yf-muted); }
.ec-sf.ec-pd .ec-pd-summary, .ec-sf.ec-pd .ec-pd-summary p { font-size: 15px; line-height: 2; color: var(--yf-text-2); }
.ec-sf.ec-pd .ec-pd-section > h2 { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--yf-text); margin: 0 0 16px; }
.ec-sf.ec-pd .ec-pd-desc { font-size: 15px; line-height: 2; color: var(--yf-text-2); text-align: justify; text-justify: inter-word; }
.ec-sf.ec-pd .ec-pd-desc p, .ec-sf.ec-pd .ec-pd-desc li { font-size: 15px; line-height: 2; color: var(--yf-text-2); margin: 0 0 12px; }
.ec-sf.ec-pd .ec-pd-desc h2 { font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--yf-text); margin: 28px 0 10px; }
.ec-sf.ec-pd .ec-pd-desc h3 { font-size: 16px; line-height: 1.7; font-weight: 700; color: var(--yf-text); margin: 22px 0 8px; }
.ec-sf.ec-pd .ec-pd-desc h4, .ec-sf.ec-pd .ec-pd-desc h5, .ec-sf.ec-pd .ec-pd-desc h6 { font-size: 15px; line-height: 1.8; font-weight: 700; color: var(--yf-text); margin: 18px 0 6px; }
.ec-sf.ec-pd .ec-pd-desc ul, .ec-sf.ec-pd .ec-pd-desc ol { padding-inline-start: 22px; margin: 0 0 14px; }
.ec-sf.ec-pd .ec-pd-desc strong, .ec-sf.ec-pd .ec-pd-desc b { color: var(--yf-text); font-weight: 700; }
.ec-sf.ec-pd .ec-pd-desc > :first-child { margin-top: 0; }
.ec-sf.ec-pd .ec-pd-desc a { color: var(--ec-primary-dark, #125d30); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
    .ec-sf.ec-pd .ec-pd-title { font-size: 18px; }
    .ec-sf.ec-pd .ec-pd-section > h2, .ec-sf.ec-pd .ec-pd-desc h2 { font-size: 17px; }
    .ec-sf.ec-pd .ec-pd-desc, .ec-sf.ec-pd .ec-pd-desc p, .ec-sf.ec-pd .ec-pd-desc li { font-size: 15px; line-height: 1.95; text-align: start; }
}

/* service boxes now sit in the info column under the summary */
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper { margin: 28px 0 8px; gap: 14px; flex-wrap: nowrap; }
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item { flex: 1 1 0; width: auto; min-width: 0; }
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item .content { padding: 20px 14px; gap: 10px; }
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item .title { font-size: 13px; line-height: 1.7; }
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item .subtitle { font-size: 12px; line-height: 1.7; }
.ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item svg { width: 28px; height: 28px; }
@media (max-width: 1199px) { .ec-sf.ec-pd .ec-pd-info .facilities-wrapper { flex-wrap: wrap; } .ec-sf.ec-pd .ec-pd-info .facilities-wrapper .item { flex: 1 1 220px; } }
