/*
 * Left-to-right languages (English). Loaded only when the page is not RTL (nadi-core/i18n-front.php),
 * so nothing here can reach the Persian or Arabic pages.
 *
 * 1. Body text that product.css sets justified for Persian reads badly in English: ragged right instead.
 *    The selector list is generated from product.css (every rule with text-align: justify).
 */
html:not([dir="rtl"]) .nadi-p-hero__lead,
html:not([dir="rtl"]) .nadi-p-faq__a,
html:not([dir="rtl"]) .nadi-p-intro__text p,
html:not([dir="rtl"]) .nadi-p-usage__t,
html:not([dir="rtl"]) .nadi-p-grade p,
html:not([dir="rtl"]) .nadi-p-copy,
html:not([dir="rtl"]) .nadi-p-features .neuros-icon-box-widget .icon-box-info,
html:not([dir="rtl"]) .nadi-p-storage__warn,
html:not([dir="rtl"]) .nadi-p-grade2__b p,
html:not([dir="rtl"]) .elementor-widget-text-editor.nadi-copy,
html:not([dir="rtl"]) .elementor-widget-theme-post-content.nadi-copy,
html:not([dir="rtl"]) .nadi-grade-card .neuros-icon-box-widget .icon-box-item .icon-box-info,
html:not([dir="rtl"]) .nadi-grade-text{
  text-align: start;
  text-justify: auto;
}

