/* framework.css (inherited wholesale from the old parent theme) still carries that
   theme's own fixed-header spacing hack — 110–200px of body margin-top, tiered by
   viewport width — which fires on the exact same WooCommerce/single-post body classes
   this theme also uses. It stacks on top of this theme's own #primary padding-top
   fix (see .site-topbar rules below), producing an oversized gap. Cancel it here;
   this rule loads after framework.css so it wins regardless of viewport width. */
body.woocommerce.woocommerce-page,
body.woocommerce-account,
body.woocommerce-cart,
body.woocommerce-checkout,
body.single-post,
body.page-template-page-legal,
body.woocommerce.woocommerce-page.single-product {
    margin-top: 0;
}
/* Cart (WooCommerce Cart block) and My Account (classic shortcode) are plain WP Pages
   with no theme container wrapping their .entry-content, so beyond the fixed-header
   clearance (--topbar-height, see body:not(.home) #primary) they had zero breathing
   room — content sat flush under the header and stopped abruptly above the footer. */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
    max-width: 75.95rem;
    margin: 0 auto;
    padding: 174px 1rem 48px;
}
/* Legal Page template (page-legal.php) — same "no theme container of its own" gap as
   Cart/My Account above. Width matches .container (the same max-width the header uses)
   rather than a narrower reading column. */
body.page-template-page-legal .legal-page-content {
    max-width: 75.95rem;
    margin: 0 auto;
    padding: 0 1rem 64px;
}
.legal-entry-content {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}
.legal-entry-content h2,
.legal-entry-content h3,
.legal-entry-content h4 {
    color: var(--title-black);
    font-family: var(--font-primary);
    margin: 2rem 0 1rem 0;
}
.legal-entry-content h2 {
    font-size: 1.5rem;
}
.legal-entry-content h3 {
    font-size: 1.25rem;
}
.legal-entry-content p {
    margin: 0 0 1.25rem 0;
}
.legal-entry-content ul,
.legal-entry-content ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}
.legal-entry-content li {
    margin-bottom: 0.5rem;
}
.legal-entry-content a {
    /* framework.css sets a blanket "a { display: flex; }" — without overriding it
       here, inline links inside policy text break onto their own line instead of
       flowing with the surrounding paragraph. */
    display: inline;
    color: var(--color-primary);
    text-decoration: none;
}
.legal-entry-content a:hover {
    text-decoration: underline;
}
.woo-page-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--title-black);
    text-align: center;
    margin: 0 0 2.5rem 0;
}
/* framework.css has a more specific rule forcing the active My Account nav item to
   orange (rgb(224,115,64)) while :hover on the same links uses the theme's blue
   (#456e89) — match them so hover and active look the same. */
body.woocommerce-account.woocommerce-page .entry-content > .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #456e89;
    border-color: #456e89;
}
/* Browsers apply a default yellow-ish background to <ins> (and similar tinting to <del>)
   as diff/revision-tracking styling. WooCommerce wraps sale prices in <ins>/<del>
   everywhere — cart totals, checkout order review (including the React-based Cart/Checkout
   blocks, which render outside any .woocommerce wrapper), price displays — so reset it
   globally here rather than per component. More specific price rules elsewhere in this
   theme layer additional styling (e.g. centered strikethrough) on top of this base. */
