/* The header and cart share the storefront's quiet, square-edged editorial styling. */
.ff-site-header { position: relative; z-index: 8; background: #fff; color: #222822; }
.ff-site-nav.ff-store-nav {
    position: relative; display: grid; grid-template-columns: minmax(108px, 1fr) auto minmax(108px, 1fr);
    gap: clamp(14px, 2vw, 36px); align-items: center; padding: 9px clamp(18px, 3.6vw, 62px);
    min-height: 78px;
}
.ff-store-nav .ff-wordmark { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.ff-store-nav .ff-wordmark img { width: clamp(102px, 11vw, 154px); max-width: none; max-height: 48px; }
.ff-store-nav .ff-site-links { justify-content: center; flex-wrap: nowrap; gap: clamp(12px, 2.15vw, 36px); }
.ff-store-nav .ff-site-links a, .ff-menu-switch {
    display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
    font: 500 12px/1.3 var(--font-body-family, system-ui); letter-spacing: .055em; white-space: nowrap; color: inherit;
}
.ff-store-nav .ff-menu-switch[hidden], .ff-store-nav .ff-bag-count[hidden] { display: none; }
.ff-store-nav .ff-site-links a:hover, .ff-store-nav .ff-site-links a:focus-visible,
.ff-site-footer a:has(.ff-link-label):hover, .ff-site-footer a:has(.ff-link-label):focus-visible,
body :is(a,button):has(.ff-link-label):is(:hover,:focus-visible) { text-decoration: none; }
/* The control holds the pointer. Only the ink under its words changes. */
.ff-link-label { position: relative; display: inline-block; max-width: 100%; pointer-events: none; }
.ff-link-label::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
    pointer-events: none; background: currentColor; opacity: 0;
    clip-path: inset(0 50%);
}
:is(a[href],button:enabled,summary):has(> .ff-link-label) { cursor: pointer; }
.ffb-button:has(> .ff-link-label):hover { transform: none; }
@media (any-hover: hover) {
    .ff-link-label::after { transition: opacity .3s ease, clip-path .3s ease; }
    :is(a[href],button:enabled,summary):hover > .ff-link-label::after {
        opacity: 1; clip-path: inset(0 0%);
    }
}
:is(a[href],button:enabled,summary):is(:focus-visible,:active) > .ff-link-label::after {
    opacity: 1; clip-path: inset(0 0%); transition: none;
}
/* Remove legacy permanent rules beneath text links; only their text receives the new line. */
body a.ff-field-text-link:has(.ff-link-label) { border-bottom-color: transparent; }
body .ff-cast-links a.ff-field-button:has(.ff-link-label) { border-bottom-color: transparent !important; }
body :is(.ffb-journal-card .ffb-link,.ff-editorial-cta):has(.ff-link-label) { text-decoration: none; }
.ff-nav-tools { display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.ff-store-nav .ff-nav-icon, .ff-bag-close {
    position: relative; display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center;
    border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
    transition: background-color 220ms; list-style: none;
}
.ff-nav-icon svg { width: 25px; height: 25px; }
.ff-nav-icon::-webkit-details-marker { display: none; }
.ff-nav-icon:is(:hover,:focus-visible), .ff-product-search[open] .ff-nav-icon { background: #efefeb; }
.ff-cart-toggle { margin-left: 1px; }
.ff-bag-count {
    position: absolute; top: 4px; right: 0; min-width: 17px; height: 17px; padding: 0 3px; display: grid;
    place-items: center; background: #283129; color: #fff; border: 1px solid #fff; border-radius: 20px;
    font: 500 10px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.ff-product-search form {
    position: absolute; z-index: 2; right: clamp(16px, 3.6vw, 62px); top: calc(100% - 1px);
    width: min(355px, calc(100% - 32px)); padding: 20px; background: #fff; border: 1px solid #d8dcd7;
    box-shadow: 0 12px 30px #18251c17;
}
.ff-product-search label { display: block; margin-bottom: 8px; font-size: 13px; }
.ff-product-search form div { display: flex; }
.ff-product-search input { width: 100%; min-width: 0; border: 1px solid #8b938c; border-radius: 0; padding: 9px; }
.ff-product-search button[type=submit] { background: #283129; color: white; border: 0; padding: 0 14px; cursor: pointer; }
.ff-store-nav .ff-menu-switch { display: none; border: 0; background: transparent; cursor: pointer; justify-content: center; padding: 0 9px; }
body .ff-cast .ff-cast-button .ff-link-label, body .ff-field-button .ff-link-label { font: inherit; }
@media (max-width: 940px) {
    .ff-site-nav.ff-store-nav { grid-template-columns: 1fr auto auto; min-height: 62px; gap: 5px; padding-block: 5px; }
    .ff-store-nav .ff-wordmark img { width: 100px; max-height: 42px; }
    .ff-store-nav .ff-site-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 14px; }
    .ff-store-nav .ff-nav-tools { grid-column: 3; grid-row: 1; gap: 0; }
    .ff-store-nav.ff-header-ready .ff-menu-switch { display: inline-flex; grid-column: 2; grid-row: 1; }
    .ff-header-ready .ff-menu-switch[aria-expanded=false] + .ff-site-links { display: none; }
    .ff-header-ready .ff-menu-switch[aria-expanded=true] + .ff-site-links {
        display: grid; grid-template-columns: repeat(2, 1fr); position: absolute; left: 0; right: 0; top: 100%;
        padding: 12px 20px 16px; background: #fff; border-block: 1px solid #dde0da; box-shadow: 0 10px 20px #15221915;
        justify-items: start;
    }
    .ff-store-nav .ff-site-links a { font-size: 14px; }
}
html.ff-bag-open { overflow: hidden; }
#ff-shopping-bag:not([open]), #ff-shopping-bag [hidden] { display: none !important; }
#ff-shopping-bag {
    --panel: #18211c; --paper: #f6f6ed; --muted: #bdc7ba; --line: #414b42;
    position: fixed; inset: 0 0 0 auto; width: min(425px, 100%); height: 100%; height: 100dvh;
    max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--panel); color: var(--paper);
    box-shadow: -12px 0 38px #0c171422; overscroll-behavior: contain;
}
#ff-shopping-bag[open] { animation: ff-bag-in 360ms cubic-bezier(.22,.68,.19,1) both; }
#ff-shopping-bag::backdrop { background: #111b17a3; animation: ff-scrim-in 260ms both; }
#ff-shopping-bag.is-closing { animation: ff-bag-out 230ms cubic-bezier(.45,0,.75,.35) both; }
#ff-shopping-bag.is-closing::backdrop { animation: ff-scrim-out 230ms both; }
@keyframes ff-bag-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ff-bag-out { to { transform: translateX(100%); } }
@keyframes ff-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ff-scrim-out { to { opacity: 0; } }
.ff-bag-surface { height: 100%; display: flex; flex-direction: column; }
.ff-bag-head {
    display: flex; align-items: center; justify-content: space-between; min-height: 76px; flex: none;
    padding: max(10px,env(safe-area-inset-top)) 18px 10px 28px; border-bottom: 1px solid var(--line);
}
.ff-bag-head h2 { margin: 0; font: 400 27px/1.15 var(--font-heading-family, Georgia); letter-spacing: -.025em; color: var(--paper); }
.ff-bag-close:hover, .ff-bag-close:focus-visible { background: #344137; }
.ff-bag-close svg { width: 21px; }
.ff-bag-body { padding: 0 28px max(28px,env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.ff-bag-empty { padding: clamp(42px, 10vh, 88px) 0 20px; }
.ff-empty-icon { display: inline-flex; color: var(--muted); }
.ff-empty-icon svg { width: 42px; height: 42px; stroke-width: .95; }
.ff-bag-empty p { font: 400 clamp(26px, 4vw, 33px)/1.18 var(--font-heading-family,Georgia); margin: 18px 0 24px; letter-spacing: -.035em; }
.ff-shop-button, #ff-shopping-bag .woocommerce-mini-cart__buttons a {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 26px;
    padding: 10px 18px; margin: 0; border: 1px solid var(--paper); background: var(--paper);
    color: var(--panel); border-radius: 0; text-decoration: none; font: 600 13px/1.4 var(--font-body-family,system-ui);
}
.ff-bag-status:not(:empty) { padding-top: 24px; color: var(--muted); font-size: 14px; }
.ff-bag-fallback { display: inline-flex; padding-block: 12px; font-size: 14px; color: var(--paper); }
#ff-shopping-bag :focus-visible { outline: 2px solid #cbd799; outline-offset: 3px; }
#ff-shopping-bag .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
#ff-shopping-bag .mini_cart_item {
    position: relative; padding: 20px 36px 20px 0; border-bottom: 1px solid var(--line); min-height: 108px;
    font: 500 15px/1.45 var(--font-body-family,system-ui); overflow-wrap: anywhere;
}
#ff-shopping-bag .mini_cart_item::after { content: ""; display: table; clear: both; }
#ff-shopping-bag .mini_cart_item a:not(.remove) { color: var(--paper); text-decoration: none; font-weight: 500; }
#ff-shopping-bag .mini_cart_item img { float: left; width: 65px; height: 65px; object-fit: cover; margin: 0 14px 5px 0; }
#ff-shopping-bag .mini_cart_item .quantity { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
#ff-shopping-bag .mini_cart_item .variation { color: var(--muted); font-size: 12px; margin: 4px 0; border: 0; }
#ff-shopping-bag .mini_cart_item a.remove { position: absolute; inset: 12px -5px auto auto; display: grid; place-items: center; width: 40px; height: 44px; line-height: 1; color: var(--muted) !important; font-weight: 400; }
#ff-shopping-bag .mini_cart_item a.remove:hover { background: #344137; }
#ff-shopping-bag .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 22px 0; border: 0; }
#ff-shopping-bag .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
#ff-shopping-bag .woocommerce-mini-cart__buttons a { justify-content: center; }
#ff-shopping-bag .woocommerce-mini-cart__buttons a:not(.checkout) { background: transparent; color: var(--paper); border-color: #879186; }
body.woocommerce-cart .ff-plain-content { max-width: 1080px; }
body.woocommerce-cart .ff-plain-content h1 { font-size: clamp(36px, 5vw, 62px); margin: .35em 0 .6em; }
body.woocommerce-cart .ff-plain-content .woocommerce { padding: 0; }
/* WooCommerce hides the entire gallery until its slider starts. Show the first frame immediately. */
.single-product .ff-woo-shell div.product .woocommerce-product-gallery { opacity: 1 !important; transition: none !important; }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > div { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
@media (max-width: 768px) {
    .woocommerce .ff-woo-shell div.product div.images .flex-control-thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 7px 0 2px; }
    .woocommerce .ff-woo-shell div.product div.images .flex-control-thumbs li { float: none; clear: none; flex: 0 0 48px; width: 48px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-nav-icon, .ff-bag-close { transition: none !important; }
    #ff-shopping-bag[open], #ff-shopping-bag::backdrop { animation: none !important; }
}
