/**
* clothing-details.css
* 
* 作者：莫哥
* 日期：2026/06/01
* 版本：1.0.0
*
* 页面标题 28px
 */
.product-title-sm {
    font-size: 28px !important;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
/* 标签标题文字 18px */
.section-title {
    font-size: 18px !important;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #ff4400;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
/* 按钮文字 14px */
.slider-btn {
    font-size: 14px !important;
}
/* 普通文字链接 12px */
.back-link-sm,
.back-link-sm a {
    font-size: 12px !important;
}
/* 正文文本 14px，行高1.8 */
.product-detail,
.attr-table,
.no-attr,
.attr-info,
.slider-pagination {
    font-size: 14px !important;
    line-height: 1.8 !important;
}
/* 表单/属性文字 14px */
.attr-label,
.attr-value,
.product-card .product-title,
.discount-tag-sm,
.original-price-sm {
    font-size: 14px !important;
}

/* ===== 布局 ===== */
.product-detail-wrapper {
    background: #f5f5f5;
    padding: 24px;
    border-radius: 12px;
    margin-top: 50px; 
}

/* ===== 主图 ===== */
.main-image {
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 图集滑动器 核心（一屏4张横向滑动） ===== */
.thumbnail-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 12px auto 0;
    overflow: hidden;
}
.thumbnail-slider {
    overflow: hidden;
}
.thumbnail-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    gap: 8px;
    width: max-content;
}
.thumb-item {
    flex: 0 0 calc((100% - 24px) / 4);
    max-width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-item:hover,
.thumb-item.active {
    border-color: #ff4400;
}

/* 翻页按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}
.slider-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
}
.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.prev-btn { left: 4px; }
.next-btn { right: 4px; }
.slider-pagination {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    background: rgba(255, 255, 255, 0.8);
    padding: 0 10px;
    border-radius: 10px;
}

/* ===== 右侧信息面板 ===== */
.attr-info {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.price-area-sm {
    background: #fff3f0;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.current-price-sm {
    font-size: 16px;
    font-weight: 700;
    color: #ff4400;
}
.original-price-sm {
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}
.discount-tag-sm {
    display: inline-block;
    background: #ff4400;
    color: #fff;
    padding: 0 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 6px;
}
.attr-table {
    width: 100%;
    border-collapse: collapse;
}
.attr-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.attr-table td {
    padding: 3px 6px;
    vertical-align: middle;
    text-align: left;
}
.attr-label {
    width: 25%;
    color: #888;
    font-weight: 500;
}
.attr-value {
    width: 25%;
    color: #333;
}
.attr-table td:empty {
    border: none;
}
.no-attr {
    color: #999;
    text-align: center;
    padding: 10px 0;
}
.back-link-sm {
    margin-top: 12px;
}
.back-link-sm a {
    color: #666;
    text-decoration: none;
}
.back-link-sm a:hover {
    color: #ff4400;
    text-decoration: underline;
}

/* ===== 产品详情 & 相关推荐 ===== */
.detail-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.product-detail {
    color: #444;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.product-card .product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .product-info {
    padding: 10px 12px 14px;
    background: #fff;
}
.product-card .product-title {
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4400;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 767.98px) {
    .main-image {
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 100%;
    }
    .thumbnail-slider-wrapper {
        max-width: 100%;
    }
    .thumb-item {
        flex: 0 0 calc((100% - 24px) / 4);
        max-width: 80px;
        height: 80px;
    }
    .attr-info {
        padding: 12px 14px;
        margin-top: 16px;
    }
    .attr-label {
        width: 30%;
    }
    .attr-value {
        width: 70%;
    }
}
