/* Hero */
.vendor-hero {
    width: 100%;
    overflow: hidden;
}

.vendor-hero-main {
    position: relative;
    height: 380px;
    overflow: hidden;
}

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

.vendor-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.vendor-hero-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 0.75rem;
}

.vendor-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.vendor-hero-search-wrap {
    display: flex;
    width: 100%;
    max-width: 480px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.vendor-search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    outline: none;
    min-width: 0;
}

.vendor-search-btn {
    background: #1a1a1a;
    border: none;
    padding: 0.75rem 1.25rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.vendor-search-btn:hover {
    background: #333;
}

.vendor-hero-row {
    display: flex;
    height: 200px;
    gap: 3px;
}

.vendor-hero-sub {
    flex: 1;
    overflow: hidden;
}

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

/* Subcategory hero */
.vendor-subcat-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1c12 0%, var(--dark-blue) 45%, #3d2818 100%);
}

.vendor-subcat-hero .vendor-hero-overlay {
    background: none;
}

/* Light breadcrumb for dark hero */
.vendor-cat-breadcrumb--hero .breadcrumb {
    color: rgba(255,255,255,0.55);
}

.vendor-cat-breadcrumb--hero .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.vendor-cat-breadcrumb--hero .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.vendor-cat-breadcrumb--hero .breadcrumb-item.active {
    color: rgba(255,255,255,0.55);
}

.vendor-cat-breadcrumb--hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* Hero CTA buttons for dark backgrounds */
.vendor-cat-intro-btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.75);
    color: #fff;
    background: transparent;
}

.vendor-cat-intro-btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

.vendor-cat-intro-btn-white {
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #fff;
}

.vendor-cat-intro-btn-white:hover {
    background: rgba(255,255,255,0.88);
    color: #1a1a1a;
}

/* Intro body below hero */
.vendor-subcat-intro-body {
    background: #fff;
    padding: 1.75rem 0;
    border-bottom: 1px solid #f0ebe3;
}

.vendor-subcat-intro-body .container {
    max-width: 680px;
    color: #555;
    font-size: 0.96rem;
    line-height: 1.7;
}

.vendor-subcat-intro-body .container p {
    margin-bottom: 1.1rem;
}

.vendor-subcat-intro-body .container p:last-child {
    margin-bottom: 0;
}

/* Category intro */
.vendor-cat-intro {
    background: #f5f0e8;
    padding: 3rem 0 2.5rem;
}

.vendor-cat-intro-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.vendor-cat-intro-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.vendor-cat-intro-body {
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.vendor-cat-intro-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vendor-cat-intro-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.vendor-cat-intro-btn-outline {
    border: 1.5px solid #1a1a1a;
    color: #1a1a1a;
    background: transparent;
}

.vendor-cat-intro-btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
}

.vendor-cat-intro-btn-dark {
    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #1a1a1a;
}

.vendor-cat-intro-btn-dark:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 767px) {
    .vendor-subcat-hero {
        height: auto;
        overflow: visible;
    }

    .vendor-subcat-hero .vendor-hero-overlay {
        position: relative;
        padding: 4rem 1.25rem 2rem;
    }

    .vendor-subcat-hero .vendor-hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .vendor-subcat-hero .vendor-hero-subtitle {
        display: none;
    }

    .vendor-cat-intro {
        padding: 2rem 0 1.75rem;
    }

    .vendor-cat-intro-title {
        font-size: 1.5rem;
    }

    .vendor-cat-intro-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vendor-cat-intro-btn {
        justify-content: center;
    }
}

/* Breadcrumb */
.vendor-cat-breadcrumb {
    margin-bottom: 1rem;
}

.vendor-cat-breadcrumb .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    color: #888;
}

.vendor-cat-breadcrumb .breadcrumb-item a {
    color: #555;
    text-decoration: none;
}

.vendor-cat-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.vendor-cat-breadcrumb .breadcrumb-item.active {
    color: #888;
}

/* Se også / related subcategories */
.vendor-related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.85rem;
}

.vendor-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vendor-related-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border: 1.5px solid #e0dbd0;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a1a;
    background: #faf8f4;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.vendor-related-item:hover {
    background: #f5f0e8;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Filter bar */
.vendor-filter-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.6rem 0;
    position: sticky;
    top: 70px;
    z-index: 110;
}

@media (max-width: 767px) {
    .vendor-filter-bar {
        top: 60px;
    }
}

.vendor-filter-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-filter-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vendor-filter-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    padding-right: 0.5rem;
    border-right: 1px solid #dee2e6;
    margin-right: 0.25rem;
    white-space: nowrap;
}

.vendor-filter-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.vendor-filter-btn {
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
}

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

.vendor-filter-btn.filter-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.vendor-dropdown-menu {
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    padding: 0.4rem;
}

.vendor-dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    color: #495057;
}

.vendor-dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
}

.vendor-dropdown-menu .dropdown-item.active {
    background: #1a1a1a;
    color: #fff;
}

.sub-indent {
    padding-left: 0.75rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.vendor-dropdown-menu .dropdown-item.active .sub-indent {
    color: rgba(255,255,255,0.8);
}

/* Vendor card shared overrides */
.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.25rem;
}

.vendor-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.vendor-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

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

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

/* Badge */
.vendor-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    z-index: 1;
    letter-spacing: 0.02em;
}

/* Category tags */
.vendor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.65rem;
}

.vendor-tag {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    color: #6c757d;
    white-space: nowrap;
}

/* CTA card */
.vendor-cta-card {
    height: 100%;
    min-height: 260px;
    background: #f5f0e8;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.vendor-cta-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.vendor-cta-text {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.vendor-cta-btn {
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    text-decoration: none;
}

.vendor-cta-btn:hover {
    background: #333;
    color: #fff;
}

/* Placeholder */
.vendor-hero-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-hero-placeholder-text {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

/* Mobile */
@media (max-width: 767px) {
    .vendor-hero-main {
        height: 240px;
    }

    .vendor-hero-title {
        font-size: 1.45rem;
    }

    .vendor-hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .vendor-hero-row {
        height: 120px;
    }

    .vendor-img-wrapper {
        height: 80px;
    }

    .vendor-body {
        padding: 0.85rem;
    }

    .vendor-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .vendor-description {
        font-size: 0.82rem;
        -webkit-line-clamp: 3;
    }

    .vendor-tags {
        display: none;
    }

    .vendor-cta-card {
        min-height: 180px;
        padding: 1.25rem 1rem;
    }

    .vendor-cta-title {
        font-size: 1rem;
    }

    .vendor-cta-text {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }

    #vendor-list > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }
}

