/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2025   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/
/* Override load font from responsive theme */

@font_heading_default_museo: "Cairo", "Helvetica Neue", Arial, sans-serif;

.ut2-change-font-face() when (@headings_font = @font_heading_default_museo) {
    /* montserrat-900 */
    @font-face {
        font-display: swap;
        font-family: "Cairo", "Helvetica Neue", Arial, sans-serif;;
        font-style: normal;
        font-weight: 900;
        src: url('../../../media/custom_fonts/Cairo-Bold.ttf');
    }
}

@font_heading_default_inter: "Cairo", "Helvetica Neue", Arial, sans-serif;
@font_regular_default_inter: "Cairo", "Helvetica Neue", Arial, sans-serif;

.ut2-change-font-face() when (@headings_font = @font_heading_default_inter) {
    /* inter-500 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 500;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-600 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 600;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-700 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 700;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-800 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 800;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-900 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 900;
        src: url('../../../media/custom_fonts/Cairo-Bold.ttf');
    }
}
.ut2-change-font-face() when (@body_font = @font_regular_default_inter) {
    /* inter-regular */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 400;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-500 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 500;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* inter-600 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 600;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
}

@font_heading_default_montserrat: "Cairo", "Helvetica Neue", Arial, sans-serif;
@font_regular_default_montserrat: "Cairo", "Helvetica Neue", Arial, sans-serif;

.ut2-change-font-face() when (@headings_font = @font_heading_default_montserrat) {
    /* montserrat-500 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 500;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* montserrat-600 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 600;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* montserrat-700 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 700;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* montserrat-900 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 900;
        src: url('../../../media/custom_fonts/Cairo-Bold.ttf');
    }
}
.ut2-change-font-face() when (@body_font = @font_regular_default_montserrat) {
    /* montserrat-regular */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 400;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* montserrat-500 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 500;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* montserrat-600 */
    @font-face {
        font-display: swap;
        font-family: "Cairo";
        font-style: normal;
        font-weight: 600;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
}

@font_heading_default_opensans: "Cairo", "Helvetica Neue", Arial, sans-serif;
@font_regular_default_opensans: "Cairo", "Helvetica Neue", Arial, sans-serif;

.ut2-change-font-face() when (@headings_font = @font_heading_default_opensans) {
    /* montserrat-900 */
    @font-face {
        font-display: swap;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 900;
        src: url('../../../media/custom_fonts/Cairo-Bold.ttf');
    }
}
.ut2-change-font-face() when (@body_font = @font_regular_default_opensans) {
    /* open-sans-regular */
    @font-face {
        font-display: swap;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 400;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* open-sans-500 */
    @font-face {
        font-display: swap;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 500;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
    /* open-sans-600 */
    @font-face {
        font-display: swap;
        font-family: 'Open Sans';
        font-style: normal;
        font-weight: 600;
        src: url('../../../media/custom_fonts/Cairo-Medium.ttf');
    }
}

.ut2-change-font-face();
