/* --- 1. GLOBAL VARIABLES (Shared Colors & Fonts) --- */
:root {
    --bg-dark: #0a0a0a;
    --gold: #D4AF37; 
    --text-white: #ffffff;
    --input-bg: #f3f3f3;
    --success: #2ecc71;
    --danger: #e74c3c;
    
    /* FONTS */
    --font-headline: 'Lato', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-top: 60px; /* Space for Fixed Header */
    padding-bottom: 70px; /* Space for Bottom Nav */
    overflow-x: hidden;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-headline); margin: 0 0 10px 0; font-weight: 900; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- 3. SHARED UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
.gold-text { color: var(--gold); }
.full-width { width: 100%; display: block; }
.see-all { color: var(--gold); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* --- 4. HEADER (Appears on every page) --- */
.app-header {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background: rgba(10, 10, 10, 0.98); display: flex; justify-content: center; align-items: center;
    z-index: 100; border-bottom: 1px solid #222; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.brand-container { display: flex; align-items: center; gap: 10px; }
.header-logo { height: 32px; width: auto; }
.brand-name {
    font-family: var(--font-headline); font-weight: 900; font-size: 1.4rem; color: #ffffff;
    letter-spacing: 2px; text-transform: uppercase;
}

/* --- 5. BOTTOM NAVIGATION (Appears on every page) --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
    background: #111; display: flex; justify-content: space-around; align-items: center;
    border-top: 1px solid #333; z-index: 100;
}
.nav-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; color: #666; font-size: 0.7rem; }
.nav-icon { width: 24px; height: 24px; margin-bottom: 4px; }
.nav-item.active { color: var(--gold); }

/* --- 6. SHARED BUTTONS --- */
.btn { 
    display: inline-block; text-align: center; font-family: var(--font-headline); 
    cursor: pointer; transition: 0.2s; border-radius: 8px;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--gold); color: #000; border: none; font-weight: 700; padding: 12px 24px; }
.btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; padding: 12px 24px; }

/* --- 7. GLOBAL MODAL (Used by Index, Service, and Store JS) --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000;
    flex-direction: column; justify-content: flex-end; align-items: center;
}
@media (min-width: 768px) { .modal-overlay { justify-content: center; } }

.modal-content {
    background: #fff; width: 100%; max-width: 500px;
    max-height: 85vh; overflow-y: auto;
    border-radius: 20px 20px 0 0; padding: 25px; padding-bottom: 40px;
    position: relative; animation: slideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    color: #000; box-sizing: border-box;
}
@media (min-width: 768px) { .modal-content { border-radius: 12px; } }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #333;
    cursor: pointer; z-index: 10; background: #fff; border-radius: 50%;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Modal Internal Elements (Shared) */
#modal-title { margin-top: 0; margin-bottom: 5px; font-size: 1.5rem; line-height: 1.2; font-weight: 800; }
#modal-price { color: var(--gold); font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
#modal-desc { color: #555; line-height: 1.6; margin-bottom: 25px; font-size: 0.95rem; }

/* Gallery inside Modal */
.modal-gallery {
    display: flex; overflow-x: auto; gap: 10px; padding-bottom: 15px;
    scroll-snap-type: x mandatory;
}
.modal-gallery img {
    height: 250px; width: auto; min-width: 85%; object-fit: cover;
    border-radius: 12px; scroll-snap-align: center; background: #f0f0f0;
}
.modal-gallery::-webkit-scrollbar { display: none; }

/* --- 8. PROMO BANNER --- */
.promo-banner {
    display: none; background: var(--gold); color: #000; width: 100%;
    padding: 12px 40px 12px 20px; font-size: 0.9rem; font-weight: 700;
    text-align: center; position: relative; z-index: 90;
    animation: slideDown 0.4s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-promo {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; font-size: 1.5rem; color: #000; cursor: pointer; padding: 0 5px;
}