/* Builder C — portfolio, project pages, galleries, material library, mood board, my boards, shop.
   Figma: Portfolio 22:3189 / 25:3612 / 102:19150 / 102:19418, Design Gallery 27:4432, Material Gallery 53:9028,
   Mood Board 63:13332, My Projects 61:12845, Collection 61:13073, Shop 180:23138, Shop-Cart 180:24051. */

/* ---------- section tabs (Figma 63:13731: underline tabs) ---------- */
.ptabs-wrap { background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero + .ptabs-wrap { margin-top: -1px; }
.ptabs { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a, .ptabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 14px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font: 500 12px/16px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ptabs a:hover, .ptabs button:hover { color: var(--ink); }
.ptabs .is-active, .ptabs [aria-selected="true"] { color: var(--gold-ink); border-bottom-color: var(--gold); }
.ptabs__n { font-size: 11px; letter-spacing: 0; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; line-height: 18px; }
@media (max-width: 600px) { .ptabs a, .ptabs button { padding-inline: 14px; } }

/* ---------- sticky filter bar (Figma 22:3506 / 27:4647 / 53:9286) ---------- */
.gbar { position: sticky; top: var(--hdr-h); z-index: 20; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.gbar__inner { display: flex; align-items: center; gap: 12px 16px; padding-block: 16px; flex-wrap: wrap; }
.gbar__rows { display: grid; gap: 12px; flex: 1; min-width: 0; }
.gbar__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gbar .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; min-width: 0; padding: 1px; }
.gbar .filters::-webkit-scrollbar { display: none; }
.gbar .filter { white-space: nowrap; background: var(--cream); color: var(--muted); padding: 8px 14px; letter-spacing: .1em; }
.gbar .filters { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
.gbar .filter:hover { color: var(--ink); }
.gbar .filter.is-active { background: var(--gold); color: #fff; }
.gbar .filters--dark .filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gbar__inner > .filters { flex: 1 1 0; }
.gbar__sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.gbar__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gcount { font-size: 12px; color: var(--muted); white-space: nowrap; margin: 0; }
.gsearch { position: relative; }
.gsearch input { width: 180px; height: 32px; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 0 16px 0 33px; font-size: 13px; }
.gsearch input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.gsearch::before { content: ""; position: absolute; left: 12px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; background: var(--muted); -webkit-mask: url('/assets/img/materials/icon-search.svg') center / contain no-repeat; mask: url('/assets/img/materials/icon-search.svg') center / contain no-repeat; }
@media (max-width: 860px) {
  .gbar__inner { padding-block: 12px; }
  .gbar__tools { width: 100%; margin-left: 0; }
  .gsearch { flex: 1; } .gsearch input { width: 100%; }
}
.gempty { text-align: center; color: var(--muted); padding: 48px 0; }
[data-gf-item][hidden], [data-tags][hidden] { display: none !important; }

/* ---------- portfolio grid card (Figma 22:3521) ---------- */
.pgrid { padding-block: clamp(40px, 5vw, 64px); }
.pcard { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; color: inherit; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.pcard .media { border-radius: 0; }
.pcard__body { padding: 20px; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard__loc { font-size: 12px; line-height: 16px; color: var(--muted); text-align: right; }
.pcard__title { font: 300 20px/28px var(--serif); font-variation-settings: "SOFT" 0, "WONK" 1; margin: 12px 0 0; color: var(--ink); }
.pcard__text { font-size: 14px; line-height: 20px; color: var(--muted); margin: 8px 0 0; }
.pill--xs { font-size: 10px; line-height: 14px; letter-spacing: .12em; padding: 4px 12px; }

/* ---------- project page (Figma 25:4133 modal translated to a page) ---------- */
.proj-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0; padding: 24px 0 33px; border-bottom: 1px solid var(--line); }
.pfacts div { min-width: 0; }
.pfacts dt { font: 400 12px/16px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pfacts dd { margin: 4px 0 0; font: 500 14px/20px var(--sans); color: var(--ink); }
.pgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pgal a { display: block; border-radius: 8px; overflow: hidden; position: relative; }
.pgal .pgal__full { grid-column: 1 / -1; }
.pgal .media { border-radius: 8px; }
.pgal figcaption, .pgal__cap { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.9); font: 500 12px/16px var(--sans); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.pgal__zoom { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.88); color: #1a1a1a; display: grid; place-items: center; font-size: 16px; pointer-events: none; }
.pquote { margin: 0; padding: 32px 0 24px; }
.pquote p { font: italic 300 20px/31px var(--serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--ink); margin: 0 0 12px; }
.pquote cite { font: 400 14px/20px var(--sans); color: var(--muted); font-style: normal; }
.proj-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.proj-body__aside { position: sticky; top: calc(var(--hdr-h) + 24px); }
@media (max-width: 900px) { .proj-body { grid-template-columns: 1fr; } .proj-body__aside { position: static; } }
.btn--wide { width: 100%; }

/* ---------- floor plan viewer (Figma 102:19083) ---------- */
.fplan { max-width: 880px; margin-inline: auto; }
.fplan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fplan__label { font: 500 12px/16px var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fplan__opts { display: flex; gap: 8px; }
.opt-pill { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 13px; font: 500 12px/16px var(--sans); color: var(--muted); cursor: pointer; }
.opt-pill:hover { border-color: var(--gold); }
.opt-pill.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.fplan__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.fplan .seg { background: var(--cream); }
.fplan .seg button { padding: 8px 16px; letter-spacing: 0; }
.fplan__box { position: relative; margin-top: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 688 / 387; overflow: hidden; color: var(--ink); }
.fplan__box svg { width: 100%; height: 100%; display: block; }
.fplan__box svg[hidden] { display: none; }
.fplan__box .fp-wall { stroke: currentColor; }
.fplan__box .fp-room { fill: var(--muted); font: 400 8.4px var(--sans); letter-spacing: .02em; text-anchor: middle; }
.fplan__box .fp-dim { fill: var(--muted); font: 400 7.5px var(--sans); text-anchor: middle; }
.fplan__cap { position: absolute; right: 16px; bottom: 12px; font-size: 12px; line-height: 16px; color: var(--muted); opacity: .6; margin: 0; }
.fplan__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 600px) { .fplan__box { aspect-ratio: 4 / 3; } .fplan__box svg { transform: scale(1.18); } }

/* ---------- 3D viewer (Figma 102:20245) ---------- */
.v3d { position: relative; margin-top: 16px; background: #1a1a1a; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 688 / 387; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.v3d.is-drag { cursor: grabbing; }
.v3d__img { position: absolute; left: 50%; top: 50%; height: 106%; width: auto; max-width: none; opacity: .9; transform: translate(-50%, -50%); transform-origin: center; pointer-events: none; transition: transform .15s ease-out; }
.v3d.is-drag .v3d__img { transition: none; }
.v3d__tag { position: absolute; left: 16px; top: 16px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.8); font: 500 12px/16px var(--sans); padding: 6px 12px; border-radius: 999px; margin: 0; }
.v3d__ctrl { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.v3d__ctrl button { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(184,151,90,.4); color: #fff; font: 500 14px/1 var(--sans); display: grid; place-items: center; cursor: pointer; }
.v3d__ctrl button:hover { background: rgba(255,255,255,.2); }
.v3d__ctrl img { width: 13px; height: 13px; }
@media (max-width: 600px) { .v3d { aspect-ratio: 1 / 1; } }

/* ---------- design gallery (Figma 27:4676) ---------- */
.gal { padding-block: 40px clamp(56px, 7vw, 96px); }
.gitem { margin: 0; }
.gitem .media { border-radius: 8px; display: block; }
.gitem .media > a { display: block; }
.gitem .media img { height: auto; }
.gitem__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.gitem__cap b { font-weight: 500; color: var(--ink); }
@media (hover: none) { .save-btn { opacity: 1; } }

/* ---------- material library cards (Figma 53:9312) ---------- */
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mgrid { grid-template-columns: 1fr; } }
.mcard { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mcard .media { border-radius: 0; }
.mcard__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mcard__name { font: 500 15px/20px var(--sans); color: var(--ink); margin: 0; }
.mcard__cat { font-size: 12px; line-height: 16px; color: var(--muted); margin: 2px 0 0; }
.mcard__price { font: 300 18px/1.3 var(--serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--ink); margin: 0; }
.mcard__price small { font: 400 12px var(--sans); color: var(--muted); }
.mprops { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 12px; align-items: center; }
.mprops dt { color: var(--muted); }
.mprops dd { margin: 0; justify-self: end; color: var(--ink); font-weight: 500; }
.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.meter i.on { background: var(--gold); }
.mcard__best { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.mcard__best b { color: var(--ink); font-weight: 500; }
.mcard details { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--muted); }
.mcard summary { cursor: pointer; font: 500 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); list-style: none; }
.mcard summary::-webkit-details-marker { display: none; }
.mcard summary::after { content: " +"; }
.mcard details[open] summary::after { content: " –"; }
.mcard details p { margin: 8px 0 0; line-height: 1.55; }
.mcard__link { margin-top: auto; font: 500 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); text-align: center; padding-top: 4px; }
.mcard__link:hover { color: var(--gold); }
.note-ind { font-size: 13px; color: var(--muted); }
.cmp td:first-child { font-weight: 500; color: var(--ink); }

/* ---------- mood board builder (Figma 63:13740) ---------- */
.mb__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mb__title { font: 300 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--ink); border: 0; border-bottom: 1px dashed var(--line); background: transparent; padding: 4px 0; min-width: 0; flex: 1 1 260px; max-width: 520px; }
.mb__title:focus { outline: none; border-bottom-color: var(--gold); }
.mb__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--line { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 11px 21px; font: 500 12px/16px var(--sans); letter-spacing: .1em; }
.btn--line:hover { border-color: var(--gold); color: var(--ink); }
.mb__canvas { position: relative; margin-top: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 420px; }
.mb__note-form { display: flex; gap: 8px; max-width: 280px; margin-left: auto; margin-bottom: 16px; }
.mb__note-form input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 0 9px; font-size: 13px; }
.mb__note-form input:focus { outline: none; border-color: var(--gold); }
.mb__note-form button { width: 32px; height: 32px; border: 0; border-radius: 4px; background: var(--gold); color: #fff; cursor: pointer; font-size: 16px; }
.mb__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(110px, 12vw, 170px); grid-auto-flow: dense; gap: 16px; }
.mb__tile { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream-2); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.mb__tile--big { grid-column: span 2; grid-row: span 2; }
.mb__tile--wide { grid-column: span 2; }
.mb__tile img { width: 100%; height: 100%; object-fit: cover; }
.mb__tile[draggable="true"] { cursor: grab; }
.mb__tile.is-dragging { opacity: .4; }
.mb__tile.is-over { outline: 2px dashed var(--gold); outline-offset: 2px; }
.mb__tile figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); font: 500 11px/1.3 var(--sans); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb__ctl { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.mb__tile:hover .mb__ctl, .mb__tile:focus-within .mb__ctl, .mb__sw:hover .mb__ctl, .mb__sw:focus-within .mb__ctl { opacity: 1; }
@media (hover: none) { .mb__ctl { opacity: 1; } }
.mb__ctl button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #1a1a1a; font: 500 13px/1 var(--sans); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mb__ctl button:hover { background: var(--gold); color: #fff; }
.mb__swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mb__sw { position: relative; display: grid; justify-items: center; gap: 4px; width: 64px; }
.mb__sw span.dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.1); }
.mb__sw small { font-size: 10px; line-height: 1.2; color: var(--muted); text-align: center; word-break: break-word; }
.mb__sw .mb__ctl { top: -6px; right: 0; }
.mb__sw .mb__ctl button { width: 22px; height: 22px; font-size: 11px; }
.mb__notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; }
.mb__notes li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 34px 8px 12px; font: italic 300 15px/1.4 var(--serif); color: var(--ink); max-width: 100%; }
.mb__notes li button { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--cream-2); cursor: pointer; color: var(--muted); }
.mb__empty { display: grid; place-items: center; text-align: center; min-height: 260px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 24px; }
.mb__status { font-size: 13px; color: var(--muted); min-height: 1.2em; margin: 12px 0 0; }
.mb__status.is-ok { color: #2f7a4a; }
.mb__picker { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mb__picker .ptabs { background: var(--cream); border-bottom: 1px solid var(--line); margin: 0; padding-inline: 8px; }
.mb__pane { padding: 20px; }
.mb__pane[hidden] { display: none; }
.mb__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.mb__thumb { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--cream-2); padding: 0; cursor: pointer; aspect-ratio: 1; text-align: left; }
.mb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mb__thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font: 500 10.5px/1.25 var(--sans); }
.mb__thumb::after { content: "+"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1a1a1a; display: grid; place-items: center; font: 500 14px/1 var(--sans); }
.mb__thumb.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.mb__thumb.is-on::after { content: "✓"; background: var(--gold); color: #fff; }
.mb__colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.mb__colour { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 8px; cursor: pointer; text-align: left; font-size: 12px; color: var(--ink); }
.mb__colour i { display: block; height: 44px; border-radius: 6px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.06); }
.mb__colour small { display: block; color: var(--muted); font-size: 10.5px; }
.mb__colour.is-on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.mb__custom { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.mb__custom input[type=color] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--bg); cursor: pointer; }
@media (max-width: 700px) {
  .mb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; }
  .mb__canvas { padding: 14px; }
  .mb__note-form { max-width: none; }
}

/* ---------- my boards (Figma 61:13073 "Collection" + 61:12845 account bar) ---------- */
.page-hero--compact { padding-block: clamp(36px, 5vw, 56px) 24px; }
.page-hero--compact .display { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 8px; }
.sb__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.sb__head .h3 { margin: 0; font-size: 24px; }
.sb__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .sb__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sbcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.sbcard__img { aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.sbcard__img img { width: 100%; height: 100%; object-fit: cover; }
.sbcard__sw { display: flex; height: 100%; }
.sbcard__sw i { flex: 1; }
.sbcard__body { padding: 12px; }
.sbcard__t { font: 500 13px/18px var(--sans); color: var(--ink); margin: 0; }
.sbcard__s { font-size: 12px; line-height: 16px; color: var(--muted); margin: 2px 0 0; }
.sbcard__x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1a1a1a; cursor: pointer; font-size: 15px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sbcard__x:hover { background: #b3452f; color: #fff; }
.sbcard__acts { display: flex; gap: 12px; padding: 0 12px 12px; font-size: 12px; }
.sbcard__acts a, .sbcard__acts button { color: var(--gold-ink); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sb__empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); text-align: center; color: var(--muted); }
.sb__empty .flex { justify-content: center; margin-top: 20px; }
.sb__send { margin-top: 56px; }

/* ---------- shop (Figma 180:23422 + cart 181:24358) ---------- */
.shcard { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shcard .media { border-radius: 0; }
.shcard__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.shcard__kicker { font: 500 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
.shcard__name { font: 500 14px/20px var(--sans); color: var(--ink); margin: 4px 0 0; }
.shcard__desc { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }
.shcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.shcard__price { font: 300 18px/28px var(--serif); font-variation-settings: "SOFT" 0, "WONK" 1; color: var(--ink); margin: 0; }
.shcard__price small { display: block; font: 400 11px/14px var(--sans); color: var(--muted); }
.shcard__price--req { font-size: 15px; }
.add-btn { border: 0; border-radius: 999px; background: var(--gold); color: #fff; font: 500 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.add-btn:hover { background: var(--gold-ink); }
.add-btn.is-added { background: transparent; color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold); }
.enq-open { display: inline-flex; align-items: center; gap: 8px; }
.enq-open b { min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: var(--gold-ink); font: 600 11px/20px var(--sans); text-align: center; padding: 0 6px; }
.enq-fab { position: fixed; left: 18px; bottom: 18px; z-index: 60; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.enq-fab[hidden] { display: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 108; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.drawer-scrim[hidden] { display: none; }
.drawer-scrim.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); box-shadow: 0 25px 25px rgba(0,0,0,.25); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s ease; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 21px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: 300 20px/28px var(--serif); margin: 0; }
.drawer__close { border: 0; background: none; font: 400 26px/24px var(--sans); color: var(--muted); cursor: pointer; padding: 4px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.citem { display: flex; gap: 16px; padding-bottom: 17px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.citem img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.citem__main { flex: 1; min-width: 0; }
.citem__name { font: 500 14px/20px var(--sans); color: var(--ink); margin: 0; }
.citem__qty { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.citem__qty button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink); line-height: 1; }
.citem__price { font: 300 14px/20px var(--serif); color: var(--ink); margin: 4px 0 0; }
.citem__rm { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; align-self: center; padding: 0; }
.citem__rm:hover { color: #b3452f; }
.drawer__empty { color: var(--muted); text-align: center; padding: 40px 0; }
.drawer__foot { border-top: 1px solid var(--line); padding: 25px 24px 24px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.drawer__total span { font-size: 14px; color: var(--muted); }
.drawer__total strong { font: 300 20px/28px var(--serif); color: var(--ink); }
.drawer__note { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.drawer__form { padding-top: 8px; }
.drawer__form .form__row { grid-template-columns: 1fr; }
.drawer__form .btn { justify-self: stretch; }
body.drawer-lock { overflow: hidden; }

/* ---------- lightbox prev / next (enhances the shared site.js lightbox) ---------- */
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 300 34px/1 var(--sans); display: none; place-items: center; cursor: pointer; user-select: none; padding-bottom: 4px; }
.lightbox.lb--multi .lb-nav { display: grid; }
.lightbox .lb-nav:hover, .lightbox .lb-nav:focus-visible { background: var(--gold); }
.lightbox .lb-nav--prev { left: 16px; } .lightbox .lb-nav--next { right: 16px; }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; margin: 0; }
.mb [hidden], .sb [hidden], .drawer [hidden] { display: none !important; }
@media (max-width: 600px) {
  .mb__actions .btn { padding: 9px 14px; font-size: 11px; letter-spacing: .06em; }
  .ptabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); padding-right: 24px; }
  .sb__head .flex { gap: 8px; }
}
@media (max-width: 600px) { .gbar { position: relative; top: auto; } }
.proj-body__aside p a:not(.link-arrow), .mb a, .sb a:not(.btn), .note-ind a, .gempty a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
