.chibi-product {
  --pd-canvas: #f6f1e8; --pd-surface: #fffcf8; --pd-wine: #702f3d; --pd-ink: #29211f;
  --pd-muted: #6c5c57; --pd-line: #d8cbc3; --pd-border: #8e7972; --pd-rose: #ebddd8; --pd-error: #a12f34;
  --pd-ease: cubic-bezier(.16,1,.3,1);
  box-sizing: border-box; max-width: 1296px; margin: auto; padding: 24px 48px 80px;
  color: var(--pd-ink); font-family: 'DM Sans',Arial,sans-serif; font-size: 1rem; line-height: 1.6;
}
.chibi-product *, .chibi-product *::before, .chibi-product *::after { box-sizing: border-box; }
.chibi-product [hidden] { display: none !important; }
.chibi-product ::selection { background: var(--pd-rose); color: var(--pd-ink); }
.chibi-product button, .chibi-product input, .chibi-product select { font: inherit; border-radius: 0; }
.chibi-product a { color: inherit; text-underline-offset: .25em; }
.chibi-product :focus-visible { outline: 3px solid var(--pd-wine); outline-offset: 4px; }
.chibi-product svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.pd-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: .875rem; color: var(--pd-muted); margin-bottom: 28px; }
.pd-breadcrumb a { text-decoration: none; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: start; gap: 48px; }
.pd-gallery, .pd-summary { min-width: 0; }
.pd-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--pd-rose); }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slide { display: block; flex: 0 0 100%; min-width: 0; aspect-ratio: 2 / 3; scroll-snap-align: start; position: relative; }
.pd-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pd-slide.is-broken::after { content: 'Image unavailable'; position: absolute; inset: 0; display: grid; place-items: center; background: var(--pd-rose); }
.pd-no-image { aspect-ratio: 2 / 3; display: grid; place-items: center; width: 100%; color: var(--pd-muted); }
.pd-gallery-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .875rem; min-height: 56px; }
.pd-gallery-tools > span:nth-child(2) { margin-inline-start: auto; color: var(--pd-muted); }
.pd-icon { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; color: var(--pd-wine); }
.pd-thumbs { display: flex; gap: 12px; overflow: auto; padding: 5px 4px; scrollbar-color: var(--pd-wine) var(--pd-line); scrollbar-width: thin; }
.pd-thumb { width: 64px; flex: 0 0 64px; height: 88px; border: 1px solid transparent; padding: 4px; background: transparent; cursor: pointer; }
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb[aria-pressed='true'] { border-color: var(--pd-wine); }
.pd-thumb:hover { background: var(--pd-rose); }
.pd-summary { padding-top: 8px; }
.pd-summary.is-sticky { position: sticky; top: 24px; }
.pd-summary h1 { font-family: 'Fraunces',Georgia,serif; font-weight: 500; font-size: 2.75rem; line-height: 1.18; letter-spacing: -.025em; margin: 0 0 24px; overflow-wrap: anywhere; text-wrap: balance; }
.pd-price { font-size: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.pd-inventory { color: var(--pd-error); margin: 8px 0 0; }
.pd-inventory:empty { display: none; }
.pd-short-description { margin-top: 20px; max-width: 65ch; overflow-wrap: anywhere; }
.pd-short-description img { max-width: 100%; height: auto; }
.pd-details-link { display: inline-flex; align-items: center; gap: 8px; color: var(--pd-wine) !important; font-size: .9375rem; margin: 20px 0 32px; }
.pd-option-group { margin: 0 0 24px; }
.pd-option-group label { display: block; margin-bottom: 12px; font-weight: 500; }
.pd-option-group select { width: 100%; padding: 12px; background: var(--pd-surface); color: var(--pd-ink); border: 1px solid var(--pd-border); min-height: 48px; }
.pd-option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option-buttons button { position: relative; overflow: hidden; min-height: 48px; min-width: 64px; padding: 10px 16px; color: var(--pd-wine); background: transparent; border: 1px solid var(--pd-border); cursor: pointer; transition: background-color 220ms,color 220ms,border-color 220ms; }
.pd-option-buttons button:hover { background: var(--pd-rose); border-color: var(--pd-wine); }
.pd-option-buttons button[aria-pressed='true'] { background: var(--pd-wine); color: white; border-color: var(--pd-wine); }
.pd-quantity-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin: 24px 0 16px; }
.pd-quantity { display: flex; flex-shrink: 0; border: 1px solid var(--pd-border); background: var(--pd-surface); }
.pd-quantity button { width: 44px; min-height: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--pd-wine); cursor: pointer; }
.pd-quantity button:disabled { cursor: default; color: var(--pd-muted); }
.pd-quantity input { width: 52px; border: 0; border-inline: 1px solid var(--pd-line); text-align: center; padding: 6px 0; background: transparent; color: var(--pd-ink); appearance: textfield; caret-color: var(--pd-wine); }
.pd-quantity input::-webkit-inner-spin-button, .pd-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.pd-error, .pd-image-error { color: var(--pd-error); font-size: .875rem; }
.pd-selection-status { min-height: 1.6em; margin: 0 0 20px; font-size: .875rem; color: var(--pd-muted); }
.pd-button { isolation: isolate; position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid var(--pd-wine); color: var(--pd-wine) !important; background: transparent; min-height: 52px; padding: 12px 24px; text-decoration: none; font-weight: 500; font-size: .9375rem; overflow: hidden; cursor: pointer; transition: color 300ms; }
.pd-button::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--pd-wine); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--pd-ease); }
.pd-button > span { min-width: 0; overflow-wrap: anywhere; }
.pd-button:not(:disabled):is(:hover,:focus-visible)::before { transform: scaleX(1); }
.pd-button:not(:disabled):is(:hover,:focus-visible) { color: white !important; }
.pd-button:active:not(:disabled) { transform: scale(.985); }
.pd-button:disabled { cursor: not-allowed; background: var(--pd-rose); border-color: var(--pd-line); color: var(--pd-muted) !important; }
.pd-summary > .pd-button { width: 100%; }
.pd-purchase-note { font-size: .875rem; margin: 14px 0 0; text-align: center; }
.pd-preview-note { font-size: .875rem; color: var(--pd-muted); text-align: center; margin: 4px 0 0; }
.pd-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 64px; border-top: 1px solid var(--pd-line); padding-top: 64px; margin-top: 96px; scroll-margin-top: 32px; }
.chibi-product h2 { font-family: 'Fraunces',Georgia,serif; font-weight: 500; font-size: 2.5rem; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 20px; text-wrap: balance; overflow-wrap: anywhere; }
.pd-details > div > p { color: var(--pd-muted); margin: 0; }
.pd-description { min-width: 0; max-width: 70ch; overflow-wrap: anywhere; }
.pd-description > :first-child { margin-top: 0; }
.pd-description p { margin: 0 0 20px; }
.pd-description img { max-width: 100%; height: auto; }
.pd-description ul { padding-inline-start: 22px; }
.pd-description h2, .pd-description h3 { font-family: 'DM Sans',Arial,sans-serif; font-size: 1.25rem; margin: 32px 0 12px; }
.pd-description table { display: block; max-width: 100%; overflow: auto; }
.pd-facts { border-top: 1px solid var(--pd-line); margin-top: 24px; padding: 4px 0; }
.pd-facts summary { padding: 18px 0; cursor: pointer; color: var(--pd-wine); }
.pd-facts dl { margin: 0; }
.pd-facts dl > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 12px 0; }
.pd-facts dd { margin: 0; }
.pd-related { margin-top: 96px; }
.pd-related-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pd-related-heading > a { color: var(--pd-wine); flex-shrink: 0; }
.pd-related-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px)/4); list-style: none; gap: 24px; overflow: auto; margin: 0; padding: 0 0 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--pd-wine) var(--pd-line); }
.pd-related-track > li { min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.pd-related-photo { display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; background: var(--pd-rose); }
.pd-related-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--pd-ease); }
.pd-related-photo:hover img { transform: scale(1.025); }
.pd-related h3 { font-size: 1rem; font-weight: 500; line-height: 1.45; margin: 16px 0; overflow-wrap: anywhere; }
.pd-related h3 a { text-decoration: none; }
.pd-related li > p { margin: auto 0 20px; padding-top: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pd-related .pd-button { padding-inline: 12px; }
.pd-mobile-bar { display: none; }
.pd-lightbox { width: min(100vw - 32px,1000px); height: min(100dvh - 32px,1000px); background: var(--pd-surface); color: var(--pd-ink); border: 0; padding: 64px 24px 24px; }
.pd-lightbox::backdrop { background: rgb(41 33 31 / .8); }
.pd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pd-lightbox img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-lightbox [data-full-image-host] { display: contents; }
.pd-lightbox-close { position: absolute; right: 16px; top: 8px; display: flex; align-items: center; gap: 12px; min-height: 44px; border: 0; background: transparent; color: var(--pd-wine); cursor: pointer; }
@media (min-width:1200px) {
 .chibi-product { max-width: calc(var(--site-content-width, 1400px) + 96px); }
}
@media (max-width:1199px) {
 .chibi-product { max-width: 784px; padding-inline: 32px; }
 .pd-layout { grid-template-columns: 1fr; gap: 40px; }
 .pd-summary.is-sticky { position: static; }
 .pd-summary h1 { font-size: 2.25rem; }
 .pd-details { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; padding-top: 48px; }
 .pd-related-track { grid-auto-columns: calc((100% - 24px)/2); }
 .pd-related-heading { display: block; }
}
@media (max-width:767px) {
 .chibi-product { padding: 20px 20px 64px; }
 .chibi-product[data-enhanced] { padding-bottom: calc(var(--pd-bar-height,112px) + 40px); }
 .pd-breadcrumb { gap: 8px; margin-bottom: 20px; font-size: .8125rem; }
 .pd-layout { gap: 28px; }
 .pd-summary h1 { font-size: 2rem; }
 .pd-price { font-size: 1.5rem; }
 .pd-thumbs { gap: 8px; }
 .pd-thumb { width: 56px; flex-basis: 56px; height: 76px; }
 .chibi-product h2 { font-size: 2rem; }
 .pd-related { margin-top: 64px; }
 .pd-related-track { gap: 16px; grid-auto-columns: calc((100% - 16px)/1.5); }
 .chibi-product[data-enhanced] .pd-mobile-bar { position: fixed; z-index: 10; bottom: 0; left: 0; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: center; gap: 16px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--pd-surface); border-top: 1px solid var(--pd-line); }
 .pd-mobile-bar strong { font-size: .9375rem; line-height: 1.35; font-weight: 500; display: block; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
 .pd-mobile-label { font-size: .75rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; color: var(--pd-muted); }
 .pd-mobile-bar .pd-button { font-size: .875rem; padding: 10px 12px; min-height: 48px; }
 .pd-lightbox { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding-inline: 12px; }
 .pd-related .pd-button svg { display: none; }
}
