/* Вариант 3 — Chifu header + насыщенный каталог */

body[data-theme="chifu"] {
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Nunito", "Manrope", system-ui, sans-serif;

  background-color: #e8f4fc;
  background-image:
    radial-gradient(ellipse 120% 80% at 0% -20%, rgba(120, 195, 245, 0.96), transparent 50%),
    radial-gradient(ellipse 90% 70% at 100% 10%, rgba(240, 155, 195, 0.85), transparent 45%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(95, 215, 170, 0.68), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(107, 174, 214, 0.25), transparent 35%),
    linear-gradient(165deg, #f0f9ff 0%, #e3f2fb 35%, #f5eef8 70%, #edf9f4 100%);
  background-attachment: fixed;
}

/* ── Hero ── */
body[data-theme="chifu"] .catalog-hero {
  padding: clamp(32px, 4.5vw, 56px) var(--pad-x) clamp(22px, 3vw, 36px);
  overflow: hidden;
}

body[data-theme="chifu"] .catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 15% 50%, rgba(168, 218, 245, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 70% at 85% 30%, rgba(249, 200, 220, 0.45), transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 90%, rgba(168, 230, 200, 0.35), transparent 50%);
  pointer-events: none;
}

body[data-theme="chifu"] .catalog-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 174, 214, 0.35), rgba(232, 164, 196, 0.35), rgba(139, 212, 180, 0.35), transparent);
}

body[data-theme="chifu"] .catalog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

body[data-theme="chifu"] .catalog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #4ba2b8;
  margin: 0 0 16px;
}

body[data-theme="chifu"] .catalog-hero__decor {
  display: none;
}

body[data-theme="chifu"] .catalog-hero__sub {
  font-family: "Nunito", var(--font);
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.72;
  font-weight: 400;
  color: rgba(21, 58, 87, 0.68);
  max-width: 54ch;
  letter-spacing: 0.01em;
}

body[data-theme="chifu"] .catalog-toolbar__count {
  padding: 8px 16px;
  border-radius: 999px;
  color: #5a7088;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(227, 240, 250, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.65);
}

body[data-theme="chifu"] .catalog-toolbar__count strong {
  background: linear-gradient(90deg, #3d8bbe, #e04590);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="chifu"] .filter-open-btn {
  background: linear-gradient(135deg, #2d9de8, #7bc4a8);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(94, 179, 228, 0.35);
}

/* ── Filter ── */
body[data-theme="chifu"] .filter-panel__inner {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(240, 248, 255, 0.65));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 32px rgba(45, 157, 232, 0.2),
    0 0 0 1px rgba(107, 174, 214, 0.06);
}

body[data-theme="chifu"] .filter-panel__head {
  border-bottom: 1px solid rgba(197, 224, 245, 0.5);
}

body[data-theme="chifu"] .filter-panel__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #1e4d6b;
}

