/* ===================================
   VENDOR LIST PAGE STYLES
   =================================== */

.vendor-list-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Vendor Header */
.vendor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.vendor-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vendor-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Vendor Grid */
.vendor-grid {
    padding: 60px 0;
}

/* Vendor Card */
.vendor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vendor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.vendor-card a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vendor-card a:hover {
    text-decoration: none;
}

/* Vendor Banner */
.vendor-banner {
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.vendor-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vendor Card Body */
.vendor-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Vendor Logo */
.vendor-logo-wrapper {
    margin-top: -40px;
    text-align: center;
    margin-bottom: 1rem;
}

.vendor-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vendor-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Vendor Info */
.vendor-name {
    color: #2d3748;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.vendor-description {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: #718096;
    margin-bottom: 1rem;
    flex: 1;
}

/* Vendor Stats */
.vendor-stats {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Empty State */
.vendor-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.vendor-empty-state i {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.vendor-empty-state h3 {
    color: #718096;
    margin-bottom: 0.5rem;
}

.vendor-empty-state p {
    color: #a0aec0;
}

/* ===================================
   VENDOR DETAIL PAGE STYLES
   =================================== */

.vendor-detail-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Vendor Detail Header */
.vendor-detail-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 80px;
}

.vendor-detail-banner {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.vendor-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-detail-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

/* Vendor Info Card */
.vendor-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.vendor-detail-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -80px;
}

.vendor-detail-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    background: #f8f9fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -80px;
}

.vendor-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.vendor-detail-description {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vendor-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vendor-contact-item {
    display: flex;
    align-items: center;
    color: #4a5568;
}

.vendor-contact-item i {
    color: #667eea;
    margin-right: 0.5rem;
    width: 20px;
}

.vendor-action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vendor-action-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Product Sections */
.vendor-products-section {
    padding: 40px 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1rem;
}

/* Product Tabs */
.vendor-category-tabs {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vendor-category-tabs .nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.vendor-category-tabs .nav-link {
    border: none;
    color: #718096;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.vendor-category-tabs .nav-link:hover {
    color: #667eea;
    background: transparent;
}

.vendor-category-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom: 2px solid #667eea;
    margin-bottom: -2px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sort-dropdown select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
}

/* Product Grid */
.vendor-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Loading State */
.loading-overlay {
    position: relative;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vendor-header {
        padding: 40px 0;
    }

    .vendor-header h1 {
        font-size: 2rem;
    }

    .vendor-detail-banner {
        height: 200px;
    }

    .vendor-info-card {
        padding: 1.5rem;
    }

    .vendor-detail-name {
        font-size: 1.5rem;
    }

    .vendor-contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vendor-action-buttons {
        flex-direction: column;
    }

    .vendor-action-buttons .btn {
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .vendor-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .vendor-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge-featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-hot-deal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty State for Products */
.products-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.products-empty-state i {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.products-empty-state h4 {
    color: #718096;
    margin-bottom: 0.5rem;
}

.products-empty-state p {
    color: #a0aec0;
}

.vendor-detail-page {
    background-color: #f8f9fa;
}

.vendor-header-section {
    position: relative;
    padding: 30px 0 20px;
    margin-bottom: 0;
}

.vendor-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vendor-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vendor-info-item a {
    text-decoration: none;
}

.vendor-banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vendor-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.vendor-header-content {
    position: relative;
    z-index: 2;
}

.vendor-logo-large {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vendor-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vendor-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.vendor-section {
    background: white;
}

.vendor-section.bg-light {
    background: #f8f9fa !important;
}

.section-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.list-industry-name {
    display: flex;
    gap: 10px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

.category-controls .btn-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-products-grid {
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .vendor-title {
        font-size: 1.75rem;
    }
    
    .vendor-logo-large {
        width: 70px;
        height: 70px;
        margin-right: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
