:root {
  --studio: #f5ebe5;
  --paper: #fcfaf7;
  --type: #261f1c;
  --accent: #a64e36;
  --edge: #dcd5ce;
  --copy: DM, Arial, sans-serif;
}
body {
  background: var(--paper);
  color: var(--type);
}
[hidden] {
  display: none !important;
}
.studio-mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px var(--pad);
  min-height: 80px;
  border-bottom: 1px solid var(--edge);
  background: var(--paper);
}
.studio-logo {
  font:
    clamp(24px, 2.2vw, 38px) / 1 Georgia,
    serif;
  letter-spacing: -0.075em;
  display: inline-block;
  width: max-content;
  text-align: center;
}
.studio-logo span {
  display: block;
  font: 500 0.52rem/1 var(--copy);
  letter-spacing: 0.5em;
  margin: 7px 0 0 4px;
}
.view-nav,
.studio-tools {
  display: flex;
  align-items: center;
  gap: 25px;
}
.view-nav button {
  font-size: 0.87rem;
  padding: 10px 0;
  position: relative;
}
.view-nav button[aria-pressed="true"]:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-45%);
  background: var(--accent);
  border-radius: 50%;
}
.studio-tools {
  justify-self: end;
  gap: 16px;
}
.studio-tools .bagbtn {
  gap: 8px;
}
.studio-tools .bagbtn span {
  background: #302b28;
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.66rem;
  display: grid;
  place-items: center;
}
.runway {
  height: clamp(470px, calc(100svh - 237px), 750px);
  min-height: 460px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #d4c5bd;
  background: radial-gradient(
    ellipse at 49% 68%,
    #fff9f1 0%,
    #f5eae4 56%,
    #eeddd4 100%
  );
}
.runway-top {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  left: var(--pad);
  right: var(--pad);
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: start;
  pointer-events: none;
}
.runway-top > * {
  pointer-events: auto;
}
.micro {
  font: 600 0.64rem/1.3 var(--copy);
  letter-spacing: 0.19em;
}
.collection-title h1 {
  font: italic 400 clamp(66px, 6.2vw, 103px) / 0.92 var(--serif);
  letter-spacing: -0.055em;
  margin: 5px 0 0;
}
.display-toggle {
  display: inline-flex;
  border: 1px solid #c8bbb2;
  border-radius: 22px;
  background: #f8f1ea7d;
  padding: 3px;
}
.display-toggle button {
  padding: 7px 14px;
  font-size: 0.76rem;
  border-radius: 18px;
  line-height: 1.1;
}
.display-toggle button[aria-pressed="true"] {
  background: #352e29;
  color: #fffaf4;
}
.stage {
  position: absolute;
  inset: 0 0 46px;
  --drag: 0px;
  --spacing: clamp(140px, 19vw, 325px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  outline-offset: -4px;
}
.figure {
  --scale: 1;
  position: absolute;
  bottom: 0;
  left: 50%;
  height: calc(100% - 36px);
  width: min(30vw, 310px);
  border: none;
  padding: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  background: none;
  opacity: 1;
  transform-origin: center bottom;
  transform: translateX(calc(-50% + var(--pos) * var(--spacing) + var(--drag)))
    scale(var(--scale));
  transition:
    transform 0.48s cubic-bezier(0.2, 0.65, 0.18, 1),
    opacity 0.32s,
    filter 0.4s;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.figure[data-depth="1"] {
  --scale: 0.78;
  opacity: 0.91;
}
.figure[data-depth="2"] {
  --scale: 0.59;
  opacity: 0.72;
}
.figure[data-depth="off"] {
  --scale: 0.5;
  visibility: hidden;
  opacity: 0;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  pointer-events: none;
}
.figure:before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 13%;
  width: 74%;
  height: 12px;
  background: #75574439;
  border-radius: 50%;
  filter: blur(5px);
}
.figure.uncut img {
  object-fit: contain;
  max-height: 90%;
}
.stage[data-mode="prenda"] .figure {
  height: 61%;
  bottom: 12%;
}
.stage[data-mode="prenda"] .figure:before {
  bottom: -9%;
}
.stage.dragging,
.stage.dragging .figure {
  cursor: grabbing;
}
.stage.dragging .figure {
  transition: none;
}
.runway-arrow {
  position: absolute;
  z-index: 8;
  top: 55%;
  transform: translateY(-50%);
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #a99b91;
  border-radius: 50%;
  background: #f9f1e9b5;
}
.runway-arrow:hover {
  background: var(--paper);
}
.runway-arrow svg {
  width: 16px;
  height: 16px;
}
.runway-arrow.prev {
  left: 1.65vw;
}
.runway-arrow.next {
  right: 1.65vw;
}
.runway-foot {
  position: absolute;
  inset: auto var(--pad) 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  z-index: 8;
}
.counter,
.slide-hint {
  font-size: 0.7rem;
}
.counter {
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.counter span {
  font-size: 0.62rem;
}
.counter b {
  font-family: monospace;
  font-weight: 400;
}
.slide-hint {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slide-hint i {
  display: block;
  width: 25px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.slide-hint i:before,
.slide-hint i:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  top: -1px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.slide-hint i:before {
  left: 0;
  border-top: 0;
  border-right: 0;
}
.slide-hint i:after {
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
#marks {
  display: flex;
}
#marks button {
  padding: 9px 3px;
}
#marks span {
  display: block;
  border-radius: 3px;
  width: 11px;
  height: 3px;
  background: #b7aaa2;
  transition: width 0.2s;
}
#marks [aria-pressed="true"] span {
  width: 30px;
  background: var(--accent);
}
.look-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 130px;
  padding: 20px var(--pad);
  background: var(--paper);
}
.piece-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #68605a;
  font-size: 0.72rem;
}
.piece-kind > span {
  height: 11px;
  width: 1px;
  background: var(--edge);
}
.piece-kind i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sw);
}
.piece-name {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 0 4px;
}
.piece-name h2 {
  font-size: clamp(40px, 3.7vw, 63px);
  letter-spacing: -0.025em;
}
.round-detail {
  height: 24px;
  width: 24px;
  border: 1px solid #aaa199;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 18px/1 var(--copy);
}
.piece-price {
  font-size: 0.9rem;
}
.quick-shop {
  position: relative;
  display: flex;
  align-items: end;
  gap: 12px;
}
.size-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  gap: 30px;
}
.size-head b {
  font-size: 0.74rem;
}
.size-head .linkbtn {
  font-size: 0.68rem;
}
.quick-sizes {
  margin-right: clamp(4px, 1.5vw, 28px);
}
.quick-sizes [role="group"] {
  display: flex;
  gap: 5px;
}
.quick-size {
  min-width: 37px;
  height: 37px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  font-size: 0.82rem;
}
.quick-size[aria-pressed="true"] {
  border-color: var(--ink);
  background: #e8e1d8;
}
.runway-buy,
.runway-favorite {
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.runway-buy {
  background: #2c2623;
  color: var(--paper);
  padding: 0 27px;
  border-radius: 3px;
  font-size: 0.86rem;
}
.runway-buy:hover {
  background: #50433b;
}
.runway-buy svg {
  width: 16px;
  height: 16px;
}
.runway-favorite {
  width: 44px;
  border: 1px solid var(--edge);
  border-radius: 50%;
}
.is-saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.size-feedback {
  position: absolute;
  bottom: -19px;
  left: 0;
  color: var(--accent);
  font-size: 0.72rem;
}
.studio-footer {
  min-height: 54px;
  padding: 14px var(--pad);
  border-color: var(--edge);
  font-size: 0.73rem;
  color: #675f59;
}
.studio-footer > div {
  justify-content: center;
}
.studio-footer button,
.studio-footer a,
.studio-footer small {
  font-size: 0.72rem;
}
.catalog-room {
  min-height: calc(100svh - 134px);
  background: #1d1d1c;
  color: #f5f1e9;
  padding: 32px var(--pad) 52px;
}
.catalog-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 25px;
  border-bottom: 1px solid #494741;
}
.catalog-title .micro {
  color: #cabdaf;
}
.catalog-title h1 {
  font: clamp(54px, 5.5vw, 90px) / 1 var(--serif);
  letter-spacing: -0.035em;
  margin: 7px 0 0;
}
#catalog-count {
  font-size: 0.8rem;
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(130px, 14%) 1fr;
  gap: clamp(16px, 2.3vw, 40px);
  margin-top: 22px;
}
.catalog-filter h2 {
  font: 500 0.86rem/1.4 var(--copy);
  margin: 5px 0 13px;
  color: #ece5dc;
}
.catalog-filter .filters,
.filter-views {
  display: grid;
  gap: 5px;
  justify-items: start;
  border-bottom: 1px solid #4c4842;
  margin-bottom: 20px;
  padding: 0 0 18px;
}
.catalog-filter button {
  color: #bcb5ac;
  border: 0;
  border-radius: 0;
  padding: 5px 0;
  font-size: 0.86rem;
  background: none;
}
.catalog-filter button[aria-pressed="true"] {
  background: none;
  color: white;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.catalog-room .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 14px;
}
.catalog-room .card-photo {
  background: radial-gradient(ellipse at center, #3d3934, #2e2c29);
  aspect-ratio: 1.04;
  border: 1px solid #49453f;
}
.catalog-room .card-photo img {
  object-fit: contain;
  padding: 8% 12%;
}
.catalog-room .fav,
.catalog-room .add-small {
  background: #37332ecf;
  color: #eae5df;
  border: 1px solid #676159;
}
.catalog-room .fav.saved {
  color: #f2b696;
}
.catalog-room .fav.saved svg {
  fill: #f2b696;
}
.catalog-room .color {
  color: #b6afa6;
}
.catalog-room .card-info h3 {
  font-size: clamp(22px, 2vw, 32px);
}
.catalog-room .price {
  font-size: 0.76rem;
}
.catalog-room .card-info .row {
  align-items: baseline;
  flex-wrap: wrap;
}
.catalog-room .color .swatch {
  outline: 1px solid #bdb1a6;
}
.runway a:focus-visible,
.runway button:focus-visible {
  outline-offset: 1px;
}
@media (min-width: 1800px) {
  .figure {
    width: min(27vw, 380px);
  }
}
@media (max-width: 900px) {
  .studio-tools,
  .view-nav {
    gap: 15px;
  }
  .catalog-room .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-shop {
    gap: 8px;
  }
  .runway-buy {
    padding: 0 18px;
  }
  .runway {
    min-height: 450px;
  }
  .stage {
    --spacing: 22vw;
  }
  .figure {
    width: 31vw;
  }
}
@media (max-width: 640px) {
  .studio-mast {
    min-height: 64px;
    padding: 10px 14px;
    gap: 9px;
    grid-template-columns: 1fr auto auto;
  }
  .studio-logo {
    font-size: 25px;
  }
  .studio-logo span {
    font-size: 0.43rem;
    margin-top: 4px;
  }
  .view-nav {
    gap: 11px;
  }
  .view-nav button {
    font-size: 0.75rem;
  }
  .view-nav button[aria-pressed="true"]:before {
    display: none;
  }
  .view-nav button[aria-pressed="true"] {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .brand-nav,
  .studio-tools .nav-fav {
    display: none;
  }
  .studio-tools {
    gap: 3px;
  }
  .studio-tools .iconbtn,
  .studio-tools .bagbtn {
    padding: 4px;
  }
  .studio-tools .bagbtn {
    gap: 2px;
  }
  .studio-tools svg {
    width: 17px;
    height: 17px;
  }
  .studio-tools .bagbtn span {
    width: 15px;
    height: 15px;
    min-width: 15px;
    font-size: 0.56rem;
  }
  .runway {
    height: clamp(380px, calc(100svh - 280px), 650px);
    min-height: 0;
  }
  .runway-top {
    top: 17px;
    left: 18px;
    right: 18px;
  }
  .collection-title h1 {
    font-size: 52px;
  }
  .collection-title .micro {
    font-size: 0.55rem;
  }
  .display-toggle {
    padding: 2px;
  }
  .display-toggle button {
    font-size: 0.67rem;
    padding: 6px 9px;
  }
  .stage {
    inset: 53px 0 34px;
    --spacing: 42vw;
  }
  .figure {
    height: calc(100% - 15px);
    width: 57vw;
  }
  .figure[data-depth="1"] {
    --scale: 0.69;
    opacity: 0.84;
  }
  .figure[data-depth="2"] {
    --scale: 0.52;
  }
  .runway-arrow {
    width: 29px;
    height: 29px;
    top: 62%;
    background: #fbf4ece6;
  }
  .runway-arrow.prev {
    left: 7px;
  }
  .runway-arrow.next {
    right: 7px;
  }
  .runway-foot {
    inset: auto 18px 7px;
    grid-template-columns: 1fr auto;
  }
  .slide-hint {
    display: none;
  }
  .look-info {
    display: block;
    padding: 15px 18px 24px;
    min-height: 0;
  }
  .piece-caption {
    position: relative;
  }
  .piece-name {
    margin: 2px 0 10px;
  }
  .piece-name h2 {
    font-size: 39px;
  }
  .piece-price {
    position: absolute;
    right: 0;
    bottom: 5px;
    font-size: 0.84rem;
  }
  .quick-shop {
    display: grid;
    grid-template-columns: minmax(94px, 1fr) auto 34px;
    gap: 8px;
  }
  .quick-sizes {
    margin: 0;
  }
  .size-head {
    justify-content: start;
    gap: 9px;
    margin-bottom: 4px;
  }
  .size-head .linkbtn {
    font-size: 0.62rem;
  }
  .quick-size {
    min-width: 29px;
    height: 32px;
  }
  .runway-buy {
    font-size: 0.77rem;
    padding: 0 11px;
    gap: 9px;
    height: 35px;
  }
  .runway-favorite {
    width: 34px;
    height: 34px;
  }
  .runway-favorite svg {
    width: 16px;
  }
  .studio-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
  }
  .studio-footer > span,
  .studio-footer small {
    font-size: 0.66rem;
  }
  .studio-footer > div {
    order: 3;
    justify-content: start;
    flex-basis: 100%;
    gap: 16px;
  }
  .catalog-room {
    padding: 23px 15px 35px;
  }
  .catalog-title {
    padding-bottom: 15px;
  }
  .catalog-layout {
    display: block;
    margin-top: 8px;
  }
  .catalog-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }
  .catalog-filter h2 {
    display: none;
  }
  .catalog-filter .filters,
  .filter-views {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    border: none;
    margin: 0;
    padding: 0;
  }
  .catalog-filter button {
    font-size: 0.73rem;
  }
  .catalog-room .products {
    gap: 18px 8px;
  }
  .catalog-room .card-info h3 {
    font-size: 21px;
  }
  .catalog-room .card-photo {
    aspect-ratio: 0.84;
  }
  .catalog-room .card-photo img {
    padding: 9%;
  }
  .catalog-room .card-info .row {
    display: block;
  }
  .catalog-room .fav,
  .catalog-room .add-small {
    width: 26px;
    height: 26px;
  }
  .catalog-room .fav svg {
    width: 14px;
  }
  .catalog-room .card-info .color {
    font-size: 0.7rem;
  }
  dialog.wide {
    inset: auto 0 0;
    width: 100vw;
    max-height: 91svh;
    height: auto;
    border-radius: 13px 13px 0 0;
  }
  .detail .main-product {
    height: 32svh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .figure,
  #marks span {
    transition: none;
  }
}
.preview-zone {
  border: 1px dashed #777168;
  padding: 10px;
  margin-bottom: 24px;
  text-align: center;
  background: #272725;
  transition: background 0.2s;
}
.preview-zone.over {
  background: #4b423a;
  border-color: #f3d1b8;
}
.preview-zone .micro {
  font-size: 0.56rem;
  color: #c1b6a9;
}
.preview-zone #preview-open {
  display: block;
  width: 100%;
  padding: 3px;
}
.preview-zone img {
  display: block;
  width: 100%;
  height: clamp(160px, 18vw, 240px);
  object-fit: contain;
  margin: 6px auto;
}
.preview-zone strong {
  font: 21px/1.1 var(--serif);
  color: var(--paper);
}
.drop-hint {
  font-size: 0.68rem;
  color: #b7b0a7;
  margin: 7px 0 0;
}
.card-preview {
  position: absolute;
  left: 9px;
  bottom: 9px;
  background: #282623dd;
  border: 1px solid #6b635a;
  color: #f7eee3;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.68rem;
}
.card-preview:hover {
  background: #51463c;
}
@media (max-width: 640px) {
  .preview-zone {
    display: none;
  }
}

