/* =========== WALL PAGE =========== */
.wall-intro { position: relative; color: var(--white); padding-block: 26px 30px; overflow: hidden; isolation: isolate; }
.wall-intro .env { z-index: -2; }
.wall-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.78), rgba(10,10,10,.6)); }
.wall-intro__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 14px; }
.wall-intro__en { font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); letter-spacing: .24em; color: var(--yellow); display: flex; align-items: center; gap: 12px; }
.wall-intro__he { font-family: var(--f-display-he); font-weight: 700; font-size: clamp(64px, 9vw, 132px); line-height: .82; }
.wall-intro__desc { max-width: 40ch; font-size: 17px; opacity: .85; padding-bottom: 8px; }
@media (max-width: 760px) { .wall-intro__row { flex-direction: column; align-items: flex-start; gap: 10px; } }

.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.door { position: relative; height: 92px; overflow: hidden; display: flex; align-items: flex-end; border: 2px solid rgba(255,255,255,.18); transition: border-color var(--t-fast), transform var(--t) var(--ease); isolation: isolate; }
.door__env { position: absolute; inset: 0; z-index: -2; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.15)); }
.door__label { padding: 8px 12px; display: flex; flex-direction: column; line-height: 1.05; }
.door__label bdi { font-family: var(--f-display); font-size: 22px; letter-spacing: .04em; }
.door__name { display: inline-flex; align-items: center; gap: 7px; }
.door__label small { font-size: 12px; opacity: .7; }
.door:hover { border-color: rgba(255,255,255,.6); transform: translateY(-3px); }
.door.is-current { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.door.is-current::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; border: 14px solid transparent; border-top-color: var(--yellow); border-inline-start-color: var(--yellow); z-index: 1; }
@media (max-width: 900px) { .doors { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .door { flex: 0 0 150px; scroll-snap-align: start; } }

/* toolbar */
.wall-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--yellow); color: var(--black); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
@media (max-width: 900px) { .wall-toolbar { top: 60px; } }
.wall-toolbar__inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.btn--toolbar { --bg: var(--black); --fg: var(--white); min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--toolbar .icon { width: 18px; height: 18px; }
.btn--toolbar:hover .icon { transform: none; }
.fcount:not(:empty) { background: var(--yellow); color: var(--black); min-width: 20px; height: 20px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 5px; }
.wall-toolbar__count { font-weight: 800; font-size: 15px; margin-inline-start: auto; }
.layout-toggle { display: none; gap: 2px; }
.layout-toggle .icon-btn { width: 38px; height: 38px; }
.layout-toggle .icon-btn:hover { background: rgba(0,0,0,.08); }
@media (max-width: 760px) { .layout-toggle { display: flex; } }
.filters { background: var(--white); border-top: 2px solid var(--black); max-height: min(70vh, 640px); overflow-y: auto; box-shadow: 0 20px 30px rgba(0,0,0,.25); }
.filters__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; padding-block: 22px; }
.fgroup legend { font-weight: 900; font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.fgroup legend output { font-weight: 700; }
.fgroup__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup--range input { width: 100%; accent-color: var(--black); }
.filters__actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--gray-200); padding-top: 16px; }

/* the wall: one regular grid, every display identical. Default order is mixed; sorted orders add group signs */
.wall { position: relative; isolation: isolate; min-height: 70vh; overflow-x: clip; }
.wall > .env { z-index: -1; }
.wall__grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 72px clamp(24px, 3vw, 48px); padding-block: 110px 190px; position: relative; align-items: start; }
@media (max-width: 1180px) { .wall__grid { --cols: 3; } }
@media (max-width: 900px) { .wall__grid { --cols: 2; } }
.wall__empty { grid-column: 1 / -1; justify-self: center; background: rgba(15,15,15,.9); color: var(--white); padding: 34px 40px; text-align: center; display: grid; gap: 10px; justify-items: center; border-top: 5px solid var(--yellow); }
.wall__empty strong { font-family: var(--f-display-he); font-size: 44px; line-height: 1; }

