:root {
    --primary: #0f172a;
    --accent: #0284c7;
    --glass: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

.font-inter { font-family: 'Inter', sans-serif; }

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Desktop Header */
.desktop-nav {
    height: 80px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.desktop-nav.scrolled {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* MOBILE FOOTER MENU (Facebook Style) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    height: 70px;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .hide-mobile { display: none; }
    section { padding-bottom: 100px; } 
}

.nav-item-active {
    color: var(--accent);
}
.nav-item-active i {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Image Shine Animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.product-grid-card:hover img {
    transform: scale(1.05);
}

/* Autoscroll */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}

/* MOBILE BOTTOM NAV - REFINED */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0,0,0,0.05);
    height: 75px;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .hide-mobile { display: none; }
}

.mobile-bottom-nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8; /* Slate 400 */
    flex: 1;
    height: 100%;
    justify-content: center;
}

.mobile-bottom-nav a.nav-item-active {
    color: #0284c7; /* Sky 600 */
}

/* Add a pill indicator for active state */
.nav-item-active::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 4px;
    height: 4px;
    background: #0284c7;
    border-radius: 50%;
}

/* Standalone 3D Booklet Turning Physics Animation Elements */
        .booklet-perspective {
            perspective: 1800px;
        }
        .booklet-container {
            display: flex;
            transform-style: preserve-3d;
            transition: transform 0.5s ease;
        }
        .booklet-canvas-wrap {
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            transform-origin: left center;
            box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.15);
        }
        /* Page flip CSS animations simulation triggers */
        .flip-action-next {
            transform: rotateY(-25deg) scale(0.98);
        }
        .flip-action-prev {
            transform: rotateY(25deg) scale(0.98);
        }
        /* Book spine shadow overlays to sell realism */
        .book-spine-gradient {
            background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.02) 4%, transparent 12%);
        }
        /* Hide native spinner on number inputs */
        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type=number] {
            -moz-appearance: textfield;
        }
		
.hero-slider-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        z-index: 1;
        pointer-events: none;
    }

    /* Active State Drivers */
    .hero-slide.active {
        opacity: 1;
        z-index: 2;
        pointer-events: auto;
    }

    /* Clean Static Background (All rotation removed) */
    .hero-slide-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
    }

    /* Straight Vertical Split Shutter Panels for the Blink Effect */
    .shutter-panel-top,
    .shutter-panel-bottom {
        position: absolute;
        left: 0;
        width: 100%;
        height: 50%;
        background-color: #0f172a; /* Solid brand dark blue/slate color */
        z-index: 10;
        pointer-events: none;
        transform: translate3d(0, 0, 0);
    }

    .shutter-panel-top {
        bottom: 50%;
    }

    .shutter-panel-bottom {
        top: 50%;
    }

    /* Shutter animation sequence triggered instantly during image swapping phases */
    .hero-slider-wrap.animating .shutter-panel-top {
        animation: blinkShutterTop 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .hero-slider-wrap.animating .shutter-panel-bottom {
        animation: blinkShutterBottom 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Straight vertical close and open actions (No rotation) */
    @keyframes blinkShutterTop {
        0% { transform: translate3d(0, -100%, 0); }
        40%, 60% { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(0, -100%, 0); }
    }

    @keyframes blinkShutterBottom {
        0% { transform: translate3d(0, 100%, 0); }
        40%, 60% { transform: translate3d(0, 0, 0); }
        100% { transform: translate3d(0, 100%, 0); }
    }