/*
Theme Name: Bowlful
Author: Alex
Description: A playful WooCommerce block theme for pet food shops. Kraft paper and tomato colours, a chunky display face, hand-written notes, stickers, a sentence-style food finder, shelves for bestsellers, a feeding calculator and filters by pet, life stage and protein. Built with core and WooCommerce blocks and editable in the Site Editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Requires Plugins: woocommerce
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bowlful
Tags: e-commerce, shop, woocommerce, full-site-editing, block-patterns, wide-blocks, custom-colors, translation-ready
*/

/* ---------- base ---------- */
:root { --bf-bg: #fcf5e8; --bf-panel: #fffdf8; --bf-line: #e4d3b1; --bf-line-2: #d3bf98; --bf-strong: #1d2340; --bf-text: #3a3f5c; --bf-tint: rgba(29, 35, 64, 0.06); --bf-tint-2: rgba(29, 35, 64, 0.12); --bf-bar: #fcf5e8; --bf-media: #f3e6cb; --bf-forest: #1d2340; --bf-clay: #b8321e; --bf-r: 14px; --bf-ink: #1d2340; --bf-tomato: #cf3a24; --bf-mustard: #f5b83d; --bf-sky: #bfe0f5; --bf-leaf: #cde5ad; --bf-pink: #f6c9c0; --bf-sand: #f5b83d; --bf-sage: #cfe7f7; --bf-blush: #d9ebc2; --bf-shadow: 0 24px 50px -30px rgba(29, 35, 64, 0.35); --bf-glow: rgba(245, 184, 61, 0.6); --bf-glow-2: rgba(245, 184, 61, 0.4); --bf-foot: #1d2340; --bf-float: rgba(255, 253, 248, 0.92); color-scheme: light; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bf-bg); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; background: var(--bf-bg); }
img, video { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--wp--preset--color--primary-light); outline-offset: 3px; }
mark.has-inline-color { padding: 0; }
::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* ---------- buttons and chips ---------- */
.wp-block-button__link, .single_add_to_cart_button { box-shadow: 0 10px 22px -12px rgba(29, 35, 64, 0.7); font-weight: 800; transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-ghost .wp-block-button__link { background: #fff; background-image: none; box-shadow: none; color: var(--wp--preset--color--primary); border: 1.5px solid var(--wp--preset--color--primary-light); }
.is-style-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.is-style-light .wp-block-button__link { background: #fff; background-image: none; color: var(--wp--preset--color--primary); box-shadow: none; }
.is-style-eyebrow { font: 800 0.78rem/1 var(--wp--preset--font-family--sans); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1rem; color: var(--wp--preset--color--primary); }
.is-style-pill { display: inline-block; margin: 0 0 1.2rem !important; padding: 0.4rem 1rem; border-radius: var(--bf-r); border: 1.5px solid var(--wp--preset--color--primary-light); background: #fff; font-size: 0.8125rem; font-weight: 800; color: var(--wp--preset--color--primary); }
.bf-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 44rem; }
.is-style-ticks { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin: 1.4rem 0 1.8rem; color: var(--wp--preset--color--muted); }
.is-style-ticks li { position: relative; padding-left: 1.9rem; }
.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(29, 35, 64, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%23c93b63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bf-chip { padding: 0.5rem 1.05rem; border-radius: var(--bf-r); border: 1.5px solid var(--bf-line-2); background: #fff; color: var(--wp--preset--color--muted); font-size: 0.875rem; font-weight: 700; }
.bf-chip:hover { border-color: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary); }
.bf-chip.is-active { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }

/* ---------- panels and sections ---------- */
.is-style-panel, .bf-panel { background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: clamp(1.25rem, 2.6vw, 2rem); }
.is-style-panel-glow { background: radial-gradient(70% 90% at 50% 0%, var(--bf-glow-2), transparent 70%), var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: clamp(1.5rem, 4vw, 3.5rem); overflow: hidden; position: relative; }
.bf-section { padding-block: var(--wp--preset--spacing--70); }
.bf-head { padding-bottom: var(--wp--preset--spacing--50); gap: 1rem 2rem !important; }
.bf-head h2 { margin: 0; max-width: 18ch; }
.bf-head p { margin: 0; font-size: 0.9375rem; }
.bf-head p a { color: var(--wp--preset--color--contrast); display: inline-flex; padding: 0.25rem 0; border-bottom: 1px solid var(--bf-line-2); }
.bf-head p a:hover { border-color: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary-light); }
.bf-hint { display: none; }
@media (max-width: 800px) { .bf-hint { display: block; color: var(--wp--preset--color--subtle); } }

/* ---------- page headers and shop ---------- */
.bf-pagehead { position: relative; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 3vw, 2rem); isolation: isolate; text-align: left; }
.bf-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 100% at 50% 0%, var(--bf-glow), transparent 100%); }
.bf-pagehead .wp-block-post-title, .bf-pagehead .wp-block-query-title { margin: 0.4rem 0 0; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.bf-pagehead .wp-block-term-description { color: var(--wp--preset--color--muted); max-width: 40rem; }
.wc-block-components-breadcrumbs, .woocommerce-breadcrumb { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--muted); }
.bf-toolbar { padding-block: 1rem 1.6rem; gap: 1rem !important; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bf-chip { padding: 0.5rem 1rem; border-radius: var(--bf-r); border: 1px solid var(--bf-line-2); font-size: 0.875rem; font-weight: 500; color: var(--wp--preset--color--muted); transition: background 0.2s, color 0.2s; }
.bf-chip:hover { color: var(--bf-strong); background: var(--bf-tint-2); }
.bf-chip.is-active { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.bf-toolbar .woocommerce-result-count, .bf-toolbar .wc-block-product-results-count { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--subtle); }
.bf-toolbar select, .woocommerce select, .wc-block-components-select select { background: var(--bf-panel); color: var(--bf-strong); border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); padding: 0.5rem 1rem; font: 500 0.875rem var(--wp--preset--font-family--sans); }

/* ---------- product page ---------- */
.bf-crumbs { padding-block: 1.2rem 0; }
.bf-pdp { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70); }
.bf-pdp-media .wp-block-woocommerce-product-image-gallery, .bf-pdp-media .woocommerce-product-gallery { width: 100% !important; max-width: none; float: none; margin: 0; }
.bf-pdp-media .woocommerce-product-gallery__wrapper { border: 1px solid var(--bf-line); border-radius: var(--bf-r); overflow: hidden;  }
.bf-pdp-media .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; border-radius: 0; }
.bf-pdp-media .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin: 0.8rem 0 0 !important; padding: 0; list-style: none; }
.bf-pdp-media .flex-control-thumbs img { border: 1px solid var(--bf-line); border-radius: var(--bf-r); opacity: 0.65; cursor: pointer; }
.bf-pdp-media .flex-control-thumbs img.flex-active, .bf-pdp-media .flex-control-thumbs img:hover { opacity: 1; border-color: var(--wp--preset--color--primary-light); }
.bf-pdp-buy { position: sticky; top: 96px; align-self: flex-start; }
.bf-pdp-buy .wp-block-post-title { margin: 0 0 0.6rem; font-size: clamp(2rem, 4vw, 3rem); }
.bf-pdp-buy .wc-block-components-product-price { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; color: var(--bf-strong); }
.bf-pdp-buy .wc-block-components-product-price del { color: var(--wp--preset--color--subtle); font-size: 1.1rem; }
.bf-pdp-buy .wc-block-components-product-price ins { text-decoration: none; }
.bf-pdp-buy .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.bf-pdp-buy .star-rating, .wc-block-components-product-rating__stars { color: #b8321e; }
.single_add_to_cart_button, .wc-block-components-button:not(.is-link) { background-color: var(--wp--preset--color--primary) !important; color: #fff !important; border-radius: var(--bf-r) !important; font-weight: 600 !important; padding: 0.95em 1.7em !important; border: 0 !important; }
.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background-color: #b8321e !important; }
.bf-pdp-buy form.cart { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0; align-items: stretch; }
.quantity .qty { background: var(--bf-panel); color: var(--bf-strong); border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); padding: 0.85rem 0.6rem; width: 4.4rem; font-weight: 600; text-align: center; }
.bf-pdp-buy table.variations { width: 100%; border: 0; }
.bf-pdp-buy table.variations th { text-align: left; font-size: 0.8125rem; color: var(--wp--preset--color--muted); padding-bottom: 0.4rem; }
.bf-pdp-buy table.variations select { width: 100%; }
.bf-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0 0 1.4rem; }
.bf-perks p { margin: 0; padding: 0.8rem 0.5rem; text-align: center; font-size: 0.8125rem; color: var(--wp--preset--color--muted); border: 1px solid var(--bf-line); border-radius: var(--bf-r); background: var(--bf-panel); }
.bf-acc { border-top: 1px solid var(--bf-line); padding: 0.95rem 0; margin: 0 !important; }
.bf-acc:last-of-type { border-bottom: 1px solid var(--bf-line); margin-bottom: 1.2rem !important; }
.bf-acc summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.bf-acc summary::-webkit-details-marker { display: none; }
.bf-acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--wp--preset--color--primary-light); }
.bf-acc[open] summary::after { content: "–"; }
.bf-acc p { color: var(--wp--preset--color--muted); margin-top: 0.6rem; }
.wc-block-product-sku, .wp-block-woocommerce-product-meta { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.wc-tabs { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 1.5rem; border: 0; flex-wrap: wrap; }
.wc-tabs li a { display: block; padding: 0.55rem 1.1rem; border-radius: var(--bf-r); border: 1px solid var(--bf-line-2); color: var(--wp--preset--color--muted); font-size: 0.875rem; font-weight: 500; }
.wc-tabs li.active a, .wc-tabs li.active a:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff !important; }
.wp-block-woocommerce-product-details { color: var(--wp--preset--color--muted); }
.wp-block-woocommerce-product-details h2 { font-size: 1.6rem; }
@media (max-width: 781px) { .bf-pdp-buy { position: static; } }

