/* Vitrina de Pixel Brand Lab */
.brand-showroom {
  --showroom-paper: #f2ede4;
  --showroom-ink: #26231f;
  --showroom-muted: #625b51;
  scroll-margin-top: 92px;
  padding: clamp(118px, 11vw, 158px) 0 clamp(48px, 6vw, 85px);
  background: var(--showroom-paper);
  color: var(--showroom-ink);
}
.brand-showroom h1 {
  margin: 0;
  font-size: clamp(40px, 5.7vw, 84px);
  font-weight: 550;
  line-height: .99;
  letter-spacing: -.065em;
}
.brand-showroom-intro {
  max-width: 42ch;
  margin: 14px 0 0;
  line-height: 1.55;
  color: var(--showroom-muted);
}
.brand-rail {
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #665b4c #e1d9cb;
}
.brand-rail-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, clamp(133px, 14.8vw, 218px));
  align-items: start;
  width: max-content;
  min-width: 100%;
  padding: 11px 14px 10px;
  background: radial-gradient(ellipse at 50% 14%, #fdfaf3, #e9e1d4 85%);
  border-radius: 14px;
}
.brand-rail-track::before {
  content: "";
  position: absolute;
  inset: 18px 10px auto;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(#71695d, #35312b 56%, #211f1b);
  box-shadow: 0 4px 9px #40322738;
}
.brand-rail-piece {
  --angle: -3deg;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-self: stretch;
  padding: 6px 3px 8px;
  gap: 8px;
  background: none;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  color: inherit;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
}
.brand-rail-piece:nth-child(even) { --angle: 3deg; }
.brand-rail-hanging {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: clamp(158px, 19vw, 245px);
  transform-origin: 50% 4px;
  transform: rotate(var(--angle));
}
.brand-rail-hook {
  position: relative;
  flex: 0 0 25px;
  z-index: 1;
  width: 14px;
  height: 25px;
  border: 2px solid #8c7756;
  border-right-color: transparent;
  border-bottom: 0;
  border-radius: 10px 9px 0 0;
}
.brand-rail-piece img {
  display: block;
  width: var(--product-width, 92%);
  flex: 1;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(6px 10px 7px #332c2245);
}
.brand-rail-piece[data-product="gorra"] { --product-width: 74%; }
.brand-rail-piece[data-product="termo"] { --product-width: 53%; }
.brand-rail-piece[data-product="libreta"] { --product-width: 65%; }
.brand-rail-piece[data-product="tote"] { --product-width: 80%; }
.brand-rail-piece[aria-pressed="true"] { background: #5d4a2413; }
.brand-rail-piece[aria-pressed="true"] .brand-rail-hanging { transform: rotate(0); }
.brand-rail-piece:focus-visible, .brand-rail-config :is(select,a):focus-visible {
  outline: 2px solid #665022;
  outline-offset: -2px;
}
@media (prefers-reduced-motion: no-preference) {
  .brand-rail-hanging { transition: transform .46s cubic-bezier(.2,.78,.25,1); }
  .brand-rail-piece:focus-visible .brand-rail-hanging { transform: rotate(0) scale(1.05); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand-rail-piece:hover .brand-rail-hanging { transform: rotate(calc(var(--angle) * -1.7)) scale(1.06); }
}
.brand-rail-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 18px;
  margin-top: 18px;
  padding: clamp(14px, 2vw, 23px);
  border: 1px solid #d6cbbb;
  border-radius: 14px;
  background: #fbf7ef;
}
.brand-rail-detail {
  align-self: center;
}
.brand-rail-detail strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.brand-rail-detail span, .brand-rail-config label {
  color: var(--showroom-muted);
  line-height: 1.45;
  font-size: 13px;
}
.brand-rail-config label { display: grid; gap: 4px; }
.brand-rail-config select, .brand-rail-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #b8ac99;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--showroom-ink);
  background: #fffcf6;
}
.brand-rail-quote {
  background: #282622;
  border-color: #282622;
  color: #fff;
  gap: 10px;
  font-weight: 750;
  text-align: center;
}
.brand-rail-quote:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.brand-rail-quote:hover { background: #494137; }
.brand-showroom-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .46fr);
  align-items: end;
  gap: 24px;
}
.brand-showroom h1 span { display: block; color: #735b3b; }
.brand-showroom-label {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 800;
  color: #665133;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.brand-rail-hook.percha::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 13px;
  top: 21px;
  left: 0;
  transform: translateX(-50%);
  background: #b29265;
  clip-path: polygon(50% 0, 100% 85%, 94% 100%, 50% 32%, 6% 100%, 0 85%);
}
.brand-rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.brand-rail-controls[hidden] { display: none; }
.brand-rail-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #b8ac99;
  background: #fffcf6;
  color: var(--showroom-ink);
  cursor: pointer;
  font-size: 19px;
}
.brand-rail-controls button[aria-disabled="true"] {
  opacity: .48;
  cursor: default;
}
.brand-rail:focus-visible, .brand-rail-controls button:focus-visible {
  outline: 2px solid #665022;
  outline-offset: 2px;
}
@media (max-width: 620px) {
  .brand-showroom-heading { grid-template-columns: 1fr; gap: 0; }
  .brand-rail-track { padding-inline: 10px; }
  .brand-rail-config { grid-template-columns: 1fr; gap: 12px; }
}
