﻿:root {
    --primary-color: #7F00FF; /* Violet */
    --light-bg: #f8f9fa;
}

html {
    font-size: 14px;
}

.border_primary {
    border: 2px solid var(--primary-color) !important;
}

.min-height-container {
    min-height: 500px;
}


.lftrghtpadding {
    padding-left: 10px;
    padding-right: 10px;
}

.primary-color {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: rgba(0,47,52,0.03);
}

#srchlocationresponsive {
    display: block !important;
}

#srchlocationfull {
    display: block !important;
}

.showresponsive {
    display: none !important;
}

.showfull {
    display: block !important;
}

a {
    text-decoration: none !important;
}




@media (max-width: 868px) {

    ._searchBarDesktopPartial {
        display: none !important;
    }

        .navbar .dropdown, .navbar .btn-outline-dark, .navbar .btn-primary {
            display: block !important;
        }

        #mobileSearchFab {
            display: block !important;
        }
}



@media (min-width: 869px) {

    ._searchBarDesktopPartial {
        display: block;
    }

        #mobileSearchFab {
            display: none;
        }
    }

    @media (min-width: 768px) {
        html {
            font-size: 16px;
        }
    }

    @media (max-width: 768px) {
        #srchlocationresponsive {
            display: block !important;
        }

        #srchlocationfull {
            display: none !important;
        }


        .showresponsive {
            display: block !important;
        }

        .showfull {
            display: none !important;
        }

        .gallery-main img {
            width: 100%;
            height: 350px;
            object-fit: contain;
            border-radius: 6px;
            border-radius: 30px !important;
        }
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    html {
        position: relative;
        min-height: 100%;
    }

