/* Page stylesheet ported from the design (build/pages/product). */

/* ---- top: gallery + buy column ---- */
.pd-top { padding: calc(var(--nav-top) + 18px) 0 clamp(40px, 6vw, 72px); background: var(--bone); color: var(--ink); }
.pd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; color: var(--fg-2); margin-bottom: 18px; }
.pd-crumbs a:hover { color: var(--accent-deep); }
.pd-crumbs i { font-style: normal; opacity: .5; }
.pd-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: start; } }
/* gallery */
.pd-gallery { display: grid; gap: 10px; }
.pd-stage { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #F3F1EC; touch-action: pan-y; user-select: none; box-shadow: 0 1px 2px rgba(26,27,29,.04), 0 10px 30px -18px rgba(26,27,29,.18); }
.pd-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.pd-slide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-slide.is-off { display: none; }
.pd-slide--cut img { width: 78%; height: auto; max-height: 84%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(26,27,29,.18)); }
.pd-slide--photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide--photo { cursor: zoom-in; }
.pd-stage .cc-badges { left: 14px; top: 14px; }
.pd-stage .cc-wish { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; }
.pd-arrow { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; transform: translateY(-50%); box-shadow: 0 6px 16px -8px rgba(26,27,29,.4); transition: background-color .3s ease, color .3s ease, opacity .3s ease; }
.pd-arrow:hover { background: var(--ink); color: var(--bone); }
.pd-arrow svg { width: 16px; height: 16px; }
.pd-arrow--prev { left: 12px; } .pd-arrow--prev svg { transform: scaleX(-1); }
.pd-arrow--next { right: 12px; }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; transition: background-color .3s ease, color .3s ease; }
.pd-zoom:hover { background: var(--ink); color: var(--bone); }
.pd-zoom svg { width: 18px; height: 18px; }
.pd-count { position: absolute; left: 14px; bottom: 16px; z-index: 3; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; order: 1; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #F3F1EC; border: 1px solid transparent; display: grid; place-items: center; opacity: .72; transition: opacity .3s ease, border-color .3s ease; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb--cut img { width: 80%; height: 80%; object-fit: contain; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-on { border-color: var(--ink); opacity: 1; }
.pd-thumb.is-off { display: none; }
@media (min-width: 1024px) { .pd-gallery { grid-template-columns: 72px minmax(0, 1fr); align-items: start; } .pd-thumbs { order: -1; flex-direction: column; overflow: visible; } .pd-thumb { flex-basis: auto; width: 68px; height: 68px; } }
/* buy column */
.pd-buy { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1024px) { .pd-gallery { position: sticky; top: calc(var(--nav-h) + 20px); } }
.pd-kicker { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.pd-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; margin-top: -6px; }
.pd-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-price b { font-size: 1.6rem; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.pd-price s { color: var(--fg-2); font-size: .9375rem; }
.pd-save { font-size: .6875rem; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 4px; background: #5A1E1A; color: var(--bone); }
.pd-tag { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--fg-2); margin-top: -6px; }
.pd-opt { display: grid; gap: 10px; }
.pd-opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8125rem; }
.pd-opt-head b { font-weight: 600; }
.pd-opt-head b span { font-weight: 400; color: var(--fg-2); }
.pd-opt-head button { font-size: .8125rem; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.pd-sw { width: 34px; height: 34px; }
.pd-sw i { width: 24px; height: 24px; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-size { position: relative; min-width: 50px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.pd-size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pd-size:hover { border-color: var(--ink); }
.pd-size:has(input:checked) { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.pd-size:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.pd-hint { font-size: .8125rem; color: var(--fg-2); }
.pd-actions { display: flex; gap: 10px; align-items: center; }
.pd-actions .qty { height: 52px; flex: none; }
.pd-actions .qty button { width: 40px; }
.pd-add { flex: 1; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--accent-deep); color: var(--bone); font-size: .9375rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background-color .3s ease, color .3s ease, transform .3s var(--ease-out); }
.pd-add:hover { background: var(--ink); }
.pd-add:active { transform: scale(.985); }
.pd-add.is-added { background: var(--success); }
.pd-buy .cc-wish { width: 52px; height: 52px; flex: none; }
.pd-buy .cc-wish svg { width: 20px; height: 20px; }
.pd-wa.btn { width: 100%; min-height: 48px; white-space: normal; text-align: center; line-height: 1.3; padding: 10px 20px; }
.pd-wa svg { width: 16px; height: 16px; }
.pd-stock { display: block; font-size: .8125rem; line-height: 1.5; }
.pd-stock i { display: inline-block; vertical-align: middle; margin: -2px 6px 0 0; }
.pd-stock span { color: var(--fg-2); font-weight: 400; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.35; }
.pd-perks svg { flex: none; width: 22px; height: 22px; color: var(--accent-deep); }
.pd-perks b { display: block; font-weight: 600; }
.pd-perks span { color: var(--fg-2); }
.pd-buy .acc summary { padding: 16px 0; font-size: .9375rem; font-weight: 500; }
.pd-buy .acc .acc-body { font-size: .9375rem; line-height: 1.55; }
/* ---- what you are holding ---- */
.pd-inside { padding: clamp(8px, 2vw, 16px) 0 0; }
.pd-card { display: grid; gap: 24px; background: #F4F2EE; border-radius: 18px; padding: clamp(22px, 3vw, 44px); }
.pd-card .explore-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.pd-card .explore-sub { max-width: 54ch; font-size: 1rem; }
.pd-card .spec { margin-top: 22px; }
.pd-card .spec dd { font-weight: 500; }
.pd-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) { .pd-card { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; } .pd-card--flip .pd-photo { order: -1; } }
/* ---- how it is made ---- */
.pd-made { padding: clamp(48px, 7vw, 96px) 0 clamp(8px, 2vw, 16px); }
.pd-made-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3vw, 36px); }
.pd-made-head .explore-sub { max-width: 52ch; }
.pd-steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
.pd-step { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.pd-step em { font-family: var(--font-display); font-style: normal; font-weight: 300; font-size: 1.9rem; line-height: 1; color: var(--accent-deep); }
.pd-step b { display: block; margin-top: 10px; font-weight: 600; font-size: 1rem; }
.pd-step p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--fg-2); }
@media (min-width: 640px) { .pd-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pd-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
/* ---- you may also like ---- */
.pd-more { padding: clamp(48px, 7vw, 96px) 0 0; }
.pd-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(20px, 3vw, 28px); }
.pd-more .wrap:not(.has-overflow) .rail-nav { visibility: hidden; }
@media (min-width: 1024px) { .pd-more .cc-track { --rail-w: calc((100% - 60px) / 4); gap: 20px; } }
@media (min-width: 640px) and (max-width: 1023px) { .pd-more .cc-track { --rail-w: calc((100% - 32px) / 3); gap: 16px; } }
/* ---- sticky bar (phones) ---- */
.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(239,237,230,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.pd-bar.is-on { transform: none; }
.pd-bar-info { flex: 1; min-width: 0; display: grid; }
.pd-bar-name { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bar-price { font-size: .875rem; font-weight: 700; color: var(--accent-deep); }
.pd-bar .pd-add { flex: none; min-height: 46px; padding: 0 22px; }
@media (min-width: 1024px) { .pd-bar { display: none; } }
/* ---- lightbox ---- */
.pd-lb { position: fixed; inset: 0; z-index: 90; background: rgba(26,27,29,.96); color: var(--bone); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.pd-lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-lb img { max-width: 92vw; max-height: 84svh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.pd-lb .icon-btn { position: absolute; top: 14px; right: 14px; color: var(--bone); }
.pd-lb .rail-btn { position: absolute; top: 50%; transform: translateY(-50%); color: var(--bone); border-color: rgba(239,237,230,.4); }
.pd-lb .rail-btn:hover { background: var(--bone); color: var(--ink); }
.pd-lb .lb-prev { left: 14px; } .pd-lb .lb-prev svg { transform: scaleX(-1); }
.pd-lb .lb-next { right: 14px; }
.pd-lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .14em; color: rgba(239,237,230,.7); font-variant-numeric: tabular-nums; }
/* ---- size guide dialog ---- */
.pd-dlg-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(26,27,29,.55); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.pd-dlg-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-dlg { position: fixed; z-index: 96; left: 50%; top: 50%; width: min(520px, 92vw); max-height: 86svh; overflow: auto; background: var(--bone); color: var(--ink); border-radius: 18px; padding: clamp(24px, 4vw, 40px); transform: translate(-50%, -50%) scale(.96); opacity: 0; visibility: hidden; transition: transform .45s var(--ease-out), opacity .35s ease, visibility 0s linear .45s; }
.pd-dlg.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-dlg .icon-btn { position: absolute; top: 10px; right: 10px; }
.pd-dlg h2 { font-family: var(--font-display); font-weight: 300; font-size: 1.8rem; line-height: 1.1; margin-top: 8px; }
.pd-dlg ol { counter-reset: s; display: grid; gap: 14px; margin-top: 20px; }
.pd-dlg ol li { display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; counter-increment: s; font-size: .9375rem; line-height: 1.5; }
.pd-dlg ol li::before { content: "0" counter(s); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--accent-deep); }
.pd-dlg .pd-sizes { margin-top: 18px; }
.pd-dlg .pd-sizes span { min-width: 44px; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; display: grid; place-items: center; font-size: .8125rem; font-weight: 500; }
@media (max-width: 767px) {
  .pd-top { padding-top: calc(var(--nav-top) + 10px); }
  .pd-stage { border-radius: 12px; }
  .pd-perks { grid-template-columns: 1fr 1fr; }
  .pd-made-head, .pd-more-head { flex-direction: column; align-items: flex-start; }
  .pd-buy .cc-wish { display: none; }
}