ins,
del {
    background: none;
    text-decoration: none;
}
del {
    text-decoration: line-through;
}
:root {
    --font-primary: 'Avenir LT Std', sans-serif;
    --color-primary: #446e89;
    --color-primary-bg: #446e890a;
    --color-secondary: #1d333e;
    --color-text: #4c4c4c;
    --color-black: #000;
    --title-black: #1c272c;
    --title-white: #f7f7f7;
    --btn-hover: #46708b;
    --gradient-blue: linear-gradient(90deg, #6d9ab8 0%, #456f8a 100%);
    /* JS measures the real, rendered height of .site-topbar (notice bar + header) and
       sets --topbar-height directly — this fallback is only used before that JS runs
       (or if it's disabled), so it doesn't need to be pixel-perfect. */
    --topbar-height: 6.5rem;
}
@media screen and (min-width: 900px) {
    :root {
        --topbar-height: 5.5rem;
    }
}
.section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Global */
.container {
    max-width: 75.95rem;
    margin: 0 auto;
}
.font-primary *,
.font-primary {
    font-family: var(--font-primary) !important;
}
.white-btn {
    display: inline-block;
    border-radius: 6.25rem;
    background-color: #fff;
    padding: 1rem 1.5rem;
    color: #000;
    font-weight: 500;
    line-height: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.white-btn:hover {
    color: #fff;
    background-color: var(--btn-hover);
}
.btn-primary {
    display: inline-block;
    border-radius: 6.25rem;
    padding: 1rem 1.5rem;
    color: #fff;
    border: 1px solid var(--btn-hover);
    background-color: var(--btn-hover);
    font-weight: 500;
    line-height: 1em;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #222;
    border-color: #222;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.btn-secondary,
.btn-secondary {
    display: inline-block;
    border-radius: 6.25rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: var(--color-primary);
	background-color: transparent;
    font-size: 1.125rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.btn-secondary:hover,
.btn-secondary:hover {
    color: #fff;
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
}
.out-stock-btn {
	width: 100%;
	text-align: center;
	margin-top: 1.25rem;
	color: red;
	cursor: not-allowed;
	display: inline-block;
    border-radius: 6.25rem;
    padding: 1rem 1.5rem;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    font-size: 1.125rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.section {
    margin: 4rem 0;
    padding: 0 1rem;
}
.space-x {
    padding: 0 1rem;
}
@media screen and (min-width: 768px) {
    .section {
        padding: 0 1.5rem;
        margin: 8rem 0;
    }
    .space-x {
        padding: 0 1.5rem;
    }
	.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.btn-secondary,
    .btn-primary,
    .btn-secondary {
        font-size: 1.125rem;
    }
	.out-stock-btn {
		font-size: 1.125rem;
	}
}

/* Footer */
.footer-bg {
    padding: 5rem 0 1.99rem 0;
    background-color: #253741;
}
.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}
.footer-col,
.footer-menu-col {
    width: 100%;
}
.footer-logo-link {
    display: inline-block;
    max-width: 7rem;
}
.footer-logo,
.footer-logo-link .custom-logo {
    width: 100%;
    height: auto;
    display: block;
}
.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4rem;
    margin-top: 1.43rem;
}
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3125rem;
    letter-spacing: 0.04375rem;
    margin-bottom: 1.6rem;
}
.footer-menu .menu {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
}
.footer-menu .menu-item a {
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.3125rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.footer-menu .menu-item a:hover {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
.footer-divider {
    margin: 2.5rem 0 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-disclaimer {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.3rem;
    margin-bottom: 0.87rem;
}
.footer-copywrite {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.21875rem;
}
@media screen and (min-width: 768px) {
    .footer-col {
        width: calc(40% - 2.25rem);
    }
    .footer-menu-col {
        width: calc(20% - 2.25rem);
    }
    .footer-disclaimer {
        text-align: center;
    }
    .footer-divider {
        margin: 3.94rem 0 2.16rem 0;
    }
}

/* Shop / category archive title (WooCommerce's own .woocommerce-products-header,
   e.g. "Metabolics") — already sized/centered via framework.css; just bring the
   typography in line with the rest of the theme and give it room to breathe below
   the fixed header instead of butting straight up against it. */
.woocommerce-products-header {
    margin-top: 163px;
    margin-bottom: 72px;
}
.woocommerce-products-header h1 {
    font-family: var(--font-primary);
}
@media screen and (max-width: 767px) {
    /* 163px/72px is sized for desktop; unchanged on a phone screen it reads as a huge
       empty gap relative to the much shorter viewport. */
    .woocommerce-products-header {
        margin-top: 48px;
        margin-bottom: 32px;
    }
}

/* Main shop page hero (heading, subheading, product search) — replaces the generic
   archive title on /shop/ specifically; category archives keep the plain title above. */
.shop-hero {
    margin-top: 163px;
    margin-bottom: 72px;
    text-align: center;
    padding: 0 1rem;
}
@media screen and (max-width: 767px) {
    .shop-hero {
        margin-top: 48px;
        margin-bottom: 32px;
    }
}
.shop-hero-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--title-black);
    margin: 0 0 0.75rem 0;
}
.shop-hero-subtitle {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0 0 1.75rem 0;
}
.shop-hero-search {
    max-width: 32rem;
    margin: 0 auto;
}
.shop-hero-search .woocommerce-product-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 0.5rem;
}
.shop-hero-search .search-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
}
.shop-hero-search button[type="submit"] {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.25s ease;
}
/* framework.css has a legacy ".woocommerce form button:hover { background: #456e89; }"
   rule — the shorthand implicitly resets background-image to none, which silently
   wiped out the search icon on hover. Re-declare it explicitly so it survives. */
.shop-hero-search button[type="submit"]:hover {
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
@media screen and (min-width: 768px) {
    .shop-hero-title {
        font-size: 2.75rem;
    }
    .shop-hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Shop / category archive filtering bar */
.filtering-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 28px;
}
.filtering-bar .leftpart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.filtering-bar .right-part {
    margin-left: auto;
}
/* Same chevron SVG used everywhere else in the theme (variation selects, shop-hero
   search), applied here too so all three shop-filter dropdowns (category, attribute,
   sorting) share one consistent arrow instead of the browser's native one. */
.filtering-bar select,
.woocommerce-ordering select {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
/* selectWoo/select2 enhancement applied to .pl-category-filter-select (see
   assets/js/category-filter.js) — restyle its default look to match the plain
   selects above instead of WooCommerce's stock select2 skin. */
.pl-filter .select2-container {
    min-width: 9rem;
}
.pl-filter .select2-container .select2-selection--single {
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.4rem 0.5rem;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.pl-filter .select2-selection__rendered {
    padding: 0 1.5rem 0 0.25rem !important;
    line-height: 1.4 !important;
    color: var(--title-black) !important;
    font-size: 0.875rem;
}
.pl-filter .select2-selection__placeholder {
    color: var(--color-text);
}
.pl-filter .select2-selection__clear {
    color: rgba(0, 0, 0, 0.4);
    margin-right: 0.25rem;
    font-size: 1.125rem;
}
/* Select2's own arrow (a CSS border-triangle inside a <b> tag) is replaced by the SVG
   background-image above — hide the default triangle instead of showing both. */
.pl-filter .select2-selection__arrow {
    height: 100% !important;
}
.pl-filter .select2-selection__arrow b,
/* The "By Type" attribute filter is a separate select2 instance (from the layered-nav
   widget), not wrapped in .pl-filter, so it needs the same arrow-hiding rule too —
   otherwise its default triangle shows alongside the SVG background-image below. */
.woocommerce .filtering-bar .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}
/* framework.css has its own higher-specificity rules for these exact selectors
   (.woocommerce .filtering-bar .woocommerce-ordering select and
   .woocommerce .filtering-bar .select2-container--default .select2-selection--single)
   that set a "background: <color>" shorthand — resetting background-image to none and
   silently removing the chevron SVG set above. Re-assert it here at matching
   specificity so this rule (which loads after framework.css) wins. */
.woocommerce .filtering-bar .woocommerce-ordering select,
.woocommerce .filtering-bar .select2-container--default .select2-selection--single {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
@media screen and (max-width: 767px) {
    /* On mobile the three filter/sort dropdowns stack one per row — without this the
       select2-powered category filter (JS sets width:100% relative to its flex slot,
       but the slot itself doesn't stretch by default) stayed content-width while the
       plain <select> elements next to it filled the row, so only one of the three
       looked full-width. */
    .filtering-bar .leftpart,
    .filtering-bar .right-part {
        width: 100%;
    }
    .filtering-bar .leftpart > * {
        flex: 1 1 100%;
    }
    .pl-filter,
    .pl-filter .select2-container {
        width: 100% !important;
    }
}

/* Shop/category archive product grid — laid out the same flex-wrap way as every other
   product row in the theme (.catalog-row, .products-row, .related-products-row); this
   one was missing its layout rule entirely, so cards stacked one per line instead of
   sitting side by side. */
.custom-products-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.25rem;
    row-gap: 3rem;
    margin-bottom: 64px;
}

/* Product Item */
.product-item {
    width: calc(50% - 0.65rem);
	position: relative;
}
.product-item-link {
    flex-direction: column;
}
.product-item * {
    text-decoration: none;
}
.product-item:hover .product-item-img {
    border-color: var(--color-primary);
}
.product-item:hover .product-item-title {
    color: var(--color-primary);
}
.product-item-img {
    border-radius: 0.75rem;
    border: 1px solid #cecece;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: all 0.3s ease;
}
.product-item-title {
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    line-height: 130%;
    margin: 1.06rem 0 0.75rem 0;
    transition: all 0.3s ease;
}
.product-item-price .woocommerce-Price-amount {
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 110%;
}
/* On-sale price: WooCommerce wraps the regular price in <del> and the sale price in
   <ins> automatically whenever a product has a sale price — style each distinctly so
   the discount is obvious at a glance. */
.product-item-price del {
    text-decoration: none;
    background: none;
    position: relative;
    display: inline-block;
    margin-right: 0.4em;
}
.product-item-price del::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}
.product-item-price del,
.product-item-price del .woocommerce-Price-amount {
    color: #000;
    font-weight: 400;
}
.product-item-price ins {
    text-decoration: none;
    background: none;
}
.product-item-price ins,
.product-item-price ins .woocommerce-Price-amount {
    color: #000;
    font-weight: 500;
}
.product-item-btn {
    margin-top: 1.25rem;
    width: 100%;
    text-align: center;
}
.product-btn-wrapper {
    text-align: center;
}
.product-btn {
    margin: 2.5rem auto 0 auto;
    padding: 1rem 4rem;
}
.catalog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
    animation: fadeIn 0.2s ease;
    position: absolute;
    left: 0;
    top: 20rem;
    z-index: 10;
}
.catalog-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: catalog-spin 0.8s linear infinite;
}
@keyframes catalog-spin {
    to { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media screen and (min-width: 768px) {
    .product-item {
        width: calc(25% - 0.9375rem);
    }
    .product-item-title {
        font-size: 1.25rem;
    }
    .product-item-price .woocommerce-Price-amount {
        font-size: 1rem;
    }
    .product-btn {
        margin: 3.44rem auto 0 auto;
    }
}

/* Single fixed anchor for both the notice bar and the header — they stack inside it in
   normal document flow, so there's no gap/overlap risk from a mismatched height guess. */
.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.research-notice {
    background: #0d1a24;
    color: #fff;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    line-height: 1.4;
}
#header {
    position: relative;
    width: 100%;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}
/* Pages without a hero image (.header-black, added when !is_front_page()) start with a
   transparent header and dark text/icons instead of a solid background — matching the
   original theme. Once scrolled past the threshold, .active kicks in on every page alike,
   giving the same blue background + light text as the homepage. */
#header.active {
    background-color: rgba(69, 111, 138, 0.92);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#header:not(.active).header-black .header-logo-text {
    color: #222;
}
/* The uploaded logo is an <img> referencing an SVG with a hardcoded white fill — CSS
   can't restyle color/fill inside an external image, so flip it to dark with a filter
   instead (the mark is solid single-color, so brightness(0) reads as a clean swap). */