/* ---------- cart, checkout, account, forms ---------- */
.wc-block-cart, .wc-block-checkout, .woocommerce-account .woocommerce { padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], textarea, .wc-block-components-text-input input, .woocommerce form .form-row input.input-text { background: var(--bf-panel) !important; color: var(--bf-strong) !important; border: 1px solid var(--bf-line-2) !important; border-radius: var(--bf-r) !important; }
.wc-block-components-text-input label, .wc-block-components-form .wc-block-components-text-input.is-active label { color: var(--wp--preset--color--subtle) !important; }
.wc-block-components-totals-wrapper, .wc-block-cart-items, .wc-block-cart-items__row { border-color: var(--bf-line) !important; }
.wp-block-woocommerce-cart-order-summary-block, .wc-block-components-order-summary, .wp-block-woocommerce-checkout-order-summary-block { background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: 1.2rem !important; }
.wc-block-components-product-name, .wc-block-components-totals-item__label, .wc-block-formatted-money-amount { color: var(--bf-strong); }
.wc-block-components-radio-control__option, .wc-block-components-checkbox { color: var(--wp--preset--color--muted); }
.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info { border-radius: var(--bf-r) !important; background: var(--bf-panel) !important; color: var(--bf-strong) !important; border: 1px solid var(--bf-line-2) !important; }
.wc-block-components-quantity-selector { border-radius: var(--bf-r); border-color: var(--bf-line-2); background: var(--bf-panel); }
.wc-block-components-quantity-selector input { color: var(--bf-strong); background: transparent !important; border: 0 !important; }

/* ---------- posts and pages ---------- */
.wp-block-post-featured-image img { border-radius: var(--bf-r); border: 1px solid var(--bf-line); }
.wp-block-search__inside-wrapper { border-radius: var(--bf-r); }
.wp-block-query-pagination a { color: inherit; }
.wp-block-post-title a { color: var(--bf-strong); }
.wp-block-post-date, .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.bf-big { font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; margin: 0; color: var(--wp--preset--color--subtle); }

