
.tk-category-collection {
  --block-default-padding-block: 0;
  --block-default-padding-inline: 0;
}

.tk-category-grid {
  display: grid;
  grid-template-columns: repeat(var(--cc-columns, 4), minmax(0, 1fr));
  gap: var(--cc-gap, 18px);
}

.tk-category-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: all var(--tk-dur-base) ease;
}

.tk-category-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--tk-color-primary) 8%, var(--tk-color-muted));
}

.tk-category-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tk-dur-slow) var(--tk-ease-snap);
}

.tk-category-card:hover .tk-category-card-media img {
  transform: scale(1.08);
}

.tk-category-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.34), transparent),
    color-mix(in srgb, var(--tk-color-primary) 12%, #eeeeee);
}

.tk-category-name {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: var(--cc-name-font, inherit);
  font-weight: var(--cc-name-weight, 800);
  line-height: var(--cc-name-line-height, 1.35);
  letter-spacing: var(--cc-name-letter-spacing, normal);
  text-transform: var(--cc-name-transform, none);
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--cc-name-lines, 1);
  line-clamp: var(--cc-name-lines, 1);
}

.tk-category-count {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
}

/* ─────────────────────────── Overlay ─────────────────────────── */
.tk-category-collection--overlay .tk-category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cc-ratio, 4 / 3);
  border-start-start-radius: var(--cc-card-radius-ts, var(--tk-card-radius, 14px));
  border-start-end-radius: var(--cc-card-radius-te, var(--tk-card-radius, 14px));
  border-end-end-radius: var(--cc-card-radius-be, var(--tk-card-radius, 14px));
  border-end-start-radius: var(--cc-card-radius-bs, var(--tk-card-radius, 14px));
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
}

.tk-category-collection--overlay .tk-category-card-media {
  position: absolute;
  inset: 0;
}

.tk-category-collection--overlay .tk-category-card-overlay {
  position: absolute;
  inset: 0;
  transition: opacity var(--tk-dur-base) ease;
}

.tk-category-collection--overlay .tk-category-card-body {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  padding: 14px 16px;
  z-index: 1;
}

.tk-category-collection--overlay .tk-category-name {
  font-size: var(--cc-name-size, clamp(14px, 1.4vw, 18px));
}

/* ──────────────────────────── Tile ──────────────────────────── */
.tk-category-collection--tile .tk-category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-category-collection--tile .tk-category-card-media {
  width: 100%;
  aspect-ratio: var(--cc-ratio, 1 / 1);
  border-start-start-radius: var(--cc-card-radius-ts, var(--tk-card-radius, 14px));
  border-start-end-radius: var(--cc-card-radius-te, var(--tk-card-radius, 14px));
  border-end-end-radius: var(--cc-card-radius-be, var(--tk-card-radius, 14px));
  border-end-start-radius: var(--cc-card-radius-bs, var(--tk-card-radius, 14px));
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.04);
}

.tk-category-collection--tile .tk-category-card-overlay {
  display: none;
}

.tk-category-collection--tile .tk-category-card-body {
  padding: 2px 4px;
}

.tk-category-collection--tile .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-heading));
  font-size: var(--cc-name-size, 15px);
  transition: color var(--tk-dur-fast) ease;
}

.tk-category-collection--tile .tk-category-card:hover .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-primary));
}

.tk-category-collection--tile .tk-category-count {
  color: var(--tk-color-muted-foreground);
}

/* ─────────────────────────── Circle ─────────────────────────── */
.tk-category-collection--circle .tk-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.tk-category-collection--circle .tk-category-card-media {
  width: clamp(72px, 10vw, 130px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--tk-color-primary) 16%, transparent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.06);
  transition: transform var(--tk-dur-base) var(--tk-ease-spring), border-color var(--tk-dur-base) ease, box-shadow var(--tk-dur-slow) ease;
}

