/* ============================================================
   1. ROOT VARIABLES (Technical Tokens)
   ============================================================ */
:root {
    /* Font Sizes Dinamis */
    --st-h1-size: clamp(2.5rem, 6vw + 1rem, 4.5rem); 
    --st-h2-size: clamp(2rem, 4vw + 1rem, 3rem);
    --st-h3-size: clamp(1.5rem, 3vw + 1rem, 2.2rem);
    --st-p-size: clamp(1rem, 0.5vw + 0.8rem, 1.125rem);
    
    --st-p-line-height: 1.6;

    /* Social Colors */
    --whatsapp-bg : #25d366;
    --whatsapp-text : #FFFFFF;
    --whatsapp-bg-hover : #128c7e;

    /*Layout*/
    --st-container: 1240px;
    --st-trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Product Card Typography */
    --p-card-title-size: clamp(0.875rem, 1.5vw, 1rem);
    --p-card-title-line-height: 1.4;
    --p-card-title-weight: 600;
    --p-price-actual-size: 0.9rem;
    --p-price-old-size: 0.75rem;
    
    /* Gap yang lebih rapat */
    --p-content-gap: 4px;
    
    /* --- MD3 ELEVATION (Statis untuk semua skin) --- */
    --md-elevation-1: 0px 1px 3px 1px rgba(0,0,0,0.1), 0px 1px 2px 0px rgba(0,0,0,0.06);
    --md-elevation-2: 0px 2px 6px 2px rgba(0,0,0,0.08), 0px 1px 2px 0px rgba(0,0,0,0.04);
    --md-elevation-3: 0px 4px 8px 3px rgba(0,0,0,0.1), 0px 1px 3px 0px rgba(0,0,0,0.08);
}

/* ============================================================
   2. MODERN RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: var(--st-p-line-height);
    font-size: var(--st-p-size);
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: var(--st-h1-size); }
h2 { font-size: var(--st-h2-size); }
h3 { font-size: var(--st-h3-size); }

p { margin-bottom: 1.5rem; }

a {
    color: var(--primary-color);
    transition: var(--st-trans);
}

a:focus {
    outline: 2px dashed var(--accent-color);
    outline-offset: 4px;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Image */
.img-fluid {
    max-width: 100%;
    height: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Menghilangkan gap bawah default */
}
.custom-logo-link img {
    display: block;
    width: auto;
}
/* ============================================================
   3. LAYOUT & COMPONENTS
   ============================================================ */
.st-container {
    max-width: var(--st-container);
    margin: 0 auto;
    padding: 0 min(2rem, 2%); /* Padding dinamis: mengecil di mobile, stabil di desktop */
}

/* Mobile: 20px (1.25rem)
       Desktop Max: 30px
    */
    padding-block: clamp(1.25rem, 3vw, 30px);

/* ============================================================
   4. UTILITY CLASSES (Tambahkan di global.css)
   ============================================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; } /* Ini yang Anda panggil di HTML */
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ============================================================
   5. Mobile Like UI
   ============================================================ */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}