/* ── Ficha de la pieza como tarjeta flotante (mismo vidrio crema de las tarjetas del probador) ── */
dialog.piece-pop,
dialog.piece-pop.wide {
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 28px));
  height: fit-content;
  max-height: min(90svh, 900px);
  border-radius: 22px;
  border: 1px solid #fff9eea6;
  background: linear-gradient(150deg, #fffaf0f5, #f3e9d9f2 60%, #eadfcbf2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 70px #3a2c1a3a,
    inset 0 1px 2px #ffffff80;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
dialog.piece-pop::-webkit-scrollbar {
  display: none;
}
dialog.piece-pop[open] {
  animation: piece-pop-in 0.34s cubic-bezier(0.2, 0.7, 0.2, 1);
}
dialog.piece-pop::backdrop {
  background: #2a21184d;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
@keyframes piece-pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}
.piece-pop .panel-head {
  position: sticky;
  top: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  z-index: 4;
  display: block;
}
.piece-pop #panel-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.piece-pop .panel-head button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #fff9eecc;
  background: #fffaf0d9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px #3a2c1a24;
  color: #30291f;
}
.piece-pop #panel-body {
  padding: 16px 16px 22px;
}
.piece-pop .panel-head button:focus {
  outline: none;
}
.piece-pop .panel-head button:focus-visible {
  outline: 2px solid #3a2f2566;
  outline-offset: 2px;
}
.piece-pop .pop-detail {
  display: block;
}
.piece-pop .pop-media {
  display: grid;
  justify-items: center;
}
.piece-pop .pop-detail .main-product {
  width: 100%;
  height: auto;
  max-height: 46svh;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #efe5d6;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #fff9ee80;
}
.piece-pop .thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.piece-pop .thumbs button {
  padding: 2px;
  border-radius: 12px;
  border: 1px solid #ab9d8e55;
  background: #fff9ef80;
}
.piece-pop .thumbs button[aria-pressed="true"] {
  border-color: #3a2f25;
}
.piece-pop .thumbs img,
.piece-pop .pop-detail .thumbs img {
  width: 50px;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}
