/* OA product pages: homepage look (ink / sand / paper, Noto Sans TC + Instrument Serif). Scoped to body.oa-pdp. */
.oa-pdp{--oa-ink:#17181B;--oa-sand:#F1ECE5;--oa-paper:#FFFFFF;--oa-muted:#6B675F;--oa-line:rgba(23,24,27,.14);--oa-sans:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;--oa-serif:'Instrument Serif',Georgia,serif}
.oa-pdp #main,.oa-pdp .product-footer,.oa-pdp .product-main{background:var(--oa-paper)}
.oa-pdp .product-summary,.oa-pdp .product-footer{font-family:var(--oa-sans);color:var(--oa-ink)}

/* title + price */
.oa-pdp .product-summary .product-title{font-family:var(--oa-sans);font-weight:700;font-size:clamp(22px,2.2vw,28px);line-height:1.3;letter-spacing:.01em;color:var(--oa-ink);margin-bottom:6px}
.oa-pdp .product-summary .price{font-family:var(--oa-sans);font-size:18px;font-weight:400;color:var(--oa-ink);font-variant-numeric:tabular-nums}
.oa-pdp .product-summary .price span.amount{font-weight:400}

/* variation labels: color / size -> 顏色 / 尺寸 */
.oa-pdp .variations th.label{padding-bottom:6px}
.oa-pdp .variations th.label label{font-size:0;font-weight:400;letter-spacing:.08em;color:var(--oa-muted)}
.oa-pdp .variations th.label label *{font-size:12px;color:var(--oa-ink);letter-spacing:.02em}
.oa-pdp .variations th.label label[for="pa_color"]::before{content:"顏色";font-size:12px}
.oa-pdp .variations th.label label[for="pa_size"]::before{content:"尺寸";font-size:12px}

/* size buttons: square, regular sizes first, then ⁺ long versions */
.oa-pdp ul[data-attribute_name="attribute_pa_size"]{display:flex!important;flex-wrap:wrap;gap:6px;margin:0}
.oa-pdp ul[data-attribute_name="attribute_pa_size"] li.variable-item{border-radius:0!important;box-shadow:none!important;border:1px solid var(--oa-line)!important;min-width:52px;height:42px!important;margin:0!important;background:transparent;color:var(--oa-ink)}
.oa-pdp ul[data-attribute_name="attribute_pa_size"] li.variable-item .variable-item-span{font-family:var(--oa-sans);font-size:13px;padding:0 10px}
.oa-pdp ul[data-attribute_name="attribute_pa_size"] li.variable-item:hover{border-color:var(--oa-ink)!important}
.oa-pdp ul[data-attribute_name="attribute_pa_size"] li.variable-item.selected{background:var(--oa-ink)!important;border-color:var(--oa-ink)!important;color:var(--oa-sand)!important}
.oa-pdp ul[data-attribute_name="attribute_pa_size"] li.variable-item.selected .variable-item-span{color:var(--oa-sand)}
/* sold out: colour or size crossed out (thin diagonal + struck text), not clickable */
.oa-pdp table.variations li.variable-item.disabled,.oa-pdp table.variations li.variable-item.no-stock,.oa-pdp table.variations li.variable-item.out-of-stock{opacity:1!important;position:relative;cursor:not-allowed!important;filter:none!important}
.oa-pdp table.variations li.variable-item.disabled .variable-item-contents,.oa-pdp table.variations li.variable-item.no-stock .variable-item-contents,.oa-pdp table.variations li.variable-item.out-of-stock .variable-item-contents{opacity:1!important;filter:none!important}
.oa-pdp table.variations li.variable-item.disabled .variable-item-span,.oa-pdp table.variations li.variable-item.no-stock .variable-item-span,.oa-pdp table.variations li.variable-item.out-of-stock .variable-item-span{color:#A9A59C!important;text-decoration:line-through;text-decoration-thickness:1px}
.oa-pdp table.variations li.variable-item .variable-item-contents::before{display:none!important;background:none!important}
.oa-pdp table.variations li.variable-item.disabled .variable-item-contents,.oa-pdp table.variations li.variable-item.no-stock .variable-item-contents{position:absolute!important;inset:0;width:auto!important;height:auto!important;display:flex;align-items:center;justify-content:center;border-radius:inherit}
.oa-pdp table.variations li.variable-item.disabled .variable-item-contents::after,.oa-pdp table.variations li.variable-item.no-stock .variable-item-contents::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(to top right,transparent calc(50% - .75px),#D0312D calc(50% - .75px),#D0312D calc(50% + .75px),transparent calc(50% + .75px))}
.oa-pdp ul[data-attribute_name="attribute_pa_color"] li.variable-item.disabled .variable-item-contents::after,.oa-pdp ul[data-attribute_name="attribute_pa_color"] li.variable-item.no-stock .variable-item-contents::after{border-radius:50%;background:linear-gradient(to top right,transparent calc(50% - .75px),#D0312D calc(50% - .75px),#D0312D calc(50% + .75px),transparent calc(50% + .75px))}
.oa-pdp li[data-value="xxs"]{order:1}.oa-pdp li[data-value="xs"]{order:2}.oa-pdp li[data-value="s"]{order:3}.oa-pdp li[data-value="m"]{order:4}.oa-pdp li[data-value="l"]{order:5}.oa-pdp li[data-value="xl"]{order:6}.oa-pdp li[data-value="xxl"]{order:7}
.oa-pdp li[data-value="xs%e2%81%ba"]{order:21}.oa-pdp li[data-value="s%e2%81%ba"]{order:22}.oa-pdp li[data-value="m%e2%81%ba"]{order:23}.oa-pdp li[data-value="l%e2%81%ba"]{order:24}
.oa-pdp ul[data-attribute_name="attribute_pa_size"]:has(li[data-value*="%e2%81%ba"])::after{content:"⁺ 加長版，建議身高 167cm 以上";order:20;flex-basis:100%;font-size:11px;letter-spacing:.06em;color:var(--oa-muted);padding-top:6px}
.oa-pdp .reset_variations{font-size:12px;color:var(--oa-muted)}

/* colour swatch */
.oa-pdp table.variations ul[aria-label="color"] li.variable-item.disabled .variable-item-contents,.oa-pdp table.variations ul[aria-label="color"] li.variable-item.no-stock .variable-item-contents{display:block!important;box-shadow:none!important;background:none!important}
.oa-pdp table.variations ul[aria-label="color"] li.variable-item.disabled .variable-item-span,.oa-pdp table.variations ul[aria-label="color"] li.variable-item.no-stock .variable-item-span{display:none!important}

.oa-pdp ul[data-attribute_name="attribute_pa_color"] li.variable-item{box-shadow:0 0 0 1px var(--oa-line)!important}
.oa-pdp ul[data-attribute_name="attribute_pa_color"] li.variable-item.selected{box-shadow:0 0 0 1px var(--oa-ink)!important}

/* quantity + add to cart on one row: [− 1 +][加入購物車] */
.oa-pdp .product-summary .woocommerce-variation-add-to-cart,.oa-pdp .product-summary form.cart:not(.variations_form){display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:stretch;gap:8px}
.oa-pdp .product-summary .quantity{display:inline-flex!important;flex-direction:row!important;flex:0 0 auto;width:auto!important;align-items:stretch;border:1px solid var(--oa-line);margin:0!important;height:50px;background:transparent;left:0!important;top:0!important;position:relative}
.oa-pdp .product-summary .quantity::before{content:none!important;display:none!important}
.oa-pdp .product-summary .quantity .minus{order:1!important}.oa-pdp .product-summary .quantity input.qty{order:2!important}.oa-pdp .product-summary .quantity .plus{order:3!important}
.oa-pdp .product-summary .quantity .button,.oa-pdp .product-summary .quantity input.qty{border:0!important;background:transparent!important;box-shadow:none!important;height:48px!important;min-height:0!important;margin:0!important;color:var(--oa-ink)!important;font-family:var(--oa-sans)}
.oa-pdp .product-summary .quantity .button{width:38px!important;padding:0!important;font-size:16px}
.oa-pdp .product-summary .quantity input.qty{width:36px!important;font-size:14px;padding:0!important;text-align:center}
.oa-pdp .product-summary .single_add_to_cart_button.button{flex:1 1 200px;margin:0!important;background:var(--oa-ink)!important;color:var(--oa-sand)!important;border:0!important;border-radius:0!important;height:50px;min-height:50px;font-family:var(--oa-sans);font-size:14px;font-weight:500;letter-spacing:.12em;text-transform:none}
.oa-pdp .product-summary .single_add_to_cart_button.button:hover{opacity:.88}
.oa-pdp .product-summary .btn-size{flex:1 1 100%;margin:0}
.oa-pdp.oa-has-fit .btn-size{display:none!important}

/* size finder trigger: square, ink */
.oa-pdp .oasf-trigger{border-radius:0;background:transparent;color:var(--oa-ink);border-color:var(--oa-ink);font-weight:500}
.oa-pdp .oasf-trigger:hover{background:var(--oa-ink);color:var(--oa-sand)}

/* trust row */
.oa-trust{list-style:none;margin:18px 0 0!important;padding:14px 0 0!important;border-top:1px solid var(--oa-line);display:grid;gap:3px;font-size:12px;color:var(--oa-muted);font-family:var(--oa-sans)}
.oa-trust li{margin:0!important;padding:0!important;list-style:none}
.oa-trust a{color:var(--oa-muted);text-decoration:underline;text-underline-offset:3px}
.oa-trust a:hover{color:var(--oa-ink)}

/* accordions + related */
.oa-pdp .product-footer .accordion-title{font-family:var(--oa-sans);font-weight:500;color:var(--oa-ink)}
.oa-pdp .related .product-section-title,.oa-pdp .related > h3{font-family:var(--oa-sans);font-weight:700;letter-spacing:.04em}

/* size images stay visible inside 商品描述 too (Derek 2026-10-17) */

}

/* sticky add-to-cart bar: theme it, and lift the LINE button + back-to-top above it while it shows */
.oa-pdp .sticky-add-to-cart--active{background:var(--oa-paper)!important;border-top:1px solid var(--oa-line);box-shadow:none!important}
.oa-pdp .sticky-add-to-cart--active .single_add_to_cart_button{background:var(--oa-ink)!important;color:var(--oa-sand)!important;border-radius:0!important;letter-spacing:.12em}
.oa-pdp .sticky-add-to-cart--active .quantity{left:0!important}
.oa-pdp .sticky-add-to-cart--active .quantity::before{content:none!important;display:none!important}
.oa-pdp .chaty-widget,.oa-pdp #top-link{transition:bottom .3s ease}
body.oa-pdp:has(.sticky-add-to-cart--active) .chaty-widget{bottom:84px!important}
body.oa-pdp:has(.sticky-add-to-cart--active) #top-link{bottom:76px!important}

/* short description: tagline + ✓ points */
.oa-pdp .product-short-description{font-family:var(--oa-sans);font-size:14px;line-height:1.75;color:var(--oa-ink);margin:12px 0 18px}
.oa-pdp .product-short-description p{margin:0 0 8px}
.oa-pdp .product-short-description .oa-soul{color:var(--oa-muted)}
.oa-pdp .product-short-description ul.oa-points{list-style:none;margin:0!important;padding:0!important;display:grid;gap:3px}
.oa-pdp .product-short-description ul.oa-points li{margin:0!important;padding:0 0 0 1.4em!important;list-style:none;position:relative}
.oa-pdp .product-short-description ul.oa-points li::before{content:"✓";position:absolute;left:0;color:var(--oa-ink)}

/* Flatsome wraps qty + button in .sticky-add-to-cart when the sticky bar is enabled; keep them on one row in place */
.oa-pdp .product-summary .sticky-add-to-cart:not(.sticky-add-to-cart--active){display:flex!important;flex-wrap:wrap;align-items:stretch;gap:8px;width:100%}
.oa-pdp .product-summary .sticky-add-to-cart-wrapper{flex:1 1 100%;width:100%;min-width:0}

/* minimal product title: smaller, medium weight, price reads as one block with it */
.oa-pdp .product-summary .product-title{font-size:20px!important;font-weight:500!important;letter-spacing:.03em!important;line-height:1.4!important;margin-bottom:4px!important}
.oa-pdp .product-summary .price{font-size:15px!important;letter-spacing:.02em}
@media (max-width:849px){.oa-pdp .product-summary .product-title{font-size:18px!important}}
