/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 * Hallmark · macrostructure: Textile print-study catalogue · tone: tactile editorial · anchor hue: indigo
 * WP14 sitewide overlay; native WordPress, Flatsome and WooCommerce behavior is preserved.
 */

html,
body {
  overflow-x: clip;
}

body {
  background: var(--fm-bg);
}

body :where(h1, h2, h3, h4) {
  font-style: normal;
  text-wrap: balance;
}

body :where(p, li) {
  text-wrap: pretty;
}

body :where(button, .button, input, select, textarea, summary, a) {
  scroll-margin-block: 7rem;
}

/* Global shell: paper masthead, editorial rules, no decorative shadow. */
.header-wrapper,
.header-bg-color,
.header-main,
.header-top,
.header-bottom,
.stuck .header-main {
  background-color: var(--fm-bg);
  box-shadow: none;
}

.header-top {
  border-bottom: 1px solid var(--fm-rule);
  color: var(--fm-ink-muted);
}

.header-main {
  border-bottom: 1px solid var(--fm-rule-strong);
}

.header .nav > li > a,
.header .nav-dropdown > li > a,
.header .sub-menu > li > a,
.off-canvas .nav > li > a,
.off-canvas .sub-menu > li > a {
  color: var(--fm-primary);
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}

.header .nav-dropdown {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: 0;
  box-shadow: none;
  padding: var(--fm-space-3) var(--fm-space-5);
}

.header .nav-dropdown > li > a,
.header .sub-menu > li > a {
  min-height: var(--fm-control-min);
}

.header .current-menu-item > a,
.header .current-menu-ancestor > a {
  text-decoration: underline;
  text-decoration-color: var(--fm-attention-token);
  text-decoration-thickness: 1px;
  text-underline-offset: .45em;
}

.header .header-search a,
.header .header-cart-link,
.header .account-item a {
  min-height: var(--fm-control-min);
}

/* Give the approved desktop navigation its own row. Flatsome otherwise
   squeezes six groups into the logo row and wraps them unpredictably. */
@media (min-width: 53.125rem) {
  #masthead.header-main { height: auto; }
  #masthead .header-inner {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(4.875rem, auto) minmax(3.5rem, auto);
    height: auto;
    max-width: 110rem;
    padding-inline: var(--fm-gutter);
    width: 100%;
  }
  #masthead #logo { grid-column: 1; grid-row: 1; }
  #masthead .hide-for-medium.flex-right {
    grid-column: 2;
    grid-row: 1;
    max-height: none;
  }
  #masthead .hide-for-medium.flex-left {
    border-top: 1px solid var(--fm-rule);
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: none;
    width: 100%;
  }
  #masthead .hide-for-medium.flex-left > .header-nav-main {
    align-items: center;
    flex-wrap: nowrap;
    height: auto;
    justify-content: space-between;
    max-width: none;
    width: 100%;
  }
  #masthead .header-nav-main > li > a {
    line-height: 1.3;
    min-height: 3rem;
  }
}

#footer,
#footer .footer-1,
#footer .footer-2,
#footer .absolute-footer {
  background: var(--fm-bg);
  color: var(--fm-ink);
  box-shadow: none;
}

#footer {
  border-top: 1px solid var(--fm-rule-strong);
}

#footer .footer-1,
#footer .footer-2 {
  border-bottom: 1px solid var(--fm-rule);
}

#footer :where(h3, h4, .widget-title, .uppercase) {
  color: var(--fm-primary);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-xs);
  font-weight: 600;
  letter-spacing: var(--fm-tracking-meta);
}

#footer :where(a, p, span, li) {
  color: var(--fm-ink-muted);
}

#footer a {
  min-height: var(--fm-control-min);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#footer a:hover,
#footer a:focus-visible {
  color: var(--fm-primary);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.wa-pill-btn,
.fm-whatsapp-float {
  background: var(--fm-primary);
  border: 1px solid var(--fm-surface);
  border-radius: var(--fm-radius-sm);
  box-shadow: var(--fm-shadow-1);
  color: var(--fm-surface);
  min-height: 48px;
}

/* Shared editorial surface. */
.fm-catalog-intro,
.fm-catalog-note,
.fm-custom-hero,
.fm-custom-sections > section,
.fm-page-hero,
.fm-existing-page-content,
.fm-legal-document {
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
  margin-inline: auto;
}

.fm-catalog-kicker,
.fm-page-hero > p {
  color: var(--fm-attention-token);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-xs);
  font-weight: 600;
  letter-spacing: var(--fm-tracking-meta);
  margin: 0 0 var(--fm-space-4);
  text-transform: uppercase;
}

.fm-catalog-intro {
  align-items: end;
  border-bottom: 1px solid var(--fm-rule);
  display: grid;
  gap: var(--fm-space-6);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .58fr);
  margin-bottom: var(--fm-space-6);
  padding-block: var(--fm-space-6) var(--fm-space-7);
}

.fm-catalog-intro h1,
.fm-page-hero h1,
.fm-custom-hero h1 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fm-catalog-intro > p {
  max-width: 42ch;
  margin: 0;
}

.fm-catalog-note {
  border-block: 1px solid var(--fm-rule);
  display: grid;
  gap: var(--fm-space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: var(--fm-space-7);
  padding-block: var(--fm-space-6);
}

.fm-catalog-note p {
  margin: 0;
  max-width: 65ch;
}

/* Catalogue / search: keep real Woo queries, filters, Quick View and paging. */
.woocommerce-shop #main,
.tax-product_cat #main,
.search-results.post-type-archive-product #main,
.search-no-results.post-type-archive-product #main {
  background: var(--fm-bg);
}

.woocommerce-shop .shop-container,
.tax-product_cat .shop-container,
.search.post-type-archive-product .shop-container {
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
  margin-inline: auto;
}

.woocommerce-shop .shop-page-title,
.tax-product_cat .shop-page-title,
.search.post-type-archive-product .shop-page-title {
  background: var(--fm-bg);
  border-bottom: 0;
  padding-top: var(--fm-space-4);
}

.woocommerce-shop .shop-page-title .page-title-inner,
.tax-product_cat .shop-page-title .page-title-inner,
.search.post-type-archive-product .shop-page-title .page-title-inner {
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}

.woocommerce-shop .products.row,
.tax-product_cat .products.row,
.search.post-type-archive-product .products.row {
  row-gap: var(--fm-space-7);
}

.woocommerce-shop .product-small.box,
.tax-product_cat .product-small.box,
.search.post-type-archive-product .product-small.box {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.woocommerce-shop .product-small .box-image,
.tax-product_cat .product-small .box-image,
.search.post-type-archive-product .product-small .box-image {
  background: var(--fm-surface-sunk);
  border: 0;
  border-radius: 0;
}

.woocommerce-shop .product-small .box-image img,
.tax-product_cat .product-small .box-image img,
.search.post-type-archive-product .product-small .box-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.woocommerce-shop .product-small .box-text,
.tax-product_cat .product-small .box-text,
.search.post-type-archive-product .product-small .box-text {
  border-bottom: 1px solid var(--fm-rule);
  padding: var(--fm-space-4) 0 var(--fm-space-5);
}

.woocommerce-shop .product-small .name,
.tax-product_cat .product-small .name,
.search.post-type-archive-product .product-small .name {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: var(--fm-text-md);
  line-height: var(--fm-leading-tight);
  text-transform: none;
}

.woocommerce-shop .category,
.tax-product_cat .category,
.search.post-type-archive-product .category {
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  letter-spacing: .04em;
}

.woocommerce-shop .quick-view,
.tax-product_cat .quick-view,
.search.post-type-archive-product .quick-view {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: 0;
  color: var(--fm-primary);
  min-height: var(--fm-control-min);
}

.woocommerce-shop .woocommerce-ordering select,
.tax-product_cat .woocommerce-ordering select,
.search.post-type-archive-product .woocommerce-ordering select {
  background: transparent;
  border: 1px solid var(--fm-rule);
  border-radius: 0;
  min-height: var(--fm-control-min);
}

.woocommerce-shop .widget_product_categories li,
.tax-product_cat .widget_product_categories li,
.search.post-type-archive-product .widget_product_categories li {
  border-bottom: 1px solid var(--fm-rule);
  min-height: var(--fm-control-min);
}

.woocommerce-shop .nav-pagination > li > a,
.woocommerce-shop .nav-pagination > li > span,
.tax-product_cat .nav-pagination > li > a,
.tax-product_cat .nav-pagination > li > span,
.search.post-type-archive-product .nav-pagination > li > a,
.search.post-type-archive-product .nav-pagination > li > span {
  border-color: var(--fm-rule-strong);
  border-radius: 0;
  min-height: var(--fm-control-min);
  min-width: var(--fm-control-min);
}

/* Product family. */
.single-product #main {
  background: var(--fm-bg);
}

.single-product .product-main {
  padding-block: var(--fm-space-5) var(--fm-space-8);
}

.single-product .product-gallery .flickity-viewport,
.single-product .product-gallery .woocommerce-product-gallery__image,
.single-product .product-gallery img {
  border-radius: 0;
}

.single-product .product-gallery .woocommerce-product-gallery__image {
  background: var(--fm-surface-sunk);
}

.single-product .product-info {
  border-top: 1px solid var(--fm-rule-strong);
  padding-top: var(--fm-space-5);
}

