
.tk-heading {
  color: var(--hd-color, var(--tk-color-heading));
  font-family: var(--hd-font, var(--tk-font-heading));
  font-weight: var(--hd-weight, 700);
  font-style: var(--hd-style, normal);
  line-height: var(--hd-line-height, 1.25);
  letter-spacing: var(--hd-letter-spacing, normal);
  text-transform: var(--hd-transform, none);
  text-wrap: balance;
  max-width: var(--hd-max-width, none);
}

/* Narrowed by its max width, the column sits on the side its text is aligned
   to (centred only when the text is centred). */

.tk-heading--constrained {
  margin-inline-start: var(--hd-ms, 0);
  margin-inline-end: var(--hd-me, auto);
}

@media (max-width: 1023px) {
  .tk-heading--constrained {
    margin-inline-start: var(--hd-ms-tablet, var(--hd-ms, 0));
    margin-inline-end: var(--hd-me-tablet, var(--hd-me, auto));
  }
}

@media (max-width: 767px) {
  .tk-heading--constrained {
    margin-inline-start: var(--hd-ms-mobile, var(--hd-ms-tablet, var(--hd-ms, 0)));
    margin-inline-end: var(--hd-me-mobile, var(--hd-me-tablet, var(--hd-me, auto)));
  }
}

/* The text is painted by a gradient from the heading colour to the second one,
   across the words only (each line on its own) and from where they start. */
.tk-heading--gradient .tk-heading__text {
  background-image: linear-gradient(
    to right,
    var(--hd-color, var(--tk-color-heading)),
    var(--hd-gradient-to)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[dir="rtl"] .tk-heading--gradient .tk-heading__text {
  background-image: linear-gradient(
    to left,
    var(--hd-color, var(--tk-color-heading)),
    var(--hd-gradient-to)
  );
}
/* The backdrop word sits behind the heading, centred on it and aligned as its
   text is, never widening the page (overflow-x: clip) nor moving the layout. */
.tk-heading--backdrop {
  isolation: isolate;
  overflow-x: clip;
}

.tk-heading > .tk-heading__backdrop {
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: 50%;
  font-size: 2.6em;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  white-space: nowrap;
  user-select: none;
}

.tk-heading--backdrop-outline > .tk-heading__backdrop {
  color: transparent;
  -webkit-text-stroke: 1.5px
    color-mix(in srgb, var(--hd-color, var(--tk-color-heading)) 22%, transparent);
}

.tk-heading--backdrop-faint > .tk-heading__backdrop {
  color: color-mix(in srgb, var(--hd-color, var(--tk-color-heading)) 8%, transparent);
}


.tk-heading {
  font-size: var(--hd-size, var(--hd-size-default, inherit));
  text-align: var(--hd-align, start);
}

@media (max-width: 1023px) {
  .tk-heading {
    font-size: var(--hd-size-tablet, var(--hd-size, var(--hd-size-default, inherit)));
    text-align: var(--hd-align-tablet, var(--hd-align, start));
  }
}

@media (max-width: 767px) {
  .tk-heading {
    font-size: var(--hd-size-mobile, var(--hd-size-tablet, var(--hd-size, var(--hd-size-default, inherit))));
    text-align: var(--hd-align-mobile, var(--hd-align-tablet, var(--hd-align, start)));
  }
}


.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;
  }
}


.tk-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Start keeps the original inline box; other alignments need the full row. */
.tk-sort-control--align-center {
  display: flex;
  justify-content: center;
}

.tk-sort-control--align-end {
  display: flex;
  justify-content: flex-end;
}

/* The heading (title + summary) takes the start of the row; the sort sits at
   the end. Stacks on mobile, a single centered row from the tablet up. */
.tk-sort-control--summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

@media (min-width: 768px) {
  .tk-sort-control--summary {
    flex-direction: row;
    align-items: center;
  }
}