.tk-category-collection--circle .tk-category-card:hover .tk-category-card-media {
  transform: scale(1.06);
  border-color: var(--tk-color-primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tk-color-primary) 25%, transparent);
}

.tk-category-collection--circle .tk-category-card-overlay {
  display: none;
}

.tk-category-collection--circle .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-heading));
  font-size: var(--cc-name-size, 14px);
  transition: color var(--tk-dur-fast) ease;
}

.tk-category-collection--circle .tk-category-card:hover .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-primary));
}

.tk-category-collection--circle .tk-category-count {
  color: var(--tk-color-muted-foreground);
}

/* ─────────────────────────── Minimal ─────────────────────────── */
.tk-category-collection--minimal .tk-category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cc-ratio, 16 / 10);
  border-start-start-radius: var(--cc-card-radius-ts, var(--tk-card-radius, 16px));
  border-start-end-radius: var(--cc-card-radius-te, var(--tk-card-radius, 16px));
  border-end-end-radius: var(--cc-card-radius-be, var(--tk-card-radius, 16px));
  border-end-start-radius: var(--cc-card-radius-bs, var(--tk-card-radius, 16px));
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.05);
}

.tk-category-collection--minimal .tk-category-card-media {
  position: absolute;
  inset: 0;
}

.tk-category-collection--minimal .tk-category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.02) 0%, rgb(0 0 0 / 0.45) 100%);
}

.tk-category-collection--minimal .tk-category-card-body {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 6px 14px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--tk-round-radius, 999px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
  z-index: 1;
}

.tk-category-collection--minimal .tk-category-name {
  color: var(--cc-name-color, #0f172a);
  font-size: var(--cc-name-size, 13px);
  font-weight: 700;
}

.tk-category-collection--minimal .tk-category-count {
  display: none;
}

/* ─────────────────────────── Floating ─────────────────────────── */
.tk-category-collection--floating .tk-category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--cc-ratio, 4 / 3);
  border-start-start-radius: var(--cc-card-radius-ts, var(--tk-card-radius, 20px));
  border-start-end-radius: var(--cc-card-radius-te, var(--tk-card-radius, 20px));
  border-end-end-radius: var(--cc-card-radius-be, var(--tk-card-radius, 20px));
  border-end-start-radius: var(--cc-card-radius-bs, var(--tk-card-radius, 20px));
  box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.08);
}

.tk-category-collection--floating .tk-category-card-media {
  position: absolute;
  inset: 0;
}

.tk-category-collection--floating .tk-category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.5) 100%);
}

.tk-category-collection--floating .tk-category-card-body {
  position: absolute;
  inset-block-end: 16px;
  inset-inline: 16px;
  padding: 12px 16px;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: var(--tk-control-radius, 14px);
  text-align: center;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
  z-index: 1;
  transition: transform var(--tk-dur-base) var(--tk-ease-spring), background var(--tk-dur-base) ease;
}

.tk-category-collection--floating .tk-category-card:hover .tk-category-card-body {
  transform: translateY(-4px);
  background: #ffffff;
}

.tk-category-collection--floating .tk-category-name {
  color: var(--cc-name-color, #0f172a);
  font-size: var(--cc-name-size, 15px);
  font-weight: 800;
}

.tk-category-collection--floating .tk-category-count {
  /* Fixed like the name: the glass under it is white in both themes. */
  color: #64748b;
  font-size: 12px;
}

/* ─────────────────────────── Compact ─────────────────────────── */
.tk-category-collection--compact .tk-category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--tk-color-surface);
  border: 1px solid var(--tk-color-border);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.tk-category-collection--compact .tk-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--tk-color-primary);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.08);
}

.tk-category-collection--compact .tk-category-card-media {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
}

.tk-category-collection--compact .tk-category-card-overlay {
  display: none;
}

.tk-category-collection--compact .tk-category-card-body {
  display: flex;
  flex-direction: column;
  text-align: start;
  min-width: 0;
}

