:root { --ink: #f2efe9; --ink2: #c9c3b9; }
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; }
body {
  background: #0c0c0d;
  color: #f2efe9;
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ===== Header ===== */
.header { text-align: center; padding: 10px 16px 8px; }
.lockicon { width: 28px; height: 28px; margin: 0 auto 4px; }
.brandname { font-size: 22px; font-weight: 900; letter-spacing: 4px; direction: ltr; margin: 0; }
.brandname .o { color: #f97316; }
.brandar { font-size: 14px; font-weight: 700; color: #f97316; margin-top: 1px; }
.tagline { font-size: 11px; color: #a39d93; margin-top: 2px; }

/* ===== Top bar (inner pages) ===== */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid #222226;
  position: sticky; top: 0; background: #0c0c0d; z-index: 5;
}
.back {
  width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; border-radius: 50%;
  background: #1a1a1d; border: 1px solid #2a2a2f;
  color: #f2efe9; font-size: 18px; line-height: 1;
}
.topbar .title { font-size: 19px; font-weight: 900; margin: 0; }
.topbar .sub { font-size: 12px; color: #a39d93; margin-top: 2px; }
.szbadge {
  margin-right: auto;
  background: linear-gradient(145deg, #f97316, #c2410c);
  color: #141414; font-weight: 900; font-size: 15px;
  border-radius: 10px; padding: 6px 12px; direction: ltr;
}
.szbadge:empty { display: none; }

/* ===== Home rows ===== */
.rows { padding: 6px 16px 0; max-width: 560px; margin: 0 auto; }
.grouplabel { font-size: 12.5px; color: #8f897f; font-weight: 700; padding: 16px 8px 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: right;
  background: #1a1a1d;
  border: 1px solid #2a2a2f;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: inherit;
}
.row:active { background: #202024; }
.thumb {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f97316, #c2410c);
  color: #141414; font-size: 18px; font-weight: 900; direction: ltr;
}
.thumb.gray { background: linear-gradient(145deg, #3a3a40, #232326); }
.thumb svg { width: 26px; height: 26px; }
.rtext .t1 { font-size: 16.5px; font-weight: 800; }
.rtext .t2 { font-size: 12px; color: #a39d93; margin-top: 3px; }
.chev { margin-right: auto; color: #7d776d; font-size: 17px; }

.note {
  margin: 18px 16px 0;
  font-size: 12px; color: #8f897f; text-align: center; line-height: 1.8;
}

/* ===== Piece cards ===== */
.cards { padding: 14px 16px 0; max-width: 560px; margin: 0 auto; }
.card {
  display: flex; gap: 14px;
  background: #1a1a1d;
  border: 1px solid #2a2a2f;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  align-items: center;
}
.card.is-taken { opacity: .55; }
.pimg {
  flex: 0 0 84px; height: 84px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(145deg, #26262b, #17171a);
  display: flex; align-items: center; justify-content: center;
}
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg svg { width: 38px; height: 38px; opacity: .85; }
.pinfo { flex: 1; min-width: 0; }
.pname { font-size: 15px; font-weight: 800; line-height: 1.5; }
.pmeta { font-size: 12px; color: #a39d93; margin-top: 3px; }
.price { font-size: 15px; font-weight: 900; color: #f97316; margin-top: 5px; }
.statuschip { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 8px; padding: 4px 10px; margin-top: 6px; }
.statuschip.reserved { background: #3a2f10; color: #e8b877; }
.statuschip.sold { background: #3a1418; color: #f0888f; }
.addbtn {
  flex: 0 0 auto;
  background: none; border: 1.5px solid #f97316; border-radius: 10px;
  color: #f97316; font-size: 12.5px; font-weight: 800;
  padding: 9px 14px; min-height: 44px;
}
.addbtn.added { background: #14532d; border-color: #14532d; color: #7ee2a8; }

/* ===== Empty state ===== */
.empty {
  text-align: center; padding: 22px 24px 18px;
  max-width: 560px; margin: 0 auto;
}
.empty svg { width: 38px; height: 38px; opacity: .9; }
.empty h2 { font-size: 16px; font-weight: 800; margin-top: 8px; }
.empty p { font-size: 12.5px; color: #a39d93; margin-top: 4px; line-height: 1.8; }

/* ===== Sticky list bar ===== */
.stickybar {
  position: fixed; bottom: 0; right: 0; left: 0;
  background: #17171a;
  border-top: 1px solid #2e2e33;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  z-index: 10;
}
.stickybar .info {
  background: none; border: none; color: #b8b2a8;
  font-size: 12.5px; line-height: 1.5; text-align: right;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; padding: 0;
}
.stickybar .info b { color: #f2efe9; font-size: 13.5px; }
.stickybar .book {
  margin-right: auto;
  background: #f97316; color: #141414;
  font-size: 15px; font-weight: 900;
  border: none; border-radius: 12px;
  padding: 13px 20px;
}
.book.wide { width: 100%; margin: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 900; background: #f97316; color: #141414; border: none; }

/* ===== List sheet ===== */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 19;
}
.sheet {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 20;
  background: #17171a;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #2e2e33;
  max-height: 75vh; overflow-y: auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
}
.sheet-head { display: flex; align-items: center; margin-bottom: 8px; }
.sheet-head h2 { font-size: 17px; font-weight: 900; }
.sheet-close {
  margin-right: auto; background: #232326; border: none; color: #b8b2a8;
  width: 44px; height: 44px; border-radius: 50%; font-size: 15px;
}
.sheet-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid #242428;
}
.sheet-item .n { font-size: 14px; font-weight: 700; flex: 1; }
.sheet-item .p { font-size: 13.5px; font-weight: 800; color: #f97316; }
.sheet-item .rm { background: none; border: none; color: #8f897f; font-size: 15px; padding: 6px; min-width: 44px; min-height: 44px; }
.sheet-empty { text-align: center; color: #a39d93; font-size: 13.5px; padding: 26px 0; }
.sheet-foot { padding-top: 14px; }
.sheet-total { font-size: 14.5px; font-weight: 900; margin-bottom: 12px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 110px; right: 50%; transform: translateX(50%);
  background: #26262b; color: #f2efe9;
  border: 1px solid #3a3a40;
  border-radius: 12px; padding: 12px 18px;
  font-size: 13px; font-weight: 700; z-index: 30;
  max-width: 86vw; text-align: center; line-height: 1.7;
}

/* ===== Piece page ===== */
.pdetail { max-width: 560px; margin: 0 auto; }
.gallery { position: relative; margin-top: 4px; }
.gslides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gslides::-webkit-scrollbar { display: none; }
.gslide {
  flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(145deg, #1d1d21, #131316);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  user-select: none; -webkit-user-select: none;
}
.gslide img { width: 100%; height: 100%; object-fit: contain; }
.gslide video { width: 100%; height: 100%; object-fit: contain; }
.gslide.noimg svg { width: 84px; height: 84px; opacity: .8; }
.gslide.spin { cursor: grab; touch-action: pan-y; }
.gslide.spin:active { cursor: grabbing; }
.spinhint {
  position: absolute; bottom: 12px; right: 50%; transform: translateX(50%);
  background: rgba(12,12,13,.72); border: 1px solid #3a3a40;
  color: #e8b877; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
  pointer-events: none;
}
.gcount {
  position: absolute; top: 12px; left: 12px;
  background: rgba(12,12,13,.72); border: 1px solid #3a3a40;
  color: #f2efe9; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 5px 12px;
}
.gdots {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; gap: 6px;
}
.gdot { width: 7px; height: 7px; border-radius: 50%; background: #4a4a50; }
.gdot.on { background: #f97316; }
.pbody { padding: 16px 16px 0; }
.pname.big { font-size: 19px; font-weight: 900; line-height: 1.6; }
.price.big { font-size: 22px; margin-top: 8px; }
.pdesc { font-size: 13.5px; color: #c9c3b9; line-height: 1.9; margin-top: 12px; }
.paction { margin-top: 16px; }
.addbtn.big { width: 100%; padding: 15px; font-size: 15.5px; border-radius: 14px; }
.statuschip.big { font-size: 14.5px; padding: 12px 18px; width: 100%; text-align: center; }
.zoomhint { font-size: 11.5px; color: #8f897f; text-align: center; margin-top: 10px; }
.card[data-piece] { cursor: pointer; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(6,6,7,.96);
  display: flex; align-items: center; justify-content: center;
}
.lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
}
.lb-stage img {
  max-width: 100vw; max-height: 100vh; object-fit: contain;
  transition: transform .18s ease;
  user-select: none; -webkit-user-select: none;
}
.lb-stage img.zoomed { cursor: grab; transition: none; }
.lb-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(26,26,29,.85); border: 1px solid #3a3a40;
  color: #f2efe9; font-size: 16px;
}
.lb-count {
  position: absolute; top: calc(22px + env(safe-area-inset-top)); right: 16px; z-index: 2;
  color: #c9c3b9; font-size: 13px; font-weight: 800;
  background: rgba(26,26,29,.85); border: 1px solid #3a3a40;
  border-radius: 999px; padding: 6px 14px;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(26,26,29,.85); border: 1px solid #3a3a40;
  color: #f2efe9; font-size: 20px; line-height: 1;
}
.lb-nav.prev { right: 12px; }
.lb-nav.next { left: 12px; }

/* badges + size filter chips */
.pimg { position: relative; }
.pbadges { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; }
.badge.new { background: #f97316; color: #0c0c0d; }
.badge.last { background: #3a1418; color: #f0888f; }
.pname.big .pbadges { position: static; display: inline-flex; flex-direction: row; margin-inline-start: 8px; vertical-align: middle; }
.fchips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 16px; -webkit-overflow-scrolling: touch; }
.fchip { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #17171a; color: #e8e4dc; border: 1.5px solid #26262b; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 0; }
.fchip.on { background: #f97316; color: #0c0c0d; border-color: #f97316; }
.fchip.fchip-all { width: auto; border-radius: 26px; padding: 0 18px; font-size: 13px; }

.demobar { background: #f97316; color: #0c0c0d; text-align: center; font-weight: 800; padding: 8px 10px; font-size: 13px; }

/* search */
.searchbtn { display: block; width: calc(100% - 24px); margin: 12px 12px 4px; background: #17171a; border: 1.5px solid #26262b; border-radius: 14px; color: #8f897f; font-size: 14.5px; font-weight: 700; text-align: right; padding: 13px 16px; }
.searchwrap { padding: 12px 12px 4px; }
.searchbox { width: 100%; box-sizing: border-box; background: #17171a; border: 1.5px solid #f97316; border-radius: 14px; color: #f2efe9; font-size: 16px; padding: 13px 16px; outline: none; }

/* brand + sort chip rows (pills, not circles) */
.fchips.sortrow { padding-bottom: 8px; }
.fchips.sortrow .fchip,
.fchip[data-fbrand] { width: auto; height: 44px; border-radius: 22px; padding: 0 16px; font-size: 13px; }

/* discount */
.badge.sale { background: #15803d; color: #ecfdf5; }
.oldprice { color: #8f897f; font-weight: 600; text-decoration: line-through; font-size: .82em; margin-inline-end: 4px; }
.pnow, .oldprice { white-space: nowrap; }
.price .oldprice { display: block; margin: 0 0 1px; font-size: 12px; }
.price.big .oldprice { display: inline; font-size: .62em; margin-inline-end: 8px; }

/* whatsapp signup footer */
.signup { margin: 26px 12px calc(90px + env(safe-area-inset-bottom)); background: #17171a; border: 1.5px solid #26262b; border-radius: 18px; padding: 18px 16px; text-align: center; }
.sg-title { font-size: 16px; font-weight: 900; color: #f2efe9; }
.sg-sub { font-size: 13px; color: #8f897f; margin-top: 5px; }
.sg-row { display: flex; gap: 8px; margin-top: 13px; }
.sg-row button { background: #f97316; color: #0c0c0d; border: none; border-radius: 12px; font-size: 15px; font-weight: 900; padding: 12px 20px; }
.sg-row button:disabled { opacity: .5; }

/* signup field with fixed +20 prefix */
.sg-field { flex: 1; min-width: 0; display: flex; align-items: center; background: #0c0c0d; border: 1.5px solid #26262b; border-radius: 12px; overflow: hidden; }
.sg-field:focus-within { border-color: #f97316; }
.sg-prefix { color: #f97316; font-weight: 900; font-size: 15px; padding: 0 6px 0 12px; user-select: none; }
.sg-field input { flex: 1; min-width: 0; background: transparent; border: none; color: #f2efe9; font-size: 15px; padding: 12px 12px 12px 6px; outline: none; }
.sg-field input::placeholder { color: #8f897f; opacity: 1; }
.sg-note { font-size: 12px; color: #8f897f; margin-top: 9px; line-height: 1.75; }
.sg-wa { display: inline-block; color: #f97316; text-decoration: none; font-weight: 700; }
/* view counter on cards */
.pviews { font-size: 12px; color: #8f897f; font-weight: 700; margin-top: 4px; }

/* share to whatsapp on piece page */
.sharebtn { display: block; text-align: center; text-decoration: none; background: #14532d; border: 1px solid #166534; color: #dcfce7; font-size: 15px; font-weight: 800; border-radius: 14px; padding: 13px 16px; margin-top: 10px; }

/* signup size picker */
.sg-sizes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px 0; }
.sg-size { flex: 0 0 auto; height: 44px; min-width: 44px; border-radius: 18px; padding: 0 13px; background: #0c0c0d; color: #e8e4dc; border: 1.5px solid #26262b; font-weight: 800; font-size: 12.5px; }
.sg-size.on { background: #f97316; color: #0c0c0d; border-color: #f97316; }

/* floating WhatsApp contact */
.wafloat {
  position: fixed; bottom: 18px; left: 16px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .4);
  transition: opacity .18s ease;
}
body.haslist .wafloat { bottom: 92px; }
.wafloat svg { width: 28px; height: 28px; }

/* about page */
.about { padding: 16px; font-size: 14.5px; line-height: 1.9; color: var(--ink2); }
.about h2 { margin: 16px 0 6px; font-size: 15px; color: var(--ink); }
.about p { margin: 0 0 12px; }
.sharebtn.fb { background: #1e3a5f; border-color: #2a4d7a; color: #dbeafe; }
.wafloat.ghost { opacity: .65; }
.wafloat.sgoverlap { opacity: 0; pointer-events: none; }
.wafloat.ui-block { opacity: 0; pointer-events: none; }

/* new arrivals strip */

/* size guide */
.sizes .sztable { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 13.5px; }
.sizes .sztable th { background: #232326; color: #e8e4dc; font-weight: 800; padding: 10px 8px; font-size: 12.5px; }
.sizes .sztable td { padding: 9px 8px; text-align: center; border-bottom: 1px solid #242428; color: #e8e4dc; }
.sizes .sztable th:first-child, .sizes .sztable td:first-child { color: #f97316; font-weight: 800; }
.szlink { display: block; text-align: center; color: #a39d93; font-size: 13px; font-weight: 700; text-decoration: none; margin-top: 12px; padding: 10px; border: 1px dashed #2a2a2f; border-radius: 12px; min-height: 44px; line-height: 24px; }

/* ===== Piece page v2: thumbs, trust, size card, detail panels, piece bar ===== */
.gthumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; scrollbar-width: none; }
.gthumbs::-webkit-scrollbar { display: none; }
.gthumb {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  border: 2px solid #2e2e33; background: #1d1d21; padding: 0; cursor: pointer;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gthumb.on { border-color: #f97316; }
.gthumb.g360 { color: #e8b877; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.trustgrid { display: flex; gap: 8px; margin-top: 12px; }
.trustbox {
  flex: 1; background: #17171a; border: 1px solid #2e2e33; border-radius: 12px;
  padding: 10px 6px; font-size: 11.5px; font-weight: 700; color: #c9c3b9;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.trustbox span { line-height: 1.5; }
.ptrustbottom { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.sizeblock { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.szlabel { font-size: 13px; color: #a39d93; font-weight: 700; }
.sizechip {
  background: #17171a; border: 1px solid #2e2e33; border-radius: 12px;
  padding: 10px 14px; font-size: 13.5px; color: #c9c3b9; min-height: 44px;
  display: flex; align-items: center; gap: 6px;
}
.sizechip.on { border-color: #f97316; }
.sizechip b { color: #f2efe9; font-size: 15px; }
.szguide {
  margin-inline-start: auto; color: #f97316; font-size: 13px; font-weight: 800; text-decoration: none;
  border: 1px solid rgba(249,115,22,.35); border-radius: 12px; padding: 10px 14px;
  min-height: 44px; display: flex; align-items: center;
}
.meascard { background: #17171a; border: 1px solid #2e2e33; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.meastitle { font-size: 13px; font-weight: 800; color: #f2efe9; margin-bottom: 6px; }
.measrow { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed #242428; font-size: 13.5px; color: #c9c3b9; }
.measrow b { color: #f2efe9; }
.meashint { font-size: 11.5px; color: #8f897f; margin-top: 8px; }
.dpanels { margin-top: 16px; }
.dptitle { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.dpanel { margin: 0 0 12px; border: 1px solid #2e2e33; border-radius: 14px; overflow: hidden; background: #17171a; }
.dpanel img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.dpanel figcaption { padding: 10px 12px; font-size: 12.5px; color: #c9c3b9; font-weight: 700; }
.piecebar {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 10;
  background: #17171a; border-top: 1px solid #2e2e33;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
}
.pbprice { font-size: 16px; font-weight: 900; color: #f97316; white-space: nowrap; }
.pbprice .oldprice { display: block; font-size: 11px; margin: 0; }
.piecebar .pbadd { flex: 1; min-height: 48px; border-radius: 12px; font-size: 14.5px; }
.pblist {
  min-width: 48px; min-height: 48px; border-radius: 12px; border: 1px solid #2e2e33;
  background: #1d1d21; color: #f2efe9; font-size: 15px;
}
.pblist b { color: #f97316; }
body.piecebar-on #app { padding-bottom: 84px; }
body.piecebar-on .wafloat { bottom: 96px; }

/* ===== Admin: measurement + detail rows ===== */
.mrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mrow span { flex: 1; font-size: 13px; color: #c9c3b9; }
.mrow .minp { width: 90px; }
.drow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.drow img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid #2e2e33; }
.drow .dcap { flex: 1; }

/* ===== Piece page v3: XL43-style ===== */
.measflex { display: flex; gap: 14px; align-items: flex-start; }
.measrows { flex: 1; min-width: 0; }
.meassvg { flex: 0 0 108px; }
.gsvg { width: 100%; height: auto; display: block; }
.mletter {
  display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: #f97316; color: #141414; font-size: 11px; font-weight: 800;
  align-items: center; justify-content: center; margin-inline-end: 6px;
}
.measwa { color: #25D366; font-weight: 800; text-decoration: none; }
.measrow:first-of-type { border-top: none; }
.gfull {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(12,12,13,.72); border: 1px solid #3a3a40;
  color: #f2efe9; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: none; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hsdot {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(249,115,22,.25); border: 2px solid #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,.25);
}
.hotspot.on .hsdot { background: #f97316; }
.hsbubble {
  position: absolute; bottom: 44px; right: 50%; transform: translateX(50%);
  background: rgba(12,12,13,.9); border: 1px solid #f97316; color: #f2efe9;
  font-size: 12px; font-weight: 700; border-radius: 10px; padding: 7px 12px;
  white-space: nowrap; display: none; pointer-events: none;
}
.hotspot.on .hsbubble { display: block; }
.angles { margin-top: 18px; }
.anglestrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.anglestrip::-webkit-scrollbar { display: none; }
.angle {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 12px; overflow: hidden;
  border: 1px solid #2e2e33; background: #1d1d21; padding: 0; cursor: pointer;
}
.angle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dpgrid { display: grid; gap: 10px; }
.dpanel { margin: 0; border: 1px solid #2e2e33; border-radius: 14px; overflow: hidden; background: #17171a; }
.dphead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: 13px; font-weight: 800; color: #f2efe9;
}
.dpx {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: #a39d93; font-size: 14px; cursor: pointer;
}
.dpanel.closed .dpimg { display: none; }
.dpanel.closed .dpx { transform: rotate(45deg); }
.dpimg img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.pdetail.nf .pdesc { margin-top: 14px; }

@media (min-width: 900px) {
  .pdetail.nf { max-width: 1160px; padding: 0 24px; }
  .pdetail.nf .pgrid { display: flex; gap: 36px; align-items: flex-start; }
  .pdetail.nf .pcol-info { order: -1; flex: 1 1 400px; padding-top: 12px; }
  .pdetail.nf .pcol-gal { flex: 1 1 560px; max-width: 620px; }
  .pdetail.nf .galwrap { display: flex; gap: 12px; align-items: flex-start; }
  .pdetail.nf .gallery { flex: 1; min-width: 0; }
  .pdetail.nf .gthumbs {
    flex-direction: column; overflow-x: hidden; overflow-y: auto;
    max-height: 600px; padding: 0; flex: 0 0 76px; scrollbar-width: none;
  }
  .pdetail.nf .gthumb { width: 76px; height: 76px; }
  .pdetail.nf .meascard, .pdetail.nf .dpanels, .pdetail.nf .angles { max-width: none; margin-top: 22px; }
  .pdetail.nf .pcards { display: flex; gap: 16px; align-items: stretch; margin-top: 22px; }
  .pdetail.nf .pcards .meascard { margin-top: 0; flex: 0 0 420px; }
  .pdetail.nf .pcards .dpanels { margin-top: 0; flex: 1; min-width: 0; }
  .pdetail.nf .pcards .dptitle { margin-top: 0; }
  .pdetail.nf .dpgrid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .pdetail.nf .ptrustbottom { max-width: none; padding: 0; }
  .pdetail.nf .ptrustbottom .trustgrid { max-width: 560px; }
  .pdetail.nf .piecebar { display: none; }
  body.piecebar-on #app { padding-bottom: 0; }
  body.piecebar-on .wafloat { bottom: 24px; }
  .pdetail.nf .meascard { max-width: 560px; }
}
.pfabric { font-size: 13px; color: #c9c3b9; font-weight: 700; margin-top: 6px; }

.abouttrust { flex-wrap: wrap; }
.abouttrust .trustbox { flex: 1 1 40%; min-height: 44px; }

/* similar pieces strip (NF) */
.similar { margin-top: 18px; padding: 0 16px; max-width: 560px; margin-inline: auto; }
.simstrip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 14px; }
.simcard { flex: 0 0 118px; background: #17171a; border: 1px solid #2e2e33; border-radius: 14px; padding: 8px; text-decoration: none; color: #e8e4dc; display: block; }
.simth { width: 100%; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #1d1d21; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.simth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.simnm { font-size: 11.5px; font-weight: 700; margin-top: 7px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.simpr { color: #f97316; font-weight: 900; font-size: 13px; margin-top: 3px; }
.simtag { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 800; color: #f97316; border: 1px solid #f97316; border-radius: 8px; padding: 2px 7px; }
@media (min-width: 900px) { .similar { max-width: none; padding: 0; } .simcard { flex-basis: 140px; } }

/* one-off, sold and WhatsApp order (new features) */
.badge.one { background: #2a2012; color: #f5b77a; border: 1px solid #5a3a14; }
.badge.soldb { background: #3a1418; color: #f0888f; }
.badge.resb { background: #3a2f10; color: #e8b877; }
.card.is-taken .pimg img { filter: grayscale(.6); }
.waorder { display: block; width: 100%; margin-top: 10px; background: #f97316; color: #0c0c0d; border: 0; border-radius: 14px; padding: 15px 16px; font-size: 17px; font-weight: 800; min-height: 52px; }

/* QA: badges inside the small 84px card photo must never wrap or be cut off */
.card .pbadges { top: 5px; right: 5px; gap: 3px; max-width: calc(100% - 8px); }
.card .badge { font-size: 9px; line-height: 1.4; padding: 1px 3px; border-radius: 7px; white-space: nowrap; }
.pbadges .badge { white-space: nowrap; }

/* play-and-win banner */

/* accessibility: visually hidden but screen-reader announced */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* desktop: unify home column width + tighten vertical rhythm */
@media (min-width: 900px) {
  .signup { max-width: 560px; margin: 18px auto calc(90px + env(safe-area-inset-bottom)); }
  .sheet { max-width: 720px; margin: 0 auto; }
  .header { padding: 16px 20px 10px; }
}

/* home empty state: signup sits in the flow */
#app > .signup { margin-top: 6px; margin-bottom: 16px; }

/* ===== Short screens: keep the signup field above the fold ===== */
@media (max-height: 640px) {
  .header { padding: 6px 12px 4px; }
  .lockicon { width: 22px; height: 22px; margin-bottom: 2px; }
  .brandname { font-size: 18px; }
  .brandar { font-size: 12px; }
  .tagline { font-size: 10px; }
  .header a[href="https://locker-run.pages.dev/"] { margin-top: 4px !important; padding: 4px 12px !important; font-size: 12px !important; }
  .empty { padding: 10px 16px 8px; }
  .empty svg { display: none; }
  .empty h2 { font-size: 14px; margin-top: 2px; }
  .empty p { font-size: 12px; margin-top: 2px; line-height: 1.6; }
  .signup { margin-top: 12px; padding: 12px; }
  .sg-title { font-size: 14px; line-height: 1.4; }
  .sg-sub { font-size: 12px; margin-top: 3px; }
  .sg-sizes { flex-wrap: nowrap; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
  .sg-sizes::-webkit-scrollbar { display: none; }
  .sg-size { height: 38px; min-width: 38px; padding: 0 11px; font-size: 12px; }
  .sg-note { font-size: 11px; margin-top: 6px; line-height: 1.6; }
  .sg-row { margin-top: 9px; }
}

/* b78: order button clearly disabled when the basket is empty (still clickable -> explains via toast) */
.book.off { opacity: .45; filter: grayscale(.35); }
