/* FinSling shop look, on top of Rife Free + WooCommerce.
   Header, footer and title band copy the new pages (public/fs/style.css) under fs- class
   names, so nothing here touches Rife's own elements by accident. Values match style.css:
   change both together. */

:root {
  --fs-bg: #f4f7f9; --fs-surface: #ffffff; --fs-ink: #0e1b29; --fs-muted: #52606d; --fs-line: #d5dde4;
  --fs-blue: #0e4a8c; --fs-blue-deep: #0a3566; --fs-mat: #14a3a0; --fs-band: #104777;
  --fs-band-fg: #ffffff; --fs-band-muted: #d0d0d0; --fs-navy: #0b2540;
  --fs-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --fs-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-gutter: 1.25rem;
  --fs-hdr: 5.9rem;
}

/* ---- page ---- */
body.fs-shop { background: var(--fs-bg); color: var(--fs-ink); font-family: var(--fs-body); font-size: 1.0625rem; line-height: 1.55; }
body.fs-shop #mid { background: var(--fs-bg); padding-top: 0 !important; }
body.fs-shop .whole-layout { background: var(--fs-bg); }
body.fs-shop #content, body.fs-shop .content-box, body.fs-shop #col-mask { background: transparent; }
body.fs-shop #mid #content { margin-top: 0; padding-top: 2.4rem; padding-bottom: 3.5rem; }   /* Rife leaves 130px for its photo title bar */
body.fs-shop.single-product #mid #content { padding-top: 0; padding-bottom: 0; }
body.fs-shop :focus-visible { outline: 3px solid var(--fs-mat); outline-offset: 3px; }
/* Rife doesn't use border-box, so padding would widen these past the screen */
.fs-top, .fs-top *, .fs-foot, .fs-foot *, .fs-phead *, body.fs-shop .content-limiter, body.fs-shop #content div.product, body.fs-shop #content div.product * { box-sizing: border-box; }
.fs-wrap { width: min(72rem, 100%); margin-inline: auto; padding-inline: var(--fs-gutter); }
body.fs-shop .content-limiter { width: min(72rem, 100%); max-width: none; margin-inline: auto; padding-inline: var(--fs-gutter); }
body.fs-shop .formatter { padding: 0; }

/* ---- header (= header.top in style.css) ---- */
.fs-top { background: var(--fs-surface); position: sticky; top: 0; z-index: 100; font-family: var(--fs-body); }
.admin-bar .fs-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .fs-top { top: 0; } }
.fs-top::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: url("img/stitch-blue.svg") repeat-x; }
.fs-top .fs-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.fs-brand, .fs-tools { min-height: 3.6rem; }
.fs-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; color: var(--fs-ink); }
.fs-brand:hover { color: var(--fs-ink); }
.fs-brand .fs-mark { display: block; width: 2.6rem; height: 2.6rem; flex: none; }
.fs-brand span { font: 700 1.6rem/1.55 var(--fs-display); letter-spacing: 0.01em; }   /* line height as on the new pages */
.fs-motto { display: none; font: 600 0.95rem/1 var(--fs-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fs-muted); white-space: nowrap; }
.fs-nav { display: flex; order: 3; flex-basis: 100%; gap: 1.5rem; padding-bottom: 0.7rem; overflow-x: auto; scrollbar-width: none; }
.fs-nav::-webkit-scrollbar { display: none; }
.fs-nav a { flex: none; text-decoration: none; font-weight: 500; color: var(--fs-muted); }
.fs-nav a:hover { color: var(--fs-blue); }
.fs-tools { display: flex; align-items: center; gap: 0.6rem; }

