/* Product page and checkout ideas */

/* shared product parts */
.pd { color: var(--ink); background: #fff; }
.crumbs { font-size: 13px; color: #6B6A66; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.pd-meta { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #6B5A33; }
.pd h1 { font: 400 clamp(30px, 3vw, 44px)/1.08 var(--serif); margin: 10px 0 12px; }
.pd-price { font: 400 32px/1 var(--serif); margin: 0 0 8px; }
.pd-pay { font-size: 14px; color: #55544F; margin: 0 0 18px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 18px; }
.pd-stock i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; }
.pd-buy { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pd-buy .btn { width: 100%; }
.pd-express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-chip { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; background: #000; color: #fff; font-size: 15px; font-weight: 600; }
.pd-ask { font-size: 14px; color: #4A4945; margin: 0 0 18px; }
.pd-ask a { color: var(--ink); text-decoration: underline; }
.acc details { border-top: 1px solid rgba(20,20,20,.14); }
.acc details:last-child { border-bottom: 1px solid rgba(20,20,20,.14); }
.acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--gold-dark); }
.acc details[open] summary::after { content: "\2212"; }
.acc summary:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.acc p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: #4A4945; }
.pd-photo { position: relative; overflow: hidden; background: #DADADB; }
.pd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.p2 > *, .c1 > * { min-width: 0; }
.thumbs button img, .sum-item img { mix-blend-mode: multiply; }
.sum-item .pd-photo { width: 72px; height: 72px; border-radius: 10px; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { appearance: none; flex: none; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #DADADB; cursor: pointer; opacity: .65; transition: opacity .25s var(--ease), box-shadow .25s var(--ease); }
.thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on, .thumbs button:hover { opacity: 1; }
.thumbs button.on { box-shadow: 0 0 0 2px var(--gold); }
.thumbs button:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.thumbs:empty { display: none; }
.buybar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; background: #fff; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.5); transform: translateY(110%); transition: transform .4s var(--ease); color: var(--ink); }
.buybar.show { transform: none; }
.buybar b { font: 400 22px/1 var(--serif); }
.buybar small { display: block; max-width: 44vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: #6B6A66; margin-bottom: 4px; }
.buybar .btn { min-height: 46px; padding: 0 20px; }


/* Product idea 2: under the light */
body[data-kind=product] .hd { background: rgba(0,0,0,.86); }
.p2 { display: grid; grid-template-columns: 1.45fr 1fr; min-height: calc(100vh - 88px); background: var(--black); color: var(--on-dark); }
.p2 { align-items: start; }
.p2-stage { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100vh; min-height: 560px; padding: 104px clamp(20px, 3vw, 48px) 28px; background: var(--black); }
.p2-stage > img { flex: 0 1 auto; display: block; width: auto; max-width: 100%; height: auto; min-height: 0; max-height: 100%; border-radius: 18px; }
.p2-stage .thumbs { flex: none; }
.p2-stage .thumbs button { width: 62px; height: 62px; }
.p2-stage .thumbs button.on { box-shadow: 0 0 0 2px var(--gold-solid); }
.p2 .panel { display: flex; flex-direction: column; justify-content: center; padding: 108px clamp(24px, 4vw, 60px) 56px; }
.p2 .pd-meta { color: var(--gold); }
.p2 .crumbs { color: var(--on-dark-2); }
.p2 .pd-pay, .p2 .pd-ask, .p2 .acc p { color: var(--on-dark-2); }
.p2 .pd-ask a { color: var(--on-dark); }
.p2 .pd-price { color: var(--gold-hi); }
.p2 .acc details { border-color: rgba(196,170,113,.25); }
.p2 .acc summary::after { color: var(--gold); }
.p2 .pay-chip { background: #fff; color: #000; }


/* checkout shared */
.ck { color: var(--ink); background: #fff; }
.ck-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 5vw, 64px); border-bottom: 1px solid rgba(20,20,20,.1); }
.ck-hd .brand { display: flex; align-items: center; gap: 10px; }
.ck-hd .brand .c { width: 40px; height: 40px; }
.ck-hd .brand .w { height: 22px; width: auto; filter: brightness(.55) sepia(.4); }
.ck-hd a.help { font-size: 14px; }
.ck-hd a.help b { font-weight: 600; text-decoration: underline; }
.ck h1 { font: 400 clamp(32px, 3.4vw, 46px)/1.05 var(--serif); margin: 0 0 18px; }
.ck h2 { font: 400 25px/1.1 var(--serif); margin: 0 0 14px; }
.fld { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.fld .w2 { grid-column: 1 / -1; }
.fld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.fld input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(20,20,20,.22); border-radius: 10px; background: #fff; font: 400 16px var(--sans); color: var(--ink); }
.fld input:disabled { opacity: 1; background: #fff; }
.note-gold { padding: 14px 16px; margin-bottom: 18px; border-radius: 10px; background: #F7F3EA; border-left: 4px solid var(--gold); font-size: 14px; line-height: 1.5; }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; font-size: 13px; color: #6B6A66; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(20,20,20,.14); }
.pay-list { border: 1px solid rgba(20,20,20,.18); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.pay-opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border-top: 1px solid rgba(20,20,20,.12); font-size: 15px; }
.pay-opt:first-child { border-top: 0; }
.pay-opt i { flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(20,20,20,.35); border-radius: 50%; }
.pay-opt.on i { border: 5px solid var(--gold-dark); }
.pay-opt small { margin-left: auto; color: #6B6A66; font-size: 12px; }
.card-slot { padding: 14px 16px 16px; background: #F4F3F0; border-top: 1px solid rgba(20,20,20,.12); font-size: 13px; color: #55544F; }
.final { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 13.5px; line-height: 1.5; color: #4A4945; }
.final i { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid rgba(20,20,20,.35); border-radius: 4px; }
.place { width: 100%; min-height: 56px; border: 0; font-size: 15px; cursor: pointer; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 70px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sum-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 14px; line-height: 1.35; }
.sum-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #DADADB; }
.sum-item b { font: 400 18px/1 var(--serif); }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.sum-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(20,20,20,.16); font-size: 16px; font-weight: 600; }
.sum-row.total b { font: 400 28px/1 var(--serif); }
.ck-call { display: block; margin-top: 16px; font-size: 14px; color: #4A4945; }
.ck-call a { color: var(--ink); text-decoration: underline; }

/* Checkout idea 1: one calm page */
.c1 { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 32px clamp(20px, 5vw, 64px) 96px; max-width: 1240px; margin: 0 auto; }
.c1 .sum { position: sticky; top: 24px; padding: 24px; border-radius: 18px; background: #F4F3F0; }



@media (max-width: 860px) {
  .p2, .c1 { grid-template-columns: 1fr; }
  .thumbs { overflow-x: auto; scrollbar-width: none; }
  .thumbs button { width: 64px; height: 64px; }
  .p2 { min-height: 0; }
  .p2-stage { position: static; height: auto; min-height: 0; padding: 84px 16px 8px; }
  .p2-stage > img { max-height: 72vh; }
  .p2 .panel { padding: 24px 20px 40px; }
  .c1 { padding: 18px 16px 110px; gap: 14px; }
  .c1 .sum { position: static; order: -1; padding: 16px; }
  .fld { grid-template-columns: 1fr 1fr; }
  .ck-hd { padding: 12px 16px; }
  .ck-hd .brand .w { display: none; }
}
@media (min-width: 861px) { .buybar { display: none; } }
