/* style.css */

/* Self-hosted fonts: add WOFF2 files to public/fonts/ as PlayfairDisplay-700.woff2 and Inter-Variable.woff2
   If you cannot download from Google (network/DNS blocks), follow the README instructions provided by the project. */
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/PlayfairDisplay-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Fonts & Base Settings */
:root {
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

html {
    /* 1. INCREASE FONT SIZE SLIGHTLY */
    font-size: 15px; 
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1f2937;
    
    /* 2. GRAYISH GLASSMORPHIC BACKGROUND */
    background-color: #e2e6ec;
    background-image: 
        radial-gradient(at 0% 0%, rgba(209, 213, 219, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(251, 191, 36, 0.05) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(209, 213, 219, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* 3. GLASSMORPHISM UTILITIES */

/* Standard Glass Panel (White/Gray tint) */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar specific - Amber/Yellow Glass */
.glass-nav {
    background: rgba(204, 197, 179, 0.15) !important; /* Amber-400 with opacity */
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Input Fields - Glassy look */
input, select, textarea {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(209, 213, 219, 0.8) !important;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #f59e0b !important; /* Amber-500 */
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* --- EXISTING ANIMATIONS --- */
/* SPLASH SCREEN */
.splash-fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}

/* SLIDER ANIMATIONS */
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center; z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { 
    transform: scale(0.95); 
    opacity: 0; 
    transition: all 0.8s ease-out 0.3s;
}
.slide.active .slide-content { transform: scale(1); opacity: 1; }

.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot.active {
    background-color: #f59e0b; transform: scale(1.3);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* HORIZONTAL SCROLL */
#totebags-grid {
    scrollbar-width: thin; scrollbar-color: #f59e0b transparent; 
    padding-bottom: 1rem; -webkit-overflow-scrolling: touch;
}
#totebags-grid::-webkit-scrollbar { height: 6px; }
#totebags-grid::-webkit-scrollbar-track { background: transparent; margin: 0 20px; }
#totebags-grid::-webkit-scrollbar-thumb { background-color: #f59e0b; border-radius: 20px; }
#totebags-grid .product-card { min-width: 260px; width: 260px; flex-shrink: 0; scroll-snap-align: start; }
@media (min-width: 768px) { #totebags-grid .product-card { min-width: 300px; width: 300px; } }

/* ANIMATIONS */
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }