/* Homepage sections share the site's width, typography and burgundy palette. */
/* Product search reuses homepage product cards, including their hover effect. */
.product-search-page.home-products { padding: 24px 0 48px; }
.product-search-page__header { margin-bottom: 32px; text-align: center; }
.product-search-page__header h1 { margin: 0 0 12px; color: var(--site-primary); font-size: 28px; font-weight: 600; line-height: 1.4; }
.product-search-page__header p { margin: 0; color: var(--site-body); font-size: 16.5px; }
.product-search-page .product-search-page__empty { padding: 32px 20px; border-radius: 12px; color: var(--site-body); background: #f5f5f5; font-size: 16.5px; text-align: center; }
.product-search-page__pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.product-search-page__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 4px 12px; border: 1px solid var(--site-border); border-radius: 6px; color: var(--site-body); font-size: 16.5px; }
.product-search-page__pagination .page-numbers:is(.current, :hover) { border-color: var(--site-primary); color: #fff; background: var(--site-primary); }
@media (max-width: 767px) {
  .product-search-page__header h1 { font-size: 24px; }
  .product-search-page__pagination .page-numbers { font-size: 15px; }
}

/* The news archive reuses homepage article cards without a slider. */
body.caia-news-page .site-inner { width: 100%; max-width: none; margin: 0; padding: 0; }
body.caia-news-page .content-sidebar-wrap { display: block; width: 100%; }
body.caia-news-page .content { float: none; width: 100%; }
.news-page { --home-muted-color: #767676; --home-description-size: 16.5px; }
.news-page__categories { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin: 0 0 40px; padding: 4px 2px; }
.news-page .news-page__category { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 5px 24px; border: 1px solid #bdbdbd; border-radius: 24px; color: var(--site-title); background: #fff; font-size: 16.5px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.news-page .news-page__category:is(.is-active, :hover) { border-color: var(--site-primary); color: var(--site-primary); }
.news-page .news-page__category:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 2px; }
.news-page__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.news-page .news-page__empty { min-height: 180px; margin: 0; padding: 48px 16px; border-radius: 12px; color: var(--home-muted-color); background: #f5f5f5; font-size: 16.5px; text-align: center; }
.news-page__pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.news-page__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 4px 12px; border: 1px solid var(--site-border); border-radius: 6px; color: var(--site-body); font-size: 16.5px; }
.news-page__pagination .page-numbers:is(.current, :hover) { border-color: var(--site-primary); color: #fff; background: var(--site-primary); }
@media (max-width: 1023px) { .news-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .news-page { --home-description-size: 15px; }
  .news-page .news-page__category,
  .news-page .news-page__empty,
  .news-page__pagination .page-numbers { font-size: 15px; }
  .news-page__categories { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-bottom: 28px; }
  .news-page__categories::-webkit-scrollbar { display: none; }
}
@media (max-width: 599px) { .news-page__grid { grid-template-columns: minmax(0, 1fr); } }

.home-page {
  --home-muted-color: #767676;
  --home-description-size: 16.5px;
  color: var(--site-body);
}
body.caia-homepage .site-inner {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.caia-homepage .content-sidebar-wrap,
body.caia-homepage .content {
  float: none;
  width: 100%;
}

.home-page__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-hero {
  position: relative;
  width: 100%;
  background: #faf4f2;
}
.home-hero__slider {
  position: relative;
  margin: 0;
}
.home-hero__slider:not(.slick-initialized) .home-hero__slide:not(:first-child) {
  display: none;
}
.home-hero__slide {
  margin: 0;
  padding: 0;
}
.home-hero .home-hero__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.home-hero .home-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 28%);
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
}
.home-hero .home-hero__arrow--prev {
  left: max(20px, calc((100% - var(--site-content-width, 1280px)) / 2));
}
.home-hero .home-hero__arrow--next {
  right: max(20px, calc((100% - var(--site-content-width, 1280px)) / 2));
}
.home-hero .home-hero__arrow:hover {
  background: var(--site-primary);
}
.home-hero button:focus-visible {
  outline: 2px solid var(--site-primary);
  outline-offset: 3px;
}
.home-hero .slick-dots {
  position: absolute;
  bottom: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 2;
}
.home-hero .slick-dots li {
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
}
.home-hero .slick-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
  font-size: 0;
  cursor: pointer;
}
.home-hero .slick-dots li button::before {
  content: none;
}
.home-hero .slick-dots li.slick-active button {
  background: var(--site-primary);
}

.home-products,
.home-news {
  padding: 48px 0;
  background: #fff;
}

.home-products > .wrap,
.home-news > .wrap {
  width: calc(100% - 40px);
  max-width: var(--site-content-width, 1280px);
  margin: 0 auto;
}

.home-news__header {
  margin-bottom: 24px;
  text-align: center;
}
.home-products .home-products__heading,
.home-news .home-news__heading,
.home-reviews .home-reviews__heading {
  margin: 0 0 10px;
  color: var(--site-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.home-page .home-section-heading__ornament {
  display: block;
  width: 160px;
  height: 32px;
  margin: 0 auto 16px;
  object-fit: cover;
  object-position: center bottom;
}
.home-news .home-news__description {
  margin: 0;
  color: var(--site-body);
  font-size: var(--home-description-size);
  font-weight: 400;
  line-height: 1.65;
}

.home-news__slider:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-news__slider.slick-initialized {
  margin: 0 -12px;
}
.home-news__slider .slick-track {
  display: flex;
  margin-left: 0;
}
.home-news__slider .slick-slide {
  height: auto;
  margin: 0 12px;
}
.home-news__card {
  min-width: 0;
  padding: 0;
  background: transparent;
}
.home-news__image-link {
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #faf4f2;
}
.home-news__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 200ms ease;
}
.home-news__image-link:hover .home-news__image {
  transform: scale(1.03);
}
.home-news__image--empty {
  background: linear-gradient(135deg, #f4e9e4, #eadfdd);
}
.home-news .home-news__date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--home-muted-color);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.home-news .home-news__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}
.home-news .home-news__title a {
  color: var(--site-title);
  font-size: inherit;
  font-weight: inherit;
}
.home-news .home-news__title a:hover {
  color: var(--site-primary);
}
.home-news .home-news__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3.3em;
  margin: 0;
  color: var(--site-body);
  font-size: var(--site-body-size, 16.5px);
  font-weight: 400;
  line-height: 1.65;
}

