/* =====================================================
   Blog CS Cosméticos
   ===================================================== */

.cs-blog {
  overflow-x: clip;
  padding: 16px 0 70px;
  background:
    linear-gradient(180deg, rgba(253, 240, 255, .42), rgba(255, 255, 255, 0) 360px),
    #fff;
}

.cs-blog a {
  color: inherit;
  text-decoration: none;
}

.cs-blog-eyebrow {
  margin: 0 0 12px;
  color: var(--cs-purple, #600165);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-blog-hero {
  max-width: 820px;
  margin: 18px 0 24px;
}

.cs-blog-hero h1 {
  margin: 0;
  color: #170019;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.cs-blog-hero p:not(.cs-blog-eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(20, 0, 24, .66);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.cs-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.cs-blog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(96, 1, 101, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: rgba(20, 0, 24, .72);
  font-size: 14px;
  font-weight: 850;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cs-blog-tab:hover,
.cs-blog-tab:focus-visible,
.cs-blog-tab.is-active {
  border-color: rgba(96, 1, 101, .32);
  background: #600165;
  color: #fff;
  outline: none;
}

.cs-blog-featured-section {
  margin: 0 0 38px;
}

.cs-blog-featured {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(37, 0, 42, .05);
}

.cs-blog-featured__media,
.cs-blog-featured__placeholder {
  display: block;
  min-height: 0;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(253, 240, 255, .9), rgba(255, 255, 255, .96));
}

.cs-blog-featured__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cs-blog-featured__placeholder {
  display: grid;
  place-items: center;
  color: rgba(96, 1, 101, .42);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 950;
}

.cs-blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(8px, 1.5vw, 22px) clamp(4px, 1.4vw, 18px);
}

.cs-blog-featured__eyebrow {
  margin: 0 0 12px;
  color: rgba(20, 0, 24, .48);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-blog-featured__category,
.cs-blog-card__category,
.cs-article__category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(253, 240, 255, .82);
  color: #600165;
  font-size: 12px;
  font-weight: 900;
}

.cs-blog-featured__title {
  margin: 16px 0 12px;
  color: #170019;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.cs-blog-featured__excerpt {
  margin: 0 0 18px;
  color: rgba(20, 0, 24, .68);
  font-size: 16px;
  line-height: 1.68;
}

.cs-blog-featured__meta,
.cs-blog-card__meta,
.cs-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(20, 0, 24, .52);
  font-size: 13px;
  font-weight: 750;
}

.cs-blog-featured__meta {
  margin-bottom: 24px;
}

.cs-blog .cs-blog-button {
  color: #fff;
}

.cs-blog-button,
.cs-blog-card__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(96, 1, 101, .18);
  border-radius: 999px;
  background: #600165;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cs-blog-button:hover,
.cs-blog-button:focus-visible,
.cs-blog-card__link:hover,
.cs-blog-card__link:focus-visible {
  border-color: #8b3190;
  background: #8b3190;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.cs-blog-section-head {
  max-width: 720px;
  margin: 0 0 22px;
}

.cs-blog-section-head h2 {
  margin: 0;
  color: #170019;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.02;
}

.cs-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cs-blog-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 0, 42, .04);
}

.cs-blog-card__media {
  display: block;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(253, 240, 255, .9), #fff);
}

.cs-blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.cs-blog-card:hover .cs-blog-card__image {
  transform: scale(1.035);
}

.cs-blog-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(96, 1, 101, .34);
  font-size: 34px;
  font-weight: 950;
}

