/* Kurdish font declaration */
@font-face {
    font-family: 'Rabar_022';
    src: url('../fonts/Rabar_022.woff2') format('woff2'),
        url('../fonts/Rabar_022.woff') format('woff'),
        url('../fonts/Rabar_022.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rabar_021';
    src: url('../fonts/Rabar_021.woff2') format('woff2'),
        url('../fonts/Rabar_021.woff') format('woff'),
        url('../fonts/Rabar_021.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'dm_sans9pt_italic';
    src: url('../fonts/dmsans-italic-variablefont_opszwght-webfont.woff2') format('woff2'),
         url('../fonts/dmsans-italic-variablefont_opszwght-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


@font-face {
    font-family: 'dm_sans9pt_regular';
    src: url('../fonts/dmsans-variablefont_opszwght-webfont.woff2') format('woff2'),
         url('../fonts/dmsans-variablefont_opszwght-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}



/* English font styles */
.en-font {
    font-family: 'dm_sans9pt_regular', 'Montserrat', 'Arial', sans-serif;
}

/* Kurdish font styles */
.ku-font {
    font-family: 'Rabar_022', 'Rabar_021', 'Arial', sans-serif;
}

/* Apply font to different elements based on language */
html[lang="en"] body,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
html[lang="en"] p,
html[lang="en"] span,
html[lang="en"] a,
html[lang="en"] div,
html[lang="en"] li,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] button,
html[lang="en"] select {
    font-family: 'dm_sans9pt_regular', 'Montserrat', 'Arial', sans-serif !important;
    transition: all 0.3s ease;
}

html[lang="ku"] body {
    font-family: 'Rabar_022', 'Rabar_021', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

/* Smooth transitions for layout changes */
body, .container, .row, section, div {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Prevent layout shifts during language changes */
html[dir="rtl"] .row,
html[dir="rtl"] .container {
    transition: all 0.3s ease;
}

html[lang="ku"] h1,
html[lang="ku"] h2,
html[lang="ku"] h3,
html[lang="ku"] h4,
html[lang="ku"] h5,
html[lang="ku"] h6 {
    font-family: 'Rabar_021', 'Arial', sans-serif;
}

html[lang="ku"] p,
html[lang="ku"] span,
html[lang="ku"] a,
html[lang="ku"] div {
    font-family: 'Rabar_022', 'Arial', sans-serif;
}

html[lang="ku"] input,
html[lang="ku"] textarea,
html[lang="ku"] button {
    font-family: 'Rabar_022', 'Arial', sans-serif;
}

/* You can add more specific selectors as needed */

/* Specific selectors for Kurdish titles and descriptions */
html[lang="ku"] .product-title,
html[lang="ku"] .nav-titlee,
html[lang="ku"] h1,
html[lang="ku"] h2,
html[lang="ku"] h3,
html[lang="ku"] h4,
html[lang="ku"] h5,
html[lang="ku"] h6 {
    font-family: 'Rabar_021', 'Arial', sans-serif !important;
}

html[lang="ku"] .description,
html[lang="ku"] p,
html[lang="ku"] div.description {
    font-family: 'Rabar_022', 'Arial', sans-serif !important;
}

/* Specific selectors for Kurdish title and description input fields */
input[id="title_ku"],
textarea[id="title_ku"] {
    font-family: 'Rabar_021', 'Arial', sans-serif !important;
}

input[id="description_ku"],
textarea[id="description_ku"] {
    font-family: 'Rabar_022', 'Arial', sans-serif !important;
}

/* Font size adjustment for Kurdish text */
html[lang="ku"] {
    font-size: 95%; /* Slightly reduce the base font size for Kurdish */
}

/* More specific font size adjustments */
html[lang="ku"] h1 {
    font-size: 2.25rem; /* Default is 2.5rem */
}

html[lang="ku"] h2 {
    font-size: 2rem; /* Default is 2rem */
}

html[lang="ku"] h3 {
    font-size: 1.53rem; /* Default is 1.7rem */
}

html[lang="ku"] h4 {
    font-size: 1.26rem; /* Default is 1.4rem */
}

html[lang="ku"] h5 {
    font-size: 1.12rem; /* Default is 1.25rem */
}

html[lang="ku"] h6 {
    font-size: 0.95rem; /* Default is 1rem */
}

html[lang="ku"] p,
html[lang="ku"] span,
html[lang="ku"] div,
html[lang="ku"] a,
html[lang="ku"] li {
    font-size: 18px; /* Default is 1rem - reduce by 5% */
    font-weight: 400;
}

/* Adjustment for specific classes that might have larger font sizes */
html[lang="ku"] .fs-32 {
    font-size: 28px !important; /* Reduce from 32px */
}

html[lang="ku"] .fs-24 {
    font-size: 22px !important; /* Reduce from 24px */
}

html[lang="ku"] .fs-18 {
    font-size: 16px !important; /* Reduce from 18px */
}

/* Form fields font size adjustment */
html[lang="ku"] input,
html[lang="ku"] textarea,
html[lang="ku"] select,
html[lang="ku"] button {
    font-size: 0.95rem;
}


.adfont{
    font-family: 'Rabar_021', 'Arial', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}