.home-news .slick-dots,
.home-reviews .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.home-news .slick-dots li,
.home-reviews .slick-dots li {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
}
.home-news .slick-dots li button,
.home-reviews .slick-dots li button {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.home-news .slick-dots li button::before,
.home-reviews .slick-dots li button::before {
  content: none;
}
.home-news .slick-dots li.slick-active button,
.home-reviews .slick-dots li.slick-active button {
  border-color: var(--site-primary);
  background: var(--site-primary);
}
.home-news a:focus-visible,
.home-news button:focus-visible,
.home-products a:focus-visible,
.home-products button:focus-visible {
  outline: 2px solid var(--site-primary);
  outline-offset: 3px;
}
.home-news__footer,
.home-products__footer {
  margin-top: 20px;
  text-align: center;
}
.home-news .home-news__button,
.home-products .home-products__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 28px;
  border-radius: 24px;
  color: #fff;
  background: var(--site-primary);
  font-size: var(--home-description-size);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}
.home-news .home-news__button:hover,
.home-products .home-products__button:hover {
  background: var(--site-primary-hover);
}
.home-news__button-icon,
.home-products__button-icon {
  font-size: 0.85em;
}

.home-products__header {
  margin-bottom: 24px;
  text-align: center;
}
.home-products__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.home-products .home-products__tab {
  min-height: 36px;
  padding: 5px 22px;
  border: 1px solid #c9c9c9;
  border-radius: 24px;
  color: var(--site-title);
  background: #fff;
  font-family: inherit;
  font-size: var(--home-description-size);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.home-products .home-products__tab.is-active,
.home-products .home-products__tab:hover {
  border-color: var(--site-primary);
  color: var(--site-primary);
}
.home-products__panel[hidden] {
  display: none;
}
.home-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.home-products__card {
  min-width: 0;
}
.home-products__image-link {
  display: block;
  aspect-ratio: 9 / 10;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #faf4f2;
}
.home-products .home-products__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.home-products .home-products__category {
  display: block;
  margin-bottom: 5px;
  color: var(--site-primary);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.5;
}
.home-products .home-products__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.home-products .home-products__title a {
  color: var(--site-title);
  font-size: inherit;
  font-weight: inherit;
}
.home-products .home-products__title a:hover {
  color: var(--site-primary);
}

.home-reviews {
  padding: 56px 0 64px;
  background: #fff;
}
.home-reviews > .wrap {
  width: calc(100% - 40px);
  max-width: var(--site-content-width, 1280px);
  margin: 0 auto;
}
.home-reviews__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.home-reviews__layout--no-image {
  grid-template-columns: minmax(0, 1fr);
}
.home-reviews__visual {
  min-width: 0;
  margin: 0;
}
.home-reviews__image-frame {
  padding-top: 22px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--site-primary), #b28b4d);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
}
.home-reviews__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.02;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 60%;
}
.home-reviews__content {
  min-width: 0;
}
.home-reviews .home-reviews__intro {
  margin: 0 0 24px;
  color: var(--site-body);
  font-size: var(--home-description-size);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}