body[data-theme="chifu"] .filter-reset {
  color: #fff;
  background: linear-gradient(135deg, #e8a4c4, #e04590);
  box-shadow: 0 2px 10px rgba(217, 122, 170, 0.3);
}

body[data-theme="chifu"] .filter-group__title {
  color: #111;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

body[data-theme="chifu"] .filter-option:hover {
  background: linear-gradient(90deg, rgba(227, 240, 250, 0.6), rgba(253, 240, 246, 0.4));
}

body[data-theme="chifu"] .filter-option input {
  border: 2px solid rgba(158, 202, 232, 0.7);
}

body[data-theme="chifu"] .filter-option input:checked {
  background: linear-gradient(135deg, #2d9de8, #3dcc9f 50%, #e8a4c4);
  border-color: transparent;
}

body[data-theme="chifu"] .filter-show-more {
  color: #3d8bbe;
  background: linear-gradient(135deg, rgba(237, 249, 243, 0.8), rgba(227, 240, 250, 0.6));
}

/* ── Cards ── */
body[data-theme="chifu"] .product-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 24px rgba(45, 157, 232, 0.14);
}

body[data-theme="chifu"] .product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(107, 174, 214, 0.25), rgba(232, 164, 196, 0.2), rgba(139, 212, 180, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

body[data-theme="chifu"] .product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(107, 174, 214, 0.18),
    0 8px 24px rgba(232, 164, 196, 0.12);
}

body[data-theme="chifu"] .product-card:hover::before {
  opacity: 1;
}

body[data-theme="chifu"] .product-card__media {
  background:
    radial-gradient(circle at 30% 20%, rgba(249, 213, 229, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 240, 228, 0.4), transparent 50%),
    linear-gradient(145deg, #f8fcff, #fff);
}

body[data-theme="chifu"] .product-card__badge {
  background: linear-gradient(135deg, #3dcc9f, #2d9de8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(94, 179, 228, 0.35);
}

body[data-theme="chifu"] .product-card__name {
  color: #1e4d6b;
  transition: color 0.2s;
}

body[data-theme="chifu"] .product-card:hover .product-card__name,
body[data-theme="chifu"] .product-card:focus-visible .product-card__name {
  color: #4ba2b8;
}

body[data-theme="chifu"] .product-card__article {
  background: linear-gradient(90deg, #e04590, #e8a4c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="chifu"] .product-card__subtitle {
  color: #6b8499;
}

body[data-theme="chifu"] .product-card__footer {
  border-top: 1px solid rgba(197, 224, 245, 0.5);
  padding-top: 10px;
}

body[data-theme="chifu"] .products-empty {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(227, 240, 250, 0.6));
  border: 2px dashed rgba(107, 174, 214, 0.35);
}

/* ── CTA ── */
body[data-theme="chifu"] .cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 248, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 48px rgba(107, 174, 214, 0.15);
}

body[data-theme="chifu"] .cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(232, 164, 196, 0.2), transparent 60%);
  pointer-events: none;
}

body[data-theme="chifu"] .cta-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(139, 212, 180, 0.2), transparent 60%);
  pointer-events: none;
}

body[data-theme="chifu"] .cta-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #1e4d6b;
}

body[data-theme="chifu"] .cta-card__text {
  color: #5a7088;
}

body[data-theme="chifu"] .cta-form input,
body[data-theme="chifu"] .cta-form textarea {
  border: 1px solid rgba(197, 224, 245, 0.8);
  background: rgba(255, 255, 255, 0.85);
}

body[data-theme="chifu"] .cta-form input:focus,
body[data-theme="chifu"] .cta-form textarea:focus {
  outline: none;
  border-color: #2d9de8;
  box-shadow: 0 0 0 3px rgba(94, 179, 228, 0.2);
}

