@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-hover: rgba(255, 255, 255, 0.1);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-header: 'Outfit', sans-serif;

    --container-width: 1400px;
    --header-height: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Premium Button */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Header */
header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    background: var(--bg-color);
}

.logo-area {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-area:hover {
    opacity: 0.8;
}

.logo-main {
    font-family: var(--font-header);
    font-size: 32px;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 5px;
}

.logo-sub {
    font-family: var(--font-header);
    font-size: 10px;
    letter-spacing: 8px;
    color: var(--text-muted);
    position: relative;
    display: inline-block;
}

.logo-sub::before,
.logo-sub::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
}

.logo-sub::before {
    right: 100%;
    margin-right: 15px;
}

.logo-sub::after {
    left: 100%;
    margin-left: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

nav ul li a {
    font-family: var(--font-header);
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 5px 0;
    position: relative;
    font-weight: 300;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-color);
}

/* Home Hero */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 80px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Mobile Menu Elements (Hidden on Desktop) */
.mobile-menu-btn,
.mobile-menu-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    nav ul {
        gap: 20px;
    }

    .logo-sub::before,
    .logo-sub::after {
        display: none;
    }

    .grid-4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .grid-item {
        padding: 15px !important;
        /* Reduce padding from 40px to 15px */
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-left {
        order: 2;
        /* Move credits to bottom */
        margin-top: 20px;
    }

    .footer-right {
        order: 1;
        /* Move contact info to top */
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile Subcategories Scroll */
    .sub-categories {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll iOS */
        scrollbar-width: none;
        /* Firefox */
        gap: 15px !important;
    }

    .sub-categories::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .sub-cat-link {
        white-space: nowrap;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.05);
        /* Slight pill bg */
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid var(--border-color);
        font-size: 11px;
    }

    .sub-cat-link.active {
        background: white;
        color: black !important;
        border-color: white;
        text-shadow: none !important;
    }

    /* --- PREMIUM MOBILE MENU --- */

    /* Hide Default Nav on Mobile */
    nav ul {
        display: none;
    }

    /* Hamburger Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 2000;
        /* Increased z-index */
        position: absolute;
        top: 40px;
        right: 20px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform-origin: center;
    }

    /* Hamburger Animation State */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #fff;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #fff;
    }

    /* Fullscreen Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        /* Slightly darker */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1999;
        /* Below button */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 40px;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Menu Links */
    .mobile-menu-overlay ul {
        list-style: none;
        /* Ensure no dots */
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        z-index: 2002;
        transition: all 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
        color: #fff;
    }

    /* Header Adjustments */
    header {
        padding: 20px 0;
        z-index: 2001;
        /* Ensure above overlay */
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-area {
        margin-bottom: 0;
        text-align: left;
    }

    /* Reset absolute positioning for flex layout */
    .mobile-menu-btn {
        position: relative;
        top: auto;
        right: auto;
        margin: 0;
    }
}

/* CSS Grid Utilities for other pages */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    /* Interesting thin line effect with bg */
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.grid-item {
    background-color: var(--bg-color);
    padding: 40px;
    transition: background-color 0.3s ease;
}

.grid-item:hover {
    background-color: #0a0a0a;
}

.grid-item img {
    margin-bottom: 20px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Product Detail */
.product-detail-container {
    display: flex;
    min-height: 100vh;
}

.product-image-col {
    width: 60%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.product-info-col {
    width: 40%;
    padding: 80px 60px;
    background: var(--bg-color);
}

/* Inner Page Headers - Reduced Spacing */
.page-header,
.category-header,
.about-section,
.contact-layout,
.catalog-section {
    padding-top: 40px !important;
    /* Reduced from 80px/100px */
}

.page-header h1,
.category-header h1,
.about-title {
    margin-top: 0;
}

/* Active Glow */
nav ul li a:hover,
nav ul li a.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7) !important;
}

/* Active Link Glow */
nav ul li a.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    opacity: 1;
}

/* Reduced Footer Margin for Inner Pages */
footer {
    margin-top: 0 !important;
    /* Removed default gap */
}

.compact-footer {
    padding: 20px 0 !important;
}

.page-header,
.catalog-section {
    padding-bottom: 20px !important;
    /* Tighter header bottom */
}

/* Contact Address Font Fix */
.contact-address-center,
.contact-address-factory {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Search Button */
.search-btn {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-color: var(--text-color);
    transform: scale(1.05);
}

.search-btn svg {
    transition: transform 0.4s ease;
}

.search-btn:hover svg {
    transform: scale(1.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    padding: 40px;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 300;
    padding: 20px 0;
    outline: none;
    letter-spacing: 1px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.search-results {
    margin-top: 40px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-color);
}

.search-result-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.search-result-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.search-result-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* Search Results Scrollbar */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Search Button Mobile */
    .search-btn {
        position: relative;
        right: auto;
        top: auto;
        margin-left: auto;
        width: 36px;
        height: 36px;
    }

    .search-input {
        font-size: 24px;
    }

    .search-container {
        padding: 20px;
    }

    .search-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .search-result-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .search-result-image {
        width: 100%;
        height: 200px;
    }
}

/* Subcategories Sticky Menu */
.sub-categories-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 990;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    width: 100%;
}

/* Base Subcategories (moved from inline, wrapped for Desktop logic mostly) */
.sub-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: var(--container-width);
}

@media (min-width: 769px) {
    .sub-cat-link {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        border-bottom: 2px solid transparent;
        padding-bottom: 5px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .sub-cat-link:hover,
    .sub-cat-link.active {
        color: var(--text-color);
        border-bottom-color: var(--text-color);
    }
}