/* Prebuilt — single listing, marketplace item layout (v1.5.0). */
.woocommerce div.product.pb-listing { display: block; }
.pb-w100 { width: 100%; }
.pb-btn--outline { --b-bg: transparent; --b-fg: var(--pb-text); border-color: color-mix(in srgb, var(--pb-text) 70%, transparent); }
.pb-btn--outline:hover { --b-bg: var(--pb-ink); --b-fg: #fff; border-color: var(--pb-ink); }
.pb-btn--outline-light { --b-bg: transparent; --b-fg: #F4F2EC; border-color: rgba(255, 255, 255, .3); }
.pb-btn .pb-ico { width: 18px; height: 18px; }
.pb-btn .pb-ico + .pb-ico { width: 15px; height: 15px; margin-left: -2px; }

/* ------------------------------------------------ item header */
.pb-ihead { padding: calc(var(--pb-header-h) + 20px) 0 0; overflow: visible; }
.pb-ihead .pb-crumbs { margin: 0 0 18px; font-size: 13.5px; }
.pb-ihead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; }
.pb-ihead__main { min-width: 0; max-width: 860px; }
.pb-ihead__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; color: #F4F2EC; }
.pb-ihead__meta { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 16px 0 0; padding: 0; font-size: 14.5px; color: var(--t-muted); }
.pb-ihead__meta li { display: inline-flex; align-items: center; gap: 7px; }
.pb-ihead__meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .4; margin-right: 15px; }
.pb-ihead__meta a { color: #F4F2EC; text-decoration: none; font-weight: 600; }
.pb-ihead__meta a:hover { color: var(--pb-accent); }
.pb-ihead__meta .pb-ico { width: 16px; height: 16px; opacity: .8; }
.pb-ihead__badge { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--pb-accent); font-weight: 600; font-size: 13px; }
.pb-ihead__badge.is-sold { color: #FF8A85; }
.pb-ihead__badge::before { display: none !important; }
.pb-ihead__price { flex: none; text-align: right; }
.pb-ihead__price strong { display: block; font: var(--pb-hw) clamp(32px, 3.2vw, 44px)/1 var(--pb-font-head); letter-spacing: -.04em; color: #F4F2EC; }
.pb-ihead__price strong del { font-size: .5em; opacity: .5; } .pb-ihead__price strong ins { text-decoration: none; }
.pb-ihead__price small { display: block; margin-top: 6px; font-size: 13px; color: var(--t-muted); }

/* tab bar */
.pb-itabs { position: sticky; top: var(--pb-header-h); z-index: 30; border-top: 1px solid var(--t-line); background: var(--pb-ink); transform: translateZ(0); backface-visibility: hidden; }
.pb-itabs .pb-wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pb-itabs .pb-wrap::-webkit-scrollbar { display: none; }
.pb-itabs a { position: relative; flex: none; padding: 16px 14px; color: var(--t-muted); font: 600 14.5px var(--pb-font-body); text-decoration: none; white-space: nowrap; transition: color .2s; }
.pb-itabs a:first-child { padding-left: 0; }
.pb-itabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pb-accent); transform: scaleX(0); transition: transform .25s; }
.pb-itabs a:first-child::after { left: 0; }
.pb-itabs a:hover, .pb-itabs a.is-active { color: #F4F2EC; }
.pb-itabs a.is-active::after { transform: none; }
.pb-sticky .pb-itabs { top: var(--pb-header-h); }
.admin-bar.pb-sticky .pb-itabs { top: calc(var(--pb-header-h) + 32px); }

/* ------------------------------------------------ body grid */
.pb-ibody { padding: 40px 0 clamp(56px, 7vw, 96px); overflow: visible; }
.pb-ibody__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "preview side" "content side"; gap: 40px clamp(28px, 4vw, 56px); align-items: start; }
.pb-ipreview { grid-area: preview; min-width: 0; }
.pb-iside { grid-area: side; position: sticky; top: calc(var(--pb-header-h) + 72px); display: grid; gap: 16px; }
.pb-icontent { grid-area: content; min-width: 0; }

