/* ===== 廠商一覽 (vendors) ===== */
.exhibitor-con {
    padding: 60px 0 90px;
}

.exhibitor-con .categories_content h2 {
    font-size: 30px;
    line-height: 38px;
}

.exhibitor-con .categories_content h2 span {
    color: var(--e-global-color-accent);
}

.exhibitor-con .categories_content p {
    font-size: 15px;
    letter-spacing: .08em;
    margin-bottom: 52px;
}

.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}

@media (min-width: 768px) {
    .exhibitor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .exhibitor-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .exhibitor-grid { grid-template-columns: repeat(5, 1fr); }
}

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

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

.exhibitor-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
    /* border: 1px solid #eee; */
}

.exhibitor-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.exhibitor-card:hover .thumb img { transform: scale(1.04); }

.exhibitor-card .cat {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    font-size: 13px;
    color: #888;
}

.exhibitor-card .cat::before {
    content: "";
    width: 18px;
    height: 1px;
    background: #bbb;
    flex: 0 0 auto;
    margin-right: 4px;
}

.exhibitor-card .desc {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.exhibitor-card .name {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.exhibitor-empty {
    text-align: center;
    color: #999;
    padding: 60px 0;
}

/* ===== 廠商搜尋 + 分類導覽 ===== */
.vendor-filter {
    margin-bottom: 56px;
}

.vendor-search {
    position: relative;
    max-width: 720px;
    margin: 0 auto 28px;
}

.vendor-search input {
    width: 100%;
    height: 50px;
    padding: 0 48px 0 22px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
    transition: border-color .25s ease;
}

.vendor-search input:focus {
    outline: none;
    border-color: var(--e-global-color-accent);
}

.vendor-search input::placeholder { color: #b3b3b3; }

.vendor-search-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #b0b0b0;
    font-size: 15px;
    pointer-events: none;
}

.vendor-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.vendor-cat-link {
    position: relative;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    line-height: 1.2;
    transition: color .25s ease;
}

.vendor-cat-link:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: #d8d8d8;
}

.vendor-cat-link:hover { color: var(--e-global-color-accent); }

/* ===== 依分類分組 ===== */
.vendor-group { margin-bottom: 64px; }

.vendor-group-title {
    font-size: 20px;
    font-weight: 400;
    color: #444;
    margin: 0 0 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cfcfcf;
}

@media (max-width: 575px) {
    .vendor-search input { height: 46px; font-size: 14px; }
    .vendor-cat-link { padding: 0 14px; font-size: 14px; }
    .vendor-group-title { font-size: 18px; }
}

/* ===== 廠商內頁 (vendor) ===== */
.vendor-con {
    padding: 0 0 90px;
}

.vendor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.vendor-back,
.vendor-top .cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
    text-decoration: none;
}

.vendor-back:hover { color: var(--e-global-color-accent); }

.vendor-top .cat::before {
    content: "";
    width: 18px;
    height: 1px;
    background: #bbb;
    flex: 0 0 auto;
    margin-right: 4px;
}

.vendor-hero {
    max-width: 760px;
    margin: 0 auto 36px;
}

.vendor-hero .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 12px;
}

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

.vendor-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.vendor-head h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

.vendor-head .desc {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 0;
}

.vendor-body {
    max-width: 760px;
    margin: 40px auto 0;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.vendor-body img { max-width: 100%; height: auto; }
.vendor-body h2, .vendor-body h3 { margin: 24px 0 12px; }
.vendor-body p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.vendor-gallery {
    max-width: 760px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .vendor-gallery { grid-template-columns: repeat(3, 1fr); }
}

.vendor-gallery-item {
    margin: 0;
}

.vendor-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #eee;
}

.vendor-gallery-item figcaption {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    text-align: center;
}

.vendor-footer {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid #eee;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.vendor-footer h1,
.vendor-footer h2,
.vendor-footer h3,
.vendor-footer h4,
.vendor-footer h5,
.vendor-footer h6,
.vendor-footer p,
.vendor-footer li,
.vendor-footer span,
.vendor-footer a,
.vendor-footer strong,
.vendor-footer b {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 8px;
}

.vendor-footer img { max-width: 100%; height: auto; }

.vendor-cta {
    max-width: 760px;
    margin: 48px auto 0;
    text-align: center;
}

.vendor-cta a {
    display: inline-block;
    max-width: 100%;
    padding: 12px 32px;
    border-radius: 999px;
    background: #4a4a4a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    transition: background .3s ease;
}

.vendor-cta a:hover {
    background: var(--e-global-color-accent);
    color: #fff;
}

@media (max-width: 575px) {
    .vendor-head h1 { font-size: 28px; }
    .vendor-cta a { padding: 11px 24px; }
}