.single-product .product-title {
  color: var(--fm-primary);
  font-size: clamp(2.4rem, 3.35vw, 3.7rem);
  letter-spacing: -.035em;
  line-height: 1.08;
  text-transform: none;
}

.single-product .price,
.single-product .price-wrapper {
  font-variant-numeric: tabular-nums;
}

.single-product .variations,
.single-product .quantity,
.single-product .cart,
.single-product .product_meta {
  border-color: var(--fm-rule);
}

.single-product .variations select,
.single-product .quantity input,
.single-product .single_add_to_cart_button {
  border-radius: 0;
  min-height: 48px;
}

.single-product .single_add_to_cart_button {
  background: var(--fm-primary);
  color: var(--fm-surface);
  text-transform: none;
}

.single-product .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:focus-visible {
  background: var(--fm-primary-hover);
}

.single-product div.product > .woocommerce-tabs,
.single-product .related,
.single-product .upsells {
  border-top: 1px solid var(--fm-rule);
  padding-top: var(--fm-space-6);
}

.single-product div.product > .woocommerce-tabs .tabs > li > a {
  color: var(--fm-primary);
  min-height: var(--fm-control-min);
  text-transform: none;
  white-space: nowrap;
}

.single-product .related-products-wrapper .product-small .price,
.single-product .upsells .product-small .price {
  border: 0;
  padding: 0;
}

.fm-product-sample-link,
.fm-order-intro,
.fm-order-sheet-note,
.fm-drive-field > p {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-sm);
  max-width: 58ch;
}

.fm-product-sample-link {
  background: var(--fm-surface-sunk);
  border-left: 2px solid var(--fm-attention-token);
  padding: var(--fm-space-4);
}

.fm-product-sample-link a,
.fm-custom-sections a,
.fm-base-ledger a {
  color: var(--fm-primary);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.fm-image-fallback {
  background: var(--fm-surface-sunk);
  object-fit: contain;
}

/* Custom Printing retains its live variation, quantity, price and cart. */
.fm-custom-hero {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .7fr);
  padding-block: var(--fm-space-6) var(--fm-space-8);
}

.fm-custom-hero > div > p {
  font-size: var(--fm-text-md);
  margin-block: var(--fm-space-5);
  max-width: 46ch;
}

.fm-custom-hero aside {
  border-block: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-5);
}

.fm-custom-hero aside strong {
  color: var(--fm-attention-token);
  display: block;
  font-family: var(--fm-font-serif);
  font-size: var(--fm-text-2xl);
  font-weight: 500;
}

.fm-custom-hero aside p {
  margin: 0 0 var(--fm-space-5);
}

.fm-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--fm-space-4) var(--fm-space-6);
}

.fm-hero-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.fm-order-heading {
  color: var(--fm-primary);
  font-size: var(--fm-text-2xl);
  margin-bottom: var(--fm-space-4);
}

.fm-drive-field {
  border-top: 1px solid var(--fm-rule);
  margin-block: var(--fm-space-5);
  padding-top: var(--fm-space-5);
}

.fm-drive-field label {
  color: var(--fm-primary);
  display: block;
  font-weight: 600;
  margin-bottom: var(--fm-space-2);
}

.fm-drive-field input {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule-strong);
  border-radius: 0;
  min-height: 48px;
  outline: 2px solid transparent;
  outline-offset: 1px;
  padding-inline: var(--fm-space-3);
  width: 100%;
}

.fm-drive-field input:focus-visible {
  outline-color: var(--fm-primary);
}

.fm-custom-sections {
  background: var(--fm-bg);
}

.fm-custom-sections > section {
  border-top: 1px solid var(--fm-rule);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.fm-custom-sections > section > header {
  display: grid;
  gap: var(--fm-space-5);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr);
  margin-bottom: var(--fm-space-7);
}

.fm-custom-sections h2 {
  color: var(--fm-primary);
  font-size: clamp(2.3rem, 3.5vw, 3.6rem);
  letter-spacing: -.035em;
  margin: 0;
}

.fm-custom-sections h3 {
  color: var(--fm-primary);
  font-size: var(--fm-text-xl);
}

.fm-route-grid,
.fm-note-columns {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: 1.1fr 1fr .8fr;
}

.fm-route-grid article,
.fm-note-columns article {
  border-top: 1px solid var(--fm-rule);
  padding-top: var(--fm-space-5);
}

.fm-route-grid article:last-child {
  background: var(--fm-surface-sunk);
  padding: var(--fm-space-5);
}

.fm-route-grid span {
  color: var(--fm-attention-token);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
}

.fm-base-ledger {
  border-block: 1px solid var(--fm-rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fm-base-ledger a {
  align-items: center;
  border-right: 1px solid var(--fm-rule);
  display: flex;
  min-height: 5.5rem;
  padding: var(--fm-space-4);
  text-decoration: none;
}

.fm-print-studies {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.15fr .85fr;
}

.fm-print-studies figure {
  margin: 0;
}

.fm-print-studies figure:first-child {
  grid-row: span 2;
}

.fm-print-studies img {
  aspect-ratio: 4 / 3;
  background: var(--fm-surface-sunk);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.fm-print-studies figure:first-child img {
  aspect-ratio: 4 / 5;
}

.fm-print-studies figcaption {
  border-bottom: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-3);
}

.fm-spec-sheet {
  border-top: 1px solid var(--fm-rule);
  margin: 0;
}

.fm-spec-sheet > div {
  border-bottom: 1px solid var(--fm-rule);
  display: grid;
  gap: var(--fm-space-5);
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  padding-block: var(--fm-space-5);
}

.fm-spec-sheet dt {
  color: var(--fm-primary);
  font-weight: 600;
}

.fm-spec-sheet dd {
  margin: 0;
  max-width: 66ch;
}

.fm-faq {
  border-top: 1px solid var(--fm-rule);
  max-width: 61rem;
}

.fm-faq details {
  border-bottom: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-3);
}

.fm-faq summary {
  color: var(--fm-primary);
  cursor: pointer;
  font-size: var(--fm-text-md);
  min-height: 48px;
  padding-block: var(--fm-space-3);
}

/* Existing page families: preserve content, change composition. */
.fm-page-hero {
  border-bottom: 1px solid var(--fm-rule);
  display: grid;
  gap: var(--fm-space-5);
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, .65fr);
  padding-block: var(--fm-space-7) var(--fm-space-8);
}

.fm-page-hero > p {
  grid-column: 1 / -1;
}

.fm-page-hero > div {
  align-self: end;
  font-size: var(--fm-text-md);
  max-width: 42ch;
}

.fm-existing-page-content,
.fm-legal-document {
  padding-block: var(--fm-space-7) var(--fm-space-8);
}

.fm-existing-page-content :where(.row, .section, .section-content),
.fm-legal-document :where(.row, .section, .section-content) {
  max-width: 100%;
}

.page-id-53 .fm-existing-page-content img,
.page-id-745 .fm-existing-page-content img {
  border-radius: 0;
}

.page-id-53 .fm-existing-page-content .row {
  border-top: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-6);
}

.page-id-745 .fm-existing-page-content .wpcf7 {
  background: var(--fm-surface-sunk);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.fm-legal-document {
  max-width: 55rem;
}

.fm-legal-document h2 {
  color: var(--fm-primary);
  font-size: var(--fm-text-2xl);
  margin-block: var(--fm-space-7) var(--fm-space-4);
}

.fm-legal-document h3 {
  color: var(--fm-primary);
  font-size: var(--fm-text-xl);
  margin-block: var(--fm-space-6) var(--fm-space-3);
}

/* New owner-editable page content package. */
.fm-editorial-page {
  background: var(--fm-bg);
  color: var(--fm-ink);
}

body:has(.fm-editorial-page) #main {
  background: var(--fm-bg);
}

.fm-editorial-page > section {
  border-top: 1px solid var(--fm-rule);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.fm-editorial-page h2 {
  color: var(--fm-primary);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  letter-spacing: -.035em;
}

.fm-editorial-page .fm-two-column,
.fm-editorial-page .fm-three-column {
  display: grid;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.fm-editorial-page .fm-two-column {
  grid-template-columns: 1.1fr .9fr;
}

.fm-editorial-page .fm-three-column {
  grid-template-columns: 1.1fr 1fr .8fr;
}

.fm-editorial-page article {
  border-top: 1px solid var(--fm-rule);
  padding-top: var(--fm-space-5);
}

.fm-editorial-page img {
  border-radius: 0;
  height: auto;
  width: 100%;
}

/* Blog, exhibitions and article families. */
.archive.category #main,
.single-post #main {
  background: var(--fm-bg);
}

.archive.category .page-title,
.single-post .article-inner > header {
  background: transparent;
  border-bottom: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-6);
}

.archive.category .page-title h1,
.single-post .entry-title {
  color: var(--fm-primary);
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  text-transform: none;
}

.archive.category .post-item .box,
.single-post .article-inner {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.archive.category .post-item .box-text {
  border-bottom: 1px solid var(--fm-rule);
}

.single-post .entry-content {
  font-size: 1.0625rem;
  margin-inline: auto;
  max-width: 72ch;
}

/* Commerce/account/support/empty states. */
.woocommerce-cart #main,
.woocommerce-checkout #main,
.woocommerce-account #main,
.page-id-218 #main,
.error404 #main {
  background: var(--fm-bg);
}

