.home-product-types-section {
  width: 100%;
  overflow-x: clip;
  background: #ffffff;
}

.home-product-types-title {
  padding: 16px 18px 18px;
  color: #151515;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.2;
  text-align: center;
}

.home-product-types-title strong {
  font-weight: 900;
}

.home-product-types-list {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 760px;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(18, 17, 15, 0.78) 24%, rgba(18, 17, 15, 0.8) 74%, rgba(0, 0, 0, 0.22)), var(--home-product-types-bg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-product-card {
  display: grid;
  min-width: 0;
  height: 760px;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  padding: 46px 42px 64px;
  color: #ffffff;
  white-space: normal;
}

.home-product-card-copy {
  min-width: 0;
  width: 100%;
}

.home-product-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.home-product-card-line {
  width: 86px;
  height: 2px;
  margin-top: 25px;
  background: #c69233;
}

.home-product-card p {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
}

.home-product-options {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 17px;
  margin-top: 14px;
}

.home-product-option-title {
  color: #c69233;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.home-product-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.home-product-swatch {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--swatch-color);
  cursor: pointer;
}

.home-product-swatch.selected {
  box-shadow: 0 0 0 2px rgba(198, 146, 51, 0.95);
}

.home-product-swatch span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border-radius: 4px;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  clip: rect(0, 0, 0, 0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  transform: translateX(-50%) translateY(3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
  opacity: 0;
}

.home-product-swatch:hover span,
.home-product-swatch:focus-visible span {
  width: auto;
  height: auto;
  overflow: visible;
  padding: 6px 8px;
  clip: auto;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.home-product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.35);
}

.home-product-image > img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.home-product-image > img.slide-left {
  animation: homeProductSlideLeft 0.24s ease-out;
}

.home-product-image > img.slide-right {
  animation: homeProductSlideRight 0.24s ease-out;
}

@keyframes homeProductSlideLeft {
  from {
    opacity: 0.35;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes homeProductSlideRight {
  from {
    opacity: 0.35;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-product-image-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background-color: rgba(76, 72, 66, 0.86);
  cursor: pointer;
  transform: translateY(-50%);
}

.home-product-image-control-prev {
  left: 12px;
}

.home-product-image-control-next {
  right: 12px;
}

.home-product-image-control img {
  display: block;
  width: 12px;
  height: 22px;
  object-fit: contain;
  filter: sepia(1) saturate(4) hue-rotate(350deg) brightness(0.96);
}

.home-product-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  border-radius: 5px;
  background: rgba(96, 92, 87, 0.88);
  color: #c69233;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .home-product-types-title {
    padding-top: 18px;
    padding-bottom: 20px;
    font-size: 22px;
  }

  .home-product-types-list {
    min-height: 742px;
  }

  .home-product-card {
    height: 742px;
    padding: 54px 78px 66px;
  }

  .home-product-options {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .home-product-image,
  .home-product-button {
    width: 78%;
    margin-right: auto;
    margin-left: auto;
  }

  .home-product-image > img {
    height: 305px;
  }
}

@media screen and (min-width: 1024px) {
  .home-product-types-list {
    grid-template-columns: 1fr 1fr;
    min-height: 752px;
  }

  .home-product-card {
    height: 752px;
    padding: 54px 2vw 66px;
  }

  .home-product-card:first-child {
    padding-left: 4vw;
    padding-right: 1.5vw;
  }

  .home-product-card-copy {
    width: 42vw;
  }

  .home-product-card h3 {
    font-size: 42px;
  }

  .home-product-card p {
    font-size: 16px;
  }

  .home-product-options {
    grid-template-columns: 1.7fr 0.8fr;
    gap: 2.1vw;
    width: 42vw;
  }

  .home-product-image,
  .home-product-button {
    width: 29vw;
    margin-right: 0;
    margin-left: 34px;
  }

  .home-product-image {
    margin-top: 48px;
  }

  .home-product-image > img {
    height: 303px;
  }

  .home-product-image-control-prev {
    left: -34px;
  }

  .home-product-image-control-next {
    right: -34px;
  }
}

@media screen and (min-width: 1700px) {
  .home-product-types-title {
    padding-top: 17px;
    padding-bottom: 20px;
    font-size: 22px;
  }

  .home-product-types-list {
    min-height: 753px;
  }

  .home-product-card {
    height: 753px;
    padding: 52px 4vw 66px 5.1vw;
  }

  .home-product-card:first-child {
    padding-left: 16.7vw;
    padding-right: 2vw;
  }

  .home-product-card-copy {
    width: 25vw;
  }

  .home-product-card h3 {
    font-size: 44px;
  }

  .home-product-card p {
    margin-top: 25px;
  }

  .home-product-options {
    grid-template-columns: 1.9fr 0.75fr;
    gap: 2.1vw;
    width: 25vw;
  }

  .home-product-image,
  .home-product-button {
    width: 14.8vw;
    margin-left: 42px;
  }

  .home-product-image {
    margin-top: 49px;
  }

  .home-product-button {
    min-height: 51px;
    margin-top: 28px;
  }
}