.piece-pop .pop-info {
  margin-top: 16px;
  text-align: center;
}
.piece-pop .pop-info .eyebrow {
  display: block;
  text-align: center;
  justify-content: center;
  color: var(--rust);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#panel-body .piece-pop h2,
.piece-pop #panel-body h2 {
  font: 400 clamp(38px, 10vw, 48px) / 1.02 var(--serif);
  margin: 4px 0 4px !important;
}
.piece-pop .pop-price {
  font-size: 1.02rem;
  color: #30291f;
}
/* compra rápida: tallas y botón justo debajo del precio; la información va después */
.piece-pop .pop-buy {
  margin: 14px 0 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ab9d8e33;
}
.piece-pop .pop-buy .pop-row {
  border-top: 0;
  padding-top: 4px;
}
.piece-pop .product-desc + .pop-row {
  border-top: 0;
}
.piece-pop .product-desc,
.piece-pop #panel-body .product-desc {
  margin: 12px auto 14px;
  max-width: 36ch;
  line-height: 1.55;
}
.piece-pop .pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-top: 1px solid #ab9d8e33;
  text-align: left;
}
.piece-pop .pop-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5d4e40;
}
.piece-pop .pop-row .color {
  margin: 0;
  color: #30291f;
}
.piece-pop .pop-row .swatch {
  width: 14px;
  height: 14px;
  outline: 1px solid #a69580;
  outline-offset: 2px;
}
.piece-pop .linkbtn {
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.piece-pop .sizes {
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.piece-pop .sizes button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #ab9d8e66;
  background: #fff9ef99;
  font-size: 0.86rem;
}
.piece-pop .sizes button[aria-pressed="true"] {
  background: #3a2f25;
  border-color: #3a2f25;
  color: #fff8ee;
}
.piece-pop .sizes button:disabled {
  opacity: 0.4;
  text-decoration: line-through;
}
.piece-pop #size-note .error {
  margin: -6px 0 10px;
}
.piece-pop .pop-add {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 28px;
  background: #3c3027;
  color: #fff8ee;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px #3c302733;
}
.piece-pop .pop-add:hover {
  background: #2f251e;
}
.piece-pop .pop-add svg {
  width: 17px;
  height: 17px;
}
.piece-pop details {
  margin-top: 12px;
  padding: 10px 2px 0;
  border-top: 1px solid #ab9d8e33;
  text-align: left;
}
.piece-pop details + details {
  margin-top: 0;
}
.piece-pop .facts {
  margin: 8px 0 4px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}
