.leader-app-root {
  min-height: 48vh;
  background: #fff;
}

/* Fallback під час React.lazy — лише глобальні стилі, без page-CSS chunk. */
.leader-app-page-fallback {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 24px;
}

.leader-app-page-fallback-line {
  height: 14px;
  max-width: 520px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f3 0%, #f7f7f9 50%, #f0f0f3 100%);
  background-size: 200% 100%;
  animation: leader-app-fallback-shimmer 1.2s ease-in-out infinite;
}

.leader-app-page-fallback-line--title {
  height: 28px;
  max-width: 280px;
}

.leader-app-page-fallback-line--short {
  max-width: 360px;
}

@keyframes leader-app-fallback-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.leader-app-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--leader-page-top, 24px) 20px 64px;
}

.leader-app-page--narrow {
  max-width: 560px;
}

.leader-app-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.2;
  color: #121323;
}

.leader-app-lead,
.leader-app-empty {
  margin: 0 0 20px;
  color: #4b4b57;
  font-size: 16px;
  line-height: 1.5;
}

.leader-app-error {
  color: #b91c1c;
  margin: 0 0 16px;
}

.leader-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.leader-app-card {
  position: relative;
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.leader-app-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.leader-app-card-media {
  position: relative;
  aspect-ratio: 1;
  background: #f6f6f6;
}

.leader-app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.leader-app-card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #121323;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.leader-app-card-body {
  padding: 12px 14px 16px;
}

.leader-app-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.leader-app-card-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.leader-app-card-old {
  color: #8a8a8a;
  text-decoration: line-through;
  font-size: 13px;
}

.leader-app-card-price {
  color: #c61717;
  font-weight: 700;
}

.leader-card-list-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.leader-list-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #121323;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.leader-list-btn.is-active {
  color: #c61717;
}

.leader-app-card-remove {
  margin: 0 12px 12px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.leader-app-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leader-app-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #4b4b57;
}

.leader-app-form input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.leader-app-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.leader-app-tabs button {
  border: 1px solid #ececec;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.leader-app-tabs button.is-active {
  background: #c61717;
  border-color: #c61717;
  color: #fff;
}

.leader-app-submit,
.leader-app-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

.leader-app-submit {
  background: #c61717;
  color: #fff;
}

.leader-app-secondary {
  background: #f4f4f4;
  color: #121323;
}

.leader-app-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.leader-app-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leader-app-order {
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.leader-app-order-status {
  margin-left: 10px;
  color: #8a8a8a;
  text-transform: uppercase;
  font-size: 12px;
}

.leader-app-order-meta {
  color: #8a8a8a;
  font-size: 13px;
}

.leader-compare-table-wrap {
  overflow-x: auto;
}

.leader-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.leader-compare-table th,
.leader-compare-table td {
  border: 1px solid #ececec;
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

.leader-compare-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.leader-article-banner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 24px;
}

.leader-article-body {
  font-size: 16px;
  line-height: 1.65;
  color: #222;
}

.leader-article-body h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.leader-article-body p,
.leader-article-body li {
  margin: 0 0 12px;
}

/* Стилі фільтрів категорії → catalog-ux.css (підключається з behaviors.js). */

.leader-np-suggest {
  position: relative;
}

.leader-np-suggest-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.leader-np-suggest-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
}

.leader-np-suggest-list button:hover {
  background: #faf3f3;
}

.leader-promo-status {
  margin-top: 8px;
  font-size: 14px;
}

.leader-promo-status.is-ok {
  color: #15803d;
}

.leader-promo-status.is-bad {
  color: #b91c1c;
}

.leader-promo-status.is-warn {
  color: #b45309;
}

.leader-promo-apply {
  appearance: none;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #e31e24;
  border-radius: 3px;
  background: #fff;
  color: #e31e24;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.leader-promo-apply:hover:not(:disabled) {
  background: #fff5f5;
}

.leader-promo-apply:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.discount__wrapper .w-commerce-commercecheckoutdiscountsinput {
  flex: 1 1 180px;
  min-width: 140px;
}

@media screen and (max-width: 767px) {
  .leader-promo-apply {
    width: 100%;
  }

  .leader-app-page {
    padding: var(--leader-page-top, 24px) 15px 48px;
  }

  .leader-app-title {
    font-size: 26px;
  }

  .leader-app-lead,
  .leader-app-empty {
    font-size: 15px;
  }

  .leader-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .leader-app-tabs {
    flex-wrap: wrap;
  }

  .leader-article-banner {
    max-height: 240px;
    border-radius: 10px;
  }

  .leader-article-body {
    font-size: 15px;
  }

  .leader-article-body h2 {
    font-size: 20px;
  }

  .leader-compare-table {
    min-width: 520px;
  }
}

@media screen and (max-width: 479px) {
  .leader-app-page {
    padding: var(--leader-page-top) 12px 40px;
  }

  .leader-app-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .leader-app-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .leader-app-tabs button {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .leader-app-actions {
    flex-direction: column;
  }

  .leader-app-submit,
  .leader-app-secondary {
    width: 100%;
  }

  .leader-app-form input {
    font-size: 16px;
  }

  .leader-article-banner {
    max-height: 180px;
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .leader-article-body {
    font-size: 14px;
    line-height: 1.6;
  }

  .leader-article-body h2 {
    margin-top: 22px;
    font-size: 18px;
  }

  .leader-app-order {
    padding: 12px;
  }
}