/* ========================================================
   PHP Shop Mall - Product Detail & List Stylesheet
   Matches 财小神 1:1 Detail Page with Zoom Magnifier
======================================================== */

.breadcrumb-bar {
    padding: 16px 0;
    font-size: 13px;
    color: #666666;
}

.breadcrumb-bar a {
    color: #666666;
    margin: 0 4px;
}

.breadcrumb-bar a:hover {
    color: var(--primary-red);
}

.current-crumb {
    color: #333333;
    font-weight: bold;
    margin-left: 4px;
}

.total-count-tag {
    color: #999999;
    font-size: 12px;
    margin-left: 8px;
}

/* ---------------- 详情页核心排版 ---------------- */
.detail-main-panel {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
}

/* 左侧相册区 (420px) */
.gallery-column {
    float: left;
    width: 420px;
    position: relative;
}

.main-preview-box {
    width: 400px;
    height: 400px;
    border: 1px solid #eeeeee;
    position: relative;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 放大镜半透明镜片 */
.magnifier-lens {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 235, 59, 0.35);
    border: 1px solid rgba(255, 193, 7, 0.7);
    display: none;
    pointer-events: none;
    z-index: 10;
}

/* 放大镜放大结果显示窗口 */
.magnifier-result {
    position: absolute;
    left: 420px;
    top: 0;
    width: 500px;
    height: 500px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
    z-index: 100;
}

.magnifier-result img {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px; /* 2.5倍放大 */
    height: 1000px;
    max-width: none;
    max-height: none;
}

/* 缩略图轮播 */
.thumbs-carousel {
    margin-top: 16px;
    width: 400px;
}

.thumb-item {
    float: left;
    width: 68px;
    height: 68px;
    border: 2px solid #eeeeee;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: all 0.2s;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-red);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 右侧购买参数区 (720px) */
.product-info-column {
    float: left;
    width: 720px;
    padding-left: 36px;
}

.goods-title {
    font-size: 20px;
    font-weight: 800;
    color: #222222;
    line-height: 1.4;
    margin-bottom: 8px;
}

.goods-subtitle {
    font-size: 13px;
    color: var(--primary-red);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* 价格条 */
.price-banner {
    background: #fbfbfb;
    border: 1px solid #f2f2f2;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.price-label {
    font-size: 13px;
    color: #666666;
}

.currency {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: bold;
    margin-left: 4px;
}

.current-price {
    color: var(--primary-red);
    font-size: 32px;
    font-weight: 800;
    margin-right: 16px;
}

.market-price {
    font-size: 13px;
    color: #999999;
    text-decoration: line-through;
}

.service-promise {
    font-size: 12px;
    color: #777777;
}

.service-promise .dot {
    margin: 0 8px;
    color: #cccccc;
}

/* 销量与库存 */
.stock-sales-row {
    padding: 12px 0;
    border-bottom: 1px dashed #eeeeee;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666666;
}

.item-stat {
    float: left;
    margin-right: 30px;
}

.item-stat .val {
    font-weight: bold;
    color: #333333;
}

/* 购买数量选择器 */
.quantity-row {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

.row-label {
    font-size: 14px;
    color: #666666;
    width: 80px;
}

.quantity-stepper {
    display: inline-flex;
    border: 1px solid #cccccc;
    border-radius: 2px;
}

.quantity-stepper .btn-step {
    width: 32px;
    height: 36px;
    background: #f8f8f8;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666666;
}

.quantity-stepper .btn-step:hover {
    background: #eaeaea;
}

.quantity-stepper input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

/* 操作大按钮 */
.action-buttons-row {
    display: flex;
    gap: 16px;
}

.btn-add-cart, .btn-buy-now {
    height: 50px;
    padding: 0 36px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
}

.btn-add-cart {
    background-color: #ffede7;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
}

.btn-add-cart:hover {
    background-color: #ffdcd3;
}

.btn-add-cart .cart-icon {
    margin-right: 8px;
    font-size: 20px;
}

.btn-buy-now {
    background-color: var(--primary-red);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(210, 30, 32, 0.3);
}

.btn-buy-now:hover {
    background-color: var(--hover-red);
}

/* ---------------- 详情选项卡 ---------------- */
.detail-tabs-section {
    background: #ffffff;
    border: 1px solid #eeeeee;
    margin-bottom: 40px;
}

.tab-header-nav {
    background: #fafafa;
    border-bottom: 1px solid #eeeeee;
}

.tab-nav-item {
    float: left;
    height: 48px;
    line-height: 48px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: bold;
    color: #444444;
    cursor: pointer;
    border-right: 1px solid #eeeeee;
    transition: all 0.2s;
}

.tab-nav-item:hover, .tab-nav-item.active {
    background: #ffffff;
    color: var(--primary-red);
    border-top: 3px solid var(--primary-red);
    line-height: 45px;
}

.tab-pane {
    display: none;
    padding: 30px;
}

.tab-pane.active {
    display: block;
}

.goods-graphic-content {
    line-height: 1.8;
    color: #333333;
    font-size: 14px;
    text-align: center;
}

.goods-graphic-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 10px 0;
}

/* 规格参数表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 16px;
    border: 1px solid #eeeeee;
    font-size: 13px;
}

.specs-table .spec-name {
    width: 220px;
    background: #fbfbfb;
    color: #666666;
    font-weight: bold;
    text-align: right;
}

.specs-table .spec-val {
    color: #333333;
}

/* ---------------- 商品列表页排版 ---------------- */
.list-layout-row {
    margin-top: 10px;
}

.list-sidebar {
    float: left;
    width: 220px;
}

.sidebar-box {
    border: 1px solid #eeeeee;
    background: #ffffff;
}

.sidebar-title {
    height: 42px;
    line-height: 42px;
    background: #f7f7f7;
    border-bottom: 1px solid #eeeeee;
    padding: 0 16px;
    font-size: 15px;
    color: #333333;
}

.side-cat-list {
    padding: 10px 0;
}

.side-cat-item > a {
    display: block;
    padding: 8px 16px;
    font-weight: bold;
    color: #444444;
}

.side-cat-item.active > a, .side-cat-item > a:hover {
    color: var(--primary-red);
}

.side-sub-list {
    padding-left: 28px;
}

.side-sub-list a {
    display: block;
    padding: 4px 0;
    font-size: 12px;
    color: #777777;
}

.side-sub-list a:hover {
    color: var(--primary-red);
}

.list-main-content {
    float: left;
    width: 960px;
    margin-left: 20px;
}

.filter-toolbar {
    background: #f9f9f9;
    border: 1px solid #eeeeee;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.sort-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #dddddd;
    margin-right: 8px;
    font-size: 13px;
    color: #555555;
    border-radius: 2px;
}

.sort-btn.active, .sort-btn:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

.list-goods-grid {
    border: 1px solid #eeeeee;
    background: #ffffff;
}

.list-item-card {
    height: 280px !important;
}

.card-sales-info {
    font-size: 11px;
    color: #999999;
    text-align: left;
    padding: 4px;
}

.empty-search-box {
    text-align: center;
    padding: 60px 0;
    color: #888888;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