body[data-theme="chifu"] .cta-form__submit {
  background: linear-gradient(135deg, #2d9de8, #7bc4a8 45%, #dfa0c0);
  color: #fff;
  box-shadow: 0 6px 24px rgba(94, 179, 228, 0.4);
}

body[data-theme="chifu"] .cta-form__note {
  color: #7a92a8;
}

/* ── Footer ── */
body[data-theme="chifu"] .site-footer {
  background: linear-gradient(135deg, #1a3d55 0%, #2a5f7f 40%, #3d7a6a 100%);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
}

body[data-theme="chifu"] .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2d9de8, #e8a4c4, #3dcc9f, #2d9de8);
}

body[data-theme="chifu"] .site-footer a {
  color: #b8f0d8;
}

body[data-theme="chifu"] .site-footer a:hover {
  color: #f9d5e5;
}

body[data-theme="chifu"] .filter-backdrop {
  background: rgba(21, 63, 92, 0.45);
}

@media (max-width: 1024px) {
  body[data-theme="chifu"] .filter-panel {
    background: linear-gradient(180deg, #f8fcff, #f5eef8);
    box-shadow: 8px 0 40px rgba(107, 174, 214, 0.2);
  }

  body[data-theme="chifu"] .filter-panel__inner {
    border: none;
    box-shadow: none;
  }

  body[data-theme="chifu"] .filter-close {
    background: linear-gradient(135deg, #e8f4fc, #fdf0f6);
    color: var(--sky-700);
    border: 1px solid var(--sky-200);
  }
}

/* ── Product page ── */
body[data-theme="chifu"] .product-band--hero {
  background: linear-gradient(135deg, #f6f8fa 0%, #f0f4f7 50%, #eef6f3 100%);
}

body[data-theme="chifu"] .product-gallery__frame {
  background:
    radial-gradient(circle at 30% 20%, rgba(249, 213, 229, 0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 240, 228, 0.35), transparent 50%),
    rgba(255, 255, 255, 0.5);
  border: none;
  box-shadow: none;
}

body[data-theme="chifu"] .product-gallery__badge {
  background: linear-gradient(135deg, #3dcc9f, #2d9de8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(94, 179, 228, 0.35);
}

body[data-theme="chifu"] .product-summary__title {
  color: #4ba2b8;
  transform: scaleY(1.12);
  transform-origin: left top;
}

body[data-theme="chifu"] .product-summary__article {
  background: linear-gradient(90deg, #e04590, #e8a4c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-theme="chifu"] .product-summary__cta {
  background: linear-gradient(135deg, #2d9de8, #5ec9a8);
  color: #fff;
  box-shadow: 0 6px 20px rgba(75, 162, 184, 0.35);
  border-radius: 12px;
}

body[data-theme="chifu"] .product-summary__cta:hover {
  filter: brightness(1.05);
}

body[data-theme="chifu"] .product-band--buy {
  background: #f4f4f4;
}

body[data-theme="chifu"] .product-band--inci {
  background: #fff;
}

body[data-theme="chifu"] .product-inci__title {
  color: #4ba2b8;
  transform: scaleY(1.08);
  transform-origin: left top;
}

body[data-theme="chifu"] .product-band--actives {
  background: linear-gradient(180deg, #f4f9fc 0%, #f8fbfd 100%);
}

body[data-theme="chifu"] .product-actives__title {
  color: #4ba2b8;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

body[data-theme="chifu"] .product-accordion__trigger:hover {
  color: #3d8bbe;
}

body[data-theme="chifu"] .product-band--benefits {
  background: linear-gradient(180deg, #f4f6f8 0%, #eef4f2 100%);
}

body[data-theme="chifu"] .product-benefits__title {
  color: #4ba2b8;
}

body[data-theme="chifu"] .product-band--indications {
  background: linear-gradient(180deg, #fff 0%, #f6faf8 100%);
}

body[data-theme="chifu"] .product-indications__title {
  color: #4ba2b8;
}

body[data-theme="chifu"] .product-video__title {
  color: #4ba2b8;
}

body[data-theme="chifu"] .product-indications__photo {
  box-shadow: 0 0 0 4px rgba(75, 162, 184, 0.2), 0 8px 32px rgba(75, 162, 184, 0.12);
}

body[data-theme="chifu"] .product-band--protocol {
  background: linear-gradient(135deg, #f6f8fa 0%, #f0f4f7 45%, #eef6f3 100%);
}

body[data-theme="chifu"] .product-protocol-intro__title {
  color: #4ba2b8;
  transform: scaleY(1.12);
  transform-origin: left top;
}

body[data-theme="chifu"] .product-protocol__step {
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 213, 229, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 240, 228, 0.18), transparent 50%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 28px rgba(45, 157, 232, 0.12);
}

body[data-theme="chifu"] .product-protocol__step-head {
  color: #4ba2b8;
  transform: scaleY(1.1);
  transform-origin: left top;
}

body[data-theme="chifu"] .product-protocol__line {
  background: linear-gradient(90deg, #4ba2b8, #5ec9a8, #e88eb8);
  height: 2px;
}

@media (max-width: 768px) {
  body[data-theme="chifu"] .product-summary__title {
    font-size: clamp(30px, 8.2vw, 38px);
  }
}
