/*
 * LaFactory Blocks: the look of every block.
 *
 * Colors and the font come from CSS variables. Each one has a neutral
 * fallback, so the blocks look finished on any theme; a site sets its own
 * palette by declaring them (Settings > LaFactory Blocks, or its stylesheet):
 *
 *   --lfb-font           inherit                  font family of every block
 *   --lfb-ink            #111827                  headings and strong text
 *   --lfb-text           #374151                  body text
 *   --lfb-text-strong    #1f2937                  lead paragraph of a prose block
 *   --lfb-muted          #6b7280                  intros, card text, secondary lines
 *   --lfb-subtle         #9ca3af                  labels, FAQ group names
 *   --lfb-faint          #d1d5db                  FAQ chevron
 *   --lfb-accent         #2563eb                  buttons, solid labels
 *   --lfb-accent-strong  #1d4ed8                  button hover, links, figures
 *   --lfb-accent-soft    #dbeafe                  label background
 *   --lfb-on-accent      #ffffff                  text on an accent background
 *   --lfb-dark           #111827                  dark bands, hero background, dark button
 *   --lfb-on-dark        #ffffff                  text on a dark background or a photo
 *   --lfb-surface        #ffffff                  cards, FAQ items, stats band
 *   --lfb-surface-soft   #f9fafb                  table head
 *   --lfb-surface-hover  #f9fafb                  FAQ question hover
 *   --lfb-border         #e5e7eb                  card and table borders
 *   --lfb-border-strong  #d1d5db                  border of a film inside a text
 *   --lfb-success        #15803d                  tick of a checklist
 *   --lfb-shadow         rgba(17, 24, 39, 0.1)    card hover shadow
 *   --lfb-scrim          rgba(17, 24, 39, 0.75)   play button disc
 *
 *   --lfb-error          #b91c1c                  required mark, form error text
 *   --lfb-error-soft     #fee2e2                  form error background
 *   --lfb-radius         8px                      corners of tiles and notices
 *   --lfb-gap            16px                     gap of the tile grids
 *
 * The hero overlay tint is --lfb-overlay-rgb (three numbers, default 0, 0, 0),
 * read by the inline gradient the hero block prints.
 */