@media (max-width: 760px) {
  .wall__grid { gap: 56px 16px; padding-block: 80px 160px; }
  .wall[data-layout-mode="large"] .wall__grid { --cols: 1; padding-inline: max(var(--gutter), 9vw); }
  .wall[data-layout-mode="grid"] .wall__grid { --cols: 2; gap: 40px 12px; padding-inline: 12px; }
}

/* =========== EXHIBIT (single shirt display) ===========
   Same geometry for every product and every environment: frame thickness, mat padding, square image box,
   plaque size and position are fixed. Environments change only materials and colours. */
.exhibit { --frame-pad: 14px; --mat-pad: 7%; position: relative; display: grid; grid-template-rows: auto auto; gap: 16px; text-align: start; -webkit-tap-highlight-color: transparent; min-width: 0; }
.exhibit__light { position: absolute; top: -90px; left: 50%; width: 150%; height: calc(100% + 60px); transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse 44% 52% at 50% 26%, rgba(255,240,210,.30), transparent 70%); opacity: .8; transition: opacity var(--t); z-index: -1; }
.exhibit__light::before { content: ""; position: absolute; top: 40px; left: 50%; width: 46px; height: 18px; transform: translateX(-50%); background: linear-gradient(#2a2a2a, #0d0d0d); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.exhibit__light::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 40px; background: #111; }
.exhibit__frame { position: relative; display: block; width: 100%; padding: var(--frame-pad); background: #141414; box-shadow: var(--shadow-frame); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.exhibit__mat { display: block; padding: var(--mat-pad); background: #F6F5F1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 6px 14px rgba(0,0,0,.10); position: relative; overflow: hidden; }
.exhibit__mat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%); pointer-events: none; }
.exhibit .shirt-media__box > img, .exhibit .shirt-media__box > svg { transition: transform .5s var(--ease); }
.exhibit .shirt-media.is-placeholder .shirt-svg, .exhibit .shirt-media.has-image img { filter: drop-shadow(0 10px 10px rgba(0,0,0,.22)); }

@media (hover: hover) {
  .exhibit:hover .exhibit__frame { transform: translateY(-6px); box-shadow: 0 2px 3px rgba(0,0,0,.35), 0 30px 44px -12px rgba(0,0,0,.7); }
  .exhibit:hover .shirt-media__box > img, .exhibit:hover .shirt-media__box > svg { transform: scale(1.045); }
  .exhibit:hover .exhibit__light { opacity: 1; }
  .exhibit:hover .shirt-media__tag { opacity: 1; }
}
.exhibit:active .exhibit__frame { transform: scale(.985); transition-duration: .12s; }
.exhibit:focus-visible { outline: none; }
.exhibit:focus-visible .exhibit__frame { outline: 4px solid var(--yellow); outline-offset: 4px; }

/* --- frame materials per environment (geometry identical) --- */
.exhibit--gallery .exhibit__frame { background: #0b0b0b; box-shadow: 0 0 0 1px #333, var(--shadow-frame); }
.exhibit--gallery .exhibit__mat { background: #F7F7F5; }
.hot .exhibit__light { background: radial-gradient(ellipse 44% 50% at 50% 26%, rgba(255,255,255,.16), transparent 70%); }

.exhibit--steel .exhibit__frame { background:
  radial-gradient(circle at 8px 8px, #8a8a8a 0 2.5px, transparent 3px), radial-gradient(circle at calc(100% - 8px) 8px, #8a8a8a 0 2.5px, transparent 3px),
  radial-gradient(circle at 8px calc(100% - 8px), #8a8a8a 0 2.5px, transparent 3px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #8a8a8a 0 2.5px, transparent 3px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), linear-gradient(145deg, #3a3a3a, #141414 55%, #262626); }
.exhibit--steel .exhibit__mat { background: #F1EFEA; }

.exhibit--arch .exhibit__frame { background: linear-gradient(160deg, #A0623A, #6E3D20 60%, #8B4F2C); }
.exhibit--arch .exhibit__mat { background: #FBF6EC; }
.exhibit--arch .exhibit__light { background: radial-gradient(ellipse 50% 55% at 50% 30%, rgba(255,240,200,.35), transparent 70%); }
.exhibit--arch .exhibit__light::before, .exhibit--arch .exhibit__light::after { display: none; }

.exhibit--bronze .exhibit__frame { background: linear-gradient(135deg, #C9A46A, #7C5A2C 40%, #B8935A 60%, #6D4E25); box-shadow: inset 0 0 0 2px rgba(255,230,180,.35), var(--shadow-frame); }
.exhibit--bronze .exhibit__mat { background: #F6F0E4; }

.exhibit--gilt .exhibit__frame { background: linear-gradient(135deg, #F3DA8B, #B88A2E 30%, #F6E29E 50%, #A4771F 75%, #E6C66E); box-shadow: inset 0 0 0 3px rgba(90,60,10,.35), inset 0 0 0 6px rgba(255,240,190,.4), var(--shadow-frame); }
.exhibit--gilt .exhibit__mat { background: #F7F3EA; box-shadow: inset 0 0 0 4px #1F2A4D, inset 0 8px 18px rgba(0,0,0,.18); }

.exhibit--antique .exhibit__frame { background:
  linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.25)),
  repeating-linear-gradient(45deg, #9B7232 0 3px, #7A561F 3px 6px);
  box-shadow: inset 0 0 0 2px #5B3E12, inset 0 0 0 5px #C79B4B, inset 0 0 0 8px #5B3E12, inset 0 0 0 10px #E0B866, var(--shadow-frame); }
.exhibit--antique .exhibit__mat { background: #F4ECD8; }
.exhibit--antique .exhibit__light { background: radial-gradient(ellipse 46% 40% at 50% 22%, rgba(255,200,120,.38), transparent 70%); }
.exhibit--antique .exhibit__light::before { top: 66px; width: 60%; height: 12px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#E0B866, #8B6424); clip-path: none; box-shadow: 0 6px 18px rgba(255,200,120,.6); }
.exhibit--antique .exhibit__light::after { top: 52px; height: 16px; width: 4px; background: #8B6424; }

.exhibit--lightbox .exhibit__frame { background: linear-gradient(145deg, #d9d9d9, #8f8f8f); box-shadow: 0 0 50px rgba(220,255,220,.18), var(--shadow-frame); }
.exhibit--lightbox .exhibit__mat { background: #FFFFFF; box-shadow: inset 0 0 30px rgba(0,0,0,.06); }
.exhibit--lightbox .exhibit__light { display: none; }

/* mini rail used for related products */
.wall--mini { position: relative; }


/* =========== LABEL under each shirt =========== */
.exhibit__label { display: flex; align-items: stretch; min-height: 64px; background: var(--white); color: var(--black); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 22px -10px rgba(0,0,0,.55); position: relative; min-width: 0; transition: transform .35s var(--ease); }
.exhibit__text { flex: 1 1 auto; min-width: 0; display: grid; align-content: center; gap: 3px; padding: 9px 14px; border-inline-start: 4px solid var(--black); }
.exhibit__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 900; font-size: 18px; line-height: 1.1; letter-spacing: -.01em; }
.exhibit__team > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exhibit__team .flag { width: 22px; height: 16px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.exhibit__name { font-size: 13px; color: var(--gray-600); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exhibit__price { flex: none; display: grid; align-content: center; justify-items: center; gap: 1px; min-width: 86px; padding: 6px 12px; background: var(--yellow); color: var(--black); position: relative; }
.exhibit__price b { font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: -.01em; }
.exhibit__price s { font-size: 12px; font-weight: 600; opacity: .62; }
.exhibit__out { font-size: 16px !important; }
.exhibit.is-soldout .exhibit__price { background: var(--gray-200); color: var(--gray-600); }
.exhibit.is-soldout .exhibit__mat > * { opacity: .55; filter: grayscale(.5); }
.exhibit.is-soldout .exhibit__team { color: var(--gray-600); }
/* dark walls (steel, tunnel): dark label body */
.exhibit--steel .exhibit__label, .exhibit--lightbox .exhibit__label { background: #121212; color: var(--white); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 22px -10px rgba(0,0,0,.8); }
.exhibit--steel .exhibit__text, .exhibit--lightbox .exhibit__text { border-inline-start-color: var(--yellow); }
.exhibit--steel .exhibit__name, .exhibit--lightbox .exhibit__name { color: rgba(255,255,255,.62); }
.exhibit--steel.is-soldout .exhibit__team, .exhibit--lightbox.is-soldout .exhibit__team { color: rgba(255,255,255,.55); }
@media (hover: hover) {
  .exhibit:hover .exhibit__label { transform: translateY(-3px); }
  .exhibit:hover .exhibit__text { border-inline-start-color: var(--yellow); }
}
@media (max-width: 760px) {
  .wall[data-layout-mode="grid"] .exhibit { --frame-pad: 8px; --mat-pad: 5%; gap: 10px; }
  .wall[data-layout-mode="grid"] .exhibit__label { flex-direction: column; min-height: 0; }
  .wall[data-layout-mode="grid"] .exhibit__text { padding: 7px 9px; border-inline-start-width: 3px; }
  .wall[data-layout-mode="grid"] .exhibit__team { font-size: 15px; gap: 6px; }
  .wall[data-layout-mode="grid"] .exhibit__team .flag { width: 18px; height: 13px; }
  .wall[data-layout-mode="grid"] .exhibit__name { font-size: 11.5px; }
  .wall[data-layout-mode="grid"] .exhibit__price { min-width: 0; padding: 5px 9px; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
  .wall[data-layout-mode="grid"] .exhibit__price b { font-size: 16px; }
}

/* =========== sorted arrangements: group signs =========== */
.wall__grid { --gapx: clamp(24px, 3vw, 48px); }
.wall:is([data-arrange="league"], [data-arrange="team"], [data-arrange="confederation"], [data-arrange="decade"]) .wall__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px var(--gapx); --colw: calc((100% - (var(--cols) - 1) * var(--gapx)) / var(--cols)); }
.wall-cluster { --n: min(var(--count), var(--cols)); flex: none; width: calc(var(--n) * var(--colw) + (var(--n) - 1) * var(--gapx)); display: grid; gap: 22px; align-content: start; }
.wall-cluster__grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 56px var(--gapx); }
.wall-group__sign { justify-self: start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; background: var(--black); color: var(--white); padding: 7px 14px 7px 16px; border-inline-start: 6px solid var(--yellow); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); font-size: inherit; }
.wall-group__sign strong { font-family: var(--f-display-he); font-weight: 700; font-size: 32px; line-height: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-group__sign small { font-size: 13px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.wall-group__sign .flag { width: 26px; height: 19px; flex: none; }
@media (max-width: 760px) {
  .wall__grid { --gapx: 16px; }
  .wall[data-layout-mode="grid"] .wall__grid { --gapx: 12px; }
  .wall-group__sign strong { font-size: 26px; }
  .wall-group__sign small { font-size: 12px; }
}

/* sort picker in the toolbar */
.sortpick { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.sortpick__select { position: relative; display: inline-flex; }
.sortpick select { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--black); background: var(--white); border: 2px solid var(--black); min-height: 40px; padding: 0 14px; padding-inline-end: 34px; cursor: pointer; border-radius: 0; }
.sortpick__select::after { content: ""; position: absolute; inset-inline-end: 13px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); translate: 0 -70%; rotate: 45deg; pointer-events: none; }
.sortpick select:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
@media (max-width: 760px) { .sortpick > span:first-child { display: none; } .sortpick select { font-size: 14px; padding-inline: 10px 30px; } }
@media (max-width: 760px) { .wall-toolbar__count { display: none; } .wall-toolbar__inner { gap: 10px; } .layout-toggle { margin-inline-start: auto; } }