.woocommerce span.onsale, .onsale { background: rgba(29, 35, 64, 0.16) !important; color: #fb923c !important; border: 1px solid rgba(29, 35, 64, 0.45); border-radius: var(--bf-r) !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 0.4rem 0.8rem !important; top: 1rem !important; left: 1rem !important; right: auto !important; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-tabs::before, .wc-tabs li::before, .wc-tabs li::after { display: none !important; border: 0 !important; }
.wc-tabs li { background: none !important; border: 0 !important; }
.wc-tabs li a { text-decoration: none; }

/* ---------- journal and articles ---------- */
.bf-pagehead h1, .bf-pagehead .wp-block-post-title, .bf-pagehead .wp-block-query-title { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.3rem 0 0; }
.bf-sub { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--large); max-width: 38rem; margin: 0.9rem 0 0; }
.bf-section { padding-block: var(--wp--preset--spacing--60); }
.bf-posts .wp-block-post-template { gap: 1rem; margin: 0; padding: 0; }
.bf-post { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7rem 0.7rem 1.3rem !important; height: 100%; transition: border-color 0.25s, transform 0.25s; }
.bf-post:hover { border-color: var(--bf-line-2); transform: translateY(-3px); }
.bf-post .wp-block-post-featured-image { margin: 0 0 0.6rem; border-radius: var(--bf-r); overflow: hidden; }
.bf-post .wp-block-post-featured-image img { border: 0; border-radius: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-post > :not(.wp-block-post-featured-image) { margin-inline: 0.5rem; }
.bf-post .wp-block-post-title { margin-block: 0; font-size: 1.2rem !important; line-height: 1.25; letter-spacing: -0.02em; }
.bf-post .wp-block-post-date { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.bf-post .wp-block-post-excerpt { font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin-block: 0; }
.bf-post .wp-block-post-excerpt__more-link { display: none; }
.bf-posts .wp-block-query-pagination { padding-top: var(--wp--preset--spacing--50); gap: 0.4rem; font-weight: 600; justify-content: center; }
.bf-posts .wp-block-query-pagination a, .bf-posts .page-numbers { padding: 0.45rem 0.85rem; border-radius: var(--bf-r); color: var(--wp--preset--color--muted); }
.bf-posts .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; }
.bf-byline { color: var(--wp--preset--color--subtle); font-size: 0.875rem; margin-top: 0.8rem; }
.bf-article-head .wp-block-post-title { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 22ch; }
.bf-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--bf-text); }
.bf-prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.bf-prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.bf-prose a { text-decoration: underline; text-underline-offset: 3px; }
.bf-prose .wp-block-post-featured-image { margin-bottom: 1.6rem; }
.wp-block-post-navigation-link { font-size: 0.9375rem; }
@media (max-width: 900px) { .bf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bf-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- shop pages: titles, notices and a footer that stays at the bottom ---------- */
h1.wp-block-post-title, h1.wp-block-query-title { font-size: clamp(2rem, 4.4vw, 3rem); }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > footer { margin-top: auto; }
.wp-site-blocks > main.wp-block-group:not(.alignfull), .wp-block-woocommerce-page-content-wrapper > main { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button, .wc-block-components-notice-banner .wc-forward, .wc-block-components-notice-banner a.button { float: none; order: 3; margin-left: auto; padding: 0.5em 1.1em !important; border-radius: var(--bf-r) !important; background: var(--wp--preset--color--primary) !important; color: #fff !important; font-size: 0.8125rem !important; font-weight: 600; text-decoration: none; }
.woocommerce-message, .woocommerce-info { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.woocommerce-message::before, .woocommerce-info::before { position: static !important; flex: none; }
.wc-block-components-notice-banner { align-items: center; }
.wc-block-components-notice-banner__content { color: var(--bf-strong); }

/* checkout header, confirmation page and selects */
.bf-secure { margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--subtle); display: inline-flex; align-items: center; gap: 0.45rem; }
.bf-secure::before { content: ""; width: 0.95rem; height: 0.95rem; background: var(--wp--preset--color--primary-light); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-woocommerce-cart-link, .wc-block-cart-link, .wp-block-woocommerce-cart-link a { color: var(--wp--preset--color--muted); }
[class*="order-confirmation"] h2, .woocommerce-order h2, .woocommerce-account h2 { font-size: 1.5rem; margin-top: 2rem; }
.wc-block-order-confirmation-summary { padding: 1.2rem 1.4rem; border: 1px solid var(--bf-line); border-radius: var(--bf-r); background: var(--bf-panel); }
.wc-block-order-confirmation-totals table, .wc-block-order-confirmation-billing-address, .wc-block-order-confirmation-shipping-address, .woocommerce-table, .woocommerce-orders-table { border-radius: var(--bf-r); overflow: hidden; border-color: var(--bf-line); }
.wc-block-order-confirmation-totals table td, .wc-block-order-confirmation-totals table th, .woocommerce-table td, .woocommerce-table th { border-color: var(--bf-line); }
.wc-blocks-components-select__container { background: var(--bf-panel) !important; border: 1px solid var(--bf-line-2) !important; border-radius: var(--bf-r) !important; box-shadow: none !important; }
.wc-blocks-components-select__select { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option-layout { border-color: var(--bf-line-2) !important; border-radius: var(--bf-r); }
.wc-block-components-notice-banner button, .wc-block-components-notice-banner__dismiss { color: var(--bf-strong) !important; background: none !important; box-shadow: none !important; }

/* ---------- sticky header and aligned icons ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
.bf-bar { position: relative; }
.bf-bar > .wp-block-group { align-items: center; }
.bf-actions { align-items: center !important; gap: 0.3rem !important; }
.bf-actions > * { margin: 0 !important; display: flex; align-items: center; }
.bf-actions .bf-mode, .bf-actions .wp-block-search__button, .bf-actions .wc-block-customer-account a { width: 2.5rem; height: 2.5rem; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--wp--preset--color--muted); line-height: 1; }
.bf-actions .bf-mode { border-color: var(--bf-line-2); background: var(--bf-tint); }
.bf-actions .wp-block-search__button:hover, .bf-actions .wc-block-customer-account a:hover { background: var(--bf-tint-2); color: var(--bf-strong); }
.bf-actions .wp-block-search { width: auto; }
.bf-actions .wp-block-search__inside-wrapper { min-width: 0; padding: 0; border: 0; }
.bf-actions svg, .bf-actions .wc-block-customer-account__account-icon { width: 1.25rem; height: 1.25rem; display: block; }
.bf-actions .bf-mode svg { width: 1.1rem; height: 1.1rem; }
.bf-actions .wp-block-woocommerce-mini-cart, .bf-actions .wc-block-mini-cart { display: flex; align-items: center; }
.bf-actions .wc-block-mini-cart__button { height: 2.5rem; padding: 0 0.95rem 0 0.8rem !important; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); background: var(--bf-tint); color: var(--bf-strong); font-size: 0.875rem; font-weight: 600; line-height: 1; }
.bf-actions .wc-block-mini-cart__button:hover { background: var(--bf-tint-2); }
.bf-actions .wc-block-mini-cart__amount { font-variant-numeric: tabular-nums; }
.bf-actions .wc-block-mini-cart__quantity-badge { display: inline-flex; align-items: center; position: relative; }
.bf-actions .wc-block-mini-cart__badge { top: -0.7rem; right: -0.75rem; }
@media (max-width: 700px) { .bf-actions .wc-block-mini-cart__amount { display: none; } .bf-actions .wc-block-mini-cart__button { padding: 0 0.7rem !important; } }

/* ---------- shop filters ---------- */
.bf-shop-cols { align-items: flex-start; }
.bf-side { position: sticky; top: 96px; align-self: flex-start; }
.admin-bar .bf-side { top: 128px; }
.bf-filters { display: grid; gap: 0; background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: 0.4rem 1.2rem 1.2rem; }
.bf-filters-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 0.6rem; }
.bf-filters-head strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.bf-clear { font-size: 0.8125rem; color: var(--wp--preset--color--primary-light); }
.bf-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-bottom: 0.8rem; }
.bf-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.65rem; border-radius: var(--bf-r); background: color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent); color: var(--bf-strong); font-size: 0.78rem; font-weight: 600; }
.bf-tag span[aria-hidden] { opacity: 0.7; font-size: 1rem; line-height: 1; }
.bf-fg { border-top: 1px solid var(--bf-line); padding: 0.85rem 0; }
.bf-fg summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9375rem; }
.bf-fg summary::-webkit-details-marker { display: none; }
.bf-fg summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--wp--preset--color--subtle); border-bottom: 2px solid var(--wp--preset--color--subtle); transform: rotate(45deg); transition: transform 0.2s; margin-right: 0.2rem; }
.bf-fg[open] summary::after { transform: rotate(-135deg); }
.bf-flist { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
.bf-flist a { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.55rem; margin-inline: -0.55rem; border-radius: var(--bf-r); color: var(--wp--preset--color--muted); font-size: 0.9375rem; }
.bf-flist a span { font-size: 0.78rem; color: var(--wp--preset--color--subtle); }
.bf-flist a:hover { background: var(--bf-tint); color: var(--bf-strong); }
.bf-flist a.is-on { background: var(--bf-tint-2); color: var(--bf-strong); font-weight: 600; }
.bf-price { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.7rem; }
.bf-price label { position: relative; display: block; }
.bf-price i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--wp--preset--color--subtle); font-size: 0.875rem; }
.bf-price input { width: 100%; padding: 0.6rem 0.6rem 0.6rem 1.5rem; border-radius: var(--bf-r) !important; font: 500 0.9rem var(--wp--preset--font-family--sans); }
.bf-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.bf-presets a { padding: 0.28rem 0.65rem; border-radius: var(--bf-r); border: 1px solid var(--bf-line-2); font-size: 0.78rem; color: var(--wp--preset--color--muted); }
.bf-presets a:hover { color: var(--bf-strong); background: var(--bf-tint-2); }
.bf-checks, .bf-swatches { display: grid; gap: 0.15rem; margin-top: 0.7rem; }
.bf-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bf-ck { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; cursor: pointer; font-size: 0.9375rem; color: var(--wp--preset--color--muted); position: relative; }
.bf-ck input, .bf-sw input { position: absolute; opacity: 0; pointer-events: none; }
.bf-ck .bf-box { flex: none; width: 1.1rem; height: 1.1rem; border-radius: var(--bf-r); border: 1.5px solid var(--bf-line-2); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.bf-ck input[type="radio"] + .bf-box { border-radius: 50%; }
.bf-ck input:checked + .bf-box { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.bf-ck input:checked + .bf-box::after { content: ""; width: 0.3rem; height: 0.55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.bf-ck input[type="radio"]:checked + .bf-box::after { width: 0.4rem; height: 0.4rem; border: 0; border-radius: 50%; background: #fff; transform: none; }
.bf-ck input:focus-visible + .bf-box, .bf-sw input:focus-visible + .bf-box { outline: 2px solid var(--wp--preset--color--primary-light); outline-offset: 2px; }
.bf-ck:hover { color: var(--bf-strong); }
.bf-ck .bf-name { flex: 1; }
.bf-ck em { font-style: normal; font-size: 0.78rem; color: var(--wp--preset--color--subtle); }
.bf-stars { color: #b8321e; letter-spacing: 0.08em; margin-right: 0.3rem; }
.bf-sw { position: relative; cursor: pointer; }
.bf-sw .bf-box { display: block; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sw); border: 2px solid var(--bf-line-2); box-shadow: inset 0 0 0 2px var(--bf-panel); transition: transform 0.15s, border-color 0.15s; }
.bf-sw:hover .bf-box { transform: scale(1.1); }
.bf-sw input:checked + .bf-box { border-color: var(--wp--preset--color--primary-light); box-shadow: inset 0 0 0 2px var(--bf-panel), 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--primary-light) 40%, transparent); }
.bf-sw .bf-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bf-apply { margin-top: 1rem; width: 100%; padding: 0.8em 1em; border: 0; border-radius: var(--bf-r); background: var(--wp--preset--color--primary); color: #fff; font: 600 0.9rem var(--wp--preset--font-family--sans); cursor: pointer; }
.bf-filter-toggle { display: none; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: var(--bf-r); border: 1px solid var(--bf-line-2); background: var(--bf-tint); color: var(--bf-strong); font: 600 0.875rem var(--wp--preset--font-family--sans); cursor: pointer; }
.bf-filter-toggle svg { width: 1rem; height: 1rem; }
.bf-toolbar { padding-block: 0 1.2rem; gap: 0.8rem !important; }
.bf-empty { padding: 3rem 1rem; text-align: center; border: 1px dashed var(--bf-line-2); border-radius: var(--bf-r); }
.bf-main .bf-grid .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .bf-main .bf-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 1000px) {
	.bf-shop-cols { flex-direction: column; }
	.bf-shop-cols > .wp-block-column { flex-basis: 100% !important; width: 100%; }
	.bf-side { position: static; display: none; }
	.bf-side.is-open { display: block; }
	.bf-filter-toggle { display: inline-flex; }
}
@media (max-width: 600px) { .bf-main .bf-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* header icons: one size, one centre line */
.bf-actions .wp-block-search, .bf-actions .wp-block-search__inside-wrapper { height: 2.5rem; min-height: 0; display: flex; align-items: center; }
.bf-actions .wp-block-search__button, .bf-actions .wp-block-woocommerce-customer-account, .bf-actions .wc-block-customer-account__link { width: 2.5rem !important; height: 2.5rem !important; min-width: 0 !important; }
.bf-actions .wc-block-customer-account__link { display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50%; }
.bf-actions .wc-block-customer-account__visual { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; }
.bf-actions svg.search-icon, .bf-actions .wc-block-customer-account__account-icon, .bf-actions .wc-block-mini-cart__icon { width: 1.25rem !important; height: 1.25rem !important; }
.bf-actions .bf-mode svg { width: 1.1rem !important; height: 1.1rem !important; }
.bf-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-price input { min-width: 0; }

.bf-price input, .bf-price label { box-sizing: border-box; max-width: 100%; }
.bf-filters input[type="number"] { box-sizing: border-box; -moz-appearance: textfield; }

/* ---------- classic cart and checkout (server rendered: no React, much lighter) ---------- */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { padding-block: 0.5rem 1rem; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); overflow: hidden; margin: 0 0 1.4rem; color: var(--wp--preset--color--muted); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 0.95rem 1rem; border: 0; border-top: 1px solid var(--bf-line); text-align: left; vertical-align: middle; background: none; }
.woocommerce table.shop_table thead th { border-top: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--subtle); }
.woocommerce table.shop_table td.product-name a { color: var(--bf-strong); font-weight: 600; }
.woocommerce table.shop_table .product-thumbnail { width: 5rem; }
.woocommerce table.shop_table .product-thumbnail img { width: 4rem; height: 4rem; object-fit: cover; border-radius: var(--bf-r); display: block; }
.woocommerce table.shop_table .product-subtotal, .woocommerce table.shop_table .product-price, .woocommerce table.shop_table td.product-total, .woocommerce table.shop_table td.amount { color: var(--bf-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.woocommerce a.remove { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--bf-line-2); color: var(--wp--preset--color--muted) !important; background: none !important; font-size: 1.1rem; line-height: 1; }
.woocommerce a.remove:hover { background: #b8321e !important; border-color: #b8321e; color: #fff !important; }
.woocommerce td.actions { padding: 1rem; }
.woocommerce td.actions .coupon { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.woocommerce td.actions .coupon input.input-text { width: 11rem; padding: 0.7rem 1rem; }
.woocommerce td.actions > .button { float: right; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce button[type="submit"].button, .woocommerce #place_order { display: inline-block; padding: 0.8em 1.5em; border: 0; border-radius: var(--bf-r); background: var(--wp--preset--color--primary); background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%); color: #fff; font: 600 0.9375rem var(--wp--preset--font-family--sans); text-decoration: none; cursor: pointer; transition: background-color 0.2s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #place_order:hover { background-color: #b8321e; color: #fff; }
.woocommerce button.button[name="update_cart"], .woocommerce button.button[name="apply_coupon"] { background: var(--bf-tint); background-image: none; border: 1px solid var(--bf-line-2); color: var(--bf-strong); }
.woocommerce button.button[name="update_cart"]:disabled { opacity: 0.45; cursor: default; }
.woocommerce .cart-collaterals { width: 100%; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3, #order_review_heading { font-size: 1.3rem; margin: 0 0 0.9rem; }
.woocommerce .cart_totals table.shop_table th { width: 40%; color: var(--wp--preset--color--muted); font-weight: 500; }
.woocommerce .wc-proceed-to-checkout { padding: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; width: 100%; padding: 1em 1.5em; margin: 0; }
.woocommerce ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce ul#shipping_method li { margin: 0.2rem 0; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator a { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
@media (min-width: 900px) {
	.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.4rem 2rem; align-items: start; }
	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce > .woocommerce-message { grid-column: 1 / -1; }
	.woocommerce-cart .cart-collaterals { position: sticky; top: 96px; }
}
.woocommerce-cart .cart-empty, .woocommerce .cart-empty { padding: 2.5rem 1rem; text-align: center; border: 1px dashed var(--bf-line-2); border-radius: var(--bf-r); grid-column: 1 / -1; }
.woocommerce .return-to-shop { text-align: center; grid-column: 1 / -1; }
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr { display: block; padding: 0.4rem 0; border-top: 1px solid var(--bf-line); }
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: 0.5rem 1rem; text-align: right; }
	.woocommerce table.shop_table_responsive tr td::before { content: attr(data-title) ": "; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--subtle); text-align: left; }
	.woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
	.woocommerce table.shop_table_responsive tr td.actions { display: block; text-align: left; }
	.woocommerce td.actions > .button { float: none; margin-top: 0.6rem; width: 100%; }
}

/* checkout */
.woocommerce-checkout form.checkout { display: grid; gap: 1.4rem 2rem; align-items: start; }
@media (min-width: 900px) { .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr) 24rem; } .woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 20; } .woocommerce-checkout form.checkout #order_review_heading, .woocommerce-checkout form.checkout #order_review { grid-column: 2; } .woocommerce-checkout #order_review { position: sticky; top: 96px; } }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce form .form-row { padding: 0; margin: 0 0 0.9rem; }
.woocommerce form .form-row label { display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; font-weight: 500; color: var(--wp--preset--color--muted); line-height: 1.3; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; padding: 0.75rem 1rem; box-sizing: border-box; font: 500 0.9375rem var(--wp--preset--font-family--sans); color: var(--bf-strong); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
@media (max-width: 520px) { .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; } }
.select2-container--default .select2-selection--single { height: auto; padding: 0.4rem 0.6rem; background: var(--bf-panel); border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--bf-strong); line-height: 1.7; padding-left: 0.4rem; font-family: var(--wp--preset--font-family--sans); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 0.5rem; }
.select2-dropdown { background: var(--bf-panel); border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); color: var(--bf-strong); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--wp--preset--color--primary); color: #fff; }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--bf-panel); color: var(--bf-strong); border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); }
.woocommerce-checkout #payment { background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: 1rem; margin-top: 1rem; }
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; border: 0; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 0.7rem 0.9rem; border: 1px solid var(--bf-line-2); border-radius: var(--bf-r); margin-bottom: 0.5rem; }
.woocommerce-checkout #payment div.payment_box { background: none; color: var(--wp--preset--color--muted); padding: 0.5rem 0 0; margin: 0; font-size: 0.875rem; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
.woocommerce-checkout #place_order { width: 100%; padding: 1em; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); margin-bottom: 0.9rem; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; padding: 1rem 1.2rem !important; margin: 0 0 1.2rem !important; }
.woocommerce-error { border-radius: var(--bf-r); border: 1px solid #b8321e !important; background: var(--bf-panel); color: var(--bf-strong); }
.woocommerce-info a, .woocommerce-message a:not(.button) { text-decoration: underline; }
.woocommerce-form-coupon-toggle .woocommerce-info { display: block; }
.woocommerce-checkout .woocommerce-form-login, .woocommerce-checkout form.checkout_coupon { background: var(--bf-panel); border: 1px solid var(--bf-line); border-radius: var(--bf-r); padding: 1.2rem; margin-bottom: 1.2rem; }

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content a.wc-forward.button.wp-element-button { background: var(--wp--preset--color--primary) !important; color: #fff !important; padding: 0.5em 1.1em !important; border-radius: var(--bf-r) !important; }

.woocommerce-cart .wp-block-post-content, .woocommerce-checkout .wp-block-post-content { max-width: var(--wp--style--global--wide-size, 1180px) !important; }
.woocommerce-cart .wp-block-post-content > *, .woocommerce-checkout .wp-block-post-content > * { max-width: none !important; }



/* ================= Bowlful: look and feel ================= */
:root { --bf-kraft: #f3e6cb; --bf-cream: #fffdf8; --bf-shadow-s: 3px 3px 0 var(--bf-ink); --bf-shadow-m: 5px 5px 0 var(--bf-ink); }
body { background: var(--bf-bg); color: var(--bf-text); }
h1, h2, h3, h4 { color: var(--bf-ink); }
.has-text-align-center { text-align: center; }
.bf-hand { display: inline-block; margin: 0 0 0.35rem; font-family: var(--wp--preset--font-family--hand); font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.05; color: var(--bf-clay); transform: rotate(-2deg); transform-origin: left center; }
.bf-lede { color: var(--bf-text); }

/* buttons, chips and tags: a sticker with an ink outline and a hard shadow */
.wp-block-button__link, .single_add_to_cart_button, .bf-news button, .bf-find-go, .wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce input.button { border: 2px solid var(--bf-ink) !important; border-radius: 999px !important; box-shadow: var(--bf-shadow-s) !important; font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important; transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s !important; }
.wp-block-button__link:hover, .single_add_to_cart_button:hover, .bf-news button:hover, .bf-find-go:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bf-ink) !important; }
.wp-block-button__link:active, .single_add_to_cart_button:active, .bf-news button:active, .bf-find-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bf-ink) !important; }
.is-style-ghost .wp-block-button__link { background: var(--bf-cream); color: var(--bf-ink); border: 2px solid var(--bf-ink); }
.is-style-ghost .wp-block-button__link:hover { background: var(--bf-mustard); border-color: var(--bf-ink); color: var(--bf-ink); }
.is-style-light .wp-block-button__link { background: var(--bf-cream); color: var(--bf-ink); }
.is-style-eyebrow { font: 800 0.8rem/1 var(--wp--preset--font-family--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bf-mustard); margin: 0 0 1rem; }
.is-style-pill { border: 2px solid var(--bf-ink); border-radius: 999px; background: var(--bf-cream); color: var(--bf-ink); }
.bf-chip { border: 2px solid var(--bf-ink); border-radius: 999px; background: var(--bf-cream); color: var(--bf-ink); font-weight: 800; padding: 0.4rem 1rem; }
.bf-chip:hover { background: var(--bf-mustard); color: var(--bf-ink); }
.bf-chip.is-active { background: var(--bf-ink); border-color: var(--bf-ink); color: var(--bf-cream); }
.bf-head { padding-bottom: var(--wp--preset--spacing--50); }
.bf-head h2 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.bf-head-center { text-align: center; }
.bf-head-center h2 { max-width: none; }
.bf-head-center .bf-lede { margin-inline: auto; }
.bf-link { margin: 0; }
.bf-link a { display: inline-flex; padding: 0.5rem 1.1rem; border: 2px solid var(--bf-ink); border-radius: 999px; background: var(--bf-cream); color: var(--bf-ink); font-weight: 800; font-size: 0.9375rem; box-shadow: var(--bf-shadow-s); transition: transform 0.15s, background-color 0.2s; }
.bf-link a:hover { background: var(--bf-mustard); transform: translate(-1px, -1px); color: var(--bf-ink); }