body {
    margin-bottom: 60px;
    padding-top: 70px; /* adjust if navbar height changes */
    /*background-color: #f8f9fa !important;*/
    background-color: #fff !important;
}

    .text-primary {
        color: var(--primary-color) !important;
    }

    .btn-primary {
        color: #fff !important;
        background-color: transparent !important;
        background-color: var(--primary-color) !important;
    }

    .card-body h5 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .badge.bg-warning {
        border-radius: 4px;
        font-weight: 600;
    }



    .nikalde-searchbar {
        gap: 0.75rem;
        width: 100%;
    }

    /* 🌈 SELL button */
    .btn-sell {
        border: 1px solid orange !important;
        color: #000;
        padding: 0.4rem 1.3rem;
        border-radius: 50px;
        font-size: 0.9rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease-in-out;
    }

        .btn-sell:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

    /* 🔍 Search input refinement */
    .search-input-radius {
        border-radius: 50px;
    }

    .search-input .form-control {
        box-shadow: none !important;
    }

    .search-input .btn-dark {
        border-radius: 0;
        font-size: 0.95rem;
    }

    /* 📱 Responsive adjustments */
    @media (max-width: 992px) {
        .responsive-nav-location {
            /*margin-left: -50px !important;*/
        }

        .card-body h5 {
            font-size: .9rem;
        }

        .card-body p {
            font-size: 0.8rem !important;
            line-height: 1.3;
        }

        .card-body div span {
            font-size: 10px !important;
        }

        .category-chip .icon {
            width: 40px !important;
            height: 40px !important;
        }

        .nikalde-searchbar {
            flex-direction: column;
            align-items: stretch;
        }

        .search-input {
            width: 100%;
            margin: 0.4rem 0;
        }

        .search-sell-btn {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        #categoryFilterBtn {
            display: none; /* Hide on mobile for compactness */
        }
    }

    @media (max-width: 576px) {
        .search-location select {
            font-size: 0.85rem;
        }

        .search-input input {
            font-size: 0.85rem;
        }

        .btn-sell {
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
        }

        .gallery-main img {
            width: 100%;
            height: 100% !important;
            object-fit: contain;
            border-radius: 6px;
            margin-top: 0 !important;
        }
    }



    .location-selector {
        cursor: pointer;
        transition: box-shadow 0.2s ease-in-out;
        border-radius: 6%;
        min-width: 130px !important;
        max-width: 130px !important;
    }

        .location-selector:hover {
            box-shadow: 0 0 0 2px #23e5db33;
        }

    .location-dropdown {
        position: absolute;
        top: 110%;
        left: 0;
        width: 236px !important;
        z-index: 1050;
        border: 1px solid #ddd;
        max-height: 350px;
        overflow-y: auto;
        animation: fadeIn 0.2s ease-in-out;
    }

        .location-dropdown::-webkit-scrollbar {
            width: 6px;
        }

        .location-dropdown::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 10px;
        }

    .location-item {
        cursor: pointer;
        font-size: 0.95rem;
        color: #333;
        transition: background 0.15s ease;
    }

        .location-item:hover {
            background-color: #f8f9fa;
        }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 576px) {
        .location-dropdown {
            width: 100%;
            left: 0;
        }
    }


    /*responsive sell button*/
    .sell-btn-res {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 28px;
        font-weight: 600;
        font-size: 16px;
        color: #0a2c74;
        background: #fff;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 3px 8px rgba(0,0,0,0.2);
        z-index: 10;
        transition: all 0.3s ease;
    }

        /* === Multicolor Border using conic-gradient === */
        .sell-btn-res::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 50px;
            padding: 2px;
            /*background: conic-gradient( from 0deg, #fbc02d 0deg, #fbc02d 120deg, #009688 120deg, #009688 240deg, #1976d2 240deg, #1976d2 360deg );*/
            background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            z-index: -1;
        }

        /* === Plus Symbol === */
        .sell-btn-res .plus {
            font-size: 20px;
            font-weight: bold;
        }

        /* === Hover Effect === */
        .sell-btn-res:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.25);
        }



    /* === Floating Button Position === */
    .floating-btn {
        display: none;
    }

    .floating-btn-buy {
        display: none;
    }

    .sellbtnfull {
        display: block;
        margin-right: 10px;
    }

    /* === Optional: Responsive tweak for mobile === */
    @media (max-width: 576px) {
        .floating-btn {
            display: block !important;
            top: 12px;
            right: 3%;
            padding: 0px 8px;
            font-size: 14px;
            z-index: 1050; /* Above most content */
            position: fixed;
        }

        .floating-btn-buy {
            display: block !important;
            top: 12px;
            right: 21%;
            padding: 0px 8px;
            font-size: 14px;
            z-index: 1050; /* Above most content */
            position: fixed;
        }

        .sellbtnfull {
            display: none !important;
        }

        .ratio-4x3 {
            --bs-aspect-ratio: 50% !important;
        }
    }

    .ratio-4x3 {
        --bs-aspect-ratio: 65% !important;
    }


    /*Login and register*/
    /* === Shared Fancy Modal Style === */
    .fancy-modal {
        background-color: #fff;
        border-radius: 16px;
        overflow: hidden;
        animation: fadeInUp 0.25s ease-in-out;
    }

        .fancy-modal .modal-header {
            background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
        }

    .btn-outline-primary {
        border-color: #3a77ff;
        color: #3a77ff;
    }

        .btn-outline-primary:hover {
            background-color: #3a77ff;
            color: white;
        }

    .btn-outline-danger {
        border-color: #db4437;
        color: #db4437;
    }

        .btn-outline-danger:hover {
            background-color: #db4437;
            color: #000 !important;
        }

    .text-violet {
        color: #3a77ff !important;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }




    @media (max-width: 992px) {
        .navbar .btn.btn-warning {
            display: none;
        }

        .navbar .dropdown,
        .navbar .btn-outline-dark,
        .navbar .btn-primary {
            display: none;
        }
    }


    /*ad pagination*/
    .ads-page {
        display: grid;
        grid-template-columns: 260px 70vw;
        gap: 10px;
    }


    @media (max-width: 992px) {
        .ads-page {
            display: flex !important;
            grid-template-columns: 1fr;
        }
    }

    .filter-box {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        padding: 15px;
    }

    .filter-title {
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .ads-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .ad-card {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        transition: box-shadow 0.2s ease;
    }

        .ad-card:hover {
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        }

        .ad-card img {
            height: 180px;
            /*min-height: 180px !important;*/
            width: 100%;
            object-fit: cover;
        }

        .ad-card .info {
            padding: 10px 12px;
        }

        .ad-card .price {
            font-weight: 700;
            color: #007bff;
            font-size: 1rem;
        }

    .pagination {
        justify-content: center;
        margin-top: 25px;
    }
    /* ========== Responsive Filter Sidebar Start ========== */
    .filter-sidebar {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 16px;
        height: fit-content;
        /* z-index: 1200;*/
    }

    @media (max-width: 992px) {
        .filter-sidebar {
            position: fixed;
            top: 0;
            left: -100%;
            width: 80%;
            height: 100vh;
            overflow-y: auto;
            transition: all 0.3s ease;
            box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
            border-radius: 0;
            z-index: 1055;
            background: #fff;
        }

            .filter-sidebar.active {
                left: 0;
            }

        .filter-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 1050;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

            .filter-overlay.show {
                display: block;
                opacity: 1;
            }

        .filter-header {
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
            margin-bottom: 15px;
        }

        /* Make filter button next to Sort By look nice */
        #openFilter {
            font-weight: 500;
            border-radius: 6px;
        }

        .category-scroll {
            white-space: normal !important;
        }
    }
    /* ========== Responsive Filter Sidebar End ========== */


    /*Ad detail*/
    .ad-details {
        max-width: 1000px;
        margin: 10px auto;
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    border-radius: 6px;
    margin-top: -45px;
    border-radius: 30px !important;
}

    .gallery-thumbs img {
        width: 90px;
        height: 70px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        opacity: 0.8;
        border: 2px solid transparent;
    }

        .gallery-thumbs img.active {
            opacity: 1;
            border-color: #007bff;
        }

    .price {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0d6efd;
    }

    .related-ads .ad-card img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        border-radius: 6px;
    }

    .related-ads .ad-card {
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
    }

    #dynamicAttributes label.btn {
        border-radius: 20px;
        font-size: 14px;
        padding: 6px 14px;
    }

        #dynamicAttributes label.btn.active {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }


    /*related ad Carousel*/
    /* Make each cloned card responsive: 100% (sm), 50% (md), 33.333% (lg+) */

    #relatedAdsCarousel .card .ratio {
        overflow: hidden;
    }

    #relatedAdsCarousel .card img {
        height: 100%;
        width: 100%;
    }

    /* Improve spacing of controls */
    #relatedAdsCarousel .carousel-control-prev,
    #relatedAdsCarousel .carousel-control-next {
        width: 3.5rem;
    }

    /*upload image preview*/
    #previewContainer img {
        object-fit: cover;
    }

    #previewContainer .btn-danger {
        opacity: 0.8;
    }

        #previewContainer .btn-danger:hover {
            opacity: 1;
        }

    /*wishlist*/
    .wishlist-btn {
        z-index: 2;
        transition: all 0.2s ease-in-out;
    }

        .wishlist-btn:hover {
            background-color: #f8d7da;
        }

        .wishlist-btn i.text-danger {
            color: #dc3545 !important;
        }


    /*sweet alert*/
    div:where(.swal2-container) h2:where(.swal2-title) {
        position: relative;
        max-width: 100%;
        margin: 0;
        padding: var(--swal2-title-padding);
        color: inherit;
        font-size: 22px !important;
        font-weight: 600;
        text-align: center;
        text-transform: none;
        overflow-wrap: break-word;
        cursor: initial;
    }

    .toast-popup {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #000;
        color: white;
        padding: 10px 16px;
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        z-index: 2000;
    }

        .toast-popup.show {
            opacity: 1;
            transform: translateY(0);
        }

    /* ==========Category design Common Styling ========== */
    .category-bar-wrapper {
        /*position: sticky;*/
        top: 60px; /* adjust based on header height */
        /*background: #fff;*/
        /*z-index: 1050;*/
        z-index: 50;
        border-bottom: 1px solid #eee;
    }

    /* 🌈 Desktop Pills */
    .category-pill {
        font-size: 0.95rem;
        color: #333;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 25px;
        transition: all 0.3s ease;
        margin: 4px;
        position: relative;
    }

        .category-pill:hover {
            background-color: #f1f3f5;
            color: #007bff;
        }

        .category-pill.active {
            background: #007bff;
            color: #fff !important;
            font-weight: 600;
        }

        .category-pill.see-all {
            color: #007bff;
            border: 1px solid #007bff;
            font-weight: 500;
            transition: all 0.3s;
        }

            .category-pill.see-all:hover {
                background: #007bff;
                color: #fff;
            }

    /* 📱 Mobile scroll chips */
    .category-scroll {
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

        .category-scroll::-webkit-scrollbar {
            display: none;
        }

    .category-chip {
        flex: 0 0 auto;
        text-decoration: none;
        color: #111;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70px;
        scroll-snap-align: start;
        transition: transform 0.2s ease;
    }

        .category-chip:hover {
            transform: translateY(-2px);
        }

        .category-chip .icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background-color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
            box-shadow: 0 5px 0px rgba(0,0,0,0.1) !important;
            margin-bottom: 6px;
        }

        .category-chip img {
            width: 60%;
            height: 60%;
            object-fit: contain;
        }

        .category-chip .name {
            font-size: 0.75rem;
            text-align: center;
            color: #333;
            line-height: 1.1;
        }

        .category-chip.active .icon {
            background: #007bff;
            color: #fff;
        }

        .category-chip.active .name {
            color: #007bff;
            font-weight: 600;
        }


        .category-chip:last-child .icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
    70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}


