/**
 * Homepage template styles
 */

.sawerna-homepage {
  padding-top: 88px;
}

.sawerna-homepage__container {
  width: min(100% - 48px, 1220px);
  margin: 0 auto;
}

.sawerna-homepage__categories,
.sawerna-homepage__products,
.sawerna-homepage__recommendations,
.sawerna-homepage__content {
  margin-top: 132px;
}

.sawerna-homepage__brand-band {
  margin-top: 132px;
  padding: 92px 0 96px;
  background: rgb(239, 239, 231);
}

.sawerna-homepage__commerce-sections {
  margin-top: 132px;
}

.sawerna-homepage__best-sellers {
  margin-top: 72px;
}

.sawerna-homepage__section-divider {
  margin-top: 72px;
  border-top: 1px solid #ece6dc;
}

.sawerna-homepage__blog-band {
  margin-top: 132px;
  padding: 88px 0 96px;
  background: rgb(245, 245, 245);
}

.sawerna-homepage__section-head {
  margin-bottom: 80px;
  text-align: center;
}

.sawerna-homepage__section-title {
  margin: 0;
  color: #111;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.sawerna-homepage__section-title--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sawerna-homepage__section-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: #b84a4a;
}

.sawerna-homepage__section-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sawerna-homepage__section-icon svg .cls-1,
.sawerna-homepage__section-icon svg path,
.sawerna-homepage__section-icon svg line {
  stroke: currentColor;
}

.sawerna-home-hero {
  position: relative;
}

.sawerna-home-hero__viewport {
  overflow: hidden;
}

.sawerna-home-hero__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.sawerna-home-hero__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.sawerna-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 22px;
}

.sawerna-home-hero__card {
  position: relative;
  display: flex;
  min-height: 460px;
  overflow: hidden;
  border-radius: 0;
  background-color: #d7d2c8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sawerna-home-hero__card--narrow {
  min-height: 460px;
}

.sawerna-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.12) 0%, rgba(20, 18, 16, 0.58) 100%);
}

.sawerna-home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 32px;
  color: #fff;
}

.sawerna-home-hero__title,
.sawerna-home-hero__side-title {
  margin: 0;
  max-width: 12ch;
  font-size: 44px;
  font-weight: 600;
  line-height: 0.98;
}

.sawerna-home-hero__side-title {
  max-width: 10ch;
  font-size: 34px;
  line-height: 1.02;
}

.sawerna-home-hero__text,
.sawerna-home-hero__side-text {
  margin: 18px 0 0;
  max-width: 32ch;
  font-size: 18px;
  line-height: 1.5;
}

.sawerna-home-hero__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.sawerna-home-hero__list li {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.4;
}

.sawerna-home-hero__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.sawerna-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sawerna-home-hero__button:hover,
.sawerna-home-hero__button:focus-visible {
  transform: translateY(-1px);
  background: #fff;
}

.sawerna-home-hero__button--light {
  background: rgba(17, 17, 17, 0.84);
  color: #fff;
}

.sawerna-home-hero__button--light:hover,
.sawerna-home-hero__button--light:focus-visible {
  background: rgba(17, 17, 17, 0.96);
}

.sawerna-home-hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.sawerna-home-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9d0c4;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sawerna-home-hero__dot.is-active {
  background: #111;
  transform: scale(1.1);
}

.sawerna-home-categories {
  position: relative;
}

.sawerna-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}

.sawerna-home-categories__item {
  display: block;
  color: #111;
  text-align: center;
  text-decoration: none;
}

.sawerna-home-categories__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2efe9;
}

.sawerna-home-categories__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sawerna-home-categories__name {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.2s ease;
}

.sawerna-home-categories__item:hover .sawerna-home-categories__name,
.sawerna-home-categories__item:focus-visible .sawerna-home-categories__name {
  text-decoration-color: currentColor;
}

.sawerna-home-categories__more {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.25s ease;
}

.sawerna-home-categories.is-expanded .sawerna-home-categories__more {
  margin-top: 36px;
  opacity: 1;
}

.sawerna-home-categories__toggle-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.sawerna-home-categories__toggle-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ece5dc;
  transform: translateY(-50%);
}

.sawerna-home-categories__toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid #e4ddd2;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sawerna-home-categories__toggle:hover,
.sawerna-home-categories__toggle:focus-visible {
  transform: translateY(-1px);
  border-color: #cfc4b4;
}

.sawerna-home-categories__toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.sawerna-home-categories.is-expanded .sawerna-home-categories__toggle-icon {
  transform: rotate(-135deg) translateX(-1px);
}

.sawerna-homepage__content .entry-content {
  margin-top: 0;
}

.sawerna-home-products__section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 80px;
}

.sawerna-home-products__section-head > .sawerna-homepage__section-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.sawerna-home-products__section-head--center {
  justify-content: center;
  margin-bottom: 24px;
}

