/* wine-showcase.css - 独立酒类展示组件样式 */
/* 兼容Bootstrap 3.3.7 */

/* 组件样式 - 所有样式都在 .wine-showcase 命名空间下 */
.wine-showcase {
    --ws-secondary-color: #D4AF37;
    --ws-card-bg: #ffffff;
    --ws-border-color: #eee;
    --ws-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    font-family: 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
    font-size: 14px; /* Bootstrap 3 默认字体大小 */
}

.wine-showcase *,
.wine-showcase *::before,
.wine-showcase *::after {
    box-sizing: inherit;
}

/* 重置组件内部可能受外部影响的样式 */
.wine-showcase h1,
.wine-showcase h2,
.wine-showcase h3,
.wine-showcase h4,
.wine-showcase h5,
.wine-showcase p,
.wine-showcase a {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* 组件容器 */
.wine-showcase .ws-container-fluid {
    background-color: #f8f9fa;
    padding: 5px 0 0 0;
}

/* 页面标题区域 - 使用Bootstrap 3的标题类名 */
.wine-showcase .ws-page-header {
    background: linear-gradient(135deg, var(--ws-primary-color) 0%, #5a0000 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 分类区域 */
.wine-showcase .ws-category-section {
    background-color: var(--ws-card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: var(--ws-shadow);
    border-left: 5px solid var(--ws-primary-color);
}

/* 分类头部 */
.wine-showcase .ws-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ws-border-color);
}

/* 分类标题 */
.wine-showcase .ws-category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ws-primary-color);
    margin: 0;
}

/* 查看更多链接 */
.wine-showcase .ws-view-more {
    color: var(--ws-primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.wine-showcase .ws-view-more:hover {
    color: #5a0000;
    transform: translateX(3px);
}

.wine-showcase .ws-view-more .fa {
    margin-left: 5px;
    transition: transform 0.2s;
}

.wine-showcase .ws-view-more:hover .fa {
    transform: translateX(3px);
}

/* 商品滚动容器 */
.wine-showcase .ws-products-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.wine-showcase .ws-products-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.wine-showcase .ws-products-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wine-showcase .ws-products-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* 商品卡片 */
.wine-showcase .ws-product-card {
    display: inline-block;
    width: 200px;
    margin-right: 20px;
    white-space: normal;
    vertical-align: top;
    border: 1px solid var(--ws-border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--ws-card-bg);
}

.wine-showcase .ws-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 商品图片容器 */
.wine-showcase .ws-product-img-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ws-light-bg);
}

.wine-showcase .ws-product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.wine-showcase .ws-product-card:hover .ws-product-img {
    transform: scale(1.05);
}

/* 商品信息 */
.wine-showcase .ws-product-info {
    padding: 15px;
    text-align: center;
}

.wine-showcase .ws-product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* 滚动提示 */
.wine-showcase .ws-scroll-hint {
    color: #999;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* 图标 */
.wine-showcase .ws-wine-type-icon {
    color: var(--ws-secondary-color);
    margin-right: 8px;
}

/* 页脚 */
.wine-showcase .ws-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    border-top: 1px solid var(--ws-border-color);
}

/* 响应式设计 - 使用Bootstrap 3的断点 */
@media (max-width: 991px) {
    .wine-showcase .ws-product-card {
        width: 180px;
        margin-right: 18px;
    }
    
    .wine-showcase .ws-product-img-container {
        height: 160px;
    }
    
    .wine-showcase .ws-category-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .wine-showcase .ws-product-card {
        width: 160px;
        margin-right: 15px;
    }
    
    .wine-showcase .ws-product-img-container {
        height: 140px;
    }
    
    .wine-showcase .ws-category-title {
        font-size: 15px;
    }
    
    .wine-showcase .ws-scroll-hint {
        display: block;
    }
}

@media (max-width: 480px) {
    .wine-showcase .ws-category-section {
        padding: 15px;
    }
    
    .wine-showcase .ws-product-card {
        width: 140px;
        margin-right: 12px;
    }
    
    .wine-showcase .ws-product-img-container {
        height: 120px;
    }
    
    .wine-showcase .ws-product-name {
        font-size: 12px;
    }
}