.piece-pop .pop-note {
  margin-top: 14px !important;
  font-size: 0.7rem;
  text-align: left;
}
.piece-pop #panel-body > h2 {
  padding-right: 40px;
}
.piece-pop #panel-body .secondary {
  width: 100%;
  border-radius: 28px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  dialog.piece-pop,
  dialog.piece-pop.wide {
    width: min(500px, calc(100vw - 40px));
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.piece-pop[open] {
    animation: none;
  }
}

/* ── Catálogo en la misma línea del probador y de la ficha flotante: sala crema, tarjetas de vidrio ── */
.catalog-room {
  background:
    linear-gradient(180deg, #f1e8d9f0, #e7d9c2f2 55%, #dccbb0f5),
    #cbb899 url(/media/fit/sala.webp) center top / cover no-repeat;
  color: #30291f;
}
.catalog-title {
  border-bottom: 1px solid #ab9d8e44;
}
.catalog-title .micro {
  color: var(--rust);
}
.catalog-title h1 {
  color: #2f271e;
}
#catalog-count {
  color: #5d4e40;
}
.catalog-room .back-fit {
  color: #3a2f25;
  text-decoration-color: #3a2f2588;
}
.catalog-filter h2 {
  color: #5d4e40;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* filtros como el selector de pestañas del probador (vidrio en píldora) */
.catalog-filter .filters,
.filter-views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: var(--glass, rgba(247, 242, 230, 0.66));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 23px #392a1712;
  margin-bottom: 20px;
}
.catalog-filter button {
  color: #463b2d;
  padding: 7px 15px;
  border-radius: 22px;
  font-size: 0.8rem;
  line-height: 1.35;
}
.catalog-filter button[aria-pressed="true"] {
  background: #fffdf7;
  color: #2f271e;
  text-decoration: none;
  box-shadow: 0 1px 7px #4b392719;
}
#catalog-lines label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5d4e40;
  margin-bottom: 6px;
}
#catalog-lines select {
  border: 1px solid #fff9eecc;
  border-radius: 22px;
  background: #fffaf0cc;
  color: #30291f;
  padding: 8px 14px;
  margin-bottom: 20px;
}
/* tarjeta de prenda: mismo vidrio crema que las tarjetas del probador y la ficha */
.catalog-room .card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 14px;
  border: 1px solid #fff9eea6;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9eadd, #eee1cdb3 65%, #e4d7c0b8);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow:
    0 10px 30px #46382018,
    inset 0 1px 2px #ffffff70;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s;
}
.catalog-room .card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 38px #46382026,
    inset 0 1px 2px #ffffff70;
}
.catalog-room .card-photo {
  background: radial-gradient(ellipse at 50% 45%, #fffaf0, #f1e6d6 70%);
  border: 0;
  border-radius: 13px;
  aspect-ratio: 0.9;
}
.catalog-room .card-photo img {
  object-fit: contain;
  padding: 9% 11%;
  filter: drop-shadow(0 6px 5px #2c1a131f);
}
.catalog-room .fav {
  background: #fffaf0d9;
  color: #3a2f25;
  border: 1px solid #fff9eecc;
  box-shadow: 0 3px 10px #3a2c1a1c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.catalog-room .fav.saved {
  color: var(--rust);
}
.catalog-room .fav.saved svg {
  fill: var(--rust);
}
/* el + abre la ficha flotante para elegir talla: botón oscuro como "Añadir" */
.catalog-room .add-small {
  background: #3c3027;
  color: #fff8ee;
  border: 0;
  box-shadow: 0 6px 14px #3c302740;
}
.catalog-room .add-small:hover {
  background: #2f251e;
}
.catalog-room .card-preview {
  background: #fffaf0d9;
  color: #3a2f25;
  border: 1px solid #fff9eecc;
  box-shadow: 0 3px 10px #3a2c1a1c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.catalog-room .card-preview:hover {
  background: #fffdf7;
}
.catalog-room .card-info {
  padding: 12px 4px 0;
  text-align: center;
}
.catalog-room .card-info .row,
.catalog-room .card-info .row > * {
  display: block;
  text-align: center;
}
.catalog-room .card-info .price {
  margin-top: 3px;
}
.catalog-room .card-info h3 {
  margin: 0;
  width: 100%;
  text-align: center;
  color: #2f271e;
  line-height: 1.08;
}
@media (min-width: 901px) {
  .catalog-filter .filters,
  .filter-views {
    display: grid;
    width: 100%;
    border-radius: 20px;
    padding: 5px;
  }
  .catalog-filter button {
    width: 100%;
    text-align: left;
  }
}
.catalog-room .card-info h3 a {
  color: inherit;
  text-decoration: none;
}
.catalog-room .price {
  color: #30291f;
  font-size: 0.82rem;
}
.catalog-room .color {
  justify-content: center;
  color: #5d4e40;
  margin-top: 6px;
}
.catalog-room .color .swatch {
  width: 11px;
  height: 11px;
  outline: 1px solid #a69580;
  outline-offset: 2px;
}
.catalog-room .empty {
  color: #5d4e40;
}
/* vista en modelo (columna izquierda en PC) */
.preview-zone {
  border: 1px solid #fff9eea6;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9eadd, #eee1cdb3 65%, #e4d7c0b8);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: 0 10px 30px #46382018;
}
.preview-zone.over {
  background: #fffaf0;
  border-color: var(--rust);
}
.preview-zone .micro,
.drop-hint {
  color: #5d4e40;
}
.preview-zone strong {
  color: #2f271e;
}
@media (max-width: 900px) {
  .catalog-room .card {
    padding: 7px 7px 12px;
    border-radius: 15px;
  }
  .catalog-room .card-photo {
    aspect-ratio: 0.86;
    border-radius: 11px;
  }
  .catalog-room .card-info h3 {
    font-size: 20px;
  }
  .catalog-room .fav,
  .catalog-room .add-small {
    width: 30px;
    height: 30px;
  }
  .catalog-room .card-preview {
    font-size: 0.64rem;
    padding: 4px 9px;
  }
  .catalog-filter {
    gap: 10px;
  }
  .catalog-filter .filters,
  .filter-views {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    margin: 0;
  }
  .catalog-filter button {
    font-size: 0.72rem;
    padding: 6px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-room .card,
  .catalog-room .card:hover {
    transition: none;
    transform: none;
  }
}

/* ── Prenda flotando en el centro de la tarjeta: luz de estudio, sombra en el piso y vaivén suave ── */
.catalog-room [data-view="prenda"] .card-photo {
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, #fffdf8 0%, #f8f0e4 45%, #ecdfca 100%);
}
.catalog-room [data-view="prenda"] .card-photo::before {
  /* foco de luz detrás de la prenda */
  content: "";
  position: absolute;
  inset: 8% 14% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffffd9 0%, #fffaf000 68%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.catalog-room [data-view="prenda"] .card-photo::after {
  /* sombra suave en el piso */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 46%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #3a2a1a40 0%, #3a2a1a00 70%);
  transform: translateX(-50%);
  filter: blur(3px);
  z-index: -1;
  pointer-events: none;
  animation: bm-floor 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
.catalog-room [data-view="prenda"] .card-photo a {
  position: absolute;
  inset: 0;
}
/* la prenda ocupa un marco fijo con aire alrededor, sin importar el tamaño original de la foto */
.catalog-room [data-view="prenda"] .card-photo img {
  position: absolute;
  left: 50%;
  top: 45%;
  translate: -50% -50%;
  width: 68%;
  height: 66%;
  max-width: none;
  padding: 0;
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 14px #2c1a1324) drop-shadow(0 3px 3px #2c1a1318);
  animation: bm-float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s;
}
.catalog-room [data-view="prenda"] .card:hover .card-photo img {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 22px 18px #2c1a1330) drop-shadow(0 4px 4px #2c1a131c);
}
/* desfase para que no floten todas al mismo tiempo */
.catalog-room [data-view="prenda"] .card:nth-child(3n + 2) {
  --float-delay: -2s;
}
.catalog-room [data-view="prenda"] .card:nth-child(3n + 3) {
  --float-delay: -4s;
}
@keyframes bm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes bm-floor {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(0.86);
    opacity: 0.7;
  }
}
/* vista en modelo: la foto llena la tarjeta */
.catalog-room [data-view="modelo"] .card-photo img {
  object-fit: cover;
  padding: 0;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-room [data-view="prenda"] .card-photo img,
  .catalog-room [data-view="prenda"] .card-photo::after {
    animation: none;
  }
}

/* ── Catálogo como ventana flotante sobre el probador (mismo lenguaje que la ficha) ── */
body.catalog-pop {
  overflow: hidden;
}
body.catalog-pop #coleccion::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #2a21184d;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: bm-fade 0.3s ease-out;
}
body.catalog-pop .catalog-room {
  position: fixed;
  z-index: 41;
  top: max(14px, env(safe-area-inset-top));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(1280px, calc(100vw - 28px));
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 22px;
  border: 1px solid #fff9eea6;
  box-shadow:
    0 30px 80px #2a1f1350,
    inset 0 1px 2px #ffffff80;
  animation: piece-pop-in 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
}
body.catalog-pop .catalog-room::-webkit-scrollbar {
  display: none;
}
@keyframes bm-fade {
  from {
    opacity: 0;
  }
}
.catalog-close-bar {
  display: none;
}
body.catalog-pop .catalog-close-bar {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  height: 0;
  z-index: 6;
}
.catalog-close {
  width: 40px;
  height: 40px;
  margin-top: -14px;
  margin-right: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #fff9eecc;
  background: #fffaf0e6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px #3a2c1a24;
  color: #30291f;
}
.catalog-close svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 901px) {
  body.catalog-pop .catalog-room {
    top: 28px;
    bottom: 28px;
    width: min(1280px, calc(100vw - 56px));
  }
}
@media (max-width: 900px) {
  body.catalog-pop .catalog-room {
    border-radius: 20px;
    padding-top: 26px;
  }
  .catalog-close {
    margin-top: -10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.catalog-pop .catalog-room,
  body.catalog-pop #coleccion::before {
    animation: none;
  }
}

/* ── Bolsa, pago, favoritos y demás ventanas en la misma tarjeta flotante ── */
.piece-pop #panel-body > h2 {
  font: 400 clamp(36px, 9vw, 46px) / 1.05 var(--serif);
  margin: 6px 0 14px !important;
}
.piece-pop #panel-body > h2 em {
  font-style: italic;
}
.piece-pop[data-panel]:not([data-panel="detail"]) #panel-body {
  padding: 26px 20px 24px;
}
/* botones principales y secundarios como el "Añadir" del probador */
.piece-pop .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 28px;
  background: #3c3027;
  color: #fff8ee;
  font-weight: 500;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px #3c302733;
}
.piece-pop .primary:hover {
  background: #2f251e;
}
.piece-pop .primary svg {
  width: 17px;
  height: 17px;
}
.piece-pop .secondary {
  border-radius: 28px;
  border: 1px solid #ab9d8e66;
  background: #fff9ef99;
  min-height: 46px;
}
/* bolsa vacía */
.piece-pop .empty-bag {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 18px 0 6px;
}
.piece-pop .empty-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fffdf8, #efe4d3);
  border: 1px solid #fff9eecc;
  box-shadow: 0 10px 24px #46382020;
  color: #3a2f25;
  margin-bottom: 14px;
}
.piece-pop .empty-icon svg {
  width: 30px;
  height: 30px;
}
.piece-pop .empty-bag .empty {
  font: 400 24px/1.2 var(--serif);
  color: #30291f;
  margin: 0 0 4px !important;
}
.piece-pop .empty-bag .muted {
  max-width: 30ch;
  margin: 0 0 18px !important;
}
.piece-pop .empty-bag .primary {
  width: 100%;
}
/* piezas en la bolsa: tarjetas de vidrio */
.piece-pop .lineitem,
.piece-pop .miniitem {
  gap: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #fff9eea6;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0cc, #f1e6d6aa);
  box-shadow: 0 6px 18px #46382012;
}
.piece-pop .lineitem img,
.piece-pop .miniitem img {
  width: 66px;
  height: 78px;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%, #fffdf8, #efe4d3);
  filter: drop-shadow(0 4px 4px #2c1a1314);
}
.piece-pop .lineitem strong,
.piece-pop .miniitem strong {
  font: 400 21px/1.1 var(--serif);
  color: #2f271e;
}
.piece-pop .lineitem > div:last-child {
  text-align: right;
  font-size: 0.86rem;
  white-space: nowrap;
}
.piece-pop .stepper {
  gap: 2px;
  margin-top: 8px;
  border: 1px solid #ab9d8e55;
  border-radius: 20px;
  background: #fff9ef99;
  padding: 2px;
}
.piece-pop .stepper button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.piece-pop .stepper button:hover {
  background: #fffdf7;
}
.piece-pop .bag-summary {
  margin-top: 8px;
  padding-top: 6px;
}
.piece-pop .bag-summary .splitrow {
  font-size: 1rem;
}
.piece-pop .bag-summary .muted {
  margin: 4px 0 16px !important;
}
/* formulario de pago */
.piece-pop .formgrid input,
.piece-pop .formgrid select,
.piece-pop .field {
  border: 1px solid #ab9d8e55;
  border-radius: 14px;
  background: #fffdf8d9;
  min-height: 46px;
  padding: 11px 14px;
}
.piece-pop .formgrid input:focus,
.piece-pop .formgrid select:focus,
.piece-pop .field:focus {
  outline: 2px solid #3a2f2544;
  outline-offset: 1px;
}
.piece-pop .formgrid .primary {
  width: 100%;
}
.piece-pop .notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff9efcc;
  border: 1px solid #fff9eea6;
}
.piece-pop .menulink {
  border-bottom-color: #ab9d8e33;
}