.tk-category-collection--compact .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-heading));
  font-size: var(--cc-name-size, 13px);
  font-weight: 700;
}

.tk-category-collection--compact .tk-category-count {
  color: var(--tk-color-muted-foreground);
  font-size: 11px;
}

/* ──────────────────── Featured grid layout ──────────────────── */
/* The first card spans two columns and two rows (see
   setFeaturedPlacementVariables); dense flow lets the rest fill around it. */
.tk-category-collection--featured .tk-category-grid {
  grid-auto-flow: dense;
}

.tk-category-collection--featured .tk-category-card--featured {
  grid-column: var(--cc-feature-column, span 2);
  grid-row: var(--cc-feature-row, span 2);
  /* Its height comes from the rows it spans; the floor covers a grid with
     no other card to size those rows. */
  aspect-ratio: auto;
  min-height: 240px;
}

.tk-category-collection--featured .tk-category-card--featured .tk-category-name {
  font-size: calc(var(--cc-name-size, 18px) * 1.35);
  -webkit-line-clamp: 2;
}

.tk-category-collection--featured.tk-category-collection--overlay .tk-category-card--featured .tk-category-card-body {
  padding: clamp(16px, 2.4vw, 28px);
}

.tk-category-collection--featured.tk-category-collection--floating .tk-category-card--featured .tk-category-card-body {
  inset-inline: clamp(16px, 2.4vw, 28px);
  inset-block-end: clamp(16px, 2.4vw, 28px);
  padding: 14px 18px;
}

/* Overlay tones */
.tk-category-collection--tone-dark .tk-category-card-overlay {
  background: linear-gradient(to top, rgb(0 0 0 / 0.76), rgb(0 0 0 / 0.2) 44%, transparent);
}

.tk-category-collection--tone-primary .tk-category-card-overlay {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--tk-color-primary) 92%, transparent),
    color-mix(in srgb, var(--tk-color-primary) 40%, transparent) 44%,
    transparent
  );
}

.tk-category-collection--tone-surface .tk-category-card-overlay {
  background: linear-gradient(
    to top,
    var(--tk-color-surface),
    color-mix(in srgb, var(--tk-color-surface) 40%, transparent) 46%,
    transparent
  );
}

