/* frontend/assets/frontend-style.css */
.supplier-container {
    max-width: 1366px;
    margin: 30px auto;
    padding: 20px;
    font-family: sans-serif;
    display: grid;
    grid-template-columns: 25% 1fr; 
    gap:20px;
}

/* 筛选区域 */
.supplier-filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    gap: 15px;
    flex: 0 0 25%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6e6e6;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.product-lines-checkboxes {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.product-lines-checkboxes label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin: 0;
}

.product-lines-checkboxes input[type="checkbox"] {
    margin-right: 5px;
}

.filter-button {
    align-self: flex-end;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.filter-button:hover {
    background: #005a87;
}
.supplier-list-right{
    display: flex;
    flex-direction: column;
    align-items: stretch; /
}

/* 排序区域 */
.supplier-sorting {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;            
    margin-bottom: 10px;
    height: fit-content;
}

.supplier-sorting label {
    font-weight: bold;
    color: #495057;
}

.supplier-sorting select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* 供应商卡片网格 */
.supplier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-content: space-between;
    align-items: start;
}

.supplier-list-card {
    display: grid;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    align-self: start;
}

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

.supplier-list-card.svip {
    border-color: #ffd700;
    position: relative;
    align-self: start;
}

.supplier-list-card.svip::before {
    content: "SVIP";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    align-self: start;
}

.supplier-list-card.vip {
    border-color: #1e90ff;
    position: relative;
}

.supplier-list-card.vip::before {
    content: "VIP";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e90ff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.supplier-list-logo {
    height: 150px!important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(45deg, #ff7e5f, #feb47b);
}

.supplier-list-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.placeholder-logo {
    width: 100px;
    height: 100px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.supplier-info {
    padding: 20px;
}

.supplier-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px!important;
    line-height: 1.5;
    height: 3em;
    font-weight: 600;
}

.supplier-info h3 a {
    color: #333;
    text-decoration: none;
}

.supplier-info h3 a:hover {
    color: #0073aa;
}

.supplier-country {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}
.supplier-info span{
    font-size: 11px;
    color: #777;
}

.supplier-description {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .supplier-container {
        display: flex;
        padding: 15px;
        flex-direction: column;
    }
    
    .supplier-filters {
        grid-template-columns: 1fr;
        display: none;
    }
    
    .supplier-grid {
        grid-template-columns: 1fr;
    }
    
    .supplier-sorting {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

.catalog-level1-group {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.catalog-level1-group:last-child {
    border-bottom: none;
}

.catalog-level2-items {
    margin-top: 5px;
}

.product-lines-checkboxes {
    overflow-y: auto;
    padding: 10px;
    border-radius: 4px;
}

.catalog-level1-group label {
    cursor: pointer;
}

.catalog-level2-items label {
    cursor: pointer;
    font-weight: normal !important;
}