/* ── Botón de WhatsApp en la barra del probador: verde manzana suave ── */
.dock-wa {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #a8cf8b, #86b56c);
  border: 1px solid #ffffffa6;
  box-shadow:
    0 6px 16px #5b8a4538,
    inset 0 1px 2px #ffffff70;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.dock-wa:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px #5b8a4545,
    inset 0 1px 2px #ffffff70;
}
.dock-wa::after {
  /* halo tranquilo para que se note sin gritar */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid #9cc67f;
  opacity: 0;
  animation: bm-wa-halo 4s ease-out infinite;
  pointer-events: none;
}
@keyframes bm-wa-halo {
  0%,
  55% {
    opacity: 0;
    transform: scale(1);
  }
  65% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
@media (max-width: 640px) {
  .dock-wa {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-wa::after {
    animation: none;
  }
}

/* ── Pie de página centrado ── */
footer.studio-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 38px 20px 34px;
  background: linear-gradient(180deg, #f6efe3, #efe5d5);
  border-top: 1px solid #ab9d8e33;
  color: #5d4e40;
}
.foot-brand {
  display: grid;
  gap: 2px;
  line-height: 1;
}
.foot-brand strong {
  font: 400 30px/1 var(--serif);
  letter-spacing: -0.02em;
  color: #2f271e;
}
.foot-brand span {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  padding-left: 0.45em;
  color: #2f271e;
}
footer.studio-footer .foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--glass, rgba(247, 242, 230, 0.66));
  box-shadow: 0 4px 18px #392a170f;
}
footer.studio-footer .foot-links button {
  padding: 8px 15px;
  border-radius: 22px;
  font-size: 0.78rem;
  color: #463b2d;
}
footer.studio-footer .foot-links button:hover {
  background: #fffdf7;
}
footer.studio-footer .foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.7rem;
  color: #786a5c;
}
footer.studio-footer .foot-meta small,
footer.studio-footer .foot-meta a {
  font-size: 0.7rem;
  color: #786a5c;
}
footer.studio-footer .foot-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-dot {
  opacity: 0.6;
}
footer.studio-footer > * {
  order: 0;
  flex-basis: auto;
}
footer.studio-footer > .foot-brand {
  justify-content: center;
}
footer.studio-footer {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}
footer.studio-footer > .foot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
footer.studio-footer .foot-brand span {
  display: block;
  margin: 0;
}


