:root {
  --link-text-color: #60366f;
  --primary-button-background-color: #754486;
  --primary-button-background-color-hover: #60366f;
  --primary-button-background-color-active: #4d2b5a;
  --primary-notice-background-color: #754486;
  --primary-notice-border-color: #754486;
  --footer-background-color: #2b2230;
  --copyright-background-color: #211a25;
}

#home-benefits {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#home-benefits::-webkit-scrollbar {
  display: none;
}

#home-benefits .home-benefit {
  display: flex;
  flex: 0 0 78%;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid #e8e0ec;
  border-radius: var(--border-radius);
  background: #fbf9fc;
  text-align: center;
  scroll-snap-align: start;
}

#home-benefits .home-benefit-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  place-items: center;
  border-radius: 50%;
  background: #f0e8f4;
  color: #60366f;
  font-size: 1.1rem;
}

#home-benefits h2 {
  margin: 0;
  font-size: 1rem;
}

#home-benefits p {
  margin: 0;
  color: #615b65;
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-product-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--gutter-x);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home-product-strip > .product {
  flex: 0 0 42%;
  min-width: 0;
  scroll-snap-align: start;
}

.home-category-products .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-category-products .category-products-link {
  flex: 0 0 auto;
  color: var(--link-text-color);
  font-weight: 700;
  text-decoration: none;
}

.home-category-products .category-products-link:hover,
.home-category-products .category-products-link:focus-visible {
  text-decoration: underline;
}

.home-category-products .category-products-link:focus-visible {
  outline: 2px solid var(--link-text-color);
  outline-offset: 3px;
}

#box-newsletter-subscribe {
  border-top: 3px solid var(--primary-button-background-color);
  text-align: center;
}

#box-newsletter-subscribe .card-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

#box-newsletter-subscribe h2 {
  margin-top: 0;
  color: #60366f;
}

#box-newsletter-subscribe p {
  color: #615b65;
}

#box-newsletter-subscribe .form-group {
  max-width: 520px;
  margin: 1.25rem auto 0;
}

#box-newsletter-subscribe .input-group {
  display: flex;
  gap: 0.5rem;
}

#box-newsletter-subscribe .input-group input {
  flex: 1 1 14rem;
  min-width: 0;
}

#box-newsletter-subscribe .input-group button {
  flex: 0 0 auto;
  white-space: nowrap;
}

#footer .title {
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #754486;
}

#footer a:hover,
#footer a:focus {
  color: #e4c9f0;
}

@media (min-width: 768px) {
  .home-product-strip > .product {
    flex: 1 0 calc(14.285% - var(--gutter-x));
    max-width: 240px;
    min-width: 125px;
  }

  #home-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  #home-benefits .home-benefit {
    flex: initial;
    padding: 1.5rem 1.25rem;
  }
}
