/*
Theme Name: Barefoot Shoes
Theme URI: https://barefootshoes.ro
Author: NOZZO 2022
Description: Lightweight mobile-first WooCommerce theme for barefootshoes.ro (no page builder).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: barefootshoes
WC requires at least: 9.0
*/

/* ---------- tokens ---------- */
:root {
  --navy: #022743;
  --teal: #009094;
  --teal-dark: #00777a;
  --ink: #222;
  --muted: #5e5e5e;
  --line: #e6e6e6;
  --soft: #f6f6f4;
  --sale: #c62828;
  --white: #fff;
  --radius: 10px;
  --gutter: 16px;
  --head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.bfs-locked { overflow: hidden; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
button, input, select, textarea { font: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 12px; }
.bfs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.bfs-btn, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--navy); color: var(--white) !important; text-decoration: none;
  font: 500 1rem/1 var(--head); letter-spacing: .02em; cursor: pointer;
}
.bfs-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover { background: var(--teal); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--navy); }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.disabled,
.woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled[disabled] { background: var(--navy); opacity: .45; color: var(--white); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--teal); }

/* ---------- top bar + header ---------- */
.bfs-topbar { background: var(--navy); color: var(--white); font-size: .8rem; }
.bfs-topbar .wrap { display: flex; justify-content: center; align-items: center; min-height: 32px; gap: 16px; }
.bfs-top-menu { display: none; list-style: none; margin: 0; padding: 0; gap: 14px; }
.bfs-top-menu a { color: var(--white); text-decoration: none; text-transform: uppercase; font-size: .72rem; }

.bfs-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bfs-header-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; min-height: 60px; gap: 8px; }
.bfs-logo { justify-self: center; }
.bfs-logo img { height: 44px; width: auto; }
.bfs-nav { display: none; }
.bfs-header-icons { display: flex; align-items: center; }
.bfs-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.bfs-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bfs-icon-btn:hover { color: var(--teal); }
.bfs-account { display: none; }
.bfs-cart-count { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--sale); color: var(--white); font: 700 11px/18px var(--body); text-align: center; }
.bfs-cart-count[hidden] { display: none; }
.bfs-search { border-top: 1px solid var(--line); padding: 10px 0; background: var(--white); }
.bfs-search form { display: flex; gap: 8px; }
.bfs-search input[type=search] { flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.bfs-search button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--navy); color: var(--white); }

/* menu (shared) */
.bfs-menu { list-style: none; margin: 0; padding: 0; }
.bfs-menu a { text-decoration: none; color: var(--ink); }
.bfs-menu .sale > a { color: var(--sale); }

/* drawer (mobile) */
.bfs-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); }
.bfs-drawer[hidden] { display: none; }
.bfs-drawer-panel { width: min(86vw, 360px); height: 100%; overflow-y: auto; background: var(--white); padding-bottom: 24px; }
.bfs-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px var(--gutter);
  border-bottom: 1px solid var(--line); font: 500 1.1rem var(--head); text-transform: uppercase; }
.bfs-drawer .bfs-menu > li { position: relative; border-bottom: 1px solid var(--line); }
.bfs-drawer .bfs-menu > li > a { display: block; padding: 14px 52px 14px var(--gutter); font: 500 1.05rem var(--head); text-transform: uppercase; }
.bfs-drawer .bfs-menu ul { list-style: none; margin: 0; padding: 0 0 8px; display: none; }
.bfs-drawer .bfs-menu li.open > ul { display: block; }
.bfs-drawer .bfs-menu ul a { display: block; padding: 10px var(--gutter) 10px 28px; color: var(--muted); }
.bfs-sub-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.bfs-drawer li.open > .bfs-sub-toggle svg { transform: rotate(180deg); }
.bfs-drawer-info { list-style: none; margin: 16px 0 0; padding: 0 var(--gutter); }
.bfs-drawer-info a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; }

/* ---------- main / content ---------- */
.bfs-main { min-height: 50vh; }
.bfs-content { padding-top: 16px; padding-bottom: 40px; }
.bfs-page-title { margin-top: 8px; }
.bfs-prose { max-width: 760px; }
.woocommerce-cart .bfs-prose, .woocommerce-checkout .bfs-prose, .woocommerce-account .bfs-prose { max-width: none; }
.bfs-prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.bfs-prose th, .bfs-prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.woocommerce-breadcrumb { font-size: .82rem; color: var(--muted); margin: 0 0 12px; overflow-x: auto; white-space: nowrap; }
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.woocommerce-breadcrumb .sep { margin: 0 6px; }