/* announcement bar and the floating dock */
.bf-announce { margin: 0; height: 2.25rem; display: flex; align-items: center; justify-content: center; background: var(--bf-ink); color: var(--bf-cream); font: 700 0.8125rem/1 var(--wp--preset--font-family--sans); text-align: center; padding-inline: 1rem; white-space: nowrap; overflow: hidden; }
header.wp-block-template-part { top: -2.25rem; }
.admin-bar header.wp-block-template-part { top: calc(32px - 2.25rem); }
.bf-bar { padding: 0.7rem var(--wp--preset--spacing--40) 0.3rem !important; background: transparent; }
.bf-dock { background: var(--bf-cream); border: 2px solid var(--bf-ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--bf-ink); padding: 0.4rem 0.5rem 0.4rem 1.1rem; gap: 0.8rem !important; align-items: center; flex-wrap: nowrap !important; }
.bf-dock .wp-block-site-title { margin: 0; font-size: 1.65rem; line-height: 1; letter-spacing: 0; flex: none; }
.bf-dock .wp-block-site-title a { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--bf-ink); }
.bf-dock .wp-block-site-title a::before, .bf-footer .wp-block-site-title a::before { content: ""; width: 2.2rem; height: 2.2rem; background: url("assets/logo-mark.svg") center / contain no-repeat; flex: none; }
.bf-bar-nav { flex: 1; justify-content: center; }
.bf-bar-nav .wp-block-navigation__container { gap: 0.15rem; }
.bf-bar-nav .wp-block-navigation-item__content { padding: 0.5rem 0.95rem; border-radius: 999px; font-weight: 800; font-size: 0.975rem; color: var(--bf-ink); transition: background-color 0.15s; }
.bf-bar-nav .wp-block-navigation-item__content:hover { background: var(--bf-mustard); color: var(--bf-ink); }
.bf-actions { margin-left: 0; }
.bf-actions .wp-block-search__button:hover, .bf-actions .wc-block-customer-account a:hover { background: var(--bf-mustard); color: var(--bf-ink); }
.bf-actions .wc-block-mini-cart__button { background: var(--bf-tomato); color: #fff; border: 2px solid var(--bf-ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--bf-ink); font-weight: 800; }
.bf-actions .wc-block-mini-cart__button:hover { background: var(--bf-clay); }
.bf-actions .wc-block-mini-cart__icon, .bf-actions .wc-block-mini-cart__amount { color: #fff; }
.bf-actions .wc-block-mini-cart__badge { background: var(--bf-mustard); color: var(--bf-ink); border: 2px solid var(--bf-ink); font-weight: 800; }
@media (min-width: 600px) and (max-width: 899px) {
	.bf-bar-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.bf-bar-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.bf-bar-nav { flex: none; margin-left: auto; }
}
@media (max-width: 600px) {
	.bf-announce-more { display: none; }
	.bf-dock { padding-left: 0.8rem; gap: 0.4rem !important; }
	.bf-dock .wp-block-site-title { font-size: 1.35rem; }
	.bf-dock .wp-block-site-title a::before { width: 1.8rem; height: 1.8rem; }
	.bf-bar-nav { margin-left: auto; flex: none; }
	.bf-actions .wp-block-search { display: none; }
}
@media (max-width: 380px) { .bf-actions .wp-block-woocommerce-customer-account { display: none; } }

/* ---------- hero ---------- */
.bf-hero { position: relative; padding: clamp(2.2rem, 5vw, 4rem) var(--wp--preset--spacing--40) clamp(5rem, 9vw, 7.5rem); background: var(--bf-mustard) radial-gradient(circle at 1px 1px, rgba(29, 35, 64, 0.13) 1.6px, transparent 1.8px) 0 0 / 22px 22px; }
.bf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: radial-gradient(circle at 20px 0, var(--bf-mustard) 19.5px, var(--bf-bg) 20px) 0 0 / 40px 26px repeat-x; }
.bf-hero-grid { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44rem) minmax(0, 1fr); grid-template-areas: "dog mid cat" "dog mid small"; align-items: center; column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: 1.5rem; }
.bf-sticker { position: relative; margin: 0; border: 6px solid var(--bf-cream); box-shadow: 0 0 0 3px var(--bf-ink), 8px 9px 0 3px var(--bf-ink); background: var(--bf-cream); }
.bf-sticker img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-st-dog { grid-area: dog; justify-self: start; width: min(100%, 17rem); aspect-ratio: 4 / 5; border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%; overflow: visible; transform: rotate(-5deg); }
.bf-st-dog img { border-radius: inherit; }
.bf-st-cat { grid-area: cat; justify-self: end; width: min(100%, 13rem); aspect-ratio: 1; border-radius: 50%; transform: rotate(6deg); }
.bf-st-cat img { border-radius: 50%; }
.bf-st-small { grid-area: small; justify-self: end; width: min(100%, 14.5rem); aspect-ratio: 4 / 3; border-radius: 22px; transform: rotate(-4deg); margin-right: 1.4rem; }
.bf-st-small img { border-radius: 16px; }
.bf-tag { position: absolute; left: -0.5rem; bottom: -1.1rem; padding: 0.1rem 0.85rem 0.2rem; background: var(--bf-cream); border: 2px solid var(--bf-ink); border-radius: 999px; font: 700 1.3rem/1.15 var(--wp--preset--font-family--hand); color: var(--bf-ink); transform: rotate(-4deg); white-space: nowrap; }
.bf-hero-mid { grid-area: mid; text-align: center; }
.bf-hero .bf-hand { color: var(--bf-ink); transform: rotate(-3deg); transform-origin: center; }
.bf-find h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.32; letter-spacing: 0; color: var(--bf-ink); }
.bf-find select { appearance: none; -webkit-appearance: none; font: inherit; line-height: 1.05; color: var(--bf-ink); background: var(--bf-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.500 11 1.500' fill='none' stroke='%231D2340' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.4em center / 0.42em; border: 3px solid var(--bf-ink); border-radius: 999px; padding: 0.04em 1.15em 0.1em 0.42em; box-shadow: 3px 3px 0 var(--bf-ink); cursor: pointer; max-width: 100%; margin: 0.08em 0; }
.bf-find select:hover { background-color: #fff; }
.bf-find select:focus-visible { outline: 3px solid var(--bf-tomato); outline-offset: 3px; }
.bf-find-go { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 1.9rem; background: var(--bf-tomato); color: #fff; font: 800 1.15rem/1 var(--wp--preset--font-family--sans); cursor: pointer; }
.bf-find-go:hover { background: var(--bf-clay); color: #fff; }
.bf-hero .bf-lede { max-width: 34rem; margin: 1.5rem auto 0; color: var(--bf-ink); font-size: 1.125rem; }
.bf-hero-facts { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.bf-hero-facts li { padding: 0.35rem 0.95rem; border: 2px solid var(--bf-ink); border-radius: 999px; background: rgba(255, 253, 248, 0.75); font-size: 0.875rem; font-weight: 700; color: var(--bf-ink); }
.bf-hero-facts strong { color: var(--bf-clay); }
.bf-seal { position: absolute; left: 2%; bottom: -3rem; width: 7rem; height: 7rem; filter: drop-shadow(4px 4px 0 var(--bf-ink)); animation: bf-spin 28s linear infinite; z-index: 2; }
@keyframes bf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bf-seal { animation: none; } .bf-tile, .bf-tile * { transition: none !important; } }
@media (max-width: 999px) {
	.bf-hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "dog cat small" "mid mid mid"; row-gap: 2.2rem; }
	.bf-sticker { box-shadow: 0 0 0 2px var(--bf-ink), 5px 6px 0 2px var(--bf-ink); border-width: 4px; }
	.bf-st-dog, .bf-st-cat, .bf-st-small { justify-self: center; width: min(100%, 9.5rem); margin: 0; }
	.bf-st-small { aspect-ratio: 1; }
	.bf-tag, .bf-seal { display: none; }
}

/* ---------- who is eating ---------- */
.bf-pets { background: var(--bf-bg); }
.bf-tiles { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-areas: "dog cat small" "dog treat treat"; gap: 1.4rem; }
.bf-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 14rem; padding: 1.5rem; border: 3px solid var(--bf-ink); box-shadow: 6px 6px 0 var(--bf-ink); color: var(--bf-ink); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.bf-tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--bf-ink); color: var(--bf-ink); }
.bf-t-art { position: absolute; right: -1rem; top: -0.5rem; width: 60%; max-width: 14rem; transform: rotate(8deg); transition: transform 0.3s; }
.bf-t-art svg { display: block; width: 100%; height: auto; }
.bf-tile:hover .bf-t-art { transform: rotate(-5deg) scale(1.07); }
.bf-t-name { position: relative; font: 400 clamp(2rem, 3.4vw, 3rem) / 1 var(--wp--preset--font-family--display); }
.bf-t-sub { position: relative; max-width: 17rem; margin-top: 0.45rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.bf-t-count { position: absolute; left: 1.4rem; top: 1.3rem; padding: 0.2rem 0.8rem; background: var(--bf-cream); color: var(--bf-ink); border: 2px solid var(--bf-ink); border-radius: 999px; font: 700 0.8rem/1.3 var(--wp--preset--font-family--sans); }
.bf-t-dog { grid-area: dog; background: var(--bf-tomato); color: #fff; border-radius: 44px 20px 44px 20px; min-height: 30rem; }
.bf-t-dog:hover { color: #fff; }
.bf-t-dog .bf-t-art { width: 86%; max-width: 21rem; right: -1.5rem; top: 3rem; }
.bf-t-dog .bf-t-name { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.bf-t-cat { grid-area: cat; background: var(--bf-sky); border-radius: 20px 44px 20px 44px; }
.bf-t-small { grid-area: small; background: var(--bf-leaf); border-radius: 44px 20px 44px 20px; }
.bf-t-treat { grid-area: treat; background: var(--bf-mustard); border-radius: 20px 44px 20px 44px; min-height: 13rem; }
.bf-t-treat .bf-t-art { width: 24%; right: 2rem; top: 1.2rem; max-width: 9rem; }
@media (max-width: 900px) {
	.bf-tiles { grid-template-columns: 1fr 1fr; grid-template-areas: "dog dog" "cat small" "treat treat"; }
	.bf-t-dog { min-height: 20rem; }
	.bf-t-dog .bf-t-art { top: 1rem; width: 54%; }
}
@media (max-width: 520px) { .bf-tiles { grid-template-columns: 1fr; grid-template-areas: "dog" "cat" "small" "treat"; } .bf-tile { min-height: 11rem; } .bf-t-dog { min-height: 17rem; } }

/* ---------- products: cards, and the shelf of bestsellers ---------- */
.bf-products .wc-block-product-template { gap: 1.6rem 1.4rem; }
.bf-products .wc-block-product { position: relative; text-align: left; }
.bf-products .wc-block-components-product-image { position: relative; margin: 0 0 0.8rem; }
.bf-products .wc-block-components-product-image img { display: block; width: 100%; height: auto; }
.bf-products .wc-block-product .wp-block-post-title { margin: 0.2rem 0 0.25rem; font: 800 1.05rem/1.25 var(--wp--preset--font-family--sans); letter-spacing: 0; }
.bf-products .wc-block-product .wp-block-post-title a { color: var(--bf-ink); }
.bf-products .wc-block-product .wp-block-post-title a:hover { color: var(--bf-clay); }
.bf-products .wc-block-components-product-price { font-weight: 800; color: var(--bf-ink); font-size: 1.05rem; }
.bf-products .wc-block-components-product-price del { color: var(--wp--preset--color--subtle); font-weight: 600; }
.bf-products .wc-block-components-product-price ins { text-decoration: none; color: var(--bf-clay); }
.bf-products .star-rating, .bf-products .wc-block-components-product-rating__stars { color: var(--bf-tomato); }
.bf-products .wp-block-woocommerce-product-button { margin-top: 0.7rem; }
.bf-products .wc-block-components-product-button .wp-block-button__link { width: 100%; justify-content: center; background: var(--bf-cream); color: var(--bf-ink); padding: 0.6rem 1rem; font-size: 0.9375rem; }
.bf-products .wc-block-components-product-button .wp-block-button__link:hover { background: var(--bf-mustard); color: var(--bf-ink); }
.wc-block-components-product-sale-badge { position: absolute; z-index: 3; top: 0.7rem; left: 0.7rem; margin: 0; padding: 0.22rem 0.7rem; background: var(--bf-tomato); color: #fff; border: 2px solid var(--bf-ink); border-radius: 999px; font: 800 0.8rem/1.2 var(--wp--preset--font-family--sans); text-transform: none; transform: rotate(-6deg); }
.bf-products:not(.bf-shelf) .wc-block-product { background: var(--bf-cream); border: 2px solid var(--bf-ink); border-radius: 24px; padding: 0.8rem 0.8rem 1.1rem; box-shadow: 4px 4px 0 var(--bf-ink); transition: transform 0.15s, box-shadow 0.15s; }
.bf-products:not(.bf-shelf) .wc-block-product:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bf-ink); }
.bf-products:not(.bf-shelf) .wc-block-components-product-image { background: var(--bf-kraft); border-radius: 16px; overflow: hidden; }
.bf-products:not(.bf-shelf) .wc-block-product > :not(.wc-block-components-product-image) { margin-inline: 0.3rem; }
.bf-shelf-section { background: var(--bf-bg); }
.bf-shelf .wc-block-product-template { gap: 2.6rem 1.8rem; }
.bf-shelf .wc-block-product { text-align: center; }
.bf-shelf .wc-block-components-product-image { margin-bottom: 1.1rem; }
.bf-shelf .wc-block-components-product-image::after { content: ""; position: absolute; left: -0.9rem; right: -0.9rem; bottom: 5.5%; height: 18px; background: #c99a5b repeating-linear-gradient(90deg, transparent 0 140px, rgba(29, 35, 64, 0.16) 140px 142px); border: 2px solid var(--bf-ink); border-radius: 5px; box-shadow: 0 7px 0 -1px rgba(29, 35, 64, 0.18); z-index: 0; }
.bf-shelf .wc-block-components-product-image a, .bf-shelf .wc-block-components-product-image img { position: relative; z-index: 1; }
.bf-shelf .wc-block-components-product-rating { justify-content: center; display: flex; }
.bf-shelf .wc-block-components-product-sale-badge { top: 0.2rem; left: 0.6rem; }

/* ---------- read the label ---------- */
.bf-label { background: var(--bf-ink); color: var(--bf-cream); }
.bf-label h2 { color: var(--bf-cream); }
.bf-label .bf-hand { color: var(--bf-mustard); }
.bf-label .bf-lede { color: rgba(255, 253, 248, 0.86); }
.bf-anatomy { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.bf-anatomy-bag { position: relative; }
.bf-anatomy-bag::before { content: ""; position: absolute; inset: 10% 2% 6%; border-radius: 50%; background: var(--bf-mustard); border: 3px solid var(--bf-cream); }
.bf-anatomy-bag img { position: relative; display: block; width: 100%; height: auto; }
.bf-note { position: relative; margin: 0 0 1.5rem; padding: 1rem 1.25rem 1.15rem; border: 2px dashed rgba(255, 253, 248, 0.55); border-radius: 20px; }
.bf-notes .bf-note:last-child { margin-bottom: 0; }
.bf-note strong { display: block; font: 700 clamp(1.6rem, 2.6vw, 2.05rem) / 1.05 var(--wp--preset--font-family--hand); color: var(--bf-mustard); }
.bf-note span { display: block; margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.5; color: rgba(255, 253, 248, 0.9); }
.bf-note svg { position: absolute; top: 50%; width: 3.6rem; height: auto; color: var(--bf-mustard); }
.bf-notes-l .bf-note svg { right: calc(-3.2rem - 1px); transform: translateY(-30%); }
.bf-notes-r .bf-note svg { left: calc(-3.2rem - 1px); transform: translateY(-30%); }
@media (max-width: 960px) {
	.bf-anatomy { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
	.bf-anatomy-bag { grid-column: 1 / -1; grid-row: 1; max-width: 22rem; margin: 0 auto 1rem; }
	.bf-note svg { display: none; }
}
@media (max-width: 600px) { .bf-anatomy { grid-template-columns: 1fr; } .bf-notes .bf-note:last-child { margin-bottom: 1.2rem; } }

/* ---------- feeding calculator ---------- */
.bf-feed { background: var(--bf-sky); }
.bf-feed-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.bf-feed .bf-hand { color: var(--bf-ink); }
.bf-feed h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin: 0.2rem 0 1rem; }
.bf-feed .bf-lede { color: var(--bf-ink); max-width: 30rem; }
.bf-feed-arrow { display: block; width: 7rem; margin: 1rem 0 0 auto; transform: rotate(8deg); }
.bf-calc { background: var(--bf-cream); border: 3px solid var(--bf-ink); border-radius: 30px; box-shadow: 8px 8px 0 var(--bf-ink); padding: 1.6rem; display: grid; gap: 1.1rem; transform: rotate(1deg); }
.bf-calc-row { display: grid; gap: 0.4rem; }
.bf-calc label { display: flex; justify-content: space-between; font-weight: 800; color: var(--bf-ink); }
.bf-calc output { font-family: var(--wp--preset--font-family--display); color: var(--bf-clay); }
.bf-calc select { appearance: none; -webkit-appearance: none; width: 100%; font: 700 1rem var(--wp--preset--font-family--sans); color: var(--bf-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.500 11 1.500' fill='none' stroke='%231D2340' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 0.7rem; border: 2px solid var(--bf-ink); border-radius: 999px; padding: 0.65rem 2.4rem 0.65rem 1.1rem; cursor: pointer; }
.bf-calc input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 16px; border: 2px solid var(--bf-ink); border-radius: 999px; background: linear-gradient(90deg, var(--bf-tomato) var(--p, 25%), #fff var(--p, 25%)); padding: 0; cursor: pointer; }
.bf-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bf-mustard); border: 3px solid var(--bf-ink); box-shadow: 2px 2px 0 var(--bf-ink); }
.bf-calc input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--bf-mustard); border: 3px solid var(--bf-ink); box-shadow: 2px 2px 0 var(--bf-ink); }
.bf-calc select:focus-visible, .bf-calc input:focus-visible { outline: 3px solid var(--bf-tomato); outline-offset: 3px; }
.bf-calc-result { display: grid; justify-items: center; padding: 1rem; background: var(--bf-kraft); border: 2px dashed var(--bf-ink); border-radius: 20px; text-align: center; }
.bf-calc-big { font: 400 clamp(2.8rem, 6vw, 4rem) / 1 var(--wp--preset--font-family--display); color: var(--bf-clay); }
.bf-calc-small { font: 700 1.5rem/1.1 var(--wp--preset--font-family--hand); color: var(--bf-ink); }
.bf-calc-fine { margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--subtle); text-align: center; }
@media (max-width: 860px) { .bf-feed-grid { grid-template-columns: 1fr; } .bf-feed-arrow { display: none; } .bf-calc { transform: none; } }

/* ---------- subscribe steps: ticket stubs ---------- */
.bf-steps { background: var(--bf-bg); }
.bf-tickets { max-width: 1320px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.bf-ticket { position: relative; padding: 1.8rem 2.2rem 1.8rem 6.2rem; border: 3px solid var(--bf-ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--bf-ink); color: var(--bf-ink); }
.bf-ticket::before, .bf-ticket::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bf-bg); border: 3px solid var(--bf-ink); }
.bf-ticket::before { left: -17px; }
.bf-ticket::after { right: -17px; }
.bf-tk-1 { background: var(--bf-tomato); color: #fff; transform: rotate(-1.4deg); }
.bf-tk-1 h3 { color: #fff; }
.bf-tk-2 { background: var(--bf-mustard); transform: rotate(1deg); }
.bf-tk-3 { background: var(--bf-leaf); transform: rotate(-0.8deg); }
.bf-tk-n { position: absolute; left: 1.4rem; top: 50%; width: 3.6rem; height: 3.6rem; margin-top: -1.8rem; display: grid; place-items: center; background: var(--bf-cream); color: var(--bf-ink); border: 3px solid var(--bf-ink); border-radius: 50%; font: 400 2rem/1 var(--wp--preset--font-family--display); }
.bf-ticket h3 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.bf-ticket p { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 900px) { .bf-tickets { grid-template-columns: 1fr; max-width: 30rem; gap: 1.6rem; } }

/* ---------- postcards ---------- */
.bf-cards { background: var(--bf-kraft); }
.bf-cards .bf-hand { color: var(--bf-clay); }
.bf-postcards { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.bf-card { position: relative; padding: 1.6rem 1.5rem 1.3rem; background: var(--bf-cream); border: 2px solid var(--bf-ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--bf-ink); display: flex; flex-direction: column; background-image: repeating-linear-gradient(0deg, transparent 0 33px, rgba(29, 35, 64, 0.07) 33px 34px); }
.bf-pc-1 { transform: rotate(-1.6deg); }
.bf-pc-2 { transform: rotate(1.2deg); }
.bf-pc-3 { transform: rotate(-0.8deg); }
.bf-stamp { float: right; width: 5.4rem; height: 6.4rem; margin: -0.3rem -0.2rem 0.6rem 1rem; padding: 5px; background: #fff; border: 3px dotted var(--bf-ink); border-radius: 4px; transform: rotate(4deg); }
.bf-stamp img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.bf-card-text { margin: 0 0 1rem; font: 700 1.55rem/1.3 var(--wp--preset--font-family--hand); color: var(--bf-ink); }
.bf-card-by { margin: auto 0 0; padding-top: 0.8rem; border-top: 2px dashed rgba(29, 35, 64, 0.4); display: grid; gap: 0.1rem; clear: both; }
.bf-card-by strong { font-weight: 800; color: var(--bf-ink); }
.bf-card-by span { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
@media (max-width: 900px) { .bf-postcards { grid-template-columns: 1fr; max-width: 30rem; } }

/* ---------- join the pack ---------- */
.bf-join { background: var(--bf-tomato); color: #fff; text-align: center; padding-bottom: calc(var(--wp--preset--spacing--70) + 1.5rem); }
.bf-join-wrap { max-width: 44rem; margin: 0 auto; }
.bf-join h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.bf-join .bf-hand { color: var(--bf-mustard); transform: rotate(-2deg); transform-origin: center; }
.bf-join .bf-lede { color: #fff; margin: 1rem auto 1.6rem; }
.bf-paws { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.2rem; }
.bf-paws svg { width: 2.4rem; height: 2.4rem; color: rgba(255, 253, 248, 0.9); }
.bf-paws svg * { fill: currentColor; }
.bf-paws svg:nth-child(odd) { transform: rotate(-14deg) translateY(0.6rem); }
.bf-paws svg:nth-child(even) { transform: rotate(14deg); }
.bf-news { display: flex; gap: 0.6rem; max-width: 30rem; margin: 0 auto; }
.bf-news input { flex: 1; min-width: 0; padding: 0.9rem 1.3rem; background: var(--bf-cream); color: var(--bf-ink); border: 2px solid var(--bf-ink); border-radius: 999px; font: 600 1rem var(--wp--preset--font-family--sans); }
.bf-news button { padding: 0.9rem 1.5rem; background: var(--bf-ink); color: var(--bf-cream); font: 800 1rem/1 var(--wp--preset--font-family--sans); cursor: pointer; }
.bf-news button:hover { background: var(--bf-mustard); color: var(--bf-ink); }
@media (max-width: 480px) { .bf-news { flex-direction: column; } }

/* ---------- footer ---------- */
.bf-footer { position: relative; margin-top: 2.2rem; padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50); background: var(--bf-ink); color: rgba(255, 253, 248, 0.88); }
.bf-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 27px; background: radial-gradient(circle at 20px 100%, var(--bf-ink) 19.5px, transparent 20px) 0 0 / 40px 100% repeat-x; }
.bf-footer a { color: rgba(255, 253, 248, 0.88); }
.bf-footer a:hover { color: var(--bf-mustard); }
.bf-footer .wp-block-site-title { margin: 0 0 0.6rem; font-size: 2rem; }
.bf-footer .wp-block-site-title a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--bf-cream); }
.bf-foot-lead { margin: 0 0 1rem; font: 700 1.7rem/1.15 var(--wp--preset--font-family--hand); color: var(--bf-mustard); max-width: 22rem; }
.bf-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.9375rem; }
.bf-legal { margin-top: var(--wp--preset--spacing--60); padding-top: 1.2rem; border-top: 2px dashed rgba(255, 253, 248, 0.25); gap: 0.6rem 2rem; color: rgba(255, 253, 248, 0.75); }
.bf-legal p { margin: 0; }

/* ---------- inner pages, shop and product ---------- */
.bf-pagehead { background: var(--bf-mustard) radial-gradient(circle at 1px 1px, rgba(29, 35, 64, 0.13) 1.6px, transparent 1.8px) 0 0 / 22px 22px; border-bottom: 3px solid var(--bf-ink); padding-block: clamp(2rem, 5vw, 3.2rem) clamp(1.6rem, 4vw, 2.4rem); }
.bf-pagehead::before { display: none; }
.bf-pagehead .wp-block-term-description, .bf-pagehead .bf-lede, .bf-pagehead .bf-sub { color: var(--bf-ink); }
.bf-pagehead .wc-block-components-breadcrumbs, .bf-pagehead .woocommerce-breadcrumb, .bf-pagehead .woocommerce-breadcrumb a { color: var(--bf-ink); }
.bf-filters { border: 2px solid var(--bf-ink); border-radius: 24px; background: var(--bf-cream); box-shadow: 4px 4px 0 var(--bf-ink); padding: 1.2rem; }
.bf-filters input[type="checkbox"]:checked + .bf-box, .bf-filters input[type="radio"]:checked + .bf-box { background-color: var(--bf-tomato); border-color: var(--bf-ink); }
.bf-apply { background: var(--bf-tomato); color: #fff; border: 2px solid var(--bf-ink); border-radius: 999px; box-shadow: var(--bf-shadow-s); font-weight: 800; }
.bf-pdp-media .woocommerce-product-gallery__wrapper { border: 2px solid var(--bf-ink); border-radius: 28px; background: var(--bf-kraft); box-shadow: 6px 6px 0 var(--bf-ink); }
.bf-pdp-media .flex-control-thumbs img { border: 2px solid var(--bf-ink); border-radius: 14px; background: var(--bf-kraft); }
.bf-perks p { border: 2px solid var(--bf-ink); border-radius: 16px; background: var(--bf-cream); color: var(--bf-ink); font-weight: 700; }
.bf-pdp-buy .wc-block-components-product-price { color: var(--bf-clay); font-weight: 800; }
.bf-pdp-buy .wc-block-components-product-price ins { color: var(--bf-clay); }
.single_add_to_cart_button, .wc-block-components-button:not(.is-link) { background-color: var(--bf-tomato) !important; color: #fff !important; }
.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background-color: var(--bf-clay) !important; }
.bf-post { border: 2px solid var(--bf-ink); border-radius: 24px; box-shadow: 4px 4px 0 var(--bf-ink); background: var(--bf-cream); }
.bf-post:hover { border-color: var(--bf-ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bf-ink); }
.bf-post .wp-block-post-featured-image { border: 2px solid var(--bf-ink); }
.wp-block-post-featured-image img { border: 0; }
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner { border: 2px solid var(--bf-ink) !important; border-radius: 16px !important; }
.bf-empty { padding: 3rem 1rem; }

/* shelf grid and sizing of the finder pills */
.bf-shelf .wc-block-product-template { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bf-shelf .wc-block-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 1000px) { .bf-shelf .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bf-find select { field-sizing: content; }

/* related products (the block comes from WooCommerce) look like the shop cards */
.wp-block-woocommerce-related-products .wc-block-product { position: relative; background: var(--bf-cream); border: 2px solid var(--bf-ink); border-radius: 24px; padding: 0.8rem 0.8rem 1.1rem; box-shadow: 4px 4px 0 var(--bf-ink); }
.wp-block-woocommerce-related-products .wc-block-components-product-image { background: var(--bf-kraft); border-radius: 16px; overflow: hidden; margin-bottom: 0.8rem; }
.wp-block-woocommerce-related-products .wp-block-post-title { font: 800 1rem/1.25 var(--wp--preset--font-family--sans); margin: 0.2rem 0.3rem 0.25rem; }
.wp-block-woocommerce-related-products .wp-block-post-title a { color: var(--bf-ink); }
.wp-block-woocommerce-related-products .wc-block-components-product-price { margin-inline: 0.3rem; font-weight: 800; color: var(--bf-ink); }
.wp-block-woocommerce-related-products .wc-block-components-product-button .wp-block-button__link { width: 100%; justify-content: center; background: var(--bf-cream); color: var(--bf-ink); padding: 0.55rem 1rem; font-size: 0.9rem; }
.wp-block-woocommerce-related-products h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* product gallery: the first picture large, the others in pairs below it */
.bf-pdp-media .woocommerce-product-gallery { opacity: 1 !important; }
.bf-pdp-media .woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border: 0; background: none; box-shadow: none; border-radius: 0; margin: 0; }
.bf-pdp-media .woocommerce-product-gallery__image { border: 2px solid var(--bf-ink); border-radius: 28px; background: var(--bf-kraft); box-shadow: 5px 5px 0 var(--bf-ink); overflow: hidden; aspect-ratio: 1; }
.bf-pdp-media .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }
.bf-pdp-media .woocommerce-product-gallery__image a { display: block; height: 100%; }
.bf-pdp-media .woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: cover; }
.bf-pdp-media .woocommerce-product-gallery__trigger { display: none; }
.bf-pdp-media .woocommerce-product-gallery .woocommerce-product-gallery__image { width: auto !important; max-width: none !important; float: none !important; margin: 0 !important; display: block !important; }

/* contrast and links in text */
.bf-join .bf-hand { color: var(--bf-cream); }
.wc-tabs li:not(.active) a { color: var(--bf-text) !important; opacity: 1 !important; }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a, .wc-block-components-breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }
