@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #000000;
    --accent: #CB956D; /* Gold/Brown */
    --dark-bg: #212121;
    --light-gray: #f4f4f4;
    --border-color: #e5e5e5;
    --text-color: #333;
    --text-muted: #666;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-color); line-height: 1.6; overflow-x: hidden; background-color: #fff; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Navbar (Dynamic) --- */
.navbar {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease; 
}

/* Dark Background style for non-home pages */
.navbar.navbar-dark {
    background-color: var(--dark-bg);
}

.logo-svg { height: 30px; }

/* Updated .nav-logo to handle SVG */
.nav-logo { 
    display: flex; 
    align-items: center; 
}

/* Styling for the SVG Logo - UPDATED SIZE */
.leksvin-logo {
    height: 24px; /* Reduced from 32px for Mobile */
    width: auto;
    transition: height 0.3s ease;
}

.desktop-nav-links { display: none; gap: 40px; font-weight: 500; font-size: 0.95em; color: #fff; }
.desktop-nav-links a:hover { color: var(--accent); }

/* --- Hamburger Menu --- */
.hamburger { 
    position: absolute; top: 17px; right: 20px; cursor: pointer; z-index: 2000; 
}
.hamburger .bar { display: block; width: 28px; height: 3px; margin: 6px auto; background-color: #fff; transition: var(--transition); border-radius: 2px; }

.hamburger.active .bar { background-color: var(--primary); } 
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Sliding Menu --- */
.sliding-menu {
    position: fixed; top: 0; right: -100%; width: 85%; height: 100vh;
    background: var(--white); z-index: 1500; 
    padding: 100px 30px; box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
.sliding-menu.open { right: 0; }
.sliding-menu ul li { margin-bottom: 25px; font-size: 1.3em; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.close-btn { display: none; }

/* --- Hero Section --- */
.hero-banner {
    height: 100vh; min-height: 600px;
    background: url('../img/banner-bg-mobile.webp') center/cover no-repeat; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
    position: relative; padding-top: 60px;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-content { position: relative; z-index: 1; padding: 0 20px; width: 100%; max-width: 100%; }

.hero-content h1 { 
    font-size: 2.4em; font-weight: 900; line-height: 1.2; margin-bottom: 15px; 
    text-transform: uppercase; letter-spacing: -0.5px; word-wrap: break-word;
    animation: fadeInDown 1s ease-out;
}
.hero-content p { 
    font-size: 1em; margin-bottom: 30px; max-width: 100%; line-height: 1.5; opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards; opacity: 0;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 15px; animation: fadeInUp 1s ease-out 0.6s forwards; opacity: 0; }
.hero-btn {
    padding: 14px 40px; border-radius: 50px; font-weight: 800; text-transform: uppercase; 
    font-size: 0.9em; cursor: pointer; transition: var(--transition); border: 2px solid transparent; 
    width: 100%; max-width: 280px;
}
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-transparent { background: transparent; color: var(--white); border-color: var(--white); }
.btn-transparent:hover { background: var(--white); color: var(--primary); }

/* --- General Section --- */
.section { padding: 60px 20px; text-align: center; }
.section-title { font-size: 1.8em; font-weight: 800; margin-bottom: 40px; color: #222; }

/* --- Products Page Styling --- */
#category-title {
    font-size: 2em; font-weight: 800; margin-bottom: 40px; text-transform: capitalize; color: var(--primary); line-height: 1.3;
}

.products-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1200px; margin: 0 auto 40px auto;
}

.product-card {
    background: #f9f9f9; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; height: 100%; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: transparent; }

.product-img-wrapper {
    width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; background-color: var(--white); border-radius: 8px; padding: 10px;
}
.product-img-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.product-card h3 { font-size: 1.1em; font-weight: 700; margin-bottom: 8px; color: #222; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-size: 1em; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }
.short-desc { font-size: 0.9em; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }

.btn-text {
    background: transparent; border: 1px solid #ddd; color: var(--text-color); padding: 10px 25px; border-radius: 30px; font-size: 0.9em; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; align-self: center; background-color: #fff;
}
.btn-text:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-text i { transition: transform 0.3s ease; }
.btn-text:hover i { transform: translateX(3px); }

/* --- Button Styles Update --- */
.btn-primary { 
    background-color: var(--primary); 
    color: var(--white); 
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-full-width {
    width: 100%; padding: 16px; font-size: 1em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 8px; cursor: pointer; margin-top: 10px;
}

/* --- Categories Grid (Home) --- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 1200px; margin: 0 auto; }
.category-item { text-align: center; cursor: pointer; }
.category-circle {
    width: 80%; max-width: 220px; margin: 0 auto 15px; 
    aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease;
}
.category-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-item p { font-weight: 700; font-size: 0.9em; color: #111; line-height: 1.2; }

/* --- Brands Section --- */
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 40px; justify-items: center; align-items: center; margin-top: 30px; }
.brand-grid img { max-height: 60px; max-width: 200px; object-fit: contain; }

/* --- Why Choose Us --- */
.why-section { background-color: var(--dark-bg); color: var(--white); padding: 50px 0 70px; text-align: center; }
.why-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; display: inline-block; position: relative; padding-bottom: 5px; }
.why-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; min-width: 100px; height: 3px; background-color: var(--accent); }
.why-subtitle { opacity: 0.8; margin-bottom: 0; font-size: 16px; padding: 0 20px; }
.why-grid { display: flex; flex-direction: column; gap: 40px; text-align: left; margin-top: 30px; padding: 0 5%; }
.why-card { display: flex; gap: 20px; align-items: flex-start; }
.why-icon { font-size: 2em; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.why-card h3 { font-size: 1.1em; font-weight: 700; margin-bottom: 5px; }
.why-card p { opacity: 1; color: #fff; font-size: 16px; line-height: 1.5; }

/* --- Closing CTA --- */
.cta-section { background: var(--white); padding: 80px 20px; text-align: center; }
.cta-title { font-size: 1.8em; font-weight: 800; margin-bottom: 10px; color: #000; line-height: 1.2; }
.cta-sub { color: #555; margin-bottom: 30px; font-size: 1em; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.btn-black { background: var(--primary); color: var(--white); padding: 16px 50px; border-radius: 50px; font-weight: 800; text-transform: uppercase; border: 2px solid var(--primary); width: 100%; max-width: 300px; }
.btn-grey { background: #ccc; color: #222; padding: 16px 50px; border-radius: 50px; font-weight: 800; text-transform: uppercase; border: 2px solid #ccc; width: 100%; max-width: 300px; }

/* --- Footer --- */
.footer { background: #111; color: #fff; padding: 50px 0 20px; text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 35px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-logo { font-size: 1.8em; font-weight: 900; letter-spacing: 2px; margin-bottom: 10px; }

/* NEW: Specific sizing for Footer Logo */
.footer-logo .leksvin-logo {
    height: 25px; /* Reduced size (was 35px) */
    width: auto;
    display: block;
    margin: 0 auto; /* Center it on mobile */
}

.social-links { margin-top: 15px; font-size: 1.4em; display: flex; gap: 25px; justify-content: center; }
.footer-copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8em; opacity: 0.5; }

/* --- Modal Styling --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: #fff; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; padding: 30px; border-radius: 15px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 2em; cursor: pointer; color: #333; z-index: 10; }
.modal-flex { display: flex; flex-direction: column; gap: 20px; }
.modal-img { max-height: 250px; object-fit: contain; margin: 0 auto; display: block; width: 100%; }
.modal-details { text-align: left; }
.modal-details h2 { font-size: 1.5em; margin-bottom: 10px; }
.modal-price { font-size: 1.2em; font-weight: bold; margin-bottom: 15px; }
.modal-bullets ul { margin-top: 15px; list-style: disc; padding-left: 20px; opacity: 0.8; }

/* =========================================
   DESKTOP STYLES (Overrides)
   ========================================= */
@media (min-width: 768px) {
    .navbar { 
        height: 90px; 
        padding: 0 5%; 
        justify-content: space-between !important; 
    }
    
    .leksvin-logo { height: 30px; } 
    .desktop-nav-links { display: flex; }
    .hamburger { display: none; }

    /* Hero */
    .hero-banner { background-image: url('../img/banner-bg-desktop.webp'); }
    .hero-content h1 { font-size: 4em; }
    .hero-content p { font-size: 1.3em; margin-bottom: 40px; }
    .hero-cta { flex-direction: row; justify-content: center; }
    .hero-btn { width: auto; font-size: 1em; }

    /* Products Page Desktop */
    #category-title { font-size: 3em; margin: 40px 5px 60px; }
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
    .product-card { padding: 25px; }
    .product-img-wrapper { height: 200px; }
    .product-card h3 { font-size: 1.2em; }

    /* Categories Home */
    .section-title { font-size: 2.5em; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 0px; margin-top: 40px; }
    .category-item p { font-size: 1.2em; }

    /* Brands */
    .brand-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; max-width: 1200px; margin: 60px auto 0 auto; }
    .brand-grid img { max-height: 70px; max-width: 200px; height: auto; filter: none; opacity: 1; transition: transform 0.3s ease; }
    .brand-grid img:hover { transform: scale(1.1); }

    /* Why Choose Us */
    .why-section { padding: 50px 0 70px; } 
    .why-grid { 
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; 
        max-width: 1170px; margin: 30px auto 0 auto; padding: 0 20px;
    }
    .why-title::after { width: 800px; }
    
    /* CTA */
    .cta-title { font-size: 2.5em; }

    /* Footer */
    /* Align footer logo to left on desktop */
    .footer-logo .leksvin-logo {
        margin: 0; 
    }

    .footer-content { flex-direction: row; text-align: left; justify-content: space-between; align-items: flex-start; }
    
    /* UPDATED: Only align footer social links to the left on Desktop */
    .footer-content .social-links { justify-content: flex-start; }

    /* Modal Desktop */
    .modal-flex { flex-direction: row; align-items: flex-start; gap: 40px; }
    .modal-img { flex: 1; max-height: 400px; }
    .modal-details { flex: 1; }
}

/* Mobile Heading Resize */
@media (max-width: 600px) {
    #category-title { font-size: 1.6em; padding: 0 10px; }
    .section-title { font-size: 1.6em; }
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }