
.tk-listing-header {
  position: relative;
  width: 100%;
}

.tk-listing-header-title {
  margin: 0;
  color: var(--listing-header-title-color, var(--tk-color-heading));
  font-family: var(--listing-header-title-font, var(--tk-font-heading));
  font-size: var(--listing-header-title-size, clamp(26px, 4.5vw, 40px));
  font-weight: var(--listing-header-title-weight, bold);
  line-height: var(--listing-header-title-line-height, 1.2);
  letter-spacing: var(--listing-header-title-letter-spacing, normal);
  text-transform: var(--listing-header-title-transform, none);
}

.tk-listing-header-count {
  margin: 8px 0 0;
  color: var(--tk-color-muted-foreground);
  font-size: 14px;
}

/* A badge hugs its text, so it becomes an inline box on its own line. */
.tk-listing-header-count--badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--tk-round-radius, 999px);
  background: color-mix(in srgb, var(--tk-color-primary) 12%, transparent);
  color: var(--tk-color-primary);
  font-size: 13px;
  font-weight: 700;
}

.tk-listing-header-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--listing-header-description-color, var(--tk-color-muted-foreground));
  font-size: 15px;
  line-height: 1.7;
}

/* Rich text: the paragraphs the editor wraps it in sit flush, spaced apart. */
.tk-listing-header-description > * {
  margin: 0;
}

.tk-listing-header-description > * + * {
  margin-block-start: 0.6em;
}

.tk-listing-header-description a {
  color: inherit;
  text-decoration: underline;
}

/* ── Alignment ── */
.tk-listing-header--align-center .tk-listing-header-copy {
  text-align: center;
}

.tk-listing-header--align-center .tk-listing-header-description {
  margin-inline: auto;
}

.tk-listing-header--align-end .tk-listing-header-copy {
  text-align: end;
}

.tk-listing-header--align-end .tk-listing-header-description {
  margin-inline-start: auto;
}

/* Plain with an image: the entity's logo in a framed tile beside the copy -
   above it when centred, after it when aligned to the end. */
.tk-listing-header--with-logo .tk-listing-header-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tk-listing-header--with-logo .tk-listing-header-copy {
  min-width: 0;
  flex: 1;
}

.tk-listing-header--with-logo.tk-listing-header--align-center .tk-listing-header-body {
  flex-direction: column;
}

.tk-listing-header--with-logo.tk-listing-header--align-end .tk-listing-header-body {
  flex-direction: row-reverse;
}

.tk-listing-header-logo {
  display: grid;
  flex: 0 0 auto;
  inline-size: 88px;
  block-size: 88px;
  place-items: center;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid var(--tk-color-border);
  border-radius: var(--tk-card-radius, 12px);
  background: var(--tk-color-surface);
}

.tk-listing-header-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Cover: the entity's own image behind a scrim, with the copy laid over it. */
.tk-listing-header--cover {
  overflow: hidden;
  border-start-start-radius: var(--listing-header-radius-ts, var(--tk-control-radius, 14px));
  border-start-end-radius: var(--listing-header-radius-te, var(--tk-control-radius, 14px));
  border-end-end-radius: var(--listing-header-radius-be, var(--tk-control-radius, 14px));
  border-end-start-radius: var(--listing-header-radius-bs, var(--tk-control-radius, 14px));
  min-height: var(--listing-header-cover-height, 220px);
  display: flex;
  align-items: center;
}

.tk-listing-header--cover {
  --block-default-padding-block: 36px;
  --block-default-padding-inline: 32px;
}

.tk-listing-header-media {
  position: absolute;
  inset: 0;
}

.tk-listing-header-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-listing-header-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(
    in srgb,
    var(--listing-header-overlay, #000000) var(--listing-header-overlay-strength, 72%),
    transparent
  );
}

.tk-listing-header--cover .tk-listing-header-body {
  position: relative;
  z-index: 1;
}

