/*
 * Design language base (T-117): tokens and shared parts for the redesigned templates.
 * Loaded with one template file (design-shop / -product / -checkout / -account) by fc_design_enqueue();
 * every rule needs html.fcd (set by fc_design_head_script), so without the class nothing changes.
 * Reference: forcar-concepts-docs/reference/design-language.md
 */

html.fcd {
  --ink: #0e0f11;
  --ink-2: #17181b;
  --ink-3: #23252a;
  --bronze: #cd7f32;
  --bronze-2: #e39a52;
  --bronze-3: #a9621f;
  --paper: #f2f0eb;
  --line: #e2dfd8;
  --muted: #6b6f76;
  --text: #26282c;
  --field-line: #c9c5bd;
  --danger: #b3261e;
  --ok: #2e7d32;
  /* --ff-display comes from typography v2 (T-118, html.fct2, self-hosted font); without it the Google Source Sans Pro */
  --display: var(--ff-display, 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif);
  --band: radial-gradient(ellipse at 18% 110%, rgba(205, 127, 50, .28) 0%, rgba(205, 127, 50, 0) 55%), linear-gradient(180deg, #121316 0%, #0b0c0e 100%);
  --shadow-float: 0 26px 60px rgba(0, 0, 0, .22);
  --shadow-hover: 0 14px 30px rgba(0, 0, 0, .08);
}

/* page head band: the full-width Storefront breadcrumb becomes a dark band with the page title */
html.fcd .storefront-breadcrumb {
  margin: 0 0 48px;
  padding: 40px 0 44px;
  background: var(--band);
  color: #fff;
}
html.fcd .storefront-breadcrumb .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 500; /* a quiet eyebrow under the header; the band title carries the weight */
  letter-spacing: .04em; /* tighter than the .1em label: same 12 px, about 15 % shorter and calmer (user, 2026-11-15) */
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6); /* 7.4:1 on the band */
}
html.fcd .storefront-breadcrumb .woocommerce-breadcrumb::before {
  content: '';
  flex: none;
  width: 34px;
  height: 3px;
  margin-right: 12px;
  background: var(--bronze);
}
html.fcd .storefront-breadcrumb .woocommerce-breadcrumb a {
  color: var(--bronze-2);
  text-decoration: none;
  margin: 0 !important; /* main-2.0.24.css: a { margin: .5rem !important } */
}
html.fcd .storefront-breadcrumb .woocommerce-breadcrumb a:hover {
  color: #fff;
}
html.fcd .storefront-breadcrumb .woocommerce-breadcrumb a::before {
  display: none;
}
/* separator: a drawn bronze chevron instead of the faint text glyph */
html.fcd .storefront-breadcrumb .breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 10px;
  font-size: 0;
}
html.fcd .storefront-breadcrumb .breadcrumb-separator::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--bronze);
  border-right: 2px solid var(--bronze);
  transform: rotate(45deg);
}
/* the theme's Bootstrap sets [hidden] { display: none !important } */
html.fcd .fcd-head-title[hidden],
html.fcd .fcd-head-title {
  display: block !important;
  max-width: 900px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: var(--fs-3xl);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: break-word;
  hyphens: manual; /* no automatic word breaks (TU-NING); a word longer than the line still wraps */
}
/* the real h1 stays for screen readers and search engines; the band shows the visible title */
html.fcd .woocommerce-products-header__title.page-title,
html.fcd #main > .page > .entry-header .entry-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.fcd #main > .page > .entry-header {
  margin: 0;
  padding: 0;
  border: 0;
}

/* headings in the content are ink, not the old orange (cards keep their own rules) */
html.fcd #content :is(h1, h2, h3, h4, h5, h6):not(ul.products *) {
  color: var(--ink);
}

/* text links in the content: bronze-3 passes 4.5:1 on white, the old bronze does not */
html.fcd #content :is(.entry-content, .term-description, .woocommerce-product-details__short-description, .woocommerce-Tabs-panel, .woocommerce-notices-wrapper, .woocommerce-form-coupon-toggle, .woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-checkbox-text) a:not(.button) {
  color: var(--bronze-3);
  font-weight: 700;
  margin: 0 !important; /* main-2.0.24.css: .m-2, a { margin: .5rem !important } leaks onto every link */
}

