/* 商品介紹頁 (PartsOne/Index)：只調整外觀 */
.product-page {
    color: #3a2f27;
}

/* ---- 商品主圖 ---- */
.product-page .pd-media {
    padding: 20px;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(74, 52, 32, .07);
}

/* ---- 品名 ---- */
.product-page .pd-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.45;
    color: #2e231b;
}

.product-page .pd-subtitle {
    margin-top: 4px;
    font-family: 'Cormorant', serif;
    font-size: 19px !important;
    font-style: italic;
    color: #a08971 !important;
}

.product-page .pd-subtitle:not(:empty) {
    padding-bottom: 14px;
    border-bottom: 1px solid #efe7dc;
}

/* ---- 品號與價格 ---- */
.product-page .pd-prices {
    padding: 16px 18px;
    background: #faf6f0;
    border-radius: 14px;
}

.product-page .pd-prices br {
    display: none;
}

.product-page .pd-prices > div {
    margin-bottom: 8px;
    font-size: 16px !important;
}

.product-page .pd-prices > div:last-child {
    margin-bottom: 0;
}

.product-page .pd-prices .badge {
    margin-right: 8px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #7a644f;
    background: #ede3d5;
    border-radius: 20px;
    vertical-align: 2px;
}

.product-page .pd-member {
    font-size: 26px !important;
    font-weight: 700;
    color: #9b2c2c;
}

.product-page .pd-member .badge {
    color: #fff;
    background: #9b2c2c;
    vertical-align: 5px;
}

.product-page .pd-list-price {
    color: #9a8f85;
}

/* ---- 規格 ---- */
.product-page .pd-spec,
.product-page .pd-spec thead,
.product-page .pd-spec tbody {
    display: block;
    width: 100%;
    margin: 0;
}

.product-page .pd-spec tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.product-page .pd-spec th,
.product-page .pd-spec td {
    border: 0;
    text-align: center;
    background: #fff;
    border-left: 1px solid #eee5da;
    border-right: 1px solid #eee5da;
}

.product-page .pd-spec th {
    padding: 10px 4px 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #a08971;
    border-top: 1px solid #eee5da;
    border-radius: 10px 10px 0 0;
}

.product-page .pd-spec td {
    padding: 2px 4px 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #eee5da;
    border-radius: 0 0 10px 10px;
}

/* ---- 社群分享 ---- */
.product-page .social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.product-page .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 1px solid #e6dccd;
    border-radius: 50%;
    transition: background-color .2s, border-color .2s;
}

.product-page .social a i {
    color: #5a4637 !important;
    font-size: 20px !important;
}

.product-page .social a svg {
    width: 23px !important;
    height: 22px !important;
    fill: #5a4637 !important;
}

.product-page .social a:hover {
    background: #382b21;
    border-color: #382b21;
}

.product-page .social a:hover i {
    color: #f1d9a8 !important;
}

.product-page .social a:hover svg {
    fill: #f1d9a8 !important;
}

/* ---- 免運說明 ---- */
.product-page .pd-delivery {
    margin-left: 0 !important;
    margin-right: 0;
}

.product-page .pd-delivery a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    font-size: 16px !important;
    text-align: left;
    color: #7a4b12 !important;
    background: #fdf3df;
    border: 1px solid #f0dcb0;
    border-radius: 12px;
}

.product-page .pd-delivery a:after {
    content: "›";
    font-size: 22px;
    line-height: 1;
}

/* ---- 操作按鈕 ---- */
.product-page .pd-actions .custom-select,
.product-page .pd-actions .btn {
    height: 46px;
    font-size: 15px;
}

.product-page .pd-actions .custom-select {
    border-color: #d9cbb8;
    border-radius: 10px 0 0 10px;
}

.product-page .pd-actions .btn {
    line-height: 32px;
    padding: 6px 22px;
    color: #5a4637;
    border-color: #d9cbb8;
    border-radius: 10px;
}

.product-page .pd-actions .btn:hover {
    color: #382b21;
    background: #f6f1ea;
}

.product-page .pd-actions #Favorites {
    color: #f1d9a8;
    background: #382b21;
    border-color: #382b21;
    border-radius: 0 10px 10px 0;
}

.product-page .pd-actions #Favorites:hover {
    background: #4b3a2c;
}

/* ---- 提醒文字 ---- */
.product-page .pd-notice {
    margin-top: 24px !important;
    padding: 4px 14px;
    font-size: 14px !important;
    line-height: 1.8;
    color: #8a7a6c !important;
    border-left: 3px solid #d2ae70;
}

/* ---- 產品介紹 ---- */
.product-page .pd-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    height: auto !important;
    margin-bottom: 14px;
    color: #382b21 !important;
    background: transparent !important;
}

.product-page .pd-heading:before,
.product-page .pd-heading:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9cbb8;
}

.product-page .pd-heading h4 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 6px;
}

.product-page .pd-body {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.95;
    text-align: left;
    color: #4a4038;
}

/* ---- 精選推薦／人氣商品 ---- */
.product-page .nav-pills {
    padding: 5px;
    background: #f3ece1;
    border-radius: 30px;
}

.product-page .nav-pills .nav-link {
    padding: 9px 6px;
    letter-spacing: 2px;
    color: #7a644f;
    background: transparent;
    border-radius: 24px;
}

.product-page .nav-pills .nav-link.active {
    color: #f1d9a8;
    background: #382b21;
}

.product-page .card-group {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
}

.product-page .card-group > .card {
    flex: 0 0 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
    margin: 0 4px 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
}

.product-page .card-group > .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 52, 32, .12);
}

.product-page .card-group .card-img-top {
    padding: 8px;
}

.product-page .card-group .card-body {
    padding: 4px 8px 12px;
    font-weight: 700 !important;
    color: #9b2c2c;
}

.product-page .card-group .card-text {
    margin-bottom: 6px;
    font-weight: 400;
    line-height: 1.5;
}

.product-page .card-group .badge {
    margin-right: 4px;
    font-weight: 500;
    color: #7a644f;
    background: #f3ece1;
}

.product-page h4.badge-light {
    display: inline-block;
    height: auto !important;
    margin: 6px 0 0;
    padding: 8px 28px;
    font-size: 14px !important;
    letter-spacing: 2px;
    color: #7a644f;
    background: transparent;
    border: 1px solid #d9cbb8;
    border-radius: 24px;
}

/* 手機、平板：留左右邊距，避免內容貼邊與整頁左右晃動 */
@media (max-width: 1180px) {
    .product-page {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 575.98px) {
    .product-page .pd-media {
        padding: 12px;
        margin-bottom: 18px;
    }

    .product-page .pd-title {
        font-size: 21px !important;
    }

    .product-page .pd-prices {
        margin-bottom: 14px;
    }

    .product-page .pd-actions > div {
        margin-bottom: 10px;
    }

    .product-page .pd-actions .btn:not(#Favorites) {
        width: 100%;
    }

    .product-page .pd-actions .input-group .custom-select {
        flex: 1 1 auto;
        width: 1%;
    }

    .product-page .card-group > .card {
        flex-basis: calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-page .card-group > .card {
        transition: none;
    }
}
