/* Photoalbumz — Print your album (print.html) */
.print-page { --pr-ease: cubic-bezier(.16, 1, .3, 1); --pr-on: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.nav .links a.on { color: var(--accent); }
.pr-main { padding: 34px 0 80px; }
.pr-hero { text-align: center; max-width: 720px; margin: 0 auto 28px; animation: pr-up .7s var(--pr-ease) both; }
.pr-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.pr-hero h1 em { color: var(--accent); }
.pr-tabs { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; background: var(--bg-alt); }
.pr-tabs a { padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .25s, color .25s; }
.pr-tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px -8px rgba(0,0,0,.4); }
.pr-hero .lead { margin: 14px auto 0; color: var(--muted); font-size: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--gold); margin: 0 0 10px; }

/* step bar */
.pr-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 6px; border-radius: 999px; background: var(--bg-alt); counter-reset: s; overflow-x: auto; scrollbar-width: none; }
.pr-steps li { flex: 1 1 0; min-width: max-content; }
.pr-steps button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font: 600 14.5px 'Inter', sans-serif; color: var(--muted); cursor: pointer; transition: background .3s var(--pr-ease), color .3s, transform .2s; }
.pr-steps button:hover:not(:disabled) { transform: translateY(-1px); color: var(--ink); }
.pr-steps button:disabled { cursor: default; opacity: .55; }
.pr-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; background: var(--card); border: 1.5px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.pr-steps .on button { background: var(--card); color: var(--ink); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.pr-steps .on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.pr-steps .done i { background: var(--ink); border-color: var(--ink); color: var(--bg); font-size: 0; }
.pr-steps .done i::after { content: '✓'; font-size: 13px; }

.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pr-panel { animation: pr-up .55s var(--pr-ease) both; }
.pr-panel h2 { font-size: 30px; margin-bottom: 18px; }
.pr-h { font: 600 15px 'Inter', sans-serif; margin: 26px 0 10px; }
.pr-h small { font-weight: 400; }

/* 1. album types */
.pr-types { display: grid; gap: 14px; }
.pr-type { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px 18px 18px; border-radius: 22px; text-align: left;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .35s var(--pr-ease), box-shadow .35s var(--pr-ease), border-color .2s; animation: pr-up .6s var(--pr-ease) both; animation-delay: calc(var(--i) * 70ms); }
.pr-type:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(60,35,18,.55); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pr-type.on { border-color: var(--accent); background: var(--pr-on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.pr-type-body { display: flex; flex-direction: column; gap: 4px; }
.pr-type-body b { font: 700 21px 'Playfair Display', serif; }
.pr-type-body .muted { font-size: 14.5px; line-height: 1.45; }
.pr-type-meta { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.pr-from { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pr-from b { display: block; font-size: 22px; color: var(--ink); }
/* little book illustrations */
.pr-type-art { position: relative; height: 92px; perspective: 400px; }
.pr-type-art i { position: absolute; border-radius: 4px 8px 8px 4px; transition: transform .5s var(--pr-ease); }
.pr-type-art i:first-child { inset: 10px 18px 6px 14px; background: linear-gradient(135deg, #e9dccb, #d9c6ad); box-shadow: 0 10px 18px -8px rgba(0,0,0,.4); }
.pr-type-art i:last-child { inset: 4px 12px 12px 20px; background: linear-gradient(135deg, #c2573a, #8e3b25); box-shadow: inset 3px 0 0 rgba(0,0,0,.18), 0 12px 22px -10px rgba(0,0,0,.5); transform-origin: left center; }
.pr-type-art.lf i:last-child { background: linear-gradient(135deg, #3a2e26, #1d1611); border: 3px solid #b08d57; }
.pr-type-art.ec i:last-child { inset: 14px 16px 16px 22px; background: linear-gradient(135deg, #7aa79d, #2e6f64); }
.pr-type:hover .pr-type-art i:last-child { transform: rotateY(-24deg); }

/* 2. format */
.pr-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-alt); flex-wrap: wrap; }
.pr-seg button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px 'Inter', sans-serif; cursor: pointer; transition: background .25s, color .25s; }
.pr-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px -8px rgba(0,0,0,.4); }
.pr-o { display: inline-block; border: 2px solid currentColor; border-radius: 3px; }
.pr-o.landscape { width: 20px; height: 14px; } .pr-o.portrait { width: 14px; height: 20px; } .pr-o.square { width: 16px; height: 16px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-chip { display: grid; grid-template-rows: 56px auto auto; justify-items: center; gap: 2px; width: 112px; padding: 12px 8px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: transform .3s var(--pr-ease), border-color .2s, box-shadow .3s; }
.pr-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(0,0,0,.5); }
.pr-chip.on { border-color: var(--accent); background: var(--pr-on); }
.pr-chip-shape { align-self: center; max-width: 64px; max-height: 50px; width: 100%; border-radius: 3px; background: linear-gradient(135deg, var(--bg-alt), var(--line)); border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); transition: background .3s; }
.pr-chip.on .pr-chip-shape { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--card)), var(--accent)); border-color: var(--accent); }
.pr-chip b { font-size: 15px; } .pr-chip small { color: var(--muted); font-size: 12.5px; }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pr-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; transition: transform .3s var(--pr-ease), border-color .2s, box-shadow .3s; }
.pr-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(0,0,0,.5); }
.pr-card.on { border-color: var(--accent); background: var(--pr-on); }
.pr-card b { font-size: 14.5px; } .pr-card small { font-size: 12.5px; line-height: 1.4; }
.pr-card em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--accent); }
.pr-cards.sm .pr-card { padding: 12px 14px; }
.pr-swatch { width: 100%; height: 64px; border-radius: 10px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cv-printed, .cv-soft { background: linear-gradient(135deg, #f1c9a5 0%, #c2573a 45%, #3b6b8a 100%); }
.cv-signature { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px), radial-gradient(circle at 30% 20%, #5b3a2a, #2b1a12); }
.cv-designer { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px), linear-gradient(135deg, #b9a17a, #7c6646); }
.cv-acrylic { background: linear-gradient(120deg, rgba(255,255,255,.65) 0 18%, transparent 30%), linear-gradient(135deg, #f1c9a5 0%, #c2573a 45%, #3b6b8a 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 6px 14px -8px rgba(0,0,0,.5); }
.pr-names { display: grid; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; max-width: 420px; }
.pr-names input, .pr-addr input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 15px 'Inter', sans-serif; transition: border-color .2s, box-shadow .2s; }
.pr-names input:focus, .pr-addr input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }

/* 3. pages */
.pr-src { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn.danger { color: #b3261e; }
.pr-cover-slot { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1.5px dashed var(--line); background: var(--card); margin-bottom: 14px; }
.pr-cover-slot.unused { opacity: .6; }
.pr-cover-img { width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; flex: none; font-size: 11px; color: var(--muted); text-align: center; }
.pr-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.pr-cover-slot p { margin: 2px 0 8px; }
.pr-count { margin: 6px 0 12px; font-size: 14.5px; min-height: 1.4em; }
.pr-count .bad { color: #b3261e; }
.pr-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pr-page { position: relative; padding: 8px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); cursor: grab; transition: transform .3s var(--pr-ease), box-shadow .3s, border-color .2s, opacity .2s;
  animation: pr-pop .45s var(--pr-ease) both; animation-delay: calc(var(--i) * 25ms); }
.pr-page.spread { grid-column: span 2; }
.pr-page:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(0,0,0,.55); }
.pr-page.dragging { opacity: .4; }
.pr-page.over { border-color: var(--accent); box-shadow: -6px 0 0 -2px var(--accent); }
.pr-thumb { height: 120px; border-radius: 10px; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.pr-thumb img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pr-tif { font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.pr-page-meta { display: flex; flex-direction: column; padding: 8px 2px 2px; min-width: 0; }
.pr-page-meta b { font-size: 13.5px; }
.pr-page-meta small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-page-meta small.warn { white-space: normal; color: #a1600b; }
.pr-page-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.pr-page:hover .pr-page-tools, .pr-page:focus-within .pr-page-tools { opacity: 1; }
.pr-page-tools button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(20,16,12,.72); color: #fff; font-size: 13px; cursor: pointer; transition: transform .15s, background .15s; }
.pr-page-tools button:hover:not(:disabled) { transform: scale(1.1); background: var(--accent); }
.pr-page-tools button:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .pr-page-tools { opacity: 1; } }
.pr-empty { text-align: center; }
.pr-drop { display: grid; place-items: center; height: 200px; border-radius: 22px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; background: var(--card); transition: border-color .2s, background .2s, transform .3s var(--pr-ease); }
[data-panel="3"].drop .pr-drop, [data-panel="3"].drop .pr-pages { border-color: var(--accent); background: var(--pr-on); transform: scale(1.01); }
.pr-albums { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; max-height: 60vh; overflow: auto; }
.pr-albums a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.pr-albums a:hover { border-color: var(--accent); transform: translateX(3px); }
.pr-albums span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--accent); font-weight: 600; font-size: 14px; }

/* 4. address */
.pr-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pr-addr label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.pr-addr .wide { grid-column: 1 / -1; }
.pr-eta { margin: 18px 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 15px; min-height: 1.4em; }

/* summary */
.pr-sum { position: sticky; top: 92px; padding: 24px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(60,35,18,.5); animation: pr-up .7s .1s var(--pr-ease) both; }
.pr-sum h3 { font-size: 22px; margin-top: 18px; }
.pr-sum > .muted { margin: 4px 0 12px; }
.pr-book { --ar: 1; position: relative; width: min(210px, 70%); aspect-ratio: var(--ar); max-height: 210px; margin: 6px auto 0; perspective: 900px; transition: aspect-ratio .5s var(--pr-ease); }
.pr-book-pages { position: absolute; inset: 3% -3% 3% 4%; border-radius: 2px 6px 6px 2px; background: repeating-linear-gradient(0deg, #fff 0 2px, #e9e2d8 2px 3px); box-shadow: 0 18px 30px -16px rgba(0,0,0,.5); }
.pr-book.thick .pr-book-pages { right: -6%; }
.pr-book-cover { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: 3px 8px 8px 3px; background-size: cover; background-position: center;
  box-shadow: inset 4px 0 0 rgba(0,0,0,.2), inset 7px 0 6px -4px rgba(255,255,255,.25), 0 14px 26px -12px rgba(0,0,0,.55); transform: rotateY(-8deg); transform-origin: left center; transition: transform .6s var(--pr-ease); }
.pr-book:hover .pr-book-cover { transform: rotateY(-22deg); }
.pr-book.cv-printed .pr-book-cover, .pr-book.cv-soft .pr-book-cover { background-color: #d9c6ad; }
.pr-book.cv-signature .pr-book-cover { background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px), radial-gradient(circle at 30% 20%, #5b3a2a, #2b1a12) !important; }
.pr-book.cv-designer .pr-book-cover { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px), linear-gradient(135deg, #b9a17a, #7c6646) !important; }
.pr-book.cv-acrylic .pr-book-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.55) 0 16%, transparent 32%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.6); }
.pr-book-names { font: 400 clamp(18px, 2.4vw, 26px) 'Great Vibes', cursive; color: #e4c98f; text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 -1px 0 rgba(255,255,255,.15); padding: 0 10px; text-align: center; }
.pr-lines { list-style: none; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.pr-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pr-lines span { color: var(--muted); }
.pr-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.pr-total b { font: 700 28px 'Playfair Display', serif; }
.pr-ship { margin: 4px 0 0; }
.pr-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fdecea; color: #8c1d18; font-size: 14px; }
.pr-nav { display: flex; gap: 10px; margin-top: 16px; }
.pr-nav #prNext { flex: 1; }
.pr-sum .co-secure { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* orders */
#prOrders { animation: pr-up .5s var(--pr-ease) both; }
#prOrders h2 { font-size: 30px; margin-bottom: 18px; }
.pr-orders { display: grid; gap: 16px; max-width: 860px; }
.pr-order { padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); animation: pr-up .5s var(--pr-ease) both; animation-delay: calc(var(--i) * 60ms); }
.pr-order header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pr-order header div { display: flex; flex-direction: column; }
.pr-order header b { font-size: 17px; }
.pr-badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-alt); }
.pr-badge.s-printing { background: #fff3d6; color: #8a5a00; } .pr-badge.s-shipped { background: #e1effa; color: #1d5b8c; }
.pr-badge.s-delivered { background: #e2f3e8; color: #1e6b3a; } .pr-badge.s-cancelled { background: #fdecea; color: #8c1d18; }
.pr-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 18px 0 8px; }
.pr-track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 13px; color: var(--muted); }
.pr-track li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.pr-track li:first-child::before { display: none; }
.pr-track li.done::before, .pr-track li.now::before { background: var(--accent); }
.pr-track i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.pr-track .done i { background: var(--accent); border-color: var(--accent); }
.pr-track .now i { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); animation: pr-pulse 1.8s ease-in-out infinite; }
.pr-track .now span { color: var(--ink); font-weight: 600; }
.pr-trackno { margin: 8px 0 0; font-size: 14px; }

.pr-done { text-align: center; padding: 10px 6px 0; }
.pr-done-tick { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 36px; animation: pr-pop .6s cubic-bezier(.34,1.56,.64,1) both; }
.pr-done footer { justify-content: center; }
.pr-toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); animation: pr-up .4s var(--pr-ease) both; max-width: calc(100% - 32px); }
.pr-toast.bad { background: #8c1d18; color: #fff; }

@keyframes pr-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes pr-pop { from { opacity: 0; transform: scale(.94); } }
@keyframes pr-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .print-page *, .print-page *::before, .print-page *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-sum { position: static; }
  .pr-steps { border-radius: 18px; }
  .pr-steps span { display: none; }
  .pr-steps .on span { display: inline; }
}
@media (max-width: 560px) {
  .pr-type { grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; }
  .pr-type-art { height: 70px; }
  .pr-from { grid-column: 2; text-align: left; }
  .pr-from b { display: inline; font-size: 18px; }
  .pr-addr { grid-template-columns: 1fr; }
  .pr-pages { grid-template-columns: repeat(2, 1fr); }
  .pr-page.spread { grid-column: span 2; }
  .pr-chip { width: calc(33.33% - 7px); }
  .pr-panel h2, #prOrders h2 { font-size: 26px; }
}
