﻿/* Global Styles */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background-color: #e8f5e9;
}

header, footer {
    padding: 15px 20px;
}

a {
    text-decoration: none;
}

/* Header */
header .site-title {
    font-size: 22px;
    font-weight: 700;
}

header .site-subtitle {
    font-size: 14px;
    color: #f1f1f1;
}

.header-logo {
    animation: logoFadeSlide 0.9s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@keyframes logoFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-logo img {
    animation: logoWiggle 3.5s ease-in-out infinite;
}

@keyframes logoWiggle {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 18px;
    }

    .site-subtitle {
        font-size: 12px;
    }
}
@media (max-width: 767px) {
    header {
        align-items: flex-start !important;
    }
}






/* Navbar */
nav.navbar-dark .navbar-nav .nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #cddc39; /* subtle hover underline */
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #cddc39;
}

/* Mega Dropdown */
/* Desktop Mega Menu Fix */
@media (min-width: 768px) {
    .mega-dropdown {
        position: static;
    }

        .mega-dropdown .dropdown-menu {
            display: block;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.2s ease;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100vw; /* full viewport width */
            margin-left: calc((100vw - 100%) / -2); /* breakout from container */
            padding: 25px 40px;
            border-radius: 0 0 10px 10px;
            z-index: 1000;
        }

        .mega-dropdown:hover .dropdown-menu {
            visibility: visible;
            opacity: 1;
        }
}
/* Mega Category Item Style */
.mega-item {
    display: block;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    color: #2e7d32;
    transition: all 0.25s ease;
}

    /* Hover Effect */
    .mega-item:hover {
        background-color: #dcedc8;
        border-color: #a5d6a7;
        color: #1b5e20;
        transform: translateY(-2px); /* Light lift effect */
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    .mega-item:nth-child(odd) {
        background-color: #f4fff4;
    }

    .mega-item:nth-child(even) {
        background-color: #f9fff9;
    }



/* Subtle category accents */
.mega-dropdown .mega-item:nth-child(1) {
    color: #2e7d32;
}

.mega-dropdown .mega-item:nth-child(2) {
    color: #388e3c;
}

.mega-dropdown .mega-item:nth-child(3) {
    color: #43a047;
}

.mega-dropdown .mega-item:nth-child(4) {
    color: #66bb6a;
}

/* Search Input */
.search-input {
    border-radius: 50px;
    padding: 6px 16px;
    border: 1px solid #ccc;
    transition: all 0.3s;
    width: 200px;
}

    .search-input:focus {
        outline: none;
        border-color: #43a047;
        box-shadow: 0 0 5px rgba(67,160,71,0.5);
    }

/* Search Button */
#btnSearch {
    border-radius: 50px;
    padding: 6px 18px;
    transition: all 0.3s;
}

    #btnSearch:hover {
        background-color: #2e7d32;
        border-color: #2e7d32;
        color: #fff;
    }

/* Header Login / Signup Buttons */
header .btn-outline-light {
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.875rem;
    transition: 0.3s;
    border-width: 2px;
}

    header .btn-outline-light:hover {
        background-color: #ffffff;
        color: #2e7d32;
        border-color: #2e7d32;
    }

header .btn-light {
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.875rem;
    transition: 0.3s;
}

    header .btn-light:hover {
        background-color: #dcedc8;
        color: #1b5e20;
    }

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 50px;
}


/* Responsive: center items on mobile */
@media (max-width: 767px) {
    .pre-links {
        justify-content: center;
        gap: 10px 15px;
    }

    .footer-contact {
        text-align: center;
        margin-top: 15px;
    }
}
.footer-sub {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}



/* Footer */
footer {
    background-color: #2e7d32;
    text-align: center;
    color: #fff;
    padding: 15px 0;
}

/* Pre-Footer */
.pre-footer {
    padding: 2rem 0;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

    .pre-footer .container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

.links-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.pre-footer .pre-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.quick-links-title {
    font-weight: 600;
    color: #2e7d32;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.custom-link {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: block;
}

    .custom-link:focus,
    .custom-link:hover {
        color: #1b5e20;
        background-color: #dcedc8;
        text-decoration: none;
        outline: 2px solid #2e7d32;
    }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
    color: #555;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .contact-item a {
        color: #555;
        text-decoration: none;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }


/* Tablet and Desktop */
@media (min-width: 768px) {
    .pre-footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 3rem;
    }

    .links-section {
        flex-direction: row;
        gap: 4rem;
    }

    .footer-contact {
        flex-direction: row;
        align-items: center;
        font-size: 0.9375rem;
    }

    .contact-item {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pre-links {
        gap: 0.5rem;
    }
}

/* Social Section */
.social-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #2e7d32; /* dark green circle */
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: #43a047; /* lighter green on hover */
        transform: scale(1.15);
        color: #fff;
    }




/* Responsive Adjustments */
/* Desktop Mega Menu */
@media (min-width: 768px) {
    .mega-dropdown .dropdown-menu {
        position: absolute;
        top: 100%; /* below navbar */
        left: 0; /* align left edge with parent nav */
        width: 100vw; /* full viewport width */
        max-width: none;
        max-height: 80vh; /* allow full width */
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        z-index: 1050;
        overflow-y: auto;
    }

        /* Reset row margins */
        .mega-dropdown .dropdown-menu .row {
            margin: 0;
        }

        /* Adjust column padding */
        .mega-dropdown .dropdown-menu .col-6,
        .mega-dropdown .dropdown-menu .col-md-3 {
            padding-left: 15px;
            padding-right: 15px;
        }
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .search-container .form-control {
        height: 40px;
        border-radius: 50px;
    }

    .search-container #btnSearch {
        height: 40px;
        border-radius: 50px;
        padding: 0 18px;
    }

/* Mobile still side-by-side */
@media (max-width: 500px) {
    .search-container {
        width: 100%;
    }

        .search-container .form-control {
            flex: 1; /* textbox takes full space */
        }

        .search-container #btnSearch {
            white-space: nowrap;
        }
}



/* Duplicate CSS ko replace kar do */
.user-info {
    gap: 12px;
}

.user-name-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

    .user-name-link:hover {
        background: rgba(255,255,255,0.1);
    }
    .user-name-link img {
        flex-shrink: 0;
    }

.user-avatar {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}


    .user-avatar:hover {
        transform: scale(1.1);
        border-color: rgba(255,255,255,0.6);
    }

.user-name {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .user-name:hover {
        color: #e8f5e9 !important;
        text-shadow: 0 0 8px rgba(255,255,255,0.5);
    }

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    .user-avatar {
        width: 30px;
        height: 30px;
    }


    .user-name {
        font-size: 0.9rem;
    }

    .user-info .btn-sm {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}


/* 🔔 Notification Bell */
.notif-bell {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .notif-bell i {
        font-size: 18px;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    /* Hover effect */
    .notif-bell:hover i {
        transform: scale(1.15);
        color: #9cff9c; /* soft green */
        filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.7));
    }

    /* Optional: subtle background on hover */
    .notif-bell:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        padding: 4px;
    }
#sellerNotifCount span,
#buyerNotifCount span {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
}
