/* 1) Base: container e layout */
.oficinas-page {
  background: #fbfaf6;
}

.category-slider {
  margin-bottom: 44px;
}

.category-slider__heading {
  display: flex;
  gap: 18px;
  margin: 0 0 16px;
  align-items: center;
  justify-content: space-between;
}

.category-slider__heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  margin: 0;
  color: #242424;
  text-transform: capitalize;
  line-height: 1.15;
}
.category-slider__heading h2::before {
  content: "";
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7941d 0%, #39a852 100%);
  flex: 0 0 auto;
}

.category-slider__heading > span {
  color: #70776f;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.slider-container {
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 8px 48px 18px;
  -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }

/* 2) Cartoes: estrutura e imagem */
.slide-card {
  flex: 0 0 auto;
  width: 236px;
  background: #fff;
  border-radius: var(--arte-radius-md, 16px);
  box-shadow: var(--arte-shadow-sm, 0 2px 8px rgba(30,41,34,.08));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 3px solid #f7941d;
  text-decoration: none;
  color: inherit;
}

.slide-card:hover,
.slide-card:focus {
  box-shadow: var(--arte-shadow-md, 0 10px 28px rgba(30,41,34,.12));
  border-color: rgba(247,148,29,0.35);
  text-decoration: none;
  color: inherit;
  outline: none;
}
.slide-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(57,168,82,0.22), 0 16px 38px rgba(0,0,0,0.14);
}

.slide-card .card-image {
  width: 100%;
  height: 148px;
  overflow: hidden;
  background: #f4f4f2;
}
.slide-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-card .card-image__fallback {
  display: none;
}
.slide-card .card-image.is-empty {
  display: none;
}

.slide-card .card-image.is-placeholder {
  display: flex;
  background: linear-gradient(135deg, #eff7ef, #fff1e1);
  color: #307b43;
  align-items: center;
  justify-content: center;
}

.slide-card .card-image.is-placeholder .card-image__fallback {
  display: block;
  padding: 18px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

/* 3) Cartoes: conteudo e stripe */
.slide-card .card-content {
  position: relative;
  min-height: 104px;
  padding: 15px 16px 16px;
  padding-top: 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.slide-card .card-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: calc(100% - 32px);
  height: 4px;
  background: linear-gradient(90deg, #f7941d, #39a852);
  border-radius: var(--arte-radius-pill, 999px);
}

.slide-card .card-content h3 {
  margin: 0 0 12px;
  font-size: .96rem;
  color: #2e2e2e;
  line-height: 1.24;
  text-decoration: none;
}
.slide-card .card-content p {
  margin: 0 0 16px;
  font-size: .95rem;
  color: #555;
  line-height: 1.4;
}

/* 4) Tipografia */
.slide-card,
.slide-card h3,
.slide-card p,
.slide-card .btn {
  font-family: var(--arte-font, "Arte no Dique", Helvetica, Arial, sans-serif);
}

/* 5) Link de detalhes */
.slide-card .card-icons {
  margin-top: auto;
}

.slide-card .workshop-classes {
  display: inline-flex;
  margin-bottom: 8px;
  color: #748078;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slide-card .workshop-link,
.slide-card .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: transparent;
  color: #268640;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}
.slide-card .workshop-link::after,
.slide-card .icon-btn::after {
  content: ">";
  margin-left: 7px;
  color: #f7941d;
  font-weight: 900;
  display: inline-block;
}
.slide-card:hover .workshop-link,
.slide-card:focus .workshop-link,
.slide-card:hover .icon-btn,
.slide-card:focus .icon-btn {
  color: #1f7434;
}

/* 6) Navegacao */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2f2f2f;
  font-size: 1.25rem;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  cursor: pointer;
  user-select: none;
  z-index: 10;
}
.slider-nav.prev { left: 4px; }
.slider-nav.next { right: 4px; }
.slider-nav:hover {
  background: #f7941d;
  color: #fff;
}
.slider-nav.is-disabled {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 640px) {
  .category-slider {
    margin-bottom: 40px;
  }
  .slider-track {
    gap: 12px;
    padding: 8px 6px 16px;
    scroll-padding-left: 12px;
  }
  .slide-card {
    width: min(78vw, 252px);
  }
  .slide-card .card-image {
    height: 142px;
  }
  .slide-card .card-content {
    min-height: 96px;
    padding: 14px 14px 15px;
    padding-top: 18px;
  }
  .slide-card .card-content h3 {
    font-size: .94rem;
  }

  .category-slider__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .slider-nav {
    display: none;
  }
}

/* 7) Padrao arredondado (2026-11-03): tokens de identidade-arte.css, movimento so sem reducao de movimento */
html:root body .oficinas-page .slider-nav {
  border-radius: var(--arte-radius-pill, 999px) !important;
  box-shadow: var(--arte-shadow-md, 0 10px 28px rgba(30,41,34,.12)) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .slide-card {
    transition: transform var(--arte-dur, .22s) var(--arte-ease, ease), box-shadow var(--arte-dur, .22s) var(--arte-ease, ease), border-color var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  .slide-card:hover,
  .slide-card:focus {
    transform: translateY(-3px);
  }
  .slide-card .card-image img {
    transition: transform var(--arte-dur-slow, .4s) var(--arte-ease, ease);
  }
  .slide-card:hover .card-image img,
  .slide-card:focus .card-image img {
    transform: scale(1.03);
  }
  .slide-card .workshop-link,
  .slide-card .icon-btn {
    transition: color var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  .slide-card .workshop-link::after,
  .slide-card .icon-btn::after {
    transition: transform var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  .slide-card:hover .workshop-link::after,
  .slide-card:focus .workshop-link::after,
  .slide-card:hover .icon-btn::after,
  .slide-card:focus .icon-btn::after {
    transform: translateX(3px);
  }
  .slider-nav {
    transition: opacity var(--arte-dur, .22s) var(--arte-ease, ease), background-color var(--arte-dur, .22s) var(--arte-ease, ease), color var(--arte-dur, .22s) var(--arte-ease, ease), transform var(--arte-dur, .22s) var(--arte-ease, ease);
  }
  .slider-nav:active {
    transform: translateY(-50%) scale(.94);
  }
}