#header:not(.active).header-black .custom-logo {
    filter: brightness(0);
}
#header:not(.active).header-black .header-icon {
    color: #222;
}
#header:not(.active).header-black .header-cart-wrapper #fkcart-mini-toggler svg {
    color: #222;
}
#header:not(.active).header-black .hamburger span {
    background: #222;
}
#header:not(.active).header-black .header-menu .menu > .menu-item > a:hover,
#header:not(.active).header-black .header-icon-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
@media screen and (min-width: 1240px) {
    /* Scoped to direct children of .menu only — the "Categories" dropdown's own
       .sub-menu links keep their explicit white-on-navy styling regardless of
       .header-black, since that submenu always has its own dark background. */
    #header:not(.active).header-black .header-menu .menu > .menu-item > a {
        color: #222;
    }
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}
@media screen and (min-width: 480px) {
    .header-row {
        gap: 1rem;
    }
}

/* Non-front-page templates have no full-height hero to sit behind the fixed
   .site-topbar (notice bar + header), so push their content down to clear it.
   #primary alone is enough: the theme's own classic templates put id="primary" and
   class="site-main" on the same <main> element, but WooCommerce's own content wrapper
   nests a separate .site-main *inside* #primary — targeting both would apply this
   padding twice on WooCommerce pages (shop, single product, etc). */
