@charset "utf-8";

/* ========== 全屏Banner ========== */
.hero-banner { width: 100%; height: 640px; background: #ccc; background-image: url('https://via.placeholder.com/1920x420/cccccc/000?text=MEN\'S+BOTTOM+BANNER'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.banner-title { color: #fff; font-size: 32px; font-weight: 700; text-transform: uppercase; }
/* ========== 面包屑&筛选栏 ========== */
.breadcrumb-bar { max-width: 1440px; margin: 32px auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.breadcrumb { font-size: 14px; color: #555; }
.product-count { font-size: 14px; color: #555; }
/* ========== 商品网格列表 ========== */
.product-grid-wrap { max-width: 1440px; margin: 0 auto 60px; padding: 0 40px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 24px; padding-bottom:50px; }
.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card .product-img { width: 100%; background: #eee; border-radius: 4px; }
.product-card .product-img { position: relative; width: 100%; overflow: hidden; }
.product-card .product-img img { width: 100%; height: 100%; transition: transform 0.6s ease; }
.t_tou { position: relative; top: 0; left: 0; }
.t_shi { position: absolute; top: 0; left: 0; }
/* 关键：hover 给 b 这张图片执行放大 */
.product-card .product-img .a { opacity: 1; transition: 0.6s; }
.product-card .product-img .b { opacity: 0; transition: 0.6s; }
.product-card a:hover .product-img .a { opacity: 0; }
.product-card a:hover .product-img .b { opacity: 1; transform: scale(1.25); }

.product-name { font-size: 14px; line-height: 1.4; }
.product-price { font-size: 14px; }
.product-color { font-size: 12px; color: #666; }


/* ========== 移动端适配 ========== */
@media (max-width:992px) {
.product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:600px) {
.product-grid { grid-template-columns: 1fr; }
.breadcrumb-bar, .product-grid-wrap { padding: 0 20px; }
}


/* ========== 商品详情主体容器 ========== */
.product-detail-wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px;  margin-bottom: 80px; }
/* 面包屑 */
.breadcrumb { grid-column: 1 / -1; font-size: 14px; color: #555; margin: 16px 0; }
/* 左侧图片区域 */
.product-gallery { float: left; width: 48%; }
.main-product-img { width: 100%; background: #eee; }
.thumb-row { display: flex; gap: 10px; overflow-x: auto; }
.thumb-item { width: 64px; height: 64px; background: #eee; flex-shrink: 0; cursor: pointer; }

.product-gallery .thumbnail-container { height: 80px; margin-top: 10px; position:relative; }
.product-gallery .swiper-slide { border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color 0.2s ease; }
.product-gallery .swiper-slide.active { border-color: #000; }
.product-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .arrow-prev, .product-gallery .arrow-next { position: absolute; top: 0%; z-index: 99; display: inline-block; width: 36px; height: 80px; line-height: 80px; color: #000; cursor: pointer; text-align: center; font-weight: bold; background-color: #FFF; transition: all .35s; }
.product-gallery .arrow-prev>i, .product-gallery .arrow-next>i { font-size: 1.8rem; font-weight: 700 !important; -webkit-text-stroke: 0.5px currentColor; }
.product-gallery .arrow-prev { left: -10px; }
.product-gallery .arrow-next { right: -10px; }
.product-gallery .swiper-button-disabled { display: none; }

/* 右侧商品信息 */
.product-info { float: right; width: 48%; }
.product-info h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.stars { color: #f5b800; }
.price { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.point-text { font-size: 14px; color: #555; margin-bottom: 16px; }
/* 颜色选择 */
.color-label { font-size: 14px; margin-bottom: 8px; }
.color-options { display: flex; gap: 12px; margin-bottom: 20px; }
.option-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #aaa; overflow: hidden; cursor: pointer; }

/* 尺码选择 */
.size-label { font-size: 14px; margin-bottom: 8px; }
.size-options { display: flex; gap: 8px; margin-bottom: 24px; }
.size-btn { width: 44px; height: 44px; border: 1px solid #111; background: #fff; cursor: pointer; }
.size-btn.active { background: #000; color: #fff; }
/* 加入购物车按钮 */
.add-cart-btn { width: 100%; background: #5833ff; color: #fff; border: none; padding: 14px; border-radius: 4px; font-size: 16px; cursor: pointer; margin-bottom: 12px; }
.more-payment { text-align: center; font-size: 13px; color: #555; margin-bottom: 24px; }
/* 商品描述 */
.product-desc { font-size: 14px; color: #333; margin-bottom: 24px; }
/* 温度指示条 */
.temp-guide { margin-bottom: 24px; }
.temp-guide h4 { font-size: 16px; margin-bottom: 8px; }
.temp-bar-wrap { width: 100%; }
.temp-bar { width: 100%; height: 6px; background: linear-gradient(90deg, #4285F4, #9c27ff, #ff7043); border-radius: 3px; }
.temp-labels { display: flex; justify-content: space-between; font-size: 12px; color: #555; margin-top: 4px; }
/* 折叠面板 */
.accordion-item { border-top: 1px solid #ddd; }
.accordion-header { width: 100%; background: transparent; border: none; padding: 14px 0; text-align: left; font-size: 15px; display: flex; justify-content: space-between; cursor: pointer; }

/* ========== You May Also Like 相关推荐 ========== */
.related-section { max-width: 1440px; margin: 0 auto 80px; padding: 0 40px; }
.related-section h2 { font-size: 20px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.related-card { display: flex; flex-direction: column; gap: 10px; }
.related-img { width: 100%; background: #eee; }
.related-name { font-size: 14px; }
.related-price { font-size: 14px; }
.related-color { font-size: 12px; color: #666; }

/* ========== 移动端响应式 ========== */
@media (max-width:992px) {
.product-detail-wrap { grid-template-columns: 1fr; }
.related-grid { grid-template-columns: repeat(2, 1fr); }
.product-info { float:left; width:100%; margin-top:20px; }
.product-gallery { width: 100%; }
}
@media (max-width:600px) {
.related-grid { grid-template-columns: 1fr; }
.site-header, .product-detail-wrap, .review-section, .related-section { padding: 0 20px; }
}


.feature { padding-top: 50px; display: inline-block; width: 100%; }
/* 单行模块容器 */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
/* 第二行反转左右顺序 */
.feature-row:nth-of-type(2n) { direction: rtl; }
.feature-row:nth-of-type(2n) > * { direction: ltr; }
/* 文字区块 */
.feature-text h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: #111; text-transform: uppercase; }
.feature-text p { font-size: 14px; line-height: 1.6; color: #444; max-width: 320px; }
/* 图片区块 */
.feature-img img { max-width: 535px; width: 100%; height: auto; display: block; }
@media (max-width:768px) {
.feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
.feature-row.reverse { direction: ltr; }
}

/* 图片放大弹窗样式 */
.img-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 9999; }
.img-popup.show { display: flex; }
.img-popup img { max-width: 90%; max-height: 90%; }
.pop-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; }
.pop-prev, .pop-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 50px; cursor: pointer; padding: 0 20px; }
.pop-prev { left: 20px; }
.pop-next { right: 20px; }