/* Programmatic landing targets are not interactive controls. Keep link/button rings. */
#main[tabindex="-1"]:focus,
#store-entry:focus {
  outline: none;
}
/* A separate, temporary scroll surface; never part of the shop page height. */
#store-entry[hidden] {
  display: none;
}
#store-entry {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f6f0e5;
}
body.store-entry-active {
  overflow: hidden;
}
.opening-end {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 1px;
}
/* Scoped storefront → shelves → cards. No global layout or scroll listeners. */
.opening-journey {
  --opening-cream: #f6f0e5;
  color: #284633;
}
.opening-journey h1,
.opening-journey h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
.opening-journey em {
  color: #6b7d48;
  font-weight: 400;
}
.opening-journey p {
  margin: 0;
}
.opening-journey a {
  color: inherit;
  text-decoration: none;
}
.opening-journey a:focus-visible {
  outline: 3px solid #607e36;
  outline-offset: 4px;
}
.opening-journey img {
  display: block;
  max-width: 100%;
}
.opening-skip {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 6;
  padding: 12px 18px;
  border-radius: 30px;
  background: #fff9eb;
  color: #20442f !important;
  font-size: 12px;
  box-shadow: 0 2px 12px #0001;
}
.opening-status {
  position: absolute;
  inset: 40% 10% auto;
  text-align: center;
  font-size: 15px;
}
.opening-status[hidden] {
  display: none;
}
.opening-price {
  font-size: 13px;
  font-weight: 700;
  color: #20442f;
  white-space: nowrap;
}
.opening-storefront {
  position: relative;
  height: 720px;
  overflow: clip;
  transform-origin: 43% 62%;
  background: #22392b;
}
.opening-storefront img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.opening-storefront::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 25%,
    #152b2055 53%,
    #152b20db 100%
  );
}
.opening-store-copy {
  position: absolute;
  top: 160px;
  left: 62%;
  width: 32%;
  color: #fff9eb;
  z-index: 4;
}
.opening-store-copy h1 {
  color: inherit;
  font-size: clamp(66px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin: 25px 0;
}
.opening-store-copy h1 em {
  color: #dde6bd;
}
.opening-store-copy > p:not(.opening-eyebrow) {
  font-size: 18px;
  line-height: 1.7;
}
.opening-store-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #fff8;
  padding: 16px 0;
  margin-top: 20px;
  font-size: 13px;
  min-height: 48px;
}
.opening-store-button span {
  font-size: 22px;
}
.opening-store-scroll {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 45px;
  font-size: 11px;
  color: #e1e6d6;
}
.opening-store-scroll > span {
  font-size: 26px;
}

.opening-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  line-height: 1.5;
}
.opening-journey {
  position: relative;
}
.opening-stage {
  position: relative;
  overflow: clip;
  background: var(--opening-cream);
}
.opening-shop-room {
  position: relative;
  padding: 44px 7% 60px;
  isolation: isolate;
}
.opening-wall {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 10%,
    #fff8e9 0,
    #efe2cc 65%,
    #dcc4a3 100%
  );
}
.opening-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(33.333% - 1px),
    #8a66450c calc(33.333% - 1px),
    #8a66450c 33.333%
  );
  box-shadow: inset 0 0 100px #85623a12;
}
.opening-room-heading,
.opening-catalog-heading {
  text-align: center;
}
.opening-room-heading h2,
.opening-catalog-heading h2 {
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.03;
  letter-spacing: -1.8px;
  margin: 12px 0 22px;
}
.opening-room-heading h2 br,
.opening-catalog-heading h2 br {
  display: none;
}
.opening-catalog-heading {
  display: none;
}
.opening-shelf-grid {
  position: relative;
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  column-gap: 42px;
  row-gap: 28px;
}
.opening-product {
  position: relative;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 12px;
}
.opening-product-image {
  height: 180px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  mix-blend-mode: multiply;
}
.opening-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translateY(7%);
}
.opening-chocolate .opening-product-image img {
  clip-path: inset(10.7% 31% 7.7% 28%);
  transform: scale(1.13);
}
.opening-product-label {
  position: relative;
  margin-top: 20px;
  max-width: 260px;
  min-height: 62px;
}
.opening-brand-name {
  font-size: 10px;
  color: #6b725f;
}
.opening-product-label h3 {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  margin: 6px 0;
}
.opening-details {
  font-size: 10px;
  display: block;
  color: #456144;
}
.opening-details span {
  margin-left: 8px;
}
.opening-card-surface {
  position: absolute;
  inset: -8px 0 0;
  z-index: 0;
  background: #fffdf7;
  border: 1px solid #3851331b;
  border-radius: 22px;
  opacity: 0;
}
.opening-shelf {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 17px;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    1deg,
    #bb9163 0,
    #c59d70 1px,
    #d4b48b 3px,
    #cda67b 5px
  );
  border-top: 4px solid #e9d1ae;
  border-radius: 2px;
  box-shadow:
    0 13px 19px #654b3729,
    0 2px 2px #78583540;
}
.opening-shelf-top {
  top: 180px;
}
.opening-shelf-bottom {
  top: calc(50% + 194px);
}
.opening-room-note {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 40px 0 0;
  color: #74654f;
}

