/* Fly Phone: shared header bits + shop + booking. Same tokens and type as site.css. */

/* ---------- header bag + footer links ---------- */
.bagbtn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 2px; color: var(--black); transition: border-color .2s, transform .18s var(--ease); }
.bagbtn:hover { border-color: var(--black); transform: translateY(-2px); }
.bagbtn .i { width: 22px; height: 22px; }
.bagn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--black); font: 700 11px/1 var(--font); }
.bagbtn .bagn { position: absolute; top: -7px; right: -7px; }
.bagn[hidden] { display: none; }
.bagbtn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.15); } }
.links a[aria-current="page"]::after { transform: scaleX(1); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #cfcac5; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--orange-l); }
@media (max-width: 480px) { .bagbtn { width: 44px; height: 44px; } }
body.locked { overflow: hidden; }

/* ---------- page head (shop, book) ---------- */
.phead { position: relative; display: grid; align-items: center; min-height: 460px; background: var(--black); color: #fff; overflow: hidden; }
.phead-short { min-height: 400px; }
.phead-photo { position: absolute; inset: 0 0 0 48%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.phead-photo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; z-index: 1; background: var(--orange); clip-path: polygon(0 0, 8% 0, 1% 100%, 0 100%); }
.phead-photo img { width: 100%; height: 100%; object-fit: cover; animation: push 22s var(--ease) both; }
.phead-in { position: relative; z-index: 2; padding-block: 64px; }
.phead h1 { font-size: clamp(42px, 5vw, 80px); line-height: .94; font-weight: 800; max-width: 9ch; }
.phead h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.phead h1 .ln > span { display: inline-block; animation: rise .9s var(--ease) both; }
.phead h1 .ln:nth-child(2) > span { animation-delay: .1s; }
.phead .wings i { animation: wing .7s var(--ease) both; }
.phead .lead { max-width: 36ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; animation: fade .8s .5s var(--ease) both; }
.facts li { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #e8e5e1; }
.facts .i { color: var(--orange); }
@media (max-width: 899px) {
  .phead, .phead-short { min-height: 0; align-items: start; }
  .phead-photo { position: relative; inset: auto; height: 34vh; min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .phead-photo::before { display: none; }
  .phead-in { padding-block: 22px 48px; }
}

/* ---------- shop ---------- */
.shop { padding-top: 48px; }
.shopbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chipf { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--black); font: 600 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.chipf:hover { border-color: var(--black); transform: translateY(-1px); }
.chipf[aria-selected="true"] { background: var(--black); color: #fff; border-color: var(--black); box-shadow: inset 0 -3px 0 var(--orange); }
.sort { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.sort select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 8px center / 18px no-repeat; font: 500 15px/1 var(--font); color: var(--black); appearance: none; cursor: pointer; }
.count { margin: 26px 0 18px; font-size: 15px; color: var(--slate); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; animation: fade .5s calc(var(--i) * 50ms) var(--ease) both; }
.pcard:hover { transform: translateY(-3px); border-color: #c9c4be; box-shadow: 0 24px 40px -30px rgba(0,0,0,.45); }
.pcard-open { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.pcard-img { aspect-ratio: 1; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-body { display: grid; gap: 6px; padding: 20px 20px 20px; }
.pcard-body .tag { color: var(--orange-d); }
.pcard h3 { font-size: 20px; line-height: 1.1; }
.pcard h3 button { all: unset; cursor: pointer; }
.pcard h3 button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.pcard-body > p { font-size: 15px; color: var(--slate); }
.pcard-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.pcard .price { margin: 0; color: var(--black); }
.addbtn { min-height: 44px; padding: 0 16px; }
.addbtn.ok, .btn.ok { --bg: var(--orange); --fg: var(--black); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid { gap: 10px; } .pcard-body { padding: 12px 12px 14px; gap: 4px; } .pcard h3 { font-size: 16px; }
  .pcard-body > p { font-size: 13px; } .pcard .price { font-size: 22px; }
  .pcard-row { flex-direction: column; align-items: stretch; gap: 8px; } .addbtn { width: 100%; }
  .sort { width: 100%; } .sort select { flex: 1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; } .chipf { flex: none; }
}
.acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--black); }
.acc h2 { font-size: clamp(30px, 3vw, 44px); }
.acc p { color: var(--slate); max-width: 44ch; }
@media (max-width: 899px) { .acc { grid-template-columns: 1fr; gap: 20px; } .acc .btn { justify-self: start; } }

/* ---------- product dialog ---------- */
.pd { width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 2px; background: #fff; color: var(--ink); overflow: auto; }
.pd::backdrop { background: rgba(10, 10, 10, .7); }
.pd[open] { animation: fade .3s var(--ease); }
.pd-in { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-img img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-body { display: grid; align-content: start; gap: 10px; padding: 44px 36px 32px; }
.pd-body .tag { color: var(--orange-d); }
.pd-body h2 { font-size: clamp(28px, 3vw, 40px); }
.pd-spec { color: var(--slate); }
.pd-price { font: 700 44px/1 var(--font); letter-spacing: -0.03em; color: var(--orange); margin: 6px 0; }
.pd-colours { border: 0; padding: 0; margin: 4px 0; }
.pd-colours legend, .field > span, .field legend { display: block; margin-bottom: 8px; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); padding: 0; }
.pd-colours[hidden] { display: none; }
#pd-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.sw span, .seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.sw span:hover, .seg span:hover { border-color: var(--black); }
.sw input:checked + span, .seg input:checked + span { background: var(--black); color: #fff; border-color: var(--black); box-shadow: inset 0 -3px 0 var(--orange); }
.sw input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.pd-points { display: grid; gap: 8px; margin: 8px 0 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.pd-points li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.pd-points .i { color: var(--orange); }
.pd-ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-weight: 600; text-decoration: none; }
.pd-ask:hover { color: var(--orange-d); }
.pd-note { font-size: 14px; color: var(--slate); text-align: center; }
.x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 2px; background: #fff; color: var(--black); cursor: pointer; transition: background-color .15s, color .15s; }
.x:hover { background: var(--black); color: #fff; }
.x .i { width: 22px; height: 22px; }
@media (max-width: 760px) { .pd-in { grid-template-columns: 1fr; } .pd-img img { aspect-ratio: 4 / 3; } .pd-body { padding: 24px 20px 24px; } }

/* ---------- bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .35s; }
.drawer.on { visibility: visible; transition: none; }
.drawer-back { position: absolute; inset: 0; background: rgba(10, 10, 10, .6); opacity: 0; transition: opacity .3s; }
.drawer.on .drawer-back { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.on .drawer-panel { transform: none; }
.drawer-top { position: relative; display: flex; align-items: center; min-height: 76px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.drawer-top h2 { font-size: 24px; }
.drawer-top .x { top: 16px; right: 16px; }
.drawer-step { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-step[hidden] { display: none; }
.drawer-step h3 { font-size: 24px; margin: 18px 0 18px; }
.drawer-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--black); }
.sum span { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.sum b { font: 700 30px/1 var(--font); letter-spacing: -0.02em; }
.small { font-size: 14px; color: var(--slate); }
.lines { display: grid; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; }
.line b { display: block; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.line span { display: block; font-size: 14px; color: var(--slate); }
.line em { font-style: normal; font-weight: 700; }
.lines-sm .line { grid-template-columns: 52px 1fr auto; padding: 10px 0; } .lines-sm .line img { width: 52px; height: 52px; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 2px; }
.qty button { width: 34px; height: 32px; border: 0; background: none; font: 600 18px/1 var(--font); cursor: pointer; }
.qty button:hover { background: var(--paper); }
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.empty { display: grid; justify-items: center; gap: 14px; padding: 60px 0; text-align: center; color: var(--slate); }
.empty[hidden], .drawer-foot[hidden] { display: none; }
.backlink, .linkbtn { display: inline-flex; align-items: center; gap: 6px; align-self: start; margin-top: 12px; padding: 6px 0; border: 0; background: none; font: 600 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--black); cursor: pointer; }
.backlink:hover, .linkbtn:hover { color: var(--orange-d); }

/* ---------- form fields ---------- */
.field { display: block; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfcac4; border-radius: 2px; background: #fff; font: 400 17px/1.3 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: inset 0 -3px 0 var(--orange); }
.field.bad input { border-color: #c4310b; }
.field.bad::after { content: "Please fill this in."; display: block; margin-top: 6px; font-size: 13px; color: #c4310b; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }

/* ---------- done states ---------- */
.done { text-align: left; }
.tick { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 18px; border-radius: 50%; background: var(--orange); color: var(--black); animation: pop .5s var(--ease); }
.tick .i { width: 30px; height: 30px; }
.ref { margin: 6px 0 12px; font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.ref b { color: var(--orange-d); letter-spacing: .08em; font-size: 16px; }
.done .btn { margin-top: 12px; }
.done > p:not(.ref) { color: var(--slate); }

/* ---------- booking ---------- */
.booking { padding-top: 56px; }
.bk { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.bk > * { min-width: 0; }
.bk-step { margin: 0 0 18px; padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: 2px; background: #fff; min-width: 0; transition: opacity .3s, border-color .3s; }
.bk-step:disabled { opacity: .45; }
.bk-step:disabled * { cursor: not-allowed; }
.bk-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 0; font: 700 clamp(22px, 2vw, 28px)/1 var(--font); text-transform: uppercase; letter-spacing: -0.01em; }
.bk-step legend + * { clear: both; }
.bk-step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--paper); font: 600 14px/1 var(--font); letter-spacing: .06em; color: var(--orange-d); transition: background-color .2s, color .2s; }
.bk-step.done .n { background: var(--orange); color: var(--black); font-size: 0; }
.bk-step.done .n::before { content: ""; width: 16px; height: 9px; border: solid var(--black); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: 600 16px/1.1 var(--font); text-transform: uppercase; letter-spacing: .02em; text-align: left; color: var(--black); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.tile .i { width: 24px; height: 24px; color: var(--orange); }
.tile:hover, .issue:hover, .day:hover:not(:disabled), .slot:hover { border-color: var(--black); transform: translateY(-1px); }
.tile[aria-checked="true"], .issue[aria-checked="true"], .day[aria-checked="true"], .slot[aria-checked="true"] { background: var(--black); color: #fff; border-color: var(--black); box-shadow: inset 0 -3px 0 var(--orange); }
.bk .models { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.bk .models[hidden] { display: none; }
.issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.issue { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: 600 15px/1.1 var(--font); text-transform: uppercase; letter-spacing: .02em; text-align: left; color: var(--black); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.issue em { font-style: normal; font-weight: 500; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--slate); white-space: nowrap; }
.issue em:first-letter { }
.issue[aria-checked="true"] em { color: var(--orange-l); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: none; display: grid; justify-items: center; gap: 4px; width: 68px; padding: 10px 0; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--black); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.day small { font: 600 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.day b { font: 700 24px/1 var(--font); }
.day[aria-checked="true"] small { color: var(--orange-l); }
.day:disabled { opacity: .4; background: var(--paper); cursor: not-allowed; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 16px; }
.times:empty { display: none; }
.slot { min-height: 46px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: 600 15px/1 var(--font); color: var(--black); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.hint { margin-top: 12px; font-size: 14px; color: var(--slate); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.bk-sum { position: sticky; top: calc(var(--top-h) + 24px); }
.sum-in { position: relative; background: var(--black); color: #fff; padding: 32px; border-radius: 2px; border-top: 4px solid var(--orange); }
.sum-in[hidden] { display: none; }
.sum-list { margin: 20px 0 4px; border-top: 1px solid var(--black-3); }
.sum-list div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--black-3); }
.sum-list dt { font: 600 11px/1.6 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8f8a85; }
.sum-list dd { font-weight: 500; }
.sum-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 22px; }
.sum-price-l { font: 600 12px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-l); }
.sum-price b { font: 700 clamp(36px, 3.4vw, 52px)/1 var(--font); letter-spacing: -0.03em; color: var(--orange); white-space: nowrap; }
.sum-in .small { margin-top: 12px; color: #a8a39e; text-align: center; }
.sum-in .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.sum-in.done h2 { margin-top: 18px; font-size: 36px; }
.sum-in.done .ref { color: #a8a39e; }
.sum-in.done .ref b { color: var(--orange-l); }
.sum-in .linkbtn { color: #fff; margin-top: 18px; }
.sum-in .linkbtn:hover { color: var(--orange-l); }
.bk-form.booked { opacity: .5; pointer-events: none; }
@media (max-width: 899px) {
  .bk { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bk-step { padding: 22px 16px 18px; scroll-margin-top: calc(var(--top-h) + 12px); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk .models { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .issues { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .bk-sum { position: sticky; bottom: 0; top: auto; z-index: 5; margin-inline: -20px; }
  .sum-in { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 0; }
  #sum .out-label, #sum .sum-list, #sum .small { display: none; }
  #sum .sum-price { margin: 0 0 12px; }
  #sum .sum-price b { font-size: 32px; }
  .sum-in.done { padding: 28px 20px 40px; }
}

.field[hidden], .tiles[hidden] { display: none; }

.sum-in.done > p:not(.ref):not(.small){margin:.5rem 0 1rem;color:rgba(255,255,255,.78)}

/* ---------- stock states (set from the admin) ---------- */
.pcard-img, .card-img { position: relative; }
.stock { position: absolute; left: 10px; top: 10px; padding: 6px 9px; background: var(--black); color: #fff; font: 600 11px/1 var(--font); font-stretch: 105%; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
.is-out .pcard-img img { filter: grayscale(1); opacity: .55; }
.is-out .price { color: var(--slate) !important; text-decoration: line-through; text-decoration-thickness: 1px; }
.btn:disabled { --bg: var(--line); --fg: var(--slate); cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.pcard h3, .card h3 { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 button { display: inline; }
.pcard-body > p, .card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- full screen price list under the finder (rendered by the Worker) ---------- */
.plist { width: 100%; justify-self: stretch; margin-top: 18px; border-top: 1px solid var(--line); }
.plist summary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 0 6px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.plist summary::-webkit-details-marker { display: none; }
.plist summary::after { content: "+"; font-size: 18px; line-height: 1; text-decoration: none; }
.plist[open] summary::after { content: "−"; }
.plist table { width: 100%; max-width: 520px; border-collapse: collapse; margin: 8px 0 4px; font-size: 15px; }
.plist th, .plist td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.plist td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.plist caption { text-align: left; font-size: 13px; color: var(--slate); padding-bottom: 4px; }
