/* Modern Vendor List Styles */

.vendor-filter-bar {
    background: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 70px; /* Increased to clear the navbar on mobile */
    z-index: 110;
}

.vendor-filter-bar .d-flex {
    gap: 1rem; /* Modern browsers */
}

/* Fallback for older browsers if needed, or just ensure spacing on wrap */
@media (max-width: 768px) {
    .vendor-filter-bar {
        top: 60px; /* Adjust to sit right below the compact mobile navbar */
    }
    .vendor-filter-bar .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .category-list {
        width: 100%;
    }
}

.category-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    min-width: max-content;
}

.category-item:hover, .category-item.active {
    color: #1a1a1a;
    text-decoration: none;
}

.category-icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.category-item:hover .category-icon-bg {
    background-color: #e9ecef;
}

.category-item.active .category-icon-bg {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.subcategory-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.75rem;
}

.subcategory-pill {
    white-space: nowrap;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.subcategory-pill:hover {
    background-color: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.subcategory-pill.active {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}

/* Highlighted Vendors Container */
.highlighted-scroll-container {
    position: relative;
}
.carousel-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.carousel-arrow-left { left: 4px; }
.carousel-arrow-right { right: 4px; }
@media (min-width: 768px) {
    .carousel-arrow-left { left: -20px; }
    .carousel-arrow-right { right: -20px; }
}
.highlighted-scroll-container .highlighted-scroll-track {
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.highlighted-scroll-container .highlighted-scroll-track::-webkit-scrollbar {
    display: none;
}
.highlighted-card-col {
    flex: 0 0 280px; /* Fixed width for horizontal scrolling cards */
    scroll-snap-align: start;
}
@media (max-width: 576px) {
    .highlighted-card-col {
        flex: 0 0 240px; 
    }
}

.filter-toggle-row {
    margin-bottom: 0.75rem;
}

.filter-toggle-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-toggle-btn:hover {
    background: #f8f9fa;
}

@media (max-width: 767px) {
    #vendor-list > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }
}

.vendor-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.vendor-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vendor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vendor-card:hover .vendor-img {
    transform: scale(1.05);
}



.vendor-body {
    padding: 1.5rem;
}

.vendor-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a; /* Darker, stronger black */
}

.vendor-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vendor-location i {
    color: #54b3d6; /* Primary brand color (blue) */
}

.vendor-description {
    color: #555; /* Softer grey for description */
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Mobile adjustments for 2-column layout */
@media (max-width: 768px) {
    .vendor-img-wrapper {
        height: 100px;
    }
    
    .vendor-body {
        padding: 1rem; /* Less padding */
    }
    
    .vendor-title {
        font-size: 1rem; /* Smaller title */
        margin-bottom: 0.25rem;
    }
    
    .vendor-location {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .vendor-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 6;
    }
    

}