/* One native timeline. The product nodes stay the same when shelf changes to cards. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .opening-journey {
      height: 400svh;
      view-timeline-name: --opening-scroll;
      view-timeline-axis: block;
    }
    .opening-stage {
      height: 100svh;
      position: sticky;
      top: 0;
    }
    .opening-storefront {
      position: absolute;
      inset: 0;
      height: auto;
      z-index: 4;
      pointer-events: none;
      animation: opening-enter linear both;
    }
    .opening-store-copy {
      top: 22%;
      z-index: 5;
      animation: opening-exterior-title linear both;
    }
    .opening-shop-room {
      position: absolute;
      inset: 0;
      padding: 0 9%;
      /* Cache the room during scaling; released when the entrance is removed. */
      will-change: transform, opacity;
      animation: opening-room-enter linear both;
    }
    .opening-wall {
      animation: opening-wood-away linear both;
    }
    .opening-room-heading,
    .opening-catalog-heading {
      position: absolute;
      left: 4%;
      right: 4%;
      top: 8%;
    }
    .opening-room-heading {
      animation: opening-room-title linear both;
    }
    .opening-catalog-heading {
      display: block;
      animation: opening-catalog-title linear both;
    }
    .opening-shelf-grid {
      position: absolute;
      left: 12%;
      right: 12%;
      top: 23%;
      bottom: 7%;
      row-gap: 22px;
      column-gap: 42px;
    }
    .opening-product-image {
      height: clamp(100px, 18svh, 195px);
    }
    .opening-shelf-top {
      top: clamp(100px, 18svh, 195px);
    }
    .opening-shelf-bottom {
      top: calc(50% + 11px + clamp(100px, 18svh, 195px));
    }
    .opening-shelf {
      animation: opening-shelf-away linear both;
    }
    .opening-card-surface {
      animation: opening-card-surface linear both;
    }
    .opening-details {
      animation: opening-catalog-title linear both;
    }
    .opening-room-note {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 2%;
      margin: 0;
      animation: opening-room-title linear both;
    }
    :is(
      .opening-storefront,
      .opening-store-copy,
      .opening-shop-room,
      .opening-wall,
      .opening-room-heading,
      .opening-catalog-heading,
      .opening-shelf,
      .opening-card-surface,
      .opening-details,
      .opening-room-note
    ) {
      animation-timeline: --opening-scroll;
      animation-range: contain 0% contain 100%;
    }
    .opening-shop-room:focus-within {
      animation: none;
      opacity: 1;
      transform: none;
      visibility: visible;
    }
  }
}
@keyframes opening-enter {
  0%,
  5% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 1;
    transform: scale(2.1);
  }
  36%,
  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}
