/**
*   Flatsome Child Theme — main CSS
*   Updated for Nolix.ir
*
*   Load order:
*     1) Nolix design tokens (CSS variables, brand colors, scale)
*     2) Header pill styles      (Phase 2)
*     3) Footer panel styles     (Phase 2)
*     4) Existing RTL fixes      (preserved from original)
*     5) Component CSS will be appended below in future phases
*/

@import url('./nolix-tokens.css?v=1.2');
@import url('./nolix-header.css?v=6.5');
@import url('./nolix-footer.css?v=3.3');
/* nolix-cart.css & nolix-checkout.css are now enqueued directly in
   functions.php (only on cart/checkout) so WP Rocket doesn't drop them. */


/* -----------------------------------------------------------
   Original RTL fixes — preserved from the previous version
   ----------------------------------------------------------- */

body.rtl .uppercase,
body.rtl h6,
body.rtl th,
body.rtl span.widget-title {
    letter-spacing: 0;
}

input[type='email'], input[type='date'], input[type='search'], input[type='number'], input[type='text'], input[type='tel'], input[type='url'], input[type='password'], textarea, select, .select2-container .select2-choice, .select2-container .select2-selection {
    direction: rtl;
}

body.rtl .stars a+a {
    padding-right: .6em;
}

body.rtl .ux-timer {
    direction: ltr;
}


/* -----------------------------------------------------------
   Nolix global brand polish — applied once tokens are loaded
   ----------------------------------------------------------- */

/* Ensure Persian numerals use the Peyda variant correctly */
body {
    font-feature-settings: "ss01" on; /* Peyda Persian-numeral stylistic set */
}

/* Smooth out heading rhythm on the new brand type scale */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    color: var(--nolix-text-primary);
}
