/* /koleda26: web version of the Christmas 2026 catalogue (Pages/Koleda26). Loaded only on that page.
   Colours and fonts come from the theme variables in app.css; brown frames and price tags follow the Canva catalogue. */

.koleda {
  --k-red: #9e2328;
  --k-frame: var(--color-cocoa);
  --k-muted: rgb(52 40 32 / 0.74);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: var(--color-cocoa);
  font-family: var(--font-body);
}

.koleda .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.koleda a:focus-visible,
.koleda button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.koleda section[id] {
  scroll-margin-top: 76px;
}

.koleda-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cocoa);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-gold);
}

.koleda-pdf-link:hover {
  color: var(--color-gold-text);
}

.koleda-pdf-link .material-symbols-outlined,
.koleda-icon-after {
  font-size: 18px;
}

.koleda-icon-after {
  margin-left: 6px;
}

@media (min-width: 768px) {
  .koleda {
    padding: 0 24px 72px;
  }

  .koleda section[id] {
    scroll-margin-top: 96px;
  }
}

/* Catalogue magazine viewer, the first screen (Pages/Koleda26/_Magazine.cshtml, wwwroot/js/koleda26-magazine.js).
   The script sets its height to the rest of the screen; the heights here only cover the moment before. */
.koleda-viewer {
  --k-red: #9e2328;
  --k-muted: rgb(52 40 32 / 0.74);
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100svh - 190px);
  min-height: 420px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 12px 8px;
  color: var(--color-cocoa);
  font-family: var(--font-body);
  scroll-margin-top: 80px;
}

.koleda-viewer a:focus-visible,
.koleda-viewer button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.koleda-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.koleda-viewer-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
  color: var(--color-graphite);
}

@media (min-width: 768px) {
  .koleda-viewer-bar {
    min-height: 40px;
  }

  .koleda-viewer-title {
    font-size: 20px;
  }
}

.koleda-viewer-title span {
  color: var(--k-red);
}

.koleda-viewer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Small, quiet tools: the catalogue is meant to be read here, the PDF is there for whoever needs it. */
.koleda-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--k-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.koleda-tool:hover {
  border-color: var(--color-outline-variant);
  background: var(--color-pearl);
  color: var(--color-cocoa);
}

.koleda-tool[hidden] {
  display: none;
}

.koleda-tool svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.koleda-icon-collapse,
.koleda-viewer.is-fullscreen .koleda-icon-expand {
  display: none;
}

.koleda-viewer.is-fullscreen .koleda-icon-collapse {
  display: block;
}

.koleda-magazine-stage {
  position: relative;
  min-height: 0;
  margin: 2px 0;
}

/* Two classes: the library injects `.stf__parent { position: relative }` after this stylesheet. */
.koleda-magazine-stage .koleda-magazine-book {
  position: absolute;
  inset: 0;
}

/* The library lays the book out inside this box: autoSize is off, so the wrapper takes the full height. */
.koleda-magazine-book .stf__wrapper {
  height: 100%;
}

/* A closed magazine sits centred: the script shifts the cover (and the back cover) by half a page. */
.koleda-magazine-book .stf__block {
  transform: translateX(var(--k-shift, 0px));
  transition: transform 0.5s ease;
}

.koleda-magazine-book.is-settling .stf__block {
  transition: none;
}

/* Let phones pinch-zoom into a page; the library only allows vertical panning. */
.koleda-magazine-book.stf__parent {
  touch-action: pan-y pinch-zoom;
}

/* Before the script has laid the book out: the cover alone, fitted and centred in the stage exactly where the book
   will show the closed magazine, so it paints at once (it is the page's largest paint) and nothing jumps. */
.koleda-viewer.is-js .koleda-magazine-book:not(.stf__parent) > .koleda-magazine-page {
  display: none;
}

.koleda-viewer.is-js .koleda-magazine-book:not(.stf__parent) > .koleda-magazine-page:first-child {
  display: block;
  position: absolute;
  inset: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.koleda-viewer.is-js .koleda-magazine-book:not(.stf__parent) > .koleda-magazine-page:first-child img {
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgb(52 40 32 / 0.18));
}

.koleda-viewer.is-js .koleda-magazine-book:not(.stf__parent) .koleda-magazine-link {
  display: none;
}

