:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #62666f;
  --line: #e1e4e8;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --accent: #23705b;
  --accent-dark: #174d41;
  --clay: #c6563b;
  --blue: #315f9f;
  --gold: #d69a2d;
  --shadow: 0 22px 55px rgba(31, 35, 40, 0.13);
}

/* Immersive storefront — homepage */
.home-experience {
  --store-cream: #ffe7b5;
  --store-red: #e34c3d;
  --store-yellow: #ffc43d;
  --store-teal: #2ec4b6;
  --store-night: #101629;
  background: #111626;
}

html:has(body.home-experience) {
  scroll-behavior: auto;
}

.home-experience > .sidebar,
.home-experience > .site-banner {
  display: none;
}

.home-experience .home-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: #f5efe4;
}

.store-experience {
  position: relative;
  height: 390vh;
  background: #0f1527;
  color: #fff;
  isolation: isolate;
}

.store-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #101629;
}

.store-film {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  background: #080b10;
  pointer-events: none;
  transform:
    translate3d(
      calc(var(--store-look-x, 0) * -4px),
      calc(var(--store-look-y, 0) * -3px),
      0
    )
    scale(1.008);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.store-film-frame {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transition:
    opacity .09s linear,
    transform .14s cubic-bezier(.22, .61, .36, 1),
    filter .12s ease;
}

.store-film-frame-one {
  opacity: clamp(0, calc((.42 - var(--journey, 0)) * 20), 1);
  transform: scale(calc(1 + var(--journey, 0) * .48)) translateY(calc(var(--journey, 0) * -.7%));
  filter:
    brightness(calc(.92 + var(--journey, 0) * .1))
    saturate(calc(1 - var(--journey, 0) * .08));
}

.store-film-frame-two {
  opacity: clamp(0, calc((var(--journey, 0) - .37) * 20), calc((.74 - var(--journey, 0)) * 20));
  transform: scale(calc(.94 + var(--journey, 0) * .3)) translateY(calc((.5 - var(--journey, 0)) * 1.1%));
  filter:
    brightness(calc(.86 + var(--journey, 0) * .16))
    saturate(.96);
}

.store-film-frame-three {
  opacity: clamp(0, calc((var(--journey, 0) - .69) * 20), 1);
  transform: scale(calc(.91 + var(--journey, 0) * .1)) translateY(calc((.84 - var(--journey, 0)) * .65%));
  filter:
    brightness(calc(.76 + var(--journey, 0) * .26))
    saturate(calc(.9 + var(--journey, 0) * .1));
}

.store-film-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgb(255 189 96 / calc(.03 + var(--journey, 0) * .12)), transparent 46%),
    linear-gradient(90deg, rgb(3 8 17 / 55%), transparent 26% 74%, rgb(3 8 17 / 55%));
  pointer-events: none;
}

.store-film-grain {
  position: absolute;
  inset: -40%;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: storeFilmGrain .22s steps(2) infinite;
  pointer-events: none;
}

.store-film ~ .store-scene {
  z-index: 9;
  pointer-events: none;
  background: transparent;
}

.store-film ~ .store-scene .store-sky,
.store-film ~ .store-scene .store-street,
.store-film ~ .store-scene .store-facade,
.store-film ~ .store-scene .shop-interior,
.store-film ~ .store-scene .door-tunnel {
  display: none;
}

.store-film ~ .store-scene .store-intro {
  left: 50%;
  top: auto;
  bottom: 9%;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  text-align: center;
}

.store-film ~ .store-scene .store-intro p,
.store-film ~ .store-scene .store-intro h1 {
  display: none;
}

.store-film ~ .store-scene .store-intro > span {
  margin-top: 0;
}
.store-film ~ .store-scene .store-intro a {
  pointer-events: auto;
}

.store-webgl {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  display: none;
  transition: opacity .45s ease;
}

