/* =========================================================
 * Luxe Minimal - Product Detail Page (product_view.css)
 * YES Exosome 商品詳細頁專屬樣式
 * 依賴 main.css 的 design tokens 與 .lm-* 共用元件
 * ========================================================= */

/* ---------- Breadcrumb ---------- */
.pv-breadcrumb
{
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 12px;
    color: var(--ink-muted);
}

.pv-breadcrumb a
{
    color: var(--ink-muted);
    transition: color 0.2s ease;
}

.pv-breadcrumb a:hover
{
    color: var(--brand-dark);
}

.pv-breadcrumb-sep
{
    margin: 0 8px;
}

.pv-breadcrumb-current
{
    color: var(--ink);
}

/* ---------- Detail Layout (Image + Info) ---------- */
.pv-detail
{
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 0 24px 64px;
}

@media (min-width: 768px)
{
    .pv-detail
    {
        padding-bottom: 96px;
    }
}

.pv-detail-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px)
{
    .pv-detail-grid
    {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* ---------- Image Gallery ---------- */
.pv-gallery
{
    width: 100%;
}

.pv-main-image
{
    aspect-ratio: 1 / 1;
    background: var(--surface-warm);
    overflow: hidden;
    margin-bottom: 16px;
}

.pv-main-image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.pv-thumbs
{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pv-thumb
{
    aspect-ratio: 1 / 1;
    background: var(--surface-warm);
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: outline 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.pv-thumb img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pv-thumb.pv-thumb-active
{
    outline-color: var(--brand-dark);
}

/* ---------- Product Info ---------- */
.pv-info
{
    width: 100%;
}

@media (min-width: 768px)
{
    .pv-info
    {
        padding-top: 16px;
    }
}

.pv-eyebrow
{
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-darker);
    font-weight: 500;
    margin: 0 0 8px 0;
}

.pv-title
{
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

@media (min-width: 768px)
{
    .pv-title
    {
        font-size: 32px;
    }
}

.pv-subtitle
{
    color: var(--ink-muted);
    font-size: 14px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* ---------- Spec Selection ---------- */
.pv-spec
{
    margin-bottom: 24px;
}

.pv-spec-label
{
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
    margin: 0 0 12px 0;
}

.pv-spec-options
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pv-spec-btn
{
    padding: 10px 20px;
    border: 1px solid var(--brand-light);
    background: #ffffff;
    font-size: 14px;
    color: var(--ink-light);
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.pv-spec-btn:hover
{
    border-color: var(--ink);
    color: var(--ink);
}

.pv-spec-btn.active
{
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 9px 19px;
}

.pv-spec-btn:disabled
{
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ---------- Price ---------- */
.pv-price-row
{
    margin-bottom: 32px;
}

.pv-price
{
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-sans);
}

.pv-price-original
{
    margin-left: 12px;
    font-size: 16px;
    font-weight: 400;
    color: var(--ink-muted);
    text-decoration: line-through;
}

/* ---------- Sold Out State ---------- */
.pv-soldout
{
    margin: 0 0 32px 0;
    padding: 16px 20px;
    background: var(--brand-lighter);
    color: var(--ink-light);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.pv-soldout p
{
    margin: 0;
}

/* ---------- Line Point Badge ---------- */
.pv-line-point
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #52B14C;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.pv-line-point-icon
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ffffff;
    color: #52B14C;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
}

/* ---------- Cart Row (Qty + Add to Cart) ---------- */
.pv-cart-row
{
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.pv-qty
{
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--brand-light);
}

.pv-qty-btn
{
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.pv-qty-btn:hover
{
    background: var(--brand-lighter);
}

.pv-qty-btn:disabled
{
    opacity: 0.3;
    cursor: not-allowed;
}

.pv-qty-btn svg
{
    width: 16px;
    height: 16px;
}

.pv-qty-input
{
    width: 44px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--brand-light);
    border-right: 1px solid var(--brand-light);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: #ffffff;
    -moz-appearance: textfield;
}

.pv-qty-input::-webkit-outer-spin-button,
.pv-qty-input::-webkit-inner-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}

.pv-qty-input:focus
{
    outline: none;
}

.pv-add-to-cart
{
    flex: 1;
    height: 44px;
    background: var(--ink);
    color: #ffffff;
    border: 1px solid var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pv-add-to-cart:hover
{
    background: var(--brand-darker);
    border-color: var(--brand-darker);
}

.pv-add-to-cart:disabled
{
    background: var(--ink-muted);
    border-color: var(--ink-muted);
    cursor: not-allowed;
}

/* ---------- Accordion ---------- */
.pv-accordion
{
    border-top: 1px solid var(--brand-lighter);
}

.pv-accordion-item
{
    border-bottom: 1px solid var(--brand-lighter);
}

.pv-accordion-trigger
{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--ink);
    text-align: left;
}

.pv-accordion-title
{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pv-accordion-icon
{
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pv-accordion-trigger[aria-expanded="true"] .pv-accordion-icon
{
    transform: rotate(180deg);
}

.pv-accordion-content
{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.pv-accordion-content.open
{
    max-height: 1200px;
}

.pv-accordion-body
{
    padding: 0 0 20px 0;
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.7;
}

.pv-accordion-body p
{
    margin: 0 0 16px 0;
}

.pv-accordion-body p:last-child
{
    margin-bottom: 0;
}

.pv-accordion-body ul,
.pv-accordion-body ol
{
    margin: 0 0 16px 0;
    padding-left: 18px;
}

.pv-accordion-body ul
{
    list-style: none;
    padding-left: 0;
}

.pv-accordion-body ul li
{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.pv-accordion-body ul li::before
{
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-dark);
    margin-top: 9px;
    flex-shrink: 0;
}

.pv-accordion-body ol li
{
    margin-bottom: 12px;
    line-height: 1.6;
}

.pv-accordion-body strong
{
    color: var(--ink);
    font-weight: 500;
}

.pv-accordion-body .pv-accordion-note
{
    font-size: 12px;
    color: var(--ink-muted);
    margin-top: 16px;
}

.pv-accordion-body .pv-stat-list
{
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-accordion-body .pv-stat-list li
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.pv-accordion-body .pv-stat-list li::before
{
    display: none;
}

.pv-accordion-body .pv-stat-num
{
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    min-width: 50px;
}

.pv-accordion-body .pv-ingredients-text
{
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.7;
}

/* ---------- Section Wrapper ---------- */
.pv-section
{
    padding: 80px 0;
}

@media (min-width: 768px)
{
    .pv-section
    {
        padding: 112px 0;
    }
}

.pv-section-bg-white
{
    background: #ffffff;
}

.pv-section-bg-warm
{
    background: var(--surface-warm);
}

.pv-section-bg-surface
{
    background: var(--surface);
}

.pv-section-inner
{
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px)
{
    .pv-section-inner
    {
        padding: 0 48px;
    }
}

.pv-section-narrow
{
    max-width: var(--max-w-5xl);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

@media (min-width: 768px)
{
    .pv-section-narrow
    {
        padding: 0 48px;
    }
}

.pv-section-title
{
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
    margin: 0 0 16px 0;
}

@media (min-width: 768px)
{
    .pv-section-title
    {
        font-size: 48px;
    }
}

.pv-section-subtitle
{
    text-align: center;
    color: var(--ink-light);
    font-size: 14px;
    margin: 0 auto 64px;
    max-width: 600px;
    line-height: 1.7;
}

.pv-section-eyebrow
{
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
    margin: 0 0 64px 0;
}

/* ---------- Key Ingredients Visual ---------- */
.pv-ingredients-visual
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px)
{
    .pv-ingredients-visual
    {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.pv-ingredient-card
{
    background: var(--surface-warm);
    padding: 32px;
}

@media (min-width: 768px)
{
    .pv-ingredient-card
    {
        padding: 48px;
    }
}

.pv-ingredient-title
{
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

@media (min-width: 768px)
{
    .pv-ingredient-title
    {
        font-size: 24px;
    }
}

.pv-ingredient-desc
{
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Clinical Results ---------- */
.pv-clinical-stats
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px)
{
    .pv-clinical-stats
    {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.pv-clinical-stat
{
    text-align: center;
}

.pv-clinical-num
{
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 8px 0;
    line-height: 1;
}

@media (min-width: 768px)
{
    .pv-clinical-num
    {
        font-size: 64px;
    }
}

.pv-clinical-num-percent
{
    font-size: 0.5em;
    margin-left: 2px;
}

.pv-clinical-label
{
    font-size: 12px;
    color: var(--ink-light);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px)
{
    .pv-clinical-label
    {
        font-size: 14px;
    }
}

/* ---------- How to Use Visual ---------- */
.pv-howto-steps
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px)
{
    .pv-howto-steps
    {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.pv-howto-step
{
    text-align: center;
}

.pv-howto-num
{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
}

@media (min-width: 768px)
{
    .pv-howto-num
    {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
}

.pv-howto-title
{
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.pv-howto-desc
{
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Brand Signature ---------- */
.pv-brand-signature
{
    background: var(--surface);
    padding: 64px 24px;
    text-align: center;
}

@media (min-width: 768px)
{
    .pv-brand-signature
    {
        padding: 96px 24px;
    }
}

.pv-brand-signature-title
{
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px 0;
    line-height: 1;
}

@media (min-width: 768px)
{
    .pv-brand-signature-title
    {
        font-size: 96px;
    }
}

.pv-brand-signature-title .pv-brand-accent
{
    color: var(--brand-dark);
}

.pv-brand-signature-tagline
{
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    margin: 0;
}

/* ---------- Related Products ---------- */
.pv-related
{
    background: #ffffff;
    padding: 64px 0;
}

@media (min-width: 768px)
{
    .pv-related
    {
        padding: 96px 0;
    }
}

.pv-related-inner
{
    max-width: var(--max-w-7xl);
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px)
{
    .pv-related-inner
    {
        padding: 0 48px;
    }
}

.pv-related-title
{
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: center;
    margin: 0 0 40px 0;
}

@media (min-width: 768px)
{
    .pv-related-title
    {
        font-size: 30px;
    }
}

.pv-related-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px)
{
    .pv-related-grid
    {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

.pv-related-card
{
    display: block;
    cursor: pointer;
}

.pv-related-image
{
    aspect-ratio: 1 / 1;
    background: var(--surface-warm);
    overflow: hidden;
    margin-bottom: 12px;
}

.pv-related-image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pv-related-card:hover .pv-related-image img
{
    transform: scale(1.05);
}

.pv-related-name
{
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

@media (min-width: 768px)
{
    .pv-related-name
    {
        font-size: 14px;
    }
}

.pv-related-card:hover .pv-related-name
{
    color: var(--brand-dark);
}

.pv-related-price
{
    font-size: 12px;
    color: var(--ink-muted);
    margin: 0;
}

/* ---------- Fade-in Animation ---------- */
.fade-in
{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible
{
    opacity: 1;
    transform: translateY(0);
}

/* ---------- LINE Float Button (sync with product_list.css) ---------- */
.line-float-btn
{
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06C755;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.line-float-btn:hover
{
    transform: translateY(-2px);
}

.line-float-btn .line-label
{
    display: inline;
}

.line-float-btn .line-icon svg
{
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}
