

/* ============================================
   购物车悬浮按钮（悬浮交互控件，固定于视口）
   ============================================ */
.cart-fab {
    position: fixed;
    right: 25px;
    bottom: 10%;
    width: 71px;
    height: 71px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    cursor: pointer;
    z-index: 10;
}

.cart-circle {
    grid-area: 1 / 1;
    width: 71px;
    height: 71px;
    display: block;
}

.cart-icon {
    grid-area: 1 / 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cart-count {
    grid-area: 1 / 1;
    place-self: start;
    min-width: 29px;
    height: 21px;
    line-height: 21px;
    padding: 0 5px;
    margin: 3px 0 0 49px;
    box-sizing: border-box;
    background: #f80;
    border-radius: 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

/* ============================================
   询价列表侧边栏（弹出抽屉控件，固定于视口）
   ============================================ */

/* 遮罩 */
.sidebar-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(11.55px);
    backdrop-filter: blur(11.55px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99999;
}

.sidebar-mask.open {
    opacity: 1;
    visibility: visible;
}

/* 抽屉主体 */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999999;
}

.sidebar.open {
    transform: translateX(0);
}

/* 头部 */
.sidebar-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 26px;
    background: #1c2b86;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: block;
}

.sidebar-title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 24px;
    color: #fff;
    white-space: nowrap;
}

.sidebar-badge {
    min-width: 30px;
    height: 20px;
    line-height: 20px;
    padding: 0 8px;
    box-sizing: border-box;
    background: #f80;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.sidebar-close {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

/* 列表区 */
.sidebar-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 22px;
    box-sizing: border-box;
}

/* 自定义滚动条（轨道 #e4e4e4，滑块 #1c2b86） */
.sidebar-list::-webkit-scrollbar {
    width: 5px;
}

.sidebar-list::-webkit-scrollbar-track {
    background: #e4e4e4;
    border-radius: 10px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: #1c2b86;
    border-radius: 10px;
}

/* 分组标题 */
.s-list-title {
    margin: 0 0 20px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}

.s-list-title.first {
    margin-top: 26px;
}

.s-list-title.acc {
    margin-top: 18px;
}

/* 侧边栏产品项 */
.s-item {
    height: 118px;
    display: flex;
    align-items: center;
    gap: 21px;
    padding: 10px 0 0;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e7eb;
}

.s-thumb {
    width: 90px;
    height: 90px;
    flex: none;
}

.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.s-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.s-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.s-model {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 28px;
    color: #1e2939;
    word-break: break-word;
}

.s-del {
    width: 14px;
    height: 14px;
    flex: none;
    margin-top: 5px;
    cursor: pointer;
    display: block;
}

.s-info-bottom {
    padding-bottom: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.s-category {
    font-size: 16px;
    line-height: 28px;
    color: #333;
    white-space: nowrap;
}

/* 侧边栏步进器图标尺寸（设计为 20px） */
.sidebar-list .step-btn svg {
    width: 20px;
    height: 20px;
}

/* 底部提交按钮 */
.sidebar-foot {
    flex: none;
    padding: 17px 16px 16px;
    border-top: 1px solid #f3f4f6;
}

.submit-btn {
    padding: 11px 0;
    background: #1c2b86;
    border-radius: 100px;
    text-align: center;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 20px;
    color: #fff;
    cursor: pointer;
}

.submit-btn:hover {
    background: #24349c;
}
