/* View All Treatments - Curelocare catalogue */

:root {
  --curelocare-primary: #f28e72;
  --curelocare-secondary: #3d2156;
  --curelocare-accent: #ae9ccb;
  --curelocare-black: #1a1025;
  --curelocare-grey: #8b8494;
  --curelocare-grey-light: #ede9f2;
  --curelocare-grey-bg: #f8f6fb;
  --curelocare-white: #ffffff;
  --curelocare-salmon-tint: #fdeae2;
  --curelocare-warm-tint: #fff6ee;
  --curelocare-gradient-brand: linear-gradient(
    135deg,
    #3d2156 0%,
    #ae9ccb 60%,
    #f28e72 100%
  );
  --curelocare-gradient-warm: linear-gradient(135deg, #f8bfaa 0%, #f28e72 100%);
  --curelocare-shadow-sm: 0 1px 4px rgba(61, 33, 86, 0.07);
  --curelocare-shadow-md: 0 6px 18px rgba(61, 33, 86, 0.11);
  --curelocare-radius-sm: 6px;
  --curelocare-radius-md: 10px;
  --curelocare-radius-lg: 16px;
  --curelocare-radius-pill: 999px;
}

.charac-view-all-page,
.charac-view-all-page * {
  box-sizing: border-box;
}

.charac-view-all-page {
  min-height: 100vh;
  padding-bottom: 58px !important;
  background: #f6f3fa;
  color: var(--curelocare-black) !important;
  font-family: var(
    --charac-font-family,
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif
  );
  font-size: 15px !important;
  line-height: 1.6;
}

.charac-view-all-page button,
.charac-view-all-page input,
.charac-view-all-page select,
.charac-view-all-page a {
  font-family: inherit;
}

.container-products {
  width: min(100%, 1280px);
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.treatments-hero {
  min-height: 306px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255, 246, 238, 0.98) 0%,
      rgba(253, 234, 226, 0.84) 42%,
      rgba(211, 202, 219, 0.56) 100%
    ),
    var(--treatments-hero-image) center right / cover no-repeat,
    var(--curelocare-warm-tint);
}

.treatments-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(61, 33, 86, 0.08);
}

.treatments-hero-content {
  width: min(100%, 520px);
  padding: 58px 0 60px !important;
}

