/**
 * 销售详情页 - 本企业其它产品滚动列表样式
 */

/* 滚动容器样式 */
.product-list-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.product-list-wrapper::-webkit-scrollbar {
    display: none;
}

/* 产品卡片样式 */
.product-item {
    text-align: center;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 160px !important;
    max-width: 160px !important;
    display: inline-block !important;
    vertical-align: top;
    white-space: normal;
}

.product-item:hover {
    transform: translateY(-4px);
}

/* 图片容器样式 */
.img-wrapper {
    overflow: hidden;
    border-radius: 12px;
    background: #f9fafb;
    padding: 8px;
    margin-bottom: 12px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.product-item:hover .img-wrapper img {
    transform: scale(1.05);
}

/* 标题样式 */
.title-wrapper {
    padding: 0 4px;
    width: 100%;
}

.title-wrapper a {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.2s;
}

.title-wrapper a:hover {
    color: #2563eb;
}

/* 滚动按钮样式 */
.scroll-btn {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid #d1d5db !important;
    background: #ffffff !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.scroll-btn i {
    color: #374151 !important;
    font-size: 14px !important;
}

.scroll-btn:hover {
    border-color: #2563eb !important;
    background: #2563eb !important;
}

.scroll-btn:hover i {
    color: #ffffff !important;
}