/* ── Aviso de cookies: cuadro translúcido oscuro con botones pastel ── */
#cookie-bar {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(clamp(18px, 3svh, 42px) + 92px);
  transform: translateX(-50%);
  width: min(540px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #f7efe3;
  background: #2a2118a6;
  border: 1px solid #ffffff2b;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 16px 40px #1a120b40;
  animation: bm-cookie-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
#cookie-bar.leaving {
  opacity: 0;
  transform: translate(-50%, 12px);
}
#cookie-bar p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}
#cookie-bar .cookie-more {
  color: #f3dcc6;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
#cookie-bar .cookie-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#cookie-bar .cookie-actions button {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 0.78rem;
}
#cookie-bar .cookie-no {
  color: #f7efe3;
  border: 1px solid #ffffff40;
  background: #ffffff10;
}
#cookie-bar .cookie-yes {
  color: #3a2a1f;
  font-weight: 600;
  background: linear-gradient(135deg, #f7dfc9, #eecdb4);
  box-shadow: 0 4px 12px #f0c9a840;
}
#cookie-bar .cookie-yes:hover {
  background: #f9e6d4;
}
body.has-cookie-bar .fit-help {
  opacity: 0;
}
@keyframes bm-cookie-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}
@media (max-width: 640px) {
  #cookie-bar .cookie-actions button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #cookie-bar {
    animation: none;
  }
}