.home-reviews__slider:not(.slick-initialized)
  .home-reviews__slide:not(:first-child) {
  display: none;
}
.home-reviews__slider.slick-initialized {
  margin-inline: -10px;
}
.home-reviews__slider .slick-slide {
  margin-inline: 10px;
}
.home-reviews__bubble {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: 12px;
  background: #f5f5f5;
}
.home-reviews__bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 19px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #f5f5f5;
}
.home-reviews .home-reviews__quote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--site-body);
  font-size: var(--site-body-size, 16.5px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
}
.home-reviews__quote::before {
  content: "“";
  display: block;
  height: 42px;
  color: var(--site-primary);
  font-family: Georgia, serif;
  font-size: 72px;
  font-style: normal;
  line-height: 1;
}
.home-reviews .home-reviews__quote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  line-height: inherit;
}
.home-reviews__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.home-reviews__avatar {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}
.home-reviews .home-reviews__name {
  margin: 0 0 4px;
  color: var(--site-body);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.home-reviews .home-reviews__detail {
  margin: 0;
  color: var(--home-muted-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.home-reviews button:focus-visible {
  outline: 2px solid var(--site-primary);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .home-products > .wrap,
  .home-news > .wrap,
  .home-reviews > .wrap {
    width: calc(100% - 32px);
  }
  .home-news__slider:not(.slick-initialized) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-reviews__layout {
    gap: 32px;
  }
  .home-reviews .home-reviews__quote {
    font-size: var(--site-body-size, 16.5px);
  }
  .home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .home-page { --home-description-size: 15px; }
  .home-products__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 6px 2px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .home-products__tabs::-webkit-scrollbar { display: none; }
  .home-products .home-products__tab {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .home-news .home-news__date,
  .home-news .home-news__excerpt,
  .home-reviews .home-reviews__quote,
  .home-reviews .home-reviews__name,
  .home-reviews .home-reviews__detail,
  .home-products .home-products__title,
  .home-products .home-products__category { font-size: 15px; }
  .home-hero .home-hero__arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .home-hero .home-hero__arrow--prev {
    left: 10px;
  }
  .home-hero .home-hero__arrow--next {
    right: 10px;
  }
  .home-hero .slick-dots {
    bottom: 10px;
  }
  .home-reviews {
    padding: 32px 0 40px;
  }
  .home-reviews__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .home-reviews__visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .home-reviews__image {
    aspect-ratio: 5 / 4;
  }
  .home-reviews__bubble {
    padding: 20px;
  }
}
@media (max-width: 599px) {
  .home-products,
  .home-news {
    padding: 32px 0;
  }
  .home-products .home-products__heading,
  .home-news .home-news__heading,
  .home-reviews .home-reviews__heading {
    font-size: 24px;
  }
  .home-news__slider:not(.slick-initialized) {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-products__tabs {
    gap: 8px;
    margin-bottom: 24px;
  }
  .home-products .home-products__tab {
    padding-inline: 14px;
    font-size: 15px;
  }
  .home-products__grid {
    gap: 20px 14px;
  }
  .home-products .home-products__title {
    font-size: 15px;
  }
  .home-products .home-products__category {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-news__image {
    transition: none;
  }
}
