/* Shopping-ad landing page (/shop/<slug>/, site/pages/shop.mjs). Chips, buy bar and price fade come from product.css. */

/* first screen: the lamp clip + heading + woods + Buy + four checks, all above the fold on a phone. The clip sits below the
   header (nothing is ever drawn over it) and gives up height first, so the rest always fits. */
.lp-top { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); }
.lp-photo { flex: 0 1 100vw; min-height: 150px; }
/* photo carousel (top: the clip, then the lamp's photos in the chosen wood; .lp-car2 lower down: photos only). Native
   sideways scrolling with snap, one slide per screen; the only sign is the row of small dots. */
.lp-car { position: relative; overflow: hidden; background: var(--bg-2); }
.lp-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-track::-webkit-scrollbar { display: none; }
.lp-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.lp-cell { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.lp-cell[data-wood] { display: none; }
.lp-cell picture { display: block; width: 100%; height: 100%; }
.lp-cell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; user-select: none; -webkit-user-drag: none; }
.lp-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 1px; pointer-events: none; }
.lp-dots[hidden] { display: none; }
.lp-dot { pointer-events: auto; width: 14px; height: 18px; display: grid; place-items: center; }
.lp-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .4; box-shadow: 0 0 3px rgba(0,0,0,.35); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.lp-dot[aria-current="true"]::before { opacity: .95; transform: scale(1.15); }
@media (hover: hover) and (pointer: fine) { .lp-track { cursor: grab; } }
/* The first-screen animation: 7 stills (light states 0 = white ... 6 = red) stacked in .lp-anim, state 0 at the bottom. Each
   still above fades in over the half second that leads to its state and out again on the way back, so the box shows
   0 > 1 > ... > 6 > 5 > ... > 0 in 6 s, endlessly and seamlessly. Only opacity moves, so the graphics chip does the fading at
   the screen's refresh rate even while the page's scripts are busy. Started by site/js/shop.js (.is-run) once the stills
   are in; .is-js = the script drives the opacities itself (the fallback when the CSS animation is found not moving). */