body:not(.home) #primary {
    padding-top: var(--topbar-height);
}
/* Contact (page-id-122) and About (page-id-133) both open with a full-bleed hero image
   that already has its own 36px margin-top breathing room, so they don't need the full
   topbar clearance the way plain-content pages do — reduced just for these two. */
body.page-id-122 #primary,
body.page-id-133 #primary {
    padding-top: 36px;
}
/* Certificate of Analysis (page-id-142) uses a custom, smaller topbar clearance instead
   of the default var(--topbar-height). */
body.page-id-142 #primary {
    padding-top: 116px;
}
.header-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}
.header-menu .menu a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 300;
    padding: 10px 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.header-menu .menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.header-logo-wrapper {
    max-width: 8rem;
    min-width: 0;
    overflow: hidden;
    flex-shrink: 1;
}
.header-logo {
    display: grid;
}
.header-logo svg,
.header-logo-wrapper .custom-logo {
    width: 100%;
    height: auto;
}
.header-icons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-shrink: 0;
}
@media screen and (min-width: 480px) {
    .header-icons {
        gap: 0.5rem;
    }
}
.header-icon-link {
    display: grid;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.header-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #fff;
}
.header-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* The FunnelKit floating cart bubble sits flush with the viewport's bottom-right
   corner, which overlaps the homepage hero's bottom disclaimer bar. Lift it clear
   of that bar specifically on the front page. */