.tk-category-collection--tone-dark .tk-category-name,
.tk-category-collection--tone-primary .tk-category-name {
  color: var(--cc-name-color, #ffffff);
}

.tk-category-collection--tone-dark .tk-category-count,
.tk-category-collection--tone-primary .tk-category-count {
  color: rgb(255 255 255 / 0.78);
}

.tk-category-collection--tone-surface .tk-category-name {
  color: var(--cc-name-color, var(--tk-color-heading));
}

.tk-category-collection--tone-surface .tk-category-count {
  color: var(--tk-color-muted-foreground);
}

.tk-category-collection-empty {
  margin: 0;
  border: 1px dashed var(--tk-color-border);
  border-radius: var(--tk-control-radius, 8px);
  padding: 28px;
  color: var(--tk-color-muted-foreground);
  text-align: center;
}

@media (max-width: 1023px) {
  .tk-category-grid {
    grid-template-columns: repeat(var(--cc-columns-tablet, var(--cc-columns, 3)), minmax(0, 1fr));
    gap: var(--cc-gap-tablet, var(--cc-gap, 18px));
  }

  .tk-category-collection--featured .tk-category-card--featured {
    grid-column: var(--cc-feature-column-tablet, var(--cc-feature-column, span 2));
    grid-row: var(--cc-feature-row-tablet, var(--cc-feature-row, span 2));
  }

  .tk-category-collection--overlay .tk-category-name {
    font-size: var(--cc-name-size-tablet, var(--cc-name-size, clamp(14px, 1.4vw, 18px)));
  }

  .tk-category-collection--tile .tk-category-name,
  .tk-category-collection--circle .tk-category-name,
  .tk-category-collection--minimal .tk-category-name,
  .tk-category-collection--floating .tk-category-name,
  .tk-category-collection--compact .tk-category-name {
    font-size: var(--cc-name-size-tablet, var(--cc-name-size, 14px));
  }
}

@media (max-width: 767px) {
  .tk-category-grid {
    grid-template-columns: repeat(var(--cc-columns-mobile, var(--cc-columns-tablet, var(--cc-columns, 2))), minmax(0, 1fr));
    gap: var(--cc-gap-mobile, var(--cc-gap-tablet, var(--cc-gap, 18px)));
  }

  .tk-category-collection--featured .tk-category-card--featured {
    grid-column: var(--cc-feature-column-mobile, var(--cc-feature-column-tablet, var(--cc-feature-column, span 2)));
    grid-row: var(--cc-feature-row-mobile, var(--cc-feature-row-tablet, var(--cc-feature-row, span 2)));
  }

  .tk-category-collection--overlay .tk-category-name {
    font-size: var(--cc-name-size-mobile, var(--cc-name-size-tablet, var(--cc-name-size, clamp(14px, 1.4vw, 18px))));
  }

  .tk-category-collection--tile .tk-category-name,
  .tk-category-collection--circle .tk-category-name,
  .tk-category-collection--minimal .tk-category-name,
  .tk-category-collection--floating .tk-category-name,
  .tk-category-collection--compact .tk-category-name {
    font-size: var(--cc-name-size-mobile, var(--cc-name-size-tablet, var(--cc-name-size, 14px)));
  }
}


.tk-product-collection {
  --block-default-padding-block: 0;
  --block-default-padding-inline: 0;
}

/* Tabs on a row of their own, between the header and the products. */
.tk-product-collection-tab-strip:not(.tk-product-collection-tabs > *) {
  margin-block-end: var(--collection-header-spacing, 26px);
}

.tk-product-collection-empty {
  margin: 0;
  border: 1px dashed var(--tk-color-border);
  border-radius: var(--tk-control-radius, 8px);
  padding: 28px;
  color: var(--tk-color-muted-foreground);
  text-align: center;
}

/*
 * Carousel layout: the block reuses the shared `CollectionCarousel` (same
 * arrows/drag/RTL as the category and brand rails). The slide width follows the
 * grid's own `columns` per device — `(100% - (n - 1) * gap) / n` — so a row
 * shows exactly `columns` cards and switching between grid and carousel keeps
 * the cards the same size. Both the width and the track gap read the same
 * responsive `--product-list-columns`/`--product-list-gap` as the grid so the two layouts align.
 */
.tk-product-collection--carousel .tk-collection-carousel__track {
  gap: var(--product-list-gap, 18px);
}

.tk-product-collection--carousel .tk-collection-carousel__track > * {
  flex-basis: calc(
    (100% - (var(--product-list-columns, 4) - 1) * var(--product-list-gap, 18px)) /
      var(--product-list-columns, 4)
  );
}

@media (max-width: 1023px) {
  .tk-product-collection--carousel .tk-collection-carousel__track {
    gap: var(--product-list-gap-tablet, var(--product-list-gap, 18px));
  }

  .tk-product-collection--carousel .tk-collection-carousel__track > * {
    flex-basis: calc(
      (100% - (var(--product-list-columns-tablet, var(--product-list-columns, 3)) - 1) * var(--product-list-gap-tablet, var(--product-list-gap, 18px))) /
        var(--product-list-columns-tablet, var(--product-list-columns, 3))
    );
  }
}

@media (max-width: 767px) {
  .tk-product-collection--carousel .tk-collection-carousel__track {
    gap: var(--product-list-gap-mobile, var(--product-list-gap-tablet, var(--product-list-gap, 18px)));
  }

  .tk-product-collection--carousel .tk-collection-carousel__track > * {
    flex-basis: calc(
      (100% - (var(--product-list-columns-mobile, var(--product-list-columns-tablet, var(--product-list-columns, 2))) - 1) * var(--product-list-gap-mobile, var(--product-list-gap-tablet, var(--product-list-gap, 18px)))) /
        var(--product-list-columns-mobile, var(--product-list-columns-tablet, var(--product-list-columns, 2)))
    );
  }
}


.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-slider-container {
  position: relative;
}

.tk-slider-container--centered {
  display: flex;
  min-height: var(--sl-min-height);
  flex-direction: column;
  justify-content: center;
}

.tk-slider-full {
  width: 100%;
  padding-block: var(--sl-container-padding-block, 0);
  padding-inline: var(--sl-container-padding-inline, 0);
}

.tk-slider-section {
  padding-block: var(--sl-container-padding-block, var(--tk-section-padding-y));
  padding-inline: var(--sl-container-padding-inline, 24px);
}

.tk-slider {
  position: relative;
}

.tk-slider .tk-car {
  position: relative;
}

.tk-slider .tk-car-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.tk-slider .tk-car-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.tk-slider .tk-car-viewport img {
  -webkit-user-drag: none;
  user-select: none;
}

.tk-slider .tk-tlay-scroll {
  display: flex;
  margin-inline-start: calc(var(--car-gap, 16px) * -1);
  backface-visibility: hidden;
}

.tk-slider .tk-car-slide {
  display: flex;
  min-width: 0;
  flex: 0 0 calc(100% / var(--spv-d, 3));
  flex-direction: column;
  padding-inline-start: var(--car-gap, 16px);
}

.tk-slider .tk-car-slide > * {
  min-width: 0;
  flex: 1;
}

.tk-slider .tk-car-slide > .tk-sl-frame {
  width: 100%;
  flex: 0 0 auto;
}

.tk-sl-frame {
  position: relative;
  min-height: 120px;
  height: var(--sl-h-d, 480px);
  overflow: hidden;
  border-radius: var(--tk-card-radius, 20px);
  color: #ffffff;
  transition:
    opacity var(--tk-dur-slow) ease,
    transform var(--tk-dur-slow) ease;
}

.tk-slider .tk-respbg {
  background: var(--bgs-d) !important;
}

.tk-ps-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.has-kb .tk-ps-bg {
  transform: scale(1.08);
}

.has-kb .tk-sl-frame.is-sel .tk-ps-bg {
  animation: tkSliderKenburns 7s ease-out forwards;
}

/* The slide's picture fills its frame, under the scrim and the copy. */
.tk-sl-img {
  position: absolute;
  inset: 0;
  display: block;
}

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

@keyframes tkSliderKenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .has-kb .tk-ps-bg,
  .has-kb .tk-sl-frame.is-sel .tk-ps-bg {
    animation: none;
    transform: none;
  }
}