/* language: the new pages' select with a drawn flag (emoji flags don't show on Windows) */
.fs-lang { position: relative; display: flex; align-items: center; }
.fs-lang .fs-flag { position: absolute; left: 0.7rem; pointer-events: none; }
.fs-lang select { appearance: none; -webkit-appearance: none; min-height: 2.4rem; height: auto; margin: 0; padding: 0 1.9rem 0 2.6rem; border: 1px solid var(--fs-line); border-radius: 0.4rem;
  background: var(--fs-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%230e1b29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.65rem center / 0.75rem;
  color: var(--fs-ink); font: 600 0.95rem/1 var(--fs-body); cursor: pointer; box-shadow: none; }
.fs-lang select:hover { border-color: var(--fs-blue); }
.fs-flag { width: 1.4rem; height: 0.95rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14, 27, 41, 0.22); background-size: cover; background-position: center; flex: none; }
.fs-flag[data-flag="en"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23012169'/><path d='M0 0l60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/><path d='M0 0l60 40M60 0L0 40' stroke='%23C8102E' stroke-width='3'/><path d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='13'/><path d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='8'/></svg>"); }
.fs-flag[data-flag="fi"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23fff'/><rect x='8' width='4' height='20' fill='%23003580'/><rect y='8' width='30' height='4' fill='%23003580'/></svg>"); }
.fs-flag[data-flag="sv"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'><rect width='16' height='10' fill='%23006AA7'/><rect x='5' width='2' height='10' fill='%23FECC02'/><rect y='4' width='16' height='2' fill='%23FECC02'/></svg>"); }
.fs-flag[data-flag="de"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='5' height='1' fill='%23000'/><rect y='1' width='5' height='1' fill='%23DD0000'/><rect y='2' width='5' height='1' fill='%23FFCE00'/></svg>"); }
.fs-flag[data-flag="es"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'><rect width='6' height='4' fill='%23AA151B'/><rect y='1' width='6' height='2' fill='%23F1BF00'/></svg>"); }
.fs-flag[data-flag="fr"] { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' fill='%23002395'/><rect x='1' width='1' height='2' fill='%23fff'/><rect x='2' width='1' height='2' fill='%23ED2939'/></svg>"); }

.fs-cart { position: relative; display: flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 0.7rem; border-radius: 0.4rem; background: var(--fs-blue); color: #fff; text-decoration: none; font: 600 0.95rem/1 var(--fs-body); }
.fs-cart:hover { background: var(--fs-blue-deep); color: #fff; }
.fs-cart-label { display: none; }
.fs-cart-n { min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; border-radius: 1rem; background: #fff; color: var(--fs-blue); font-size: 0.8rem; display: grid; place-items: center; }
.fs-cart-n.is-empty { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ---- title band (= .phead on the Products page) ---- */
.fs-phead { color: var(--fs-band-fg); background-color: var(--fs-band); background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 2.5rem 2.5rem; }
.fs-phead .fs-wrap { padding-block: 2.4rem 2rem; }
.fs-phead h1 { font: 700 clamp(2.4rem, 8vw, 3.6rem)/0.98 var(--fs-display); margin: 0; color: inherit; letter-spacing: 0.005em; }
.fs-stitch { height: 6px; background: url("img/stitch-blue.svg") repeat-x; }

/* ---- footer (= footer in style.css) ---- */
.fs-foot { position: relative; background: var(--fs-navy); color: var(--fs-band-muted); font: 0.95rem/1.55 var(--fs-body); }
.fs-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: url("img/stitch-white.svg") repeat-x; }
.fs-foot .fs-wrap { padding-block: 2rem 2.4rem; display: grid; gap: 1.2rem; }
.fs-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.fs-foot a, .fs-foot strong { color: var(--fs-band-fg); }
.fs-foot a:hover { color: #fff; }

/* ---- buttons: WooCommerce's purple becomes FinSling blue everywhere in the shop ---- */
body.fs-shop .woocommerce a.button, body.fs-shop .woocommerce button.button, body.fs-shop .woocommerce input.button,
body.fs-shop .woocommerce #respond input#submit, body.fs-shop .woocommerce a.button.alt, body.fs-shop .woocommerce button.button.alt,
body.fs-shop .woocommerce input.button.alt, body.fs-shop .wc-block-components-button:not(.is-link) {
  background: var(--fs-blue); color: #fff; border: 0; border-radius: 0.2rem; font: 600 1rem/1 var(--fs-body);
  padding: 0.95rem 1.4rem; text-transform: none; letter-spacing: 0; box-shadow: none; opacity: 1;
}
body.fs-shop .woocommerce a.button:hover, body.fs-shop .woocommerce button.button:hover, body.fs-shop .woocommerce input.button:hover,
body.fs-shop .woocommerce button.button.alt:hover, body.fs-shop .woocommerce a.button.alt:hover, body.fs-shop .wc-block-components-button:not(.is-link):hover {
  background: var(--fs-blue-deep); color: #fff;
}
body.fs-shop #content .single_add_to_cart_button.button.alt, body.fs-shop #content .single_add_to_cart_button.button.alt:hover { color: #fff; }
body.fs-shop #content .single_add_to_cart_button.button.alt { background: var(--fs-blue); }
body.fs-shop #content .single_add_to_cart_button.button.alt:hover { background: var(--fs-blue-deep); }
body.fs-shop #content button.button.alt.disabled, body.fs-shop #content button.button.alt:disabled { background: var(--fs-blue); opacity: 0.45; }
body.fs-shop .woocommerce-message, body.fs-shop .woocommerce-info, body.fs-shop .woocommerce-error { border: 1px solid var(--fs-line); border-left: 4px solid var(--fs-mat); background: var(--fs-surface); color: var(--fs-ink); border-radius: 0.2rem; }
body.fs-shop .woocommerce-message a:not(.button), body.fs-shop .woocommerce-info a:not(.button) { color: var(--fs-blue) !important; font-weight: 600; text-decoration: underline; }
body.fs-shop .woocommerce-error { border-left-color: #b42318; }
body.fs-shop .woocommerce-message::before, body.fs-shop .woocommerce-info::before { color: var(--fs-mat); }
body.fs-shop .woocommerce .price, body.fs-shop .woocommerce .amount { color: var(--fs-blue); }

/* ---- cart, checkout, my account: the new pages' type and line weights over Rife's ---- */
body.fs-shop #content, body.fs-shop #content input, body.fs-shop #content select, body.fs-shop #content textarea,
body.fs-shop #content button, body.fs-shop #content th, body.fs-shop #content td, body.fs-shop #content label { font-family: var(--fs-body); }
body.fs-shop #content h2, body.fs-shop #content h3 { font: 700 1.7rem/1.05 var(--fs-display); color: var(--fs-ink); letter-spacing: 0.005em; text-transform: none; }
body.fs-shop #content table.shop_table { border: 0; border-collapse: collapse; background: transparent; }
body.fs-shop #content table.shop_table th { font-weight: 600; color: var(--fs-ink); text-transform: none; letter-spacing: 0; }
body.fs-shop #content table.shop_table thead th { border-bottom: 1px solid var(--fs-ink); }
body.fs-shop #content table.shop_table td, body.fs-shop #content table.shop_table tbody th, body.fs-shop #content table.shop_table tfoot th, body.fs-shop #content table.shop_table tfoot td { border-top: 0; border-bottom: 1px solid var(--fs-line); }
body.fs-shop #content .cart_totals, body.fs-shop #content .cart-collaterals .cart_totals { border: 1px solid var(--fs-line); background: var(--fs-surface); padding: 1.4rem 1.6rem; border-radius: 0.2rem; }
body.fs-shop #content .cart_totals h2 { font-size: 1.5rem; margin: 0 0 0.6rem; }
body.fs-shop #content .cart_totals .order-total .amount { font-size: 1.25rem; }
body.fs-shop #content .cart_totals .order-total small, body.fs-shop #content .cart_totals .order-total .includes_tax { display: block; font-size: 0.85rem; color: var(--fs-muted); }
body.fs-shop #content button[name="update_cart"] { display: inline-flex !important; align-items: center; justify-content: center; height: auto !important; line-height: 1 !important; background: transparent !important; color: var(--fs-blue) !important; border: 2px solid var(--fs-blue) !important; border-radius: 0.2rem !important; padding: 0.75rem 1.2rem !important; font-size: 0.95rem !important; }
body.fs-shop #content table.cart td.actions { background: transparent; }
body.fs-shop #content .cart_totals .order-total th { font: 600 1rem/1.3 var(--fs-body) !important; }
body.fs-shop #content .cart_totals .order-total td::before { font: 600 1rem/1.3 var(--fs-body) !important; }
body.fs-shop #content .includes_tax .amount { font-size: inherit !important; }
body.fs-shop #content button[name="update_cart"]:disabled { opacity: 0.4; }
body.fs-shop #content .qty, body.fs-shop #content input.input-text, body.fs-shop #content textarea, body.fs-shop #content select { border: 1px solid var(--fs-line); border-radius: 0.2rem; background: var(--fs-surface); padding: 0.6rem 0.7rem; font-size: 1rem; }
body.fs-shop #content a.remove { color: var(--fs-muted) !important; }
body.fs-shop #content a.remove:hover { background: #b42318; color: #fff !important; }

/* ---- product page ---- */
.fs-crumbs { padding: 1.4rem 0 0.6rem; font-size: 0.95rem; }
.fs-crumbs a { color: var(--fs-blue); text-decoration: none; font-weight: 600; }
.fs-crumbs a::before { content: "←"; margin-right: 0.4rem; }
.fs-crumbs a:hover { text-decoration: underline; }

body.fs-shop.single-product #content div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 3rem; padding: 0.8rem 0 3.5rem; }
body.fs-shop.single-product #content div.product .woocommerce-product-gallery,
body.fs-shop.single-product #content div.product .summary { width: auto !important; max-width: none; float: none; margin: 0; padding: 0; }
body.fs-shop.single-product #content .woocommerce-product-gallery .flex-viewport { height: auto !important; }
body.fs-shop.single-product #content div.product { overflow: hidden; }
body.fs-shop.single-product #content div.product .woocommerce-tabs, body.fs-shop.single-product #content div.product .related,
body.fs-shop.single-product #content div.product .upsells { grid-column: 1 / -1; }

/* gallery: photos on the cutting-mat teal, like the Products page cards */
body.fs-shop.single-product #content .woocommerce-product-gallery { position: relative; }
body.fs-shop.single-product #content .woocommerce-product-gallery img { background: var(--fs-mat); }
body.fs-shop.single-product #content .woocommerce-product-gallery__image:first-child img,
body.fs-shop.single-product #content .flex-viewport img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--fs-line); }
/* thumbnails: one scrollable strip under the photo (Rife puts a 70px column of them on the left) */
body.fs-shop.single-product #content .woocommerce-product-gallery.has-thumbnails { padding-left: 0 !important; }
body.fs-shop.single-product #content .woocommerce-product-gallery .flex-control-thumbs { position: static !important; width: auto !important; max-height: none !important; display: flex; gap: 0.5rem; margin: 0.6rem 0 0 !important; padding: 0 0 0.3rem !important; overflow-x: auto; scrollbar-width: thin; }
body.fs-shop.single-product #content .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 4.75rem; width: 4.75rem !important; float: none !important; margin: 0 !important; list-style: none; }
body.fs-shop.single-product #content .flex-control-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: 0.65; border: 1px solid var(--fs-line); cursor: pointer; }
/* graphics (the PNG Made in Finland badge) whole, on white, not cropped like the photos */
body.fs-shop.single-product #content .woocommerce-product-gallery img[src$=".png"] { object-fit: contain; background: #fff; padding: 8%; box-sizing: border-box; }
body.fs-shop.single-product #content .flex-control-thumbs img.flex-active, body.fs-shop.single-product #content .flex-control-thumbs img:hover { opacity: 1; border-color: var(--fs-blue); }
body.fs-shop.single-product #content .woocommerce-product-gallery__trigger { top: 0.75rem; right: 0.75rem; background: var(--fs-surface); box-shadow: 0 0 0 1px var(--fs-line); }

/* summary */
body.fs-shop.single-product #content .summary .product_title { font: 700 clamp(2.1rem, 6vw, 3rem)/1 var(--fs-display); margin: 0 0 0.7rem; color: var(--fs-ink); letter-spacing: 0.005em; text-transform: none; }
body.fs-shop.single-product #content .summary > .price { font: 600 1.35rem/1.2 var(--fs-body); color: var(--fs-blue); margin: 0 0 1.4rem; padding: 0; }
body.fs-shop.single-product #content .summary .woocommerce-product-details__short-description { color: var(--fs-muted); margin-bottom: 1.4rem; }
body.fs-shop.single-product #content form.cart { margin: 0 0 1.4rem; padding: 1.3rem 0 0; border-top: 1px solid var(--fs-line); }
body.fs-shop.single-product #content table.variations { margin: 0 0 0.6rem; border: 0; width: 100%; }
body.fs-shop.single-product #content table.variations tr { display: block; margin-bottom: 1.1rem; }
body.fs-shop.single-product #content table.variations th, body.fs-shop.single-product #content table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; line-height: 1.3; }
body.fs-shop.single-product #content table.variations th.label, body.fs-shop.single-product #content table.variations td.label { margin-bottom: 0.5rem; }
/* Rife sets these as 11px capitals with !important-free but later rules; force the plain label */
body.fs-shop.single-product #content table.variations th, body.fs-shop.single-product #content table.variations label { font: 600 1rem/1.3 var(--fs-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--fs-ink) !important; }
body.fs-shop.single-product #content .woo-selected-variation-item-name { font-weight: 400 !important; color: var(--fs-muted) !important; }
body.fs-shop.single-product #content .woo-selected-variation-item-name { color: var(--fs-ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
body.fs-shop.single-product #content a.reset_variations { font-size: 0.9rem; color: var(--fs-muted); margin-top: 0.4rem; display: inline-block; }

/* swatches: the Products page's category chips */
body.fs-shop.single-product #content ul.variable-items-wrapper { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item { margin: 0 !important; }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item:not(.radio-variable-item) {
  box-shadow: none !important; border: 1px solid var(--fs-line); border-radius: 2rem; background: var(--fs-surface);
  min-width: 0; height: auto; padding: 0.5rem 0.95rem; transition: border-color 0.15s, background 0.15s;
}
body.fs-shop.single-product #content .variable-items-wrapper .variable-item:not(.radio-variable-item):hover { border-color: var(--fs-blue); }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item .variable-item-span { font: 600 0.95rem/1.1 var(--fs-body); color: var(--fs-ink); padding: 0; }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item.selected:not(.radio-variable-item) { border-color: var(--fs-blue); background: var(--fs-blue); }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item.selected .variable-item-span { color: #fff; }
body.fs-shop.single-product #content .variable-items-wrapper .variable-item.disabled { opacity: 0.4; }

body.fs-shop.single-product #content .single_variation_wrap .woocommerce-variation-price .price { font: 600 1.25rem/1.2 var(--fs-body); color: var(--fs-blue); margin-bottom: 0.9rem; display: block; }
body.fs-shop.single-product #content .woocommerce-variation-add-to-cart, body.fs-shop.single-product #content form.cart:not(.variations_form) { display: flex; gap: 0.6rem; align-items: stretch; flex-wrap: wrap; }
body.fs-shop.single-product #content form.cart .quantity { margin: 0 !important; float: none; }
body.fs-shop.single-product #content form.cart .quantity .qty { width: 4.5rem; height: 100%; min-height: 3.1rem; border: 1px solid var(--fs-line); border-radius: 0.2rem; font: 600 1rem var(--fs-body); text-align: center; background: var(--fs-surface); }
body.fs-shop.single-product #content form.cart .single_add_to_cart_button { flex: 1; min-height: 3.1rem; float: none; font-size: 1.05rem; border-radius: 0.2rem; }

.fs-made { display: flex; align-items: center; gap: 0.9rem; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--fs-line); font-size: 0.95rem; line-height: 1.35; }
.fs-made img { width: 3rem; height: 3rem; object-fit: contain; flex: none; }
.fs-made strong { display: block; font-weight: 600; color: var(--fs-ink); }
.fs-made a { color: var(--fs-blue); }

/* tabs: an underlined row in the display face; description text at reading width */
body.fs-shop.single-product #content .woocommerce-tabs { padding-top: 1rem; }
body.fs-shop.single-product #content .woocommerce-tabs ul.tabs { display: flex; gap: 1.6rem; margin: 0 0 1.6rem; padding: 0; border-bottom: 1px solid var(--fs-line); overflow-x: auto; }
body.fs-shop.single-product #content .woocommerce-tabs ul.tabs::before, body.fs-shop.single-product #content .woocommerce-tabs ul.tabs li::before, body.fs-shop.single-product #content .woocommerce-tabs ul.tabs li::after { display: none; }
body.fs-shop.single-product #content .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
body.fs-shop.single-product #content .woocommerce-tabs ul.tabs li a { display: block; padding: 0.6rem 0; font: 700 1.3rem/1 var(--fs-display); color: var(--fs-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
body.fs-shop.single-product #content .woocommerce-tabs ul.tabs li.active a { color: var(--fs-ink); border-bottom-color: var(--fs-blue); }
body.fs-shop.single-product #content .woocommerce-tabs .panel { margin: 0 !important; padding: 0 !important; color: var(--fs-ink); }
body.fs-shop.single-product #content .woocommerce-tabs .panel > h2:first-child { display: none; }
body.fs-shop.single-product #content .fs-desc-text h2, body.fs-shop.single-product #content .fs-desc-text h3 { font: 700 1.6rem/1.05 var(--fs-display); margin: 1.6rem 0 0.6rem; color: var(--fs-ink); }
body.fs-shop.single-product #content .woocommerce-tabs table.shop_attributes { border: 1px solid var(--fs-line); background: var(--fs-surface); }
body.fs-shop.single-product #content .woocommerce-tabs table.shop_attributes th, body.fs-shop.single-product #content .woocommerce-tabs table.shop_attributes td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--fs-line); font-style: normal; background: none; }
body.fs-shop.single-product #content .woocommerce-tabs table.shop_attributes th { width: 30%; font-weight: 600; }

/* ---- product description: text + reviews, FAQ, videos (sections built in functions.php) ---- */
.fs-desc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.fs-desc-text p { margin: 0 0 1rem; }
.fs-desc-text > :last-child { margin-bottom: 0; }

/* section titles and the stitched seam that opens every section after the text */
body.fs-shop #content .fs-sec-title { font: 700 clamp(1.7rem, 4.5vw, 2.2rem)/1 var(--fs-display); margin: 0 0 1.2rem; padding: 0; color: var(--fs-ink); letter-spacing: 0.005em; }
body.fs-shop #content .fs-videos .fs-sec-title { color: var(--fs-band); }
.fs-sec { position: relative; margin-top: 3rem; padding-top: 2.4rem; }
.fs-sec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: url("img/stitch-blue.svg") repeat-x; }

/* reviews: quiet, set in the display face like the front page's quotes, a teal quote mark the only ornament */
.fs-reviews { align-self: start; position: relative; padding-top: 2.4rem; margin-top: 0.6rem; }
.fs-reviews::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: url("img/stitch-blue.svg") repeat-x; }
.fs-reviews blockquote { position: relative; margin: 0 0 1.3rem; padding: 0 0 0 1.9rem; border: 0; background: none; quotes: none; }
.fs-reviews blockquote::before { content: "\201C"; position: absolute; left: 0; top: -0.35rem; font: 700 2.6rem/1 var(--fs-display); color: var(--fs-mat); }
.fs-reviews blockquote p { margin: 0; font: 500 1.3rem/1.22 var(--fs-display); color: var(--fs-ink); }
.fs-reviews blockquote strong, .fs-reviews blockquote em { font-weight: inherit; font-style: normal; }
.fs-reviews blockquote + blockquote { padding-top: 1.3rem; border-top: 1px solid var(--fs-line); }
.fs-reviews blockquote + blockquote::before { top: 0.95rem; }

/* FAQ: questions open and close; the answer is the same width as the text column */
.fs-faq-list { border-top: 1px solid var(--fs-line); }
.fs-faq details { border-bottom: 1px solid var(--fs-line); }
.fs-faq summary { position: relative; list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 0; font: 700 1.3rem/1.15 var(--fs-display); color: var(--fs-ink); }
.fs-faq summary::-webkit-details-marker { display: none; }
.fs-faq summary strong, .fs-faq summary b { font-weight: inherit; }
.fs-faq summary::after { content: ""; position: absolute; right: 0.2rem; top: 50%; width: 1.7rem; height: 1.7rem; translate: 0 -50%; border: 1px solid var(--fs-line); border-radius: 50%;
  background: linear-gradient(var(--fs-blue), var(--fs-blue)) center / 0.7rem 2px no-repeat, linear-gradient(var(--fs-blue), var(--fs-blue)) center / 2px 0.7rem no-repeat; transition: rotate 0.2s; }
.fs-faq details[open] summary::after { background: linear-gradient(var(--fs-blue), var(--fs-blue)) center / 0.7rem 2px no-repeat; border-color: var(--fs-blue); rotate: 180deg; }
.fs-faq summary:hover { color: var(--fs-blue); }
.fs-faq .fs-a { padding: 0 0 1.1rem; color: var(--fs-ink); }
.fs-faq .fs-a p { margin: 0 0 0.8rem; }
#faq { scroll-margin-top: calc(var(--fs-hdr) + 1rem); }   /* the Guides page links to it; clear the sticky header */
.fs-faq .fs-a .fs-v { max-width: 36rem; margin-bottom: 0.8rem; }   /* a video that belongs to the answer */
.fs-faq .fs-a .fs-v.is-tall { max-width: 18rem; }
.fs-faq .fs-a > :last-child { margin-bottom: 0; }

/* videos: the one bold block, on a light cutting-mat grid; Shorts upright, other videos wide */
.fs-videos { padding: 2rem 1.1rem 2.2rem; color: var(--fs-band); background-color: #eef2f6;
  background-image: linear-gradient(rgba(20, 163, 160, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 163, 160, 0.2) 1px, transparent 1px); background-size: 2.5rem 2.5rem; }
.fs-videos::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: url("img/stitch-blue.svg") repeat-x; }
.fs-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 0.9rem; }
.fs-v { grid-column: span 2; min-width: 0; }
.fs-v.is-tall { grid-column: span 1; }
.fs-v p, .fs-v div, .fs-v figure { width: auto !important; height: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.fs-v iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; background: #021c1e; }
.fs-v.is-tall iframe { aspect-ratio: 9 / 16; }

@media (prefers-reduced-motion: reduce) { .fs-faq summary::after { transition: none; } }

/* ---- wider screens ---- */
@media (min-width: 560px) {
  .fs-cart-label { display: inline; }
}
@media (min-width: 860px) {
  :root { --fs-gutter: 2rem; --fs-hdr: 4rem; }
  .fs-top .fs-wrap { flex-wrap: nowrap; gap: 1rem; }
  .fs-nav { order: 0; flex-basis: auto; gap: 1.6rem; padding-bottom: 0; overflow: visible; }
  .fs-brand, .fs-tools { min-height: 4rem; }
  .fs-foot .fs-wrap { grid-template-columns: 1fr auto; align-items: end; }
  body.fs-shop.single-product #content div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  /* the description sits on the same two columns as the photo and summary above it */
  .fs-desc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 3rem; }
  .fs-desc-text { grid-column: 1; }
  .fs-reviews { padding-top: 0; margin-top: 0; }   /* beside the text: the column is the separation */
  .fs-reviews::before { display: none; }
  .fs-faq .fs-faq-list { width: calc((100% - 3rem) * 1.1 / 2.1); }
  .fs-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fs-videos { padding: 2.2rem 2.4rem 2.6rem; }
}
@media (min-width: 1000px) {
  .fs-brand { margin-right: 0; }
  .fs-motto { display: block; margin-right: auto; padding-left: 1rem; border-left: 1px solid var(--fs-line); translate: 0 0.25rem; }
}
/* phones: logo, language and cart on one row (same rules as the new pages' style.css) */
@media (max-width: 559px) {
  .fs-top .fs-wrap { gap: 0 0.5rem; }
  .fs-cart { padding: 0 0.55rem; }
  .fs-lang select { padding-right: 1.6rem; background-position: right 0.5rem center; }
}
@media (max-width: 400px) {
  .fs-brand .fs-mark { width: 2.2rem; height: 2.2rem; }
  .fs-brand span { font-size: 1.4rem; }
  .fs-lang select { font-size: 0.88rem; padding-left: 2.3rem; }
  .fs-lang .fs-flag { left: 0.55rem; }
}