/* buttons outside the product cards: square, label type, ink with a bronze-3 hover.
 * !important only where main-2.0.24.css forces the old green button:
 * .button { color, background-color, border, border-radius: 8px, font-size: 16px !important } and a { margin !important } */
html.fcd #content :is(a.button, button.button, input.button, button[type='submit'], input[type='submit'], .wc-forward):not(ul.products *):not(.woof *):not(.mobile-filter-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 24px;
  border: 2px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: var(--fs-sm) !important;
  font-weight: 700;
  font-style: normal;
  letter-spacing: var(--ls-label);
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
html.fcd #content :is(a.button, button.button, input.button, button[type='submit'], input[type='submit'], .wc-forward):not(ul.products *):not(.woof *):not(.mobile-filter-btn):hover {
  border-color: var(--bronze-3) !important;
  background: var(--bronze-3) !important;
  color: #fff !important;
}
html.fcd #content :is(a.button, button.button, input.button, button[type='submit'], input[type='submit']):not(ul.products *):is(:disabled, .disabled) {
  opacity: .4;
  cursor: not-allowed;
}
html.fcd #content :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--bronze-2);
  outline-offset: 2px;
}
/* WooCommerce focuses notices (tabindex=-1) on load so screen readers announce them; no ring there */
html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus-visible {
  outline: none;
}

/* form fields (checkout, account, cart coupon): 52 px, square, 16 px text so iOS does not zoom */
html.fcd #content .form-row :is(input.input-text, select, textarea),
html.fcd #content :is(#coupon_code, .woocommerce-Input),
html.fcd #content .select2-container .select2-selection--single {
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.4;
}
html.fcd #content .form-row textarea {
  min-height: 120px;
  padding: 12px 14px;
}
html.fcd #content .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 50px;
  color: var(--ink);
}
html.fcd #content .select2-container .select2-selection--single .select2-selection__arrow {
  height: 50px;
  right: 8px;
}
html.fcd #content .form-row :is(input.input-text, select, textarea):focus,
html.fcd #content :is(#coupon_code, .woocommerce-Input):focus,
html.fcd #content .select2-container--focus .select2-selection--single,
html.fcd #content .select2-container--open .select2-selection--single {
  outline: 2px solid var(--bronze);
  outline-offset: 0;
  border-color: var(--bronze);
}
html.fcd #content .form-row label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}
html.fcd #content .form-row .required {
  color: var(--danger);
  text-decoration: none;
}
html.fcd #content .woocommerce-invalid :is(input.input-text, select),
html.fcd #content .woocommerce-invalid .select2-selection--single {
  border-color: var(--danger);
}

/* notices: paper with a 4 px edge, square */
html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments) {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 0;
  border-left: 4px solid var(--bronze);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.55;
}
html.fcd #content .woocommerce-error {
  border-left-color: var(--danger);
}
html.fcd #content .woocommerce-message {
  border-left-color: var(--ok);
}
/* the WooCommerce icon font prints a broken box glyph here (live too); the coloured edge carries the state */
html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
  content: none;
  display: none;
}
html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
  color: var(--bronze-3);
  font-weight: 700;
}
html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
  float: right;
  min-height: 40px;
  margin: -6px 0 -6px 16px !important;
  padding: 0 16px;
}

/* the product-wide AddToAny "Teilen:" block is not part of the design */
html.fcd #content .addtoany_share_save_container {
  display: none;
}

@media (max-width: 767px) {
  /* the whole trail stays visible: the bronze line takes its own row and the crumbs wrap like text under it */
  html.fcd .storefront-breadcrumb .woocommerce-breadcrumb {
    display: block;
  }
  html.fcd .storefront-breadcrumb .woocommerce-breadcrumb::before {
    display: block;
    margin: 0 0 12px;
  }
  html.fcd .storefront-breadcrumb .breadcrumb-separator {
    display: inline-block;
    text-indent: 0; /* Storefront icons.css: text-indent -9999px would push the chevron off screen in inline flow */
    padding: 0 10px 0 8px;
    vertical-align: 1px;
  }
  html.fcd .storefront-breadcrumb {
    margin-bottom: 28px;
    padding: 28px 0 30px;
  }
  html.fcd .fcd-head-title {
    margin-top: 12px;
  }
  html.fcd #content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
    float: none;
    display: flex;
    width: 100%;
    margin: 12px 0 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.fcd #content * {
    transition: none !important;
  }
}