.tk-sort-heading {
  margin-inline-end: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tk-sort-title {
  margin: 0;
  color: var(--sort-title-color, var(--tk-color-heading));
  font-family: var(--sort-title-font, var(--tk-font-heading, inherit));
  font-size: var(--sort-title-size, 24px);
  font-weight: var(--sort-title-weight, 700);
  line-height: var(--sort-title-line-height, 1.2);
  letter-spacing: var(--sort-title-letter-spacing, normal);
}

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

.tk-sort-label {
  color: var(--sort-control-label-color, var(--tk-color-muted-foreground));
  font-family: var(--sort-control-label-font, inherit);
  font-size: var(--sort-control-label-size, 14px);
  font-weight: var(--sort-control-label-weight, inherit);
  line-height: var(--sort-control-label-line-height, normal);
  letter-spacing: var(--sort-control-label-letter-spacing, normal);
  text-transform: var(--sort-control-label-transform, none);
  white-space: nowrap;
}

.tk-sort-select {
  min-height: 40px;
  padding-inline: 12px;
  border-style: solid;
  border-width: var(--tk-input-border-width);
  border-color: var(--sort-control-border, var(--tk-input-border));
  
  border-start-start-radius: var(--sort-control-radius-ts, var(--tk-input-radius-top-start));
  border-start-end-radius: var(--sort-control-radius-te, var(--tk-input-radius-top-end));
  border-end-end-radius: var(--sort-control-radius-be, var(--tk-input-radius-bottom-end));
  border-end-start-radius: var(--sort-control-radius-bs, var(--tk-input-radius-bottom-start));

  background: var(--sort-control-bg, var(--tk-input-bg));
  color: var(--sort-control-text, var(--tk-input-text));
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.tk-sort-select:focus-visible {
  outline: 2px solid var(--tk-input-focus);
  outline-offset: 1px;
}

/* ── Pills ── */
.tk-sort-control--pills {
  flex-wrap: wrap;
  max-width: 100%;
}

.tk-sort-pills {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-sort-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--sort-control-border, var(--tk-color-border));
  
  border-start-start-radius: var(--sort-control-radius-ts, var(--tk-input-radius-top-start));
  border-start-end-radius: var(--sort-control-radius-te, var(--tk-input-radius-top-end));
  border-end-end-radius: var(--sort-control-radius-be, var(--tk-input-radius-bottom-end));
  border-end-start-radius: var(--sort-control-radius-bs, var(--tk-input-radius-bottom-start));

  background: var(--sort-control-bg, var(--tk-color-surface));
  color: var(--sort-control-text, var(--tk-color-heading));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--tk-dur-fast) ease,
    border-color var(--tk-dur-fast) ease,
    color var(--tk-dur-fast) ease;
}

a.tk-sort-pill:hover {
  border-color: var(--sort-control-accent, var(--tk-color-primary));
  color: var(--sort-control-accent, var(--tk-color-primary));
}

a.tk-sort-pill:focus-visible {
  outline: 2px solid var(--sort-control-accent, var(--tk-color-primary));
  outline-offset: 2px;
}

.tk-sort-pill[aria-current="true"] {
  border-color: var(--bt-border, var(--bt-bg, var(--sort-control-accent, var(--tk-color-primary))));
  background: var(--bt-bg, var(--sort-control-accent, var(--tk-color-primary)));
  color: var(--bt-text, var(--tk-color-primary-foreground));
}

@media (max-width: 1023px) {
  .tk-sort-label {
    font-size: var(--sort-control-label-size-tablet, var(--sort-control-label-size, 14px));
  }
}

@media (max-width: 767px) {
  .tk-sort-label {
    font-size: var(--sort-control-label-size-mobile, var(--sort-control-label-size-tablet, var(--sort-control-label-size, 14px)));
  }

  /* A long row of pills scrolls sideways instead of stacking into a wall. */
  .tk-sort-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}
