/* =========================================================
   FALLENS — shared storefront typography
   Stock nopCommerce + plugin content (not chrome/header/widgets).
   ========================================================= */

.master-wrapper-content .page-title {
  min-height: 0;
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--fd-border);
  background: transparent;
}

.master-wrapper-content .page-title h1 {
  margin: 0;
  color: var(--fd-text);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.master-wrapper-content .page-body :where(h1, h2, h3, h4, h5, h6):not(.fd-home-about__title) {
  color: var(--fd-text);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.master-wrapper-content .page-body h1:not(.fd-home-about__title) { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.master-wrapper-content .page-body h2:not(.fd-home-about__title) { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.master-wrapper-content .page-body h3 { font-size: 1.1rem; }
.master-wrapper-content .page-body h4,
.master-wrapper-content .page-body h5,
.master-wrapper-content .page-body h6 { font-size: 1rem; }

.master-wrapper-content .fieldset > .title,
.master-wrapper-content .section > .title,
.master-wrapper-content .fieldset > .title strong,
.master-wrapper-content .section > .title strong,
.master-wrapper-content .fieldset > .title h2,
.master-wrapper-content .section > .title h2,
.master-wrapper-content .fieldset > .title h3,
.master-wrapper-content .section > .title h3 {
  color: var(--fd-text);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.master-wrapper-content .topic-block-title,
.master-wrapper-content .topic-block-title h2 {
  color: var(--fd-text);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.master-wrapper-content :where(
  .page-body,
  .topic-block-body,
  .category-description,
  .manufacturer-description,
  .vendor-description,
  .full-description,
  .short-description,
  .post-body,
  .news-body,
  .comment-body,
  .review-text
) {
  color: var(--fd-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.master-wrapper-content :where(
  .page-body,
  .topic-block-body,
  .category-description,
  .manufacturer-description,
  .full-description,
  .post-body,
  .news-body,
  .comment-body,
  .review-text
) :where(p, ul, ol, li, dl, dt, dd) {
  color: inherit;
}

.master-wrapper-content :where(
  .page-body,
  .topic-block-body,
  .full-description,
  .post-body,
  .news-body
) a:not(.button-1):not(.button-2):not(.btn):not(.fd-btn):not(.fd-subcategory-card):not(.fd-category-card):not(.post-title):not(.read-more) {
  color: var(--fd-accent-2);
  text-decoration: none;
}

.master-wrapper-content :where(
  .page-body,
  .topic-block-body,
  .full-description,
  .post-body,
  .news-body
) a:not(.button-1):not(.button-2):not(.btn):not(.fd-btn):not(.fd-subcategory-card):not(.fd-category-card):not(.post-title):not(.read-more):hover {
  color: var(--fd-accent);
  text-decoration: underline;
}

.master-wrapper-content :where(hr) {
  border: 0;
  border-top: 1px solid var(--fd-border);
  margin: 20px 0;
}

.master-wrapper-content :where(code, kbd, samp) {
  display: inline-block;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--fd-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fd-accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  word-break: break-word;
}

.master-wrapper-content :where(pre) {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface);
  color: var(--fd-text-soft);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.master-wrapper-content :where(pre code) {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

/* Bootstrap-like text utilities used by plugins */
.master-wrapper-content .text-muted,
.page .text-muted {
  color: var(--fd-muted) !important;
}

.master-wrapper-content .text-success,
.page .text-success {
  color: var(--fd-success) !important;
}

.master-wrapper-content .text-danger,
.page .text-danger {
  color: var(--fd-danger) !important;
}

.master-wrapper-content .text-warning,
.page .text-warning {
  color: var(--fd-warning) !important;
}

.master-wrapper-content .text-info,
.page .text-info {
  color: var(--fd-accent-2) !important;
}

.master-wrapper-content .small,
.page .small {
  font-size: 0.875em;
  color: var(--fd-muted);
}

/* Breadcrumb — stock DefaultClean / plugin breadcrumbs (app-wide) */
.master-wrapper-page .breadcrumb {
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--fd-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

/* Kill legacy BlackShop product breadcrumb band if markup still appears */
.master-wrapper-page .fd-product-name-breadcrumb,
.master-wrapper-page .fd-product-breadcrumb {
  background: transparent !important;
  color: inherit;
  text-align: left;
  padding: 0;
}

.master-wrapper-page .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: inherit;
}

.master-wrapper-page .breadcrumb li {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
}

.master-wrapper-page .breadcrumb a {
  color: var(--fd-text-soft);
  text-decoration: none;
}

.master-wrapper-page .breadcrumb a:hover,
.master-wrapper-page .breadcrumb a:focus-visible {
  color: var(--fd-accent-2);
}

.master-wrapper-page .breadcrumb strong,
.master-wrapper-page .breadcrumb .current-item {
  color: var(--fd-text);
  font-weight: 600;
}

/*
  Tracer BB delimiter — flying ball + motion trail (direction →).
  Keeps stock .delimiter class for plugins / DefaultClean markup.
*/
.master-wrapper-page .breadcrumb .delimiter {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 14px;
  margin: 0 6px !important;
  padding: 0;
  overflow: visible;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  vertical-align: middle;
}

.master-wrapper-page .breadcrumb .delimiter::before,
.master-wrapper-page .breadcrumb .delimiter::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
}

/* Motion streak — longer trail so flight direction reads clearly */
.master-wrapper-page .breadcrumb .delimiter::before {
  right: 7px;
  width: 22px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(155, 215, 57, 0.18) 20%,
    rgba(155, 215, 57, 0.55) 60%,
    rgba(155, 215, 57, 0.95) 100%
  );
  box-shadow:
    0 0 5px rgba(155, 215, 57, 0.45),
    0 0 10px rgba(127, 180, 32, 0.3);
  transform-origin: right center;
}

/* The BB itself */
.master-wrapper-page .breadcrumb .delimiter::after {
  right: 2px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4ff7a 0%, var(--fd-accent-2) 45%, var(--fd-accent) 100%);
  box-shadow:
    0 0 4px rgba(155, 215, 57, 0.85),
    0 0 9px rgba(127, 180, 32, 0.4),
    0 0 14px rgba(127, 180, 32, 0.18);
  animation: fd-breadcrumb-tracer 1.8s ease-in-out infinite;
}

@keyframes fd-breadcrumb-tracer {
  0%,
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  50% {
    transform: translateX(1.5px);
    filter: brightness(1.15);
  }
}

@keyframes fd-breadcrumb-tracer-trail {
  0%,
  100% {
    opacity: 0.75;
    transform: scaleX(1);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

.master-wrapper-page .breadcrumb .delimiter::before {
  animation: fd-breadcrumb-tracer-trail 1.8s ease-in-out infinite;
}

/* RTL: trail / flight flips with reading direction */
html[dir="rtl"] .master-wrapper-page .breadcrumb .delimiter::before {
  right: auto;
  left: 7px;
  background: linear-gradient(
    270deg,
    transparent 0%,
    rgba(155, 215, 57, 0.18) 20%,
    rgba(155, 215, 57, 0.55) 60%,
    rgba(155, 215, 57, 0.95) 100%
  );
  transform-origin: left center;
}

html[dir="rtl"] .master-wrapper-page .breadcrumb .delimiter::after {
  right: auto;
  left: 2px;
}

html[dir="rtl"] .master-wrapper-page .breadcrumb .delimiter::after {
  animation-name: fd-breadcrumb-tracer-rtl;
}

@keyframes fd-breadcrumb-tracer-rtl {
  0%,
  100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  50% {
    transform: translateX(-1.5px);
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .master-wrapper-page .breadcrumb .delimiter::before,
  .master-wrapper-page .breadcrumb .delimiter::after {
    animation: none;
  }
}
