/* Custom Fonts for ShopHub */

/* Font Variables */
:root {
    /* Primary Fonts */
    --font-primary: 'Gilroy', sans-serif;
    --font-secondary: 'Slimmary Light', serif;
    --font-headings: 'Canopee', sans-serif;
    --font-accent: 'Gilroy', sans-serif;
    --font-body: 'Gilroy', sans-serif;

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-weight: var(--font-regular);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Navigation */
nav, .nav-link {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    letter-spacing: 0.02em;
}

/* Buttons */
button, .btn, a.btn, input[type="submit"] {
    font-family: var(--font-accent);
    font-weight: var(--font-semibold);
    letter-spacing: 0.03em;
    text-transform: none;
}

/* Product Cards */
.product-card h3 {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
}

.product-card .price {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
}

/* Hero Section */
.hero-title {
    font-family: var(--font-headings);
    font-weight: var(--font-extrabold);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    letter-spacing: 0.01em;
}

/* Section Titles */
.section-title {
    font-family: var(--font-headings);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-weight: var(--font-regular);
    letter-spacing: 0.02em;
}

/* Form Elements */
input, textarea, select {
    font-family: var(--font-body);
    font-weight: var(--font-regular);
}

label {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    letter-spacing: 0.01em;
}

/* Footer */
footer h3 {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    letter-spacing: 0.01em;
}

footer p, footer a {
    font-family: var(--font-body);
}

/* Loader */
.loader-logo {
    font-family: var(--font-headings);
    font-weight: var(--font-bold);
    letter-spacing: 0.05em;
}

.loading-text {
    font-family: var(--font-secondary);
    font-weight: var(--font-medium);
    letter-spacing: 0.1em;
}

.countdown {
    font-family: var(--font-accent);
    font-weight: var(--font-extrabold);
}

/* Special Text Elements */
.gradient-text {
    font-family: var(--font-headings);
    font-weight: var(--font-bold);
}

.price-tag {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
}

.badge, .tag {
    font-family: var(--font-accent);
    font-weight: var(--font-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Cart and Checkout */
.cart-item-name {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
}

.cart-total {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

/* Font Feature Settings for Better Typography */
.font-feature-settings {
    font-feature-settings: "liga" 1, "calt" 1, "kern" 1;
}

/* Utility Classes for Font Variations */
.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }
.font-headings { font-family: var(--font-headings); }
.font-accent { font-family: var(--font-accent); }
.font-body { font-family: var(--font-body); }

.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.02em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