.cs-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.cs-blog-card__title {
  margin: 14px 0 10px;
  color: #170019;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

.cs-blog-card__title a:hover,
.cs-blog-card__title a:focus-visible,
.cs-blog-featured__title a:hover,
.cs-blog-featured__title a:focus-visible {
  color: #600165;
  outline: none;
}

.cs-blog-card__excerpt {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0 0 16px;
  overflow: hidden;
  color: rgba(20, 0, 24, .66);
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cs-blog-card__meta {
  margin-top: auto;
}

.cs-blog-card__link {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  background: rgba(253, 240, 255, .8);
  color: #600165;
}

.cs-blog-card__link:hover,
.cs-blog-card__link:focus-visible {
  color: #fff;
}

.cs-blog-pagination {
  margin-top: 34px;
}

.cs-blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cs-blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(96, 1, 101, .14);
  border-radius: 999px;
  background: #fff;
  color: rgba(20, 0, 24, .72);
  font-size: 14px;
  font-weight: 900;
}

.cs-blog-pagination .page-numbers.current,
.cs-blog-pagination .page-numbers:hover,
.cs-blog-pagination .page-numbers:focus-visible {
  border-color: #600165;
  background: #600165;
  color: #fff;
  outline: none;
}

.cs-blog-empty,
.cs-blog-cta {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
}

.cs-blog-empty {
  max-width: 760px;
}

.cs-blog-empty h1,
.cs-blog-empty h2,
.cs-blog-cta h2 {
  margin: 0 0 12px;
  color: #170019;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.05;
}

.cs-blog-empty p,
.cs-blog-cta p {
  margin: 0 0 22px;
  color: rgba(20, 0, 24, .66);
  line-height: 1.62;
}

/* Single article */
.cs-blog-single .container {
  max-width: var(--container, 1440px);
}

.cs-article__hero {
  max-width: 780px;
  margin: 18px 0 28px;
}

.cs-article__title {
  margin: 16px 0 16px;
  color: #170019;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.cs-article__excerpt {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(20, 0, 24, .66);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
}

.cs-article__cover {
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(253, 240, 255, .6);
  aspect-ratio: 16 / 10;
  max-height: 520px;
}

.cs-article__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-article-toc {
  max-width: 760px;
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 24px;
  background: rgba(253, 240, 255, .36);
}

.cs-article-toc h2 {
  margin: 0 0 14px;
  color: #170019;
  font-size: 25px;
  line-height: 1.1;
}

.cs-article-toc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: rgba(20, 0, 24, .72);
  line-height: 1.55;
}

.cs-article__content {
  max-width: 760px;
  color: rgba(20, 0, 24, .78);
  font-size: 17px;
  line-height: 1.78;
}

.cs-article__content > *:first-child {
  margin-top: 0;
}

.cs-article__content > *:last-child {
  margin-bottom: 0;
}

.cs-article__content p {
  margin: 0 0 18px;
}

.cs-article__content h2,
.cs-article__content h3,
.cs-article__content h4 {
  color: #170019;
  line-height: 1.14;
}

.cs-article__content h2 {
  margin: 40px 0 14px;
  font-size: clamp(25px, 2.4vw, 36px);
}

.cs-article__content h3 {
  margin: 30px 0 12px;
  font-size: clamp(21px, 1.8vw, 26px);
}

.cs-article__content ul,
.cs-article__content ol {
  margin: 12px 0 22px 22px;
  padding: 0;
}

.cs-article__content li {
  margin-bottom: 8px;
}

.cs-article__content a {
  color: #600165;
  font-weight: 850;
  text-decoration-color: rgba(96, 1, 101, .24);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cs-article__content a:hover,
.cs-article__content a:focus-visible {
  color: #8b3190;
  text-decoration-color: currentColor;
  outline: none;
}

.cs-article__content blockquote,
.cs-article__content .wp-block-quote,
.cs-article__content .wp-block-pullquote {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid rgba(96, 1, 101, .14);
  border-left: 5px solid #600165;
  border-radius: 20px;
  background: rgba(253, 240, 255, .42);
  color: rgba(20, 0, 24, .76);
}

.cs-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.cs-post-faqs {
  max-width: 760px;
  margin-top: 42px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(253, 240, 255, .42), rgba(255, 255, 255, .94)),
    #fff;
  box-shadow: 0 16px 42px rgba(37, 0, 42, .045);
}

.cs-post-faqs__head {
  max-width: 650px;
  margin: 0 0 20px;
}

.cs-post-faqs__head h2 {
  margin: 0;
  color: #170019;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 950;
  line-height: 1.08;
}

.cs-post-faqs__head p:not(.cs-blog-eyebrow) {
  margin: 12px 0 0;
  color: rgba(20, 0, 24, .66);
  font-size: 15px;
  line-height: 1.62;
}

.cs-post-faqs__items {
  display: grid;
  gap: 10px;
}

.cs-post-faqs__item {
  overflow: hidden;
  border: 1px solid rgba(96, 1, 101, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}

.cs-post-faqs__question {
  margin: 0;
}

.cs-post-faqs__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: #170019;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.cs-post-faqs__button:hover,
.cs-post-faqs__button:focus-visible {
  color: var(--cs-purple, #600165);
  outline: none;
}

.cs-post-faqs__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(96, 1, 101, .2);
  border-radius: 999px;
  background: rgba(253, 240, 255, .62);
}

.cs-post-faqs__icon::before,
.cs-post-faqs__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 99px;
  background: var(--cs-purple, #600165);
  transform: translate(-50%, -50%);
}

.cs-post-faqs__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .2s ease;
}

.cs-post-faqs__button[aria-expanded="true"] .cs-post-faqs__icon::after {
  opacity: 0;
}

.cs-post-faqs__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .26s ease;
}

