/* --- STYLISH NAV LINKS --- */
.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569; /* slate-600 */
    transition: all 0.3s ease;
}

/* Hover Effect: Modern Underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: #2563eb; /* blue-600 */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.nav-link:hover {
    color: #1e3a8a; /* blue-900 */
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Active Link State */
.active-link {
    color: #2563eb !important;
}

.active-link::after {
    transform: scaleX(1) !important;
    background-color: #1e3a8a;
}

/* Pulse animation for logo dot (if not using Tailwind) */
@keyframes pulse-custom {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}



/* --- HERO SLIDER SECTION --- */
.hero-swiper {
    width: 100% !important;
    height: 650px !important; /* Fixed height for Hero */
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.3));
    z-index: 10;
}

/* Pagination for Hero (Blue to match V N Global) */
.hero-swiper .swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #3b82f6 !important; /* Blue-500 */
    width: 30px !important;
    border-radius: 5px !important;
    opacity: 1 !important;
}

/* Ensure images cover full area */
.hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* --- Mobile Responsive Fix for Product List --- */
@media (max-width: 1024px) {
    /* 1. Sidebar को मोबाइल पर Sticky से हटाकर Normal करें */
    aside.lg\:w-1\/4 {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 2rem;
    }

    /* 2. Main Flex Container को Column में बदलें */
    main.container > div.flex {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* 3. Product Grid को पूरी चौड़ाई दें */
    div.lg\:w-3\/4 {
        width: 100% !important;
    }

    /* 4. जो इमेज ऊपर निकल रही है उसे Container के अंदर रखें */
    #product-container-id img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* 5. Padding Adjustments for Mobile */
    main.container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Recommended Section Fix for Small Mobiles */
@media (max-width: 640px) {
    .grid-cols-1 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}



/* --- Product Detail Mobile Fix --- */
@media (max-width: 1024px) {
    /* 1. इमेज गैलरी को स्टिकी होने से रोकें */
    .grid.grid-cols-1.lg\:grid-cols-2 .sticky.top-24 {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }

    /* 2. ब्लू इन्क्वायरी कार्ड को स्टिकी होने से रोकें */
    .lg\:col-span-1 .sticky.top-24 {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }

    /* 3. इमेज का साइज मोबाइल पर सही करें */
    #mainProductImg {
        max-height: 300px !important; /* मोबाइल पर इमेज थोड़ी छोटी रखें */
        width: auto;
        margin: 0 auto;
    }

    /* 4. ग्रिड और गैप फिक्स */
    .grid-cols-1.lg\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem !important;
    }
}





/* --- Contact Form Choice List Fix --- */
@media (max-width: 640px) {
    /* 1. मोबाइल पर ब्राउज़र का डिफ़ॉल्ट लुक वापस लाएं ताकि लिस्ट स्क्रीन के अंदर रहे */
    select.appearance-none {
        appearance: auto !important;
        -webkit-appearance: auto !important;
        -moz-appearance: auto !important;
        
        /* मोबाइल पर अंदर की जगह (Padding) थोड़ी कम करें */
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 2. एक्स्ट्रा सावधानी के लिए कंटेनर की ओवरफ्लो सेटिंग्स */
    .lg\:col-span-8 {
        overflow: hidden !important;
        padding-left: 1.25rem !important; /* p-5 */
        padding-right: 1.25rem !important;
    }
}
