/* css/style.css - PERFECT MOBILE GRID EDITION */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Playfair+Display:ital@0;1&display=swap');

:root {
    --brand-gold: #D4AF37;
    --bg-white: #ffffff;
    --text-black: #111111;
    --text-grey: #555555;
    --border-light: #e5e5e5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    font-size: 14px;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; display: block; }
ul { list-style: none; }

/* --- UTILITY BAR --- */
.utility-bar {
    background: #f6f5f3;
    padding: 8px 4%;
    display: flex; justify-content: space-between;
    font-size: 0.7rem; color: var(--text-grey);
    text-transform: uppercase; letter-spacing: 1px;
}
.utility-bar a { margin-left: 20px; }

/* --- NAVBAR (DESKTOP DEFAULT) --- */
.navbar {
    padding: 1.5rem 4%;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
    background: var(--bg-white);
    z-index: 999;
}
.logo { 
    font-size: 1.8rem; font-weight: 500; letter-spacing: 4px;
    margin-bottom: 1.5rem; color: var(--text-black); text-transform: uppercase;
    cursor: pointer;
}
.nav-links { 
    display: flex; gap: 3rem; 
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    width: 100%; justify-content: center; padding: 1rem 0;
    background: var(--bg-white);
}
.nav-links a { font-size: 0.8rem; color: var(--text-black); text-transform: uppercase; }
.nav-links a:hover { color: var(--brand-gold); text-decoration: underline; }

/* Desktop Icons */
.nav-icons { position: absolute; top: 1.5rem; right: 4%; display: flex; gap: 20px; font-size: 1.1rem; }
.mobile-menu-icon { display: none; } /* Hidden on Desktop */

/* --- HERO --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3)), url('../images/hero-man.jpg');
    background-size: cover; 
    background-position: top center;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 4rem; color: white; text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 500; letter-spacing: 1px; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.btn { padding: 12px 30px; text-transform: uppercase; letter-spacing: 2px; border: none; cursor: pointer; margin: 0 10px; transition: 0.3s; }
.btn-white { background: white; color: black; }
.btn-white:hover { background: var(--brand-gold); color: white; }
.btn-outline { background: transparent; border: 1px solid white; color: white; }
.btn-outline:hover { background: white; color: black; }

/* --- SECTIONS --- */
section { padding: 4rem 4%; }
.section-title { text-align: center; font-size: 1.4rem; font-weight: 400; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 3rem; }

/* --- GRID SYSTEM --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* --- PRODUCT CARD --- */
.product-card { cursor: pointer; text-align: center; }
.img-wrapper { height: 350px; background: #f6f5f3; overflow: hidden; margin-bottom: 15px; position: relative; }
.img-wrapper img { height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover img { transform: scale(1.03); }
.tag-new { position: absolute; top: 10px; left: 10px; background: #fff; color: #000; padding: 4px 8px; font-size: 0.6rem; z-index: 10; font-weight: bold; }
.p-info h3 { font-size: 0.9rem; font-weight: 400; letter-spacing: 1px; margin-bottom: 5px; }
.p-info p { font-size: 0.9rem; font-weight: 600; }

/* --- MAGAZINE SLIDER --- */
.blog-carousel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding: 10px 0 20px 0; -webkit-overflow-scrolling: touch;
}
.blog-carousel::-webkit-scrollbar { display: none; }
.blog-slide {
    flex: 0 0 320px; min-width: 320px; scroll-snap-align: start; cursor: pointer; background: #f9f9f9; border: 1px solid #eee;
}
.blog-slide .img-wrapper { height: 220px; margin-bottom: 0; }
.blog-slide .blog-info { padding: 20px; }
.slider-nav { display: flex; gap: 10px; }
.nav-btn { cursor: pointer; border: 1px solid #ccc; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }

/* --- VIDEO --- */
video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- FOOTER --- */
.footer { background: var(--bg-white); border-top: 1px solid var(--border-light); padding: 4rem 4%; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h3 { font-size: 0.8rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer a { font-size: 0.8rem; color: var(--text-grey); display: block; margin-bottom: 10px; }
.float-wa { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; z-index: 1000; }

/* --- MOBILE RESPONSIVE (THE FIX) --- */
@media (max-width: 768px) {
    /* 1. MAGIC GRID: Divides header into 3 safe zones */
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Left(Menu) - Center(Logo) - Right(Search) */
        align-items: center;
        padding: 0 4%;
        height: 70px;
    }

    /* 2. Menu Button (Left Zone) */
    .mobile-menu-icon {
        display: flex;
        align-items: center;
        position: static;
        font-size: 1rem;
        cursor: pointer;
    }

    /* 3. Logo (Center Zone) - Smaller font to prevent overlap */
    .logo {
        margin: 0;
        font-size: 1.2rem; 
        white-space: nowrap;
        text-align: center;
    }

    /* 4. Icons (Right Zone) - Pushed to the end */
    .nav-icons {
        position: static;
        justify-self: end;
        gap: 15px;
    }

    /* 5. The Dropdown Menu (Full Width, Clean List) */
    .nav-links {
        position: absolute;
        top: 70px; /* Appear exactly below the white header */
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid #ddd;
        display: none; /* Hidden until clicked */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-top: 1px solid #f8f8f8;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 0.9rem;
        font-weight: 500;
        color: #333;
    }

    .hero { height: 70vh; }
    .footer { grid-template-columns: 1fr; text-align: center; }
}
/* --- SEARCH OVERLAY --- */
.search-overlay {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    justify-content: center; align-items: center;
}
.search-box {
    position: relative; width: 80%; max-width: 600px; display: flex; border-bottom: 2px solid #000;
}
.search-box input {
    width: 100%; border: none; background: transparent; font-size: 1.5rem; padding: 10px; outline: none;
}
.search-box button {
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
}
.close-search {
    position: absolute; top: -50px; right: 0; font-size: 2rem; cursor: pointer;
}

/* --- BLOG ARTICLE PAGE --- */
.blog-detail-container { max-width: 800px; margin: 0 auto; padding: 4rem 4%; }
.blog-header h1 { font-size: 2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.blog-date { color: #777; margin-bottom: 2rem; display: block; }
.article-body { line-height: 1.8; font-size: 1.1rem; color: #333; margin-top: 2rem; }
.article-body p { margin-bottom: 1.5rem; }