/* ===== ELARA TYPOGRAPHY SYSTEM ===== */
/* Centralized font definitions to eliminate repetition */

/* ===== FONT FAMILY DEFINITIONS ===== */
:root {
    /* Primary Font Stack */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-elegant: 'EB Garamond', 'Source Serif Pro', serif;
    --font-heading: 'DM Serif Display', 'Cinzel', serif;
    --font-brand: 'DM Serif Display', 'Cinzel', serif;
    --font-ui: 'Source Serif Pro', serif;
    --font-body: 'EB Garamond', serif;
    --font-accent: 'Libre Caslon Text', serif;
    --font-mono: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* ===== GLOBAL FONT SETTINGS ===== */
* {
    font-family: var(--font-primary);
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ===== FORMS ===== */
.form-control,
input,
textarea,
select {
    font-family: var(--font-primary);
    font-weight: 400;
}

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

/* ===== PARAGRAPHS & TEXT ===== */
p, span, div {
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== LINKS ===== */
a {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 1rem;
    font-style: normal;
}

/* ===== BANNER TITLES ===== */
.banner-title-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    display: block;
    white-space: nowrap;
}

/* ===== SLIDER CONTENT ===== */
.slider-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #000000;
    text-shadow: none;
    letter-spacing: -0.03em;
}

.slider-subtitle {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666666;
    text-shadow: none;
    letter-spacing: 0.02em;
}

.slider-button {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* ===== BANNER 2 STYLES ===== */
.banner-2-pre-title {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    color: #8e9aaf;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.banner-2-main-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.banner-2-description {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.8rem;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    font-weight: 400;
}

.banner-2-cta-btn {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== BANNER 3 STYLES ===== */
.banner-3-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.banner-3-title {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-3-cta {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== PRODUCT CARDS ===== */
.aiz-card-box .fw-700.text-primary {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.aiz-card-box .fs-13 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.aiz-card-box .fw-600 {
    font-family: var(--font-primary);
    color: #1a202c;
    font-weight: 600;
}

.aiz-card-box .text-muted {
    font-family: var(--font-primary);
    color: #718096;
}

/* ===== TABLES ===== */
th {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

td {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* ===== BADGES ===== */
.badge {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== ALERTS ===== */
.alert {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* ===== DROPDOWN ===== */
.dropdown-item {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* ===== MODAL ===== */
.modal-title {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* ===== MODERN NAVIGATION MENU ===== */
.modern-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    list-style: none;
}

.modern-nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    color: #6b7280;
    text-decoration: none;
    padding: 16px 24px;
    margin: 0 12px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #374151;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav-link:hover::after {
    width: 85%;
}

.modern-nav-link:hover {
    color: #111827;
}

.modern-nav-link.active::after {
    width: 85%;
    background-color: #111827;
}

.modern-nav-link.active {
    color: #111827;
    font-weight: 700;
}

/* Special styling for specific menu items */
.modern-nav-link[href*="home"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.modern-nav-link[href*="promo"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(252, 165, 165, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.modern-nav-link[href*="berita"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(134, 239, 172, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.modern-nav-link[href*="cek_ongkir"] {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.2);
}

/* Hover effects for specific menu items */
.modern-nav-link[href*="home"]:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.modern-nav-link[href*="promo"]:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(252, 165, 165, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.modern-nav-link[href*="berita"]:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(134, 239, 172, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.modern-nav-link[href*="cek_ongkir"]:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(196, 181, 253, 0.15) 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

/* ===== UTILITY CLASSES ===== */
.text-elegant {
    font-family: var(--font-elegant);
}

.text-heading {
    font-family: var(--font-heading);
}

.text-brand {
    font-family: var(--font-brand);
}

.text-ui {
    font-family: var(--font-ui);
}

.text-body {
    font-family: var(--font-body);
}

.text-accent {
    font-family: var(--font-accent);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .slider-title {
        font-size: 2.5rem;
    }

    .slider-subtitle {
        font-size: 1.1rem;
    }

    .banner-2-main-title {
        font-size: 2rem;
    }

    .banner-3-title {
        font-size: 1.4rem;
    }

    .banner-3-subtitle {
        font-size: 0.8rem;
    }

    .banner-3-cta {
        font-size: 0.8rem;
    }

    /* Mobile Navigation */
    .modern-nav-menu {
        gap: 0.3rem;
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }

    .modern-nav-link {
        font-size: 0.85rem;
        padding: 12px 16px;
        margin: 0 6px;
    }

    .modern-nav-link:hover {
        transform: none;
    }
}

/* ===== NAVIGATION ANIMATIONS ===== */
@keyframes navPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes navGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}

.modern-nav-link:hover {
    animation: navPulse 0.3s ease-in-out;
}


/* ===== ELEGANT THEME OVERRIDES ===== */
/* When elegant theme is active */
body.elegant-theme {
    font-family: var(--font-elegant);
    font-weight: 400;
    line-height: 1.7;
}

body.elegant-theme h1,
body.elegant-theme h2,
body.elegant-theme h3,
body.elegant-theme h4,
body.elegant-theme h5,
body.elegant-theme h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1.2px;
}

body.elegant-theme .navbar-brand {
    font-family: var(--font-brand);
    font-weight: 400;
    letter-spacing: 2px;
}

body.elegant-theme .btn {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.5px;
}

body.elegant-theme .form-control,
body.elegant-theme input,
body.elegant-theme textarea,
body.elegant-theme select {
    font-family: var(--font-ui);
    font-weight: 400;
}

body.elegant-theme label {
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

body.elegant-theme p,
body.elegant-theme span,
body.elegant-theme div {
    font-family: var(--font-body);
    font-weight: 400;
}

body.elegant-theme th {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.elegant-theme td {
    font-family: var(--font-body);
    font-weight: 400;
}

body.elegant-theme .badge {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.5px;
}

body.elegant-theme .alert {
    font-family: var(--font-ui);
    font-weight: 400;
}

body.elegant-theme .dropdown-item {
    font-family: var(--font-body);
    font-weight: 400;
}

body.elegant-theme .modal-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.8px;
}

/* ===== BRANDS SIMPLE STYLING ===== */
.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.brand-item-simple {
    flex-shrink: 0;
    text-align: center;
}

.brand-link-simple {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.brand-link-simple:hover {
    text-decoration: none;
    color: inherit;
}

.brand-logo-simple {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.brand-link-simple:hover .brand-logo-simple {
    filter: grayscale(0%);
    opacity: 1;
}



/* Brands Simple Responsive */
@media (max-width: 768px) {
    .brands-row {
        gap: 2rem;
        padding: 1rem 0;
    }

    .brand-logo-simple {
        max-width: 100px;
        max-height: 50px;
    }
}


@media (min-width: 576px) {
    .mb-sm-2, .my-sm-2 {
      margin-bottom: .0rem !important;
    }
}
