/* NutFlex site styles. Tokens mirror the design canvas (Website page). */
:root {
	--nf-cream: #FBF8F2;
	--nf-sand: #F2ECDF;
	--nf-tile: #F5F0E1;
	--nf-ink: #2C2620;
	--nf-body: #4a443c;
	--nf-muted: #6b6257;
	--nf-line: #DED3BE;
	--nf-line-soft: #ECE4D4;
	--nf-accent: #A04B2B;
	--nf-veg: #2E7D32;
	--nf-head: 'Baloo 2', 'Trebuchet MS', sans-serif;
	--nf-text: 'Poppins', 'Segoe UI', Arial, sans-serif;
	--nf-gutter: clamp(16px, 4vw, 48px);
}

body.nf {
	background: var(--nf-cream);
	color: var(--nf-body);
	font-family: var(--nf-text);
	overflow-x: clip;
}
body.nf h1, body.nf h2, body.nf h3 { font-family: var(--nf-head); font-weight: 800; color: var(--nf-ink); }
body.nf a { color: var(--nf-accent); }

.nf-full { width: 100vw; margin-left: calc(50% - 50vw); }
.nf-wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--nf-gutter); padding-right: var(--nf-gutter); box-sizing: border-box; }
.nf-kicker { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; color: var(--nf-body); }
.nf-h2 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1; }
.nf-muted { font-size: 14px; color: var(--nf-muted); }
.nf-link { color: var(--nf-ink) !important; font-weight: 600; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* Buttons (ours + WooCommerce) */
body.nf .nf-btn, body.nf .button, body.nf button.button, body.nf .single_add_to_cart_button,
body.nf .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	border-radius: 26px; border: 1.5px solid var(--nf-ink); background: var(--nf-ink); color: #fff;
	font-family: var(--nf-text); font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s;
}
body.nf .nf-btn--line { background: transparent; color: var(--nf-ink); min-height: 44px; font-size: 14px; width: 100%; box-sizing: border-box; }
body.nf .nf-btn--line:hover { background: var(--nf-ink); color: #fff; }
body.nf .single_add_to_cart_button, body.nf .wc-block-components-checkout-place-order-button { background: var(--nf-accent); border-color: var(--nf-accent); }
body.nf .added_to_cart { margin-left: 12px; font-size: 14px; font-weight: 600; color: var(--nf-ink); }

/* ---------- Hero C ---------- */
.nf-hero { background: var(--nf-tint); transition: background-color .45s ease; }
.nf-hero__in { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--nf-gutter); box-sizing: border-box;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.nf-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.nf-hero__h1 { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nf-hero__pre { font-family: var(--nf-text); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: var(--nf-body); }
.nf-hero__word { font-size: clamp(64px, 8.4vw, 120px); line-height: .9; letter-spacing: -2px; color: var(--nf-ink); overflow-wrap: anywhere; }
.nf-hero__tag { font-family: 'Caveat', var(--nf-head); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; color: var(--nf-ink);
	transform: rotate(-3deg); border-bottom: 3px solid var(--nf-color); padding-bottom: 2px; }
.nf-hero__line { margin: 0; font-size: 17px; line-height: 1.6; color: #3a332a; max-width: 440px; }
.nf-hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nf-hero__amt { font-size: 28px; font-weight: 700; color: var(--nf-ink); }
.nf-hero__meta { font-size: 14px; color: #3a332a; }
.nf-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.nf .nf-chip, body.nf .nf-chip:hover, body.nf .nf-chip:focus { border-color: var(--nf-ink); color: var(--nf-ink); background: transparent; }
body.nf .nf-chip[aria-pressed="true"] { background: var(--nf-ink); color: #F8F3E8; }
body.nf .nf-wall__name, body.nf .nf-wall__name *, body.nf .nf-link { text-decoration: none; }
body.nf .nf-link:hover { text-decoration: underline; }
.nf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 22px;
	border: 1.5px solid var(--nf-ink); background: transparent; color: var(--nf-ink); font: 600 14px var(--nf-text); cursor: pointer; }
.nf-chip[aria-pressed="true"] { background: var(--nf-ink); color: #F8F3E8; }
.nf-chip__dot { width: 14px; height: 14px; border-radius: 50%; }
.nf-chip[aria-pressed="true"] .nf-chip__dot { box-shadow: 0 0 0 2px #F8F3E8; }
.nf-chip:focus-visible, .nf-btn:focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 2px; }
.nf-hero__media { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.nf-hero__tile { aspect-ratio: 5 / 6; border-radius: 36px; overflow: hidden; background: var(--nf-tile); display: flex; align-items: center;
	justify-content: center; box-shadow: 0 30px 60px rgba(44,38,32,.16); }
.nf-hero__tile img { height: 100%; width: auto; max-width: none; display: block; }
.nf-sticker { position: absolute; top: -18px; right: -10px; width: 96px; height: 96px; border-radius: 50%; background: var(--nf-ink); color: #F8F3E8;
	display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(10deg); text-align: center; line-height: 1.05; }
.nf-sticker b { font-family: var(--nf-head); font-size: 26px; }
.nf-sticker span { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }

/* ---------- Colour wall ---------- */
.nf-wall { padding-top: clamp(48px, 6vw, 88px); }
.nf-wall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-bottom: 28px; }
.nf-wall__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.nf-wall__panel { flex: 1 0 max(230px, 20%); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--nf-tint); }
.nf-wall__img { display: block; aspect-ratio: 5 / 8; overflow: hidden; background: var(--nf-tint); }
.nf-wall__img img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; }
.nf-wall__info { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 22px; background: color-mix(in srgb, var(--nf-tint) 94%, #7a6a4a); }
.nf-wall__row2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nf-wall__name { display: flex; flex-direction: column; text-decoration: none; color: var(--nf-ink) !important; }
.nf-wall__name b { font-family: var(--nf-head); font-weight: 800; font-size: 26px; line-height: 1; }
.nf-wall__name span, .nf-wall__price span { font-size: 12px; color: #3a332a; margin-top: 4px; }
.nf-wall__price { display: flex; flex-direction: column; align-items: flex-end; }
.nf-wall__price b { font-size: 16px; color: var(--nf-ink); }

/* ---------- Window ---------- */
.nf-window { background: var(--nf-sand); margin-top: clamp(56px, 6vw, 96px); }
.nf-window__in { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.nf-window__tile { width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 5 / 6; border-radius: 28px; overflow: hidden; background: var(--nf-tile);
	display: flex; align-items: center; justify-content: center; }
.nf-window__tile img { height: 100%; width: auto; max-width: none; display: block; }
.nf-window__copy { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.nf-window__copy p { margin: 0; font-size: 17px; line-height: 1.65; }
.nf-rows { margin: 8px 0 0; border-top: 1px solid var(--nf-line); }
.nf-rows > div { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--nf-line); }
.nf-rows dt { flex: none; width: 128px; font-size: 14px; font-weight: 600; color: var(--nf-ink); }
.nf-rows dd { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Trust strip ---------- */
.nf-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; padding-top: clamp(48px, 6vw, 88px); padding-bottom: 8px; color: var(--nf-ink); }
.nf-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.nf-trust__item svg { flex: none; }
.nf-trust__item b { display: block; font-size: 15px; font-weight: 600; }
.nf-trust__item span { display: block; font-size: 14px; color: var(--nf-body); margin-top: 2px; }

/* ---------- FAQ (core Details blocks inside a Group with class nf-faq) ---------- */
.nf-faq { max-width: 820px; margin: clamp(56px, 6vw, 96px) auto; padding: 0 var(--nf-gutter); }
.nf-faq h2 { text-align: center; font-size: clamp(32px, 3.6vw, 46px); line-height: 1; margin: 0 0 24px; }
.nf-faq details { border-bottom: 1px solid var(--nf-line); }
.nf-faq details:first-of-type { border-top: 1px solid var(--nf-line); }
.nf-faq summary { cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--nf-ink); }
.nf-faq details p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; }

/* ---------- Product page ---------- */
.nf-pdp-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--nf-muted); margin-bottom: 8px; }
.nf-veg { width: 12px; height: 12px; border: 1.5px solid var(--nf-veg); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.nf-veg span { width: 6px; height: 6px; border-radius: 50%; background: var(--nf-veg); }
body.nf .product .product_title { font-size: clamp(36px, 3.8vw, 50px); line-height: 1; margin: 0 0 6px; }
.nf-pdp-sub { font-size: 15px; color: var(--nf-body); margin-bottom: 14px; }
body.nf .product .summary .price { font-size: 30px; font-weight: 700; color: var(--nf-ink); margin: 0; }
.nf-pdp-unit { font-size: 13px; color: var(--nf-muted); margin: 2px 0 16px; }
.nf-pdp-chips { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-pdp-chips li { font-size: 13px; padding: 6px 12px; border-radius: 16px; background: var(--nf-sand); color: var(--nf-ink); }
body.nf .product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
body.nf .product form.cart .quantity input { min-height: 52px; width: 76px; border: 1.5px solid var(--nf-ink); border-radius: 26px; text-align: center; font-size: 16px; }
.nf-pdp-nudge { font-size: 13px; color: var(--nf-ink); margin: 6px 0 16px; }
.nf-pdp-nudge span { color: var(--nf-veg); }
.nf-pdp-trust { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--nf-sand); font-size: 14px; margin-bottom: 24px; }
body.nf .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--nf-line); display: flex; flex-wrap: wrap; gap: 4px 20px; }
body.nf .woocommerce-tabs ul.tabs li { list-style: none; margin: 0; }
body.nf .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; font-weight: 600; color: var(--nf-muted); text-decoration: none; }
body.nf .woocommerce-tabs ul.tabs li.active a { color: var(--nf-ink); box-shadow: inset 0 -2px 0 var(--nf-ink); }
.nf-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; }
.nf-table caption { text-align: left; color: var(--nf-muted); font-size: 13px; padding-bottom: 8px; }
.nf-table th, .nf-table td { padding: 8px 0; border-bottom: 1px solid var(--nf-line-soft); text-align: left; font-weight: 400; }
.nf-table td { text-align: right; font-weight: 600; color: var(--nf-ink); }
.nf-dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 16px; max-width: 640px; font-size: 14px; line-height: 1.5; }
.nf-dl dt { color: var(--nf-muted); }
.nf-dl dd { margin: 0; color: var(--nf-ink); }
body.nf .woocommerce-product-gallery { opacity: 1 !important; }
body.nf .woocommerce-product-gallery__wrapper { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
body.nf .woocommerce-product-gallery__image { border-radius: 20px; overflow: hidden; background: var(--nf-tile); }
body.nf .woocommerce-product-gallery__image:first-child { flex: 1 1 100%; }
body.nf .woocommerce-product-gallery__image:nth-child(n+2) { flex: 0 0 96px; width: 96px !important; }
body.nf .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
body.nf .related > h2 { font-size: clamp(30px, 3.2vw, 42px); }

/* ---------- Shop cards ---------- */
body.nf ul.products li.product { text-align: left; }
body.nf ul.products li.product img { border-radius: 18px; background: var(--nf-tile); }
body.nf ul.products li.product .woocommerce-loop-product__title { font-family: var(--nf-text); font-size: 15px; font-weight: 600; color: var(--nf-ink); }
body.nf ul.products li.product .price { color: var(--nf-ink); font-weight: 700; font-size: 17px; }
.nf-loop-unit { display: block; font-size: 12px; color: var(--nf-muted); margin: 2px 0 8px; }
body.nf ul.products li.product .button { min-height: 44px; font-size: 14px; background: transparent; color: var(--nf-ink); width: 100%; }

/* ---------- Text pages (policies, about, contact) ---------- */
body.nf.page:not(.home) .page-content, body.nf.page:not(.home) .entry-content { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.7; }
body.nf.page:not(.home) .page-header .entry-title { max-width: 760px; margin: 32px auto 8px; font-size: clamp(34px, 4vw, 48px); }

/* ---------- Header cart count (added by nutflex.js) ---------- */
.nf-cart-link { position: relative; }
.nf-cart-count { display: inline-block; vertical-align: 1px; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
	background: var(--nf-accent); color: #fff; font: 700 11px/18px var(--nf-text); text-align: center; }
.nf-cart-count[hidden] { display: none; }

/* ---------- WooCommerce defaults we override ---------- */
body.nf.woocommerce div.product form.cart .button, body.nf.woocommerce .button.alt, body.nf .woocommerce .button.alt {
	background: var(--nf-accent) !important; border-color: var(--nf-accent) !important; color: #fff !important; border-radius: 26px; min-height: 52px; padding: 0 32px; }
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; overflow: visible; }
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs::before, body.nf.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; }
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 600; color: var(--nf-muted); }
body.nf.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--nf-ink); box-shadow: inset 0 -2px 0 var(--nf-ink); }
body.nf .woocommerce-tabs .panel { font-size: 15px; line-height: 1.65; }
body.nf .woocommerce-tabs .panel h3 { font-size: 20px; margin: 18px 0 6px; }
body.nf .nf-pdp-unit { color: var(--nf-body); }
body.nf.woocommerce span.onsale { display: none; }