.woocommerce-cart .cart-container,
.woocommerce-checkout .checkout-page-title,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
.page-id-218 .fm-existing-page-content,
.error404 .page-wrapper {
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
  margin-inline: auto;
}

.woocommerce-cart .checkout-page-title,
.woocommerce-checkout .checkout-page-title {
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  letter-spacing: var(--fm-tracking-meta);
}

.woocommerce-cart .cart-wrapper,
.woocommerce-checkout .woocommerce-checkout,
.woocommerce-account .account-container-inner {
  border-top: 1px solid var(--fm-rule);
  padding-top: var(--fm-space-6);
}

.woocommerce-cart .cart-sidebar,
.woocommerce-checkout .checkout-sidebar,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--fm-surface-sunk);
  border: 0;
  padding: var(--fm-space-5);
}

.woocommerce :where(input.input-text, textarea, select),
.wpcf7-form :where(input:not([type='submit']), textarea, select) {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule-strong);
  border-radius: 0;
  min-height: var(--fm-control-min);
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.woocommerce :where(input.input-text, textarea, select):focus-visible,
.wpcf7-form :where(input:not([type='submit']), textarea, select):focus-visible {
  outline-color: var(--fm-primary);
}

.woocommerce-account .woocommerce-form {
  border: 0;
  border-top: 1px solid var(--fm-rule);
  border-radius: 0;
  padding-inline: 0;
}

/* Approved Textile Atelier framing for the native commerce journey. */
.fm-commerce-hero,
.fm-cart-guidance {
  margin-inline: auto;
  max-width: var(--fm-content-max);
  text-align: left;
  width: 100%;
}

.fm-commerce-hero {
  border-bottom: 1px solid var(--fm-rule);
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.fm-commerce-kicker {
  color: var(--fm-attention-token);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  font-weight: 600;
  letter-spacing: var(--fm-tracking-meta);
  margin: 0 0 var(--fm-space-4);
  text-transform: uppercase;
}

.fm-commerce-hero h1,
.fm-commerce-section h2 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: none;
}

.fm-commerce-hero h1 {
  font-size: clamp(3.35rem, 7vw, 6.5rem);
  margin: 0 0 var(--fm-space-4);
  max-width: 12ch;
}

.fm-commerce-hero > p:not(.fm-commerce-kicker, .fm-commerce-secondary-action) {
  color: var(--fm-ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  margin: 0;
  max-width: 48rem;
}

.fm-commerce-secondary-action {
  margin: var(--fm-space-4) 0 0;
}

.fm-commerce-secondary-action a,
.fm-commerce-section a {
  color: var(--fm-primary);
  text-decoration: underline;
  text-decoration-color: var(--fm-rule-strong);
  text-underline-offset: .25em;
}

.fm-commerce-section {
  border-top: 1px solid var(--fm-rule);
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.fm-commerce-section h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  margin: 0;
}

.fm-moq-ledger,
.fm-commerce-copy-grid {
  display: grid;
  gap: clamp(2.5rem, 8vw, 8rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 5rem);
}

.fm-moq-number {
  color: var(--fm-attention-token);
  font-family: var(--fm-font-serif);
  font-size: clamp(4.5rem, 8vw, 8rem);
  letter-spacing: -.06em;
  line-height: .9;
  margin: 0 0 var(--fm-space-4);
}

.fm-moq-number span {
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  letter-spacing: var(--fm-tracking-meta);
  margin-left: .75rem;
  text-transform: uppercase;
}

.fm-moq-ledger h3 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  font-weight: 500;
  text-transform: none;
}

.fm-moq-ledger p:not(.fm-moq-number),
.fm-commerce-copy-grid p {
  color: var(--fm-ink-muted);
  line-height: 1.7;
  max-width: 42rem;
}

.fm-moq-ledger small {
  color: var(--fm-ink-muted);
  display: block;
  line-height: 1.6;
}

.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  padding-top: 0;
  text-align: left;
}

.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb > .fm-commerce-hero { order: 1; }
.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb > .woocommerce-notices-wrapper,
.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb > .wc-empty-cart-message { order: 2; }
.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb > .return-to-shop { order: 3; }
.woocommerce-cart .cart-container > .woocommerce > .text-center.pt.pb > .fm-cart-guidance { order: 4; }

.woocommerce-cart .wc-empty-cart-message {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.woocommerce-cart .return-to-shop {
  margin: 0 0 clamp(3.5rem, 6vw, 6rem);
  text-align: left;
}

.woocommerce-cart .return-to-shop .button {
  margin: 0;
}

.woocommerce-account .my-account-header {
  border-bottom: 0;
  padding: 0;
}

.woocommerce-account .my-account-header .page-title-inner {
  min-height: 0;
}

.woocommerce-account .my-account-header h2 {
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  letter-spacing: var(--fm-tracking-meta);
  margin: var(--fm-space-3) 0 0;
}

.woocommerce-account .fm-commerce-hero {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.woocommerce-account #customer_login > .col {
  border-color: var(--fm-rule);
}

.woocommerce-account #customer_login h2 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  text-transform: none;
}

/* Restyle the one native WhatsApp control; never create a duplicate. */
html body a.wa-pill-btn {
  align-items: center;
  background: var(--fm-primary);
  border: 1px solid var(--fm-primary);
  border-radius: 0;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  box-shadow: none;
  color: var(--fm-surface);
  display: inline-flex;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-sm);
  font-weight: 600;
  gap: .65rem;
  left: auto;
  letter-spacing: .02em;
  min-height: 3rem;
  padding: .75rem 1rem;
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  text-decoration: none;
  text-transform: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 999;
}

html body a.wa-pill-btn.fm-chat-is-avoiding {
  opacity: 0;
  pointer-events: none;
  transform: translateY(.5rem);
}

html body a.wa-pill-btn:hover {
  background: var(--fm-primary-hover);
  border-color: var(--fm-primary-hover);
  color: var(--fm-surface);
}

html body a.wa-pill-btn:focus-visible {
  outline: 2px solid var(--fm-attention-token);
  outline-offset: 3px;
}

html body a.wa-pill-btn .wa-pill-dot {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  height: .9rem;
  position: relative;
  width: .9rem;
}

html body a.wa-pill-btn .wa-pill-dot::after {
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  bottom: -.18rem;
  content: '';
  height: .3rem;
  left: .05rem;
  position: absolute;
  transform: skew(-20deg);
  width: .3rem;
}

/* Native Flatsome Cart Drawer / Mini-cart — real WooCommerce state retained. */
.mfp-content.off-canvas-cart {
  background: var(--fm-bg);
  border-left: 1px solid var(--fm-rule-strong);
  box-shadow: none;
  max-width: 28rem;
  width: min(92vw, 28rem);
}

.off-canvas-cart .cart-popup-inner {
  background: var(--fm-bg);
  padding: 0 clamp(1.25rem, 5vw, 2.5rem) var(--fm-space-5);
}

.off-canvas-cart .cart-popup-title {
  border-bottom: 1px solid var(--fm-rule);
  padding: clamp(1.5rem, 4vw, 2.25rem) 3rem var(--fm-space-4) 0;
  text-align: left;
}

.off-canvas-cart .cart-popup-title .heading-font {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: none;
}

.off-canvas-cart .cart-popup-title .is-divider {
  background: var(--fm-attention-token);
  height: 2px;
  margin: var(--fm-space-3) 0 0;
  max-width: 3rem;
}

.off-canvas-cart .widget_shopping_cart {
  align-items: stretch;
}

.fm-mini-cart-intro {
  border-bottom: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-5);
  text-align: left;
}

.fm-mini-cart-intro h2 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0 0 var(--fm-space-3);
  text-transform: none;
}

.fm-mini-cart-intro > p:not(.fm-commerce-kicker) {
  color: var(--fm-ink-muted);
  line-height: 1.6;
  margin-bottom: var(--fm-space-3);
}

.fm-mini-cart-intro > a {
  color: var(--fm-primary);
  text-decoration: underline;
  text-decoration-color: var(--fm-rule-strong);
  text-underline-offset: .25em;
}

.off-canvas-cart .ux-mini-cart-empty {
  align-items: flex-start;
  justify-content: flex-start;
  padding-block: clamp(2rem, 6vw, 4rem);
  text-align: left;
}

.off-canvas-cart .ux-mini-cart-empty-icon {
  color: var(--fm-primary);
  margin-bottom: var(--fm-space-4);
}

.off-canvas-cart .ux-mini-cart-empty-icon svg {
  height: 3rem;
  opacity: .28;
}

.off-canvas-cart .woocommerce-mini-cart__empty-message {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: var(--fm-space-4);
}

.off-canvas-cart .return-to-shop,
.off-canvas-cart .return-to-shop .button {
  margin: 0;
}

.off-canvas-cart .woocommerce-mini-cart-item {
  border-bottom: 1px solid var(--fm-rule);
  padding-block: var(--fm-space-4);
}

.off-canvas-cart .woocommerce-mini-cart__total,
.off-canvas-cart .woocommerce-mini-cart__buttons {
  border-color: var(--fm-rule);
}

.mfp-wrap.off-canvas .mfp-close {
  background: var(--fm-surface-sunk);
  color: var(--fm-primary);
  height: 3rem;
  opacity: 1;
  width: 3rem;
}