/* preview */
.pb-ipreview__frame { border-radius: var(--pb-radius); overflow: hidden; border: 1px solid var(--pb-line); background: var(--pb-paper); box-shadow: 0 30px 70px -45px rgba(10, 14, 23, .45); }
.pb-ipreview__img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pb-ipreview__img img, .pb-ipreview .pb-shot__img { display: block; width: 100% !important; height: auto !important; transition: opacity .25s; }
.pb-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.pb-thumbs button { flex: none; width: 120px; aspect-ratio: var(--pb-card-ratio, 1905 / 880); padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--pb-paper); cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.pb-thumbs button.is-active, .pb-thumbs button:hover { opacity: 1; border-color: var(--pb-ink); }
.pb-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pb-ipreview__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pb-ipreview__actions .pb-btn { min-width: 200px; }

/* ------------------------------------------------ sidebar */
.pb-buybox { padding: 24px; border-radius: var(--pb-radius); background: var(--pb-bg); border: 1px solid var(--pb-line); box-shadow: 0 30px 60px -40px rgba(10, 14, 23, .4); }
.pb-buybox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--pb-line); }
.pb-buybox__head span { font: var(--pb-hw) 17px var(--pb-font-head); }
.pb-buybox__head strong { font: var(--pb-hw) 34px/1 var(--pb-font-head); letter-spacing: -.04em; }
.pb-buybox__head strong del { font-size: .5em; opacity: .45; } .pb-buybox__head strong ins { text-decoration: none; }
.pb-buybox__inc { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.pb-buybox__inc li { display: flex; align-items: flex-start; gap: 10px; }
.pb-buybox__inc .pb-ico { width: 18px; height: 18px; flex: none; color: #1F9D55; stroke-width: 2.6; margin-top: 1px; }
.pb-buybox > .pb-btn { margin-top: 10px; }
.pb-buybox__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--pb-muted); }

.pb-panel__buy form.cart, .woocommerce div.product .pb-panel__buy form.cart { display: block !important; margin: 0 !important; }
.pb-panel__buy .quantity { display: none !important; }
.woocommerce .pb-panel__buy .single_add_to_cart_button, .pb-panel__buy .single_add_to_cart_button { width: 100%; padding: 18px 24px !important; font-size: 16px !important; background: var(--pb-accent) !important; color: var(--pb-accent-ink) !important; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pb-accent) 90%, transparent); }
.pb-panel__soldmsg { margin: 0 0 12px; color: #B42318; font-weight: 600; }

.pb-pw { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--pb-radius-sm); background: var(--pb-paper); font-size: 13.5px; color: var(--pb-muted); }
.pb-pw .pb-ico { width: 16px; height: 16px; color: var(--pb-text); flex: none; }
.pb-pw code { padding: 3px 8px; border-radius: 6px; background: var(--pb-bg); color: var(--pb-text); font: 600 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.pb-pw__copy { margin-left: auto; padding: 6px 12px; border: 1px solid var(--pb-line); border-radius: 999px; background: var(--pb-bg); color: var(--pb-text); font: 600 12.5px var(--pb-font-body); cursor: pointer; }
.pb-pw__copy:hover { border-color: var(--pb-text); }
.pb-pw__copy.is-done { background: #E4F6EC; border-color: #E4F6EC; color: #16683C; }

.pb-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--pb-line); font: 600 13.5px var(--pb-font-body); }
.pb-badge__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #FFF4D6; color: #8A5A00; }
.pb-badge__ico.is-ok { background: #E4F6EC; color: #16683C; }
.pb-badge__ico.is-blue { background: #E8ECFF; color: #3443C7; }
.pb-badge__ico .pb-ico { width: 15px; height: 15px; }

.pb-sellerbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 18px; border-radius: var(--pb-radius); border: 1px solid var(--pb-line); }
.pb-seller__logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pb-ink); color: var(--pb-accent); font: var(--pb-hw) 22px var(--pb-font-head); }
.pb-sellerbox small { display: block; font-size: 12px; color: var(--pb-muted); }
.pb-sellerbox strong { font: var(--pb-hw) 17px var(--pb-font-head); }
.pb-sellerbox__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pb-sellerbox__btns .pb-btn { --b-fg: var(--pb-text); border-color: var(--pb-line); padding: 10px 12px; font-size: 13.5px; }
.pb-sellerbox__btns .pb-btn:hover { border-color: var(--pb-text); }