.treatments-hero h1 {
  margin: 0 0 10px !important;
  color: var(--curelocare-secondary) !important;
  font-family: "Nunito", var(--charac-font-family, "Inter"), sans-serif;
  font-size: clamp(34px, 4.2vw, 46px) !important;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.treatments-hero p {
  max-width: 470px;
  margin: 0 0 22px !important;
  color: rgba(26, 16, 37, 0.68) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.55;
}

.hero-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px !important;
  border-radius: var(--curelocare-radius-pill) !important;
  background: var(--curelocare-gradient-warm);
  color: var(--curelocare-white) !important;
  box-shadow: 0 8px 22px rgba(242, 142, 114, 0.28);
  font-size: 13px !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: var(--curelocare-white) !important;
  box-shadow: 0 10px 26px rgba(242, 142, 114, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.treatments-catalogue {
  padding-top: 38px !important;
}

.treatments-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px !important;
  color: var(--curelocare-grey) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.treatments-breadcrumb a {
  color: var(--curelocare-grey) !important;
  text-decoration: none !important;
}

.treatments-breadcrumb span:last-child {
  color: var(--curelocare-secondary) !important;
}

.treatments-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: center;
  margin-bottom: 42px !important;
}

.filter-row,
.sort-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.filter-row {
  gap: 14px;
}

.filter-label,
.sort-row label {
  flex: 0 0 auto;
  color: var(--curelocare-secondary) !important;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-chip {
  min-height: 40px;
  min-width: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 9px 22px !important;
  border: 1px solid var(--curelocare-grey-light);
  border-radius: var(--curelocare-radius-pill) !important;
  background: var(--curelocare-white);
  color: #8b8494 !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.filter-chip:hover {
  border-color: rgba(242, 142, 114, 0.55) !important;
  background: var(--curelocare-salmon-tint);
  color: var(--curelocare-secondary) !important;
}

.filter-chip.active {
  border-color: var(--curelocare-secondary) !important;
  background: var(--curelocare-secondary);
  color: var(--curelocare-white) !important;
  box-shadow: 0 5px 14px rgba(61, 33, 86, 0.18);
}

.sort-row {
  gap: 16px;
  margin-top: 2px !important;
}

.sort-row select {
  min-height: 40px;
  border: 1px solid var(--curelocare-grey-light);
  border-radius: 8px !important;
  background: var(--curelocare-white);
  color: var(--curelocare-black) !important;
  font-size: 16px !important;
  font-weight: 500;
  outline: none;
  min-width: 208px;
  padding: 7px 36px 7px 16px !important;
}

.sort-row select:focus {
  border-color: var(--curelocare-primary) !important;
  box-shadow: 0 0 0 3px rgba(242, 142, 114, 0.14);
}

.result-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px !important;
  border: 1px solid var(--curelocare-grey-light);
  border-radius: var(--curelocare-radius-pill) !important;
  background: transparent;
  color: var(--curelocare-secondary) !important;
  font-size: 14px !important;
  font-weight: 800;
}

.spinner-small,
.spinner {
  border-radius: 50% !important;
  animation: curelocare-spin 1s linear infinite;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid var(--curelocare-grey-light);
  border-top-color: var(--curelocare-primary);
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--curelocare-grey-light);
  border-top: 5px solid var(--curelocare-primary);
  border-radius: 18px !important;
  background: var(--curelocare-white);
  box-shadow: 0 6px 18px rgba(61, 33, 86, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.product-card:nth-child(3n + 2) {
  border-top-color: var(--curelocare-accent);
}

.product-card:nth-child(3n + 3) {
  border-top-color: var(--curelocare-secondary);
}

.product-card:hover {
  border-color: rgba(242, 142, 114, 0.42) !important;
  box-shadow: 0 10px 24px rgba(61, 33, 86, 0.14);
  transform: translateY(-2px);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.product-media {
  position: relative;
  aspect-ratio: 1.98;
  margin: 20px 20px 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #d3cadb 0%, #ae9ccb 100%);
}

.product-card:nth-child(3n + 2) .product-media {
  background: linear-gradient(135deg, #fff6ee 0%, #fbd5c7 100%);
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 28px);
}

.product-badges span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 16px !important;
  border-radius: var(--curelocare-radius-pill) !important;
  background: var(--curelocare-white);
  color: var(--curelocare-secondary) !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-placeholder {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.68);
  color: var(--curelocare-secondary) !important;
  font-family: "Nunito", sans-serif;
  font-size: 28px !important;
  font-weight: 800;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 30px 30px !important;
}

.product-card-title {
  margin: 0 0 10px !important;
  color: var(--curelocare-black) !important;
  font-family: "Nunito", var(--charac-font-family, "Inter"), sans-serif;
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.25;
}

.product-card-desc {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 0 24px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--curelocare-grey) !important;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.55;
}

.product-price {
  margin: auto 0 12px !important;
  color: var(--curelocare-black) !important;
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px !important;
  color: var(--curelocare-grey) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-meta span::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--meta-icon) center / contain no-repeat;
  -webkit-mask: var(--meta-icon) center / contain no-repeat;
}

.product-meta .meta-delivery {
  --meta-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.product-meta .meta-regulated {
  --meta-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.6 3 8.4 7 10 4-1.6 7-5.4 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/g%3E%3C/svg%3E");
}

.btn-buy {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px !important;
  border-radius: var(--curelocare-radius-pill) !important;
  background: var(--curelocare-gradient-warm);
  color: var(--curelocare-white) !important;
  box-shadow: 0 8px 20px rgba(242, 142, 114, 0.24);
  font-size: 17px !important;
  line-height: 1;
}

.charac-loader {
  display: flex;
  justify-content: center;
  padding: 40px 0 !important;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--curelocare-grey-light);
  border-top-color: var(--curelocare-primary);
}

.no-products {
  grid-column: 1 / -1;
  padding: 42px 20px !important;
  border: 1px solid var(--curelocare-grey-light);
  border-radius: var(--curelocare-radius-md) !important;
  background: var(--curelocare-white);
  color: var(--curelocare-secondary) !important;
  font-size: 14px !important;
  font-weight: 800;
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

@keyframes curelocare-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .treatments-controls {
    gap: 18px 28px;
  }

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

  .product-media {
    margin: 22px 22px 0 !important;
  }

  .product-content {
    padding: 22px 22px 24px !important;
  }

  .product-card-title {
    font-size: 18px !important;
  }

  .product-card-desc {
    font-size: 15px !important;
  }
}

@media (max-width: 680px) {
  .container-products {
    padding: 0 18px !important;
  }

  .treatments-hero {
    min-height: 280px;
    background:
      linear-gradient(
        90deg,
        rgba(255, 246, 238, 0.98),
        rgba(253, 234, 226, 0.9)
      ),
      var(--treatments-hero-image) center / cover no-repeat,
      var(--curelocare-warm-tint);
  }

  .treatments-hero-content {
    padding: 44px 0 !important;
  }

  .treatments-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filter-row,
  .sort-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .filter-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px !important;
  }

  .sort-row select {
    width: 100%;
    max-width: 260px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    margin: 18px 18px 0 !important;
  }

  .product-content {
    padding: 22px 18px 24px !important;
  }

  .product-badges span {
    min-height: 24px;
    padding: 5px 13px !important;
    font-size: 12px !important;
  }

  .product-card-title {
    font-size: 19px !important;
  }

  .product-card-desc {
    min-height: auto;
    font-size: 16px !important;
  }

  .btn-buy {
    font-size: 16px !important;
  }
}

