/* === 1. VARIABLES & RESET === */
:root {
    /* Dynamic Theme Variables (Overridden by JS from themes CSV) */
    --bg-dark: #050a06; 
    --bg-gradient: #1a3c24;
    --gold: #D4AF37;
    --gold-light: #F2D574;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

/* DISABLE DOUBLE-TAP ZOOM ON INTERACTIVE ELEMENTS */
a, button, input, textarea, select, 
.product-card, .category-card, .brand-card,
.gallery-nav, .gallery-thumb, .pagination-btn,
.grid-btn, .whatsapp-cta {
    touch-action: manipulation; 
}

body {
    background: var(--bg-dark);
    /* Radial gradient background (same as landing page) */
    background-image: radial-gradient(circle at 50% 0%, var(--bg-gradient) 0%, var(--bg-dark) 70%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

#app {
    width: 100%;
    max-width: 500px; /* Link-in-Bio Standard Width for mobile */
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px; /* Space for footer */
}

.hidden { display: none !important; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }

/* Container for sections */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 5px;
}

/* === 2. LOADING STATE === */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-size: 1.2rem;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Skeleton Loader */
.skeleton-loader {
    flex: 0 0 160px; 
    height: 250px; 
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 
    0% { opacity: 0.5; } 
    50% { opacity: 1; } 
    100% { opacity: 0.5; } 
}

/* === 3. GLASS CARD SYSTEM === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.card-title::after {
    content: ''; 
    flex: 1; 
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.5), transparent);
}

.text-content { 
    font-size: 15px; 
    line-height: 1.6; 
    color: #e0e0e0; 
    font-weight: 300; 
}

/* === 4. SECTION HEADERS === */
.section-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin: 30px 5px 15px;
}

.section-header h3 { 
    font-family: var(--font-head); 
    font-size: 20px; 
    font-weight: 600; 
}

.scroll-hint { 
    font-size: 12px; 
    color: var(--gold); 
}

/* === 5. TYPOGRAPHY === */
h1, h2, h3 {
    font-family: var(--font-head);
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    color: var(--text-main);
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* === 6. BUTTONS === */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: scale(1.02);
}

.btn-gold:active {
    transform: scale(0.98);
}

/* === 7. SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}