/* ── Encabezado del catálogo y filtros centrados ── */
.catalog-pop .catalog-title,
.catalog-room .catalog-title {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.catalog-room .catalog-title > div {
  display: grid;
  justify-items: center;
}
.catalog-room .catalog-title .back-fit {
  padding: 6px 0 2px;
}
.catalog-room #catalog-count {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .catalog-room .catalog-filter {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 6px;
  }
  .catalog-room #catalog-lines {
    text-align: center;
  }
}

/* ── Mismo estilo de la entrada al panel para todas las ventanas: fondo crema lavado + tarjeta de vidrio ── */
dialog.piece-pop::backdrop {
  background: linear-gradient(180deg, #f1e8d9a6, #e2d2b8bf);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}
body.catalog-pop #coleccion::before {
  background: linear-gradient(180deg, #f1e8d9a6, #e2d2b8bf);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}
dialog.piece-pop,
dialog.piece-pop.wide,
body.catalog-pop .catalog-room {
  background: linear-gradient(150deg, #fffaf0f2, #f3e9d9ee 60%, #eadfcbee);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid #fff9eea6;
  box-shadow:
    0 28px 70px #3a2c1a33,
    inset 0 1px 2px #ffffff80;
}

/* ── Vidrio esmerilado translúcido (como la ventana de inicio de sesión de iPhone): la web se ve detrás, desenfocada ── */
dialog.piece-pop::backdrop,
body.catalog-pop #coleccion::before {
  background: rgba(46, 34, 22, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
dialog.piece-pop,
dialog.piece-pop.wide,
body.catalog-pop .catalog-room {
  background: linear-gradient(150deg, rgba(255, 250, 240, 0.62), rgba(240, 228, 210, 0.48));
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(40, 28, 15, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
}
.piece-pop .pop-detail .main-product {
  background: rgba(255, 250, 240, 0.45);
}
.piece-pop .thumbs button,
.piece-pop .sizes button,
.piece-pop .stepper,
.piece-pop .secondary,
.piece-pop .notice,
.piece-pop .formgrid input,
.piece-pop .formgrid select {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.65);
}
.piece-pop .lineitem,
.piece-pop .miniitem,
body.catalog-pop .catalog-room .card {
  background: rgba(255, 252, 246, 0.42);
  border-color: rgba(255, 255, 255, 0.6);
}
.piece-pop .panel-head button,
.catalog-close {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.75);
}

/* ── Foto de la fundadora en «La marca»: arco de vidrio, luz cálida y entrada suave ── */
.piece-pop .founder {
  margin: 4px auto 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.founder-frame {
  position: relative;
  display: block;
  width: min(250px, 68%);
  aspect-ratio: 4 / 5;
  padding: 6px;
  border-radius: 200px 200px 26px 26px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 22px 50px rgba(129, 71, 52, 0.22),
    0 0 0 10px rgba(255, 248, 238, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
}
.founder-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 194px 194px 21px 21px;
  filter: saturate(1.04) contrast(1.02);
  animation: founder-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.founder-frame::after {
  /* destello de luz que pasa una vez */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 194px 194px 21px 21px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 248, 235, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: founder-sheen 1.8s 0.5s ease-out forwards;
  pointer-events: none;
}
.founder-frame::before {
  /* viñeta cálida suave */
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 1;
  border-radius: 194px 194px 21px 21px;
  background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(90, 55, 30, 0.22));
  pointer-events: none;
}
.founder figcaption {
  font: 400 22px/1.1 var(--serif);
  color: #2f271e;
  text-align: center;
}
.founder figcaption span {
  display: block;
  margin-top: 4px;
  font: 500 0.62rem/1 DM, Arial, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
}
@keyframes founder-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
}
@keyframes founder-sheen {
  to {
    transform: translateX(120%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .founder-frame img,
  .founder-frame::after {
    animation: none;
  }
}
.piece-pop[data-panel="story"] #panel-body > h2,
.piece-pop[data-panel="story"] .signature {
  text-align: center;
}