.sawerna-home-products__section-head--center > .sawerna-homepage__section-title {
  position: static;
  transform: none;
}

.sawerna-home-products__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #a8a06f;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sawerna-home-products__more-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

.sawerna-home-products__signature {
  display: inline-flex;
  width: 168px;
  color: #a8a06f;
}

.sawerna-home-products__signature svg {
  display: block;
  width: 100%;
  height: auto;
}

.sawerna-home-products__signature svg * {
  fill: currentColor;
  stroke: currentColor;
}

.sawerna-home-products__more:hover,
.sawerna-home-products__more:focus-visible {
  color: #8f875c;
}

.sawerna-home-products__more span:first-child {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.2s ease;
}

.sawerna-home-products__more:hover span:first-child,
.sawerna-home-products__more:focus-visible span:first-child {
  text-decoration-color: currentColor;
}

.sawerna-home-products__more-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.sawerna-home-products__more-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sawerna-home-products__more-icon svg .cls-1,
.sawerna-home-products__more-icon svg line,
.sawerna-home-products__more-icon svg polyline,
.sawerna-home-products__more-icon svg path {
  stroke: currentColor;
}

.sawerna-home-products__more-icon svg .cls-1,
.sawerna-home-products__more-icon svg line,
.sawerna-home-products__more-icon svg polyline {
  fill: none;
}

.sawerna-home-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.sawerna-home-products__item .sawerna-product-card {
  height: 100%;
}

.sawerna-home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sawerna-home-blog__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.sawerna-home-blog__media {
  display: block;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: #ece8df;
}

.sawerna-home-blog__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sawerna-home-blog__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.sawerna-home-blog__date {
  margin: 0;
  color: #b2aa9d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sawerna-home-blog__title {
  margin: 14px 0 0;
  color: #2f2f2a;
  font-size: 18px;
  line-height: 1.25;
}

.sawerna-home-blog__title a {
  color: inherit;
  text-decoration: none;
}

.sawerna-home-blog__excerpt {
  margin: 12px 0 0;
  color: #7c7c76;
  font-size: 15px;
  line-height: 1.65;
}

.sawerna-home-blog__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #a8a06f;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sawerna-home-blog__more span:first-child {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.2s ease;
}

.sawerna-home-blog__more:hover span:first-child,
.sawerna-home-blog__more:focus-visible span:first-child {
  text-decoration-color: currentColor;
}

.sawerna-home-recommendations__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.sawerna-home-recommendations__tab {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b8b8b;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sawerna-home-recommendations__tab:hover,
.sawerna-home-recommendations__tab:focus-visible,
.sawerna-home-recommendations__tab.is-active {
  color: #111;
  text-decoration-color: currentColor;
}

.sawerna-home-recommendations__panel {
  animation: sawernaHomeFade 0.24s ease;
}

.sawerna-home-brand {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.sawerna-home-brand__title {
  margin: 0;
  color: #2f2f2a;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.08;
}

.sawerna-home-brand__subtitle {
  margin: 14px 0 0;
  color: #b0a978;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
}

.sawerna-home-brand__text {
  margin-top: 24px;
  color: #4a4a45;
  font-size: 17px;
  line-height: 1.8;
}

.sawerna-home-brand__text p {
  margin: 0;
}

.sawerna-home-brand__text p + p {
  margin-top: 16px;
}

.sawerna-home-brand__cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 34px;
  left: 50%;
  width: min(1220px, calc(100vw - 48px));
  margin-left: 0;
  margin-right: 0;
  transform: translateX(-50%);
}

.sawerna-home-brand__cta-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ddd7ca;
  transform: translateY(-50%);
}

.sawerna-home-brand__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 15px 38px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.sawerna-home-brand__cta:hover,
.sawerna-home-brand__cta:focus-visible {
  transform: translateY(-1px);
  color: #111;
}

.sawerna-home-brand__cta-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: #a8a06f;
}

.sawerna-home-brand__cta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sawerna-home-brand__cta-icon svg .cls-1,
.sawerna-home-brand__cta-icon svg line,
.sawerna-home-brand__cta-icon svg polyline,
.sawerna-home-brand__cta-icon svg path {
  stroke: currentColor;
}

.sawerna-homepage__factory-products,
.sawerna-homepage__testimonials {
  margin-top: 88px;
}

.sawerna-home-testimonials__heading-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.sawerna-home-testimonials__heading-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ddd7ca;
  transform: translateY(-50%);
}

.sawerna-home-testimonials__heading-wrap > .sawerna-homepage__section-title {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  background: rgb(239, 239, 231);
}

.sawerna-home-testimonials__viewport {
  overflow: hidden;
}

.sawerna-home-testimonials__track {
  display: flex;
  transition: transform 0.4s ease;
}

.sawerna-home-testimonials__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.sawerna-home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.sawerna-home-testimonials__item {
  min-width: 0;
  text-align: center;
}

