/*
 * Shiro Shop - Font Assets
 * Contains all font imports and font-related styling
 */

/* Google Fonts - Kanit (Regular 400 and Medium 500) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500&display=swap');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Box Icons */
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

/* Font Family Variables */
:root {
    --font-primary: 'Kanit', system-ui;
    --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Base Font Styling */
body {
    font-family: var(--font-primary), var(--font-fallback);
    font-display: swap;
}

/* Font Weight Classes */
.font-light { font-weight: 400; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 500; }
.font-bold { font-weight: 500; }

/* Font Size Classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Thai Text Optimization */
.thai-text {
    line-height: 1.6;
    word-break: break-word;
}

/* Custom Font Classes for Shiro Shop */
.font_textx_font {
    font-family: var(--font-primary), var(--font-fallback);
    font-weight: 500;
}

.font_textx_custom1 {
    font-family: var(--font-primary), var(--font-fallback);
    font-size: 14px;
    font-weight: 400;
}

.font_textx_custom2 {
    font-family: var(--font-primary), var(--font-fallback);
    font-size: 16px;
    font-weight: 400;
}

.font_textx_main {
    font-family: var(--font-primary), var(--font-fallback);
    font-weight: 500;
}

/* Responsive Font Sizes */
@media (max-width: 1024px) {
    .font_textx_custom1 {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .font_textx_custom1 {
        font-size: 12px;
    }

    .font_textx_custom2 {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .font_textx_custom1 {
        font-size: 11px;
    }

    .font_textx_custom2 {
        font-size: 13px;
    }
}

/* Font Loading Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        font-display: block;
    }
}

/* Font Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