.category-chip {
    position: relative;
    transition: transform 0.2s ease;
}

    .category-chip .icon {
        transition: transform 0.2s ease, box-shadow 0.3s ease;
        will-change: transform;
    }


    /* 💻 Responsive fine-tuning */
    @media (min-width: 1200px) {
        .category-bar {
            justify-content: center;
        }

        .category-pill {
            font-size: 1rem;
            padding: 8px 16px;
        }
    }

    @media (max-width: 576px) {
        .category-bar-wrapper {
            top: 55px; /* adjust based on header height */
        }
        .category-chip {
            max-width: 68px;
            text-wrap: auto;
        }

            .category-chip .name {
                font-size: 0.68rem;
            }
    }

    .avatar-profile-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }


    /*Break 1 sell button into 2 parts (Buy/Sell)*/
    /* Outer pill container */
    .dual-btn {
        display: contents;
        border-radius: 40px; /* Perfect pill */
        overflow: hidden; /* Ensures inner elements follow radius */
        border: 3px solid;
        border-image-slice: 1;
        background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
        background: #fff; /* Inside background */
    }


        /* Formatting for both buttons */
        .dual-btn a {
            padding: 10px 24px;
            font-weight: 700;
            font-size: 14px;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
            color: #7F00FF !important;
        }

        /* Middle Separator */
        .dual-btn .left-btn {
            border-right: 2px solid;
            border-image-slice: 1;
            border-image-source: linear-gradient(45deg, #ff6600, #ff0099, #6600ff);
        }

        /* Hover effect */
        .dual-btn a:hover {
            background: rgba(0, 0, 0, 0.05);
        }

    /*.gradient-text {
    background: conic-gradient( from 0deg, #7F00FF 0deg, #7F00FF 120deg, #009688 120deg, #009688 240deg, #ff6600 240deg, #ff6600 360deg );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}*/


    select, input {
        font-size: 12px !important;
    }

    .small, small {
        font-size: .675em !important;
    }


@media (max-width: 624px) {
    .navbar .dropdown, .navbar .btn-outline-dark, .navbar .btn-primary {
        display: none !important;
    }
}

.object-fit-cover {
    object-fit: scale-down !important;
}



/*Toast new design start*/
.toast-popup {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
}

.toast-success {
    background: #198754;
}
/* green */
.toast-warning {
    background: #ffc107;
    color: #000;
}
/* yellow */
.toast-error {
    background: #dc3545;
}
/* red */
.toast-info {
    background: #0dcaf0;
    color: #000;
}
/* blue */
/*Toast new design ends*/


.category-pos{
    position: sticky;
    background-color: #fff;
}


#locationDropdown {
    z-index: 1051;
}

.veri_img {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    object-fit: none !important;
    z-index: 1;
}