.tka-home-selection {
  --tka-cream: #f2f0e9;
  --tka-green: #a09f72;
  --tka-terracotta: #a25a3c;
  --tka-text: #28251f;
  width: 100%;
  margin: 30px 0;
  color: var(--tka-text);
  font-family: inherit;
}

.tka-home-selection,
.tka-home-selection * {
  box-sizing: border-box;
}

.tka-home-selection__products-block {
  margin: 0;
}

.tka-home-selection__products-block > .products-section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  color: var(--tka-text);
  font-family: inherit;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: .02em;
  text-align: center;
  text-transform: none !important;
}

.tka-home-selection__products-block > .products-section-title > span {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
}

.tka-home-selection__products-block > .products-section-title::before,
.tka-home-selection__products-block > .products-section-title::after {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: 1px !important;
  flex: 1 1 0;
  margin: 0 !important;
  border: 0 !important;
  background: rgba(160, 159, 114, .32) !important;
  content: "" !important;
  transform: none !important;
}

.tka-home-selection__products-block > .products {
  margin-bottom: 0;
}

.tka-home-selection__product-grid.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 26px);
  width: 100%;
  margin: 0 !important;
}

.tka-home-selection__product-grid.products > * {
  display: flex !important;
  flex-direction: column;
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tka-home-selection__product-grid--random.products > *:nth-child(n + 5) {
  display: none !important;
}

.tka-home-selection__product-grid--random.products > .tka-random-product--visible {
  display: flex !important;
}

.tka-home-selection__product-grid .product-miniature,
.tka-home-selection__product-grid .product {
  display: flex !important;
  flex-direction: column;
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}

.tka-home-selection__product-grid .thumbnail-container {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
}

.tka-home-selection__product-grid .product-description {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
}

.tka-home-selection__product-grid .an_productattributes {
  margin-top: auto !important;
}

.tka-home-selection__product-grid .thumbnail-container,
.tka-home-selection__product-grid .product-thumbnail,
.tka-home-selection__product-grid .product-thumbnail img {
  width: 100% !important;
  max-width: 100% !important;
}

.tka-scent-picker {
  margin: 28px 0;
  padding: 28px clamp(18px, 3vw, 34px) 28px;
  border-top: 1px solid rgba(160, 159, 114, .34);
  border-bottom: 1px solid rgba(160, 159, 114, .34);
  background: var(--tka-cream);
}

.tka-scent-picker__heading {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  text-align: center;
}

.tka-scent-picker__heading h2 {
  margin: 0;
  color: var(--tka-green);
  font-family: inherit;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.18;
}

.tka-scent-picker__heading p {
  margin: 7px 0 0;
  color: #615d53;
  font-size: 15px;
  line-height: 1.5;
}

.tka-scent-picker__line {
  height: 1px;
  background: rgba(160, 159, 114, .32);
}

.tka-scent-picker__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tka-scent-card {
  position: relative;
  display: flex;
  width: calc(var(--tka-scent-basis) - var(--tka-scent-gap-offset));
  max-width: calc(var(--tka-scent-basis) - var(--tka-scent-gap-offset));
  min-width: 0;
  min-height: 172px;
  flex: 0 1 calc(var(--tka-scent-basis) - var(--tka-scent-gap-offset));
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 14px 18px;
  overflow: hidden;
  color: var(--tka-text) !important;
  border: 1px solid rgba(160, 159, 114, .25);
  background: rgba(255, 255, 255, .82);
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tka-scent-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--tka-scent-color);
  content: "";
}

.tka-scent-card__marker {
  display: block;
  width: 17px;
  height: 17px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--tka-scent-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tka-scent-color) 16%, transparent);
}

.tka-scent-card h3 {
  margin: 0 0 8px;
  color: var(--tka-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.tka-scent-card p {
  margin: 0 0 16px;
  color: #6c675d;
  font-size: 13px;
  line-height: 1.4;
}

.tka-scent-card__cta {
  margin-top: auto;
  color: var(--tka-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tka-scent-card:hover,
.tka-scent-card:focus-visible {
  border-color: var(--tka-scent-color);
  box-shadow: 0 9px 24px rgba(58, 51, 39, .08);
  transform: translateY(-3px);
}

.tka-scent-card:focus-visible {
  outline: 2px solid var(--tka-terracotta);
  outline-offset: 3px;
}

.tka-home-selection__products-block--new {
  margin-top: 0;
}

@media (max-width: 991px) {
  .tka-scent-card {
    width: calc(var(--tka-scent-tablet-basis) - var(--tka-scent-tablet-gap-offset));
    max-width: calc(var(--tka-scent-tablet-basis) - var(--tka-scent-tablet-gap-offset));
    flex-basis: calc(var(--tka-scent-tablet-basis) - var(--tka-scent-tablet-gap-offset));
  }
}

@media (max-width: 767px) {
  .tka-home-selection,
  .tka-home-selection__products-block,
  .tka-scent-picker {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .tka-home-selection__product-grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-height: 1px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .tka-home-selection__product-grid.products > .product-miniature:nth-child(-n + 4),
  .tka-home-selection__product-grid--random.products > .tka-random-product--visible {
    display: flex !important;
    flex-direction: column;
    align-self: stretch;
    height: auto !important;
    min-height: 1px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .tka-home-selection__product-grid .thumbnail-container {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
  }

  .tka-home-selection__product-grid .thumbnail-container-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    overflow: hidden;
  }

  .tka-home-selection__product-grid .product-thumbnail {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .tka-home-selection__product-grid .product-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover;
    opacity: 1 !important;
  }

  .tka-home-selection__product-grid .product-description {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
  }

  .tka-home-selection__product-grid .an_productattributes {
    margin-top: auto !important;
  }
}

@media (max-width: 575px) {
  .tka-home-selection {
    margin: 26px 0;
  }

  .tka-home-selection__products-block > .products-section-title {
    gap: 12px;
    margin-bottom: 22px;
    font-size: 22px;
  }

  .tka-scent-picker {
    margin: 26px calc(50% - 50vw);
    padding: 24px 14px 25px;
  }

  .tka-scent-picker__heading {
    grid-template-columns: minmax(10px, 1fr) minmax(0, auto) minmax(10px, 1fr);
    gap: 10px;
    margin-bottom: 19px;
  }

  .tka-scent-picker__heading h2 {
    font-size: 21px;
  }

  .tka-scent-picker__heading p {
    max-width: 275px;
    font-size: 14px;
  }

  .tka-scent-picker__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    padding: 3px 3px 12px;
    overflow-x: auto;
    scroll-padding-left: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .tka-scent-card {
    width: min(74vw, 245px);
    max-width: none;
    min-width: min(74vw, 245px);
    min-height: 166px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tka-scent-card {
    transition: none;
  }
}

@supports not (color: color-mix(in srgb, #000 10%, transparent)) {
  .tka-scent-card__marker {
    box-shadow: 0 0 0 6px rgba(160, 159, 114, .14);
  }
}
