/* Vendor storefront — company profile + products */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vendor-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 48px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
}

.vendor-breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.vendor-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.vendor-breadcrumb a:hover {
    color: #0056b3;
}

.vendor-store-title {
    margin: 8px 0 4px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.02em;
}

.vendor-store-title-cn {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #6b7280;
}

.vendor-name-en {
    display: block;
}

.vendor-name-cn {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.vendor-store-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.vendor-info-card,
.vendor-products-card,
.vendor-map-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.vendor-map-card {
    margin-top: 14px;
    overflow: hidden;
}

.vendor-map-card__head {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #eef0f3;
}

.vendor-map-card__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    color: #111827;
}

.vendor-map-preview {
    position: relative;
    display: block;
    height: 168px;
    background: #eef2f5;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.vendor-map-frame {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    display: block;
}

.vendor-map-cta {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
}

.vendor-map-preview:hover .vendor-map-cta {
    background: #fff;
    color: #1558b0;
}

.vendor-map-address {
    margin: 0;
    padding: 10px 14px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
    word-break: break-word;
}

.vendor-info-card__head,
.vendor-products-card__head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #eef0f3;
}

.vendor-info-card__head h2,
.vendor-products-card__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    color: #111827;
}

.vendor-products-card__meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.vendor-info-list {
    margin: 0;
    padding: 8px 18px 16px;
}

.info-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item--block {
    grid-template-columns: 1fr;
}

.info-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.info-value {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    word-break: break-word;
}

.info-value a {
    color: #008767;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

.text-content .text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-content .show-more-btn {
    display: inline;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #008767;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.vendor-products-scroll {
    overflow-x: auto;
}

.vendor-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vendor-products-table th,
.vendor-products-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eef0f3;
    vertical-align: top;
}

.vendor-products-table th {
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    background: #fafbfc;
}

.vendor-products-table tbody tr:hover {
    background: #f9fafb;
}

.vendor-product-link {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.vendor-product-link:hover {
    color: #008767;
    text-decoration: underline;
}

.col-cas,
.col-mf {
    color: #374151;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vendor-products-empty {
    padding: 36px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.vendor-products-pager {
    padding: 14px 16px 18px;
    border-top: 1px solid #eef0f3;
}

.vendor-products-pager a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 6px 10px;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
}

.vendor-products-pager a.omm,
.vendor-products-pager a[class*="omm"] {
    background: #008767;
    color: #fff;
}

.vendor-products-pager a.disable {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 900px) {
    .vendor-store-layout {
        grid-template-columns: 1fr;
    }

    .vendor-store-title {
        font-size: 24px;
    }

    .info-item:not(.info-item--block) {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .vendor-detail-container {
        padding: 0 1rem 40px;
    }
}