/* ---------- home ---------- */
.bfs-promo { background: #fde7cf; }
.bfs-promo-img { display: block; }
.bfs-promo-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bfs-promo-text { padding: 14px 0 18px; text-align: center; }
.bfs-promo-text .bfs-promo-title { margin: 0 0 12px; font: 500 1.3rem/1.2 var(--head); text-transform: uppercase; color: var(--navy); }
.bfs-promo-text .bfs-promo-title a { color: inherit; text-decoration: none; }
.bfs-hero { background: var(--white); padding: 28px 0 4px; text-align: center; }
.bfs-banners { display: grid; gap: 12px; }
.bfs-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; aspect-ratio: 676 / 431; }
.bfs-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bfs-banner:hover img { transform: scale(1.04); }
.bfs-banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: var(--white); font-size: .95rem;
  background: linear-gradient(transparent, rgba(2, 39, 67, .85)); }
.bfs-banner-text strong { display: block; font: 500 1.35rem var(--head); text-transform: uppercase; letter-spacing: .02em; }
.bfs-hero-kicker { margin: 0 0 6px; font: 500 .85rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); }
.bfs-hero h1 { font-size: 1.5rem; margin: 0 0 6px; color: var(--navy); }
.bfs-hero-text { max-width: 60ch; margin: 0 auto; color: #555; }
.bfs-section { padding-top: 32px; }
.bfs-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bfs-section-head a { font: 500 .95rem var(--head); text-decoration: none; }
.bfs-tiles-wrap { background: #fdf8ef; }
.bfs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; padding: 24px 0; }
.bfs-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; }
.bfs-tile-img { display: block; width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: transform .25s; }
.bfs-tile:hover .bfs-tile-img { transform: translateY(-3px); }
.bfs-tile img { width: 100%; height: 100%; object-fit: cover; }
.bfs-tile-label { font: 500 .95rem/1.2 var(--head); }
.bfs-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.bfs-brands a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink); }
.bfs-brands a:hover { border-color: var(--teal); color: var(--teal); }
.bfs-why { margin-top: 40px; padding: 32px 0; background: var(--soft); }
.bfs-why-grid { display: grid; gap: 16px; }
.bfs-why h3 { color: var(--navy); }
.bfs-why p { margin: 0; color: var(--muted); }

/* ---------- product grid ---------- */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; position: relative; }
.woocommerce ul.products li.product a img { width: 100%; height: auto; margin: 0 0 8px; border-radius: var(--radius); background: #fff; aspect-ratio: 1; object-fit: contain; }
.bfs-card-brand { display: block; font-size: .8rem; color: var(--muted); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 .98rem/1.3 var(--head); color: var(--ink); padding: 2px 0 4px; margin: 0; }
.woocommerce ul.products li.product .price { font: 500 1rem var(--head); color: var(--ink); }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 4px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--sale); }
.woocommerce span.onsale { position: absolute; top: 8px; left: 8px; right: auto; min-height: 0; min-width: 0; margin: 0; padding: 3px 8px;
  border-radius: 4px; background: var(--sale); color: var(--white); font: 500 .8rem/1.4 var(--head); z-index: 2; }