.pb-attrs { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--pb-line); }
.pb-attrs th, .pb-attrs td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pb-line); }
.pb-attrs tr:last-child th, .pb-attrs tr:last-child td { border-bottom: 0; }
.pb-attrs th { width: 42%; font-weight: 500; color: var(--pb-muted); }
.pb-attrs td { font-weight: 600; overflow-wrap: anywhere; }
.pb-attrs a { color: var(--pb-accent-2); text-decoration: none; }
.pb-attrs a:hover { text-decoration: underline; }

/* ------------------------------------------------ content sections */
.pb-isec { padding: 40px 0; border-top: 1px solid var(--pb-line); scroll-margin-top: calc(var(--pb-header-h) + 70px); }
.pb-isec:first-child { padding-top: 8px; border-top: 0; }
.pb-isec h2 { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; }
.pb-isec__lead { font-size: 18px; line-height: 1.65; color: var(--pb-text); }
.pb-isec__lead p { margin: 0 0 14px; }
.pb-isec__body { font-size: 16.5px; line-height: 1.75; color: color-mix(in srgb, var(--pb-text) 84%, transparent); }
.pb-isec__body h3 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -.015em; color: var(--pb-text); }
.pb-isec__body ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.pb-isec__body ul li { position: relative; padding-left: 22px; margin: 0; }
.pb-isec__body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--pb-accent-2); }
.pb-incl2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-incl2 li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--pb-radius-sm); border: 1px solid var(--pb-line); font-weight: 500; line-height: 1.45; }
.pb-incl2 li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--pb-accent); color: var(--pb-accent-ink); }
.pb-incl2 .pb-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.pb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pb-timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--pb-line); }
.pb-timeline li { position: relative; display: flex; gap: 22px; padding: 0 0 28px; }
.pb-timeline li:last-child { padding-bottom: 0; }
.pb-timeline__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--pb-ink); color: var(--pb-accent); font: var(--pb-hw) 16px var(--pb-font-head); }
.pb-timeline strong { display: block; margin-top: 10px; font: var(--pb-hw) 18px var(--pb-font-head); }
.pb-timeline p { margin: 4px 0 0; color: var(--pb-muted); }
.pb-isec .pb-acc { --t-line: var(--pb-line); --t-fg: var(--pb-text); --t-card: var(--pb-bg); --t-soft: var(--pb-paper); --t-muted: var(--pb-muted); }
.pb-disclaim { margin: 16px 0 0; font-size: 13px; color: var(--pb-muted); }
.pb-disclaim a { color: inherit; }

/* ------------------------------------------------ lightbox */
.pb-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: rgba(6, 9, 15, .96); color: #F4F2EC; }
.pb-lightbox[hidden] { display: none; }
.pb-lightbox__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.pb-lightbox__bar strong { flex: 1; min-width: 0; font: var(--pb-hw) 15px var(--pb-font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-lightbox__count { font-size: 13px; color: rgba(244, 242, 236, .6); }
.pb-lightbox__close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #F4F2EC; cursor: pointer; }
.pb-lightbox__close .pb-ico { width: 18px; height: 18px; }
.pb-lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 76px 30px; min-height: 0; }
.pb-lightbox__img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); object-fit: contain; }
.pb-lightbox__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #F4F2EC; cursor: pointer; }
.pb-lightbox__nav:hover { background: var(--pb-accent); color: var(--pb-accent-ink); border-color: var(--pb-accent); }
.pb-lightbox__nav.is-prev { left: 16px; } .pb-lightbox__nav.is-prev .pb-ico { transform: rotate(180deg); }
.pb-lightbox__nav.is-next { right: 16px; }
.pb-lightbox__nav .pb-ico { width: 20px; height: 20px; }
.pb-lb-open, .pb-demo-open { overflow: hidden; }