a.lfb-btn,
button.lfb-btn,
.lfb-btn {
  display: inline-block;
  background: var(--lfb-accent, #2563eb);
  color: var(--lfb-on-accent, #ffffff);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--lfb-font, inherit);
  transition: background 0.12s;
}

a.lfb-btn:hover,
button.lfb-btn:hover,
.lfb-btn:hover {
  background: var(--lfb-accent-strong, #1d4ed8);
  color: var(--lfb-on-accent, #ffffff);
  text-decoration: none;
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
.lfb-faq__chev {
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
.lfb-faq__chev::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 14px 14px;
  mask-size: 14px 14px;
  transition: transform .18s ease;
}
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
.lfb-faq__item.is-open .lfb-faq__chev::before {
  transform: rotate(180deg);
}
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
@media (prefers-reduced-motion: reduce) {
.lfb-faq__chev::before {
  transition: none;
}
}
}

.lfb-page {
  font-family: var(--lfb-font, inherit);
  color: var(--lfb-ink, #111827);
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}

.lfb-title {
  font-family: var(--lfb-font, inherit);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--lfb-ink, #111827);
}

.lfb-intro {
  font-size: 17px;
  color: var(--lfb-muted, #6b7280);
  margin: 0 0 32px;
  max-width: 680px;
  line-height: 1.6;
}

.lfb-intro a {
  color: var(--lfb-accent-strong, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

.lfb-intro a:hover {
  color: var(--lfb-accent, #2563eb);
}

.lfb-card {
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px 26px;
}

.lfb-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lfb-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--lfb-muted, #6b7280);
}

.lfb-card__text a {
  color: var(--lfb-accent-strong, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

.lfb-callout {
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lfb-callout__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lfb-callout__sub {
  font-size: 14px;
  color: var(--lfb-muted, #6b7280);
}

.lfb-btn-outline {
  flex-shrink: 0;
  background: var(--lfb-dark, #111827);
  color: var(--lfb-on-accent, #ffffff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.12s;
}

.lfb-btn-outline:hover {
  background: var(--lfb-accent, #2563eb);
  color: var(--lfb-on-accent, #ffffff);
}

.lfb-page--full {
  max-width: none;
  padding: 0;
}

.lfb-split {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 40px;
  align-items: center;
}

.lfb-pill {
  display: inline-flex;
  background: var(--lfb-accent-soft, #dbeafe);
  color: var(--lfb-accent-strong, #1d4ed8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.lfb-h1 {
  font-family: var(--lfb-font, inherit);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 18px;
  color: var(--lfb-ink, #111827);
}

.lfb-lead,
.is-style-lfb-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--lfb-muted, #6b7280);
  margin: 0 0 28px;
}

.lfb-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}

.is-style-lfb-heading {
  font-family: var(--lfb-font, inherit);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--lfb-ink, #111827);
}

.lfb-band {
  margin-top: 32px;
  background: var(--lfb-dark, #111827);
  color: var(--lfb-on-dark, #ffffff);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lfb-band__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lfb-band__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.lfb-band .lfb-btn {
  flex-shrink: 0;
  font-size: 14px;
  padding: 13px 24px;
}

.lfb-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--lfb-dark, #111827);
}

.lfb-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 40px;
}

.lfb-hero__inner--tall {
  padding: 96px 40px;
}

.lfb-h1--onimg {
  color: var(--lfb-on-dark, #ffffff);
  font-size: 52px;
  max-width: 720px;
}

.lfb-lead--onimg {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 560px;
}

.lfb-pill--solid {
  background: var(--lfb-accent, #2563eb);
  color: var(--lfb-on-accent, #ffffff);
}

.lfb-stats {
  border-bottom: 1px solid var(--lfb-border, #e5e7eb);
  background: var(--lfb-surface, #ffffff);
}

.lfb-stats__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 32px 40px;
}

.lfb-stat__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--lfb-accent-strong, #1d4ed8);
}

.lfb-stat__label {
  font-size: 13px;
  color: var(--lfb-subtle, #9ca3af);
}

.lfb-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px;
}

.lfb-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--lfb-text, #374151);
  margin: 0 0 22px;
}

.lfb-prose p.is-style-lfb-prose-lead {
  font-size: 19px;
  color: var(--lfb-text-strong, #1f2937);
}

.lfb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lfb-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.lfb-check {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--lfb-text, #374151);
}

.lfb-check span:first-child {
  color: var(--lfb-success, #15803d);
  font-weight: 700;
}

.lfb-section--center {
  text-align: center;
}

.lfb-section--center .lfb-lead,
.lfb-section--center .is-style-lfb-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.lfb-page--faq {
  max-width: 860px;
}

.lfb-faq-group {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lfb-subtle, #9ca3af);
  margin: 28px 0 12px;
}

.lfb-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lfb-faq__item {
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.lfb-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  text-align: left;
  color: var(--lfb-ink, #111827);
  font-family: var(--lfb-font, inherit);
  font-size: 16px;
  font-weight: 600;
}

.lfb-faq__q:hover,
.lfb-faq__q:focus,
.lfb-faq__q:active {
  background: var(--lfb-surface-hover, #f9fafb);
  color: var(--lfb-ink, #111827);
  outline: none;
}

.lfb-faq__chev {
  color: var(--lfb-faint, #d1d5db);
}

.lfb-faq__a {
  display: none;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--lfb-text, #374151);
}

.lfb-faq__item.is-open .lfb-faq__a {
  display: block;
}

.lfb-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lfb-video {
  display: block;
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--lfb-ink, #111827);
  transition: all 0.15s;
}

.lfb-video:hover {
  box-shadow: 0 10px 28px var(--lfb-shadow, rgba(17, 24, 39, 0.1));
  transform: translateY(-2px);
  color: var(--lfb-ink, #111827);
}

.lfb-video__media {
  position: relative;
}

.lfb-video__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.lfb-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lfb-video__play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lfb-scrim, rgba(17, 24, 39, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
}

.lfb-video__play span::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid var(--lfb-on-dark, #ffffff);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.lfb-video__body {
  padding: 14px 16px 16px;
}

.lfb-video__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.lfb-video-solo {
  max-width: 620px;
  margin: 30px 0;
}

.lfb-video-solo .lfb-video {
  border-color: var(--lfb-border-strong, #d1d5db);
}

.lfb-split__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.lfb-table {
  margin: 20px 0 28px;
  overflow-x: auto;
}

.lfb-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lfb-table td,
.lfb-table th {
  border: 1px solid var(--lfb-border, #e5e7eb);
  padding: 10px 14px;
  color: var(--lfb-text, #374151);
  text-align: left;
}

.lfb-table th {
  background: var(--lfb-surface-soft, #f9fafb);
  font-weight: 700;
}

.lfb-page--article {
  padding-top: 24px;
  padding-bottom: 56px;
}

.lfb-article p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--lfb-text, #374151);
  margin: 0 0 16px;
}

.lfb-page--article .lfb-faq__a p {
  margin: 0 0 14px;
}

.lfb-page--article .lfb-faq__a table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lfb-page--article .lfb-faq__a td,
.lfb-page--article .lfb-faq__a th {
  border: 1px solid var(--lfb-border, #e5e7eb);
  padding: 8px 12px;
  color: var(--lfb-text, #374151);
  text-align: left;
}

.lfb-page--article .lfb-faq__a a {
  color: var(--lfb-accent-strong, #1d4ed8);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1024px) {
.lfb-split {
  grid-template-columns: 1fr;
}
}

@media (max-width: 1024px) {
.lfb-cards,
.lfb-videos {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 1024px) {
.lfb-stats__grid {
  grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 640px) {
.lfb-page,
.lfb-split,
.lfb-section {
  padding-left: 20px;
  padding-right: 20px;
}
}

@media (max-width: 640px) {
.lfb-title,
.lfb-h1 {
  font-size: 34px;
}
}

@media (max-width: 640px) {
.lfb-cards,
.lfb-videos,
.lfb-stats__grid {
  grid-template-columns: 1fr;
}
}

.lfb-page--article .lfb-video-solo .lfb-video,
.lfb-page--article .lfb-video-solo .lfb-video__title {
  color: var(--lfb-ink, #111827);
}

/* ------------------------------------------------------------------------
 * Shop blocks and contact form (1.1.0). Same palette variables; tile radius
 * and grid gap read --lfb-radius and --lfb-gap.
 * --------------------------------------------------------------------- */

.lfb-catgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: var(--lfb-gap, 16px);
  font-family: var(--lfb-font, inherit);
}

.lfb-catgrid.is-style-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.lfb-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--lfb-radius, 8px);
  background: var(--lfb-surface-soft, #f9fafb);
  color: var(--lfb-on-dark, #ffffff);
  text-decoration: none;
}

.lfb-tile__media {
  display: contents;
}

.lfb-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.lfb-tile:hover img {
  transform: scale(1.04);
}

.lfb-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 56px 18px 16px;
  background: linear-gradient(180deg, transparent, var(--lfb-scrim, rgba(17, 24, 39, 0.75)));
}

.lfb-tile__name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--lfb-on-dark, #ffffff);
}

.lfb-tile__text {
  display: none;
  font-size: 15px;
  line-height: 1.5;
}

.lfb-tile.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.lfb-tile.is-large .lfb-tile__name {
  font-size: 44px;
}

.lfb-tile.is-wide {
  grid-column: span 2;
}

/* Wide tile with its photo in a disc and the name beside it. */
.lfb-tile.has-disc {
  display: flex;
  align-items: center;
  gap: 4%;
  padding-left: 6%;
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
}

.lfb-tile.has-disc .lfb-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: min(240px, 46%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--lfb-accent-soft, #dbeafe);
}

.lfb-tile.has-disc img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: none;
}

.lfb-tile.has-disc .lfb-tile__cap {
  position: static;
  flex: 1;
  padding: 0 20px 0 0;
  background: none;
}

.lfb-tile.has-disc .lfb-tile__name {
  color: var(--lfb-ink, #111827);
}

/* Cards style: photo above, name and line of text below. */
.lfb-catgrid.is-style-cards .lfb-tile {
  display: flex;
  flex-direction: column;
  background: var(--lfb-surface, #ffffff);
  border: 1px solid var(--lfb-border, #e5e7eb);
  color: var(--lfb-ink, #111827);
}

.lfb-catgrid.is-style-cards .lfb-tile img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.lfb-catgrid.is-style-cards .lfb-tile__cap {
  position: static;
  padding: 18px 20px 20px;
  background: none;
}

.lfb-catgrid.is-style-cards .lfb-tile__name {
  font-size: 22px;
  color: var(--lfb-ink, #111827);
}

.lfb-catgrid.is-style-cards .lfb-tile__text {
  display: block;
  color: var(--lfb-muted, #6b7280);
}

/* Numbered tiles: 01, 02... at the end of the caption. */
.lfb-catgrid--numbered {
  counter-reset: lfb-tile;
}

.lfb-catgrid--numbered .lfb-tile {
  counter-increment: lfb-tile;
}

.lfb-catgrid--numbered .lfb-tile__cap::after {
  content: counter(lfb-tile, decimal-leading-zero);
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
}

/* Attribute swatches. */
.lfb-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--lfb-gap, 16px);
  font-family: var(--lfb-font, inherit);
}

.lfb-swatch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--lfb-ink, #111827);
  text-decoration: none;
}

.lfb-swatch__tile {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--lfb-radius, 8px);
  background: var(--lfb-surface-soft, #f9fafb);
  color: var(--lfb-on-dark, #ffffff);
}

.lfb-swatch__tile.is-light {
  color: var(--lfb-ink, #111827);
}

.lfb-swatch__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfb-swatch__tilename {
  padding: 12px;
  font-weight: 700;
}

.lfb-swatch__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.lfb-swatch__dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--lfb-border, #e5e7eb);
}

.lfb-swatches.is-style-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lfb-dot {
  display: inline-flex;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 50%;
}

.lfb-dot span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--lfb-border, #e5e7eb);
  background: var(--lfb-surface-soft, #f9fafb);
}

.lfb-dot.is-active,
.lfb-dot:hover {
  border-color: var(--lfb-ink, #111827);
}

.lfb-dot-reset {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--lfb-accent-strong, #1d4ed8);
}

/* Signature piece. */
.lfb-lead-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--lfb-radius, 8px);
  color: var(--lfb-on-dark, #ffffff);
  text-decoration: none;
  font-family: var(--lfb-font, inherit);
}

.lfb-lead-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfb-lead-tile__kicker {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lfb-accent, #2563eb);
  color: var(--lfb-on-accent, #ffffff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lfb-lead-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 70px 22px 20px;
  background: linear-gradient(180deg, transparent, var(--lfb-scrim, rgba(17, 24, 39, 0.75)));
}

.lfb-lead-tile__name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.lfb-lead-tile__price {
  font-weight: 700;
}

/* Contact form. */
.lfb-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  font-family: var(--lfb-font, inherit);
}

.lfb-contact .lfb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.lfb-contact .lfb-field--full,
.lfb-contact .lfb-notice,
.lfb-contact .lfb-submit {
  grid-column: 1 / -1;
}

.lfb-contact label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lfb-ink, #111827);
}

.lfb-contact .lfb-req {
  color: var(--lfb-error, #b91c1c);
}

.lfb-contact input,
.lfb-contact textarea,
.lfb-contact select {
  width: 100%;
  box-sizing: border-box;
}

.lfb-submit {
  margin: 0;
}

.lfb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lfb-notice {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--lfb-radius, 8px);
  background: var(--lfb-surface-soft, #f9fafb);
  color: var(--lfb-ink, #111827);
  font-weight: 600;
}

.lfb-notice--err {
  background: var(--lfb-error-soft, #fee2e2);
  color: var(--lfb-error, #b91c1c);
}

@media (max-width: 900px) {
  .lfb-catgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 10px;
  }

  .lfb-catgrid.is-style-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .lfb-tile__name {
    font-size: 21px;
  }

  .lfb-tile.is-large .lfb-tile__name {
    font-size: 32px;
  }

  .lfb-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lfb-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lfb-tile img {
    transition: none;
  }
}

/* --------------------------------------------------------------- slideshow
 * lafactory/slideshow and the slideshow layout of lafactory/videos. Without
 * script every slide stays visible (a stack); assets/js/slider.js adds
 * `is-slider`, and only then are the other slides hidden.
 *   --lfb-slide-ratio   frame ratio of a photo slide (printed by the block)
 */
.lfb-slideshow {
  position: relative;
  font-family: var(--lfb-font, inherit);
}

.lfb-slideshow .lfb-slider__stage {
  display: grid;
  gap: 16px;
}

.lfb-slideshow .lfb-slider__stage > figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lfb-slideshow .lfb-slider__stage > figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--lfb-slide-ratio, 3/2);
  object-fit: cover;
  border-radius: var(--lfb-radius, 8px);
  background: var(--lfb-surface-soft, #f9fafb);
}

.lfb-slideshow--contain .lfb-slider__stage > figure img {
  object-fit: contain;
}

.lfb-slideshow .lfb-slider__stage > figure figcaption {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lfb-muted, #6b7280);
  text-align: left;
}

.lfb-slideshow.is-slider .lfb-slider__stage,
.lfb-videos--slider.is-slider .lfb-slider__stage {
  display: block;
}

.lfb-slideshow.is-slider .lfb-slider__slide,
.lfb-videos--slider.is-slider .lfb-slider__slide {
  display: none;
}

.lfb-slideshow.is-slider .lfb-slider__slide.is-active {
  display: flex;
}

.lfb-videos--slider.is-slider .lfb-slider__slide.is-active {
  display: block;
}

.lfb-videos--slider .lfb-slider__stage {
  display: grid;
  gap: 16px;
}

.lfb-slider__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.lfb-slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--lfb-ink, #111827);
  background: var(--lfb-surface, #ffffff);
  color: var(--lfb-ink, #111827);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.lfb-slider__arrow:hover:not(:disabled) {
  background: var(--lfb-ink, #111827);
  color: var(--lfb-surface, #ffffff);
}

.lfb-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.lfb-slider__count {
  min-width: 56px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--lfb-text, #374151);
  font-variant-numeric: tabular-nums;
}

.lfb-slider__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.lfb-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--lfb-border-strong, #d1d5db);
  cursor: pointer;
}

.lfb-slider__dot.is-active {
  background: var(--lfb-accent, #2563eb);
}

[data-lfb-slider]:focus-visible {
  outline: 3px solid var(--lfb-accent, #2563eb);
  outline-offset: 4px;
  border-radius: var(--lfb-radius, 8px);
}

@media (max-width: 600px) {
  .lfb-slider__dots {
    display: none;
  }
  .lfb-slider__bar {
    justify-content: center;
  }
}

/* Video grid in its slideshow layout: one film at full width, the hqdefault
   thumbnail (4:3 with black bands) cropped to the film's own 16:9. Two
   classes, so the grid's breakpoints above never apply to it. */
.lfb-videos.lfb-videos--slider {
  display: block;
}
.lfb-videos.lfb-videos--slider .lfb-slider__stage > .lfb-video {
  max-width: none;
}
.lfb-videos.lfb-videos--slider .lfb-video__media img {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lfb-videos.lfb-videos--slider .lfb-video:hover {
  transform: none;
}

/* ===================================================== page components (1.3.0)
 * Ported from the Big Bike Tours tour page and made generic.
 *   --lfb-side-width     width of the sticky column (printed by the block)
 *   --lfb-sticky-top     offset under a fixed theme header (set by page.js)
 */

/* ------------------------------------------------ content and sticky column */
.lfb-sticky {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--lfb-side-width, 380px);
  gap: 48px;
  align-items: start;
}
/* A grid item is sized by its content unless told otherwise: a wide strip
   (section bar, table) would push the column past the viewport. */
.lfb-sticky__main {
  min-width: 0;
}
.lfb-sticky__side.is-sticky {
  position: sticky;
  top: calc(var(--lfb-sticky-top, 0px) + 24px);
}
@media (max-width: 1024px) {
  .lfb-sticky {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .lfb-sticky__side.is-sticky {
    position: static;
  }
  .lfb-sticky--side-first .lfb-sticky__side {
    order: -1;
  }
}

/* ---------------------------------------------------------------- section bar */
.lfb-secnav {
  position: sticky;
  top: var(--lfb-sticky-top, 0px);
  z-index: 30;
  background: var(--lfb-surface-hover, #f9fafb);
  border-block: 1px solid var(--lfb-border, #e5e7eb);
  font-family: var(--lfb-font, inherit);
}
.lfb-secnav__links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.lfb-secnav__links::-webkit-scrollbar {
  display: none;
}
.lfb-secnav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--lfb-text, #374151);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.lfb-secnav__links a:hover {
  color: var(--lfb-ink, #111827);
}
.lfb-secnav__links a.is-current {
  color: var(--lfb-ink, #111827);
  border-bottom-color: var(--lfb-accent, #2563eb);
}

/* ---------------------------------------------------------------------- steps */
.lfb-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--lfb-font, inherit);
}
.lfb-step {
  display: inline-flex;
  flex-direction: column;
  margin: 0;
}
.lfb-steps:not(.lfb-steps--timeline) .lfb-step + .lfb-step::before {
  content: "\2192";
  position: absolute;
  margin-left: -26px;
  color: var(--lfb-subtle, #9ca3af);
}
.lfb-steps:not(.lfb-steps--timeline) .lfb-step {
  position: relative;
  padding-inline: 0 40px;
}
.lfb-steps:not(.lfb-steps--timeline) .lfb-step:last-child {
  padding-right: 0;
}
.lfb-step__label {
  font-weight: 700;
  color: var(--lfb-ink, #111827);
}
.lfb-step__text {
  font-size: 14px;
  color: var(--lfb-muted, #6b7280);
}
.lfb-steps--timeline {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.lfb-steps--timeline .lfb-step {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 2px solid var(--lfb-border, #e5e7eb);
  margin-left: 7px;
}
.lfb-steps--timeline .lfb-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.lfb-steps--timeline .lfb-step::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lfb-accent, #2563eb);
  border: 3px solid var(--lfb-surface, #ffffff);
}

/* ----------------------------------------------------------------- newsletter */
.lfb-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-family: var(--lfb-font, inherit);
}
.lfb-newsletter__label {
  font-weight: 700;
  color: var(--lfb-ink, #111827);
}
.lfb-newsletter__intro {
  margin: 0;
  font-size: 14px;
  color: var(--lfb-muted, #6b7280);
}
.lfb-newsletter__row {
  display: flex;
  gap: 8px;
}
.lfb-newsletter__row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--lfb-border-strong, #d1d5db);
  border-radius: 10px;
  font: inherit;
  color: var(--lfb-ink, #111827);
  background: var(--lfb-surface, #ffffff);
}
.lfb-newsletter__btn {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.lfb-newsletter__btn:disabled {
  opacity: 0.6;
}
.lfb-newsletter__msg {
  margin: 0;
  font-size: 14px;
  color: var(--lfb-text, #374151);
}
.lfb-newsletter .lfb-hp,
.lfb-buy .lfb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ------------------------------------------------------------------- buy card */
.lfb-buy {
  background: var(--lfb-dark, #111827);
  color: var(--lfb-on-dark, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--lfb-shadow, rgba(17, 24, 39, 0.1));
  font-family: var(--lfb-font, inherit);
}
.lfb-buy__head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lfb-buy__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.lfb-buy__price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.lfb-buy__price del {
  font-size: 18px;
  opacity: 0.6;
  margin-right: 8px;
}
.lfb-buy__price ins {
  text-decoration: none;
}
.lfb-buy__body {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lfb-buy__stock {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.lfb-buy__stock::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lfb-success, #15803d);
  margin-right: 8px;
  vertical-align: 1px;
}
.lfb-buy__stock.is-out::before {
  background: var(--lfb-subtle, #9ca3af);
}
.lfb-buy__excerpt,
.lfb-buy__excerpt p,
.lfb-buy__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
.lfb-buy__form form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.lfb-buy__form .quantity input.qty {
  min-height: 48px;
  width: 64px;
  border-radius: 10px;
  text-align: center;
}
.lfb-buy__form .single_add_to_cart_button {
  flex: 1 1 160px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--lfb-accent, #2563eb);
  color: var(--lfb-on-accent, #ffffff);
  font-weight: 700;
}

/* Buy bar: phones and tablets, while the card is out of view (page.js). */
.lfb-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--lfb-dark, #111827);
  color: var(--lfb-on-dark, #ffffff);
  box-shadow: 0 -6px 24px var(--lfb-shadow, rgba(17, 24, 39, 0.1));
  font-family: var(--lfb-font, inherit);
}
.lfb-buybar[hidden] {
  display: none;
}
.lfb-buybar__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.lfb-buybar__name {
  font-size: 13px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lfb-buybar .lfb-buy__price {
  font-size: 20px;
}
.lfb-buybar__btn {
  flex: none;
  padding: 12px 20px;
}
.lfb-buybar .added_to_cart {
  display: none;
}
/* Element + classes: a theme's link colour (.entry-content a) must not win on the dark bar. */
.lfb-buybar a.lfb-buybar__status,
.lfb-buybar a.lfb-buybar__status:hover {
  flex: none;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--lfb-on-dark, #ffffff);
  font-size: 14px;
  opacity: 0.8;
  text-decoration: none;
}
@media (min-width: 1025px) {
  .lfb-buybar {
    display: none;
  }
}
@media (max-width: 1024px) {
  body.lfb-has-buybar {
    padding-bottom: 76px;
  }
}

/* ------------------------------------------------------------ product details */
.lfb-specs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lfb-specs__title {
  margin: 0;
}
.lfb-specs .lfb-table {
  margin: 0;
}

/* Section bar: a fade on the side that still holds links (page.js sets the classes). */
.lfb-secnav.has-more-end .lfb-secnav__links {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.lfb-secnav.has-more-start .lfb-secnav__links {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
}
.lfb-secnav.has-more-start.has-more-end .lfb-secnav__links {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
/* WooCommerce prints its own stock line in the form: the card has its own. */
.lfb-buy__form .stock {
  display: none;
}

/* Bento gallery: style "Bento" on the core Gallery block.
   A dense grid of square cells; the gallery's Columns setting gives the
   number of columns (4 by default, 2 on phones) and its Spacing setting the
   gap. A photo spans 2x2 ("Bento large"), 2x1 ("Bento wide") or 1x2 ("Bento
   tall") from its own Styles panel; with none set, the first photo is large.
   The gallery is a size container, so a cell's height is computed from its
   width (cqw): every row keeps the same height whatever mix of tiles it holds.
   The :not(#lfb) matches the core's :not(#individual-image) width rule. */
.wp-block-gallery.is-style-lfb-bento {
  --lfb-bento-cols: 4;
  --lfb-bento-gap: var(--wp--style--unstable-gallery-gap, var(--lfb-gap, 16px));
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--lfb-bento-cols), minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: var(--lfb-bento-gap);
}
.wp-block-gallery.is-style-lfb-bento.columns-2 { --lfb-bento-cols: 2; }
.wp-block-gallery.is-style-lfb-bento.columns-3 { --lfb-bento-cols: 3; }
.wp-block-gallery.is-style-lfb-bento.columns-5 { --lfb-bento-cols: 5; }
.wp-block-gallery.is-style-lfb-bento.columns-6 { --lfb-bento-cols: 6; }
.wp-block-gallery.is-style-lfb-bento.has-nested-images figure.wp-block-image:not(#lfb) {
  --lfb-bento-cell: calc((100cqw - (var(--lfb-bento-cols) - 1) * var(--lfb-bento-gap)) / var(--lfb-bento-cols));
  width: auto;
  max-width: none;
  height: var(--lfb-bento-cell);
  margin: 0;
  border-radius: var(--lfb-radius, 8px);
  overflow: hidden;
}
.wp-block-gallery.is-style-lfb-bento.has-nested-images figure.wp-block-image:not(#lfb) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-gallery.is-style-lfb-bento.has-nested-images figure.wp-block-image:not(#lfb).is-style-lfb-tile-large,
.wp-block-gallery.is-style-lfb-bento:not(:has(> .is-style-lfb-tile-large, > .is-style-lfb-tile-wide, > .is-style-lfb-tile-tall)).has-nested-images figure.wp-block-image:not(#lfb):first-of-type {
  grid-column: span 2;
  grid-row: span 2;
  height: calc(2 * var(--lfb-bento-cell) + var(--lfb-bento-gap));
}
.wp-block-gallery.is-style-lfb-bento.has-nested-images figure.wp-block-image:not(#lfb).is-style-lfb-tile-wide {
  grid-column: span 2;
}
.wp-block-gallery.is-style-lfb-bento.has-nested-images figure.wp-block-image:not(#lfb).is-style-lfb-tile-tall {
  grid-row: span 2;
  height: calc(2 * var(--lfb-bento-cell) + var(--lfb-bento-gap));
}
@media (max-width: 640px) {
  .wp-block-gallery.is-style-lfb-bento[class] { --lfb-bento-cols: 2; }
}

/* ------------------------------------------------ product blocks (1.6.0) */
/* Plain defaults: a site with its own look replaces the markup by filter. */
.lfb-feature {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  color: inherit;
  text-decoration: none;
}
.lfb-feature--large {
  max-width: 480px;
}
.lfb-feature__img {
  width: 100%;
  height: auto;
  border-radius: var(--lfb-radius, 8px);
}
.lfb-feature__name {
  font-weight: 600;
}
.lfb-product-header__cat {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lfb-accent, #2563eb);
}
.lfb-product-header__title {
  margin: 6px 0 18px;
}
.lfb-product-header__img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--lfb-radius, 8px);
}
