:root {
    --primary-color: #373C14; 
    --accent-color: #b79f87; 
    --bg-color: #fcfcfc;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body { background-color: var(--bg-color); color: var(--text-color); }

/* --- Header --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100; /* Fixed typo: was z-width */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo h1 { font-size: 24px; font-weight: 600; letter-spacing: 2px; }
.logo span { font-size: 10px; color: var(--accent-color); letter-spacing: 1px; }

.desktop-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

/* --- Hero Section (Video) --- */
.hero-section {
    position: relative;
    height: 70vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%; height: 100%; object-fit: cover; 
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 1; 
    color: #fff; 
}

.hero-content h2 { font-size: 40px; margin-bottom: 10px; }

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #fff;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* --- Photo Banner Section --- */
.photo-banner {
    padding: 60px 5% 20px 5%;
    background-color: var(--bg-color);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner-item { overflow: hidden; }

.banner-item img {
    width: 100%; height: 100%; object-fit: cover;
    aspect-ratio: 4/5; 
    transition: transform 0.6s ease;
}

.banner-item:hover img { transform: scale(1.03); }

/* --- New Arrivals Grid --- */
.new-arrivals-section {
    padding: 60px 5%;
    background-color: #f8f9fa; 
}

.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

/* --- Flip Card Mechanics --- */
.flip-card {
    background-color: transparent;
    width: 100%; max-width: 320px; height: 480px;
    perspective: 1000px; cursor: pointer;
}
.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}
@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
}
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 1rem; overflow: hidden;
}

/* Front Face */
.flip-card-front { background-color: #fff; }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.front-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white; text-align: left;
}
.front-overlay h4 { font-size: 1.25rem; margin-bottom: 5px; }
.front-overlay p { font-size: 0.85rem; opacity: 0.8; }

