/* Card looks and the 3D box: the "make it yours" parts of the storefront. */

/* ---- writing style picker ---- */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.look { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px; padding: 10px 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, transform .15s var(--ease); }
.look span { line-height: 1.1; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look small { font-size: 12px; color: var(--muted); }
.look:hover:not(.on) { border-color: var(--ink); transform: translateY(-2px); }
.look.on { background: var(--sel); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.inks { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ink { width: 36px; height: 36px; border-radius: 50%; padding: 0; border: 2px solid var(--card); background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ink:hover { transform: scale(1.12); }
.ink.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.08); }
.sizes { display: inline-flex; margin-left: auto; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; }
.size { min-height: 36px; padding: 0 12px; font-size: 13px; background: var(--card); border: 0; transition: background .15s; }
.size + .size { border-left: 1px solid var(--line); }
.size.on { background: var(--ink); color: var(--card); }
.notebody { transition: font-size .25s var(--ease), color .25s; }

/* ---- 3D box dialog ---- */
dialog.wide { width: min(680px, calc(100vw - 24px)); }
.b3d { position: relative; width: 100%; height: 340px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #fffdf8 0%, #f1e8d3 70%, #e7dcc2 100%); box-shadow: inset 0 0 0 1px var(--line); }
.b3d canvas { animation: fade .6s ease both; }
.b3d img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.b3d-ctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.b3d-ctl .secondary { min-height: 44px; padding: 8px 10px; font-size: 14px; }
.swatches { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) { .b3d { height: 300px; } .b3d-ctl .secondary { font-size: 13px; } }

.choices.row2 { flex-direction: row; } .choices.row2 .choice { flex: 1; }
.choices.row3 { flex-direction: row; } .choices.row3 .choice { flex: 1; }
.credits { font-size: 12px; color: var(--muted); min-height: 32px; }
.credit-list li { display: flex; flex-direction: column; gap: 2px; }

/* ---- account sheet: the content sits in one box, so it needs its own rhythm ---- */
#acctbox { display: flex; flex-direction: column; gap: 14px; }
#acctbox h3 { margin-top: 8px; }
#acctbox .notice { margin: 0; }
#acctbox button { width: 100%; min-height: 48px; }

/* ---- box pictures ---- */
.boxhero { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 4px 0 2px; animation: fade .5s ease both; }
.choice .ctext > span:first-child { display: flex; align-items: center; gap: 10px; }
.bth { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

/* ---- photo zoom ---- */
img[data-zoom] { cursor: zoom-in; }
#zoomer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
#zoomer::backdrop { background: rgba(10, 24, 18, .92); backdrop-filter: blur(4px); }
#zoomer .zbox { position: absolute; inset: 56px 16px 64px; overflow: hidden; border-radius: 12px; display: grid; place-items: center; cursor: zoom-in; }
#zoomer .zbox.in { cursor: zoom-out; }
#zoomer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s var(--ease); border-radius: 0; animation: fade .3s ease both; }
#zoomer .zbox.in img { transform: scale(2.6); }
#zoomer .zx { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 28px; line-height: 1; background: rgba(255, 255, 255, .14); color: #fff; }
#zoomer .zcap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; opacity: .8; font-size: 14px; margin: 0; }
/* ---- gift details ---- */
.gdet { align-self: flex-start; font-size: 13px; margin: -2px 0 6px; }
.gprice-big { font-family: var(--serif, inherit); font-size: 22px; margin: 0; }
.specs { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.spec { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 14px; font-size: 14px; line-height: 1.45; }
.spec + .spec { border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); } .spec dd { margin: 0; }
@media (max-width: 480px) { .spec { grid-template-columns: 90px 1fr; } }

.gift { cursor: pointer; }
.gift button, .gift input { cursor: auto; } .gift button { cursor: pointer; }
.gift img[data-zoom] { cursor: pointer; }
button.busy { opacity: .75; cursor: progress; }

/* ---- where am I on the schedule step ---- */
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; }
.steps span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.steps .now { color: var(--card); background: var(--ink); border-color: var(--ink); }
.steps .done { color: var(--ink); background: var(--sel); border-color: var(--ink); }
.steps .done::before { content: '✓ '; }
.opt { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }

/* ---- the header: one sticky glass bar ---- */
.site-head { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--px); background: rgba(245, 238, 224, .72); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid rgba(14, 42, 34, .07); transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(14, 42, 34, .08); border-bottom-color: rgba(14, 42, 34, .12); }
.sh-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; transition: color .3s; }
.sh-brand img { display: block; width: 36px; height: auto; transition: rotate .4s var(--ease), scale .4s var(--ease); }
.sh-brand:hover img { rotate: -8deg; scale: 1.08; }
.sh-brand .demo-tag { font-family: var(--sans); font-style: normal; font-size: 10px; padding: 3px 7px; border-radius: 99px; background: var(--ink); color: var(--cream); letter-spacing: .08em; }
.sh-nav { display: flex; align-items: center; gap: 4px; }
.sh-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background .2s var(--ease), color .3s; }
.sh-link:hover { background: rgba(14, 42, 34, .08); }
.sh-link svg, .sh-wa svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-quiet { font-size: 12px; opacity: .6; padding: 0 8px; }
.sh-quiet span { display: inline; }
.sh-t { white-space: nowrap; }
.sh-chip { display: inline-block; margin-left: 2px; white-space: nowrap; padding: 2px 8px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 12px; }
.sh-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-left: 6px; padding: 0 16px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background .25s, box-shadow .25s; }
.sh-wa:hover { background: var(--pink); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(213, 8, 93, .28); }
.sh-wa[hidden] { display: none; }
/* over the dark hero on the home page the bar turns dark glass */
body.is-home .site-head { background: rgba(14, 42, 34, .94); border-bottom-color: rgba(255, 255, 255, .08); }
body.is-home .site-head .sh-brand, body.is-home .site-head .sh-link { color: var(--cream); }
body.is-home .site-head .sh-link:hover { background: rgba(255, 255, 255, .12); }
body.is-home .site-head .sh-wa { background: var(--cream); color: var(--ink); }
body.is-home .site-head .sh-wa:hover { background: var(--pink); color: #fff; }
body.is-home .site-head .demo-tag { background: var(--cream); color: var(--ink); }
.hero { padding-top: 28px; }
@media (max-width: 640px) {
  .site-head { padding: 8px 14px; }
  .sh-brand { font-size: 21px; } .sh-brand img { width: 30px; }
  .sh-t { display: none; } .sh-link { padding: 0 10px; }
  .sh-wa { padding: 0 12px; } .sh-wa span { display: none; }
  .sh-quiet { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sh-brand img, .sh-wa { transition: none; } }.sh-chip[hidden] { display: none; }

/* ---- picture code ---- */
.cap-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cap-row img { border-radius: 8px; border: 1px solid var(--line); background: #fffbf3; max-width: 100%; height: auto; }
#a_cap { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