.tk-sl-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tk-sl-content {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  display: flex;
  max-width: min(100%, 760px);
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sl-pad, 40px);
  text-align: start;
}

.tk-sl-content.al-center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.tk-sl-content.al-end {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.tk-sl-content.vp-top {
  top: 0;
}

.tk-sl-content.vp-bottom {
  bottom: 0;
}

.tk-sl-content.vp-center {
  top: 50%;
  translate: 0 -50%;
}

.tk-slider .tk-sl-title {
  margin: 0;
  color: var(--sl-title-c, #ffffff);
  font-family: var(--sl-title-font, var(--tk-font-heading, inherit));
  font-size: var(--sl-title-size, var(--sl-title-base, 34px));
  font-weight: var(--sl-title-weight, bold);
  line-height: var(--sl-title-line-height, 1.3);
  letter-spacing: var(--sl-title-letter-spacing, normal);
  text-transform: var(--sl-title-transform, none);
}

.tk-sl-sub {
  max-width: 560px;
  margin: 0;
  color: var(--sl-text-c, rgb(255 255 255 / 92%));
  font-size: 16px;
  line-height: 1.9;
}

.tk-slider-hero .tk-sl-title {
  --sl-title-base: 40px;
}

.tk-slider-centered .tk-sl-title {
  --sl-title-base: 46px;
}

.tk-slider-centered .tk-sl-content {
  max-width: min(100%, 820px);
}

.tk-slider-peekpro .tk-sl-content {
  padding: var(--sl-pad, 28px);
}

/* The slide button is the store button (.tk-button); a variant only gives it
   another colour, through the variables the button reads. */
.tk-slider .tk-sl-btn--primary {
  box-shadow: var(--tk-button-shadow);
}

.tk-slider .tk-sl-btn--light {
  --bt-bg: #ffffff;
  --bt-text: var(--tk-color-primary);
  --bt-hbg: #ffffff;
  --bt-htext: var(--tk-color-primary);
}

.tk-slider .tk-sl-btn--outline {
  --bt-text: var(--tk-button-outline, var(--tk-color-primary));
  --bt-border: var(--tk-button-outline, var(--tk-color-primary));
}

.tk-slider .tk-sl-btn--dark {
  --bt-bg: var(--tk-color-dark);
  --bt-text: #ffffff;
  --bt-hbg: var(--tk-color-dark);
  --bt-htext: #ffffff;
}

.tk-sl-count {
  position: absolute;
  z-index: 6;
  inset-block-start: 14px;
  inset-inline-end: 16px;
  padding: 5px 13px;
  border-radius: var(--tk-round-radius, 9999px);
  background: rgb(17 17 17 / 38%);
  backdrop-filter: blur(6px);
  color: #ffffff;
  direction: ltr;
  font-size: 12px;
  font-weight: 700;
}

.tk-sl-progress {
  position: absolute;
  z-index: 6;
  inset-block-start: calc(var(--sl-h-d, 480px) - 4px);
  inset-inline: 0;
  height: 4px;
  overflow: hidden;
  background: rgb(255 255 255 / 25%);
}

.tk-sl-progress i {
  display: block;
  height: 100%;
  background: var(--tnav-c, var(--tk-color-primary));
  transition: width var(--tk-dur-slow) ease;
}

.tk-slider .tk-tnav-wrap {
  position: relative;
}

.tk-slider .tk-tnav-btn {
  --tnav-sz: 40px;
  display: inline-grid;
  width: var(--tnav-sz);
  height: var(--tnav-sz);
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: var(--tk-round-radius, 50%);
  background: var(--tnav-bg, rgb(17 17 17 / 35%));
  box-shadow: 0 4px 14px rgb(17 17 17 / 10%);
  color: var(--tnav-c, #ffffff);
  cursor: pointer;
  transition:
    background var(--tk-dur-fast) ease,
    color var(--tk-dur-fast) ease,
    opacity var(--tk-dur-fast) ease;
  backdrop-filter: blur(6px);
}

.tk-slider .tk-tnav-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.tk-slider .tk-tnav-btn:focus-visible,
.tk-slider .tk-tnav-dot:focus-visible,
.tk-sl-thumb:focus-visible {
  outline: 2px solid var(--tnav-c, var(--tk-color-primary));
  outline-offset: 2px;
}

.tk-slider .tk-tnav-circle {
  border-radius: var(--tk-round-radius, 50%);
}

.tk-slider .tk-tnav-square {
  border-radius: var(--tk-control-radius, 10px);
}

.tk-slider .tk-tnav-pill {
  width: calc(var(--tnav-sz) * 1.3);
  border-radius: var(--tk-round-radius, 9999px);
}

.tk-slider .tk-tnav-side {
  position: absolute;
  z-index: 5;
  inset-block-start: calc(var(--sl-h-d, 480px) / 2);
  translate: 0 -50%;
}

.tk-slider .tk-tnav-side.prev {
  inset-inline-start: 14px;
}

.tk-slider .tk-tnav-side.next {
  inset-inline-end: 14px;
}

.tk-slider .tk-tnav-below {
  position: static;
  border-color: var(--tk-color-border);
  background: var(--tnav-bg, #ffffff);
  color: var(--tnav-c, var(--tk-color-primary));
  backdrop-filter: none;
}

.tk-slider .tk-tnav-under {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block-start: 14px;
}

.tk-slider .tk-tnav-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tk-slider .tk-tnav-dot {
  position: relative;
  padding: 0;
  border: none;
  background: #d3d3dc;
  cursor: pointer;
  transition: all var(--tk-dur-base) ease;
}

/* A dot is far smaller than a fingertip. Its touch target reaches --tk-touch
   tall, and sideways only as far as halfway to the next dot, so neighbouring
   dots never take each other's taps. */
.tk-slider .tk-tnav-dot::after {
  content: "";
  position: absolute;
  inset-block: min(0px, calc((100% - var(--tk-touch, 44px)) / 2));
  inset-inline: -3.5px;
}

.tk-slider .tk-tdot-circle {
  width: 8px;
  height: 8px;
  border-radius: var(--tk-round-radius, 50%);
}

.tk-slider .tk-tdot-circle.on {
  background: var(--tnav-c, var(--tk-color-primary));
  transform: scale(1.25);
}

.tk-slider .tk-tdot-dash {
  width: 16px;
  height: 5px;
  border-radius: var(--tk-control-radius, 3px);
}

.tk-slider .tk-tdot-dash.on {
  width: 26px;
  background: var(--tnav-c, var(--tk-color-primary));
}

.tk-slider-dots .tk-tnav-under,
.tk-slider-hero .tk-tnav-under,
.tk-slider-centered .tk-tnav-under,
.tk-slider-thumbspro .tk-tnav-under {
  position: absolute;
  z-index: 6;
  inset-block-start: calc(var(--sl-h-d, 480px) - 30px);
  inset-inline: 0;
  margin: 0;
  pointer-events: none;
}

.tk-slider-dots .tk-tnav-dots,
.tk-slider-hero .tk-tnav-dots,
.tk-slider-centered .tk-tnav-dots,
.tk-slider-thumbspro .tk-tnav-dots {
  pointer-events: auto;
}

/* That row is drawn over the slide's bottom edge, so copy placed at the bottom
   keeps clear of it - the slide's button never sits under the dots. */
:is(.tk-slider-dots, .tk-slider-hero, .tk-slider-centered, .tk-slider-thumbspro):has(.tk-tnav-under)
  .tk-sl-content.vp-bottom {
  padding-block-end: max(var(--sl-pad, 40px), 52px);
}

.tk-slider-dots .tk-tnav-dot,
.tk-slider-hero .tk-tnav-dot,
.tk-slider-centered .tk-tnav-dot,
.tk-slider-thumbspro .tk-tnav-dot {
  background: rgb(255 255 255 / 50%);
}

.tk-slider-dots .tk-tnav-dot.on,
.tk-slider-hero .tk-tnav-dot.on,
.tk-slider-centered .tk-tnav-dot.on,
.tk-slider-thumbspro .tk-tnav-dot.on {
  background: var(--tnav-c, #ffffff);
}

.is-scale .tk-sl-frame {
  opacity: 0.55;
  transform: scale(0.88);
}

.is-scale .tk-sl-frame.is-sel {
  opacity: 1;
  transform: none;
}

.tk-sl-frame.tk-ps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ps-split-bg, var(--tk-color-surface));
  color: var(--tk-color-text);
}

.tk-ps-split-txt {
  position: relative;
  min-height: 0;
}

.tk-ps-split-img {
  position: relative;
  min-height: 0;
  background-position: center;
  background-size: cover;
}

.tk-ps-split .tk-sl-content {
  position: absolute;
  inset-inline: 0;
}

.tk-ps-split .tk-sl-title {
  color: var(--sl-title-c, var(--tk-color-heading));
}

.tk-ps-split .tk-sl-sub {
  color: var(--sl-text-c, var(--tk-color-muted-foreground));
}

.tk-sl-thumbs {
  display: flex;
  gap: 8px;
  margin-block-start: 10px;
  overflow: hidden;
}

.tk-slider-thumbspro .tk-sl-thumbs {
  padding-inline: 12px;
}

.tk-sl-thumb {
  display: flex;
  min-width: 0;
  height: 64px;
  flex: 1 1 0;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--tk-card-radius, 12px);
  background-position: center;
  background-size: cover;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.55;
  transition: all var(--tk-dur-base) ease;
}

.tk-sl-thumb span {
  width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  background: linear-gradient(0deg, rgb(17 17 17 / 60%), transparent);
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-sl-thumb.on {
  border-color: var(--tnav-c, var(--tk-color-primary));
  opacity: 1;
}

[dir="rtl"] .tk-slider .tk-slider-chevron,
:dir(rtl) .tk-slider .tk-slider-chevron {
  transform: scaleX(-1);
}

@media (max-width: 1023px) {
  .tk-slider .tk-sl-title {
    font-size: var(--sl-title-size-tablet, var(--sl-title-size, var(--sl-title-base, 34px)));
  }

  .tk-slider-full {
    padding-block: var(--sl-container-padding-block-tablet, var(--sl-container-padding-block, 0));
    padding-inline: var(--sl-container-padding-inline-tablet, var(--sl-container-padding-inline, 0));
  }

  .tk-slider-section {
    padding-block: var(
      --sl-container-padding-block-tablet,
      var(--sl-container-padding-block, var(--tk-section-padding-y))
    );
    padding-inline: var(--sl-container-padding-inline-tablet, var(--sl-container-padding-inline, 24px));
  }
}

@media (max-width: 767px) {
  .tk-slider-full {
    padding-block: var(
      --sl-container-padding-block-mobile,
      var(--sl-container-padding-block-tablet, var(--sl-container-padding-block, 0))
    );
    padding-inline: var(
      --sl-container-padding-inline-mobile,
      var(--sl-container-padding-inline-tablet, var(--sl-container-padding-inline, 0))
    );
  }

  .tk-slider-section {
    padding-block: var(
      --sl-container-padding-block-mobile,
      var(
        --sl-container-padding-block-tablet,
        var(--sl-container-padding-block, var(--tk-section-padding-y))
      )
    );
    padding-inline: var(
      --sl-container-padding-inline-mobile,
      var(--sl-container-padding-inline-tablet, var(--sl-container-padding-inline, 24px))
    );
  }

  .tk-sl-frame {
    height: var(--sl-h-m, var(--sl-h-d, 480px));
  }

  .tk-sl-content {
    padding: 20px;
  }

  .tk-slider .tk-sl-title {
    font-size: var(
      --sl-title-size-mobile,
      calc(var(--sl-title-size-tablet, var(--sl-title-size, var(--sl-title-base, 34px))) * 0.68)
    );
  }

  .tk-sl-progress {
    inset-block-start: calc(var(--sl-h-m, var(--sl-h-d, 480px)) - 4px);
  }

  .tk-slider .tk-tnav-side {
    inset-block-start: calc(var(--sl-h-m, var(--sl-h-d, 480px)) / 2);
  }

  .tk-slider-dots .tk-tnav-under,
  .tk-slider-hero .tk-tnav-under,
  .tk-slider-centered .tk-tnav-under,
  .tk-slider-thumbspro .tk-tnav-under {
    inset-block-start: calc(var(--sl-h-m, var(--sl-h-d, 480px)) - 30px);
  }

  .tk-sl-thumb {
    height: 44px;
  }

  .tk-sl-frame.tk-ps-split {
    grid-template-columns: 1fr;
    grid-template-rows: 55% 45%;
  }

  .tk-ps-split-img {
    order: -1;
  }

  .tk-ps-split .tk-sl-content {
    padding: 18px;
  }
}