/* Back Face (Ticket) */
.flip-card-back {
    background-color: #111827; transform: rotateY(180deg);
    display: flex; flex-direction: column; color: #e5e7eb;
}
.t-main { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; position: relative;}
.t-header { display: flex; justify-content: space-between; border-bottom: 1px solid #374151; padding-bottom: 10px; margin-bottom: 15px; }
.t-logo { color: #10b981; font-weight: bold; font-size: 0.85rem; }
.t-type { background: #374151; padding: 3px 8px; border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; }
.t-title { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 5px; }
.t-subtitle { color: #9ca3af; font-size: 0.85rem; margin-bottom: 20px; }
.t-details { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: auto; }
.t-label { font-size: 0.7rem; color: #6b7280; text-transform: uppercase; display: block; margin-bottom: 3px;}
.t-value { font-size: 0.9rem; font-weight: 600; color: white;}
.t-perforation { position: absolute; bottom: 0; left: 0; width: 100%; height: 10px; transform: translateY(50%); }
.t-perf-line { width: 100%; height: 2px; background-image: linear-gradient(to right, transparent 50%, #111827 50%); background-size: 10px 2px; }
.t-stub { background: #1f2937; padding: 1.5rem; display: flex; justify-content: center; align-items: center; border-top: 2px dashed #374151; }
.btn-whatsapp-ticket { background-color: #25D366; color: white; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: bold; width: 100%; text-align: center; transition: background 0.3s; }
.btn-whatsapp-ticket:hover { background-color: #1ebe57; }

/* --- Shop Section --- */
.shop-section { padding: 60px 5%; }
.section-title { text-align: center; margin-bottom: 40px; }
.filters { text-align: center; margin-bottom: 30px; }
.filter-btn {
    border: none; background: none; font-size: 16px; margin: 0 10px;
    cursor: pointer; color: #888; padding-bottom: 5px;
}
.filter-btn.active { color: var(--text-color); border-bottom: 2px solid var(--accent-color); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff; padding: 15px; text-align: center; transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); }
.product-image { width: 100%; height: 400px; object-fit: cover; margin-bottom: 15px; }
.product-category { font-size: 12px; color: #888; text-transform: uppercase; }
.product-name { font-size: 18px; margin: 10px 0; }
.product-price { font-weight: 600; color: var(--accent-color); margin-bottom: 15px; }

.btn-whatsapp {
    display: block; width: 100%; padding: 10px; background-color: #25D366; 
    color: #fff; text-decoration: none; font-weight: 600; border-radius: 4px;
}

/* --- Location Section --- */
.location-section {
    padding: 60px 5%; background-color: #fff; border-top: 1px solid #eee;
}

.location-container {
    display: flex; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto;
}

.shop-image { flex: 1; }
.shop-image img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.shop-details { flex: 1; text-align: left; }
.shop-details h3 { font-size: 28px; margin-bottom: 15px; color: var(--primary-color); }
.shop-details p { font-size: 16px; margin-bottom: 10px; color: #555; }

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .banner-grid { grid-template-columns: 1fr; gap: 15px; }
    .banner-item img { aspect-ratio: 16/9; }
    
    .flip-card-grid { grid-template-columns: 1fr; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-image { height: 250px; }
    .product-name { font-size: 14px; }
    .btn-whatsapp { font-size: 12px; }

    .location-container { flex-direction: column; text-align: center; }
    .shop-details { text-align: center; }
    .shop-image img { height: 250px; } /* Fixed from 2500px */
}

/* --- Mobile Bottom App Navigation --- */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    /* Hide top desktop nav on mobile */
    .desktop-nav {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom); /* Prevents overlapping with phone swipe gestures */
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #888;
        font-size: 10px;
        font-weight: 500;
    }

    .nav-item svg {
        margin-bottom: 4px;
        color: var(--primary-color);
    }

    .nav-item:hover, .nav-item:active {
        color: var(--primary-color);
    }
    
    /* Adds padding to the footer so content isn't hidden behind the fixed bar */
    .site-footer {
        padding-bottom: 70px;
    }
    /* --- Product Modal & Carousel --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000; /* Stays above the mobile nav bar */
    display: flex; justify-content: center; align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff; width: 100%; max-width: 500px;
    border-radius: 12px; overflow: hidden; position: relative;
    display: flex; flex-direction: column; max-height: 90vh;
}

.modal-close {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.9); border: none;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 20px; cursor: pointer; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-container {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; /* Hides scrollbar Firefox */
    height: 450px; background: #f8f9fa;
}

.carousel-container::-webkit-scrollbar { display: none; } /* Hides scrollbar Chrome/Safari */

.carousel-container img {
    flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover;
    scroll-snap-align: start;
}

.modal-details { padding: 25px 20px; text-align: center; }
.modal-details h3 { margin-bottom: 5px; font-size: 22px; }

.carousel-indicators {
    display: flex; justify-content: center; gap: 8px; margin: 15px 0 20px 0;
}

.indicator {
    width: 8px; height: 8px; border-radius: 50%;
    background: #e5e7eb; transition: background 0.3s;
}

.indicator.active { background: var(--primary-color); }
    
}

/* --- Logo Updates --- */
.logo { display: flex; align-items: center; gap: 15px; }
.brand-logo { max-height: 40px; width: auto; }

/* --- Workshop Scroll & Video --- */
.workshop-scroll-container {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 15px; padding-bottom: 20px; margin-bottom: 30px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.workshop-scroll-container::-webkit-scrollbar { display: none; }
.workshop-scroll-container img {
    flex: 0 0 80%; max-width: 400px; height: 300px; object-fit: cover;
    scroll-snap-align: center; border-radius: 8px;
}
.workshop-video-container, .interior-video-section {
    width: 100%; max-width: 1000px; margin: 0 auto; border-radius: 8px; overflow: hidden;
}
.inline-video { width: 100%; height: auto; display: block; }

/* --- Flip Card Updates --- */
/* Set card back to primary brand color instead of dark gray */
.flip-card-back { background-color: var(--primary-color); } 
.t-main { padding: 1.2rem; } /* Reduced padding to fit more text */
.t-desc { font-size: 0.75rem; color: #d1d5db; margin-bottom: 15px; line-height: 1.4; }
.t-perf-line { background-image: linear-gradient(to right, transparent 50%, var(--primary-color) 50%); }

/* --- Sale Badge --- */
.sale-badge {
    position: absolute; top: 10px; left: 10px; background: #e63946; color: white;
    padding: 5px 10px; font-size: 12px; font-weight: bold; border-radius: 4px; z-index: 10;
}

/* --- Quote Section --- */
.quote-section {
    padding: 80px 10%; text-align: center; background-color: #fff;
}
.quote-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 600;
    line-height: 1.8; letter-spacing: 2px; color: var(--text-color);
}

/* --- New Animated WhatsApp Button --- */
.btn-modern-wa {
    display: flex; align-items: center; justify-content: flex-start;
    width: 45px; height: 45px; border: none; border-radius: 50%; cursor: pointer;
    position: relative; overflow: hidden; transition-duration: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199); background-color: #25D366;
    margin: 0 auto; text-decoration: none;
}
.btn-modern-wa .sign {
    width: 100%; transition-duration: 0.3s; display: flex; align-items: center; justify-content: center;
}
.btn-modern-wa .sign svg { width: 22px; }
.btn-modern-wa .sign svg path { fill: white; }
.btn-modern-wa .text {
    position: absolute; right: 0%; width: 0%; opacity: 0; color: white;
    font-size: 0.9em; font-weight: 600; transition-duration: 0.3s; white-space: nowrap;
}

/* Desktop Hover */
@media (hover: hover) and (pointer: fine) {
    .btn-modern-wa:hover { width: 140px; border-radius: 40px; }
    .btn-modern-wa:hover .sign { width: 30%; padding-left: 10px; }
    .btn-modern-wa:hover .text { opacity: 1; width: 70%; padding-right: 15px; }
}

/* Mobile Fallback: Force button to stay expanded so users know what it is */
@media (max-width: 768px) {
    .btn-modern-wa { width: 100%; border-radius: 8px; justify-content: center; height: 40px; }
    .btn-modern-wa .sign { width: auto; padding-right: 8px; }
    .btn-modern-wa .text { position: relative; width: auto; opacity: 1; }
    .quote-section h2 { font-size: 1.1rem; } /* Scale down quote for phones */
}