.woocommerce .woocommerce-result-count { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 0 10px; border: 1px solid #ccc; border-radius: 6px; background: var(--white); }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; }
.term-description { color: var(--muted); max-width: 760px; }

/* ---------- single product ---------- */
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; }
.woocommerce div.product div.images { margin-bottom: 16px; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--soft); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 64px !important; flex: 0 0 64px; }
.woocommerce div.product .product_title { font-size: 1.5rem; margin-bottom: 4px; }
.bfs-brand { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.woocommerce div.product p.price, .woocommerce div.product span.price { font: 500 1.5rem var(--head); color: var(--ink); }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: .7em; color: var(--muted); opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: var(--sale); }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 8px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations label { font: 500 1rem var(--head); text-transform: uppercase; }
.bfs-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.bfs-sizes button { min-width: 52px; min-height: 46px; padding: 0 10px; border: 1px solid #bbb; border-radius: 6px; background: var(--white); color: var(--ink); font: 500 1rem var(--head); cursor: pointer; }
.bfs-sizes button[aria-checked=true] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.bfs-sizes button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 4px; font-size: .85rem; }
.woocommerce div.product form.cart { display: block; margin-bottom: 16px; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; }
.woocommerce .quantity .qty { width: 64px; min-height: 48px; border: 1px solid #ccc; border-radius: 6px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; }
.woocommerce div.product .stock { font-size: .9rem; }
.woocommerce div.product .stock.in-stock { color: #2e7d32; }
.bfs-size-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #e8a33d; background: #fff8ec; font-size: .88rem; }
.bfs-cat-info { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.bfs-cat-info h2 { font-size: 1.4rem; }
.bfs-faq { margin-bottom: 20px; }
.bfs-faq details { border-bottom: 1px solid var(--line); }
.bfs-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.bfs-faq summary::-webkit-details-marker { display: none; }
.bfs-faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--teal); }
.bfs-faq details[open] summary::after { content: '−'; }
.bfs-faq p { margin: 0 0 14px; }
.bfs-cat-text { color: #555; font-size: .95rem; max-width: 80ch; }
.bfs-trust { list-style: none; margin: 16px 0; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); font-size: .92rem; }
.bfs-trust li { padding: 4px 0 4px 24px; position: relative; }
.bfs-trust li::before { content: '✓'; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.bfs-trust a, .bfs-return-note a { color: var(--teal-dark); font-weight: 600; }
.bfs-return-note { margin: 20px 0; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); font-size: .95rem; }
.woocommerce div.product .product_meta { font-size: .85rem; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; padding: 0; margin: 0 0 12px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 14px; font: 500 .95rem var(--head); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--navy); border-color: var(--navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--white); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; }
.woocommerce div.product .woocommerce-tabs .panel table { border-collapse: collapse; width: 100%; }
.woocommerce div.product .woocommerce-tabs .panel th, .woocommerce div.product .woocommerce-tabs .panel td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.related.products > h2, .upsells.products > h2 { margin-top: 32px; }

/* ---------- cart / checkout ---------- */
.woocommerce table.shop_table { border-radius: var(--radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container .select2-selection--single { min-height: 46px; border: 1px solid #ccc; border-radius: 6px; padding: 8px 12px; font-size: 16px; }
.woocommerce-checkout #payment { background: var(--soft); border-radius: var(--radius); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--teal); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--teal); }

/* ---------- footer ---------- */
.bfs-footer { margin-top: 48px; background: var(--navy); color: #dfe7ee; font-size: .92rem; }
.bfs-footer a { color: var(--white); }
.bfs-footer-grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.bfs-footer-title { font: 500 1.05rem var(--head); text-transform: uppercase; color: var(--white); margin: 0 0 8px; }
.bfs-footer-menu { list-style: none; margin: 0; padding: 0; }
.bfs-footer-menu a { display: inline-block; padding: 5px 0; text-decoration: none; }
.bfs-anpc a { display: block; padding: 4px 0; }
.bfs-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; padding-bottom: 18px; font-size: .8rem; color: #b9c6d2; }


/* ---------- product filters (like tipitoe.ro) ---------- */
.bfs-shop { position: relative; }
.bfs-shop.is-loading .bfs-results { opacity: .45; pointer-events: none; transition: opacity .15s; }
.bfs-shopbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0; margin: 0 0 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bfs-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink);
  border-radius: 999px; background: var(--white); color: var(--ink); font: 500 .95rem var(--body); cursor: pointer; }
.bfs-filter-toggle .bfs-ico { width: 20px; height: 20px; }
.bfs-filter-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bfs-filter-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sale); color: var(--white); font: 700 12px/20px var(--body); text-align: center; }
.bfs-shopbar .woocommerce-ordering { margin: 0; flex: 1 1 160px; float: none; }
.bfs-shopbar .woocommerce-ordering select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 999px; background: var(--white); font-size: 15px; }
.bfs-rescount { flex: 1 1 100%; order: 3; }
.bfs-rescount .woocommerce-result-count { float: none; margin: 0; color: #666; font-size: .88rem; }

.bfs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.bfs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #eef8f8;
  color: var(--navy); font-size: .88rem; text-decoration: none; border: 1px solid #cfe9e9; }
.bfs-chip span { font-size: 1.1rem; line-height: 1; color: var(--teal); }
.bfs-chip-clear { align-self: center; font-size: .88rem; color: var(--sale); }

/* panel: drawer on phones/tablets */
.bfs-filters { position: fixed; inset: 0 auto 0 0; z-index: 1001; width: min(92vw, 420px); background: var(--white);
  display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); }
