/* ============================================================================
   FLORIST STARTER THEME - GLOBAL BASE RULES & TECHNICAL TOKENS
   Path: /assets/css/01-root/global.css
   Version: 2.0.0 (Master Unified Specification)
   ============================================================================ */

:root {
    /* Master Fluid Typography (Calibrated for Indonesian E-Commerce) */
    --st-h1-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);  /* 24px - 36px */
    --st-h2-size: clamp(1.2rem, 1.8vw + 0.5rem, 1.65rem);  /* 19px - 26px */
    --st-h3-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.15rem); /* 15px - 18px */
    --st-p-size: 14px;
    --st-p-line-height: 1.65;
    
    /* Standard Border & Elevation Tokens */
    --border-color: var(--st-stone-200, #e7e5e4);
    --card-shadow: var(--st-shadow-card);
    --section-gap: var(--st-section-gap, clamp(1.5rem, 3vw, 2.5rem));
    --section-padding-y: var(--st-section-padding-y, clamp(1rem, 2vw, 1.75rem));
    
    /* Layout & Container Tokens (Design System 2.0.0) */
    --st-container: var(--st-container-max, 1280px);
    --st-container-max: 1280px;
    --st-gutter-mobile: 16px;
    --st-gutter-tablet: 24px;
    --st-gutter-desktop: 32px;
    --st-trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Product Card Typography */
    --p-card-title-size: clamp(0.9rem, 1.2vw, 1rem);
    --p-card-title-line-height: 1.35;
    --p-card-title-weight: 700;
    --p-price-actual-size: 1.05rem;
    --p-price-old-size: 0.75rem;
    --p-content-gap: 6px;
    
    /* Spacing Scale System */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Semantic Status Colors */
    --color-success: var(--st-emerald-600, #059669);
    --color-error:   #dc2626;
    --color-warning: #ca8a04;
    --color-info:    #2563eb;
}

/* ============================================================
   2. MODERN RESET & BOX SIZING
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--st-canvas, #FCFAF9);
    color: var(--st-charcoal-800, #1f2937);
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    line-height: var(--st-p-line-height);
    font-size: var(--st-p-size);
    transition: background-color 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   3. UNIFIED TYPOGRAPHY (ANTI-ANARKI RULES)
   ============================================================ */
/* Semua Heading WAJIB Charcoal-900 (DILARANG MERAH/PINK PENUH) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    color: var(--st-charcoal-900, #111827) !important;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: var(--st-h1-size); 
    font-weight: 800;
}

h2 { 
    font-size: var(--st-h2-size); 
    font-weight: 700;
}

h3 { 
    font-size: var(--st-h3-size); 
    font-weight: 700;
}

p { 
    margin-bottom: 1rem;
    color: var(--st-charcoal-700, #374151);
}

/* Links */
a {
    color: var(--st-brand-700, #be0038);
    text-decoration: none;
    transition: var(--st-trans);
}

a:hover {
    color: var(--st-brand-800, #9f1239);
}

a:focus-visible {
    outline: 2px solid var(--st-brand-600, #e11d48);
    outline-offset: 3px;
    border-radius: 4px;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Image Best Practices */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.custom-logo-link img {
    display: block;
    width: auto;
}

/* ============================================================
   4. MASTER LAYOUT, CONTAINER & SECTION RHYTHM
   ============================================================ */
.site-main {
    display: block;
    width: 100%;
    background-color: var(--st-canvas, #FCFAF9);
    position: relative;
}

.st-container {
    max-width: var(--st-container-max, 1280px);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--st-gutter-mobile, 16px);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .st-container {
        padding-inline: var(--st-gutter-tablet, 24px);
    }
}

@media (min-width: 1024px) {
    .st-container {
        padding-inline: var(--st-gutter-desktop, 32px);
    }
}

/* Master Section Rhythm Base */
.st-section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding-block: var(--st-section-padding-y, clamp(1rem, 2vw, 1.75rem));
}

.st-section-padding {
    padding-block: var(--st-section-padding-y, clamp(1rem, 2vw, 1.75rem));
}

/* ============================================================
   5. UNIFIED PRICE & STATUS HELPERS
   ============================================================ */
.st-price-actual,
.st-product-price {
    color: var(--st-brand-700, #be0038) !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.st-price-old {
    color: var(--st-stone-400, #9ca3af) !important;
    text-decoration: line-through;
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 4px;
}

/* Status Badge Ready */
.st-status-ready {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--st-emerald-700, #047857);
}

.st-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--st-emerald-600, #059669);
}

/* ============================================================
   6. UTILITY CLASSES
   ============================================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Responsive Visibility */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}