/* ------------------------------------------------ live demo viewer */
.pb-demo { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #0B0F18; color: #F4F2EC; }
.pb-demo[hidden] { display: none; }
.pb-demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pb-demo__name { min-width: 0; }
.pb-demo__name strong { display: block; font: var(--pb-hw) 15px var(--pb-font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-demo__name span { font-size: 12.5px; color: rgba(244, 242, 236, .55); }
.pb-demo__devices { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.pb-demo__devices button { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(244, 242, 236, .7); font: 600 13px var(--pb-font-body); cursor: pointer; }
.pb-demo__devices button.is-active { background: #F4F2EC; color: var(--pb-ink); }
.pb-demo__actions { display: flex; align-items: center; gap: 8px; }
.pb-demo__actions .pb-btn--ghost { --b-fg: #F4F2EC; border-color: rgba(255, 255, 255, .2); }
.pb-demo__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #F4F2EC; cursor: pointer; }
.pb-demo__close .pb-ico { width: 18px; height: 18px; }
.pb-demo__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.pb-demo__frame { width: 100%; height: 100%; max-height: calc(100vh - 140px); border-radius: 12px; overflow: hidden; background: #fff; transition: width .45s, height .45s; }
.pb-demo__frame[data-device="tablet"] { width: 820px; max-width: 100%; height: min(1100px, calc(100vh - 140px)); border-radius: 26px; border: 12px solid #1C2333; }
.pb-demo__frame[data-device="mobile"] { width: 390px; max-width: 100%; height: min(844px, calc(100vh - 140px)); border-radius: 40px; border: 12px solid #1C2333; }
.pb-demo__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pb-demo__hint { margin: 12px 0 0; font-size: 12.5px; color: rgba(244, 242, 236, .5); }
.pb-demo__hint a { color: var(--pb-accent); }

/* ------------------------------------------------ mobile action bar */
.pb-actionbar { display: none; }

/* ------------------------------------------------ responsive */
@media (max-width: 1024px) {
	.pb-ibody__grid { grid-template-columns: 1fr; grid-template-areas: "preview" "side" "content"; }
	.pb-iside { position: static; }
	.pb-ihead__row { flex-direction: column; align-items: flex-start; gap: 16px; }
	.pb-ihead__price { text-align: left; display: flex; align-items: baseline; gap: 10px; }
}
@media (max-width: 767px) {
	.pb-ihead .pb-crumbs { display: none; }
	.pb-ihead__meta li + li::before { margin-right: 8px; }
	.pb-ihead__meta { gap: 6px 12px; font-size: 13.5px; }
	.pb-ibody { padding-top: 24px; }
	.pb-ipreview__actions .pb-btn { flex: 1 1 100%; min-width: 0; }
	.pb-thumbs button { width: 96px; }
	.pb-incl2 { grid-template-columns: 1fr; }
	.pb-lightbox__stage { padding: 10px 10px 80px; }
	.pb-lightbox__nav { top: auto; bottom: 18px; margin: 0; }
	.pb-lightbox__nav.is-prev { left: calc(50% - 60px); } .pb-lightbox__nav.is-next { right: calc(50% - 60px); }
	.pb-demo__bar { flex-wrap: wrap; }
	.pb-demo__name { flex: 1 1 60%; }
	.pb-demo__devices { order: 3; width: 100%; justify-content: center; }
	.pb-demo__actions .pb-btn--accent { display: none; }
	.pb-demo__frame[data-device] { border-width: 0; border-radius: 0; width: 100%; height: 100%; max-height: none; }
	.pb-demo__stage { padding: 0; }
	.pb-actionbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--pb-ink); color: #F4F2EC; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); transform: translateY(150%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
	.pb-actionbar.is-on { transform: none; }
	.pb-actionbar__price { flex: 1; min-width: 0; }
	.pb-actionbar__price small { display: block; font-size: 11px; opacity: .6; }
	.pb-actionbar__price strong { font: var(--pb-hw) 19px var(--pb-font-head); white-space: nowrap; }
	.pb-actionbar .pb-btn { padding: 11px 14px; }
	.pb-actionbar .pb-btn .pb-ico { display: none; }
	.pb-listing { padding-bottom: 84px; }
}
.admin-bar@media (max-width: 782px) { .admin-bar.pb-sticky .pb-itabs { top: calc(var(--pb-header-h) + 46px); } }

/* v1.5.2: stable sticky tab bar on product pages (no jump when the header moves) */
.single-product .pb-itabs { top: var(--pb-header-h); transition: none; }
.admin-bar.single-product .pb-itabs { top: calc(var(--pb-header-h) + 32px); }
.single-product .pb-sticky-header-fix { display: none; }
@media (max-width: 782px) { .admin-bar.single-product .pb-itabs { top: calc(var(--pb-header-h) + 46px); } }
.single-product .pb-header { transition: background .3s, box-shadow .3s; }
.single-product .pb-header.is-hidden { transform: none; }
