﻿/* ===== 页面整体 ===== */
.pd-page {
    background: #f5f5f7;
    padding: 40px 0 60px;
}

/* ===== 主区域 ===== */
.pd {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    padding: 0 24px;
}

/* ===== 左侧图片 ===== */
.pd-gal {
    position: sticky;
    top: 80px;
}

.pd-main {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.pd-main-media {
    aspect-ratio: 1 / 1;
    background: #fff;
}

    .pd-main-media img,
    .pd-main-media video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* ===== 缩略图 ===== */
.pd-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pd-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

    .pd-thumb.active {
        border-color: #000;
        transform: scale(1.05);
    }

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===== 右侧信息 ===== */
.pd-info {
    display: flex;
    flex-direction: column;
}

/* 标题 */
.pd-title {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

/* 价格 */
.pd-price-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-price {
    font-size: 28px;
    font-weight: 600;
}

/* 状态 */
.pd-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #e8f5e9;
    color: #2e7d32;
}

.pd-pill-out {
    background: #fdecea;
    color: #c62828;
}

/* 描述 */
.product-desc {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* ===== 数量 + 按钮 ===== */
.pd-actions {
    margin-top: 30px;
}

.pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
}

.pd-qty-input {
    width: 60px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
}

.mc-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.pd-btns {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

/* 主按钮 */
.btn-primary {
    background: #0071e3;
    color: #fff;
}

    .btn-primary:hover {
        background: #005bb5;
    }

/* 次按钮 */
.btn-secondary {
    background: #f2f2f2;
    color: #333;
}

/* ===== Reviews ===== */
.p-reviews {
    max-width: 980px;
    margin: 80px auto 0;
    padding: 0 24px;
}

.p-reviews__title {
    font-size: 22px;
    font-weight: 600;
}

.p-review {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.p-review__content {
    margin-top: 10px;
    line-height: 1.6;
}

.p-review__star {
    color: #ddd;
}

    .p-review__star.is-on {
        color: #ff9500;
    }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .pd {
        grid-template-columns: 1fr;
    }

    .pd-gal {
        position: static;
    }
}

/* =========================================
   PRODUCT DETAIL - UI POLISH OVERRIDE
   ========================================= */

/* 页面更像内容区，而不是一整块灰底 */
.pd-page {
    background: #fff;
    padding: 32px 0 72px;
}

/* 主体间距再精致一点 */
.pd {
    max-width: 1240px;
    gap: 48px;
}

/* 右侧信息卡片化，减少空荡感 */
.pd-info {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 28px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
    align-self: start;
}

/* 标题收一点，别太压屏 */
.pd-title {
    font-size: clamp(26px, 2.6vw, 42px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}

/* 价格行更有层次 */
.pd-price-row {
    margin-top: 18px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.pd-price {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.pd-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* 参数标签更像 Apple 的信息块 */
.pd-meta-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.pd-meta-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0,0,0,.05);
}

.pd-meta-tag__label {
    font-size: 13px;
    color: rgba(17,17,17,.56);
    font-weight: 600;
}

.pd-meta-tag__value {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    text-align: right;
}

/* 描述更舒服 */
.product-desc {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.06);
    font-size: 15px;
    line-height: 1.8;
    color: rgba(17,17,17,.72);
}

/* 操作区更稳 */
.pd-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* 数量框更精致 */
.pd-qty {
    height: 46px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    background: #fafafa;
    overflow: hidden;
}

.mc-qty-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: #111;
    background: transparent;
}

    .mc-qty-btn:hover {
        background: rgba(0,0,0,.04);
    }

.pd-qty-input {
    width: 72px;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    background: transparent;
}

/* 按钮排版更像成品页 */
.pd-btns {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

    .pd-btns .btn {
        min-width: 140px;
        height: 46px;
        padding: 0 20px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    /* 主按钮不要太“系统蓝” */
    .pd-btns .btn-primary {
        background: #111;
        color: #fff;
    }

        .pd-btns .btn-primary:hover {
            background: #000;
        }

    .pd-btns .btn-secondary {
        background: #f2f2f2;
        color: #111;
    }

        .pd-btns .btn-secondary:hover {
            background: #e9e9eb;
        }

/* 关键词也顺一下 */
.pd-info a[href^="/Shop/Catalog?kw="] {
    background: #f5f5f7;
    border: 1px solid rgba(0,0,0,.08) !important;
    color: #111;
    font-size: 13px;
    font-weight: 500;
}

    .pd-info a[href^="/Shop/Catalog?kw="]:hover {
        background: #ededf0;
    }

/* 移动端 */
@media (max-width: 900px) {
    .pd-info {
        padding: 22px 18px 20px;
        border-radius: 22px;
    }

    .pd-title {
        font-size: 28px;
    }

    .pd-price {
        font-size: 28px;
    }

    .pd-meta-tag {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-meta-tag__value {
        text-align: left;
    }

    .pd-btns .btn {
        flex: 1 1 100%;
    }
}