body.home #fkcart-floating-toggler {
    bottom: 5rem !important;
}
.header-cart-wrapper #fkcart-mini-toggler {
	padding: 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.header-cart-wrapper #fkcart-mini-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.header-cart-wrapper #fkcart-mini-toggler svg {
	color: #fff;
}
/* Hamburger icon */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s ease;
}
.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    transform-origin: center;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}
.hamburger span:nth-child(1) {
    transform: translateY(-7px);
}
.hamburger span:nth-child(2) {
    transform: translateY(0);
}
.hamburger span:nth-child(3) {
    transform: translateY(7px);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}
@media screen and (min-width: 1240px) {
    .header-row {
        padding: 0.75rem 0;
    }
    .mobile-menu-btn {
        display: none;
    }
    .header-logo-wrapper {
        max-width: 10rem;
    }
}
@media screen and (max-width: 1240px) {
    /* Menu panel */
    .mobile-menu-wrapper {
        padding: 2rem;
        width: 100%;
        position: absolute;
        top: 56px;
        left: 0;
        /* Solid, not translucent-over-blur: a semi-transparent background here depends on
           backdrop-filter compositing correctly to stay legible, which isn't consistent
           across every rendering engine — a fully opaque panel can't ever let page
           content bleed through, regardless. */
        background: #19374b;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
        transform: translateY(-12px) scaleY(0.96);
        transform-origin: top center;
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.3s ease;
    }
    .mobile-menu.active .mobile-menu-wrapper {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    /* Menu items stagger */
    .header-menu .menu {
        flex-direction: column;
        gap: 0.25rem;
    }
    .header-menu .menu-item {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-6px);
        transition:
            opacity 0.3s ease,
            transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mobile-menu.active .menu-item:nth-child(1) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.07s;
    }
    .mobile-menu.active .menu-item:nth-child(2) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.12s;
    }
    .mobile-menu.active .menu-item:nth-child(3) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.17s;
    }
    .mobile-menu.active .menu-item:nth-child(4) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.22s;
    }
    .mobile-menu.active .menu-item:nth-child(5) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.27s;
    }
    .header-menu .menu a {
        padding: 1rem;
        width: 100%;
    }

    /* Nested "Categories" submenu, expanded in place via the accordion toggle in
       site.js. Closed by default — site.js only ever sets display:block inline once a
       parent item is tapped (and display:none again when collapsing), it never
       establishes the initial closed state, so without this the submenu rendered as a
       plain nested <ul> and was visibly open on page load with no interaction. */
    .header-menu .sub-menu {
        display: none;
        list-style: none;
        margin: 0.25rem 0 0.5rem 0;
        padding: 0;
    }
    .header-menu .sub-menu .menu-item {
        width: 100%;
    }
    .header-menu .sub-menu a {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.8);
    }
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.product-item-btn.loading,
.product-item-btn.loading {
    background-color: var(--btn-hover) !important;
    position: relative;
    pointer-events: none;
	color: #fff;
	padding: 14px 1.5rem 15px 1.5rem;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.product-item-btn.loading span,
.product-item-btn.loading span {
	display: none;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.product-item-btn.loading::after,
.product-item-btn.loading::after {
	display: inline-block;
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff; /* Spinner color */
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
	position: relative;
    top: 0;
    left: 0;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
/* "View cart" link WooCommerce inserts after a successful add-to-cart — hidden
   everywhere (shop grid, single product, etc.), not just on product cards.
   WooCommerce's own woocommerce.css sets the same selector to display:inline-block
   and loads after this stylesheet, so at equal specificity it would otherwise win
   by source order — !important guarantees this wins regardless of enqueue order. */
.added_to_cart {
    display: none !important;
}

.product-item-tab {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	color: #222;
	background-color: rgba(70, 112, 139, 0.15);
	backdrop-filter: blur(2px);
	font-size: 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	padding: 6px 12px;
}
@media screen and (max-width: 767px) {
	.product-item-tab {
		font-size: 12px;
	}
}
/* Ported from peptara-child style.css overrides */
.product-listing-category {
    display: none !important;
}

.blockUI.blockOverlay::before,
.woocommerce .blockUI.blockOverlay::before {
	display: none !important;
}

.blockUI.blockOverlay {
	background: rgba(255, 255, 255, 0.7) !important;
	backdrop-filter: blur(2px);
}
.blockUI.blockOverlay::after {
	content: "";
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	margin-left: -20px;
	border-radius: 50%;
	border: 3px solid #eee;
	border-top-color: #3498db;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== Text logo fallback (shown when no Customizer custom logo image is set) =====
   Unlike the old fixed-aspect SVG mark, text doesn't scale to its box on its own, so it
   needs its own responsive sizing to avoid overflowing the header on small screens. */
.header-logo-text {
	display: block;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media screen and (min-width: 480px) {
	.header-logo-text {
		font-size: 1.25rem;
		letter-spacing: 0.1em;
	}
}
@media screen and (min-width: 768px) {
	.header-logo-text {
		font-size: 1.5rem;
		letter-spacing: 0.12em;
	}
}
@media screen and (min-width: 1240px) {
	.header-logo-text {
		font-size: 1.75rem;
	}
}

/* ===== Header shortcode slot ===== */
.header-shortcode {
	display: flex;
	align-items: center;
}

/* ===== Desktop dropdown submenus ("Categories" style menu items) ===== */
@media screen and (min-width: 1240px) {
	.header-menu .menu-item-has-children {
		position: relative;
	}
	.header-menu .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0.5rem;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 12rem;
		background: #1a2a3a;
		border-radius: 0.75rem;
		box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition:
			opacity 0.25s ease,
			transform 0.25s ease,
			visibility 0.25s ease;
		z-index: 20;
	}
	.header-menu .menu-item-has-children:hover > .sub-menu,
	.header-menu .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.header-menu .sub-menu .menu-item {
		width: 100%;
	}
	.header-menu .sub-menu a {
		display: block;
		width: 100%;
		padding: 0.75rem 1rem;
		border-radius: 0.5rem;
		color: rgba(255, 255, 255, 0.85);
		font-size: 1rem;
		font-weight: 400;
		white-space: nowrap;
	}
	.header-menu .sub-menu a:hover,
	.header-menu .sub-menu .current-menu-item > a {
		background-color: var(--color-primary);
		color: #fff;
	}
}