@keyframes opening-exterior-title {
  0%,
  4% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  17%,
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-25px);
  }
}
@keyframes opening-room-enter {
  0%,
  22% {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.91);
  }
  36% {
    opacity: 1;
    visibility: visible;
    transform: scale(0.96);
  }
  65%,
  100% {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
}
@keyframes opening-wood-away {
  0%,
  65% {
    opacity: 1;
  }
  86%,
  100% {
    opacity: 0;
  }
}
@keyframes opening-shelf-away {
  0%,
  65% {
    opacity: 1;
    transform: translateY(0);
  }
  86%,
  100% {
    opacity: 0;
    transform: translateY(25px);
  }
}
@keyframes opening-room-title {
  0%,
  32% {
    opacity: 0;
    transform: translateY(15px);
  }
  40%,
  61% {
    opacity: 1;
    transform: translateY(0);
  }
  73%,
  100% {
    opacity: 0;
    transform: translateY(-15px);
  }
}
@keyframes opening-catalog-title {
  0%,
  73% {
    opacity: 0;
    transform: translateY(12px);
  }
  87%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes opening-card-surface {
  0%,
  68% {
    opacity: 0;
    transform: scale(0.95);
  }
  87%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .opening-storefront {
    height: 760px;
    transform-origin: 42% 60%;
  }
  .opening-storefront img {
    object-position: 39% 60%;
  }
  .opening-storefront::after {
    background: linear-gradient(
      0deg,
      #102b23f2,
      #102b23c4 20%,
      #102b2329 42%,
      transparent 56%
    );
  }
  .opening-store-copy {
    top: 530px;
    left: 7%;
    width: 86%;
  }
  .opening-store-copy h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 10px 0;
  }
  .opening-store-copy h1 br {
    display: none;
  }
  .opening-store-copy h1 em {
    margin-left: 0.15em;
  }
  .opening-store-copy > p:not(.opening-eyebrow) {
    font-size: 14px;
    line-height: 1.5;
  }
  .opening-store-copy .opening-eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .opening-store-button {
    /* The same action is already visible in the top-right skip button. */
    display: none;
  }
  .opening-store-scroll {
    font-size: 11px;
    gap: 10px;
    margin-top: 12px;
  }
  .opening-extra {
    display: none;
  }
  .opening-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .opening-product-image {
    height: 150px;
  }
  .opening-product-label {
    margin-top: 19px;
    min-height: 68px;
  }
  .opening-product-label h3 {
    font-size: 12px;
    line-height: 1.35;
  }
  .opening-brand-name {
    font-size: 9px;
  }
  .opening-product {
    padding: 0 6px 8px;
  }
  .opening-shelf-top {
    top: 150px;
  }
  .opening-shelf-bottom {
    top: calc(50% + 164px);
  }
  .opening-room-heading h2,
  .opening-catalog-heading h2 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .opening-room-heading h2 br,
  .opening-catalog-heading h2 br {
    display: block;
  }
  .opening-room-heading .opening-eyebrow,
  .opening-catalog-heading .opening-eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .opening-journey {
        height: 370svh;
      }
      .opening-storefront {
        height: auto;
      }
      .opening-store-copy {
        top: auto;
        bottom: max(24px, env(safe-area-inset-bottom));
      }
      .opening-shelf-grid {
        left: 9%;
        right: 9%;
        top: 26%;
        bottom: 8%;
        column-gap: 18px;
        row-gap: 24px;
      }
      .opening-room-heading,
      .opening-catalog-heading {
        top: 8%;
      }
      .opening-product-image {
        height: clamp(90px, 17svh, 150px);
      }
      .opening-shelf-top {
        top: clamp(90px, 17svh, 150px);
      }
      .opening-shelf-bottom {
        top: calc(50% + 12px + clamp(90px, 17svh, 150px));
      }
      .opening-room-note {
        font-size: 9px;
        bottom: 2.5%;
      }
    }
  }
}

.opening-torras .opening-product-image img {
  transform: translateY(5%) scale(1.5);
}
.opening-kedves .opening-product-image img {
  transform: none;
}
.opening-stage .opening-shop-room .opening-product .opening-product-image img {
  object-fit: contain;
}
@media (max-width: 760px) {
  .opening-price {
    font-size: 12px;
  }
  .opening-skip {
    right: 12px;
    top: 12px;
    padding: 10px 14px;
  }
}

.opening-empty .opening-shelf {
  display: none;
}
