/* ==========================================
   商品詳情頁 - 專屬樣式
   ========================================== */
body { background-color: var(--light-bg); }

/* Gallery */
.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid #f4d0b8;
    cursor: zoom-in;
    transition: transform 0.3s;
}
.gallery-main:hover { transform: scale(1.02); }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.gallery-thumb {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--primary-color); }

/* Product Info */
.product-price-main {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-gold);
}
.product-price-orig {
    font-size: 1rem;
    color: #bbb;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-discount-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Stars */
.stars-lg { color: var(--accent-gold); font-size: 18px; }

/* Tags */
.spec-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--light-bg);
    border: 1.5px solid #e8e0d8;
    border-radius: 20px;
    font-size: 13px;
    margin: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans TC', sans-serif;
}
.spec-tag:hover,
.spec-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Qty */
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Noto Sans TC', sans-serif;
}
.qty-btn:hover { background: var(--light-bg); }
.qty-input {
    width: 52px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 2px solid #e5e5e5;
    border-right: 2px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans TC', sans-serif;
}
.qty-input:focus { outline: none; }

/* Action Buttons */
.btn-add-cart {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: white;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
}
.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
}
.btn-buy-now {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gold);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Noto Sans TC', sans-serif;
}
.btn-buy-now:hover { background: #b8702e; transform: translateY(-1px); }

/* Info Boxes */
.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid #f0ebe4;
    border-bottom: 1px solid #f0ebe4;
    margin: 16px 0;
}
.info-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.info-strip-icon { font-size: 22px; }
.info-strip-label { font-size: 11px; color: #888; }
.info-strip-val { font-size: 12px; font-weight: 700; color: var(--dark-bg); }

/* Product Tabs */
.ptab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: 'Noto Sans TC', sans-serif;
}
.ptab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    font-weight: 700;
}
.ptab-content { display: none; }
.ptab-content.active { display: block; }

/* Review Card */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0ebe4;
}
.review-item:last-child { border-bottom: none; }

/* Related Products */
.related-card {
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(234,176,135,0.12);
    overflow: hidden;
    transition: all 0.3s;
}
.related-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(234,176,135,0.18);
}
.related-card img { width: 100%; height: 180px; object-fit: cover; }