.store-loading {
  --loaded: 0%;
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #f8dfab;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #080d19;
  transition: opacity .45s ease, visibility .45s ease;
}
.store-loading[hidden] { display: grid; opacity: 0; visibility: hidden; }
.store-loading i {
  width: min(340px, 72vw);
  height: 4px;
  background: linear-gradient(90deg, #e24d3d var(--loaded), rgb(255 255 255 / 13%) var(--loaded));
  box-shadow: 0 0 18px rgb(226 77 61 / 45%);
}
.store-experience.film-ready .store-loading {
  opacity: 0;
  visibility: hidden;
}

.store-experience.webgl-ready .store-webgl { opacity: 1; }
.store-experience.webgl-ready .store-scene {
  z-index: 9;
  pointer-events: none;
  background: transparent;
}
.store-experience.webgl-ready .store-sky,
.store-experience.webgl-ready .store-street,
.store-experience.webgl-ready .store-facade,
.store-experience.webgl-ready .shop-interior,
.store-experience.webgl-ready .door-tunnel { visibility: hidden; }
.store-experience.webgl-ready .store-vignette { z-index: 20; }
.store-experience.webgl-ready .store-intro {
  left: 50%;
  top: auto;
  bottom: 10%;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  text-align: center;
}
.store-experience.webgl-ready .store-intro p,
.store-experience.webgl-ready .store-intro h1 { display: none; }
.store-experience.webgl-ready .store-intro > span { margin-top: 0; }

.store-cinematic-copy {
  position: absolute;
  z-index: 24;
  top: auto;
  bottom: 13%;
  left: clamp(24px, 4vw, 72px);
  width: min(490px, calc(100% - 48px));
  transform: none;
  pointer-events: none;
  text-shadow: 0 4px 40px rgb(0 0 0 / 75%);
  opacity: calc(1 - clamp(0, calc((var(--store-progress, 0) - .035) * 9), 1));
  transition: opacity .24s ease-out;
}
.store-cinematic-copy small {
  display: block;
  margin-bottom: 18px;
  color: #efbd62;
  font-size: clamp(.58rem, .8vw, .76rem);
  font-weight: 900;
  letter-spacing: .24em;
}
.store-cinematic-copy strong {
  display: block;
  color: #fff8eb;
  font: 700 clamp(3rem, 6.15vw, 6.7rem)/.8 Georgia, serif;
  letter-spacing: -.065em;
}
.store-cinematic-copy strong span { display: block; }
.store-cinematic-copy strong span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 225 172 / 82%);
}
.store-cinematic-copy p {
  margin: 28px 0 0;
  color: rgb(255 248 235 / 72%);
  font-size: clamp(.76rem, 1.1vw, 1rem);
  letter-spacing: .06em;
}
.store-experience.has-started .store-cinematic-copy,
.store-experience.has-started .store-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.store-sequence {
  position: absolute;
  z-index: 24;
  top: 32px;
  right: clamp(22px, 4vw, 68px);
  display: flex;
  gap: clamp(16px, 3vw, 42px);
  color: rgb(255 255 255 / 42%);
  font-size: .57rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: none;
}
.store-sequence span { transition: color .3s ease; }
.store-sequence span:nth-child(1) { color: color-mix(in srgb, #f2bd58 calc(clamp(0, calc(.28 - var(--store-progress, 0)), .28) * 357%), rgb(255 255 255 / 35%)); }
.store-sequence i {
  margin-right: 6px;
  color: #e4a844;
  font-style: normal;
}

.store-category-portals {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: clamp(42px, 7vh, 80px);
  width: min(940px, calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 28px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), visibility .5s;
  border: 1px solid rgb(255 211 121 / 28%);
  border-radius: 26px;
  background: rgb(7 12 24 / 78%);
  box-shadow: 0 30px 90px rgb(0 0 0 / 55%);
  backdrop-filter: blur(18px);
}
.store-experience.at-counter .store-category-portals {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.store-experience.at-counter .store-chapter {
  opacity: 0;
}
.store-category-portals p {
  grid-column: 1 / -1;
  margin: 0 0 5px;
  text-align: center;
}
.store-category-portals p small,
.store-category-portals p strong { display: block; }
.store-category-portals p small {
  margin-bottom: 4px;
  color: #f1bd4e;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.store-category-portals p strong {
  color: #fff0ca;
  font: 700 clamp(1.15rem, 2vw, 1.7rem) Georgia, serif;
}
.store-category-portals a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 11px 13px;
  overflow: hidden;
  color: #fff0ca;
  font-size: .78rem;
  font-weight: 850;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 15px;
  background: linear-gradient(135deg, rgb(33 67 75 / 90%), rgb(16 30 47 / 92%));
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.store-category-portals a:hover {
  transform: translateY(-3px);
  border-color: #f4be4b;
  background: linear-gradient(135deg, #9d3d32, #4b282c);
}
.store-category-portals a span {
  grid-row: 1 / 3;
  color: #f3bd4e;
  font: 700 1.3rem Georgia, serif;
}
.store-category-portals a i {
  color: #c9d2d4;
  font-size: .57rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.store-hotspots {
  position: absolute;
  z-index: 36;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s;
}
.store-experience.at-counter .store-hotspots {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.store-hotspots > p {
  position: absolute;
  z-index: 2;
  top: clamp(76px, 9vh, 104px);
  left: 50%;
  margin: 0;
  padding: 11px 18px;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgb(255 209 112 / 26%);
  border-radius: 18px;
  background: rgb(7 9 13 / 72%);
  box-shadow: 0 12px 38px rgb(0 0 0 / 34%);
  backdrop-filter: blur(12px);
}
.store-hotspots > p strong,
.store-hotspots > p small { display: block; }
.store-hotspots > p strong {
  color: #ffe5ad;
  font: 700 clamp(.84rem, 1.25vw, 1.05rem) Georgia, serif;
}
.store-hotspots > p small {
  margin-top: 2px;
  color: rgb(255 255 255 / 66%);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.store-hotspot {
  position: absolute;
  z-index: 3;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  width: 44px;
  height: 44px;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #1d150b;
  border: 1px solid rgb(255 235 188 / 88%);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd16b, #e9a82e);
  box-shadow:
    0 0 0 6px rgb(255 184 64 / 9%),
    0 0 24px 7px rgb(255 170 55 / 40%),
    inset 0 1px 0 rgb(255 255 255 / 72%);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
  animation: hotspotGlow 2.2s ease-in-out infinite;
}
.store-hotspot:nth-of-type(3n) { animation-delay: -.7s; }
.store-hotspot:nth-of-type(3n + 1) { animation-delay: -1.4s; }
.store-hotspot > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.store-hotspot > span svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-hotspot > strong,
.store-hotspot > small {
  position: absolute;
  left: calc(100% + 13px);
  width: max-content;
  max-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-7px);
  pointer-events: none;
  transition: opacity .2s ease, transform .24s ease, visibility .2s;
}
.store-hotspot > strong {
  bottom: 19px;
  padding: 10px 13px 5px;
  color: #fff1ce;
  font: 700 .92rem/1.1 Georgia, serif;
  border: 1px solid rgb(255 205 103 / 30%);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgb(7 10 15 / 91%);
}
.store-hotspot > small {
  top: 23px;
  padding: 3px 13px 9px;
  color: #e9ad45;
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid rgb(255 205 103 / 30%);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgb(7 10 15 / 91%);
}
.store-hotspot.hotspot-right > strong,
.store-hotspot.hotspot-right > small {
  right: calc(100% + 13px);
  left: auto;
  text-align: right;
  transform: translateX(7px);
}
.store-hotspot:hover,
.store-hotspot:focus-visible {
  z-index: 8;
  transform: translate(-50%, -50%) scale(1.14);
  outline: none;
  background: #ffd46d;
  box-shadow: 0 0 0 10px rgb(255 194 79 / 18%), 0 0 42px 13px rgb(255 176 54 / 72%);
}
.store-hotspot:hover > strong,
.store-hotspot:hover > small,
.store-hotspot:focus-visible > strong,
.store-hotspot:focus-visible > small,
.store-hotspot.is-armed > strong,
.store-hotspot.is-armed > small {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.store-hotspot.is-armed {
  z-index: 8;
  transform: translate(-50%, -50%) scale(1.14);
  outline: none;
  background: #ffd46d;
  box-shadow: 0 0 0 10px rgb(255 194 79 / 18%), 0 0 42px 13px rgb(255 176 54 / 72%);
}

.store-directory {
  position: absolute;
  z-index: 38;
  right: clamp(14px, 3vw, 46px);
  bottom: 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.store-experience.at-counter .store-directory {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.store-directory summary {
  position: relative;
  z-index: 2;
  padding: 10px 14px;
  color: #ffe7b2;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgb(255 207 109 / 34%);
  border-radius: 99px;
  background: rgb(8 11 17 / 76%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 36%);
  backdrop-filter: blur(14px);
}
.store-directory summary::-webkit-details-marker { display: none; }
.store-directory > div {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 28px));
  max-height: min(54vh, 440px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: bottom right;
  border: 1px solid rgb(255 207 109 / 28%);
  border-radius: 18px;
  background: rgb(7 10 15 / 92%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 56%);
  backdrop-filter: blur(18px);
  transition: opacity .22s ease, transform .25s ease, visibility .22s;
}
.store-directory[open] > div {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.store-directory > div a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  margin: 0;
  color: #f7e5bd;
  font: 700 .75rem/1.1 Georgia, serif;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
}
.store-directory > div a:hover,
.store-directory > div a:focus-visible {
  border-color: rgb(255 195 78 / 38%);
  background: rgb(255 178 51 / 12%);
  outline: none;
}
.store-directory > div a span {
  color: #eeb443;
}
.store-directory > div a span svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-departure {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  opacity: 0;
  visibility: hidden;
  color: #fff2d0;
  text-align: center;
  background: rgb(5 7 10 / 62%);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity .38s ease, visibility .38s;
}
.store-departure small {
  color: #eab34c;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.store-departure strong {
  max-width: min(88vw, 720px);
  font: 700 clamp(2.2rem, 6vw, 5.6rem)/.9 Georgia, serif;
}
.store-departure i {
  width: min(260px, 56vw);
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
  background: rgb(255 255 255 / 13%);
}
.store-departure i::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, #dc553d, #f0b845);
}
.store-experience.is-leaving .store-departure {
  opacity: 1;
  visibility: visible;
}
.store-experience.is-leaving .store-departure i::after {
  animation: storeDeparture .48s ease forwards;
}
.store-experience.is-leaving .store-film {
  transform: scale(1.045);
  filter: brightness(.72);
}

.store-scene {
  --journey: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 950px;
  background:
    radial-gradient(circle at 50% 30%, #494464 0, #252942 36%, #101629 78%);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.store-sky {
  position: absolute;
  inset: 0 0 30%;
  opacity: calc(1 - var(--journey) * 1.8);
  background:
    radial-gradient(circle at 72% 22%, rgb(255 230 150 / 16%) 0 1px, transparent 2px),
    linear-gradient(#11172c, #2a2a47 76%, #5c4053);
}

.store-sky::after {
  content: "";
  position: absolute;
  top: 11%;
  right: 10%;
  width: clamp(70px, 9vw, 135px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe7b5;
  box-shadow: 0 0 55px rgb(255 231 181 / 45%);
}

.store-sky i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow: 0 0 9px #fff;
  animation: storeTwinkle 2.2s ease-in-out infinite alternate;
}
.store-sky i:nth-child(1) { left: 9%; top: 17%; }
.store-sky i:nth-child(2) { left: 25%; top: 10%; animation-delay: -.7s; }
.store-sky i:nth-child(3) { left: 38%; top: 25%; animation-delay: -1.2s; }
.store-sky i:nth-child(4) { left: 62%; top: 13%; animation-delay: -.2s; }
.store-sky i:nth-child(5) { left: 80%; top: 33%; animation-delay: -1.8s; }
.store-sky i:nth-child(6) { left: 92%; top: 11%; animation-delay: -.9s; }

.store-street {
  position: absolute;
  inset: 69% -10% -20%;
  opacity: calc(1 - var(--journey) * 1.9);
  transform: rotateX(62deg);
  transform-origin: top;
  background:
    repeating-linear-gradient(90deg, transparent 0 12%, rgb(255 255 255 / 4%) 12% 12.3%),
    linear-gradient(#202536, #090d18);
  border-top: 3px solid #596071;
}

.store-facade {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1020px, 76vw);
  height: min(650px, 75vh);
  transform:
    translate(-50%, -50%)
    scale(calc(1 + var(--journey) * 2.45));
  transform-style: preserve-3d;
  opacity: clamp(0, calc(1.75 - var(--journey) * 2.65), 1);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(80 31 26 / 10%) 40px 42px),
    #d9634e;
  border: clamp(8px, 1.2vw, 18px) solid #72362f;
  box-shadow: 0 35px 100px #050714, inset 0 0 70px rgb(78 27 23 / 33%);
  will-change: transform, opacity;
}

.store-facade::before,
.store-facade::after {
  content: "";
  position: absolute;
  inset: 24% auto 4%;
  width: 4%;
  background: repeating-linear-gradient(0deg, #7d4037 0 30px, #9d4f42 31px 33px);
}
.store-facade::before { left: -5%; }
.store-facade::after { right: -5%; }

.store-sign {
  position: absolute;
  left: 50%;
  top: 5%;
  width: 57%;
  padding: clamp(8px, 1.2vw, 15px) 20px;
  transform: translateX(-50%) translateZ(22px);
  text-align: center;
  color: #ffeaba;
  border: 4px solid #efb83b;
  border-radius: 9px;
  background: #153a42;
  box-shadow: 0 0 0 8px #512c2b, 0 14px 25px rgb(24 13 18 / 45%), inset 0 0 30px #0c242b;
}
.store-sign small,
.store-sign span { display: block; letter-spacing: .2em; }
.store-sign small { font-size: clamp(.42rem, .7vw, .68rem); }
.store-sign strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 3.2vw, 3.1rem);
  line-height: .95;
  letter-spacing: .05em;
  text-shadow: 0 3px #9f3e35, 0 0 22px rgb(255 219 128 / 50%);
}
.store-sign span { margin-top: 5px; font-size: clamp(.32rem, .55vw, .58rem); }

.store-logo-medallion {
  position: absolute;
  z-index: 6;
  left: -8%;
  top: 4%;
  width: clamp(70px, 10vw, 140px);
  aspect-ratio: 1;
  padding: 7px;
  overflow: hidden;
  transform: translateZ(38px) rotate(-5deg);
  border: 4px solid #f4be3f;
  border-radius: 50%;
  background: #ffe8bd;
  box-shadow: 0 0 0 7px #173844, 0 0 38px rgb(255 198 64 / 60%), 0 18px 22px rgb(0 0 0 / 35%);
}
.store-logo-medallion img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.store-awning {
  position: absolute;
  z-index: 4;
  top: 25%;
  left: -3%;
  width: 106%;
  height: 12%;
  display: flex;
  overflow: hidden;
  transform: rotateX(-13deg) translateZ(40px);
  transform-origin: top;
  border-radius: 5px 5px 20px 20px;
  box-shadow: 0 18px 22px rgb(22 10 15 / 40%);
}
.store-awning i { flex: 1; background: #fff0cf; }
.store-awning i:nth-child(even) { background: #d33f35; }

.store-window,
.store-door {
  position: absolute;
  top: 36%;
  bottom: 4%;
  border: clamp(5px, .7vw, 10px) solid #45292c;
  box-shadow: inset 0 0 50px #10172a, 0 8px 16px rgb(30 13 16 / 35%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 14%) 0 12%, transparent 13% 34%, rgb(255 255 255 / 7%) 35% 40%, transparent 41%),
    linear-gradient(#1a3650 0 60%, #5a322e 61%);
}
.store-window { width: 31%; overflow: hidden; }
.window-left { left: 3%; }
.window-right { right: 3%; }
.store-door {
  left: 38%;
  width: 24%;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 12%) 0 18%, transparent 19%),
    linear-gradient(#183044, #0d1725);
  transform-origin: left center;
  transform: rotateY(calc(var(--journey) * -70deg)) translateZ(2px);
}
.door-handle {
  position: absolute;
  right: 8%;
  top: 53%;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffc851;
  box-shadow: 0 0 10px #ffc851;
}
.door-sticker,
.window-label {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  color: #2b2025;
  font-weight: 900;
  font-style: normal;
  text-align: center;
  background: #ffd65b;
  box-shadow: 0 5px 0 #9a542c;
}
.door-sticker { top: 27%; left: 50%; transform: translateX(-50%) rotate(-3deg); font-size: clamp(.5rem, .8vw, .8rem); }
.door-sticker small { font-size: .65em; }
.window-label { top: 6%; left: 7%; font-size: clamp(.4rem, .7vw, .7rem); transform: rotate(-3deg); }

.store-window i { position: absolute; display: block; bottom: 7%; filter: drop-shadow(0 8px 8px rgb(0 0 0 / 45%)); }
.display-robot { left: 13%; width: 24%; height: 34%; border-radius: 8px; background: #e9c044; }
.display-robot::before { content: ""; position: absolute; left: 16%; right: 16%; top: 16%; height: 26%; border: 3px solid #2b4e58; background: #f5e5b8; }
.display-robot::after { content: ""; position: absolute; left: -25%; right: -25%; top: 52%; height: 10%; background: #cf5440; }
.display-books { left: 43%; width: 16%; height: 28%; background: repeating-linear-gradient(90deg, #54a8a0 0 8px, #f2c84b 9px 16px, #e05c48 17px 25px); transform: skewY(-3deg); }
.display-lamp { right: 8%; width: 28%; height: 45%; border-radius: 50% 50% 8px 8px; background: radial-gradient(circle at 50% 25%, #fff9cd, #e7a933 55%, #863d34); clip-path: polygon(20% 0,80% 0,100% 45%,60% 45%,60% 92%,85% 92%,85% 100%,15% 100%,15% 92%,40% 92%,40% 45%,0 45%); }
.display-console { left: 8%; width: 43%; height: 23%; border-radius: 12px; background: #ded5be; box-shadow: inset 0 -8px #827d76; }
.display-console::before { content: "●  +"; position: absolute; inset: 20% 10%; color: #28324a; font-weight: 900; letter-spacing: 1em; }
.display-vinyl { right: 11%; width: 31%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f0c54a 0 10%, #222 11% 32%, #444 33% 35%, #191919 36% 60%, #444 61% 63%, #151515 64%); }
.display-rocket { left: 51%; bottom: 27% !important; width: 14%; height: 42%; border-radius: 50% 50% 10% 10%; background: linear-gradient(90deg, #c9d8d5, #fff, #a2bab8); transform: rotate(19deg); }
.display-rocket::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -8%; height: 30%; background: #e8523e; clip-path: polygon(0 100%,25% 0,75% 0,100% 100%,62% 70%,50% 100%,38% 70%); }

.shop-interior {
  position: absolute;
  inset: 0;
  opacity: clamp(0, calc((var(--journey) - .18) * 3), 1);
  transform-style: preserve-3d;
  transform: scale(calc(.78 + var(--journey) * .3));
  transform-origin: center;
  background: linear-gradient(#172538 0 15%, #1f3546 15% 78%, #271d25);
  will-change: transform, opacity;
}
.shop-interior::before,
.shop-interior::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
  background: repeating-linear-gradient(90deg, #183044 0 22px, #203d50 23px 45px);
  transform-style: preserve-3d;
}
.shop-interior::before { left: 0; transform-origin: left; transform: rotateY(63deg); }
.shop-interior::after { right: 0; transform-origin: right; transform: rotateY(-63deg); }

.shop-ceiling {
  position: absolute;
  z-index: 2;
  inset: 0 0 68%;
  transform-origin: top;
  transform: rotateX(-62deg);
  background: repeating-linear-gradient(90deg, #1c2e3d 0 12%, #27465a 12.5% 13%);
}
.shop-ceiling i {
  position: absolute;
  top: 55%;
  width: 9%;
  height: 12%;
  border-radius: 50%;
  background: #fff0a9;
  box-shadow: 0 0 45px 18px rgb(255 223 125 / 35%);
}
.shop-ceiling i:nth-child(1) { left: 15%; }
.shop-ceiling i:nth-child(2) { left: 38%; }
.shop-ceiling i:nth-child(3) { left: 61%; }
.shop-ceiling i:nth-child(4) { left: 84%; }
.shop-floor {
  position: absolute;
  z-index: 1;
  inset: 66% -20% -50%;
  transform-origin: top;
  transform: rotateX(61deg);
  background:
    linear-gradient(90deg, transparent 49.5%, rgb(34 20 21 / 38%) 50%, transparent 50.5%),
    repeating-linear-gradient(90deg, #a45b43 0 8%, #824532 8.3% 8.7%);
  box-shadow: inset 0 25px 50px rgb(0 0 0 / 40%);
}
.shop-back {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 23%;
  height: 43%;
  transform: translateX(-50%) translateZ(-310px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffd66a;
  border: 8px solid #182534;
  background: #b44d3f;
  box-shadow: inset 0 0 50px #632c30, 0 0 50px rgb(0 0 0 / 50%);
}
.shop-back span { font-family: Georgia, serif; font-weight: 900; font-size: clamp(.9rem, 2vw, 2rem); }
.shop-back small { font: 500 clamp(.4rem, .7vw, .75rem) Inter, sans-serif; letter-spacing: .12em; }

.shop-shelf {
  position: absolute;
  z-index: 4;
  width: clamp(210px, 27vw, 480px);
  height: clamp(140px, 25vh, 260px);
  padding: 15px;
  color: #fff6db;
  border: 9px solid #5a3027;
  background:
    linear-gradient(transparent 45%, #6b382d 46% 51%, transparent 52% 83%, #6b382d 84% 90%, transparent 91%),
    #173644;
  box-shadow: 0 18px 35px rgb(0 0 0 / 55%), inset 0 0 35px rgb(0 0 0 / 44%);
  transform-style: preserve-3d;
  transition: filter .25s ease;
}
.shop-shelf:hover { filter: brightness(1.2); }
.shop-shelf strong {
  position: absolute;
  z-index: 6;
  top: -29px;
  left: 10px;
  padding: 6px 11px;
  color: #302126;
  font-size: clamp(.55rem, .8vw, .82rem);
  letter-spacing: .08em;
  background: #ffc848;
  box-shadow: 4px 4px 0 #c04a3b;
}
.shop-shelf em {
  position: absolute;
  right: 9px;
  bottom: 7px;
  padding: 4px 8px;
  color: #25313b;
  font-size: .65rem;
  font-weight: 900;
  font-style: normal;
  border-radius: 99px;
  background: #ffe4a0;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}
.shop-shelf:hover em { opacity: 1; transform: none; }
.shelf-left { left: -3%; transform: rotateY(20deg); }
.shelf-right { right: -3%; transform: rotateY(-20deg); }
.shelf-pop,
.shelf-tech { top: 25%; }
.shelf-home,
.shelf-games {
  top: 62%;
  opacity: clamp(0, calc((var(--journey) - .58) * 5), 1);
  transform: translateY(calc((1 - var(--journey)) * 100px)) rotateY(20deg);
}
.shelf-games { transform: translateY(calc((1 - var(--journey)) * 100px)) rotateY(-20deg); }

.toy { position: absolute; bottom: 12%; display: block; filter: drop-shadow(0 8px 5px rgb(0 0 0 / 50%)); }
.toy:nth-of-type(1) { left: 7%; }
.toy:nth-of-type(2) { left: 30%; }
.toy:nth-of-type(3) { left: 54%; }
.toy:nth-of-type(4) { left: 77%; }
.toy.robot { width: 16%; height: 43%; border-radius: 5px; background: #e8ba3e; box-shadow: inset 0 -8px #a84a3c; }
.toy.robot::after { content: "•  •"; position: absolute; top: 12%; left: 15%; right: 15%; color: #193747; text-align: center; border: 2px solid #193747; background: #fff3c8; }
.toy.creature { width: 17%; height: 34%; border-radius: 50% 50% 40% 40%; background: #67b789; }
.toy.creature::before { content: ""; position: absolute; inset: -24% 6% auto; height: 42%; background: #67b789; clip-path: polygon(0 100%,12% 0,36% 55%,64% 55%,88% 0,100% 100%); }
.toy.rocket,
.toy.plane { width: 13%; height: 43%; border-radius: 50% 50% 5px 5px; background: #dce6df; transform: rotate(12deg); }
.toy.rocket::after { content: ""; position: absolute; inset: auto -30% -10%; height: 30%; background: #e6533f; clip-path: polygon(0 100%,25% 0,75% 0,100% 100%); }
.toy.books { width: 15%; height: 36%; background: repeating-linear-gradient(90deg, #db5142 0 9px, #efbe40 10px 19px, #3b9e95 20px 29px); }
.toy.headphones { width: 18%; height: 35%; border: 9px solid #e5c84b; border-bottom: 0; border-radius: 50% 50% 0 0; }
.toy.headphones::after { content: ""; position: absolute; inset: 52% -8px auto; height: 33%; border-left: 10px solid #d14b3f; border-right: 10px solid #d14b3f; }
.toy.console { width: 19%; height: 24%; border-radius: 12px; background: #ddd5bf; box-shadow: inset 0 -7px #777879; }
.toy.camera { width: 17%; height: 29%; border-radius: 5px; background: #d65343; }
.toy.camera::after { content: ""; position: absolute; width: 45%; aspect-ratio: 1; left: 27%; top: 25%; border: 5px solid #e8c951; border-radius: 50%; background: #1d3341; }
.toy.vinyl { width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #e8c743 0 13%, #222 14% 100%); }
.toy.lamp { width: 18%; height: 42%; background: #e5b941; clip-path: polygon(22% 0,78% 0,100% 38%,58% 38%,58% 88%,82% 88%,82% 100%,18% 100%,18% 88%,42% 88%,42% 38%,0 38%); }
.toy.vase { width: 16%; height: 38%; border-radius: 30% 30% 45% 45%; background: linear-gradient(90deg, #3d9e91, #83cfb7, #327d78); clip-path: polygon(31% 0,69% 0,68% 22%,91% 100%,9% 100%,32% 22%); }
.toy.clock { width: 18%; aspect-ratio: 1; border: 6px solid #c64d3e; border-radius: 50%; background: conic-gradient(from 0deg, #fff1c6, #f4d781); }
.toy.clock::after { content: ""; position: absolute; left: 48%; top: 15%; width: 4px; height: 38%; transform-origin: bottom; transform: rotate(35deg); background: #243746; }
.toy.frame { width: 19%; height: 39%; border: 8px solid #dfb846; background: linear-gradient(145deg, #6bb8ab 0 45%, #d85a49 46%); }
.toy.dice { width: 17%; aspect-ratio: 1; border-radius: 8px; background: #f1d170; box-shadow: inset 0 -7px #ce8742; }
.toy.dice::after { content: "•  •\\A  •\\A•  •"; white-space: pre; position: absolute; inset: 7%; color: #4b3240; text-align: center; line-height: .8; }
.toy.board { width: 20%; height: 34%; transform: rotate(-7deg); background: repeating-conic-gradient(#e44f3d 0 25%, #f0ce55 0 50%) 0/20px 20px; border: 5px solid #eee2ba; }
.toy.ball { width: 17%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#e8513d, #e8513d 20%, #f2cc53 21% 42%, #329b91 43% 63%, #eee1bd 64% 84%, #e8513d 85%); }
.toy.plane { height: 35%; transform: rotate(70deg); background: #d9e5dd; clip-path: polygon(40% 0,60% 0,66% 37%,100% 63%,100% 76%,65% 60%,60% 100%,40% 100%,35% 60%,0 76%,0 63%,34% 37%); }

.shop-counter {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: -2%;
  width: clamp(210px, 29vw, 460px);
  height: clamp(90px, 19vh, 180px);
  transform: translateX(-50%) translateY(calc((1 - var(--journey)) * 160px));
  display: grid;
  place-items: center;
  color: #ffe4a0;
  text-align: center;
  background: repeating-linear-gradient(90deg, #76392f 0 9%, #874436 9.5% 10%);
  border: 10px solid #4e2926;
  box-shadow: 0 -10px 35px rgb(0 0 0 / 45%);
}

.shop-details { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hanging-card {
  position: absolute;
  top: 14%;
  width: 72px;
  padding: 8px 5px;
  color: #26303a;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
  background: #f3cb5c;
  box-shadow: 4px 5px 0 #a3483b;
  transform: rotate(-4deg);
  animation: storeSwing 3.5s ease-in-out infinite alternate;
  transform-origin: 50% -80px;
}
.hanging-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 80px;
  background: rgb(245 229 190 / 60%);
}
.card-one { left: 25%; }
.card-two { right: 23%; animation-delay: -1.7s; transform: rotate(3deg); }
.packing-crate {
  position: absolute;
  bottom: 5%;
  width: clamp(70px, 8vw, 125px);
  height: clamp(58px, 10vh, 95px);
  display: grid;
  place-items: center;
  color: #442a24;
  font-size: .7rem;
  transform: rotate(-3deg);
  border: 5px solid #573128;
  background:
    linear-gradient(35deg, transparent 43%, #6f3c2d 44% 48%, transparent 49%),
    linear-gradient(-35deg, transparent 43%, #6f3c2d 44% 48%, transparent 49%),
    #bd754c;
  box-shadow: 0 12px 18px rgb(0 0 0 / 34%);
}
.crate-one { left: 20%; }
.crate-two { right: 18%; bottom: 2%; transform: rotate(5deg) scale(.83); }
.packing-crate b { padding: 3px 7px; background: #e4b95f; transform: rotate(2deg); }
.shop-poster {
  position: absolute;
  top: 25%;
  left: 50%;
  width: clamp(150px, 17vw, 240px);
  padding: 18px 9px;
  transform: translateX(-50%) translateZ(-290px) rotate(1deg);
  color: #f5dc93;
  text-align: center;
  font: 700 clamp(.55rem, 1vw, .85rem) Georgia, serif;
  border: 5px double #e7bb4c;
  background: #16333e;
  box-shadow: 7px 9px 0 rgb(81 37 34 / 75%);
}
.shop-poster b { display: block; color: #ef634b; font-size: 1.45em; }
.shop-poster small { display: block; margin-top: 5px; font: 500 .62em Inter, sans-serif; }

.door-tunnel {
  position: absolute;
  z-index: 18;
  inset: 0;
  opacity: clamp(0, calc((var(--journey) - .27) * 8), calc((.64 - var(--journey)) * 8));
  pointer-events: none;
  perspective: 850px;
}
.door-tunnel i {
  position: absolute;
  background:
    repeating-linear-gradient(0deg, #5f302b 0 10%, #74392f 10.5% 11.5%),
    #68322c;
  box-shadow: inset 0 0 45px #21131b;
}
.door-tunnel i:nth-child(1),
.door-tunnel i:nth-child(2) { top: -10%; bottom: -10%; width: 22%; }
.door-tunnel i:nth-child(1) { left: -4%; transform: rotateY(55deg); transform-origin: left; }
.door-tunnel i:nth-child(2) { right: -4%; transform: rotateY(-55deg); transform-origin: right; }
.door-tunnel i:nth-child(3),
.door-tunnel i:nth-child(4) { left: 12%; right: 12%; height: 18%; }
.door-tunnel i:nth-child(3) { top: -6%; transform: rotateX(-55deg); transform-origin: top; }
.door-tunnel i:nth-child(4) { bottom: -7%; transform: rotateX(55deg); transform-origin: bottom; }
.shop-counter strong { font-family: Georgia, serif; font-size: clamp(.75rem, 1.5vw, 1.4rem); letter-spacing: .08em; }
.shop-counter > img {
  position: absolute;
  left: 7%;
  top: 18%;
  width: clamp(46px, 6vw, 84px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid #e8bd49;
  border-radius: 50%;
  box-shadow: 0 7px 12px rgb(0 0 0 / 36%);
}
.counter-bell { position: absolute; top: -31px; right: 17%; width: 45px; height: 30px; border-radius: 50% 50% 5px 5px; background: #e2b93f; box-shadow: inset 0 -8px #9b632d; }

.floating-dust i {
  position: absolute;
  z-index: 9;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe9a5;
  box-shadow: 0 0 9px #ffd778;
  animation: storeDust 5s ease-in-out infinite alternate;
}
.floating-dust i:nth-child(1) { left: 15%; top: 30%; }
.floating-dust i:nth-child(2) { left: 27%; top: 65%; animation-delay: -2s; }
.floating-dust i:nth-child(3) { left: 41%; top: 42%; animation-delay: -4s; }
.floating-dust i:nth-child(4) { left: 53%; top: 24%; animation-delay: -1s; }
.floating-dust i:nth-child(5) { left: 67%; top: 54%; animation-delay: -3s; }
.floating-dust i:nth-child(6) { left: 82%; top: 29%; animation-delay: -1.5s; }
.floating-dust i:nth-child(7) { left: 90%; top: 72%; animation-delay: -4.5s; }
.floating-dust i:nth-child(8) { left: 8%; top: 80%; animation-delay: -.5s; }

.store-vignette {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgb(3 7 15 / 22%) 65%, rgb(3 6 13 / 80%) 105%);
}
.store-intro {
  position: absolute;
  z-index: 25;
  left: clamp(24px, 7vw, 110px);
  top: 50%;
  width: min(600px, 72vw);
  transform: translateY(-50%) translateY(calc(var(--journey) * -70px));
  opacity: clamp(0, calc(1 - var(--journey) * 4), 1);
  text-shadow: 0 5px 24px #070b16;
}
.store-intro p {
  margin: 0 0 3px;
  color: #ffd25f;
  font-size: clamp(.75rem, 1.2vw, 1rem);
  font-weight: 900;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.store-intro h1 {
  max-width: 6em;
  margin: 0;
  color: #fff0c6;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: .8;
  letter-spacing: -.055em;
}
.store-intro > span { display: block; margin-top: 16px; font-size: clamp(.9rem, 1.6vw, 1.3rem); letter-spacing: .12em; }
.store-intro a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 12px 18px;
  color: #27202a;
  font-weight: 900;
  border-radius: 99px;
  background: #ffc94b;
  box-shadow: 0 6px 0 #b34839;
}

.store-chapter {
  position: absolute;
  z-index: 24;
  left: clamp(28px, 6vw, 92px);
  bottom: clamp(72px, 9vh, 96px);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  width: min(390px, 78vw);
  padding: 14px 16px;
  border: 1px solid rgb(255 211 121 / 20%);
  border-left: 3px solid #ffc94d;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(105deg, rgb(5 8 14 / 91%), rgb(9 11 17 / 76%));
  box-shadow: 0 18px 54px rgb(0 0 0 / 34%), inset 0 1px rgb(255 255 255 / 5%);
  backdrop-filter: blur(14px) saturate(115%);
  pointer-events: none;
}
.store-chapter span {
  grid-row: 1 / 3;
  align-self: center;
  color: #ffc94d;
  font: 700 1.8rem/1 Georgia, serif;
}
.store-chapter strong {
  color: #fff8e9;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  letter-spacing: -.01em;
}
.store-chapter small { color: rgb(255 255 255 / 72%); font-size: .78rem; line-height: 1.35; }
.chapter-one { opacity: clamp(0, calc((var(--journey) - .12) * 10), calc((.38 - var(--journey)) * 10)); }
.chapter-two { opacity: clamp(0, calc((var(--journey) - .38) * 10), calc((.66 - var(--journey)) * 10)); }
.chapter-three { opacity: clamp(0, calc((var(--journey) - .7) * 8), 1); }

.store-scroll-hint {
  position: absolute;
  z-index: 25;
  right: clamp(16px, 4vw, 60px);
  bottom: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .17em;
  opacity: clamp(0, calc(1 - var(--journey) * 7), .8);
}
.store-scroll-hint i { width: 1px; height: 48px; background: #fff; animation: storeScroll 1.4s ease-in-out infinite; transform-origin: top; }
.store-quick-nav {
  position: absolute;
  z-index: 45;
  top: max(16px, env(safe-area-inset-top));
  left: clamp(16px, 3vw, 46px);
  display: flex;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 18px;
  background: rgb(4 7 12 / 68%);
  box-shadow: 0 16px 42px rgb(0 0 0 / 38%), inset 0 1px rgb(255 255 255 / 5%);
  backdrop-filter: blur(20px) saturate(120%);
  opacity: .94;
  transition: opacity .25s ease, transform .35s ease;
}
.store-quick-nav:hover,
.store-quick-nav:focus-within { opacity: 1; }
.store-quick-nav a,
.store-quick-nav button {
  min-height: 46px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffeac0;
  font: 850 .65rem/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .065em;
  text-transform: uppercase;
  border: 1px solid rgb(255 211 121 / 28%);
  border-radius: 12px;
  background: rgb(13 17 24 / 78%);
  box-shadow: inset 0 1px rgb(255 255 255 / 6%);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.store-quick-nav .store-nav-primary {
  color: #20170b;
  border-color: #ffd978;
  background: linear-gradient(135deg, #ffe08b, #ffc447);
}
.store-quick-nav svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-nav-label-short { display: none; }
.store-quick-nav a:hover,
.store-quick-nav button:hover,
.store-quick-nav a:focus-visible,
.store-quick-nav button:focus-visible {
  color: #20170b;
  background: #ffc94b;
  outline: 2px solid rgb(255 255 255 / 70%);
  outline-offset: 2px;
  transform: translateY(-2px);
}
.store-journey-steps {
  position: absolute;
  z-index: 31;
  right: clamp(22px, 4vw, 60px);
  bottom: 15px;
  display: flex;
  gap: 24px;
  color: rgb(255 255 255 / 46%);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.store-journey-steps span {
  position: relative;
}
.store-journey-steps span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgb(255 255 255 / 25%);
}
.store-journey-steps span:nth-child(1) {
  color: color-mix(in srgb, #ffd066 calc(clamp(0, calc(.42 - var(--store-progress, 0)), .42) * 238%), rgb(255 255 255 / 46%));
}
.store-experience.is-inside .store-journey-steps span:nth-child(2),
.store-experience.at-counter .store-journey-steps span:nth-child(3) { color: #ffd066; }
.store-experience.at-counter .store-journey-steps span:nth-child(2) { color: rgb(255 255 255 / 46%); }
.store-progress { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / 12%); }
.store-progress i { display: block; width: 100%; height: 100%; transform: scaleX(.03); transform-origin: left; background: linear-gradient(90deg, #df4d3f, #ffc94b, #2ec4b6); }

.home-experience .featured-section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: clamp(70px, 10vw, 140px);
}
.home-experience .home-page > .section,
.home-experience .contact-band {
  width: min(1500px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

@keyframes storeTwinkle { to { opacity: .25; transform: scale(.5); } }
@keyframes storeDust { to { transform: translate(25px, -35px); opacity: .25; } }
@keyframes storeScroll { 50% { transform: scaleY(.35) translateY(30px); opacity: .35; } }
@keyframes storeSwing { to { transform: rotate(4deg); } }
@keyframes storeFilmGrain {
  0% { transform: translate3d(-2%, 1%, 0); }
  50% { transform: translate3d(2%, -1%, 0); }
  100% { transform: translate3d(0, 2%, 0); }
}
@keyframes hotspotGlow {
  50% {
    box-shadow:
      0 0 0 11px rgb(255 184 64 / 6%),
      0 0 36px 11px rgb(255 170 55 / 66%),
      inset 0 1px 0 rgb(255 255 255 / 72%);
  }
}
@keyframes storeDeparture {
  to { transform: translateX(0); }
}

@media (max-width: 720px) {
  .store-experience {
    height: 340vh;
    --mobile-scene-ratio: .5628;
  }
  .store-stage {
    height: 100svh;
    min-height: 560px;
  }
  .store-facade { width: 92vw; height: 61vh; top: 53%; }
  .store-sign { width: 76%; }
  .store-logo-medallion { left: 1%; top: -8%; width: 62px; }
  .store-window { width: 30%; }
  .store-door { left: 36%; width: 28%; }
  .store-intro {
    left: 0;
    top: 30%;
    width: 100%;
    padding: 0 18px;
    text-align: center;
  }
  .store-intro p,
  .store-intro h1 { display: none; }
  .store-intro > span { margin-top: 0; font-size: .78rem; }
  .store-intro > span { max-width: 18em; }
  .store-scroll-hint span { display: none; }
  .store-chapter {
    left: 16px;
    right: 16px;
    bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px));
    width: auto;
    grid-template-columns: 40px 1fr;
    column-gap: 10px;
    padding: 11px 13px;
    border-left-width: 3px;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(105deg, rgb(4 8 15 / 93%), rgb(7 10 16 / 82%));
  }
  .store-chapter span { font-size: 1.4rem; }
  .store-chapter strong { font-size: .96rem; }
  .store-chapter small { color: rgb(255 255 255 / 75%); font-size: .75rem; line-height: 1.28; }
  .store-chapter strong,
  .store-chapter small {
    overflow-wrap: anywhere;
  }
  .shop-shelf { width: 48vw; height: 22vh; padding: 8px; border-width: 6px; }
  .shelf-left { left: -11%; }
  .shelf-right { right: -11%; }
  .shop-shelf strong { top: -25px; }
  .shop-shelf .toy:nth-of-type(4) { display: none; }
  .shop-counter { width: 42vw; }
  .hanging-card { display: none; }
  .packing-crate { opacity: .7; }
  .store-category-portals {
    bottom: 22px;
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 10px;
    border-radius: 18px;
  }
  .store-category-portals a {
    min-height: 52px;
    padding: 8px;
    font-size: .64rem;
  }
  .store-category-portals a span { font-size: 1rem; }
  .store-category-portals p strong { font-size: 1rem; }
  .store-cinematic-copy {
    top: auto;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
    text-align: center;
  }
  .store-cinematic-copy { display: none; }
  .store-cinematic-copy small,
  .store-cinematic-copy p { display: none; }
  .store-cinematic-copy strong {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: .84;
    letter-spacing: -.045em;
  }
  .store-sequence {
    top: 20px;
    right: 16px;
    left: 16px;
    justify-content: space-between;
    gap: 8px;
  }
  .store-sequence span { font-size: .48rem; }
  .store-hotspots > p {
    top: max(70px, calc(env(safe-area-inset-top) + 62px));
    left: 16px;
    max-width: min(210px, calc(100% - 32px));
    padding: 9px 13px;
    transform: none;
    text-align: left;
    white-space: normal;
    border-radius: 13px;
    background: rgb(7 9 13 / 78%);
  }
  .store-hotspots > p small { display: none; }
  .store-hotspots > p strong { font-size: .82rem; line-height: 1.15; }
  .store-hotspot {
    left: var(--hotspot-mobile-x);
    top: var(--hotspot-mobile-y);
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
  }
  .store-hotspot {
    left: clamp(28px, var(--hotspot-mobile-x), calc(100% - 28px));
  }
  .store-hotspot::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1px;
    transform: rotate(-45deg);
    transform-origin: left center;
    background: linear-gradient(90deg, rgb(255 207 112 / 85%), transparent);
  }
  .store-hotspot:nth-of-type(even)::after {
    left: auto;
    right: 50%;
    transform: rotate(45deg);
    transform-origin: right center;
  }
  .store-hotspot > span {
    width: 38px;
    height: 38px;
    margin: 5px;
    border: 1px solid rgb(255 239 201 / 88%);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffd16b, #e9a82e);
    box-shadow:
      0 0 0 4px rgb(255 184 64 / 8%),
      0 0 16px 4px rgb(255 170 55 / 38%),
      inset 0 1px rgb(255 255 255 / 68%);
  }
  .store-hotspot > span svg { width: 19px; height: 19px; stroke-width: 1.9; }
  .store-hotspot > strong {
    bottom: auto;
    top: calc(100% + 9px);
    left: 50%;
    width: max-content;
    max-width: min(150px, 42vw);
    padding: 7px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    color: #fff0cb;
    font: 700 .72rem/1.12 Georgia, serif;
    text-align: center;
    white-space: normal;
    border: 1px solid rgb(255 205 103 / 36%);
    border-radius: 8px;
    background: rgb(7 10 15 / 86%);
    box-shadow: 0 7px 18px rgb(0 0 0 / 34%);
    backdrop-filter: blur(7px);
  }
  .store-hotspot > small { display: none; }
  .store-hotspot.hotspot-right > strong {
    right: auto;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
  }
  .store-hotspot:nth-of-type(n + 6) > strong {
    top: auto;
    bottom: calc(100% + 8px);
  }
  .store-hotspot:nth-of-type(4) > strong,
  .store-hotspot:nth-of-type(6) > strong,
  .store-hotspot:nth-of-type(10) > strong,
  .store-hotspot:nth-of-type(12) > strong {
    right: -2px;
    left: auto;
    transform: translateX(0);
  }
  .store-hotspots .store-hotspot.is-armed > strong,
  .store-hotspots .store-hotspot.is-armed > small {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
  }
  .store-hotspots .store-hotspot.is-armed:nth-of-type(4) > strong,
  .store-hotspots .store-hotspot.is-armed:nth-of-type(6) > strong,
  .store-hotspots .store-hotspot.is-armed:nth-of-type(10) > strong,
  .store-hotspots .store-hotspot.is-armed:nth-of-type(12) > strong {
    transform: translateX(0);
  }
  .store-directory {
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translate(50%, 12px);
  }
  .store-directory summary {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 10px 17px;
    font-size: .66rem;
    background: rgb(8 11 17 / 88%);
  }
  .store-experience.at-counter .store-directory {
    transform: translate(50%, 0);
  }
  .store-directory > div {
    right: auto;
    left: 50%;
    grid-template-columns: 1fr;
    max-height: 58vh;
    transform: translate(-50%, 8px) scale(.98);
    transform-origin: bottom center;
  }
  .store-directory[open] > div {
    transform: translate(-50%, 0) scale(1);
  }
  .store-film-frame {
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .store-film::before,
  .store-film::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -28px;
    background-position: center;
    background-size: cover;
    filter: blur(22px) brightness(.38) saturate(.78);
    transform: scale(1.09);
  }
  .store-film::before,
  .store-film::after { display: none; }
  .store-film::before {
    opacity: clamp(0, calc((.48 - var(--journey, 0)) * 8), 1);
    background-image: url("/assets/mj-store-film-01.webp");
  }
  .store-film::after {
    opacity: clamp(0, calc((var(--journey, 0) - .38) * 4), 1);
    background-image: url("/assets/mj-store-film-03-v3.webp");
  }
  .store-film-light,
  .store-film-grain { z-index: 2; }
  .store-film-light {
    background:
      linear-gradient(180deg, rgb(3 6 12 / 45%), transparent 24% 76%, rgb(3 6 12 / 52%)),
      radial-gradient(circle at 50% 50%, transparent 36%, rgb(2 5 10 / 28%));
  }
  .store-quick-nav {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    gap: 5px;
    padding: 5px;
    border-radius: 14px;
  }
  .store-quick-nav a,
  .store-quick-nav button {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 10px;
    overflow: hidden;
    font-size: .62rem;
    letter-spacing: .055em;
    text-align: center;
    white-space: nowrap;
    background: rgb(7 10 16 / 82%);
  }
  .store-quick-nav svg { width: 17px; height: 17px; }
  .store-nav-label-full { display: none; }
  .store-nav-label-short { display: inline; }
  .store-journey-steps {
    right: 12px;
    bottom: 11px;
    gap: 17px;
    font-size: .48rem;
  }
  .store-journey-steps span:not(:last-child)::after {
    left: calc(100% + 5px);
    width: 7px;
  }
  .home-experience .home-page > .section,
  .home-experience .contact-band { width: min(100% - 24px, 1500px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-dust i,
  .store-sky i,
  .hanging-card,
  .store-film-grain,
  .store-hotspot { animation: none; }
}

.new-badge {
  background: #e8f4ff;
  color: #14507a;
}

.deal-badge {
  background: #eef8df;
  color: #3f641c;
}

.lot-badge,
.workflow-badge {
  background: #f5ead2;
  color: #6d4c13;
}

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(25 22 18 / 72%);
}

.scan-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #fffaf1;
  border: 1px solid #d8cdbb;
  box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}

.scan-panel video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.scan-panel > strong,
.scan-panel > span {
  display: block;
  text-align: center;
}

.scan-panel > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.scan-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.scan-video-frame video {
  display: block;
}

.scan-video-frame i {
  position: absolute;
  inset: 34% 7%;
  border: 3px solid #44d7a8;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .24);
  pointer-events: none;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-width: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ded4c4;
  background: #fbf7ef;
}

.kanban-column h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
}

.kanban-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2d8c9;
}

.kanban-card img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.kanban-card strong,
.kanban-card span,
.kanban-card small {
  display: block;
}

.kanban-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kanban-actions .button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 0.75rem;
}

.expense-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.expense-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2d8c9;
  background: #fff;
}

.expense-row span,
.expense-row small {
  display: block;
  color: #6f6558;
}

.receipt-page {
  min-height: 100vh;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding: 28px;
}

.receipt-ticket {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8cdbb;
  background: #fff;
  box-shadow: 0 12px 34px rgb(45 35 20 / 12%);
}

.receipt-head,
.receipt-legal,
.receipt-total,
.receipt-ticket dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-ticket dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.receipt-ticket dt {
  color: #6f6558;
}

.receipt-legal {
  font-size: .82rem;
  color: #6f6558;
}

.receipt-total {
  padding-top: 12px;
  border-top: 1px solid #e2d8c9;
  font-size: 1.15rem;
}

.receipt-lines { width: 100%; border-collapse: collapse; font-size: .86rem; }
.receipt-lines th, .receipt-lines td { padding: 7px 4px; border-bottom: 1px solid #e2d8c9; text-align: right; vertical-align: top; }
.receipt-lines th:first-child, .receipt-lines td:first-child { text-align: left; }
.receipt-lines td small { display: block; color: #6f6558; }
.receipt-email-form { width: min(520px, 100%); display: flex; align-items: end; gap: 10px; padding: 16px; background: #fff; border: 1px solid #d8cdbb; }
.receipt-email-form label { flex: 1; }

@media (max-width: 900px) {
  .expense-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media print {
  @page receipt-roll {
    size: 55mm 90mm;
    margin: 0;
  }

  .receipt-email-form,
  .receipt-refund-panel,
  .notice-banner { display: none !important; }

  .receipt-page {
    page: receipt-roll;
    width: 55mm;
    max-width: 55mm;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
  }

  body.receipt-print-document {
    page: receipt-roll;
    width: 55mm;
    min-width: 55mm;
    max-width: 55mm;
    margin: 0;
  }

  .receipt-ticket {
    width: 55mm;
    max-width: 55mm;
    margin: 0;
    padding: 2.5mm 2mm;
    gap: 2.2mm;
    box-shadow: none;
    border: 0;
    font-size: 8pt;
    line-height: 1.2;
  }

  .receipt-ticket .receipt-head,
  .receipt-ticket .receipt-legal,
  .receipt-ticket dl div,
  .receipt-ticket .receipt-total {
    gap: 1.5mm;
  }

  .receipt-ticket dl {
    gap: 1.2mm;
  }

  .receipt-ticket dd {
    margin-left: 1mm;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .receipt-ticket .receipt-lines {
    table-layout: fixed;
    font-size: 7pt;
  }

  .receipt-ticket .receipt-lines th,
  .receipt-ticket .receipt-lines td {
    padding: 1.2mm 0.5mm;
  }

  .receipt-ticket .receipt-lines th:first-child,
  .receipt-ticket .receipt-lines td:first-child {
    width: 46%;
    overflow-wrap: anywhere;
  }

  .receipt-ticket .receipt-total {
    padding-top: 2mm;
    font-size: 10pt;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(35, 112, 91, 0.12) 0 28%, transparent 28% 100%),
    linear-gradient(315deg, rgba(49, 95, 159, 0.09) 0 24%, transparent 24% 100%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(32, 33, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 36, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  opacity: 0.55;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 10px;
  background: #f3dfc0;
  box-shadow: 0 10px 24px rgba(32, 32, 29, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-note span,
.category-card p,
.intro,
.contact-band p {
  color: var(--muted);
}

.sidebar-search {
  display: grid;
  gap: 7px;
}

.sidebar-search label {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-search div {
  display: flex;
  min-width: 0;
}

.sidebar-search input {
  min-width: 0;
  width: 100%;
  border-radius: 8px 0 0 8px;
}

.sidebar-search button {
  padding: 0 11px;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.category-nav {
  display: grid;
  gap: 8px;
}

.category-nav p,
.kicker {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #37342e;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.category-nav a:hover {
  background: #eef5f2;
  border-color: var(--line);
  color: var(--accent-dark);
  transform: translateX(3px);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6efe2;
  display: grid;
  gap: 6px;
}

.page {
  margin-left: 280px;
}

.site-banner {
  position: relative;
  z-index: 2;
  margin-left: 280px;
  display: block;
  overflow: hidden;
  background: #0b0d0c;
  border-bottom: 3px solid #e7550d;
  box-shadow: 0 12px 32px rgba(17, 16, 13, 0.16);
}

.site-banner img {
  width: 100%;
  height: clamp(145px, 18vw, 230px);
  display: block;
  object-fit: fill;
}

.hero {
  position: relative;
  min-height: 86vh;
  padding: 58px min(6vw, 76px);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 48px;
  animation: page-rise 620ms ease both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 34px min(4vw, 48px);
  border: 1px solid rgba(35, 112, 91, 0.13);
  border-radius: 8px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: min(6vw, 76px);
  top: 58px;
  width: min(240px, 28vw);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--clay), var(--gold));
  opacity: 0.82;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.3rem, 4.4vw, 4.35rem);
  line-height: 1.01;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-highlights span {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: #363a42;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 35, 40, 0.06);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform-origin: center;
  animation: hero-float 7s ease-in-out infinite;
}

.hero-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(31, 35, 40, 0.16);
}

.hero-note strong {
  font-size: 0.98rem;
}

.hero-note span {
  color: var(--muted);
  line-height: 1.35;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 111, 94, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  padding: 34px min(6vw, 76px) 72px;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-heading.compact {
  margin: 0 0 14px;
}

.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: 0;
}

.article-category-section {
  scroll-margin-top: 24px;
}

.article-category-section + .article-category-section {
  margin-top: 32px;
}

.catalog-result-count {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.catalog-pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.catalog-pagination .disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.catalog-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.catalog-page-numbers a,
.catalog-page-numbers span {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.catalog-page-numbers span[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.category-card,
.article-card,
.editor-panel,
.auth-panel,
.admin-item {
  min-height: 178px;
  padding: 22px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.category-card {
  display: grid;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  gap: 0;
  align-content: start;
  min-height: 196px;
  padding: 22px 22px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
  transform: translateY(0);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--tile-accent-start), var(--tile-accent-end));
  z-index: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-glow) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0.75;
  transform: translate3d(0, 0, 0) scale(0.95);
  transition: transform 420ms ease, opacity 420ms ease;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--tile-border);
  box-shadow: 0 22px 44px rgba(44, 38, 30, 0.14);
  filter: saturate(1.03);
}

.category-card:focus-visible {
  outline: 3px solid rgba(35, 112, 91, 0.35);
  outline-offset: 3px;
}

.category-card:hover::after {
  transform: translate3d(-12px, -8px, 0) scale(1.08);
  opacity: 0.95;
}

.category-card span {
  width: fit-content;
  min-width: 44px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--tile-accent-text);
  background: var(--tile-accent-soft);
  border: 1px solid var(--tile-accent-border);
  font-weight: 850;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.06);
}

.category-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  line-height: 1.1;
}

.category-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.category-card:nth-child(1) {
  --tile-accent-start: #d77f1f;
  --tile-accent-end: #f0b24f;
  --tile-accent-soft: rgba(215, 127, 31, 0.14);
  --tile-accent-border: rgba(215, 127, 31, 0.22);
  --tile-accent-text: #9d5608;
  --tile-glow: rgba(240, 178, 79, 0.28);
  --tile-border: #e7c48b;
}

.category-card:nth-child(2) {
  --tile-accent-start: #23705b;
  --tile-accent-end: #4ba98c;
  --tile-accent-soft: rgba(35, 112, 91, 0.14);
  --tile-accent-border: rgba(35, 112, 91, 0.2);
  --tile-accent-text: #1b5b4a;
  --tile-glow: rgba(75, 169, 140, 0.26);
  --tile-border: #a8d5c6;
}

.category-card:nth-child(3) {
  --tile-accent-start: #315f9f;
  --tile-accent-end: #6f8fd0;
  --tile-accent-soft: rgba(49, 95, 159, 0.14);
  --tile-accent-border: rgba(49, 95, 159, 0.2);
  --tile-accent-text: #274b7a;
  --tile-glow: rgba(111, 143, 208, 0.24);
  --tile-border: #b4c6e7;
}

.category-card:nth-child(4) {
  --tile-accent-start: #c6563b;
  --tile-accent-end: #ef8967;
  --tile-accent-soft: rgba(198, 86, 59, 0.14);
  --tile-accent-border: rgba(198, 86, 59, 0.2);
  --tile-accent-text: #9f3e27;
  --tile-glow: rgba(239, 137, 103, 0.24);
  --tile-border: #e7b0a1;
}

.category-card:nth-child(5) {
  --tile-accent-start: #7e5be6;
  --tile-accent-end: #a98af1;
  --tile-accent-soft: rgba(126, 91, 230, 0.14);
  --tile-accent-border: rgba(126, 91, 230, 0.2);
  --tile-accent-text: #5c44b3;
  --tile-glow: rgba(169, 138, 241, 0.24);
  --tile-border: #cab7f1;
}

.category-card:nth-child(6) {
  --tile-accent-start: #6b7d47;
  --tile-accent-end: #9cb05f;
  --tile-accent-soft: rgba(107, 125, 71, 0.14);
  --tile-accent-border: rgba(107, 125, 71, 0.2);
  --tile-accent-text: #526133;
  --tile-glow: rgba(156, 176, 95, 0.24);
  --tile-border: #c8d2a7;
}

.category-card:nth-child(7) {
  --tile-accent-start: #a05d2f;
  --tile-accent-end: #d38a55;
  --tile-accent-soft: rgba(160, 93, 47, 0.14);
  --tile-accent-border: rgba(160, 93, 47, 0.2);
  --tile-accent-text: #7c4422;
  --tile-glow: rgba(211, 138, 85, 0.24);
  --tile-border: #dfba99;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.article-grid.image-compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.article-grid.image-large {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.article-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: tile-in 520ms ease forwards;
  animation-delay: var(--delay, 0ms);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
  contain: layout paint;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(35, 112, 91, 0.06), rgba(198, 86, 59, 0.04));
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--article-border, #bad2c8);
  box-shadow: 0 18px 38px rgba(44, 38, 30, 0.14);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--article-accent-start), var(--article-accent-end));
  z-index: 3;
}

.article-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 14px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--article-glow) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.75;
  transition: transform 420ms ease, opacity 420ms ease;
  pointer-events: none;
}

.article-card:hover::after {
  transform: translate3d(-8px, -8px, 0) scale(1.08);
  opacity: 0.95;
}

.article-link {
  display: block;
  height: 100%;
  outline-offset: -4px;
}

.article-media,
.article-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee5d6;
  isolation: isolate;
}

.article-media::before,
.article-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, #eee5d6 8%, #f7f1e7 18%, #eee5d6 33%);
  background-size: 220% 100%;
  animation: image-warmup 1.4s ease-in-out infinite;
}

.article-card img,
.article-slide {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform, opacity;
  transition: transform 900ms ease;
  backface-visibility: hidden;
  z-index: 1;
}

.image-compact .article-media,
.image-compact .article-carousel {
  aspect-ratio: 16 / 9;
}

.image-large .article-media,
.image-large .article-carousel {
  aspect-ratio: 1 / 1;
}

.article-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 520ms ease, transform 900ms ease;
}

.article-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.article-card:hover .article-slide.is-active,
.article-card:focus-within .article-slide.is-active,
.article-card:hover .article-media img,
.article-card:focus-within .article-media img {
  transform: scale(1.035);
}

.article-carousel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  z-index: 3;
  background: linear-gradient(to top, rgba(32, 32, 29, 0.38), transparent);
  pointer-events: none;
  transition: height 300ms ease, background 300ms ease;
}

.article-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(15, 24, 21, 0.04) 15%, rgba(15, 24, 21, 0.9) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.article-preview {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 5;
  display: grid;
  gap: 7px;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 300ms ease;
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.article-preview-kicker {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.article-preview-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.91rem;
  line-height: 1.42;
  font-weight: 650;
}

.article-preview-action {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #183c31;
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.image-compact .article-preview {
  inset: auto 12px 12px;
  gap: 5px;
}

.image-compact .article-preview-kicker {
  display: none;
}

.image-compact .article-preview-description {
  -webkit-line-clamp: 3;
  font-size: 0.8rem;
  line-height: 1.3;
}

.image-compact .article-preview-action {
  padding: 6px 9px;
  font-size: 0.7rem;
}

.article-card:hover .article-media::after,
.article-card:focus-within .article-media::after {
  opacity: 1;
}

.article-card:hover .article-carousel::after,
.article-card:focus-within .article-carousel::after {
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 24, 21, 0.08), rgba(15, 24, 21, 0.9));
}

.article-card:hover .article-preview,
.article-card:focus-within .article-preview {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover .carousel-dots,
.article-card:focus-within .carousel-dots {
  opacity: 0;
}

.photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(32, 32, 29, 0.76);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  z-index: 4;
}

.carousel-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 4;
  transition: opacity 180ms ease;
}

.carousel-dot {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 220ms ease, background 220ms ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.58);
}

.article-body {
  padding: 18px;
}

.article-card--manga-pop-culture {
  --article-accent-start: #d77f1f;
  --article-accent-end: #f0b24f;
  --article-glow: rgba(240, 178, 79, 0.24);
  --article-border: #e7c48b;
}

.article-card--high-tech-audio {
  --article-accent-start: #23705b;
  --article-accent-end: #4ba98c;
  --article-glow: rgba(75, 169, 140, 0.2);
  --article-border: #a8d5c6;
}

.article-card--maison-deco {
  --article-accent-start: #315f9f;
  --article-accent-end: #6f8fd0;
  --article-glow: rgba(111, 143, 208, 0.2);
  --article-border: #b4c6e7;
}

.article-card--mode-accessoires {
  --article-accent-start: #c6563b;
  --article-accent-end: #ef8967;
  --article-glow: rgba(239, 137, 103, 0.2);
  --article-border: #e7b0a1;
}

.article-card--jeux-loisirs {
  --article-accent-start: #7e5be6;
  --article-accent-end: #a98af1;
  --article-glow: rgba(169, 138, 241, 0.2);
  --article-border: #cab7f1;
}

.article-card--meubles-rangement {
  --article-accent-start: #6b7d47;
  --article-accent-end: #9cb05f;
  --article-glow: rgba(156, 176, 95, 0.2);
  --article-border: #c8d2a7;
}

.article-card--lots-vide-maison {
  --article-accent-start: #a05d2f;
  --article-accent-end: #d38a55;
  --article-glow: rgba(211, 138, 85, 0.2);
  --article-border: #dfba99;
}

.article-category,
.admin-item span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-meta,
.detail-actions,
.admin-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.article-badge {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eef1ed;
  color: #324038;
  border: 1px solid #d9dfd9;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stock-badge {
  background: #e8f0ff;
  color: #244d86;
  border-color: #c7d7f4;
}

.status-available {
  background: #e6f4ed;
  color: #176044;
  border-color: #b9ddcc;
}

.status-reserved {
  background: #fff4d8;
  color: #80611a;
  border-color: #ead084;
}

.status-sold {
  background: #eeeef0;
  color: #676b73;
  border-color: #d2d4d8;
}

.featured {
  background: #fff0e8;
  color: #9f3e27;
  border-color: #edc0ae;
}

.draft {
  background: #edf0f6;
  color: #41506b;
  border-color: #c7cfdf;
}

.article-body h3 {
  margin: 8px 0;
  font-size: 1.18rem;
}

.article-price {
  display: block;
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 1.05rem;
}

.article-body p,
.admin-header p,
.admin-item p,
.empty-state span {
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  min-height: 150px;
  padding: 24px;
  border: 1px dashed #cfc7b9;
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.contact-band {
  margin: 0 min(6vw, 76px) 72px;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 112, 91, 0.12), rgba(49, 95, 159, 0.08)),
    #ffffff;
  border: 1px solid #cbd8d4;
  animation: page-rise 620ms ease both;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
  box-shadow: 0 16px 38px rgba(31, 35, 40, 0.08);
}

.contact-band p:last-child {
  max-width: 760px;
  line-height: 1.65;
}

.catalog-filters {
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(5, minmax(112px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
}

.filter-check {
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.filter-check input {
  width: 17px;
  height: 17px;
}

.filter-check b {
  min-width: 22px;
  height: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef5f2;
  color: var(--accent-dark);
  font-size: 0.75rem;
}

.category-page {
  min-height: 100vh;
}

.category-theme-classic { --category-primary: #b5682f; --category-secondary: #df9b58; --category-soft: #f6e8d8; --category-border: #dfba99; --category-ink: #693d22; }
.category-theme-arcade { --category-primary: #7a2ca6; --category-secondary: #12a9ba; --category-soft: #eee2f4; --category-border: #c8a5dc; --category-ink: #4d1c68; }
.category-theme-handheld { --category-primary: #5d6840; --category-secondary: #9baa62; --category-soft: #e8ead7; --category-border: #bcc49a; --category-ink: #3e472b; }
.category-theme-eightbit { --category-primary: #a83a32; --category-secondary: #d8b46a; --category-soft: #f2e8d4; --category-border: #d4b68a; --category-ink: #692923; }
.category-theme-synthwave { --category-primary: #bd337d; --category-secondary: #6455bd; --category-soft: #f2e0ed; --category-border: #d6add0; --category-ink: #70204c; }
.category-theme-crt { --category-primary: #24724d; --category-secondary: #5fa46f; --category-soft: #dcecdf; --category-border: #a8caad; --category-ink: #194d35; }
.category-theme-space16 { --category-primary: #3653a5; --category-secondary: #d15b85; --category-soft: #e4e5f3; --category-border: #b7bcdf; --category-ink: #263b77; }
.category-theme-forest { --category-primary: #2f6751; --category-secondary: #7ca081; --category-soft: #e2ece3; --category-border: #abc6ae; --category-ink: #244b3c; }
.category-theme-ocean { --category-primary: #356b88; --category-secondary: #77a8b9; --category-soft: #e1edf1; --category-border: #abcbd5; --category-ink: #294f64; }
.category-theme-terracotta { --category-primary: #ad563e; --category-secondary: #df8a69; --category-soft: #f5e2da; --category-border: #e0b0a0; --category-ink: #7e3d2e; }
.category-theme-mustard { --category-primary: #a97820; --category-secondary: #d9ad4f; --category-soft: #f5ebcf; --category-border: #dec98f; --category-ink: #6c511b; }
.category-theme-plum { --category-primary: #754c70; --category-secondary: #a77ba0; --category-soft: #eee2ec; --category-border: #cdb1c8; --category-ink: #573953; }
.category-theme-rose { --category-primary: #a96072; --category-secondary: #d799a8; --category-soft: #f4e4e8; --category-border: #dfbac3; --category-ink: #784553; }
.category-theme-slate { --category-primary: #53636b; --category-secondary: #87989e; --category-soft: #e5eaeb; --category-border: #bac5c8; --category-ink: #3c4a50; }
.category-theme-pop { --category-primary: #a83273; --category-secondary: #ef785f; --category-soft: #f6e2ec; --category-border: #dfb2ca; --category-ink: #70214d; }
.category-theme-retro { --category-primary: #a36f1d; --category-secondary: #c9593f; --category-soft: #f2e8cd; --category-border: #d8c083; --category-ink: #694b18; }
.category-theme-gaming { --category-primary: #633aa5; --category-secondary: #1aa5ae; --category-soft: #e8e2f2; --category-border: #bda9da; --category-ink: #422771; }
.category-theme-leisure { --category-primary: #34704f; --category-secondary: #e09538; --category-soft: #e5eee1; --category-border: #b4cda9; --category-ink: #28563e; }
.category-theme-tech { --category-primary: #285f82; --category-secondary: #42a6b4; --category-soft: #dfedf1; --category-border: #a9cbd5; --category-ink: #214d68; }
.category-theme-home { --category-primary: #a9563f; --category-secondary: #7c9b7b; --category-soft: #f2e5dc; --category-border: #d8b5a5; --category-ink: #733d30; }
.category-theme-fashion { --category-primary: #9e526e; --category-secondary: #d59aa5; --category-soft: #f3e5e9; --category-border: #ddb9c3; --category-ink: #703b50; }
.category-theme-furniture { --category-primary: #6a513a; --category-secondary: #89905f; --category-soft: #ebe5d9; --category-border: #c9b99e; --category-ink: #4b3a2b; }
.category-theme-clearance { --category-primary: #a56b28; --category-secondary: #547b8b; --category-soft: #f1e8d7; --category-border: #d6bf96; --category-ink: #6e491f; }
.category-theme-nature { --category-primary: #37684e; --category-secondary: #91a867; --category-soft: #e3ecdf; --category-border: #b5c9a8; --category-ink: #294e3b; }
.category-theme-elegant { --category-primary: #71486c; --category-secondary: #aa7b9d; --category-soft: #eee3ec; --category-border: #ccb2c7; --category-ink: #51354e; }

.category-card[class*="category-theme-"] {
  --tile-accent-start: var(--category-primary);
  --tile-accent-end: var(--category-secondary);
  --tile-accent-soft: color-mix(in srgb, var(--category-primary) 14%, transparent);
  --tile-accent-border: color-mix(in srgb, var(--category-primary) 24%, transparent);
  --tile-accent-text: var(--category-ink);
  --tile-glow: color-mix(in srgb, var(--category-secondary) 28%, transparent);
  --tile-border: var(--category-border);
}

.category-page[class*="category-theme-"] {
  background:
    radial-gradient(circle at 88% 8%, var(--category-soft), transparent 30%),
    linear-gradient(180deg, var(--category-soft) 0 340px, #f8f5ee 620px);
}

.category-page[class*="category-theme-"] .category-header {
  border-bottom: 1px solid var(--category-border);
}

.category-page[class*="category-theme-"] .category-header .kicker,
.category-page[class*="category-theme-"] .article-category,
.category-page[class*="category-theme-"] .article-price {
  color: var(--category-primary);
}

.category-page[class*="category-theme-"] .category-header h1 {
  color: var(--category-ink);
}

.category-page[class*="category-theme-"] .category-header .button {
  color: var(--category-ink);
  border-color: var(--category-border);
  background: color-mix(in srgb, var(--category-soft) 74%, white);
}

.category-page[class*="category-theme-"] .article-card {
  border-color: color-mix(in srgb, var(--category-border) 72%, var(--line));
}

.category-card:is(.category-theme-retro, .category-theme-gaming, .category-theme-leisure)::before {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--category-primary) 0 18px, var(--category-secondary) 18px 36px);
}

.category-card:is(.category-theme-retro, .category-theme-gaming, .category-theme-leisure) h3,
.category-page:is(.category-theme-retro, .category-theme-gaming, .category-theme-leisure) .category-header h1 {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.category-page:is(.category-theme-retro, .category-theme-gaming, .category-theme-leisure, .category-theme-tech) .category-header {
  border-bottom-width: 4px;
  border-bottom-style: solid;
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--category-secondary) 18%, transparent);
}

.category-page:is(.category-theme-retro, .category-theme-gaming, .category-theme-leisure, .category-theme-tech) .category-header .button {
  border-width: 2px;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--category-border);
}

.category-page:is(.category-theme-pop, .category-theme-gaming) .category-header h1 {
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--category-secondary) 28%, transparent);
}

.category-header {
  padding: 42px min(6vw, 76px) 10px;
  display: grid;
  gap: 24px;
}

.category-header .button {
  width: fit-content;
}

.category-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.detail-page {
  min-height: 100vh;
}

.detail-header {
  padding: 42px min(6vw, 76px) 24px;
  display: grid;
  gap: 24px;
}

.detail-header .button {
  width: fit-content;
}

.detail-header h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.detail-price {
  display: block;
  margin-top: 14px;
  color: var(--clay);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.detail-layout {
  padding: 0 min(6vw, 76px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 16px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}

.detail-thumbs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.detail-image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.detail-image img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  display: block;
  background: #fdfbf6;
}

.detail-info {
  position: sticky;
  top: 18px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.detail-info dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-info div {
  display: grid;
  gap: 4px;
}

.detail-info dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-info dd {
  margin: 0;
  font-weight: 750;
}

.contact-button {
  width: 100%;
  margin-top: 18px;
}

.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(32, 33, 36, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--clay);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 35, 40, 0.12);
}

.favorite-button.is-favorite,
.favorite-detail-button.is-favorite {
  background: #fff2ec;
  border-color: rgba(198, 86, 59, 0.32);
  color: var(--clay);
}

.favorite-button.is-favorite::before {
  content: "♥";
}

.favorite-button.is-favorite {
  font-size: 0;
}

.favorite-button.is-favorite::before {
  font-size: 1.15rem;
}

.favorite-detail-button {
  width: 100%;
  margin-top: 10px;
}

.article-card {
  position: relative;
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 2px;
}

.article-facts span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f1ea;
  color: #4d525a;
  font-size: 0.75rem;
  font-weight: 800;
}

.favorites-filter-active .article-card[hidden] {
  display: none;
}

.buyer-notes {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.buyer-notes li {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  display: grid;
  gap: 4px;
}

.buyer-notes strong,
.buyer-notes span {
  display: block;
}

.buyer-notes span {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-sale-history {
  margin: 0 min(6vw, 76px) 72px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.detail-sale-history h2 {
  margin: 0 0 14px;
}

.sale-history-list {
  display: grid;
  gap: 10px;
}

.sale-history-list article {
  padding: 12px;
  border-radius: 8px;
  background: #f7f6f2;
  display: grid;
  gap: 4px;
}

.sale-history-list span,
.sale-history-list small {
  color: var(--muted);
}

.inquiry-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.info-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.info-grid h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.service-grid,
.dashboard-alerts {
  display: grid;
  gap: 14px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.service-grid span {
  width: 38px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef5f2;
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 0.78rem;
}

.service-grid h2 {
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lot-detail {
  margin: 0 min(6vw, 76px) 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.lot-detail h2 {
  margin: 0 0 12px;
}

.lot-detail ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-alerts {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 16px 0;
}

.dashboard-alert {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 4px;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
}

.dashboard-alert.is-hot {
  border-color: #edc0ae;
  background: #fff8f4;
}

.dashboard-alert strong {
  color: var(--clay);
  font-size: 1.8rem;
  line-height: 1;
}

.dashboard-alert span {
  font-weight: 850;
}

.dashboard-alert small {
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  padding: 48px min(6vw, 76px);
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(100%, 440px);
  min-height: 0;
  display: grid;
  gap: 16px;
}

.auth-panel h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

label {
  display: grid;
  gap: 7px;
  color: #3f3b34;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7ded7;
  color: #79351f;
  font-weight: 750;
}

.secret-box {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f1eadc;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.admin-dashboard {
  padding: 42px min(6vw, 76px) 72px;
}

.admin-mode .page {
  margin-left: 0;
}

.management-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  height: 100vh;
  padding: 28px 22px;
  background: #fdfbf6;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
  z-index: 10;
}

.management-sidebar + .admin-dashboard {
  margin-left: 280px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-brand {
  min-width: 220px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.admin-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.management-tabs {
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  display: grid;
  gap: 8px;
}

.management-tabs a {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
  text-align: center;
}

.management-tabs a:hover,
.management-tabs a.active {
  border-color: #bad2c8;
  background: #e7efe9;
}

.management-sidebar-actions {
  flex-shrink: 0;
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.admin-subtabs {
  margin: -8px 0 24px;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-subtabs a {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-subtabs a:hover,
.admin-subtabs a.active {
  color: var(--accent-dark);
  background: #e7efe9;
}

.management-section {
  margin-bottom: 24px;
}

.notice-banner {
  max-width: 1180px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #b9ddcc;
  border-radius: 8px;
  background: #e6f4ed;
  color: #176044;
  font-weight: 750;
}

.sales-dashboard .admin-header {
  align-items: end;
}

.sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sales-filters {
  margin-bottom: 14px;
}

.sales-summary {
  margin-bottom: 16px;
}

.sales-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sales-method-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.sales-method-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sales-method-grid strong {
  font-size: 1.25rem;
}

.sales-method-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.sales-tables {
  display: grid;
  gap: 16px;
}

.sales-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sales-panel {
  gap: 12px;
}

.sales-table-wrap {
  overflow-x: auto;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sales-table thead th {
  position: sticky;
  top: 0;
  background: #f7f6f2;
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.sales-table th,
.sales-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ece7dd;
  vertical-align: top;
}

.sales-table tbody tr:hover {
  background: #fbfaf6;
}

.sales-table.compact {
  font-size: 0.9rem;
}

.sales-table td:last-child {
  color: var(--muted);
  max-width: 220px;
  overflow-wrap: anywhere;
}

.editor-panel {
  min-height: 0;
  display: grid;
  gap: 15px;
}

.editor-panel h2,
.admin-list h2 {
  margin: 0 0 10px;
}

.management-section > .editor-panel,
.management-section.admin-list,
.management-section > .editor-panel,
.management-section > form.editor-panel {
  max-width: 1180px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.admin-result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.dashboard-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-grid article {
  min-height: 112px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 25px rgba(44, 38, 30, 0.06);
  display: grid;
  align-content: center;
  gap: 6px;
}

.dashboard-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-grid strong {
  font-size: 1.65rem;
}

.vinted-badge {
  color: #0b4b3d;
  border-color: rgba(11, 75, 61, 0.18);
  background: rgba(72, 199, 184, 0.16);
}

.export-panel,
.activity-list {
  max-width: 1180px;
  margin-top: 16px;
}

.activity-list article {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.activity-list article span,
.activity-list article small {
  color: var(--muted);
}

.radio-group {
  display: grid;
  gap: 10px;
}

.radio-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.radio-row input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.radio-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.category-create {
  display: grid;
  gap: 12px;
}

.user-create {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.category-editor-list {
  display: grid;
  gap: 12px;
}

.user-editor-list {
  display: grid;
  gap: 12px;
}

.category-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.category-editor form:first-child {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.user-editor {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.user-summary {
  display: grid;
  gap: 4px;
  align-self: center;
}

.user-summary span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.user-editor form:first-of-type {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, auto) auto;
  gap: 12px;
  align-items: end;
}

.checkbox-row {
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-item {
  min-height: 0;
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.bulk-check {
  display: grid;
  place-items: center;
}

.bulk-check input {
  width: 18px;
  min-height: 18px;
}

.bulk-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bulk-panel select {
  max-width: 220px;
}

.bulk-edit-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-block: 28px 80px;
}

.bulk-edit-form,
.bulk-edit-card {
  display: grid;
  gap: 18px;
}

.bulk-edit-card {
  padding: 22px;
  border: 1px solid #d8cdbb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(45 35 20 / 8%);
}

.bulk-edit-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bulk-edit-heading img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.bulk-edit-heading div {
  display: grid;
  gap: 4px;
}

.bulk-edit-heading span {
  color: #786d5e;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bulk-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bulk-edit-flags,
.bulk-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-edit-actions {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid #d8cdbb;
  border-radius: 14px;
  background: rgb(255 252 247 / 94%);
  box-shadow: 0 8px 30px rgb(45 35 20 / 15%);
  backdrop-filter: blur(10px);
}

@media (max-width: 800px) {
  .bulk-edit-grid { grid-template-columns: 1fr; }
  .bulk-edit-card { padding: 16px; }
  .bulk-edit-actions .button { flex: 1; }
}

.pos-panel {
  gap: 12px;
}

.management-section:has(.pos-panel) { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); gap: 18px; align-items: start; }
.pos-cart { position: sticky; top: 20px; display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 38px rgb(45 35 20 / 10%); }
.pos-cart-head, .pos-cart-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pos-cart-head h2 { margin: 2px 0 0; }
.pos-cart-head > span { color: var(--muted); }
.pos-cart-lines { display: grid; gap: 8px; max-height: 48vh; overflow: auto; }
.pos-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 110px auto 38px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pos-cart-line div { min-width: 0; }
.pos-cart-line strong, .pos-cart-line small { display: block; }
.pos-cart-line small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-cart-line label { font-size: .72rem; }
.pos-cart-line input { padding: 7px; }
.pos-cart-line .button { min-width: 36px; padding: 7px; }
.pos-cart-total { padding-top: 14px; border-top: 2px solid var(--ink); font-size: 1.25rem; }
.pos-cart-total strong { font-size: 1.55rem; }
.pos-cart form { display: grid; gap: 10px; }
.pos-add-button { align-self: center; }

.till-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.till-summary > div { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.till-summary span { color: var(--muted); font-size: .82rem; }
.till-summary strong { font-size: 1.18rem; }
.till-summary .is-total { color: #fff; background: var(--ink); }
.till-summary .is-total span { color: rgba(255,255,255,.72); }
.till-summary form { grid-column: 1 / -1; display: flex; align-items: end; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.till-summary form label { flex: 1; max-width: 240px; }
.till-variance { margin-left: auto; padding: 10px 13px; border-radius: 8px; background: #e5f2e8; color: #1d6334; }
.till-variance.is-alert { background: #ffe4dd; color: #9d301d; }
.till-close-panel { grid-column: 1 / -1; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.till-close-panel summary { cursor: pointer; font-weight: 800; }
.till-close-panel form { margin-top: 12px; }
.till-closure-history { grid-column: 1 / -1; display: grid; gap: 7px; }
.till-closure-history > span { color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.till-closure-history a { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 11px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.till-operations { grid-column: 1 / -1; position: relative; border: 1px solid var(--cash-line, var(--line)); border-radius: 10px; background: #fff; }
.till-operations > summary { cursor: pointer; padding: 11px 14px; color: var(--cash-navy, var(--ink)); font-weight: 850; }
.till-operations > summary small { margin-left: 8px; color: var(--muted); font-weight: 650; }
.till-operations-content { display: grid; gap: 10px; padding: 0 12px 12px; }

/* Caisse professionnelle */
.module-cash-shell {
  --cash-navy: #17324d;
  --cash-blue: #286a91;
  --cash-teal: #17806d;
  --cash-orange: #d87332;
  --cash-red: #b94b4b;
  --cash-mist: #edf4f7;
  --cash-line: #d5e1e7;
}

.module-cash-shell .admin-header {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  color: #fff;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(125deg, var(--cash-navy), #245775 68%, #2b7d86);
  box-shadow: 0 18px 40px rgb(23 50 77 / 20%);
}

.module-cash-shell .admin-header::after {
  content: "€";
  position: absolute;
  right: 28px;
  top: 50%;
  translate: 0 -50%;
  color: rgb(255 255 255 / 10%);
  font: 900 8rem/1 var(--font-display);
}

.module-cash-shell .admin-header .kicker,
.module-cash-shell .admin-header p {
  color: rgb(255 255 255 / 78%);
}

.module-cash-shell .admin-header h1 {
  color: #fff;
}

.cash-kpis {
  gap: 13px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.till-summary .cash-kpi {
  position: relative;
  gap: 7px;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--cash-line);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgb(23 50 77 / 7%);
}

.cash-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--cash-blue);
}

.cash-kpi--income::before { background: var(--cash-teal); }
.cash-kpi--expense::before { background: var(--cash-orange); }
.cash-kpi--expected::before { background: #6bc5b4; }

.till-summary .cash-kpi span {
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.till-summary .cash-kpi strong {
  margin-top: auto;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.till-summary .cash-kpi small {
  color: #70818d;
  font-size: .77rem;
}

.till-summary .cash-kpi.is-total {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cash-navy), #245b73);
}

.till-summary .cash-kpi.is-total small {
  color: rgb(255 255 255 / 67%);
}

.module-cash-shell .management-section:has(.pos-panel) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.module-cash-shell .pos-panel {
  gap: 16px;
  min-width: 0;
}

.pos-search-panel {
  padding: 16px;
  border: 1px solid var(--cash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(23 50 77 / 7%);
}

.pos-search-panel input {
  min-height: 52px;
  border-color: #a9bfca;
  background: var(--cash-mist);
  font-size: 1.05rem;
  font-weight: 700;
}

.module-cash-shell .pos-item {
  border-color: var(--cash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(23 50 77 / 6%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.module-cash-shell .pos-item:hover {
  transform: translateY(-2px);
  border-color: #94b8c8;
  box-shadow: 0 14px 30px rgb(23 50 77 / 11%);
}

.module-cash-shell .pos-add-button {
  border-color: var(--cash-blue);
  background: var(--cash-blue);
}

.module-cash-shell .pos-cart {
  gap: 15px;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid #bed0d9;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
  box-shadow: 0 22px 52px rgb(23 50 77 / 16%);
}

.module-cash-shell .pos-basket {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bed0d9;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
  box-shadow: 0 12px 32px rgb(23 50 77 / 10%);
}

.module-cash-shell .pos-checkout-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--cash-line);
}

.module-cash-shell .pos-checkout-head h2 {
  margin: 2px 0 0;
  color: var(--cash-navy);
  font-size: 1.25rem;
}

.module-cash-shell .pos-checkout-head > strong {
  flex: 0 0 auto;
  color: var(--cash-teal);
  font-size: 1.2rem;
}

.pos-till-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--cash-line);
  border-radius: 12px;
  background: #fff;
}

.pos-till-strip > span {
  display: grid;
  gap: 1px;
  padding-left: 10px;
  border-left: 4px solid var(--cash-red);
}

.pos-till-strip > span.is-open { border-left-color: var(--cash-teal); }
.pos-till-strip small { color: var(--muted); font-size: .75rem; }
.pos-scan-status { display: block; margin-top: 4px; color: var(--cash-teal); font-size: .72rem; font-weight: 700; }

.pos-vinted-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  padding: 16px 18px;
  color: #153f37;
  border: 2px solid #55a995;
  border-radius: 12px;
  background: #dff5ef;
  box-shadow: 0 4px 0 rgb(31 105 88 / 15%);
}

.pos-vinted-alert > div {
  display: grid;
  gap: 3px;
}

.pos-vinted-alert strong {
  font-size: 1.05rem;
}

.pos-vinted-alert span {
  font-size: .86rem;
  line-height: 1.4;
}

.pos-customer-compact {
  border: 1px solid var(--cash-line);
  border-radius: 12px;
  background: var(--cash-mist);
}

.pos-customer-compact > summary {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

.pos-customer-compact > summary::-webkit-details-marker { display: none; }
.pos-customer-compact > summary > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 8px; background: var(--cash-blue); font-size: .7rem; font-weight: 900; }
.pos-customer-compact > summary > div { display: grid; }
.pos-customer-compact > summary small { color: var(--muted); font-size: .7rem; }
.pos-customer-compact .pos-customer-field { margin: 0 9px 9px; padding: 9px; grid-template-columns: 1fr 1fr; }
.pos-note-compact { border: 1px solid var(--cash-line); border-radius: 10px; background: #fff; }
.pos-note-compact > summary { padding: 8px 10px; cursor: pointer; color: var(--muted); font-size: .78rem; font-weight: 800; }
.pos-note-compact label { padding: 0 9px 9px; }

.module-cash-shell .pos-cart-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cash-line);
}

.module-cash-shell .pos-cart-head h2 {
  color: var(--cash-navy);
  font-size: 1.65rem;
}

.pos-count-badge {
  padding: 7px 11px;
  color: var(--cash-blue) !important;
  border-radius: 999px;
  background: #e3f0f5;
  font-size: .78rem;
  font-weight: 850;
}

.module-cash-shell .pos-cart-lines {
  min-height: 112px;
  padding-right: 4px;
}

.module-cash-shell .pos-cart-line {
  padding: 12px 0;
}

.module-cash-shell .pos-cart-line > strong {
  color: var(--cash-navy);
}

.module-cash-shell .pos-cart-total {
  padding: 17px 16px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--cash-navy);
}

.module-cash-shell .pos-cart-total strong {
  color: #fff;
  font-size: 1.8rem;
}

@media (min-width: 721px) {
  .module-cash-shell {
    width: calc(100% - 24px);
    height: 100dvh;
    max-width: 1480px;
    padding: 8px 0 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .module-cash-shell .portal-header {
    flex: 0 0 auto;
    min-height: 54px;
    padding-bottom: 8px;
  }

  .module-cash-shell .brand-mark,
  .module-cash-shell .brand-mark img {
    width: 42px;
    height: 42px;
  }

  .module-cash-shell .admin-header {
    display: none;
  }

  .module-cash-shell > .notice-banner {
    flex: 0 0 auto;
    width: 100%;
    margin: 7px 0 0;
    padding: 8px 12px;
  }

  .module-cash-shell .till-summary {
    flex: 0 0 auto;
    margin: 8px 0;
  }

  .module-cash-shell .till-summary .cash-kpi {
    min-height: 66px;
    padding: 9px 12px;
  }

  .module-cash-shell .till-summary .cash-kpi span {
    font-size: .66rem;
  }

  .module-cash-shell .till-summary .cash-kpi strong {
    font-size: 1.12rem;
  }

  .module-cash-shell .till-summary .cash-kpi small {
    display: none;
  }

  .module-cash-shell .till-operations > summary {
    padding: 7px 12px;
    font-size: .82rem;
  }

  .module-cash-shell .till-operations-content {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    width: min(820px, calc(100vw - 24px));
    max-height: 72vh;
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--cash-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 60px rgb(23 50 77 / 24%);
  }

  .module-cash-shell .till-closed-state {
    align-items: center;
    margin: 8px 0;
    padding: 9px 14px;
  }

  .module-cash-shell .till-closed-state h2 {
    margin: 2px 0;
    font-size: 1.08rem;
  }

  .module-cash-shell .till-closed-state p:not(.kicker) {
    display: none;
  }

  .module-cash-shell .till-closed-state form {
    padding: 0;
    border: 0;
  }

  .module-cash-shell .till-closed-state input,
  .module-cash-shell .till-closed-state .button {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .module-cash-shell .management-section:has(.pos-panel) {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    align-items: stretch;
  }

  .module-cash-shell .pos-panel {
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    padding-right: 4px;
  }

  .module-cash-shell .pos-cart {
    position: static;
    top: auto;
    height: 100%;
    max-height: 100%;
    align-content: start;
    overflow: hidden;
    padding: 12px;
    gap: 6px;
  }

  .module-cash-shell .pos-cart-lines {
    max-height: 24vh;
  }

  .module-cash-shell .pos-basket .pos-cart-lines {
    max-height: 20vh;
  }

  .module-cash-shell .pos-checkout form { gap: 7px; }
  .module-cash-shell .pos-checkout-head { padding-bottom: 8px; }
  .module-cash-shell .checkout-section-title { margin-top: 0; padding-top: 7px; }
  .module-cash-shell .pos-payment-method { min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
  .module-cash-shell .cash-change-calculator { gap: 7px; padding: 10px; }
  .module-cash-shell .cash-change-grid { gap: 7px; }
  .module-cash-shell .cash-change-grid input { min-height: 38px; padding: 7px; }
  .module-cash-shell .cash-change-shortcuts button { min-height: 34px; padding: 5px; }
  .module-cash-shell .cash-change-result { padding: 8px 10px; }
  .module-cash-shell .pos-pay-button { min-height: 46px; padding: 9px 12px; }
}

.checkout-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--cash-line);
}

.checkout-section-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: var(--cash-blue);
  font-size: .72rem;
  font-weight: 900;
}

.checkout-section-title div {
  display: grid;
}

.checkout-section-title strong {
  color: var(--cash-navy);
}

.checkout-section-title small {
  color: #71818b;
  font-size: .75rem;
}

.pos-customer-field {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--cash-line);
  border-radius: 13px;
  background: var(--cash-mist);
}

.pos-customer-field legend {
  padding: 0 6px;
  color: var(--cash-blue);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pos-payment-method {
  min-height: 48px;
  color: var(--cash-navy);
  border: 1px solid #9eb7c2;
  background: #fff;
  font-weight: 800;
}

.cash-change-calculator {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #b9d6cd;
  border-radius: 14px;
  background: linear-gradient(145deg, #f0faf7, #e4f2ee);
}

.cash-change-calculator[hidden] {
  display: none;
}

.cash-change-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--cash-teal);
}

.cash-change-head > div {
  display: grid;
}

.cash-change-head span {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cash-change-head strong {
  color: #145b4e;
  font-size: 1.05rem;
}

.cash-change-head > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--cash-teal);
  font-size: 1rem;
}

.cash-change-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.cash-change-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgb(255 255 255 / 72%);
}

.cash-change-grid > div span {
  color: #57756c;
  font-size: .74rem;
}

.cash-change-grid > div strong {
  color: #153f37;
  font-size: 1.05rem;
}

.cash-change-grid input {
  min-height: 46px;
  border-color: #89b5a8;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 850;
}

.cash-change-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.cash-change-shortcuts button {
  min-height: 38px;
  padding: 6px 4px;
  color: #14614f;
  border: 1px solid #9ac5b9;
  border-radius: 9px;
  background: #fff;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.cash-change-shortcuts button:hover {
  color: #fff;
  border-color: var(--cash-teal);
  background: var(--cash-teal);
}

.cash-change-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: center;
  padding: 12px;
  color: #fff;
  border-radius: 11px;
  background: #55706a;
}

.cash-change-result strong {
  font-size: 1.25rem;
}

.cash-change-result small {
  grid-column: 1 / -1;
  color: rgb(255 255 255 / 76%);
}

.cash-change-result.is-ready {
  background: var(--cash-teal);
}

.pos-pay-button {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cash-teal), #209880);
  box-shadow: 0 12px 24px rgb(23 128 109 / 24%);
  font-size: 1rem;
}

.pos-pay-button strong {
  font-size: 1.15rem;
}

.pos-pay-button:not(:disabled):hover {
  background: linear-gradient(135deg, #126f5f, #18836f);
}

.buyback-shell .notice-banner { margin: 24px 0 0; }
.buyback-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 20px; padding-top: 32px; align-items: start; }
.buyback-form { display: grid; gap: 20px; }
.buyback-form h1 { margin: 4px 0 8px; }
.buyback-form fieldset { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.buyback-form legend { padding: 0 8px; font-weight: 800; }
.field-wide { grid-column: 1 / -1; }
.buyback-history { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.9); }
.buyback-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.buyback-record span, .buyback-record small { display: block; color: var(--muted); }
.buyback-record > div:nth-child(2) { text-align: right; }
.buyback-record details { grid-column: 1 / -1; }
.buyback-record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.buyback-record dl div { padding: 8px; background: var(--surface); }
.buyback-record dt { color: var(--muted); font-size: .78rem; }
.consignment-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.consignment-actions form { display: flex; align-items: end; gap: 8px; }
.business-record { width: min(760px, 100%); }
.business-record h3 { margin: 12px 0 0; }
.business-document-actions { width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); align-items: center; gap: 24px; padding: 24px; border: 1px solid #d8cdbb; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f7f1e7 100%); box-shadow: 0 18px 45px rgb(45 35 20 / 10%); }
.business-document-actions h1 { margin: 4px 0 8px; color: #26382f; }
.business-document-actions p { margin: 0; color: var(--muted); }
.document-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.document-action-grid .button { justify-content: center; text-align: center; }
.business-record-preview { border-top: 5px solid #496758; }
.business-record-preview .receipt-head { align-items: center; }
.business-record-preview .receipt-head img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.business-record-preview .receipt-head span { display: grid; gap: 3px; }
.business-email-panel { width: min(760px, 100%); flex-wrap: wrap; border-radius: 14px; box-shadow: 0 10px 25px rgb(45 35 20 / 6%); }
.business-email-panel small { flex-basis: 100%; color: var(--muted); }
.mixed-payment-panel { margin: 12px 0; padding: 14px; border: 1px solid #d4b57e; border-radius: 12px; background: #fff9ed; }
.mixed-payment-panel[hidden] { display: none; }
.till-closed-state { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 20px; border: 1px solid #d4b57e; border-radius: 14px; background: #fff8e9; }
.till-closed-state h2 { margin: 4px 0 6px; }
.till-closed-state p { margin: 0; color: var(--muted); }
.till-closed-state form { display: flex; align-items: end; gap: 9px; }
.mixed-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.receipt-refund-panel { width: min(760px, 100%); display: grid; gap: 16px; padding: 20px; border: 1px solid #e2b8ae; border-radius: 14px; background: #fff9f7; }
.receipt-refund-panel h2 { margin: 3px 0 6px; }
.receipt-refund-panel p { margin: 0; }
.refund-line-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.refund-line-grid label { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.refund-line-grid small { display: block; color: var(--muted); }
.credit-links { display: flex; flex-wrap: wrap; gap: 8px; }
.daily-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.daily-dashboard article { display: grid; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.daily-dashboard span, .daily-dashboard small { color: var(--muted); }
.daily-dashboard strong { color: #26382f; font-size: 1.35rem; }
.inventory-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; }
.inventory-panel { display: grid; gap: 16px; }
.inventory-live-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.inventory-live-summary article { display: grid; gap: 3px; padding: 12px; border-radius: 10px; background: #f3eee5; }
.inventory-live-summary span { color: var(--muted); }
.inventory-live-summary strong { font-size: 1.35rem; }
.inventory-results { display: grid; gap: 7px; max-height: 460px; overflow: auto; }
.inventory-count-row, .inventory-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.inventory-count-row div, .inventory-history-row div { display: grid; gap: 2px; }
.inventory-count-row small, .inventory-history-row span, .inventory-history-row small { color: var(--muted); }
.inventory-count-row input { width: 76px; }
.status-ok { color: #327052; }
.status-warning { color: #b34f35; }
.record-description { white-space: pre-wrap; padding: 12px; background: #faf7f0; border: 1px solid #e2d8c9; }
.signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.signature-grid div { min-height: 90px; padding-top: 8px; border-top: 1px solid #777; }
.stored-signature { width: 100%; max-height: 90px; object-fit: contain; }

@media (max-width: 720px) {
  .business-document-actions { grid-template-columns: 1fr; padding: 18px; }
  .document-action-grid { grid-template-columns: 1fr; }
  .business-email-panel { display: grid; align-items: stretch; }
  .mixed-payment-grid, .refund-line-grid, .daily-dashboard, .inventory-live-summary { grid-template-columns: 1fr; }
  .till-closed-state { grid-template-columns: 1fr; }
  .till-closed-state form { display: grid; }
  .inventory-layout { grid-template-columns: 1fr; }
  .inventory-count-row, .inventory-history-row { grid-template-columns: 1fr auto; }
}
.signature-capture { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f2; }
.signature-capture canvas { width: 100%; height: 150px; touch-action: none; border: 1px dashed #9a8f7d; border-radius: 8px; background: #fff; }
.consignment-item-form { position: relative; display: grid; gap: 12px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f2; }
.consignment-item-form > .danger { position: absolute; top: 10px; right: 10px; }
.compact-intro { padding-bottom: 22px; }
.customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgb(45 35 20 / 7%); }
.customer-card h2 { margin: 8px 0 4px; }
.customer-card p, .customer-card small { margin: 0; color: var(--muted); }
.customer-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.customer-card dl div { padding: 10px; border-radius: 8px; background: var(--surface); }
.customer-card dt { color: var(--muted); font-size: .75rem; }
.customer-card dd { margin: 3px 0 0; font-weight: 800; }
.customer-card[hidden] { display: none; }
.customer-card .status-pill { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .76rem; font-weight: 800; }
.customer-note { padding: 10px 12px; border-left: 3px solid var(--rust); background: var(--surface); white-space: pre-wrap; }
.customer-detail-shell { gap: 20px; }
.customer-detail-grid, .customer-admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.customer-summary-panel { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgb(45 35 20 / 7%); }
.customer-summary-panel > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.customer-timeline { display: grid; gap: 8px; }
.customer-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.customer-event div { display: grid; gap: 3px; }
.danger-panel { border-color: #c86c62; background: #fff8f7; }
.portal-alerts { margin-top: 26px; }
.portal-alerts h2 { margin-bottom: 10px; }
.portal-alert { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 7px; padding: 11px 14px; color: var(--ink); text-decoration: none; border: 1px solid #efc9b8; border-radius: 10px; background: #fff5ef; }
.portal-alert > strong { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #b8482f; }
.portal-alert small { color: var(--muted); }
.finance-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.finance-kpis { margin-top: 16px; }

.pos-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.pos-item img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.pos-item-main {
  min-width: 0;
}

.pos-item-main p {
  margin: 0;
}

.pos-sale-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.pos-sale-form label:last-of-type,
.pos-sale-form button {
  grid-column: 1 / -1;
}

.pos-sale-form button {
  width: fit-content;
}

.inquiry-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.inquiry-item span,
.inquiry-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.inquiry-item p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.barcode-list {
  gap: 12px;
}

.barcode-create-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.barcode-create-preview small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.product-lookup {
  padding: 14px;
  border: 1px solid rgba(35, 112, 91, 0.22);
  border-radius: 8px;
  background: #f3faf7;
  display: grid;
  gap: 12px;
}

.product-lookup h3,
.product-lookup p {
  margin: 0;
}

.product-lookup p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 500;
}

.product-lookup-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.product-lookup-result {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}

.product-lookup-result.success {
  border-color: rgba(35, 112, 91, 0.22);
  background: #eaf6f1;
  color: var(--accent-dark);
}

.product-lookup-result.error {
  border-color: rgba(198, 86, 59, 0.24);
  background: #f8e4dd;
  color: #79351f;
}

.barcode-print-controls label {
  max-width: 220px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.barcode-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: auto minmax(140px, 0.35fr) minmax(130px, 0.34fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.barcode-select {
  display: grid;
  place-items: center;
}

.barcode-select input {
  width: 18px;
  min-height: 18px;
}

.barcode-preview {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.barcode-svg {
  width: 100%;
  height: auto;
  display: block;
  fill: #101010;
  shape-rendering: crispEdges;
}

.barcode-svg .barcode-bg {
  fill: #fff;
}

.barcode-svg text {
  fill: #101010;
  font: 700 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1px;
}

.barcode-code,
.barcode-product,
.barcode-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.barcode-code strong,
.barcode-product strong,
.barcode-meta strong {
  margin: 0;
}

.barcode-code span,
.barcode-product span,
.barcode-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.barcode-meta {
  text-align: right;
}

.barcode-print-page {
  min-height: 100vh;
  padding: 24px;
  background: #f3efe6;
}

.print-toolbar {
  max-width: 1120px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.printer-choice {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.printer-choice > span {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.print-sheet {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.print-label {
  min-height: 136px;
  padding: 10px 12px;
  border: 1px dashed #9f9788;
  border-radius: 6px;
  background: #fff;
  display: grid;
  gap: 6px;
  align-content: center;
  break-inside: avoid;
}

.print-label-head,
.print-label-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.print-label-head {
  position: relative;
  align-items: start;
  justify-content: center;
  min-height: 2.55rem;
  padding-right: 58px;
}

.print-label-title {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

.print-label-price {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--clay);
  font-weight: 900;
  white-space: nowrap;
}

.print-label-foot {
  color: #5b554c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-category-group {
  display: grid;
  gap: 10px;
}

.admin-category-group h3 {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08rem;
}

.admin-category-group h3 span {
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e7efe9;
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.admin-category-items {
  display: grid;
  gap: 12px;
}

.admin-item img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item-main {
  min-width: 0;
}

.admin-item strong {
  display: block;
  margin: 5px 0;
}

.admin-item em {
  display: inline-flex;
  margin: 0;
  color: var(--clay);
  font-style: normal;
  font-weight: 850;
}

.admin-item p {
  margin: 0;
}

.admin-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.article-edit {
  margin-top: 12px;
}

.article-edit summary {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.article-edit form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.article-edit label:has(textarea),
.article-edit label:has(input[type="file"]),
.article-edit .checkbox-row,
.article-edit .photo-controls,
.article-edit button {
  grid-column: 1 / -1;
}

.quick-actions {
  margin-top: 12px;
  display: block;
}

.quick-actions details {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f5;
}

.quick-actions summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 850;
}

.quick-action-buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions .button {
  min-height: 36px;
  padding: 0 12px;
}

.photo-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.photo-control {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 7px;
}

.photo-control img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.photo-control span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: none;
}

.photo-control input {
  width: auto;
  min-height: 0;
}

.photo-rotate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.photo-rotate .button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.button.danger {
  border: 1px solid #e3b5a6;
  background: #fff3ef;
  color: #8a3b20;
}

@keyframes tile-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.35deg);
  }
}

@keyframes image-warmup {
  to {
    background-position-x: -120%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .article-card,
  .hero img {
    transform: none !important;
  }

  .article-media::before,
  .article-carousel::before {
    animation: none !important;
  }
}

@media (max-width: 920px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lot-detail ul {
    columns: 1;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 14px 18px;
    gap: 16px;
  }

  .category-nav {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
  }

  .sidebar-note {
    display: none;
  }

  .page {
    margin-left: 0;
  }

  .site-banner {
    margin-left: 0;
  }

  .site-banner img {
    height: clamp(120px, 26vw, 175px);
  }

  .hero {
    min-height: auto;
    padding: 28px 18px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero::before {
    inset: 18px;
  }

  .hero::after {
    left: 18px;
    right: auto;
    top: 18px;
    width: 150px;
  }

  .auth-page,
  .admin-dashboard {
    padding: 26px 18px 42px;
  }

  .category-header {
    padding: 24px 18px 6px;
    gap: 16px;
  }

  .detail-header {
    padding: 24px 18px 14px;
    gap: 16px;
  }

  .detail-layout {
    padding: 0 18px 48px;
    grid-template-columns: 1fr;
  }

  .detail-info {
    position: static;
  }

  .management-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 14px 18px;
    gap: 16px;
    overflow: visible;
  }

  .management-tabs {
    min-height: 0;
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .management-sidebar + .admin-dashboard {
    margin-left: 0;
  }

  .management-sidebar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-editor,
  .category-editor form:first-child,
  .user-create,
  .user-editor,
  .user-editor form:first-of-type,
  .barcode-create-preview,
  .product-lookup-row,
  .barcode-row,
  .pos-item,
  .pos-sale-form,
  .catalog-filters,
  .search-panel,
  .article-edit form {
    grid-template-columns: 1fr;
  }

  .barcode-meta {
    text-align: left;
  }

  .management-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-sale-form button {
    width: 100%;
  }

  .section {
    padding: 18px 18px 42px;
  }

  .contact-band {
    margin: 0 18px 42px;
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .service-grid,
  .dashboard-alerts {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .lot-detail {
    padding: 14px;
  }

  .lot-detail {
    margin: 0 12px 18px;
  }

  .catalog-filters {
    position: sticky;
    top: 0;
    z-index: 6;
    max-height: 72vh;
    overflow: auto;
    box-shadow: 0 12px 30px rgba(31, 35, 40, 0.12);
  }

  body {
    overflow-x: hidden;
  }

  body::before {
    background-size: 30px 30px;
    opacity: 0.35;
  }

  .sidebar {
    padding: 10px 12px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }

  .sidebar-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sidebar-search input {
    min-height: 38px;
  }

  .brand {
    align-items: center;
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-banner img {
    height: clamp(88px, 26vw, 125px);
  }

  .brand strong,
  .brand small {
    overflow-wrap: anywhere;
  }

  .category-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .category-nav p {
    display: none;
  }

  .category-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--line);
    scroll-snap-align: start;
  }

  .hero {
    padding: 20px 14px 22px;
    gap: 14px;
    animation: none;
    opacity: 1;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 8.7vw, 2.08rem);
    line-height: 1.02;
    color: #20201d;
  }

  .kicker {
    color: #9b4f31;
  }

  .intro {
    color: #57534b;
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 10px 0;
  }

  .hero img {
    aspect-ratio: 16 / 10;
    max-height: 34vh;
  }

  .hero-note {
    position: static;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .hero-highlights {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-highlights span {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .actions {
    gap: 8px;
    margin-top: 14px;
  }

  .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.92rem;
  }

  .admin-header,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
  }

  .management-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .management-sidebar-actions {
    grid-template-columns: 1fr;
  }

  .sales-columns {
    grid-template-columns: 1fr;
  }

  .sales-actions {
    width: 100%;
  }

  .admin-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .pos-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 14px 12px 32px;
    animation: none;
  }

  .section-heading {
    margin-bottom: 14px;
  }

  .section-heading > p:last-child {
    margin-top: 6px;
    line-height: 1.45;
  }

  .section-heading h2,
  .contact-band h2 {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .category-header,
  .detail-header {
    padding: 18px 12px 8px;
    gap: 12px;
  }

  .category-header h1,
  .detail-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

  .category-grid,
  .article-grid,
  .article-grid.image-compact,
  .article-grid.image-large {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-card,
  .article-body,
  .detail-info,
  .editor-panel,
  .auth-panel,
  .admin-item {
    padding: 13px;
  }

  .category-card {
    min-height: 0;
    padding: 15px 14px 14px;
  }

  .category-card h3 {
    margin: 12px 0 5px;
    font-size: 1.05rem;
  }

  .category-card p,
  .article-body p,
  .admin-item p,
  .empty-state span {
    line-height: 1.4;
  }

  .catalog-filters {
    margin-bottom: 16px;
    padding: 10px;
    gap: 8px;
  }

  label {
    gap: 5px;
    font-size: 0.9rem;
  }

  input,
  select,
  textarea {
    min-height: 39px;
    padding: 8px 10px;
  }

  .article-media,
  .article-carousel {
    aspect-ratio: 16 / 10;
  }

  .article-body h3 {
    margin: 6px 0;
    font-size: 1.04rem;
    line-height: 1.15;
  }

  .article-price {
    margin-bottom: 6px;
    font-size: 0.98rem;
  }

  .article-badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 0.66rem;
  }

  .sales-table {
    font-size: 0.84rem;
  }

  .detail-layout {
    padding: 0 12px 34px;
    gap: 14px;
  }

  .detail-gallery {
    gap: 10px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 7px;
  }

  .detail-image img {
    max-height: 58vh;
  }

  .detail-info dl {
    gap: 10px;
  }

  .detail-price {
    margin-top: 10px;
    font-size: 1.24rem;
  }

  .contact-band {
    margin: 0 12px 32px;
    padding: 14px;
    animation: none;
  }

  .article-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .admin-dashboard {
    padding: 18px 12px 34px;
  }

  .admin-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .admin-header h1 {
    font-size: 1.85rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-grid article {
    min-height: 88px;
    padding: 12px;
  }

  .dashboard-grid strong {
    font-size: 1.35rem;
  }

  .admin-item {
    gap: 10px;
  }

  .article-edit form {
    padding: 10px;
    gap: 9px;
  }
}

@media (max-width: 380px) {
  .hero h1,
  .category-header h1,
  .detail-header h1,
  .admin-header h1 {
    font-size: 1.9rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  @page barcode-label {
    size: 40mm 30mm;
    margin: 0;
  }

  body,
  body.admin-mode,
  .barcode-print-page {
    background: #fff;
  }

  body::before,
  .management-sidebar,
  .print-toolbar,
  .sidebar {
    display: none !important;
  }

  .sales-dashboard .admin-header {
    align-items: start;
    padding: 0 0 6mm;
  }

  .sales-actions,
  .sales-filters,
  .notice-banner {
    display: none !important;
  }

  .sales-dashboard {
    padding: 0;
  }

  .sales-dashboard .management-section {
    margin: 0;
  }

  .sales-summary {
    grid-template-columns: repeat(4, 1fr);
    gap: 4mm;
  }

  .sales-method-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
  }

  .sales-method-grid article,
  .sales-panel {
    border: 0.3mm solid #cfc7b8;
    box-shadow: none;
  }

  .sales-columns {
    grid-template-columns: 1fr;
  }

  .sales-table {
    font-size: 8.5pt;
  }

  .sales-table thead th {
    position: static;
    background: #fff;
  }

  .sales-table th,
  .sales-table td {
    padding: 1.8mm 1.5mm;
  }

  .barcode-print-page {
    page: barcode-label;
    width: 40mm;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  body.barcode-print-document {
    page: barcode-label;
    width: 40mm;
    min-width: 40mm;
    max-width: 40mm;
    margin: 0;
    overflow: visible;
  }

  .print-sheet {
    width: 40mm;
    max-width: 40mm;
    margin: 0;
    display: block;
  }

  .print-label {
    box-sizing: border-box;
    width: 40mm;
    height: 30mm;
    min-height: 0;
    max-height: 30mm;
    padding: 1.2mm 1.5mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 0.7mm;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
  }

  .print-label:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .print-label-head {
    min-height: 4.5mm;
    padding-right: 0;
  }

  .print-label-title {
    font-size: 6pt;
    line-height: 1.05;
  }

  .print-label-price {
    font-size: 7.5pt;
  }

  .barcode-svg {
    width: 100%;
    height: 20mm;
    max-height: 20mm;
  }

  .print-label-foot {
    justify-content: space-between;
    gap: 1mm;
    font-size: 5pt;
    line-height: 1;
    white-space: nowrap;
  }

  .print-label-foot .print-label-price {
    position: static;
    position: relative;
    bottom: .6mm;
    font-size: 9pt;
    line-height: 1;
  }

  .print-label-foot span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* Portail professionnel */
.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(29, 39, 35, .12);
}

.portal-account,
.portal-account > span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-account > span {
  align-items: flex-end;
  flex-direction: column;
  gap: 1px;
}

.portal-account small { color: var(--muted); }

.portal-intro { padding: clamp(46px, 7vw, 86px) 0 34px; }
.portal-intro h1 { max-width: 760px; margin: 8px 0 12px; font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: .98; }
.portal-intro > p:last-child { color: var(--muted); font-size: 1.08rem; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(29,39,35,.11);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(24,39,31,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.portal-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -74px;
  top: -74px;
  border-radius: 50%;
  background: var(--accent, #dfe9df);
  opacity: .48;
}

.portal-card:hover { transform: translateY(-4px); border-color: rgba(29,39,35,.25); box-shadow: 0 24px 55px rgba(24,39,31,.13); }
.portal-card--caisse { --accent: #f3cf7a; }
.portal-card--rachat { --accent: #d9b8a8; }
.portal-card--depot { --accent: #a9c9c2; }
.portal-card-number { width: fit-content; padding: 7px 11px; border-radius: 999px; background: rgba(29,39,35,.08); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-card-copy { display: grid; gap: 10px; max-width: 430px; }
.portal-card-copy strong { font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.02; }
.portal-card-copy small { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.portal-card-action { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.portal-card-action b { font-size: 1.5rem; }
.portal-footer { display: flex; justify-content: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: .88rem; }
.module-shell .portal-header { margin-bottom: 70px; }
.module-empty { max-width: 680px; margin: 0 auto; padding: 60px; text-align: center; background: rgba(255,255,255,.88); border: 1px solid rgba(29,39,35,.11); border-radius: 26px; box-shadow: 0 18px 45px rgba(24,39,31,.08); }
.module-empty h1 { margin: 18px 0 12px; font-size: clamp(2rem, 5vw, 3.6rem); }
.module-empty p { color: var(--muted); line-height: 1.6; }
.module-empty .button { margin-top: 18px; }

/* Caisse retro professionnelle */
.module-cash-shell {
  --cash-navy: #263d32;
  --cash-blue: #8a4035;
  --cash-teal: #356b52;
  --cash-orange: #b78332;
  --cash-red: #963f35;
  --cash-mist: #f3ead8;
  --cash-line: #c9b994;
  color: #302d27;
  background:
    radial-gradient(circle at 12% 8%, rgb(255 250 237 / 72%), transparent 32%),
    linear-gradient(135deg, #eee5d3 0%, #e5dac4 100%);
}

.module-cash-shell .portal-header {
  padding-right: 10px;
  padding-left: 10px;
  border: 1px solid #b8a77f;
  border-radius: 10px;
  background: #f8f0df;
  box-shadow: 0 3px 0 #9d8a61;
}

.module-cash-shell .brand-mark {
  border: 2px solid #9d7a38;
  border-radius: 8px;
  background: #d4ad59;
  box-shadow: inset 0 0 0 3px #f1d996;
}

.module-cash-shell .brand strong,
.module-cash-shell .portal-account b {
  color: #263d32;
  letter-spacing: .02em;
}

.module-cash-shell .button {
  border-color: #6e332c;
  border-radius: 7px;
}

.module-cash-shell .button.primary,
.module-cash-shell .pos-add-button {
  color: #fffaf0;
  border-color: #6e332c;
  background: #8a4035;
  box-shadow: 0 3px 0 #5e2c27;
}

.module-cash-shell .button.secondary {
  color: #343128;
  border-color: #a9966c;
  background: #f8f0df;
  box-shadow: 0 2px 0 #b7a47b;
}

.module-cash-shell .button:hover {
  translate: 0 -1px;
  filter: saturate(1.08);
}

.module-cash-shell .pos-till-strip {
  border: 2px solid #ae9a6d;
  border-radius: 8px;
  background: #f7eedc;
  box-shadow: inset 0 0 0 2px #fffaf0, 0 3px 0 #aa976c;
}

.module-cash-shell .pos-till-strip > span {
  border-left-color: #963f35;
}

.module-cash-shell .pos-till-strip > span.is-open {
  border-left-color: #356b52;
}

.module-cash-shell .pos-search-panel {
  border: 2px solid #9d8a61;
  border-radius: 9px;
  background: #d6c49d;
  box-shadow: inset 0 0 0 3px #eee1c5, 0 4px 0 #9f8b60;
}

.module-cash-shell .pos-search-panel label {
  color: #39342a;
  letter-spacing: .02em;
}

.module-cash-shell .pos-search-panel input,
.module-cash-shell input,
.module-cash-shell select {
  color: #292c27;
  border-color: #9e8d68;
  border-radius: 6px;
  background: #fffaf0;
}

.module-cash-shell .pos-scan-status {
  color: #315d49;
}

.module-cash-shell .pos-basket,
.module-cash-shell .pos-cart {
  border: 2px solid #6f6a50;
  border-radius: 10px;
  background: #fbf3e2;
  box-shadow: 7px 7px 0 rgb(72 61 42 / 18%);
}

.module-cash-shell .pos-basket {
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgb(91 105 78 / 8%) 28px),
    #fffaf0;
}

.module-cash-shell .pos-cart-head,
.module-cash-shell .pos-checkout-head {
  border-bottom: 2px dashed #b7a67e;
}

.module-cash-shell .pos-cart-head h2,
.module-cash-shell .pos-checkout-head h2 {
  color: #263d32;
  letter-spacing: .01em;
}

.module-cash-shell .kicker {
  color: #8a4035;
  letter-spacing: .14em;
}

.module-cash-shell .pos-count-badge {
  color: #fff8e9 !important;
  border: 1px solid #6c332c;
  background: #8a4035;
}

.module-cash-shell .pos-cart-total {
  border: 2px solid #1f3029;
  border-radius: 7px;
  background: #263d32;
  box-shadow: inset 0 0 0 2px #496152, 0 3px 0 #17231e;
}

.module-cash-shell .pos-checkout-head > strong {
  color: #8a4035;
}

.module-cash-shell .pos-customer-compact,
.module-cash-shell .pos-note-compact {
  border-color: #b4a176;
  border-radius: 7px;
  background: #efe3c9;
}

.module-cash-shell .pos-customer-compact > summary > span {
  border-radius: 50%;
  background: #8a4035;
}

.module-cash-shell .pos-payment-method {
  border-width: 2px;
  border-color: #356b52;
  background: #fffaf0;
}

.module-cash-shell .cash-change-calculator {
  border: 2px solid #6f8b72;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 36%), transparent),
    #dce5d4;
  box-shadow: inset 0 0 0 2px #f5f2df;
}

.module-cash-shell .cash-change-head,
.module-cash-shell .cash-change-head strong {
  color: #263d32;
}

.module-cash-shell .cash-change-head > span {
  color: #fff8e9;
  background: #b78332;
}

.module-cash-shell .cash-change-shortcuts button {
  color: #3d3527;
  border-color: #a78547;
  border-radius: 5px;
  background: #f7e5b7;
}

.module-cash-shell .cash-change-shortcuts button:hover {
  color: #fffaf0;
  background: #8a4035;
}

.module-cash-shell .cash-change-result,
.module-cash-shell .cash-change-result.is-ready {
  color: #fffaf0;
  border: 2px solid #1f3029;
  border-radius: 7px;
  background: #356b52;
}

.module-cash-shell .pos-item {
  border: 1px solid #b8a982;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 3px 0 #c6b791;
}

@media (min-width: 721px) {
  .module-cash-shell .pos-cart { padding: 8px; gap: 4px; }
  .module-cash-shell .pos-checkout-head { padding-bottom: 4px; }
  .module-cash-shell .cash-change-calculator { padding: 8px; }
}

@media (min-width: 1051px) {
  .module-cash-shell .pos-cart {
    max-height: calc(100dvh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 721px) and (max-width: 1050px) {
  .module-cash-shell .management-section:has(.pos-panel) {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-cash-shell .pos-cart {
    position: static;
    width: 100%;
    max-height: none;
    padding: 18px;
  }

  .module-cash-shell .pos-search-panel {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .module-cash-shell .pos-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }
}

@media (max-width: 720px) {
  .till-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .till-summary form { display: grid; }
  .till-variance { margin-left: 0; }
  .buyback-layout { grid-template-columns: 1fr; }
  .buyback-history { grid-row: 2; }
  .field-wide { grid-column: auto; }
  .customer-grid, .finance-tables { grid-template-columns: 1fr; }
  .customer-card dl { grid-template-columns: 1fr 1fr; }
  .customer-detail-grid, .customer-admin-grid { grid-template-columns: 1fr; }
  .customer-event { grid-template-columns: 1fr; gap: 6px; }
  .portal-alert { grid-template-columns: 42px 1fr; }
  .portal-alert small { grid-column: 2; }
  .pos-cart .button, .pos-add-button, .buyback-form > .button.primary { min-height: 52px; font-size: 1rem; }
  .management-section:has(.pos-panel) { grid-template-columns: 1fr; }
  .pos-cart { position: static; grid-row: 1; }
  .pos-cart-line { grid-template-columns: minmax(0, 1fr) 96px 38px; }
  .pos-cart-line > div { grid-column: 1 / -1; }
  .pos-cart-line > strong { grid-column: 1 / 3; }
  .pos-cart-line > .button { grid-column: 3; grid-row: 2; }
  .receipt-email-form { display: grid; }
  .portal-shell { width: min(100% - 24px, 1180px); padding-top: 14px; }
  .portal-header { align-items: flex-start; }
  .portal-account > span { display: none; }
  .portal-intro { padding: 38px 2px 24px; }
  .portal-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-card { min-height: 205px; padding: 22px; border-radius: 19px; }
  .module-shell .portal-header { margin-bottom: 32px; }
  .module-empty { padding: 38px 22px; }
  .module-cash-shell .admin-header { padding: 22px; border-radius: 16px; }
  .module-cash-shell .admin-header::after { right: 10px; font-size: 5rem; }
  .module-cash-shell .management-section:has(.pos-panel) { grid-template-columns: 1fr; gap: 14px; }
  .module-cash-shell .pos-cart { position: static; grid-row: 1; padding: 17px; border-radius: 16px; }
  .module-cash-shell .pos-cart-lines { max-height: none; }
  .module-cash-shell .pos-cart-total { padding: 14px; }
  .module-cash-shell .pos-till-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .module-cash-shell .pos-vinted-alert {
    align-items: stretch;
    flex-direction: column;
  }
  .module-cash-shell .pos-vinted-alert .button {
    width: 100%;
  }
  .module-cash-shell .pos-till-strip .button,
  .module-cash-shell .pos-search-panel .button {
    width: 100%;
  }
  .module-cash-shell .pos-search-panel .button {
    min-height: 48px;
  }
  .module-cash-shell .pos-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .module-cash-shell .pos-item img {
    width: 58px;
    height: 58px;
  }
  .module-cash-shell .pos-item .pos-add-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .module-cash-shell .pos-checkout-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .module-cash-shell .pos-checkout-head > strong {
    font-size: 1.45rem;
  }
  .cash-change-grid { grid-template-columns: 1fr; }
  .cash-change-shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pos-search-panel { grid-template-columns: 1fr; }
  .pos-search-panel label { grid-column: 1 / -1; }
  .till-summary .cash-kpi { min-height: 108px; padding: 14px; }
}