/* ---------- Elementor header + footer menus ---------- */
/* Header row (Elementor element 4e82dafa): logo | menu | links as a grid so the menu never spills over the links. */
.elementor-location-header .elementor-element-4e82dafa { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
.elementor-location-header .elementor-widget-nav-menu { min-width: 0; width: 100%; }
.elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap: wrap; justify-content: center; }
.elementor-location-footer .elementor-nav-menu--layout-vertical .elementor-item { padding-left: 0 !important; padding-right: 0 !important; }
.elementor-location-header .elementor-nav-menu--main .elementor-item { font-family: var(--nf-text) !important; font-size: 14px !important; font-weight: 500 !important; color: var(--nf-body); padding: 10px 12px; }
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover { color: var(--nf-ink); }
.elementor-location-header .elementor-nav-menu--main .elementor-item::after { background-color: var(--nf-ink) !important; height: 2px !important; }
.elementor-location-header .elementor-menu-toggle { background: transparent; color: var(--nf-ink); font-size: 22px; }
.elementor-location-header .elementor-nav-menu--dropdown { background: var(--nf-cream); }
.elementor-location-header .elementor-nav-menu--dropdown a { font-family: var(--nf-text); color: var(--nf-ink) !important; padding: 14px 20px !important; }
.elementor-location-header .elementor-nav-menu--dropdown a:hover, .elementor-location-header .elementor-nav-menu--dropdown a.elementor-item-active { background: var(--nf-sand) !important; }
.elementor-location-footer .elementor-nav-menu a { font-family: var(--nf-text) !important; font-size: 14px; color: #F8F3E8 !important; padding: 5px 0 !important; }
.elementor-location-footer .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li > a { color: #C9BEA9 !important; font-size: 12px; padding: 0 0 0 20px !important; }
.elementor-location-footer a { color: #F8F3E8; }

/* Header: keep Account/Cart from being squeezed by the menu (element 6a9d839e = "Header links" in Elementor header 53). */
.elementor-location-header .elementor-nav-menu--main .elementor-item { padding-left: 10px; padding-right: 10px; }
/* Shop + related cards: outline buttons */
body.nf.woocommerce ul.products li.product .button, body.nf .woocommerce ul.products li.product .button {
	display: flex !important; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 44px; margin-top: 6px;
	border: 1.5px solid var(--nf-ink) !important; border-radius: 22px !important; background: transparent !important; color: var(--nf-ink) !important; font-size: 14px; font-weight: 600; }
body.nf.woocommerce ul.products li.product .button:hover { background: var(--nf-ink) !important; color: #fff !important; }
.nf-loop-unit { color: var(--nf-body); }

/* ---------- Cart + Checkout blocks ---------- */
body.nf .wc-block-components-text-input input, body.nf .wc-block-components-combobox input, body.nf .wc-blocks-components-select select {
	border-radius: 12px !important; border-color: #B9AD97 !important; background: #fff; }
body.nf .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.nf .wp-block-woocommerce-cart-order-summary-block { background: var(--nf-sand); border-radius: 20px; padding: 20px; }
body.nf .wc-block-components-radio-control__option { border-radius: 14px; }
