/* =====================================================
   Campanhas
   ===================================================== */

.cs-campaigns-page {
  overflow-x: hidden;
  padding-top: 10px;
}

.cs-campaigns-page .container {
  max-width: 1440px;
}

.cs-campaigns-hero {
  box-sizing: border-box;
  max-width: 820px;
  margin: 22px 0 34px;
}

.cs-campaigns-hero__eyebrow,
.cs-campaigns-empty__eyebrow {
  margin: 0 0 12px;
  color: var(--cs-purple, #600165);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cs-campaigns-hero h1 {
  margin: 0;
  color: #170019;
  font-size: 35px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
}

.cs-campaigns-hero p:not(.cs-campaigns-hero__eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(0,0,0,.66);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.62;
}

.cs-campaigns-carousel {
  position: relative;
  max-width: 100%;
}

.cs-campaigns-carousel__stage {
  position: relative;
  max-width: 100%;
  padding: 0 50px;
}

.cs-campaigns-grid {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px 0 38px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cs-campaigns-grid::-webkit-scrollbar {
  display: none;
}

.cs-campaign-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 54px) / 4);
  height: 100%;
  max-width: calc((100% - 54px) / 4);
  min-width: 0;
  min-height: 486px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid rgba(96,1,101,.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, border-color .2s ease;
}

.cs-campaign-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,1,101,.22);
  box-shadow: none;
}

.cs-campaign-card__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 1.08 / 1;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(253,240,255,.86), rgba(255,255,255,.96)),
    #fbf7fc;
}

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

.cs-campaign-card__media .cs-campaign-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cs-campaign-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--cs-purple, #600165);
}

.cs-campaign-card__placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(96,1,101,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  font-size: 20px;
  font-weight: 900;
}

.cs-campaign-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.cs-campaign-card__body::after {
  content: "";
  min-height: 44px;
  margin-top: auto;
}

.cs-campaign-card__category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  min-height: 27px;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(96,1,101,.12);
  border-radius: 999px;
  background: rgba(253,240,255,.78);
  color: var(--cs-purple, #600165);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cs-campaign-card__category--empty {
  visibility: hidden;
}

.cs-campaign-card__title {
  display: -webkit-box;
  min-height: 45px;
  max-height: 45px;
  margin: 0;
  color: #151515;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cs-campaign-card__description {
  display: -webkit-box;
  min-height: 64px;
  max-height: 64px;
  margin: 10px 0 0;
  color: rgba(0,0,0,.62);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.cs-campaign-card__description--empty {
  visibility: hidden;
}

.cs-campaign-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: auto 0 0;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cs-purple, #600165);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background .18s ease, transform .16s ease;
}

.cs-campaign-card__button {
  order: 2;
}

.cs-campaign-card__body::after {
  order: 2;
}

.cs-campaign-card__body:has(.cs-campaign-card__button)::after {
  display: none;
}

.cs-campaign-card__description + .cs-campaign-card__button {
  margin-top: auto;
}

.cs-campaign-card__button:hover,
.cs-campaign-card__button:focus-visible {
  background: #7a0180;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: none;
}

.cs-campaigns-empty {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 0 72px;
  padding: 34px;
  border: 1px solid rgba(96,1,101,.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(253,240,255,.76), rgba(255,255,255,.94)),
    #fff;
  box-shadow: 0 18px 50px rgba(96,1,101,.07);
}

.cs-campaigns-empty h2 {
  margin: 0;
  color: #170019;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.08;
}

.cs-campaigns-empty p:not(.cs-campaigns-empty__eyebrow) {
  margin: 12px 0 0;
  color: rgba(0,0,0,.64);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.cs-campaigns-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cs-purple, #600165);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.cs-campaigns-carousel__footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin: 18px 0 72px;
}

.cs-campaigns-carousel__count {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.62);
  white-space: nowrap;
}

.cs-campaigns-carousel__arrows {
  display: none;
}

.cs-campaigns-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 86px;
  padding: 0;
  border: 1px solid rgba(144, 1, 151, 0.22);
  border-radius: 14px;
  background: #fff;
  color: rgba(144, 1, 151, 0.55);
  cursor: pointer;
  z-index: 3;
  transition: linear 0.2s;
}

.cs-campaigns-carousel__arrow:hover,
.cs-campaigns-carousel__arrow:focus-visible {
  color: #5d0062;
  outline: none;
}

.cs-campaigns-carousel__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.cs-campaigns-carousel__arrow span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cs-campaigns-carousel__arrow--desktop {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.cs-campaigns-carousel__arrow--prev {
  left: 0;
}

.cs-campaigns-carousel__arrow--next {
  right: 0;
}

@media (max-width: 980px) {
  .cs-campaigns-carousel__stage {
    padding: 0;
  }

  .cs-campaigns-grid {
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 34px;
    scroll-padding-left: 0;
  }

  .cs-campaign-card {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }

  .cs-campaigns-hero {
    margin-top: 18px;
  }

  .cs-campaigns-carousel__arrow--desktop {
    display: none;
  }

  .cs-campaigns-carousel__footer {
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 8px 0 52px;
  }

  .cs-campaigns-carousel__count {
    text-align: left;
    font-size: 16px;
  }

  .cs-campaigns-carousel__arrows {
    display: inline-flex;
    align-items: center;
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
    gap: 10px;
  }

  .cs-campaigns-carousel__arrow {
    position: static;
    transform: none;
    width: 44px;
    height: 58px;
  }
}

@media (max-width: 767px) {
  .cs-campaigns-carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .cs-campaigns-grid {
    gap: 14px;
    padding: 12px max(18px, calc(100% - clamp(260px, 20vw, 360px))) 30px 0;
    scroll-padding-left: 0;
  }

  .cs-campaign-card {
    flex: 0 0 clamp(260px, 20vw, 360px);
    max-width: clamp(260px, 20vw, 360px);
    height: 455px;
    min-height: 455px;
    box-shadow: none;
  }

  .cs-campaign-card:hover {
    transform: none;
    box-shadow: none;
  }

  .cs-campaigns-page .cs-campaign-card__media {
    flex: 0 0 205px;
    height: 205px;
    aspect-ratio: auto;
    background:
      linear-gradient(135deg, rgba(253,240,255,.42), rgba(255,255,255,.96)),
      #fff;
  }

  .cs-campaigns-page .cs-campaign-card__media img,
  .cs-campaigns-page .cs-campaign-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .cs-campaign-card__body {
    min-height: 0;
    padding: 16px;
  }

  .cs-campaign-card__category {
    min-height: 24px;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .cs-campaign-card__title {
    min-height: 42px;
    max-height: 42px;
    font-size: 19px;
    line-height: 1.1;
  }

  .cs-campaign-card__description {
    min-height: 54px;
    max-height: 54px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .cs-campaign-card__button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .cs-campaigns-hero {
    margin-bottom: 24px;
  }

  .cs-campaigns-grid {
    gap: 14px;
    margin-bottom: 0;
    padding: 12px max(18px, calc(100% - clamp(260px, 20vw, 360px))) 30px 0;
  }

  .cs-campaign-card {
    border-radius: 18px;
    height: 455px;
    min-height: 455px;
  }

  .cs-campaign-card__button {
    width: 100%;
  }

  .cs-campaigns-empty {
    margin-bottom: 52px;
    padding: 24px;
    border-radius: 18px;
  }
}