.koleda-magazine-page {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.koleda-magazine-page img {
  display: block;
  width: 100%;
  height: 100%;
  /* The cover carries a small preview as its background (see MagazinePage.CoverPreviewUrl), fitted like the image. */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.koleda-magazine-book .stf__item {
  box-shadow: 0 8px 28px rgb(52 40 32 / 0.18);
}

/* Without the script: the pages as a swipeable strip, as tall as the viewer. */
.koleda-magazine-book:not(.stf__parent) {
  display: flex;
  justify-content: safe center;
  gap: 12px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.koleda-magazine-book:not(.stf__parent) > .koleda-magazine-page {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 596 / 842;
  scroll-snap-align: center;
  box-shadow: 0 8px 28px rgb(52 40 32 / 0.18);
}

.koleda-magazine-link {
  position: absolute;
  z-index: 2;
  border-radius: 6px;
  transition: background-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .koleda-magazine-link:hover {
    background: rgb(200 164 106 / 0.14);
    box-shadow: inset 0 0 0 2px var(--color-gold);
  }
}

.koleda-viewer-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(39 35 32 / 0.84);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.koleda-viewer-hint[hidden] {
  display: none;
}

.koleda-viewer-hint.is-gone {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.koleda-hint-touch {
  display: none;
}

@media (hover: none) {
  .koleda-hint-pointer {
    display: none;
  }

  .koleda-hint-touch {
    display: inline;
  }
}

.koleda-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 4px;
}

.koleda-viewer:not(.is-ready) .koleda-viewer-nav {
  visibility: hidden;
}

.koleda-magazine-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-cocoa);
  border-radius: 999px;
  background: #fff;
  color: var(--color-cocoa);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.koleda-magazine-btn:hover:not(:disabled) {
  background: var(--color-cocoa);
  color: #fff;
}

.koleda-magazine-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.koleda-magazine-btn .material-symbols-outlined {
  font-size: 24px;
}

/* Until the first page turn the next button breathes a few times, inviting the reader in. */
.koleda-magazine-btn.is-inviting {
  animation: koleda-invite 1.8s ease-in-out 0.8s 4;
}

@keyframes koleda-invite {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(200 164 106 / 0);
  }

  50% {
    box-shadow: 0 0 0 9px rgb(200 164 106 / 0.4);
  }
}

.koleda-magazine-counter {
  margin: 0;
  min-width: 10em;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cocoa);
}

@media (min-width: 768px) {
  .koleda-viewer {
    height: calc(100svh - 112px);
    padding: 8px 24px 12px;
  }
}

/* Wide screens: one toolbar under the book (title, page buttons, tools) so the book gets the height. */
@media (min-width: 1024px) {
  .koleda-viewer {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "stage stage stage"
      "title nav tools";
    column-gap: 16px;
  }

  .koleda-viewer-bar {
    display: contents;
  }

  .koleda-viewer-title {
    grid-area: title;
    align-self: center;
  }

  .koleda-viewer-tools {
    grid-area: tools;
    justify-self: end;
  }

  .koleda-magazine-stage {
    grid-area: stage;
  }

  .koleda-viewer-nav {
    grid-area: nav;
  }
}

/* Full screen: the viewer covers the whole window (native full screen where the browser allows it). */
.koleda-viewer.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  max-width: none;
  height: 100dvh !important;
  margin: 0;
  padding: 10px 16px 12px;
  background: var(--color-surface);
}

.koleda-viewer:fullscreen {
  background: var(--color-surface);
}

html.koleda-fullscreen-open,
html.koleda-fullscreen-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .koleda-magazine-book .stf__block,
  .koleda-viewer-hint {
    transition: none;
  }

  .koleda-magazine-btn.is-inviting {
    animation: none;
  }
}

/* Below the catalogue: the same jewellery with live prices */
.koleda-shop-intro {
  max-width: 680px;
  margin: clamp(36px, 6vw, 64px) auto 0;
  text-align: center;
}

/* Section links */
.koleda-toc {
  display: flex;
  gap: 8px;
  margin: 28px -16px 0;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.koleda-toc::-webkit-scrollbar {
  display: none;
}

.koleda-toc a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--color-outline-variant);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cocoa);
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}

.koleda-toc a:hover {
  border-color: var(--color-gold);
  background: var(--color-ivory);
}

@media (min-width: 768px) {
  .koleda-toc {
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 0;
    padding: 0;
    overflow: visible;
  }
}

/* Sections */
.koleda-section {
  padding: clamp(40px, 7vw, 76px) 0 0;
}

.koleda-section-head {
  max-width: 680px;
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
}

.koleda-section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  color: var(--color-graphite);
}

.koleda-kicker {
  display: inline-block;
  margin-right: 0.2em;
  font-style: italic;
  font-weight: 500;
  font-size: 0.58em;
  color: var(--k-muted);
  vertical-align: 0.12em;
}

.koleda-lead {
  margin: 0 auto 14px;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--k-muted);
}

.koleda-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.koleda-notes li {
  padding: 4px 12px;
  border: 1px solid var(--color-outline-variant);
  border-radius: 999px;
  background: var(--color-ivory);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-cocoa);
}

/* Product cards */
.koleda-grid {
  display: grid;
  gap: 32px 24px;
  grid-template-columns: minmax(0, 1fr);
}

.koleda-grid--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
}

@media (min-width: 640px) {
  .koleda-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .koleda-grid--pairs {
    gap: 36px 24px;
  }
}

.koleda-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.koleda-card-media,
.koleda-feature-media {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--k-frame);
  background: var(--color-pearl);
}

.koleda-card-media {
  aspect-ratio: 4 / 3;
}

.koleda-card-media img,
.koleda-feature-media img,
.koleda-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.koleda-card-media a:hover img,
.koleda-feature-media a:hover img {
  transform: scale(1.03);
}