.lp-cell-clip { background: var(--bg-2) center / cover no-repeat; }
.lp-anim { position: absolute; inset: 0; overflow: hidden; transition: opacity 250ms linear; }
.lp-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; user-select: none; -webkit-user-drag: none; backface-visibility: hidden; }
.lp-f[data-k="0"] { opacity: 1; }
.lp-anim.is-run .lp-f:not([data-k="0"]) { animation: 6s linear var(--lp-delay, 0s) infinite both; will-change: opacity; }
.lp-anim.is-run .lp-f[data-k="1"] { animation-name: lpf1; }
.lp-anim.is-run .lp-f[data-k="2"] { animation-name: lpf2; }
.lp-anim.is-run .lp-f[data-k="3"] { animation-name: lpf3; }
.lp-anim.is-run .lp-f[data-k="4"] { animation-name: lpf4; }
.lp-anim.is-run .lp-f[data-k="5"] { animation-name: lpf5; }
.lp-anim.is-run .lp-f[data-k="6"] { animation-name: lpf6; }
@keyframes lpf1 { 0% { opacity: 0 } 8.333% { opacity: 1 } 91.667% { opacity: 1 } 100% { opacity: 0 } }
@keyframes lpf2 { 0% { opacity: 0 } 8.333% { opacity: 0 } 16.667% { opacity: 1 } 83.333% { opacity: 1 } 91.667% { opacity: 0 } 100% { opacity: 0 } }
@keyframes lpf3 { 0% { opacity: 0 } 16.667% { opacity: 0 } 25% { opacity: 1 } 75% { opacity: 1 } 83.333% { opacity: 0 } 100% { opacity: 0 } }
@keyframes lpf4 { 0% { opacity: 0 } 25% { opacity: 0 } 33.333% { opacity: 1 } 66.667% { opacity: 1 } 75% { opacity: 0 } 100% { opacity: 0 } }
@keyframes lpf5 { 0% { opacity: 0 } 33.333% { opacity: 0 } 41.667% { opacity: 1 } 58.333% { opacity: 1 } 66.667% { opacity: 0 } 100% { opacity: 0 } }
@keyframes lpf6 { 0% { opacity: 0 } 41.667% { opacity: 0 } 50% { opacity: 1 } 58.333% { opacity: 0 } 100% { opacity: 0 } }
.lp-anim.is-js .lp-f:not([data-k="0"]) { animation: none; will-change: opacity; }
@media (prefers-reduced-motion: reduce) { .lp-anim .lp-f:not([data-k="0"]) { animation: none !important; opacity: 0 !important; } }
.lp-slide { display: none; position: absolute; inset: 0; }
.lp-buy { flex: none; padding: var(--s3) var(--gutter) 0; }
/* one line on every phone: the longest heading ("Solid Mahogany Lamp, 12 inches tall") is up to 17.1 em wide in this face */
.lp-line { font-size: min(30px, calc((100vw - 2 * var(--gutter)) / 17.5)); line-height: 1.2; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.lp-wood { margin-top: var(--s3); }
.lp-wood .wood-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lp-wood .chip { gap: 6px; padding: 0 6px 0 5px; min-height: 44px; font-size: 13px; line-height: 1.15; min-width: 0; }
.lp-wood .chip-disc { --sw: 30px; }
.lp-wood .chip-label { display: flex; flex-direction: column; min-width: 0; }
.lp-wood .chip-price { margin: 0; font-size: 12px; }
.lp-line-d { display: none; }   /* the two-line heading of wide screens (below); phones show .lp-line-m, the one-line text */
/* Buy: the home page buy block's button (.fam-buy, home-family.css): amber, large */
.btn.lp-btn { margin-top: var(--s3); width: 100%; min-height: 60px; border-radius: 4px; white-space: nowrap; font: 600 21px/1 var(--font-ui); letter-spacing: .06em;
  background: var(--accent); border-color: var(--accent); color: #140d06; box-shadow: 0 10px 40px -12px rgba(201,138,75,.7); }
.btn.lp-btn:hover { background: #dba060; border-color: #dba060; color: #140d06; }
.lp-checks { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 5px var(--s3); font-size: 12.5px; line-height: 1.3; color: var(--fg); }
.lp-checks li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lp-checks svg { flex: none; color: var(--accent); }
.lp-checks li:nth-child(3) { order: 4; } .lp-checks li:nth-child(4) { order: 3; }   /* the two long lines share the left column, so both columns fit a phone */
/* the line under the Buy button: shipping, returns, build time (plain text, the checks' own size and color; two short lines on every screen) */
.lp-terms { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--fg); text-align: center; }
.lp-terms > span { white-space: nowrap; }
@media (max-width: 359px) { .lp-terms { font-size: 11.5px; } }
@media (min-width: 900px) { .lp-terms { margin-top: 14px; font-size: clamp(13px, calc(var(--lp-col) / 36), 16px); } }
.lp-hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.lp-buy .lp-hr { margin-top: var(--s3); }
@media (max-width: 359px) { .lp-checks { font-size: 11.5px; } .lp-wood .chip-disc { --sw: 24px; } }
@media (max-height: 600px) and (max-width: 899px) { .btn.lp-btn { min-height: 52px; font-size: 19px; } }

/* sticky Buy bar: shown on every width once the first Buy button is off screen (product.css hides its own at 900 px+) */
@media (min-width: 900px) { .buybar.lp-bar { display: flex !important; } .buybar.lp-bar[hidden] { display: none !important; } }
.buybar.lp-bar { padding-top: var(--s3); padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lp-bar .buybar-meta { min-width: 0; }
.lp-bar .buybar-name { font-size: min(19px, 4.3vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-bar .buybar-price { font: 400 14px/1.3 var(--font-ui); }
.lp-bar .btn.lp-btn { margin-top: 0; width: auto; flex: none; min-height: 58px; padding: 0 var(--s4); font-size: 20px; box-shadow: none; }
@media (max-width: 359px) { .lp-bar .btn.lp-btn { font-size: 17px; padding: 0 var(--s3); } .buybar.lp-bar { gap: var(--s2); } }
.page-shop .site-footer { padding-bottom: calc(var(--s8) + env(safe-area-inset-bottom)); }

/* the rest of the page */
.lp-sec { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--gutter) 0; }
.lp-sec > .label { margin-bottom: var(--s4); }
.lp-reasons { padding-top: var(--s5); }
.lp-reasons p { font-family: var(--font-display); font-weight: 360; font-size: clamp(30px, 8.6vw, 54px); line-height: 1.12; letter-spacing: -.008em; text-wrap: balance; }
.lp-reasons p + p { margin-top: var(--s4); }
.lp-sec.lp-proof { padding: var(--s6) var(--gutter) 0; }
.lp-h { margin: var(--s5) 0 var(--s4); font-size: clamp(30px, 8.6vw, 54px); font-weight: 360; line-height: 1.12; letter-spacing: -.008em; text-wrap: balance; }
.lp-proof .feat-media { border-radius: var(--radius); }
.lp-proof-line { margin-top: var(--s4); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.lp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.lp-pair figure { margin: 0; }
.lp-pair figcaption { margin-bottom: var(--s2); font-size: clamp(15px, 4.2vw, 20px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.lp-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--bg-2); }
.lp-gallery { padding-top: var(--s7); }
.lp-gallery[hidden] { display: none; }
.lp-car2 { width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: var(--radius); }
@media (max-width: 559px) { .lp-gallery { padding-left: 0; padding-right: 0; } .lp-car2 { border-radius: 0; } }
.lp-faq { padding-top: var(--s7); }
.lp-faq dl { margin: 0; }
.lp-faq dl > div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.lp-faq dl > div:last-child { border-bottom: 1px solid var(--line); }
.lp-faq dt { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.lp-faq dd { margin: 6px 0 0; color: var(--fg-dim); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.lp-others { padding-top: var(--s7); padding-bottom: var(--s7); }
.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.lp-card { display: grid; gap: 2px; }
.lp-card-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); margin-bottom: var(--s2); border-radius: var(--radius); }
.lp-card-name { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.lp-card-dims { color: var(--fg-dim); font-size: 12.5px; }
.lp-card-price { font-size: 16px; }
@media (hover: hover) { .lp-card:hover .lp-card-name { color: var(--accent); } }
.lp-box { padding-top: var(--s7); }
/* the collapsed FAQ at the very bottom: closed rows, opened one at a time by the visitor */
.lp-others { padding-bottom: 0; }
.lp-more { padding-top: var(--s7); padding-bottom: var(--s7); }
.lp-qa details { border-top: 1px solid var(--line); }
.lp-qa details:last-child { border-bottom: 1px solid var(--line); }
.lp-qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa-chev { flex: none; color: var(--fg-dim); transition: transform 200ms var(--ease); }
.lp-qa details[open] .lp-qa-chev { transform: rotate(180deg); }
.lp-qa p { margin: -4px 0 var(--s4); color: var(--fg-dim); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); font-family: var(--font-display); font-size: 21px; line-height: 1.3; }

/* wide screens (900 px+; nothing above this line changes there except through this block, and nothing in this block
   touches phones): a product hero. A portrait picture (4:5, so the photos show whole and the clip keeps air around the lamp)
   sized by the window's height so the first reason peeks below; beside it, vertically centered, one composed column on a
   single left edge: a large two-line heading, three wide wood chips, the home page's Buy button, the four checks under a rule. */
@media (min-width: 900px) {
  .lp-top { --lp-col: clamp(400px, 38vw, 640px); flex-direction: row; align-items: center; justify-content: center; gap: clamp(48px, 6vw, 104px);
    max-width: none; max-height: none; margin: 0 auto; padding: var(--s5) var(--gutter) 0; }
  .lp-photo { flex: none; height: clamp(420px, calc(100vh - var(--header-h) - 150px), 820px); width: auto; aspect-ratio: 4 / 5; min-height: 0; border-radius: 3px; }
  .lp-buy { flex: none; width: var(--lp-col); max-width: none; padding: 0; }
  /* Owen 2026-11-21: same words as phones on desktop, big, free to wrap ("Solid Walnut Lamp, 12 inches tall") */
  .lp-line { font-size: calc(var(--lp-col) / 10.4); font-weight: 360; line-height: 1.08; letter-spacing: -.012em; white-space: normal; text-wrap: balance; }
  .lp-wood { margin-top: calc(var(--lp-col) / 13); }
  .lp-wood .wood-chips { gap: 10px; }
  .lp-wood .chip { min-height: calc(var(--lp-col) / 7.6); gap: calc(var(--lp-col) / 48); padding: 0 8px 0 calc(var(--lp-col) / 48); font-size: clamp(14px, calc(var(--lp-col) / 30), 18px); line-height: 1.2; }
  .lp-wood .chip-disc { --sw: calc(var(--lp-col) / 11.6); }
  .lp-wood .chip-price { font-size: .875em; }
  .btn.lp-btn { margin-top: 14px; min-height: clamp(66px, calc(var(--lp-col) / 7.4), 84px); font-size: clamp(22px, calc(var(--lp-col) / 22), 28px); }
  .lp-checks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(15px, calc(var(--lp-col) / 31), 19px); grid-template-columns: 1fr auto; justify-content: stretch; gap: 12px var(--s5); }
  .lp-checks li { gap: 10px; }
  .lp-checks svg { width: 14px; height: 14px; }
  .lp-buy .lp-hr { display: none; }
  .lp-dots { bottom: 10px; }
  .lp-sec, .lp-sec.lp-proof { padding-top: var(--s7); }
  .lp-more { padding-bottom: var(--s8); }
  .buybar.lp-bar { padding-left: max(var(--gutter), calc((100vw - 1180px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1180px) / 2)); }
  .lp-bar .buybar-name { font-size: 22px; }
  .lp-bar .btn.lp-btn { min-height: 58px; font-size: 20px; padding: 0 var(--s6); }
}

/* Full-screen photos (2026-11-24, stopgap; site/js/shop.js lightbox()): a tap on a carousel slide opens its slides in a dark
   full-screen strip, whole picture uncropped, swipe sideways, the lamp animation still running. */
.lp-cell { cursor: zoom-in; }
.lp-full { position: fixed; inset: 0; z-index: 2147483000; background: #060504; color: #efe6d8; touch-action: pan-x pinch-zoom; overscroll-behavior: contain; animation: lpfull 160ms ease-out both; }
@keyframes lpfull { from { opacity: 0; } to { opacity: 1; } }
.lp-full-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-full-track::-webkit-scrollbar { display: none; }
.lp-full-cell { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
.lp-full-cell picture { display: contents; }
.lp-full-cell picture img { display: block; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lp-full-cell .lp-anim { position: relative; inset: auto; height: min(100vh, 104.16vw); height: min(100dvh, 104.16vw); aspect-ratio: 24 / 25; max-width: 100%; }   /* the stills are 768 x 800 */
.lp-full-cell .lp-f { object-fit: contain; }
.lp-full-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20,17,16,.72); color: #efe6d8; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lp-full-count { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; letter-spacing: .04em; color: rgba(239,230,216,.72); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lp-full { animation: none; } }