/* The native menu/search drawers use the same paper surface and controls. */
#main-menu,
#main-menu .sidebar-menu,
#main-menu .mfp-content {
  background: var(--fm-bg);
}

#main-menu .nav-sidebar > li {
  border-bottom-color: var(--fm-rule);
}

#main-menu .search-field {
  background: var(--fm-surface);
  border-color: var(--fm-rule-strong);
}

.error404 .page-wrapper {
  padding-block: clamp(4rem, 10vw, 9rem);
}

.error404 .page-wrapper h1 {
  color: var(--fm-primary);
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  text-transform: none;
}

.fm-404-page {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 10vw, 10rem);
  grid-template-columns: minmax(18rem, .9fr) minmax(22rem, 1.1fr);
  margin-inline: auto;
  max-width: var(--fm-content-max);
  min-height: min(48rem, 78vh);
  padding: clamp(4rem, 9vw, 9rem) var(--fm-gutter);
}

.fm-404-code {
  color: var(--fm-attention-token);
  font-family: var(--fm-font-serif);
  font-size: clamp(10rem, 25vw, 23rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .7;
}

.fm-404-page h1 {
  color: var(--fm-primary);
  font-size: clamp(3.3rem, 6vw, 6rem);
  letter-spacing: -.05em;
  line-height: 1;
}

.fm-404-page form.searchform {
  display: grid;
  gap: var(--fm-space-3);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-block: var(--fm-space-6);
}

.fm-404-page form.searchform input {
  min-height: 52px;
}

.fm-404-links {
  display: flex;
  gap: var(--fm-space-6);
}

.fm-404-links a {
  color: var(--fm-primary);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.search-no-results .woocommerce-no-products-found {
  background: var(--fm-surface-sunk);
  border: 0;
  padding: clamp(2rem, 6vw, 5rem);
}

/* Footer layout is declared in shell.css; sitewide.css does not override it. */

/* About / Contact now use the approved page compositions rather than legacy UX rows. */
.fm-about-page,
.fm-contact-page { margin-inline: auto; max-width: var(--fm-content-max); padding-inline: var(--fm-gutter); }
.fm-about-page > section,
.fm-contact-page > section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.fm-about-hero { align-items: end; border-top: 0; display: grid; gap: clamp(2rem, 7vw, 8rem); grid-template-columns: minmax(0, .78fr) minmax(24rem, 1.22fr); min-height: min(45rem, 75vh); }
.fm-about-hero h1,
.fm-contact-heading h1 { color: var(--fm-primary); font-size: clamp(3.5rem, 7vw, 7.8rem); letter-spacing: -.055em; line-height: .94; margin: var(--fm-space-4) 0 var(--fm-space-6); }
.fm-eyebrow,
.fm-meta { color: var(--fm-attention-token); font-family: var(--fm-font-mono); font-size: var(--fm-text-xs); font-weight: 600; letter-spacing: var(--fm-tracking-meta); text-transform: uppercase; }
.fm-about-hero figure { margin: 0; }
.fm-about-hero img { aspect-ratio: 4 / 3; object-fit: cover; }
.fm-about-hero figcaption,
.fm-caption { color: var(--fm-ink-muted); font-size: var(--fm-text-xs); padding-top: var(--fm-space-3); }
.fm-about-story { display: grid; gap: clamp(2rem, 7vw, 8rem); grid-template-columns: minmax(10rem, .55fr) minmax(0, 1.45fr); }
.fm-about-story aside { border-top: 1px solid var(--fm-rule-strong); padding-top: var(--fm-space-5); }
.fm-about-story aside strong { color: var(--fm-attention-token); display: block; font-family: var(--fm-font-serif); font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 500; line-height: 1; }
.fm-about-story > div { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.72; max-width: 56rem; }
.fm-about-figures > header,
.fm-about-visits > header,
.fm-contact-route { align-items: end; display: grid; gap: var(--fm-space-6); grid-template-columns: minmax(0, 1fr) minmax(18rem, .7fr); }
.fm-about-figures > div { border-block: 1px solid var(--fm-rule); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--fm-space-7); }
.fm-about-figures article { border-right: 1px solid var(--fm-rule); padding: var(--fm-space-5); }
.fm-about-figures article:last-child { border-right: 0; }
.fm-about-figures article strong { color: var(--fm-primary); font-family: var(--fm-font-serif); font-size: clamp(2.4rem, 5vw, 4.75rem); font-weight: 500; }
.fm-about-visits > header { margin-bottom: var(--fm-space-7); }
.fm-about-visits > div { display: grid; gap: var(--fm-space-4); grid-template-columns: 1.4fr .8fr .8fr; }
.fm-about-visits img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; }
.fm-about-workshop { align-items: center; display: grid; gap: clamp(2rem, 7vw, 8rem); grid-template-columns: minmax(18rem, .7fr) minmax(0, 1.3fr); }
.fm-about-workshop img { aspect-ratio: 16 / 10; object-fit: cover; }
.fm-about-map-panel { align-items: center; border-top: 1px solid var(--fm-rule-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: clamp(3rem, 6vw, 6rem); }
.fm-about-map-panel h2 { color: var(--fm-primary); font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.035em; margin: var(--fm-space-3) 0 0; }
.fm-about-material-archive > header,
.fm-about-workshop-overview > header { margin-bottom: var(--fm-space-6); }
.fm-about-material-archive figure,
.fm-about-workshop-overview figure { margin: 0; }
.fm-about-material-archive img,
.fm-about-workshop-overview img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fm-about-workshop-overview > div { display: grid; gap: clamp(1rem, 2vw, 2rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.fm-about-workshop-overview h2 { color: var(--fm-primary); font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.035em; margin: 0 0 var(--fm-space-3); }

/* How to Order: routes, refinement sections, FAQ. */
.fm-how-to-order-page .fm-page-hero h1 { color: var(--fm-primary); font-size: clamp(3.5rem, 7vw, 6.5rem); letter-spacing: -.045em; line-height: .98; }
.fm-how-to-order-page .fm-page-hero > div { color: var(--fm-ink-muted); max-width: 52ch; }
.fm-how-to-order-page .fm-page-hero + section { margin-top: clamp(2rem, 4vw, 3.5rem); }
.fm-route-spread { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-block: clamp(2rem, 4vw, 4rem); }
.fm-route-spread article { border-top: 1px solid var(--fm-rule-strong); padding-top: var(--fm-space-5); }
.fm-route-spread h2 { color: var(--fm-primary); font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.035em; margin: var(--fm-space-3) 0 var(--fm-space-5); }
.fm-route-spread img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.fm-workflow-steps { list-style: none; margin: 0; padding: 0; }
.fm-workflow-steps li { border-top: 1px solid var(--fm-rule); padding: var(--fm-space-3) 0; }
.fm-workflow-steps li:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-workflow-steps.fm-legacy-process p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin: 0; padding: var(--fm-space-5) 0; }
.fm-route-spread .fm-button { margin-top: var(--fm-space-5); }
.fm-map-panel { align-items: center; border-block: 1px solid var(--fm-rule-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: clamp(2.5rem, 5vw, 5rem); }
.fm-map-panel h2 { color: var(--fm-primary); font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.035em; margin: var(--fm-space-3) 0 0; }
.fm-section-tight { margin-block: clamp(2rem, 4vw, 4rem); }
.fm-section-tight h2 { color: var(--fm-primary); font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 var(--fm-space-4); }
.fm-refinement-section { border-top: 1px solid var(--fm-rule-strong); margin-top: clamp(2.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 5rem); }
.fm-refinement-heading { margin-bottom: var(--fm-space-6); }
.fm-refinement-heading h2 { color: var(--fm-primary); font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.035em; margin: var(--fm-space-3) 0 0; }
.fm-order-paths { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 3vw, 3rem); }
.fm-order-path { border-top: 1px solid var(--fm-rule); padding-top: var(--fm-space-5); }
.fm-order-path h3 { color: var(--fm-primary); font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -.02em; margin: var(--fm-space-3) 0 var(--fm-space-4); }
.fm-order-path ol { padding-left: 1.25rem; }
.fm-order-path ol li { margin-bottom: var(--fm-space-3); padding-left: .25rem; }
.fm-order-path .fm-text-link { display: inline-block; margin-top: var(--fm-space-4); }
.fm-moq-ledger { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-moq-ledger h3 { color: var(--fm-primary); font-size: clamp(1.5rem, 2.3vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 var(--fm-space-4); }
.fm-notice { background: var(--fm-surface-sunk); border-left: 2px solid var(--fm-attention-token); color: var(--fm-primary); font-size: .95rem; line-height: 1.65; margin-top: clamp(2rem, 3vw, 3rem); padding: var(--fm-space-5) var(--fm-space-6); }
.fm-lead { color: var(--fm-primary); font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.6; margin: 0; max-width: 50ch; }
.fm-body-copy { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.7; max-width: 65ch; }
.fm-text-link { border-bottom: 1px solid currentColor; color: var(--fm-primary); display: inline-block; padding-bottom: 2px; text-decoration: none; }
.fm-text-link:hover { color: var(--fm-attention-token); }
.fm-button { align-items: center; border: 1px solid var(--fm-primary); display: inline-flex; font-size: .9rem; font-weight: 500; justify-content: center; min-height: 48px; padding: 0 var(--fm-space-5); text-decoration: none; transition: background-color var(--fm-dur-short) var(--fm-ease-out); }
.fm-button.is-primary { background: var(--fm-primary); color: var(--fm-bg); }
.fm-button.is-primary:hover { background: var(--fm-attention-token); border-color: var(--fm-attention-token); color: var(--fm-bg); }
.fm-button.is-outline { background: transparent; color: var(--fm-primary); }
.fm-button.is-outline:hover { background: var(--fm-primary); color: var(--fm-bg); }
.fm-editorial-page .fm-two-column { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: clamp(2rem, 3vw, 3rem); }
.fm-editorial-page .fm-two-column h3 { color: var(--fm-primary); font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin: 0 0 var(--fm-space-3); }
.fm-editorial-page .fm-two-column p { color: var(--fm-ink-muted); line-height: 1.7; }
.fm-editorial-page .fm-two-column strong { color: var(--fm-primary); }
.fm-faq details { border-top: 1px solid var(--fm-rule); padding: var(--fm-space-4) 0; }
.fm-faq details:last-child { border-bottom: 1px solid var(--fm-rule); }
.fm-faq summary { cursor: pointer; font-size: 1.05rem; font-weight: 500; padding: var(--fm-space-2) 0; }
.fm-faq summary:focus-visible { outline: 2px solid var(--fm-attention-token); outline-offset: 4px; }
.fm-faq details[open] summary { color: var(--fm-attention-token); }
.fm-faq details p { color: var(--fm-ink-muted); line-height: 1.7; margin: var(--fm-space-3) 0 0; }
.fm-contact-heading { border-top: 0; min-height: min(32rem, 62vh); padding-top: clamp(5rem, 10vw, 10rem); }
.fm-contact-layout { display: grid; gap: clamp(3rem, 9vw, 9rem); grid-template-columns: minmax(16rem, .65fr) minmax(0, 1.35fr); }
.fm-contact-layout aside { border-top: 1px solid var(--fm-rule-strong); padding-top: var(--fm-space-5); }
.fm-contact-layout aside h2,
.fm-contact-form h2,
.fm-contact-route h2,
.fm-contact-inquiries h2 { color: var(--fm-primary); font-size: clamp(2rem, 3.5vw, 3.5rem); }
.fm-contact-layout aside .fm-meta { margin: var(--fm-space-6) 0 var(--fm-space-2); }
.fm-contact-form { background: var(--fm-surface-sunk); padding: clamp(1.5rem, 5vw, 4rem); }
.fm-contact-form .wpcf7-form :where(input:not([type='submit']), textarea, select) { background: var(--fm-surface); width: 100%; }
.fm-contact-inquiries { display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-contact-inquiries article { border-top: 1px solid var(--fm-rule-strong); padding-top: var(--fm-space-5); }
.fm-contact-location { align-items: end; background: var(--fm-surface-sunk); display: grid; gap: var(--fm-space-6); grid-template-columns: minmax(0, 1fr) auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }
.fm-contact-location a { align-items: center; border: 1px solid var(--fm-rule-strong); display: inline-flex; min-height: 48px; padding-inline: var(--fm-space-4); }

/* Reinforce approved dynamic page-family rhythm. */
.woocommerce-shop .shop-container,
.tax-product_cat .shop-container,
.search.post-type-archive-product .shop-container { padding-block: var(--fm-space-6) var(--fm-space-8); }
.woocommerce-shop .products.row > .product-small,
.tax-product_cat .products.row > .product-small,
.search.post-type-archive-product .products.row > .product-small { padding-inline: clamp(.5rem, 1.2vw, 1rem); }
.single-product .product-main .row-content,
.single-product .product-main > .row { margin-inline: auto; max-width: var(--fm-content-max); }
.single-product .related-products-wrapper .product-small .name,
.single-product .upsells .product-small .name { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.2; }

/* WP14 Batch4B ordinary product atelier start.
 * Reframe native simple products and the Sample Pack without touching the
 * approved Custom Printing variable-product composition. All commerce
 * controls and WooCommerce output remain native and in source order. */
body.single-product:not(:has(.fm-custom-hero)) .product-main {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6.5rem);
}

body.single-product:not(:has(.fm-custom-hero)) .product-main > .row:has(> .product-gallery) {
  align-items: start;
  display: grid;
  gap: clamp(2.25rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}

body.single-product:not(:has(.fm-custom-hero)) .product-main > .row:has(> .product-gallery) > .col {
  flex-basis: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  width: auto;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-gallery,
body.single-product:not(:has(.fm-custom-hero)) .product-main .woocommerce-product-gallery {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: .25rem;
  box-sizing: border-box;
  padding: clamp(.5rem, 1vw, .75rem);
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .woocommerce-product-gallery__image > a {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: var(--fm-surface-sunk);
  display: flex;
  justify-content: center;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .woocommerce-product-gallery__image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-gallery :where(.flickity-button, .woocommerce-product-gallery__trigger) {
  align-items: center;
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule-strong);
  border-radius: 50%;
  color: var(--fm-primary);
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-gallery :where(.flickity-button, .woocommerce-product-gallery__trigger):focus-visible {
  outline: 2px solid var(--fm-primary);
  outline-offset: 2px;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-thumbnails a {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: .2rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info {
  background: transparent;
  border-top: 1px solid var(--fm-rule-strong);
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .product-title,
body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .product_title {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0 0 var(--fm-space-5);
  text-transform: none;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .price,
body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .price-wrapper {
  border-bottom: 1px solid var(--fm-rule);
  color: var(--fm-primary);
  font-family: var(--fm-font-sans);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 var(--fm-space-5);
  padding: 0 0 var(--fm-space-5);
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .price :where(del, ins) {
  color: inherit;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .woocommerce-product-details__short-description,
body.single-product:not(:has(.fm-custom-hero)) .product-main .product-short-description {
  color: var(--fm-ink-muted);
  line-height: 1.7;
  margin-bottom: var(--fm-space-6);
  max-width: 42rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart {
  align-items: stretch;
  border-top: 1px solid var(--fm-rule);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: var(--fm-space-3);
  margin: var(--fm-space-5) 0 0;
  max-width: 100%;
  min-width: 0;
  padding: var(--fm-space-5) 0 0;
  width: 100%;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart .quantity {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart .quantity :where(input, button) {
  box-sizing: border-box;
  min-height: 3rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart .quantity input[type="number"] {
  min-width: 4.75rem;
  width: 4.75rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart .single_add_to_cart_button {
  flex: 1 1 12rem;
  margin: 0;
  max-width: 100%;
  min-height: 3rem;
  min-width: 0;
}

body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .product_meta {
  border-top: 1px solid var(--fm-rule);
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  line-height: 1.65;
  margin-top: var(--fm-space-6);
  padding-top: var(--fm-space-4);
}

body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: .25rem;
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--fm-content-max);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}

body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs {
  border-bottom: 1px solid var(--fm-rule);
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: var(--fm-space-5);
}

body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a {
  align-items: center;
  display: inline-flex;
  min-height: 2.75rem;
}

body.single-product:not(:has(.fm-custom-hero)) .product-footer .woocommerce-Tabs-panel {
  color: var(--fm-ink-muted);
  line-height: 1.7;
  max-width: 70ch;
  padding-block: 0 var(--fm-space-3);
}

body.single-product:not(:has(.fm-custom-hero)) .related-products-wrapper,
body.single-product:not(:has(.fm-custom-hero)) .related.products,
body.single-product:not(:has(.fm-custom-hero)) .upsells {
  background: transparent;
  border-top: 1px solid var(--fm-rule-strong);
  margin: clamp(3.5rem, 7vw, 7rem) auto 0;
  max-width: var(--fm-content-max);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}

body.single-product:not(:has(.fm-custom-hero)) :where(.related-products-wrapper, .related.products, .upsells) > :where(h2, h3, .product-section-title) {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: var(--fm-space-6);
  text-transform: none;
}

body.single-product:not(:has(.fm-custom-hero)) :where(.related-products-wrapper, .related.products, .upsells) .product-small .box-image {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: .2rem;
  padding: .35rem;
}

body.single-product:not(:has(.fm-custom-hero)) :where(.related-products-wrapper, .related.products, .upsells) .product-small .price,
body.single-product:not(:has(.fm-custom-hero)) :where(.related-products-wrapper, .related.products, .upsells) .product-small .price-wrapper {
  border: 0;
  color: var(--fm-ink);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-sm);
  font-weight: 500;
  margin: var(--fm-space-2) 0 0;
  padding: 0;
}

@media (max-width: 59.99rem) {
  body.single-product:not(:has(.fm-custom-hero)) .product-main > .row:has(> .product-gallery) {
    gap: var(--fm-space-7);
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 39.99rem) {
  body.single-product:not(:has(.fm-custom-hero)) .product-main {
    padding-block: var(--fm-space-5) var(--fm-space-7);
  }

  body.single-product:not(:has(.fm-custom-hero)) .product-main > .row:has(> .product-gallery),
  body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs,
  body.single-product:not(:has(.fm-custom-hero)) .related-products-wrapper,
  body.single-product:not(:has(.fm-custom-hero)) .related.products,
  body.single-product:not(:has(.fm-custom-hero)) .upsells {
    width: min(calc(100% - 2rem), var(--fm-content-max));
  }

  body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .product-title,
  body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info .product_title {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }

  body.single-product:not(:has(.fm-custom-hero)) .product-main .product-info form.cart .single_add_to_cart_button {
    flex-basis: 100%;
    width: 100%;
  }

  body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs {
    gap: var(--fm-space-3) var(--fm-space-5);
  }
}
/* WP14 Batch4B ordinary product atelier end. */
.woocommerce-account .account-container,
.woocommerce-cart .cart-container,
.woocommerce-checkout .woocommerce { padding-block: clamp(3rem, 6vw, 6rem); }

/* WP13-approved product card image hover. Apply only when the user has not
 * requested reduced motion. The scale magnitude (1.025) and 450 ms ease-out
 * match the approved WP13 prototype (.product-card figure:hover img).
 * Selector coverage:
 *   * Flatsome-style wrapping (.product-small .box-image img) for the legacy
 *     Flatsome main catalogue, related/upsell cards, homepage .fm-home block.
 *   * Standard WooCommerce markup (.woocommerce-loop-product__link img) for
 *     standalone WC output that does not emit the Flatsome wrapper, so the
 *     animation fires regardless of whether Flatsome is active. */
@media (prefers-reduced-motion: no-preference) {
  .woocommerce-shop .product-small .box-image img,
  .tax-product_cat .product-small .box-image img,
  .search.post-type-archive-product .product-small .box-image img,
  .fm-home .product-small .box-image img,
  .single-product .related-products-wrapper .product-small .box-image img,
  .single-product .upsells .product-small .box-image img,
  .single-product .related.products .product-small .box-image img,
  .woocommerce ul.products li.product .woocommerce-loop-product__link img,
  .woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
    transition: transform 450ms var(--fm-ease-out, ease-out);
  }

  .woocommerce-shop .product-small:hover .box-image img,
  .tax-product_cat .product-small:hover .box-image img,
  .search.post-type-archive-product .product-small:hover .box-image img,
  .fm-home .product-small:hover .box-image img,
  .single-product .related-products-wrapper .product-small:hover .box-image img,
  .single-product .upsells .product-small:hover .box-image img,
  .single-product .related.products .product-small:hover .box-image img,
  .woocommerce ul.products li.product:hover .woocommerce-loop-product__link img,
  .woocommerce ul.products li.product:hover .woocommerce-LoopProduct-link img {
    transform: scale(1.025);
  }
}

/* Dedicated Track Order page. These selectors are limited to the native
 * page-track-order.php template so other editorial and WooCommerce pages
 * retain their existing presentation. */
.fm-track-order-page {
  background: var(--fm-bg);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.fm-track-order-hero,
.fm-track-order-content {
  margin-inline: auto;
  max-width: var(--fm-content-max);
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}

.fm-track-order-hero {
  border-bottom: 1px solid var(--fm-rule);
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .7fr);
  padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}

.fm-track-order-hero h1,
.fm-track-order-module h2 {
  color: var(--fm-primary);
  font-family: var(--fm-font-serif);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: none;
}

.fm-track-order-hero h1 {
  font-size: clamp(3.35rem, 7vw, 6.5rem);
  margin: 0;
  max-width: 9ch;
}

.fm-track-order-hero > p,
.fm-track-order-module-body > p {
  color: var(--fm-ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  margin: 0;
}

.fm-track-order-hero > p {
  align-self: end;
  max-width: 32rem;
}

.fm-track-order-module {
  border-bottom: 1px solid var(--fm-rule);
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.1fr);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.fm-track-order-module h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.75rem);
  margin: 0;
}

.fm-track-order-module-body {
  min-width: 0;
}

.fm-track-order-form {
  background: var(--fm-surface-sunk);
  margin-top: var(--fm-space-5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.fm-track-order-form .form-row {
  float: none;
  margin: 0 0 var(--fm-space-4);
  padding: 0;
  width: 100%;
}

.fm-track-order-form .form-row:last-child {
  margin-bottom: 0;
}

.fm-track-order-form label {
  color: var(--fm-ink);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  font-weight: 600;
  letter-spacing: var(--fm-tracking-meta);
  text-transform: uppercase;
}

.fm-track-order-form .input-text,
.fm-track-order-form input[type='text'],
.fm-track-order-form input[type='email'] {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.fm-track-order-form button[type='submit'],
.fm-track-order-form input[type='submit'] {
  background: var(--fm-primary);
  border: 1px solid var(--fm-primary);
  border-radius: 0;
  color: var(--fm-surface);
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  font-weight: 600;
  letter-spacing: var(--fm-tracking-meta);
  min-height: var(--fm-control-min);
  padding: .9rem 1.35rem;
  text-transform: uppercase;
}

.fm-track-order-module-body > .fm-track-order-action {
  margin-top: var(--fm-space-5);
}

.fm-track-order-module-body > .fm-track-order-pending {
  border-left: 2px solid var(--fm-attention-token);
  margin-top: var(--fm-space-5);
  padding-left: var(--fm-space-3);
}

.fm-track-order-module-body > .fm-track-order-status {
  color: var(--fm-ink);
}

@media (max-width: 59.99rem) {
  /* Dedicated /track-order/ template: keep the lookup form and carrier
   * routing within the V2 reading measure without touching global WooCommerce
   * or page styles. */
  .fm-track-order-hero,
  .fm-track-order-module {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-catalog-intro,
  .fm-custom-hero,
  .fm-page-hero,
  .fm-custom-sections > section > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-catalog-intro > p,
  .fm-page-hero > div {
    max-width: 60ch;
  }

  .fm-route-grid,
  .fm-note-columns,
  .fm-editorial-page .fm-three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-base-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-footer-brand,
  .fm-about-hero,
  .fm-about-story,
  .fm-about-figures > header,
  .fm-about-visits > header,
  .fm-about-workshop,
  .fm-about-map-panel,
  .fm-about-workshop-overview > div,
  .fm-contact-layout,
  .fm-contact-route,
  .fm-contact-location,
  .fm-404-page,
  .fm-route-spread,
  .fm-map-panel,
  .fm-order-paths,
  .fm-moq-ledger { grid-template-columns: minmax(0, 1fr); }
  .fm-404-page { min-height: 0; }
  .fm-404-code { font-size: clamp(9rem, 44vw, 14rem); }
  .fm-about-hero { min-height: 0; }
  .fm-about-figures > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-about-visits > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fm-about-visits > div img:first-child { grid-column: 1 / -1; }
}

@media (max-width: 39.99rem) {
  .fm-track-order-hero,
  .fm-track-order-module {
    padding-block: 3.25rem;
  }

  .fm-track-order-hero h1,
  .fm-track-order-module h2 {
    font-size: clamp(2.6rem, 14vw, 4.25rem);
  }

  .fm-track-order-form .form-row {
    margin-bottom: var(--fm-space-4);
  }

  .fm-commerce-hero {
    padding-block: 3.25rem 2.5rem;
  }

  .fm-commerce-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.25rem);
  }

  .fm-moq-ledger,
  .fm-commerce-copy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-commerce-section {
    padding-block: 3.5rem;
  }

  html body a.wa-pill-btn {
    bottom: max(1rem, env(safe-area-inset-bottom));
    font-size: .75rem;
    gap: .25rem;
    justify-content: center;
    min-height: 3rem;
    padding: .5rem .375rem;
    right: max(1rem, env(safe-area-inset-right));
    width: 3.5rem;
  }

  html body a.wa-pill-btn > span:last-child {
    font-size: 0;
  }

  html body a.wa-pill-btn > span:last-child::after {
    content: 'Chat';
    font-size: .75rem;
  }

  .fm-contact-heading {
    min-height: min(28rem, 56vh);
  }

  .fm-site-footer {
    padding-bottom: calc(var(--fm-space-5) + 4.5rem + env(safe-area-inset-bottom));
  }

  .fm-catalog-intro,
  .fm-custom-hero,
  .fm-page-hero {
    padding-block: var(--fm-space-5) var(--fm-space-7);
  }

  .fm-catalog-intro h1,
  .fm-page-hero h1,
  .fm-custom-hero h1,
  .archive.category .page-title h1,
  .single-post .entry-title,
  .error404 .page-wrapper h1 {
    font-size: clamp(2.55rem, 14vw, 3.45rem);
  }

  .fm-catalog-note,
  .fm-route-grid,
  .fm-note-columns,
  .fm-print-studies,
  .fm-editorial-page .fm-two-column,
  .fm-editorial-page .fm-three-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-custom-sections > section > header {
    margin-bottom: var(--fm-space-6);
  }

  .fm-base-ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-base-ledger a {
    border-bottom: 1px solid var(--fm-rule);
    border-right: 0;
  }

  .fm-spec-sheet > div {
    gap: var(--fm-space-2);
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .fm-hero-actions a,
  .fm-button,
  .single-product .single_add_to_cart_button {
    max-width: 100%;
    white-space: nowrap;
  }

  .woocommerce-shop .products.row,
  .tax-product_cat .products.row,
  .search.post-type-archive-product .products.row {
    margin-inline: -.55rem;
  }

  .woocommerce-shop .product-small .name,
  .tax-product_cat .product-small .name,
  .search.post-type-archive-product .product-small .name {
    font-size: 1.05rem;
  }

  #footer a,
  .header .nav > li > a,
  .off-canvas .nav > li > a,
  .off-canvas .sub-menu > li > a {
    min-height: 44px;
  }

  .fm-contact-inquiries,
  .fm-about-visits > div { grid-template-columns: minmax(0, 1fr); }
  /* Footer mobile rules are declared in shell.css. */
  .fm-about-visits > div img:first-child { grid-column: auto; }
  /* Mobile footer copyright / payment-label row: the fixed Chat rectangle
   * (right: 1rem, width: 3.5rem) sits 72px from the right edge.  When the
   * user scrolls so the footer-bottom row enters the viewport, the
   * copyright <p> (max-width: 75ch) wraps past the Chat column.  Reserve
   * only this one row's right safe space; brand and nav columns keep
   * the approved full mobile width. */
  .fm-footer-bottom {
    padding-right: 4.5rem;
  }
  /* Mobile Contact address paragraph: the 320px fixed Chat rectangle
   * covers x=248..304.  When the head-office address wraps past that
   * column on a 320px viewport, the rightmost glyph row must keep at
   * least 8px of visual gap from the Chat column.  Measured worst-case
   * text right edge was x≈265 with 2.5rem padding-right, leaving a
   * 16.7px horizontal overlap; 4rem keeps the right edge at x≤236 with
   * ≥12px gap.  Reserve narrow right safe space only on the specific
   * address <p>; the rest of the aside, the form, and every other
   * Contact section keep their approved mobile width. */
  .fm-contact-address {
    padding-right: 4rem;
  }

  /* Custom Printing keeps every native WooCommerce control inside the
   * narrow product column.  Flatsome's inline cart controls otherwise keep
   * their desktop line and push the form's right edge past the viewport. */
  body.single-product:has(.fm-custom-hero) form.cart {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fm-space-3);
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  body.single-product:has(.fm-custom-hero) form.cart .quantity {
    flex: 0 0 auto;
    margin: 0;
    max-width: 100%;
  }

  body.single-product:has(.fm-custom-hero) form.cart table.variations,
  body.single-product:has(.fm-custom-hero) form.cart table.variations tbody,
  body.single-product:has(.fm-custom-hero) form.cart table.variations tr {
    display: block;
    width: 100%;
  }

  body.single-product:has(.fm-custom-hero) form.cart table.variations th,
  body.single-product:has(.fm-custom-hero) form.cart table.variations td {
    display: block;
    padding-inline: 0;
    width: 100%;
  }

  body.single-product:has(.fm-custom-hero) form.cart table.variations td select {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
  }

  body.single-product:has(.fm-custom-hero) form.cart .quantity input[type="number"] {
    box-sizing: border-box;
    min-width: 5rem;
    width: 5rem;
  }

  body.single-product:has(.fm-custom-hero) form.cart .fm-drive-field,
  body.single-product:has(.fm-custom-hero) form.cart input[type="file"] {
    box-sizing: border-box;
    flex-basis: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.single-product:has(.fm-custom-hero) form.cart .fm-drive-field input {
    box-sizing: border-box;
    max-width: none;
  }

  body.single-product:has(.fm-custom-hero) form.cart .single_add_to_cart_button {
    flex: 1 1 100%;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* Phase 2B WP14 first-batch narrow Chat collision fix — follow-up to fccf8a2.
 * Tablet+desktop footer payment labels: the end-aligned flex children stay
 * outside the fixed Chat's right column.  Only .fm-payment-labels carries
 * the measured right safe space — brand, nav, and other footer content
 * keep their approved width. */
@media (min-width: 40rem) {
  #footer.fm-site-footer .fm-payment-labels {
    padding-right: clamp(8rem, 11vw, 10rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body a.wa-pill-btn {
    transition: none;
  }

  html body a.wa-pill-btn.fm-chat-is-avoiding {
    transform: none;
  }

  .woocommerce-shop .product-small .box-image img,
  .tax-product_cat .product-small .box-image img,
  .search.post-type-archive-product .product-small .box-image img {
    transition-duration: 150ms;
    transform: none;
  }
}

/* ============================================================
 * R5_1 — Owner visual-acceptance corrections (2026-10-26).
 *
 * Issues 1, 6, 7 and the page-side support for issue 4.
 *
 * Everything here is scoped to a class the theme or the page content
 * already uses. No bare element selector, no !important, no
 * display:none, no filter, no gradient, no url(), no remote asset.
 * The palette, the type scale and the spacing scale are the existing
 * --fm-* tokens, so these modules read as part of the same site
 * rather than as new components bolted on.
 * ============================================================ */

/* ---------- 07 · single product: Description / Reviews tabs ----------
 *
 * The tab strip was WooCommerce's unstyled default: a plain text list
 * that did not belong to the rest of the site. It is now the same
 * editorial language as the rest of the page - a hairline rule, the
 * site sans at a controlled size, and an attention-token underline
 * for the open tab.
 *
 * The WooCommerce markup is:
 *   div#product-N.product > div.woocommerce-tabs.wc-tabs-wrapper
 *     > ul.tabs.wc-tabs > li > a
 * so the selectors below are written against THAT structure. */
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-radius: var(--fm-radius-md);
  margin-block: var(--fm-space-6) 0;
  max-width: var(--fm-content-max);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  width: min(calc(100% - (2 * var(--fm-gutter))), var(--fm-content-max));
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs {
  border-bottom: 1px solid var(--fm-rule);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0 0 var(--fm-space-5);
  overflow: visible;
  padding: 0;
}
/* WooCommerce core paints its own tab furniture on top of this row: a
   lavender chip on every tab <li> (`background-color` + `border`), a
   lavender hairline under the whole row (`ul.tabs::before`) and the two
   5px corner squares (`li::before` / `li::after`). Core also closes the
   row with a clearfix `ul.tabs::after`, which inside this flex row is a
   third, zero-width flex item: it can push the row onto a second line and
   leave a 12px phantom gap. The V2 tab is a label on the card surface,
   not a chip, so those core layers are cleared here. Same strength as the
   rules they cancel, so no !important. */
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs::before,
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs::after {
  content: none;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs li::before,
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs li::after {
  content: none;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--fm-ink-muted);
  display: inline-flex;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-sm);
  font-weight: 500;
  letter-spacing: .02em;
  min-height: 2.75rem;
  padding: 0 0 2px;
  position: relative;
  text-transform: none;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a::after {
  background: var(--fm-attention-token);
  bottom: -1px;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  right: 100%;
  transition: right var(--fm-dur-short) var(--fm-ease-out);
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a:hover,
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a:focus-visible {
  color: var(--fm-primary);
}
/* The open tab. commerce.css also fills `.tabs li.active a` with the navy
   block (`background: var(--fm-primary)`); this rule is one step stronger
   and clears that fill, so the open tab is the site's own label colour on
   the card surface - the label is readable instead of navy on navy. */
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs .active a {
  background: transparent;
  color: var(--fm-primary);
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a:hover::after,
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs a:focus-visible::after,
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs .active a::after {
  right: 0;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .woocommerce-Tabs-panel {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-sm);
  line-height: 1.7;
  max-width: 70ch;
  padding-block: 0 var(--fm-space-3);
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  color: var(--fm-primary);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-base);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 var(--fm-space-3);
  text-transform: none;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .woocommerce-Tabs-panel a {
  color: var(--fm-primary);
  text-decoration: underline;
  text-underline-offset: .25em;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs #reviews .comment-list {
  border-top: 1px solid var(--fm-rule);
  list-style: none;
  margin: 0;
  padding: 0;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs #reviews .comment-list li {
  border-bottom: 1px solid var(--fm-rule);
  margin: 0;
  padding: var(--fm-space-4) 0;
}
body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs #reviews .woocommerce-review__author {
  color: var(--fm-primary);
  font-weight: 600;
}
@media (max-width: 39.99rem) {
  body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs {
    width: min(calc(100% - 2rem), var(--fm-content-max));
  }
  body.single-product:not(:has(.fm-custom-hero)) div.product > .woocommerce-tabs .tabs {
    gap: var(--fm-space-3) var(--fm-space-5);
  }
}

/* ---------- 06 · Reviews & Documentation: album, quotes, documents ----------
 *
 * The Reviews & Documentation page is page content, and the classes it
 * uses had NO rules anywhere in the theme. That is why the client
 * photographs rendered as bare, oversized images and the certificates
 * rendered as large, distorted thumbnails. These rules give the page
 * the same paper-and-rule language as the rest of the site.
 *
 * The content that uses them is reviewed in
 * implementation-packages/wp14-sitewide/pages/reviews-documentation.html.
 */
.fm-trust-index {
  align-items: center;
  border-bottom: 1px solid var(--fm-rule);
  border-top: 1px solid var(--fm-rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--fm-space-3) var(--fm-space-6);
  padding-block: var(--fm-space-4);
}
.fm-trust-index a {
  font-family: var(--fm-font-mono);
  font-size: var(--fm-text-xs);
  letter-spacing: var(--fm-tracking-meta);
  text-transform: uppercase;
}
.fm-review-entry {
  border-top: 1px solid var(--fm-rule);
  margin: 0;
  padding: var(--fm-space-5) 0;
}
.fm-review-entry blockquote {
  color: var(--fm-ink);
  font-family: var(--fm-font-serif);
  font-size: var(--fm-text-md);
  line-height: var(--fm-leading-normal);
  margin: 0 0 var(--fm-space-3);
  max-width: 62ch;
}
.fm-review-entry figcaption {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-sm);
  line-height: var(--fm-leading-normal);
}
.fm-review-entry figcaption strong {
  color: var(--fm-primary);
  font-weight: 600;
}

/* The album. A framed, matted print rather than a bare <img>. */
.fm-trust-album {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-block: var(--fm-space-6);
}
.fm-trust-album__item {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  margin: 0;
  padding: clamp(.6rem, 1.5vw, .9rem);
}
.fm-trust-album__item img {
  display: block;
  height: auto;
  width: 100%;
}
.fm-trust-album__item figcaption {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-xs);
  letter-spacing: .02em;
  line-height: var(--fm-leading-normal);
  padding-top: var(--fm-space-3);
}
.fm-trust-album__item--wide {
  grid-column: 1 / -1;
}

/* Certificates. Small references, not large images: the Owner asked for
 * thumbnails with a short line of text, not a readable document. */
.fm-editorial-page .fm-document-list {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-block: var(--fm-space-6);
}
.fm-editorial-page .fm-document-row {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-top: 1px solid var(--fm-rule);
  display: flex;
  align-items: center;
  gap: var(--fm-space-4);
  margin: 0;
  padding: var(--fm-space-4);
}
.fm-editorial-page .fm-document-row img {
  background: var(--fm-surface-sunk);
  border: 1px solid var(--fm-rule);
  flex: 0 0 auto;
  height: 4rem;
  object-fit: contain;
  width: 3.25rem;
}
.fm-editorial-page .fm-document-row h3 {
  color: var(--fm-primary);
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-sm);
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 var(--fm-space-1);
  text-transform: none;
}
.fm-editorial-page .fm-document-row p {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-xs);
  line-height: var(--fm-leading-normal);
  margin: 0;
}

/* ---------- 04 · How to Order: the sample purchase panel ----------
 *
 * The Owner asked for the sample purchase route to be visible on the
 * How to Order page. This is the frame the page content drops the
 * panel into. */
.fm-sample-callout {
  background: var(--fm-surface);
  border: 1px solid var(--fm-rule);
  border-left: 3px solid var(--fm-attention-token);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fm-space-3) var(--fm-space-6);
  justify-content: space-between;
  margin-block: var(--fm-space-6);
  padding: var(--fm-space-5);
}
.fm-sample-callout__copy {
  flex: 1 1 22rem;
  margin: 0;
  max-width: 56ch;
}
.fm-sample-callout__copy strong {
  color: var(--fm-primary);
  display: block;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-text-md);
  font-weight: 600;
  margin-bottom: var(--fm-space-1);
}
.fm-sample-callout__copy span {
  color: var(--fm-ink-muted);
  font-size: var(--fm-text-sm);
  line-height: var(--fm-leading-normal);
}
.fm-sample-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fm-space-3);
}

/* ============================================================
 * FabricsMaker — client-visit photo album.
 *
 * (Part of the sitewide stylesheet because the THEME release unit's
 *  file set is frozen: a release may overwrite an approved file but
 *  may not introduce a new one.)
 *
 * Scoped entirely to `.fm-album-*`. It consumes the theme's own
 * --fm-* tokens. No new palette, no remote asset, no @font-face,
 * no CDN, no gradient, no filter.
 *
 * Nothing is cropped. Every frame keeps its photograph's own aspect
 * ratio: the frame is sized by the grid, the image is drawn at its
 * natural ratio inside it, and `object-fit` is never used to fill a
 * box of a different shape.
 * ============================================================ */

.fm-album {
  --fm-album-gap: clamp(0.6rem, 1.4vw, 1.1rem);
  --fm-album-frame: var(--fm-surface);
  --fm-album-radius: var(--fm-radius-md);
  display: block;
}

/* ---------- the wall ---------- */

.fm-album__wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--fm-album-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.fm-album__cell {
  min-width: 0;
}

.fm-album__frame {
  margin: 0;
  background: var(--fm-album-frame);
  border: 1px solid var(--fm-rule);
  border-radius: var(--fm-album-radius);
  padding: clamp(0.3rem, 0.7vw, 0.55rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fm-album__link {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--fm-album-radius) - 1px);
  background: var(--fm-surface-sunk);
}

.fm-album__image {
  display: block;
  width: 100%;
  height: auto;
  /* No object-fit: the picture is drawn at its own ratio. */
}

.fm-album__link:focus-visible {
  outline: 2px solid var(--fm-primary);
  outline-offset: 3px;
}

.fm-album__caption {
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: 0.66rem;
  letter-spacing: var(--fm-tracking-meta);
  line-height: 1.5;
  padding-top: calc(var(--fm-space-1) * 3);
  text-transform: uppercase;
}

/* ---------- the carousel ---------- */

.fm-album__carousel {
  margin-top: var(--fm-album-gap);
}

.fm-album__track {
  display: flex;
  gap: var(--fm-album-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--fm-space-1) * 2);
  scrollbar-width: thin;
}

.fm-album__slide {
  flex: 0 0 auto;
  width: min(72%, 22rem);
  margin: 0;
  scroll-snap-align: start;
  background: var(--fm-album-frame);
  border: 1px solid var(--fm-rule);
  border-radius: var(--fm-album-radius);
  padding: clamp(0.3rem, 0.7vw, 0.55rem);
}

.fm-album__controls {
  display: flex;
  align-items: center;
  gap: calc(var(--fm-space-1) * 3);
  flex-wrap: wrap;
  margin-top: calc(var(--fm-space-1) * 3);
}

.fm-album__button {
  font-family: var(--fm-font-mono);
  font-size: 0.68rem;
  letter-spacing: var(--fm-tracking-meta);
  text-transform: uppercase;
  color: var(--fm-ink);
  background: transparent;
  border: 1px solid var(--fm-rule-strong);
  border-radius: var(--fm-radius-sm);
  padding: calc(var(--fm-space-1) * 2) calc(var(--fm-space-1) * 4);
  min-height: var(--fm-control-min);
  cursor: pointer;
}

.fm-album__button:hover {
  border-color: var(--fm-primary);
  color: var(--fm-primary);
}

.fm-album__button:focus-visible {
  outline: 2px solid var(--fm-primary);
  outline-offset: 2px;
}

.fm-album__button-text {
  margin-left: 0.4em;
}

.fm-album__status {
  margin: 0;
  color: var(--fm-ink-muted);
  font-family: var(--fm-font-mono);
  font-size: 0.66rem;
  letter-spacing: var(--fm-tracking-meta);
  /* The status line must keep the same shape whatever it says.
     "Photograph 3 of 8" and "Automatic advance playing." are very
     different lengths, and the controls row wraps around them. When the
     message changed length the status moved between lines, the controls
     block grew and shrank, the carousel changed height and the browser
     re-anchored the document: the page nudged itself once per advance.
     Reserving the width of the longest message the theme can produce
     keeps the row identical for every message, at every width. The
     longest one is "Automatic advance playing." at 182px; 12rem leaves
     headroom above it. */
  min-width: 12rem;
}

/* ---------- the lightbox ---------- */

.fm-album__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(24, 23, 20, 0.9);
}

.fm-album__lightbox[hidden] {
  display: none;
}

.fm-album__lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--fm-space-1) * 4);
  max-width: 100%;
  max-height: 100%;
}

.fm-album__lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--fm-space-1) * 3);
  max-height: 100%;
}

.fm-album__lightbox-image {
  display: block;
  max-width: min(86vw, 60rem);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
}

.fm-album__lightbox-caption {
  color: #efe7d7;
  font-family: var(--fm-font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--fm-tracking-meta);
  text-align: center;
}

.fm-album__lightbox-close,
.fm-album__lightbox-nav {
  font-family: var(--fm-font-mono);
  font-size: 1rem;
  color: #efe7d7;
  background: transparent;
  border: 1px solid rgba(239, 231, 215, 0.45);
  border-radius: 999px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.fm-album__lightbox-close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  font-size: 1.25rem;
}

.fm-album__lightbox-close:hover,
.fm-album__lightbox-nav:hover {
  border-color: #efe7d7;
}

.fm-album__lightbox-close:focus-visible,
.fm-album__lightbox-nav:focus-visible {
  outline: 2px solid #efe7d7;
  outline-offset: 2px;
}

/* ---------- variants ---------- */

/* The compact form is the homepage column: one row of photographs that
   scrolls sideways on touch. The wall is not repeated there, so the
   section cannot grow without bound. */
.fm-album[data-fm-album-variant="compact"] .fm-album__wall {
  display: none;
}

.fm-album[data-fm-album-variant="compact"] .fm-album__slide {
  width: min(62%, 16rem);
}

/* ---------- responsive ---------- */

@media (min-width: 48rem) {
  .fm-album__wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* The wide frames break the rhythm of the grid without touching the
     photographs themselves. */
  .fm-album__cell.is-wide {
    grid-column: span 2;
  }
}

@media (min-width: 72rem) {
  .fm-album__wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  /* One photograph per screen-width on a phone, so the album is a
     swipeable sequence rather than a grid of small pictures. */
  .fm-album__wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .fm-album__track {
    scroll-behavior: auto;
  }

  .fm-album__button,
  .fm-album__lightbox-close,
  .fm-album__lightbox-nav {
    transition: none;
  }
}