/*
 * 2. Font. The Persian fonts (Shabnam, IRANYekan) draw the digits 0-9 as Persian digits and are not made for
 *    Latin text. On left-to-right pages the same two family names point at Inter (self-hosted), so
 *    every rule and every Elementor setting that names them keeps working and numbers read 2026, not ۲۰۲۶.
 *    Weights are stepped down one notch (500 → regular, 600 → medium, 700 → semibold, 800/900 → bold): the
 *    Persian design uses heavy weights because those fonts are light, and the same numbers in Inter read as
 *    bold body text.
 */
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:300;font-display:swap;src:url("fonts/inter-latin-300.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin-400.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-latin-400.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-latin-500.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-latin-600.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/inter-latin-700.woff2") format("woff2");}
@font-face{font-family:"IRANYekan";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/inter-latin-700.woff2") format("woff2");}
@font-face{font-family:"Shabnam";font-style:normal;font-weight:300;font-display:swap;src:url("fonts/inter-latin-300.woff2") format("woff2");}
@font-face{font-family:"Shabnam";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin-400.woff2") format("woff2");}
@font-face{font-family:"Shabnam";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-latin-600.woff2") format("woff2");}
@font-face{font-family:"Shabnam";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/inter-latin-700.woff2") format("woff2");}

/*
 * 3. Things the Persian stylesheet places with physical sides or prints as Persian text.
 */
/* the food-grade badge on the product cards (nadi.css prints the Persian word) */
html:not([dir="rtl"]) .elementor-widget.nadi-grade--food .price-item::before{ content: "Food-grade"; }

/* "Shrink or stretch?": the rule between the two families sits between the columns, so on the second column's left */
html:not([dir="rtl"]) .nadi-vs-col--b{ border-right: 0; border-left: 1px solid var(--nadi-dark-line); }
@media (max-width:1024px){ html:not([dir="rtl"]) .nadi-vs-col--b{ border-left: 0; border-top: 1px solid var(--nadi-dark-line); } }

/* wide call-to-action buttons: a fixed minimum width centres the label and leaves the arrow stranded at the edge
   when the English label is short. Use the theme's own spacing, where the arrow sits right beside the label
   (before it at rest, after it on hover). */
html:not([dir="rtl"]) body .elementor-widget.nadi-cta-wide .neuros-button,
html:not([dir="rtl"]) body .nadi-hero-text .elementor-widget-neuros_button .neuros-button{
  min-width: 0; padding-left: 43px; padding-right: 24px;
}
html:not([dir="rtl"]) body .elementor-widget.nadi-cta-wide .neuros-button:hover,
html:not([dir="rtl"]) body .nadi-hero-text .elementor-widget-neuros_button .neuros-button:hover{
  padding-left: 24px; padding-right: 43px;
}

/* product cards on the hub ("Four Nadi Plastic packaging films"): the photo plate sits beside the white card and
   the card overlaps 11.6% of it. The photos are composed with the roll at their left edge, which is the free
   side in Persian; here the card covers that side, so the picture starts where the card ends. Side-by-side
   layout only (the stacked layout below 1151px centres the photo already). */
@media (min-width: 1151px){
  html:not([dir="rtl"]) .elementor-widget-neuros_price_item .neuros-price-item-widget.neuros-price-item-style-alt .price-item-image-block{
    box-sizing: border-box; padding-left: 11.6%; background-origin: content-box;
  }
}

/* header: the logo's square edge met the rounded left corner of the menu bar (in Persian the logo's own round
   side sits in that corner) */
html:not([dir="rtl"]) #masthead .hfe-site-logo{ padding-left: 16px; }

/* form submit button: the arrow stands before the label, where the button keeps room for it (in Persian that
   is the end edge; here the end edge is under the last letters of the label) */
html:not([dir="rtl"]) form.frm-fluent-form[class*="fluent_form"] .ff-btn-submit:not(.ff_btn_no_style):before{
  inset-inline-end: auto; left: 24px;
}
html:not([dir="rtl"]) form.frm-fluent-form[class*="fluent_form"] .ff-btn-submit:not(.ff_btn_no_style):hover:before{
  transform: translateY(-50%) translateX(4px);
}

/* the photo is scaled to the height of the card, so a taller card means a larger roll that no longer fits the
   strip beside it. English copy runs longer than Persian; a slightly smaller, tighter text size keeps the
   cards (and so the rolls) at the size they have on the Persian page. The photo itself is untouched. */
html:not([dir="rtl"]) .elementor-widget-neuros_price_item .price-item-description,
html:not([dir="rtl"]) .elementor-widget-neuros_price_item .price-item-custom-field{ font-size: 15px; line-height: 1.65; }
html:not([dir="rtl"]) .elementor-widget-neuros_price_item .price-item-custom-fields{ margin-bottom: 16px; }
/* narrower desktops: the strip beside the card gets thinner while the card gets taller; one more step down in
   text size, and the photo's empty left margin goes under the card so the roll has the whole strip */
@media (min-width: 1151px) and (max-width: 1400px){
  html:not([dir="rtl"]) .elementor-widget-neuros_price_item .price-item-description,
  html:not([dir="rtl"]) .elementor-widget-neuros_price_item .price-item-custom-field{ font-size: 14px; line-height: 1.6; }
}
@media (min-width: 1151px){
  html:not([dir="rtl"]) .elementor-element.elementor-widget.elementor-widget-neuros_price_item .neuros-price-item-widget.neuros-price-item-style-alt .price-item-image-block{
    background-position: left -10px center;
  }
}

/* event page prev / next (events.css): the right-to-left pages swap the theme's two arrow glyphs because their
   «next» item sits on the right. Mirrored for left-to-right, each arrow points outward again, as on the Persian page:
   the left item (prev-post class, «Next event») gets the left-pointing glyph, the right item the right-pointing one. */
html:not([dir="rtl"]) body nav.post-navigation.nadi-event-navigation .post-navigation-item.prev-post .post-navigation-link a::before,
html:not([dir="rtl"]) body nav.post-navigation.nadi-event-navigation .post-navigation-item.prev-post .post-navigation-link a::after{ content:"\e833" !important; font-family:'fontello' !important; }
html:not([dir="rtl"]) body nav.post-navigation.nadi-event-navigation .post-navigation-item.next-post .post-navigation-link a::before,
html:not([dir="rtl"]) body nav.post-navigation.nadi-event-navigation .post-navigation-item.next-post .post-navigation-link a::after{ content:"\e82d" !important; font-family:'fontello' !important; }   /* on LTR pages 'fontello' is the unmirrored theme font ('fontello-ltr' is declared only for RTL) */
