/* Global Font Override - Instrument Sans */
/* This file ensures Instrument Sans is applied to all elements across the entire project */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Global font application */
* {
    font-family: 'Instrument Sans', sans-serif !important;
}

*::before,
*::after {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Specific element targeting */
html,
body,
div,
span,
applet,
object,
iframe,
h1, h2, h3, h4, h5, h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
textarea,
select,
button {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Form elements specific targeting */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select,
button {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Placeholder text */
::placeholder {
    font-family: 'Instrument Sans', sans-serif !important;
}

::-webkit-input-placeholder {
    font-family: 'Instrument Sans', sans-serif !important;
}

::-moz-placeholder {
    font-family: 'Instrument Sans', sans-serif !important;
}

:-ms-input-placeholder {
    font-family: 'Instrument Sans', sans-serif !important;
}

:-moz-placeholder {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Override any existing font declarations */
.navbar,
.navbar *,
.hero,
.hero *,
.category-section,
.category-section *,
.shop,
.shop *,
.about,
.about *,
.footer,
.footer *,
.cart-container,
.cart-container *,
.product-header,
.product-header *,
.form-container,
.form-container *,
.login-container,
.login-container * {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Admin panel elements */
.admin-panel,
.admin-panel *,
.management-header,
.management-header *,
.table,
.table * {
    font-family: 'Instrument Sans', sans-serif !important;
}

/* Ensure Font Awesome icons are not affected */
.fa,
.fas,
.far,
.fal,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands" !important;
}

/* Icon fonts should not be overridden */
.icon,
.icon-font,
[class^="icon-"],
[class*=" icon-"] {
    font-family: inherit !important;
}

/* Ensure consistent font weights */
body {
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

strong, b {
    font-weight: 700;
}

/* Ensure proper font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}