/* The Emporium — hall, houses, objects. Scoped so the studio pages stay as they are. */

.emporium-where {
  position: sticky;
  top: 4.6rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.65rem 1.5rem;
  background: rgba(10, 10, 12, 0.94);
  border-bottom: 1px solid #2a2a2e;
  color: #c9b89a;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.emporium-where p {
  margin: 0;
}

#emporium-root h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

.stall h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.emporium-where a {
  color: #d4af37;
}

.emporium-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 0.5rem;
}

.emporium-modes {
  display: flex;
  gap: 0.4rem;
}

.emporium-modes button,
.emporium-textbtn,
.carry-open {
  border: 1px solid #2a2a2e;
  background: transparent;
  color: #c9b89a;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.emporium-modes button[aria-pressed="true"],
.emporium-modes button:hover,
.emporium-textbtn:hover,
.carry-open:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.emporium-lead {
  max-width: 36rem;
  color: #c9b89a;
  line-height: 1.6;
}

.store-list {
  margin: 1.5rem 0 3rem;
}

.store {
  border-top: 1px solid #2a2a2e;
  padding: 2.4rem 0 0.5rem;
}

.store-head {
  margin-bottom: 1.25rem;
}

.store-tagline {
  margin: 0 0 0.35rem;
  color: #d4af37;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.store-plate {
  max-width: none;
  margin: 0 0 0.8rem;
  color: #c9b89a;
  line-height: 1.5;
}

.store-head h2 {
  font-size: 2.1rem;
  line-height: 1.1;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .product {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.carousel-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #2a2a2e;
  border-radius: 999px;
  background: transparent;
  color: #d4af37;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: #d4af37;
}

.product {
  display: block;
  border: 1px solid #2a2a2e;
  color: #f5f0e1;
  background: #101012;
}

.product:hover {
  border-color: #d4af37;
}

.product-figure {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: #141416;
  overflow: hidden;
}

.product-figure img,
.product-figure .stall-quiet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-figure img.is-contain,
.object-figure img.is-contain {
  object-fit: contain;
  background: #000;
}

.product-body {
  display: block;
  padding: 0.9rem 1rem 1rem;
}

.product-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.product-price,
.product-ship {
  display: block;
  color: #c9b89a;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.product-ship {
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dir-products {
  display: flex;
  flex-direction: column;
  padding: 0 0 0.75rem 8rem;
}

.dir-product {
  color: #c9b89a;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1c1c20;
}

.dir-product:hover {
  color: #d4af37;
}

.stall-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2rem 0 3rem;
}

.stall {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: stretch;
  border-top: 1px solid #2a2a2e;
  padding-top: 2rem;
}

.stall-figure {
  display: block;
  min-height: 280px;
  background: #121214;
  border: 1px solid #2a2a2e;
  position: relative;
  overflow: hidden;
}

.stall-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stall-quiet {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.16), transparent 42%),
    #121214;
}

.stall-meta {
  margin: 0 0 0.6rem;
  color: #d4af37;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stall h2,
.object-sheet h1,
.house-plate h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.stall-story,
.house-plate p,
.object-sheet p {
  color: #c9b89a;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.stall-ship,
.object-ship {
  color: #f5f0e1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.stall-actions,
.object-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
}

.stall-actions a,
.object-actions a,
.object-actions button,
.dir-house a {
  color: #d4af37;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ticket {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid #d4af37;
  color: #d4af37;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
}

body.emporium-market .product-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

body.emporium-market .store-head > p:not(.stall-meta):not(.stall-actions):not(.store-tagline):not(.store-plate) {
  display: none;
}

body.emporium-market .store {
  padding-top: 1.4rem;
}

body.emporium-market .stall-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

body.emporium-market .stall {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  border: 1px solid #2a2a2e;
  border-top: 1px solid #2a2a2e;
  padding: 0 0 1rem;
}

body.emporium-market .stall-figure {
  min-height: 220px;
  border: 0;
  border-bottom: 1px solid #2a2a2e;
}

body.emporium-market .stall-body {
  padding: 0 1rem;
}

.floor-plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.floor-wing {
  display: block;
  border: 1px solid #2a2a2e;
  padding: 1.1rem 1.15rem 1.2rem;
  min-height: 8rem;
  color: #f5f0e1;
}

.floor-wing:hover {
  border-color: #d4af37;
}

.floor-wing span {
  display: block;
  color: #c9b89a;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.dir-search {
  width: min(100%, 28rem);
  margin: 1.25rem 0 0.5rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2a2a2e;
  color: #f5f0e1;
  font: 400 1rem/1.4 Inter, system-ui, sans-serif;
  padding: 0.6rem 0;
}

.dir-search:focus {
  outline: none;
  border-bottom-color: #d4af37;
}

.dir-house {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid #2a2a2e;
  color: #f5f0e1;
}

.locked-door {
  display: block;
  margin: 2rem 0 1rem;
  padding: 1.25rem 1.3rem;
  border: 1px dashed #2a2a2e;
  color: #c9b89a;
}

.locked-door strong {
  display: block;
  color: #f5f0e1;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.house-plate {
  margin: 1.5rem 0 2rem;
}

.object-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2rem;
  margin: 1.5rem 0 3rem;
  align-items: start;
}

.object-figure {
  position: relative;
  min-height: 420px;
  background: #121214;
  border: 1px solid #2a2a2e;
}

.object-figure img,
.object-figure .stall-quiet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carry-panel {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 5.5rem;
  width: min(22rem, calc(100vw - 2rem));
  background: #121214;
  border: 1px solid #2a2a2e;
  padding: 1rem 1.1rem 1.15rem;
  color: #f5f0e1;
}

.carry-panel[hidden] {
  display: none;
}

.carry-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #2a2a2e;
  color: #f5f0e1;
  font-size: 0.9rem;
}

.carry-row button {
  border: 0;
  background: none;
  color: #c9b89a;
  cursor: pointer;
}

.emporium-where a:focus-visible,
.stall-actions a:focus-visible,
.object-actions a:focus-visible,
.floor-wing:focus-visible,
.emporium-modes button:focus-visible,
.carry-open:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .stall,
  .object-sheet,
  .product-list,
  body.emporium-market .product-list,
  body.emporium-market .stall-list,
  .dir-house {
    grid-template-columns: 1fr;
  }

  .product-list,
  body.emporium-market .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dir-products {
    padding-left: 0;
  }

  .stall-figure,
  .object-figure {
    min-height: 240px;
  }

  .dir-house a {
    justify-self: start;
  }
}
