.home-video-showcase {
  --home-video-ink: #20372b;
  --home-video-leaf: #36583b;
  --home-video-line: #e2e7df;
  position: relative;
  overflow: hidden;
  background: #fbfaf7;
}

.home-video-showcase-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.home-video-showcase-eyebrow {
  margin: 0 0 9px;
  color: #8b7350;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.home-video-showcase-heading h2 {
  margin: 0;
  color: var(--home-video-ink);
  font-family: "Urbanist", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.home-video-showcase-heading > p:last-child {
  margin: 12px 0 0;
  color: #69736a;
  font-size: 16px;
  line-height: 1.55;
}

.home-video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-video-showcase-grid.is-single {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.home-video-showcase-grid.is-centered:not(.is-single) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 300px));
  justify-content: center;
}

.home-video-showcase-grid.is-dragging {
  cursor: default;
}

.home-video-showcase-pagination {
  display: none;
}

.home-video-showcase-dot {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd2c6;
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

.home-video-showcase-dot.is-active {
  width: 24px;
  background: #36583b;
}

.home-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(44, 66, 47, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(34, 50, 37, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(34, 50, 37, .13);
}

.home-video-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: #e9ece5;
}

.home-video-card-media iframe,
.home-video-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.home-video-audio-toggle {
  display: none;
}

.home-video-embed-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #23372b;
  cursor: pointer;
}

.home-video-embed-trigger::after {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 17, .2);
  content: "";
  transition: background-color .2s ease;
}

.home-video-embed-trigger:hover::after,
.home-video-embed-trigger:focus-visible::after {
  background: rgba(12, 24, 17, .38);
}

.home-video-embed-trigger > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video-play-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  padding-left: 5px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgba(29, 61, 42, .88);
  box-shadow: 0 4px 22px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background-color .2s ease;
}

.home-video-play-icon::before {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
  content: "";
}

.home-video-embed-trigger:hover .home-video-play-icon,
.home-video-embed-trigger:focus-visible .home-video-play-icon {
  transform: scale(1.08);
  background: #315b42;
}

.home-video-embed-trigger:focus-visible {
  outline: 3px solid #d8c39a;
  outline-offset: -5px;
}

.home-video-card-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(24, 44, 32, .78);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  z-index: 2;
  pointer-events: none;
}

.home-video-card-content {
  padding: 15px;
}

.home-video-card-title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0;
  color: var(--home-video-ink);
  font-family: "Urbanist", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-video-card-caption {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  margin: 7px 0 12px;
  color: #71786f;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-video-card-title + .home-video-product {
  margin-top: 13px;
}

.home-video-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--home-video-line);
  border-radius: 11px;
  color: var(--home-video-ink);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.home-video-product:hover {
  border-color: #bac8b7;
  background: #f8faf6;
  color: var(--home-video-ink);
}

.home-video-product > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  background: #f2f3ef;
  object-fit: cover;
}

.home-video-product-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-video-product-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-product-price {
  color: var(--home-video-leaf);
  font-size: 13px;
  font-weight: 800;
}

.home-video-product-price del {
  margin-left: 4px;
  color: #90958e;
  font-size: 11px;
  font-weight: 500;
}

.home-video-product-arrow {
  margin-left: auto;
  color: #7d8b78;
}

.home-video-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

.home-video-button {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid var(--home-video-leaf);
  border-radius: 9px;
  cursor: pointer;
  font-family: "Urbanist", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-video-button:hover {
  transform: translateY(-1px);
}

.home-video-button:disabled {
  cursor: wait;
  opacity: .65;
}

.home-video-button-add {
  background: #fff;
  color: var(--home-video-leaf);
}

.home-video-button-add:hover {
  background: #f3f7f1;
}

.home-video-button-buy {
  background: var(--home-video-leaf);
  color: #fff;
}

.home-video-button-buy:hover {
  background: #203d18;
  color: #fff;
}

.home-video-button.is-adding {
  font-size: 11px;
}

@media (max-width: 991px) {
  .home-video-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-video-showcase-grid.is-centered:not(.is-single) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
  }
}

@media (max-width: 575px) {
  .home-video-showcase-heading {
    margin-bottom: 22px;
    text-align: left;
  }

  .home-video-showcase-heading > p:last-child {
    font-size: 14px;
  }

  .home-video-showcase-grid {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #9aaa8e #e9ece5;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }

  .home-video-showcase-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
  }

  .home-video-showcase-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
  }

  .home-video-showcase-grid.is-centered:not(.is-single) {
    justify-content: flex-start;
    grid-template-columns: none;
  }

  .home-video-showcase-grid.is-single {
    justify-content: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-video-card {
    width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-video-card {
    border-radius: 12px;
  }

  .home-video-card-media {
    aspect-ratio: 3 / 4;
  }

  .home-video-card-media iframe,
  .home-video-card-media video {
    pointer-events: auto;
  }

  .home-video-audio-toggle {
    position: absolute;
    z-index: 3;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-width: 82px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(24, 44, 32, .88);
    color: #fff;
    font: 700 12px/1 "Urbanist", sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .home-video-audio-toggle:focus-visible {
    outline: 3px solid #d8c39a;
    outline-offset: 2px;
  }

  .home-video-audio-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }

  .home-video-card-kicker {
    top: 7px;
    left: 7px;
    padding: 5px 7px;
    font-size: 7px;
    letter-spacing: .08em;
  }

  .home-video-card-content {
    padding: 10px;
  }

  .home-video-card-title {
    min-height: 36px;
    font-size: 14px;
  }

  .home-video-card-caption {
    display: none;
  }

  .home-video-card-title + .home-video-product {
    margin-top: 9px;
  }

  .home-video-product {
    gap: 7px;
    padding: 7px;
  }

  .home-video-product > img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .home-video-product-name {
    font-size: 10px;
  }

  .home-video-product-price {
    font-size: 12px;
  }

  .home-video-product-arrow {
    display: none;
  }

  .home-video-card-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .home-video-button {
    min-height: 38px;
    padding: 6px 4px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-video-card,
  .home-video-button {
    transition: none;
  }
}