.koleda-card-media > a,
.koleda-feature-media > a {
  display: block;
  height: 100%;
}

.koleda-price {
  margin: 0;
  font-weight: 700;
  color: var(--color-graphite);
}

.koleda-price--tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 10px;
  background: var(--k-frame);
  color: var(--color-ivory);
  font-size: 14px;
  line-height: 1.2;
  text-align: right;
}

.koleda-price-old {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.koleda-soldout {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 6px 10px;
  background: rgb(255 255 255 / 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cocoa);
}

.koleda-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 12px;
}

.koleda-card-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--color-graphite);
}

.koleda-grid--pairs .koleda-card-title {
  font-size: 18px;
}

.koleda-card-title a:hover {
  color: var(--color-gold-text);
}

.koleda-card-variant {
  display: block;
}

.koleda-card-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--k-muted);
}

.koleda-points {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--k-muted);
}

.koleda-points li {
  position: relative;
  padding-left: 14px;
}

.koleda-points li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--k-red);
}

.koleda-points--large {
  font-size: 15px;
  line-height: 1.6;
}

.koleda-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 10px;
}

.koleda-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold-text);
}

.koleda-link .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s;
}

.koleda-link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.koleda-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-cocoa);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cocoa);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.koleda-add:hover {
  background: var(--color-cocoa);
  color: #fff;
}

.koleda-add .material-symbols-outlined {
  font-size: 18px;
}

.koleda-actions--large .koleda-link {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--color-cocoa);
  border-radius: 8px;
  color: var(--color-cocoa);
}

.koleda-actions--large .koleda-link:hover {
  background: var(--color-cocoa);
  color: #fff;
}

.koleda-actions--large .koleda-add {
  min-height: 44px;
  border-radius: 8px;
}

/* Feature rows (Lettre d'Amour, Nerea) */
.koleda-feature {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 40px;
}

.koleda-feature-media {
  aspect-ratio: 1 / 1;
}

.koleda-feature-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
  color: var(--color-graphite);
}

.koleda-feature-title .koleda-kicker {
  font-size: 0.62em;
}

.koleda-feature-title a:hover {
  color: var(--color-gold-text);
}

@media (min-width: 768px) {
  .koleda-feature {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: center;
    gap: 44px;
    margin-bottom: 56px;
  }

  .koleda-feature--flip .koleda-feature-media {
    order: 2;
  }
}

/* Set strip */
.koleda-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 18px 20px;
  border: 1px solid var(--k-frame);
  background: var(--color-ivory);
}

.koleda-set-text {
  flex: 1 1 220px;
}

.koleda-set-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--color-graphite);
}

.koleda-set-contents {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--k-muted);
}

.koleda-set > .koleda-price {
  font-family: var(--font-display);
  font-size: 30px;
}

.koleda-set > .koleda-price .koleda-price-old {
  font-family: var(--font-body);
  font-size: 13px;
}

.koleda-set-cta {
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 479px) {
  .koleda-set-cta {
    width: 100%;
  }
}

/* Photo strips */
.koleda-gallery-wrap {
  margin-top: 8px;
}

.koleda-gallery-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k-muted);
}

.koleda-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.koleda-gallery--3 {
  max-width: 980px;
  margin: 0 auto;
}

.koleda-gallery-item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-pearl);
}

.koleda-grid + .koleda-gallery-wrap {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .koleda-gallery {
    gap: 8px;
  }

  .koleda-gallery--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Packaging */
.koleda-packaging {
  display: grid;
  gap: 24px;
  align-items: center;
}

.koleda-packaging-text {
  text-align: center;
}

.koleda-packaging-lead {
  margin: 0 auto 12px;
  max-width: 34rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  color: var(--color-graphite);
}

.koleda-packaging-note {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 14px;
  color: var(--k-muted);
}

.koleda-packaging-note::before {
  content: "* ";
  color: var(--k-red);
}

.koleda-packaging-media {
  margin: 0 auto;
  max-width: 300px;
}

@media (min-width: 768px) {
  .koleda-packaging-media {
    max-width: 410px;
  }
}

.koleda-packaging-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.koleda-packaging-media figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--k-muted);
}

@media (min-width: 768px) {
  .koleda-packaging {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: 48px;
  }

  .koleda-packaging-text {
    text-align: left;
  }

  .koleda-packaging-text .koleda-lead,
  .koleda-packaging-lead,
  .koleda-packaging-note {
    margin-left: 0;
  }
}

/* Closing call to action */
.koleda-final {
  margin-top: clamp(48px, 8vw, 88px);
  padding: clamp(32px, 6vw, 56px) 20px;
  border-radius: 16px;
  background: var(--color-pearl);
  text-align: center;
}

.koleda-final-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  color: var(--color-graphite);
}

.koleda-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .koleda-card-media img,
  .koleda-feature-media img,
  .koleda-link .material-symbols-outlined {
    transition: none;
  }

  .koleda-card-media a:hover img,
  .koleda-feature-media a:hover img {
    transform: none;
  }
}