.sawerna-home-testimonials__text {
  max-width: 100%;
  color: #4a4a45;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sawerna-home-testimonials__text p {
  margin: 0;
  max-width: 100%;
}

.sawerna-home-testimonials__name {
  margin: 22px 0 0;
  color: #2f2f2a;
  font-size: 16px;
  font-weight: 700;
}

.sawerna-home-testimonials__date {
  margin: 6px 0 0;
  color: #a29a8c;
  font-size: 13px;
}

.sawerna-home-testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.sawerna-home-testimonials__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b1aa7c;
  cursor: pointer;
}

.sawerna-home-testimonials__arrow.is-next {
  transform: rotate(0deg);
}

.sawerna-home-testimonials__arrow:not(.is-next) {
  transform: rotate(180deg);
}

.sawerna-home-testimonials__arrow svg {
  width: 16px;
  height: 16px;
}

.sawerna-home-testimonials__arrow svg .cls-1,
.sawerna-home-testimonials__arrow svg line,
.sawerna-home-testimonials__arrow svg polyline,
.sawerna-home-testimonials__arrow svg path {
  stroke: currentColor;
}

.sawerna-home-testimonials__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sawerna-home-testimonials__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d7d1c6;
  cursor: pointer;
}

.sawerna-home-testimonials__dot.is-active {
  background: #2f2f2a;
}

@keyframes sawernaHomeFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .sawerna-home-hero__grid {
    grid-template-columns: 1.7fr 1fr;
  }

  .sawerna-home-hero__title {
    font-size: 38px;
  }

  .sawerna-home-hero__side-title {
    font-size: 30px;
  }
}

@media (max-width: 1024px) {
  .sawerna-homepage {
    padding: 28px 0 72px;
  }

  .sawerna-homepage__container {
    width: min(100% - 40px, 1220px);
  }

  .sawerna-homepage__section-title {
    font-size: 28px;
  }

  .sawerna-home-hero__card,
  .sawerna-home-hero__card--narrow {
    min-height: 380px;
  }

  .sawerna-home-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sawerna-home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sawerna-home-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sawerna-home-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sawerna-homepage {
    padding: 20px 0 56px;
  }

  .sawerna-homepage__container {
    width: min(100% - 24px, 1220px);
  }

  .sawerna-homepage__categories,
  .sawerna-homepage__products,
  .sawerna-homepage__recommendations,
  .sawerna-homepage__content {
    margin-top: 88px;
  }

  .sawerna-homepage__brand-band {
    margin-top: 88px;
    padding: 64px 0 68px;
  }

  .sawerna-homepage__commerce-sections,
  .sawerna-homepage__blog-band {
    margin-top: 88px;
  }

  .sawerna-homepage__blog-band {
    padding: 64px 0 72px;
  }

  .sawerna-homepage__section-head {
    margin-bottom: 26px;
  }

  .sawerna-homepage__section-title {
    font-size: 28px;
  }

  .sawerna-home-hero__grid {
    grid-template-columns: 1fr;
  }

  .sawerna-home-hero__card,
  .sawerna-home-hero__card--narrow {
    min-height: 300px;
  }

  .sawerna-home-hero__content {
    padding: 24px;
  }

  .sawerna-home-hero__title,
  .sawerna-home-hero__side-title {
    font-size: 28px;
    max-width: none;
  }

  .sawerna-home-hero__text,
  .sawerna-home-hero__side-text,
  .sawerna-home-hero__list li {
    font-size: 15px;
  }

  .sawerna-home-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .sawerna-home-categories__name {
    font-size: 16px;
  }

  .sawerna-home-categories__toggle {
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
  }

  .sawerna-home-products__section-head {
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
  }

  .sawerna-home-products__section-head > .sawerna-homepage__section-title {
    position: static;
    transform: none;
  }

  .sawerna-home-recommendations__tabs {
    gap: 14px 18px;
  }

  .sawerna-home-recommendations__tab {
    font-size: 16px;
  }

  .sawerna-home-products__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sawerna-homepage__best-sellers {
    margin-top: 56px;
  }

  .sawerna-homepage__section-divider {
    margin-top: 56px;
  }

  .sawerna-home-products__more-group {
    align-items: center;
  }

  .sawerna-home-products__signature {
    width: 132px;
  }

  .sawerna-home-brand__title {
    font-size: 30px;
  }

  .sawerna-home-brand__subtitle {
    font-size: 19px;
  }

  .sawerna-home-brand__text {
    font-size: 15px;
  }

  .sawerna-homepage__factory-products,
  .sawerna-homepage__testimonials {
    margin-top: 64px;
  }

  .sawerna-home-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sawerna-home-testimonials__heading-wrap > .sawerna-homepage__section-title {
    padding: 0 16px;
  }

  .sawerna-home-blog__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
