.cc_UvrFCXV67c_DdkAU79UDK .sol-cats {
  padding-block: var(--sol-section-space);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats__inner {
  display: grid;
  gap: var(--sol-space-5);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats__head {
  display: grid;
  gap: var(--sol-space-1);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats__title {
  margin: 0;
  color: var(--sol-ink);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats__subtitle {
  margin: 0;
  color: var(--sol-text-muted);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats__track {
  display: grid;
  grid-template-columns: repeat(var(--sol-cats-columns, 4), minmax(0, 1fr));
  gap: var(--sol-space-4);
}

@media (max-width: 1024px) {
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  /* Two columns: every category is visible without a sideways swipe (CRO checklist). */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid .sol-cats__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sol-space-3);
  }

  /* An odd count: the last category spans both columns as a wide card instead of standing alone. Each tile sits
     in its own `display: contents` wrapper, so the count is read on the wrappers. */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid:not(.sol-cats--feature) .sol-cats__track > * > :last-child:nth-child(odd) > .sol-ctile {
    grid-column: 1 / -1;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid:not(.sol-cats--feature) .sol-cats__track > * > :last-child:nth-child(odd) .sol-ctile__media {
    aspect-ratio: 16 / 9;
  }

  /* Featured first card takes the whole first row, so an orphan appears when the rest is odd (last card even). */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid.sol-cats--feature .sol-cats__track > * > :last-child:nth-child(even):not(:first-child) > .sol-ctile {
    grid-column: 1 / -1;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid.sol-cats--feature .sol-cats__track > * > :last-child:nth-child(even):not(:first-child) .sol-ctile__media {
    aspect-ratio: 16 / 9;
  }

  /* Swipeable row with a peek of the next card. */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--scroll .sol-cats__track {
    grid-template-columns: none;
    grid-auto-columns: 44%;
    grid-auto-flow: column;
    gap: var(--sol-space-3);
    margin-inline: calc(var(--sol-gutter) * -1);
    padding: 0 var(--sol-gutter) var(--sol-space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--sol-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--scroll .sol-cats__track::-webkit-scrollbar {
    display: none;
  }
}

/* Featured first card (user, 29 Oct: the even wall of tall photos was too long). Wide screens: a bento, the first card
   two columns by two rows, the others beside and below it (9 cards in 4 columns fill 3 rows exactly); its photo
   fills the area the rows give it. Phones: the first card is a wide banner across both columns. Each card sits in
   its own `display: contents` wrapper, so the first card is read on the wrappers. */
.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track {
  grid-auto-flow: dense;
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track > * > :first-child > .sol-ctile {
  grid-column: span 2;
  grid-row: span 2;
  /* The photo is laid over the card, so the card has no height of its own: alone (or with one neighbour) it would
     collapse. */
  min-height: 320px;
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__body {
  padding: var(--sol-space-5);
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__title {
  font-size: 28px;
}

.cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__arrow {
  width: 26px;
  height: 26px;
}

@media (max-width: 767px) {
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--grid .sol-cats__track > * > :first-child > .sol-ctile {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--grid .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__media {
    position: static;
    aspect-ratio: 16 / 10;
  }

  /* Keep the swipe row: the bento's dense row flow above would otherwise stack the cards. */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track {
    grid-auto-flow: column;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track > * > :first-child > .sol-ctile {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__media {
    position: static;
    aspect-ratio: var(--sol-tile-ratio-m, var(--sol-tile-ratio, 3 / 4));
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__body {
    padding: var(--sol-space-3);
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__title {
    font-size: 19px;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--scroll .sol-cats__track > * > :first-child > .sol-ctile .sol-ctile__arrow {
    width: 18px;
    height: 18px;
  }
}

/* Small phone cards (about 170 px wide): titles may take two whole lines, never three (user, 29 Oct), so even
   "Seyahat & Pasaport Çantası" fits next to the small arrow. The featured wide card gets a larger title. */
@media (max-width: 767px) {
  /* Brief S27: readable on phones too (was 14px, shrunk to fit one line); two lines are allowed. */
  /* 3 Nov revision (item 18): larger white titles with a small diagonal arrow (no label box to fit any more). */
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid .sol-ctile__title {
    font-size: 17px;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid .sol-ctile__body {
    gap: 2px 6px;
    padding: 10px;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid .sol-ctile__arrow {
    width: 16px;
    height: 16px;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--grid .sol-cats__track > * > :first-child .sol-ctile__body {
    padding: var(--sol-space-3) var(--sol-space-4);
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--grid .sol-cats__track > * > :first-child .sol-ctile__title {
    font-size: 21px;
  }

  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--feature.sol-cats--grid .sol-cats__track > * > :first-child .sol-ctile__arrow {
    width: 20px;
    height: 20px;
  }
}

/* 10 Nov audit: on 360 px phones (cards about 160 px) "Seyahat & Pasaport Çantası" needed three lines and was cut to
   "Seyahat & Pasaport…"; a little smaller there, so it stays whole in two (user, 29 Oct: two lines, never three). */
@media (max-width: 374px) {
  .cc_UvrFCXV67c_DdkAU79UDK .sol-cats--grid .sol-ctile__title {
    font-size: 15px;
  }
}
