/**
 * Laifen 字体加载
 *
 * 从 Shopify 主题迁移的字体文件
 *
 * @package Laifen_Russia
 * @since 1.0.0
 */

/* ==========================================================================
   MiSans Latin 字体族
   ========================================================================== */

/* MiSans Latin - Light */
@font-face {
    font-family: 'MiSans Latin';
    src: url('../fonts/MiSansLatin-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* MiSans Latin - Regular */
@font-face {
    font-family: 'MiSans Latin';
    src: url('../fonts/MiSansLatin-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* MiSans Latin - Medium */
@font-face {
    font-family: 'MiSans Latin';
    src: url('../fonts/MiSansLatin-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* MiSans Latin - Bold */
@font-face {
    font-family: 'MiSans Latin';
    src: url('../fonts/MiSansLatin-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Poppins 字体（备用）
   ========================================================================== */

/* Poppins - Regular */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   字体应用
   ========================================================================== */

/* 全局字体设置 */
html {
    overflow-x: clip; /* 防止 100vw 元素导致水平溢出（使用 clip 而非 hidden，clip 不会创建滚动上下文，不会破坏 position: sticky） */
}

body {
    font-family: var(--laifen-font-primary);
    font-size: var(--laifen-font-base);
    font-weight: var(--laifen-font-regular);
    line-height: var(--laifen-line-height-normal);
    color: var(--laifen-text-primary);
    overflow-x: clip; /* 防止安卓/鸿蒙等设备水平拖动（使用 clip 而非 hidden，避免破坏 position: sticky） */
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--laifen-font-primary);
    font-weight: var(--laifen-font-bold);
    line-height: var(--laifen-line-height-tight);
    color: var(--laifen-text-primary);
}

/* 按钮和 CTA */
.button,
.btn,
button,
input[type="submit"] {
    font-family: var(--laifen-font-primary);
    font-weight: var(--laifen-font-medium);
}

/* 导航菜单 */
.site-header,
.main-navigation,
.menu {
    font-family: var(--laifen-font-primary);
    font-weight: var(--laifen-font-medium);
}

/* 产品相关 */
.woocommerce .product,
.woocommerce .product-card {
    font-family: var(--laifen-font-primary);
}

/* 表单元素 */
input,
textarea,
select {
    font-family: var(--laifen-font-primary);
    font-size: var(--laifen-font-base);
}