.tk-listing-header--cover .tk-listing-header-title {
  color: var(--listing-header-cover-text, #ffffff);
}

.tk-listing-header--cover .tk-listing-header-count,
.tk-listing-header--cover .tk-listing-header-description {
  color: color-mix(in srgb, var(--listing-header-cover-text, #ffffff) 80%, transparent);
}

.tk-listing-header--cover .tk-listing-header-count--badge {
  background: color-mix(in srgb, var(--listing-header-cover-text, #ffffff) 18%, transparent);
  color: var(--listing-header-cover-text, #ffffff);
}

@media (max-width: 1023px) {
  .tk-listing-header-title {
    font-size: var(--listing-header-title-size-tablet, var(--listing-header-title-size, clamp(26px, 4.5vw, 40px)));
  }
}

@media (max-width: 767px) {
  .tk-listing-header-logo {
    inline-size: 64px;
    block-size: 64px;
    padding: 8px;
  }

  .tk-listing-header--with-logo .tk-listing-header-body {
    gap: 14px;
  }

  /* Logo above the copy: the name and description get the full width, and
     the logo keeps the block's alignment. */
  .tk-listing-header--logo-above-mobile .tk-listing-header-body,
  .tk-listing-header--logo-above-mobile.tk-listing-header--align-end .tk-listing-header-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-listing-header--logo-above-mobile.tk-listing-header--align-center .tk-listing-header-body {
    align-items: center;
  }

  .tk-listing-header--logo-above-mobile.tk-listing-header--align-end .tk-listing-header-body {
    align-items: flex-end;
  }

  .tk-listing-header--logo-above-mobile .tk-listing-header-copy {
    width: 100%;
  }

  .tk-listing-header--cover {
    --block-default-padding-block: 24px;
    --block-default-padding-inline: 16px;
  }

  .tk-listing-header-title {
    font-size: var(--listing-header-title-size-mobile, var(--listing-header-title-size-tablet, var(--listing-header-title-size, clamp(26px, 4.5vw, 40px))));
  }
}


.tk-pagination {
  width: 100%;
}

.tk-pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tk-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-pagination-page,
.tk-pagination-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--pagination-item-size, 38px);
  min-height: var(--pagination-item-size, 38px);
  padding-inline: 12px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--pagination-item-border, var(--pagination-item-border-default, var(--tk-color-border)));
  border-start-start-radius: var(--pagination-item-radius-ts, var(--pagination-item-radius-default, var(--tk-control-radius, var(--tk-button-radius))));
  border-start-end-radius: var(--pagination-item-radius-te, var(--pagination-item-radius-default, var(--tk-control-radius, var(--tk-button-radius))));
  border-end-end-radius: var(--pagination-item-radius-be, var(--pagination-item-radius-default, var(--tk-control-radius, var(--tk-button-radius))));
  border-end-start-radius: var(--pagination-item-radius-bs, var(--pagination-item-radius-default, var(--tk-control-radius, var(--tk-button-radius))));
  background: var(--pagination-item-bg, var(--pagination-item-bg-default, var(--tk-color-surface)));
  color: var(--pagination-item-color, var(--tk-color-heading));
  text-decoration: none;
  transition: border-color var(--tk-dur-fast) ease, color var(--tk-dur-fast) ease;
}

.tk-pagination-page, .tk-pagination-step {
  font-family: var(--pagination-text-font, inherit);
  font-size: var(--pagination-text-size, 14px);
  font-weight: var(--pagination-text-weight, 600);
  line-height: var(--pagination-text-line-height, inherit);
  letter-spacing: var(--pagination-text-letter-spacing, normal);
  text-transform: var(--pagination-text-transform, none);
}

@media (max-width: 1023px) {
  .tk-pagination-page, .tk-pagination-step {
    font-size: var(--pagination-text-size-tablet, var(--pagination-text-size, 14px));
  }
}

@media (max-width: 767px) {
  .tk-pagination-page, .tk-pagination-step {
    font-size: var(--pagination-text-size-mobile, var(--pagination-text-size-tablet, var(--pagination-text-size, 14px)));
  }
}


.tk-pagination-step--icon-only {
  padding-inline: 0;
  width: var(--pagination-item-size, 38px);
}

.tk-pagination-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

:dir(rtl) .tk-pagination-step-icon,
[dir="rtl"] .tk-pagination-step-icon {
  transform: scaleX(-1);
}

.tk-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: var(--pagination-item-size, 38px);
  color: var(--pagination-item-color, var(--tk-color-muted-foreground));
  font-size: 16px;
  font-weight: 700;
  user-select: none;
}

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

.tk-pagination-page:hover,
.tk-pagination-step:hover {
  border-color: var(--pagination-accent, var(--tk-color-primary));
  color: var(--pagination-accent, var(--tk-color-primary));
}

.tk-pagination-page--current {
  border-color: var(--bt-bg, var(--tk-color-primary));
  background: var(--bt-bg, var(--tk-color-primary));
  color: var(--bt-text, var(--tk-color-primary-foreground));
}

.tk-pagination-step--disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tk-pagination-step--disabled:hover {
  border-color: var(--pagination-item-border, var(--pagination-item-border-default, var(--tk-color-border)));
  color: var(--pagination-item-color, var(--tk-color-heading));
}

/* Shapes: CSS-only looks on the same markup, each tuning the "-default" branch of the variables above. */
.tk-pagination--pill .tk-pagination-page,
.tk-pagination--pill .tk-pagination-step {
  --pagination-item-radius-default: var(--tk-round-radius, 999px);
}

.tk-pagination--text .tk-pagination-page,
.tk-pagination--text .tk-pagination-step {
  min-width: auto;
  min-height: auto;
  padding-inline: 6px;
  border-color: transparent;
  --pagination-item-bg-default: transparent;
  --pagination-item-border-default: transparent;
}

.tk-pagination--text .tk-pagination-page--current {
  border-color: transparent;
  background: transparent;
  color: var(--bt-bg, var(--tk-color-primary));
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The phone's page window replaces the theme's; only one list ever shows. */
.tk-pagination-pages--narrow {
  display: none;
}

/* A phone keeps the whole control on one row: the short page window, arrows
   as icons (their label stays for screen readers), no first/last steps, and
   every button a full touch target. */
@media (max-width: 767px) {
  .tk-pagination-inner,
  .tk-pagination-pages {
    flex-wrap: nowrap;
  }

  .tk-pagination-pages--wide {
    display: none;
  }

  .tk-pagination-pages--narrow {
    display: flex;
  }

  .tk-pagination-step--first-last {
    display: none;
  }

  .tk-pagination-step--labelled {
    position: relative;
    width: max(var(--pagination-item-size, 38px), var(--tk-touch, 44px));
    padding-inline: 0;
  }

  .tk-pagination-step--labelled .tk-pagination-step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .tk-pagination-page,
  .tk-pagination-step {
    min-width: max(var(--pagination-item-size, 38px), var(--tk-touch, 44px));
    min-height: max(var(--pagination-item-size, 38px), var(--tk-touch, 44px));
  }

  .tk-pagination-ellipsis {
    min-width: 20px;
    height: max(var(--pagination-item-size, 38px), var(--tk-touch, 44px));
  }
}


.tk-search-results {
  width: 100%;
}

.tk-search-summary {
  margin: 0 0 20px;
  color: var(--tk-color-muted-foreground);
  font-size: 14px;
}

.tk-search-empty {
  border: 1px dashed var(--tk-color-border);
  border-radius: var(--tk-control-radius, 12px);
  padding: 48px 24px;
  text-align: center;
}

.tk-search-empty-title {
  margin: 0;
  color: var(--tk-color-heading);
  font-family: var(--tk-font-heading);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
}

.tk-search-empty-message {
  margin: 8px 0 0;
  color: var(--tk-color-muted-foreground);
  font-size: 14px;
  line-height: 1.7;
}


.tk-section {
  display: flex;
  flex-direction: column;
  justify-content: var(--sc-justify, center);
  --block-default-padding-block: var(--tk-section-padding-y);
}

/* The content sits in the container (shared styles). A Section is as tall as
   its content: the editor sizes an empty Section's drop zone itself. */

/*
 * Auto-collapse: hide the section when its inner slot produces no visible block.
 * :empty matches a .tk-section-inner with no child nodes at all (storefront SSR case).
 * :has(> :empty:only-child) catches the Puck render where one empty wrapper div is injected.
 */
.tk-section:has(> .tk-section-inner:empty),
.tk-section:has(> .tk-section-inner > :empty:only-child) {
  display: none;
}


.tk-section {
  min-height: var(--sc-min-height, auto);
}

@media (max-width: 1023px) {
  .tk-section {
    min-height: var(--sc-min-height-tablet, var(--sc-min-height, auto));
  }
}

@media (max-width: 767px) {
  .tk-section {
    min-height: var(--sc-min-height-mobile, var(--sc-min-height-tablet, var(--sc-min-height, auto)));
  }
}


/* Edges reach past the band into its neighbour, so the band is lifted above
   the Sections beside it. Each edge is painted with the band's own background
   (or its own colour, below)
   and cut to its shape by a mask. */
.tk-section--edged {
  z-index: 1;
}

.tk-section > .tk-section-edge {
  position: absolute;
  inset-inline: 0;
  background-color: var(--block-container-background, transparent);
  background-image: var(--block-container-background-image, none);
  background-size: cover;
  pointer-events: none;
  -webkit-mask: var(--sc-edge-mask) no-repeat 0 0 / 100% 100%;
  mask: var(--sc-edge-mask) no-repeat 0 0 / 100% 100%;
}

.tk-section > .tk-section-edge--top {
  inset-block-end: 100%;
}

.tk-section > .tk-section-edge--bottom {
  inset-block-start: 100%;
  transform: scaleY(-1);
}

/* An edge in a colour of its own, for a band coloured by a block inside it. */
.tk-section--edge-colored > .tk-section-edge {
  background: var(--sc-edge-color);
}

/* Arches repeat along the edge, each twice as wide as the edge is tall. */
.tk-section > .tk-section-edge--arches {
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: calc(var(--sc-edge-block-size) * 2) 100%;
  mask-size: calc(var(--sc-edge-block-size) * 2) 100%;
}


.tk-section > .tk-section-edge {
  block-size: var(--sc-edge-height, 48px);
  --sc-edge-block-size: var(--sc-edge-height, 48px);
}

@media (max-width: 1023px) {
  .tk-section > .tk-section-edge {
    block-size: var(--sc-edge-height-tablet, var(--sc-edge-height, 48px));
    --sc-edge-block-size: var(--sc-edge-height-tablet, var(--sc-edge-height, 48px));
  }
}

@media (max-width: 767px) {
  .tk-section > .tk-section-edge {
    block-size: var(--sc-edge-height-mobile, var(--sc-edge-height-tablet, var(--sc-edge-height, 48px)));
    --sc-edge-block-size: var(--sc-edge-height-mobile, var(--sc-edge-height-tablet, var(--sc-edge-height, 48px)));
  }
}

/* Parallax: the band stops painting its background image, and a layer behind
   its content paints it instead - taller than the band, so it has room to
   move. The layer clips itself, so the band's edges still reach outside it.
   --sc-parallax runs from -1 (the band coming in at the bottom of the screen)
   to 1 (leaving at the top), written by the layer itself; it slides
   the image from 15% of the band's height up to 15% down, so the image moves
   slower than the page. Unset - no script, reduced motion - it sits centred. */
.tk-block.tk-section--parallax {
  isolation: isolate;
  background-image: none;
}

.tk-section > .tk-section-parallax {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.tk-section-parallax::before {
  content: "";
  position: absolute;
  inset-block: -15%;
  inset-inline: 0;
  background-image: var(--block-container-background-image, none);
  background-size: var(--block-container-background-fit, cover);
  background-position: var(--block-container-background-position, center);
  background-repeat: no-repeat;
  /* The layer is 130% of the band, so 15% of the band is 15 / 1.3 of it. */
  transform: translate3d(0, calc(var(--sc-parallax, 0) * 15% / 1.3), 0);
  will-change: transform;
}

@media (max-width: 767px) {
  .tk-section-parallax::before {
    background-image: var(--block-container-background-image-mobile, var(--block-container-background-image, none));
  }
}
/* Video: behind the content and its overlay, over the background image,
   which shows until the video plays and then fades under it. */
.tk-section--video {
  isolation: isolate;
}

.tk-section > .tk-section-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--tk-dur-slow) ease;
}

.tk-section > .tk-section-video.is-playing {
  opacity: 1;
}
/* Anchored: a same-page link stops the Section just under the sticky header
   (its bottom edge, published by the header), and the jump scrolls smoothly
   unless the shopper asks for reduced motion. */
.tk-section[id] {
  scroll-margin-top: var(--tk-sticky-top, 0px);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.tk-section[id]) {
    scroll-behavior: smooth;
  }
}