.cs-post-faqs__answer-inner {
  padding: 0 18px 18px;
  color: rgba(20, 0, 24, .72);
  font-size: 15px;
  line-height: 1.7;
}

.cs-post-faqs__answer-inner > *:first-child {
  margin-top: 0;
}

.cs-post-faqs__answer-inner > *:last-child {
  margin-bottom: 0;
}

.cs-post-faqs__answer-inner a {
  color: #600165;
  font-weight: 850;
  text-decoration-color: rgba(96, 1, 101, .24);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cs-post-faqs__answer-inner a:hover,
.cs-post-faqs__answer-inner a:focus-visible {
  color: #8b3190;
  text-decoration-color: currentColor;
  outline: none;
}

.cs-blog-products,
.cs-blog-related,
.cs-blog-cta {
  margin-top: 48px;
}

.cs-blog-products__wrap ul.products,
.cs-blog-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-blog-products ul.products li.product {
  width: 100%;
  margin: 0;
}

.cs-blog-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cs-blog-cta p {
  max-width: 620px;
  margin-bottom: 0;
}

@media (min-width: 981px) {
  .cs-article--has-cover {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(360px, 460px);
    column-gap: clamp(34px, 4.5vw, 64px);
    align-items: start;
  }

  .cs-article--has-cover .cs-article__hero,
  .cs-article--has-cover .cs-article-toc,
  .cs-article--has-cover .cs-article__content,
  .cs-article--has-cover .cs-post-faqs {
    grid-column: 1;
  }

  .cs-article--has-cover .cs-article__hero {
    margin-top: clamp(22px, 3vw, 42px);
  }

  .cs-article--has-cover .cs-article__cover {
    position: sticky;
    top: 200px;
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 170px);
    margin: clamp(22px, 3vw, 42px) 0 0;
    padding: 10px;
    border: 1px solid rgba(96, 1, 101, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 42px rgba(37, 0, 42, .05);
    aspect-ratio: 4 / 5;
  }

  .cs-article--has-cover .cs-article__cover-img {
    border-radius: 20px;
    max-height: none;
    object-position: center;
  }
}

@media (max-width: 980px) {
  .cs-blog-featured {
    grid-template-columns: 1fr;
  }

  .cs-blog-featured__media,
  .cs-blog-featured__placeholder,
  .cs-blog-featured__image {
    min-height: 300px;
  }

  .cs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-blog-products__wrap ul.products,
  .cs-blog-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-blog-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .cs-blog {
    padding: 12px 0 52px;
  }

  .cs-blog-hero {
    margin-top: 14px;
  }

  .cs-blog-tabs {
    flex-wrap: nowrap;
    margin-right: calc(var(--pad, 16px) * -1);
    margin-left: calc(var(--pad, 16px) * -1);
    padding: 0 var(--pad, 16px) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pad, 16px);
    scrollbar-width: none;
  }

  .cs-blog-tabs::-webkit-scrollbar {
    display: none;
  }

  .cs-blog-tab {
    flex: 0 0 auto;
  }

  .cs-blog-featured,
  .cs-blog-card,
  .cs-blog-empty,
  .cs-blog-cta,
  .cs-article-toc,
  .cs-post-faqs {
    border-radius: 22px;
  }

  .cs-blog-featured {
    padding: 14px;
  }

  .cs-blog-featured__media,
  .cs-blog-featured__placeholder,
  .cs-blog-featured__image {
    min-height: 240px;
  }

  .cs-blog-grid {
    grid-template-columns: 1fr;
  }

  .cs-blog-card__body {
    padding: 18px;
  }

  .cs-article__cover {
    border-radius: 22px;
    max-height: 380px;
  }

  .cs-article__cover-img {
    max-height: none;
  }

  .cs-article__content {
    font-size: 16px;
  }

  .cs-post-faqs {
    margin-top: 34px;
    padding: 18px;
  }

  .cs-post-faqs__button {
    min-height: 56px;
    padding: 14px;
    font-size: 15px;
  }

  .cs-post-faqs__answer-inner {
    padding: 0 14px 16px;
  }

  .cs-blog-products__wrap {
    margin-right: calc(var(--pad, 16px) * -1);
    margin-left: calc(var(--pad, 16px) * -1);
    padding: 0 var(--pad, 16px) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cs-blog-products__wrap::-webkit-scrollbar {
    display: none;
  }

  .cs-blog-products__wrap ul.products,
  .cs-blog-products ul.products {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .cs-blog-products ul.products li.product {
    flex: 0 0 clamp(260px, 82vw, 360px);
    max-width: clamp(260px, 82vw, 360px);
    scroll-snap-align: start;
  }
}