/* Softer treatment controls for Curelocare catalogue */
.charac-view-all-page .treatments-breadcrumb,
.charac-view-all-page .treatments-breadcrumb a {
  color: #776d84 !important;
}

.charac-view-all-page .treatments-breadcrumb span:last-child,
.charac-view-all-page .filter-label,
.charac-view-all-page .sort-row label {
  color: #26143a !important;
}

.charac-view-all-page .filter-chip,
.charac-view-all-page .filter-chip {
  border-color: #e5e0ea !important;
  background: #ffffff !important;
  color: #8b8494 !important;
  box-shadow: none !important;
}

.charac-view-all-page .filter-chip:hover {
  border-color: #f6bdae !important;
  background: #fff7f3 !important;
  color: #26143a !important;
}

.charac-view-all-page .filter-chip.active {
  border-color: #3d2156 !important;
  background: #3d2156 !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(61, 33, 86, 0.2) !important;
}

.charac-view-all-page .sort-row select {
  color: #26143a !important;
}

.charac-view-all-page .result-pill {
  background: transparent !important;
  color: #3d2156 !important;
}

/* Body copy sizing */
.charac-view-all-page {
  font-size: 15px !important;
}

.charac-view-all-page
  :where(p, li, .treatments-hero p, .product-card-desc, .no-products) {
  font-size: 15px !important;
}

.charac-view-all-page .product-card-desc {
  min-height: 47px;
}

/* Health articles */
.health-articles {
  padding: 64px 0 18px;
}

.health-articles__header {
  margin-bottom: 26px;
}

.health-articles__header h2 {
  margin: 0 0 6px !important;
  color: var(--curelocare-secondary) !important;
  font-family: "Nunito", var(--charac-font-family, "Inter"), sans-serif;
  font-size: 30px !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.health-articles__header p {
  margin: 0 !important;
  color: var(--curelocare-grey) !important;
  font-size: 15px !important;
}

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

.health-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee8f2;
  border-radius: 8px;
  background: var(--curelocare-white);
  box-shadow: 0 5px 16px rgba(61, 33, 86, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.health-article-card:hover {
  box-shadow: 0 12px 28px rgba(61, 33, 86, 0.12);
  transform: translateY(-2px);
}

.health-article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  flex: 0 0 auto;
  background-color: #ede8f2;
  background-image: var(--article-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.health-article-card__image:focus-visible,
.health-article-card__content a:focus-visible {
  outline: 3px solid rgba(242, 142, 114, 0.45);
  outline-offset: -3px;
}

.health-article-card__content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.health-article-card__category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 13px;
  padding: 6px 11px;
  border: 2px solid var(--curelocare-primary);
  border-radius: var(--curelocare-radius-pill);
  background: #fff7f3;
  color: var(--curelocare-primary) !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.health-article-card h3 {
  margin: 0 0 12px !important;
  font-family: "Nunito", var(--charac-font-family, "Inter"), sans-serif;
  font-size: 20px !important;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.health-article-card h3 a {
  color: var(--curelocare-secondary) !important;
  text-decoration: none !important;
  font-size: 16px !important;
}

.health-article-card__content > p {
  margin: 0 0 22px !important;
  color: var(--curelocare-grey) !important;
  font-size: 15px !important;
  line-height: 1.65;
}

.health-article-card__footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}

.health-article-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--curelocare-grey) !important;
  font-size: 12px !important;
  line-height: 1.25;
  white-space: nowrap;
}

.health-article-card__meta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health-article-card__link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  color: var(--curelocare-primary) !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.health-article-card__link span {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.health-article-card__link:hover span {
  transform: translateX(3px);
}

.health-articles__actions {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.health-articles__explore {
  display: inline-flex;
  min-width: 190px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 2px solid var(--curelocare-secondary);
  border-radius: var(--curelocare-radius-pill);
  background: transparent;
  color: var(--curelocare-secondary) !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.health-articles__explore span {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.health-articles__explore:hover,
.health-articles__explore:focus-visible {
  border-color: var(--curelocare-primary);
  background: var(--curelocare-primary);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(242, 142, 114, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.health-articles__explore:hover span,
.health-articles__explore:focus-visible span {
  transform: translateX(3px);
}

@media (max-width: 1060px) {
  .health-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .health-articles {
    padding-top: 46px;
  }

  .health-articles__header h2 {
    font-size: 26px !important;
  }

  .health-articles__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .health-article-card {
    min-height: 0;
  }

  .health-article-card__footer {
    grid-template-columns: auto 1fr;
  }

  .health-article-card__link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