.bfs-filters[data-open="true"] { transform: none; }
.bfs-filters:not([data-open="true"]) { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.bfs-filters-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 39, 67, .45); }
.bfs-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line);
  font: 500 1.2rem var(--head); text-transform: uppercase; }
.bfs-filter-form { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.bfs-filters-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.bfs-filters-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.bfs-filters-reset { font-size: .92rem; color: var(--ink); white-space: nowrap; }
.bfs-filters-apply { flex: 1; min-height: 48px; }

.bfs-fgroup { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; min-width: 0; }
.bfs-fgroup:last-child { border-bottom: 0; }
.bfs-fgroup legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font: 500 1rem var(--head); text-transform: uppercase; letter-spacing: .02em; }
.bfs-fopts { clear: both; display: flex; flex-direction: column; gap: 2px; }
.bfs-fopt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: .95rem; }
.bfs-fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bfs-fgroup--list .bfs-fopt::before { content: ''; flex: 0 0 20px; height: 20px; border: 1.5px solid #9aa3ab; border-radius: 4px; background: var(--white) center / 14px no-repeat; }
.bfs-fgroup--list .bfs-fopt:has(input:checked)::before { background-color: var(--teal); border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bfs-fopt:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
/* sizes = small boxes */
.bfs-fgroup--size .bfs-fopts { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.bfs-fgroup--size .bfs-fopt { justify-content: center; min-width: 48px; min-height: 44px; padding: 0 8px; border: 1px solid #c9d0d6; border-radius: 6px; font-size: .9rem; }
.bfs-fgroup--size .bfs-fopt:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* colours = round swatches */
.bfs-fgroup--colour .bfs-fopts { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.bfs-fgroup--colour .bfs-fopt { min-height: 0; }
.bfs-fgroup--colour .bfs-fname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bfs-swatch { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bfs-fgroup--colour .bfs-fopt:has(input:checked) .bfs-swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 2px var(--white), 0 0 0 4px var(--teal); }
/* price slider */
.bfs-price-label { clear: both; margin: 0 0 12px; font-size: .92rem; }
.bfs-range { --p1: 0%; --p2: 100%; position: relative; height: 28px; margin: 0 10px; }
.bfs-range::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #d9dee2 var(--p1), var(--teal) var(--p1), var(--teal) var(--p2), #d9dee2 var(--p2)); }
.bfs-range input { position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.bfs-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.bfs-range input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); cursor: pointer; }
.bfs-range input::-moz-range-track { background: none; }
.bfs-no-results { padding: 24px 0; }

@media (min-width: 700px) {
  .bfs-rescount { flex: 0 1 auto; order: 0; margin-left: auto; }
  .bfs-shopbar .woocommerce-ordering { flex: 0 1 280px; }
}
/* desktop: inline panel under the bar (tipitoe style) */
@media (min-width: 1024px) {
  .bfs-filters { position: static; width: auto; transform: none; box-shadow: none; display: none; margin: -14px 0 20px; border-bottom: 1px solid var(--line); }
  .bfs-filters[data-open="true"] { display: block; }
  .bfs-filters:not([data-open="true"]) { visibility: visible; }
  .bfs-filters-head, .bfs-filters-overlay { display: none !important; }
  .bfs-filters-body { overflow: visible; padding: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .bfs-fgroup { border-bottom: 0; }
  .bfs-fgroup--list .bfs-fopts { max-height: 280px; overflow-y: auto; }
  .bfs-fopt { min-height: 32px; }
  .bfs-fgroup--size .bfs-fopt { min-width: 42px; min-height: 36px; }
  .bfs-fgroup--colour .bfs-swatch { width: 28px; height: 28px; }
  .bfs-filters-foot { padding: 12px 0 16px; justify-content: flex-end; border-top: 0; }
  .bfs-filters-apply { display: none; }
}

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
  .bfs-tiles { grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 36px 0; }
  .bfs-tile-img { max-width: 160px; }
  .bfs-tile-label { font-size: 1.1rem; }
  .bfs-why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .bfs-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .bfs-hero { padding: 40px 0 8px; }
  .bfs-banners { grid-template-columns: 1fr 1fr; gap: 18px; }
  .bfs-promo { position: relative; }
  /* whole picture visible on big screens: height follows the screen, the sides take the banner's peach colour */
  .bfs-promo-img { background: linear-gradient(180deg, #fdeeda 0%, #fbe3c6 100%); }
  .bfs-promo-img picture { display: block; }
  .bfs-promo-img img { width: auto; max-width: 100%; max-height: min(calc(100vh - 130px), 860px); margin: 0 auto; object-fit: contain; }
  .bfs-promo-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 0 28px; background: linear-gradient(transparent, rgba(2, 39, 67, .75)); }
  .bfs-promo-text .bfs-promo-title { color: var(--white); font-size: 2rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
  .bfs-hero h1 { font-size: 2rem; }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  h1 { font-size: 2rem; }
  .bfs-topbar .wrap { justify-content: space-between; }
  .bfs-top-menu { display: flex; }
  .bfs-header-row { grid-template-columns: auto 1fr auto; min-height: 72px; gap: 24px; }
  .bfs-burger { display: none; }
  .bfs-account { display: inline-flex; }
  .bfs-logo { justify-self: start; }
  .bfs-logo img { height: 56px; }
  .bfs-nav { display: block; justify-self: center; }
  .bfs-nav .bfs-menu { display: flex; gap: 4px; }
  .bfs-nav .bfs-menu > li { position: relative; }
  .bfs-nav .bfs-menu > li > a { display: block; padding: 24px 10px; font: 400 .95rem var(--head); text-transform: uppercase; letter-spacing: .02em; }
  .bfs-nav .bfs-menu > li > a:hover { color: var(--teal); }
  .bfs-nav .bfs-menu ul { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
    background: var(--white); border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
  .bfs-nav .bfs-menu li:hover > ul, .bfs-nav .bfs-menu li:focus-within > ul { display: block; }
  .bfs-nav .bfs-menu ul a { display: block; padding: 8px 16px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
  .woocommerce div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 48px; }
  .woocommerce div.product > .woocommerce-tabs, .woocommerce div.product > .related, .woocommerce div.product > .upsells { grid-column: 1 / -1; }
  .woocommerce div.product .product_title { font-size: 2rem; }
  .bfs-content { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- size guide ("Tabel mărimi") ---------- */
.bfs-sg-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 6px; }
.bfs-sg-open, .bfs-sg-measure { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; background: none; border: 0; color: var(--navy); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,144,148,.45); cursor: pointer; }
.bfs-sg-open svg, .bfs-sg-measure svg { color: var(--teal); flex: none; }
.bfs-sg-open:hover, .bfs-sg-measure:hover { color: var(--teal); }
.bfs-size-note { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }

.bfs-sg { border: 0; padding: 0; width: min(560px, 100%); max-height: min(88vh, 760px); border-radius: 16px; box-shadow: 0 20px 60px rgba(2,39,67,.25); color: inherit; background: var(--white, #fff); }
.bfs-sg::backdrop { background: rgba(2,39,67,.45); }
.bfs-sg[open] { display: flex; flex-direction: column; }
.bfs-sg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.bfs-sg-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: var(--teal); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.bfs-sg-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.bfs-sg-close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--navy); cursor: pointer; }
.bfs-sg-body { padding: 14px 18px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bfs-sg-calc { background: linear-gradient(135deg, #e8f6f6, #f6f6f4); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.bfs-sg-calc label { display: block; font-weight: 700; margin-bottom: 6px; }
.bfs-sg-input { display: flex; align-items: center; max-width: 220px; background: #fff; border: 2px solid var(--teal); border-radius: 10px; overflow: hidden; }
.bfs-sg-input input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-size: 1.1rem; font-weight: 600; outline: none; background: transparent; }
.bfs-sg-input span { padding: 0 12px; color: var(--muted); font-weight: 600; }
.bfs-sg-result { margin: 10px 0 0; font-size: .93rem; line-height: 1.5; }
.bfs-sg-big { display: inline-block; min-width: 2.2em; padding: 0 .35em; border-radius: 6px; background: var(--teal); color: #fff; text-align: center; font-size: 1.1rem; }
.bfs-sg-pick { display: inline-block; margin-top: 8px; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.bfs-sg-pick:hover { background: var(--teal); }
.bfs-sg-warn { color: #a33; font-weight: 600; }
.bfs-sg-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bfs-sg-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.bfs-sg-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.bfs-sg-table tr.is-in { cursor: pointer; }
.bfs-sg-table tr.is-in:hover td { background: #f1fafa; }
.bfs-sg-table tr.is-out td, .bfs-sg-table tr.is-na td { color: #9a9a9a; }
.bfs-sg-table tr.is-sel td { background: #e8f6f6; }
.bfs-sg-table tr.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.bfs-sg-table tr.is-rec td { background: #dff3f3; font-weight: 600; }
.bfs-sg-table tr.is-rec td:first-child { box-shadow: inset 4px 0 0 var(--teal); }
.bfs-sg-st { text-align: right; white-space: nowrap; font-size: .8rem; }
.bfs-sg-st .ok { color: var(--teal-dark); font-weight: 700; }
.bfs-sg-st .no { color: #9a9a9a; }
.bfs-sg-tip { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.bfs-sg-note { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: .9rem; }
.bfs-sg-note summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.bfs-sg-note > div { padding-bottom: 8px; }
@media (max-width: 640px) {
  .bfs-sg { width: 100%; max-width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .bfs-sg[open] { animation: bfs-sg-up .22s ease-out; }
  .bfs-sg-head { padding: 14px 16px 10px; }
  .bfs-sg-body { padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
  .bfs-sg-table td { padding: 11px 6px; }
}
@keyframes bfs-sg-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- page "Cum măsurăm piciorul?" ---------- */
.bfs-lead { font-size: 1.05rem; }
.bfs-checks { list-style: none; padding: 0; }
.bfs-checks li { position: relative; padding: 6px 0 6px 28px; }
.bfs-checks li::before { content: '✓'; position: absolute; left: 4px; top: 6px; color: var(--teal); font-weight: 700; }
.bfs-steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; display: grid; gap: 18px; }
.bfs-steps li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 18px; align-items: center; background: var(--soft); border-radius: 14px; padding: 14px; }
.bfs-steps img { width: 100%; height: auto; border-radius: 10px; display: block; }
.bfs-steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.bfs-steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .9rem; vertical-align: middle; }
.bfs-steps p { margin: 0; }
.bfs-figure { margin: 0 0 12px; max-width: 420px; }
.bfs-figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.bfs-example { border-left: 4px solid var(--teal); background: #e8f6f6; border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 20px; }
.bfs-example p { margin: 6px 0; }
@media (max-width: 640px) {
  .bfs-steps li { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- product list toolbar (v2) ---------- */
.bfs-shopbar { display: flex; flex-direction: column; gap: 10px; padding: 10px; margin: 0 0 16px; border: 0; background: var(--soft); border-radius: 14px; }
.bfs-shopbar-main { display: flex; gap: 8px; align-items: stretch; }
.bfs-shopbar .bfs-filter-toggle { flex: 0 0 auto; min-height: 46px; padding: 0 18px; border: 0; background: var(--navy); color: var(--white); font-weight: 600; box-shadow: 0 2px 6px rgba(2,39,67,.18); }
.bfs-shopbar .bfs-filter-toggle:hover { background: var(--teal); }
.bfs-shopbar .bfs-filter-toggle[aria-expanded="true"] { background: var(--teal); }
.bfs-shopbar .bfs-filter-badge { background: var(--white); color: var(--navy); }
.bfs-sort { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.bfs-sort > .bfs-ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--teal); pointer-events: none; }
.bfs-shopbar .bfs-sort .woocommerce-ordering { flex: 1; margin: 0; float: none; }
.bfs-shopbar .bfs-sort .woocommerce-ordering select { width: 100%; min-height: 46px; padding: 0 38px 0 40px; border: 0; border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23022743' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; -webkit-appearance: none; appearance: none; font: 500 15px var(--body); color: var(--ink); cursor: pointer; }
.bfs-shopbar-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.bfs-shopbar .bfs-rescount { margin: 0; font-size: .9rem; color: var(--muted); flex: none; order: 0; }
.bfs-shopbar .bfs-rescount strong { color: var(--ink); }
.bfs-shopbar .bfs-rescount span { color: var(--muted); }
.bfs-pp { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.bfs-pp select { min-height: 34px; padding: 0 28px 0 12px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23022743' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center / 13px; -webkit-appearance: none; appearance: none; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
@media (min-width: 900px) {
  .bfs-shopbar { flex-direction: row; align-items: center; justify-content: space-between; padding: 8px; }
  .bfs-shopbar-main { flex: 0 1 560px; }
  .bfs-shopbar .bfs-sort { flex: 0 1 280px; }
  .bfs-shopbar-meta { gap: 20px; padding: 0 10px 0 0; }
}

/* sizes under the product name */
.bfs-card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.bfs-card-sizes span { min-width: 26px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; font-size: .74rem; line-height: 1.5; text-align: center; color: #444; background: var(--white); }
.bfs-card-sizes .more { border-style: dashed; color: var(--muted); }

/* favourites */
.bfs-wl { display: inline-grid; place-items: center; border: 0; cursor: pointer; color: var(--navy); background: none; padding: 0; }
.bfs-wl .bfs-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .15s, transform .15s; }
.bfs-wl[aria-pressed="true"] { color: var(--sale); }
.bfs-wl[aria-pressed="true"] .bfs-ico { fill: currentColor; }
.bfs-wl.pop .bfs-ico { animation: bfs-pop .35s ease; }
@keyframes bfs-pop { 40% { transform: scale(1.3); } }
.bfs-wl-card { position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.bfs-wl-card:hover { color: var(--sale); }
.woocommerce ul.products li.product .onsale { left: 8px; right: auto; }
.bfs-wl-row { margin: 4px 0 14px; }
.bfs-wl-single { gap: 8px; grid-auto-flow: column; padding: 8px 0; font: 600 .95rem var(--body); }
.bfs-wl-single .bfs-wl-label { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(2,39,67,.3); }
.bfs-wl-head .bfs-ico { fill: none; }
.bfs-wl-empty { text-align: center; padding: 30px 16px 40px; }
.bfs-wl-empty > .bfs-ico { width: 54px; height: 54px; fill: none; stroke: var(--teal); stroke-width: 1.5; }
.bfs-wl-count { color: var(--muted); }
.bfs-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--white); font-size: .93rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; }
.bfs-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bfs-toast a { color: #7fe0e2; font-weight: 600; margin-left: 6px; }

/* "Reduceri" in the menu: outlined accent (like "Lichidare stoc") */
.bfs-menu .sale > a span { display: inline-block; padding: 6px 14px; border: 2px solid var(--sale); border-radius: 999px; color: var(--sale); font-weight: 600; line-height: 1.1; }
.bfs-menu .sale > a:hover span { background: var(--sale); color: var(--white); }
@media (min-width: 1024px) {
  .bfs-nav .bfs-menu > li.sale { margin-left: 10px; }
  .bfs-nav .bfs-menu > li.sale > a { padding: 17px 4px; }
}
.bfs-drawer .bfs-menu > li.sale { border-bottom: 0; padding: 14px var(--gutter); }
.bfs-drawer .bfs-menu > li.sale > a { padding: 0; }
.bfs-drawer .bfs-menu > li.sale > a span { display: block; text-align: center; padding: 11px 14px; background: var(--sale); color: var(--white); }

/* ---------- brand tiles (page /brand/ and home) ---------- */
.bfs-brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 24px; }
.bfs-brand-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; color: var(--ink); text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bfs-brand-tile:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(2,39,67,.08); transform: translateY(-2px); color: var(--ink); }
.bfs-brand-icon { display: grid; place-items: center; width: 100%; height: 64px; }
.bfs-brand-logo { max-width: 120px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.bfs-brand-mono { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--bc) 12%, #fff); color: var(--bc); border: 2px solid color-mix(in srgb, var(--bc) 35%, #fff); font: 600 1.35rem/1 var(--head); letter-spacing: .02em; }
.bfs-brand-name { font: 500 1rem/1.2 var(--head); }
.bfs-brand-count { font-size: .78rem; color: var(--muted); }
@media (min-width: 640px) { .bfs-brand-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .bfs-brand-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- WhatsApp chat ---------- */
.bfs-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bfs-wa-btn { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s; }
.bfs-wa-btn:hover { transform: scale(1.06); }
.bfs-wa-card { width: min(320px, calc(100vw - 32px)); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.22); animation: bfs-wa-in .2s ease-out; }
.bfs-wa-card[hidden] { display: none; }
@keyframes bfs-wa-in { from { opacity: 0; transform: translateY(10px); } }
.bfs-wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #25d366; color: #fff; }
.bfs-wa-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.bfs-wa-head span { font-size: .78rem; opacity: .9; }
.bfs-wa-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.25); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bfs-wa-body { padding: 16px 14px; background: #efeae2; }
.bfs-wa-bubble { position: relative; margin: 0; max-width: 92%; padding: 10px 12px; border-radius: 0 12px 12px 12px; background: #fff; font-size: .93rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bfs-wa-go { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px; padding: 11px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 700; text-decoration: none; }
.bfs-wa-go svg { width: 22px; height: 22px; }
.bfs-wa-go:hover { background: #1ebe5a; }
.bfs-toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ---------- cookie notice ---------- */
.bfs-ck { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1600; max-width: 560px; padding: 16px 16px 14px; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 12px 40px rgba(2,39,67,.25); border: 1px solid var(--line); }
.bfs-ck[hidden] { display: none; }
.bfs-ck-t { margin: 0 0 4px; font: 600 1.1rem var(--head); color: var(--navy); }
.bfs-ck-txt { margin: 0 0 12px; font-size: .88rem; line-height: 1.5; color: #444; }
.bfs-ck-txt a { color: var(--teal-dark); font-weight: 600; }
.bfs-ck-set { display: grid; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: .86rem; }
.bfs-ck-set[hidden] { display: none; }
.bfs-ck-opt { display: flex; gap: 8px; align-items: flex-start; }
.bfs-ck-opt input { margin-top: 3px; accent-color: var(--teal); }
.bfs-ck-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bfs-ck-b { flex: 1 1 auto; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 600 .92rem var(--body); cursor: pointer; }
.bfs-ck-all, .bfs-ck-save { background: var(--navy); color: var(--white); }
.bfs-ck-all:hover, .bfs-ck-save:hover { background: var(--teal); border-color: var(--teal); }
.bfs-ck-link { flex: 0 0 auto; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.bfs-ck-b[hidden] { display: none; }
@media (min-width: 700px) { .bfs-ck { left: 20px; right: auto; bottom: 20px; } }
body.bfs-ck-on .bfs-wa { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 699px) { body.bfs-ck-on .bfs-wa { display: none; } }
.bfs-footer-bottom .bfs-ck-open { margin-left: 12px; color: inherit; opacity: .85; }

/* ---------- landing pages, FAQ, blog ---------- */
.bfs-landing-products { margin: 18px 0 8px; }
.bfs-landing-more { text-align: center; margin: 0 0 28px; }
.bfs-landing-empty { padding: 16px; background: var(--soft); border-radius: 12px; }
.bfs-faq { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; background: var(--white); }
.bfs-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bfs-faq summary::-webkit-details-marker { display: none; }
.bfs-faq summary::after { content: '+'; color: var(--teal); font-size: 1.3rem; line-height: 1; position: static; flex-shrink: 0; }
.bfs-faq[open] summary::after { content: '–'; }
.bfs-faq > div { padding: 0 0 14px; color: #444; }
.bfs-related { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.bfs-related a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; }
.bfs-related a:hover { border-color: var(--teal); color: var(--teal); }
.bfs-sub-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.bfs-blog-lead { color: var(--muted); max-width: 60ch; }
.bfs-blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 18px 0 28px; }
.bfs-card-post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.bfs-card-post-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bfs-card-post h2 { font-size: 1.15rem; margin: 14px 16px 6px; line-height: 1.3; }
.bfs-card-post h2 a { text-decoration: none; color: var(--navy); }
.bfs-card-post p { margin: 0 16px 16px; color: #555; font-size: .93rem; }
@media (min-width: 700px) { .bfs-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.bfs-post-meta { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.bfs-post-meta a { color: var(--teal-dark); }
.bfs-post-image { margin: 0 0 20px; }
.bfs-post-image img { width: 100%; height: auto; border-radius: 14px; display: block; }
.bfs-prose .bfs-tip { background: #e8f6f6; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.bfs-cat-links { margin: -4px 0 16px; }

/* EUShipments Lite return form – shop colours (the plugin has neutral defaults). */
.eusl-rr { --eusl-primary: var(--navy); --eusl-accent: var(--teal); --eusl-text: var(--ink); --eusl-muted: var(--muted); --eusl-border: var(--line); --eusl-surface: var(--soft); --eusl-error: var(--sale); --eusl-radius: var(--radius); }

/* description tables: row headers added by inc/shop-ui.php */
.woocommerce-Tabs-panel--description th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
