/* 尾货集产品列表工具栏（展示方式切换） */

.weihuoji-toolbar-wrap .product_nav,
.weihuoji-toolbar-wrap .product_nav.fl {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.weihuoji-toolbar-wrap .product-list-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 16px 0 12px;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.weihuoji-toolbar-wrap .layout-toggle-container {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid rgba(216, 226, 240, 0.9);
    border-radius: 10px;
    background: rgba(245, 245, 245, 0.68);
}

.weihuoji-toolbar-wrap .layout-toggle-panel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.weihuoji-toolbar-wrap .layout-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a667f;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.weihuoji-toolbar-wrap .layout-mode-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8c78f 0%, #de7a16 100%);
    box-shadow: 0 4px 10px rgba(222, 122, 22, 0.22);
    position: relative;
    flex: 0 0 18px;
}

.weihuoji-toolbar-wrap .layout-mode-icon:before,
.weihuoji-toolbar-wrap .layout-mode-icon:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

.weihuoji-toolbar-wrap .layout-mode-icon:before {
    left: 4px;
    right: 4px;
    top: 5px;
    height: 2px;
}

.weihuoji-toolbar-wrap .layout-mode-icon:after {
    left: 4px;
    right: 4px;
    bottom: 5px;
    height: 2px;
}

.weihuoji-toolbar-wrap .toggle-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbe4f2;
    border-radius: 999px;
    padding: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(31, 52, 88, 0.08);
}

.weihuoji-toolbar-wrap .layout-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #5b6883;
    background: transparent;
    min-width: 92px;
    transition: all 0.2s ease;
}

.weihuoji-toolbar-wrap .layout-btn:hover {
    color: #365483;
    background: #e8f7ff;
}

.weihuoji-toolbar-wrap .layout-btn.active {
    color: #fff !important;
    border-color: rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, #6fd3ff 0%, #3ea3ff 55%, #2d8cf0 100%) !important;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(56, 157, 242, 0.3);
}

.weihuoji-toolbar-wrap .layout-btn-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    position: relative;
}

.weihuoji-toolbar-wrap .layout-btn-icon-image {
    border-radius: 3px;
    border: 1.5px solid currentColor;
}

.weihuoji-toolbar-wrap .layout-btn-icon-image:after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 5px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.85;
}

.weihuoji-toolbar-wrap .layout-btn-icon-info {
    border-radius: 50%;
    border: 1.5px solid currentColor;
}

.weihuoji-toolbar-wrap .layout-btn-icon-info:before,
.weihuoji-toolbar-wrap .layout-btn-icon-info:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
    border-radius: 2px;
}

.weihuoji-toolbar-wrap .layout-btn-icon-info:before {
    top: 3px;
    width: 2px;
    height: 2px;
}

.weihuoji-toolbar-wrap .layout-btn-icon-info:after {
    top: 6px;
    width: 2px;
    height: 5px;
}
