/* =========================
   ZABIEGI – UKŁAD GŁÓWNY
========================= */

.treatments-section {
  padding: 6rem 0;
  background: var(--bg-soft);
}

.treatments-title {
  text-align: center;
  font-size: 2.6rem;
  color: var(--primary-dark);
  margin-bottom: 3.5rem;
  letter-spacing: 0.5px;
}
/* =========================
   HERO – TYTUŁ STRONY
========================= */

.treatments-hero {
  padding: 3rem 0 2rem;
}

.treatments-hero h1 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #2d2f33;
}

.category-page-title {
  margin-top: 0;
}
.treatments-intro {
  max-width: 640px;
  margin: 0.75rem auto 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  text-align: center;
}

/* =========================
   BREADCRUMB
========================= */


.breadcrumb {
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  text-align: left;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;              /* ← TUTAJ */
  transition: color 0.25s ease;       /* ← TUTAJ */
}

.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 8px;
  color: var(--primary);
  opacity: 0.45;
}
#breadcrumbCategory {
  color: var(--primary-dark);
  font-weight: 500;
  animation: breadcrumbFade 0.16s ease-out;
}
@keyframes breadcrumbFade {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #breadcrumbCategory {
    animation: none;
  }
}

/* =========================
   KARUZELA KATEGORII
========================= */



.treatments-carousel-section .container {
  position: relative;
}

.treatments-carousel-wrapper {
  position: relative;
  margin-bottom: 3rem;
}

.treatments-carousel {
  display: flex;
  gap: 40px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.treatments-carousel::-webkit-scrollbar {
  display: none;
}

.treatment-item {
  flex: 0 0 calc((100% - 200px) / 6);
  text-align: center;
}

.treatment-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .4s ease;
}

.treatment-item span {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

/* HOVER – ZŁOTA OBWÓDKA JAK ERIS */
.treatment-item:hover img {
  border-color: var(--primary);
  transform: scale(1.04);
}

/* =========================
   STRZAŁKI KARUZELI
========================= */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: #fff;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transition: all .3s;
  z-index: 10;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
}

.carousel-arrow.left {
  left: -10px;
}

.carousel-arrow.right {
  right: -10px;
}


/* =========================
   WYSZUKIWARKA
========================= */
.treatments-search-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: #2d2f33;
}
.treatments-search-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.treatments-search-section input {
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  outline: none;
  transition: all .3s;
}

.treatments-search-section input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(201,168,130,.2);
}


/* =========================
   FILTRY
========================= */

.treatments-filters-section .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 4rem;
}

.treatments-filters-section label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
}

.treatments-filters-section input {
  margin-right: 6px;
}
/* =========================
   STICKY SEARCH + FILTRY – PREMIUM
========================= */

.treatments-sticky-bar {
  position: sticky;
  top: 110px; /* dopasuj do wysokości headera */
  z-index: 80;

  background: #eef1f3;
  backdrop-filter: blur(6px);

  padding: 4rem 0;

  border-bottom: 1px solid rgba(0,0,0,0.06);

  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  transition: box-shadow 0.25s ease;
}

/* subtelne wzmocnienie przy scroll */
.treatments-sticky-bar.is-scrolled {
  box-shadow: 0 16px 40px rgba(0,0,0,.09);
}

/* Wyszukiwarka */
.treatments-search-section {
  margin-bottom: 1rem;
}

.treatments-search-section input {
  border: 1px solid #c8cdd2;
  background: transparent;
  border-radius: 4px;
}

/* Filtry */
.treatments-filters-section .container {
  justify-content: flex-start;
  gap: 22px;
}

/* Mobile – bez sticky */
@media (max-width: 768px) {
  .treatments-sticky-bar {
    position: relative;
    top: auto;
  }
}

/* =========================
   LISTA ZABIEGÓW
========================= */

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.treatment-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  transition: transform .4s ease, box-shadow .4s ease;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 65px rgba(0,0,0,.18);
}

.treatment-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.treatment-card-content {
  padding: 26px;
  text-align: center;
}

.treatment-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.treatment-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}

.treatment-card a {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: all .3s;
}

.treatment-card a:hover {
  border-color: var(--primary);
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 1024px) {
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 768px) {
  .treatments-title {
    font-size: 2rem;
  }

  .treatments-carousel {
    justify-content: center;
    gap: 18px;
  }

  .treatment-item img {
  min-width: 180px;
  max-width: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  padding: 6px;
  background: #fff;
  transition: all 0.4s ease;
}

  .treatments-grid {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }
}
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.7rem;
    margin-top: -1rem;
  }
}

/* =========================
   A11Y – INTERAKCJE GLOBALNE
========================= */

a,
button,
input,
.category-header,
.carousel-arrow,
.treatment-row,
.treatment-card {
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
/* =========================
   ANIMACJA WEJŚCIA SEKCJI
========================= */

.treatments-category {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.treatments-category.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* WCAG – wyłączenie animacji */
@media (prefers-reduced-motion: reduce) {
  .treatments-category {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
/* =========================
   WIERSZ ZABIEGU (AKORDEON)
========================= */

.treatments-category {
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.treatments-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 1px;
  background: var(--primary);
  opacity: 0.4;
}

.treatments-category:nth-of-type(3n) {
  background-color: rgba(201,168,130,0.04);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 12px;
}

.category-header {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;          /* ← było 1.2rem */
  font-weight: 400;
  letter-spacing: 0.02em;

  text-align: left;
  cursor: pointer;
  color: var(--primary-dark);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;                 /* ← DODAJ */
  position: relative;        /* ← DODAJ */
  transition: color 0.25s ease;
}
.category-count {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 6px;
  line-height: 1;

  margin-left: auto;
}
.category-header.active {
  color: var(--primary);
}
/* =========================
   LINIA AKTYWNEJ KATEGORII
========================= */

.category-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.category-header.active::after {
  width: 60px;
}
/* CHEVRON */
.chevron {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.8rem;
  opacity: 0.8;
  color: #2d2f33;

  transition:
    transform 0.3s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.category-header:hover .chevron {
  border-color: var(--primary);
}

.category-header.active .chevron {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* BODY – animowany */
.category-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.category-body.open {
  max-height: none; /* bezpieczny fallback */
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .category-body,
  .chevron {
    transition: none;
  }
}
.treatment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  padding: 18px 12px;   /* ← ZAMIANA */
  border-bottom: 1px solid var(--border);
  border-radius: 6px;   /* ← DODANE */

  text-decoration: none;
  color: inherit;

  transition: background 0.3s ease;
}
.treatment-row h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.treatment-row p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.treatment-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.btn-more {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
  transition: color 0.3s;
}

.treatment-row:hover .btn-more {
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.7rem;
    margin-top: -1rem;
  }
}