/*
Theme Name: Fresh Desh
Theme URI: https://example.com/
Author: Fresh Desh Ltd.
Description: Online supermarket theme for Fresh Desh Supermarket: Asian groceries, halal meat and frozen fish. Built for WooCommerce. Edit every page with blocks; add ready-made sections from Patterns > Fresh Desh shop sections.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 2.4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fresh-desh
Tags: block-patterns, full-site-editing, e-commerce, one-column, custom-colors
*/

/* ==========================================================================
   Design tokens (mirror the Figma "FD" variables)
   ========================================================================== */
:root {
	--fd-green: var(--wp--preset--color--brand, #0B3C38);
	--fd-green-700: var(--wp--preset--color--brand-dark, #0E5550);
	--fd-green-500: var(--wp--preset--color--leaf, #0B7D77);
	--fd-green-100: var(--wp--preset--color--mint, #E8F4EE);
	/* Logo colours: decorative use only (stripes, marks), not for small text. */
	--fd-logo-green: var(--wp--preset--color--logo-green, #3BAA35);
	--fd-logo-lime: var(--wp--preset--color--logo-lime, #95C11F);
	--fd-logo-teal: var(--wp--preset--color--logo-teal, #12A09A);
	--fd-stripe: linear-gradient(90deg, var(--fd-logo-green) 0 33.34%, var(--fd-logo-lime) 33.34% 66.67%, var(--fd-logo-teal) 66.67% 100%);
	--fd-turmeric: var(--wp--preset--color--saffron, #95C11F);
	--fd-turmeric-light: var(--wp--preset--color--turmeric-light, #CFE38A);
	--fd-terracotta: var(--wp--preset--color--terracotta, #B5532C);
	--fd-clay: var(--wp--preset--color--clay, #2B1A14);
	--fd-offer: var(--wp--preset--color--chilli, #C8102E);
	--fd-ink: var(--wp--preset--color--ink, #17211C);
	--fd-muted: var(--wp--preset--color--muted, #5E6B64);
	--fd-line: var(--wp--preset--color--line, #E3E6E1);
	--fd-subtle: var(--wp--preset--color--subtle, #F5F6F2);
	--fd-sand: var(--wp--preset--color--sand, #EFE5D3);
	--fd-cream: var(--wp--preset--color--cream, #F7F1E6);
	--fd-paper: var(--wp--preset--color--paper, #FBFAF6);
	--fd-inverse: #F4FAF7;
	--fd-radius: 12px;      /* inputs, small surfaces */
	--fd-radius-sm: 10px;   /* images inside cards */
	--fd-radius-card: 18px; /* product cards, tiles */
	--fd-radius-lg: 24px;   /* panels, photos */
	--fd-radius-xl: 28px;   /* hero and banners */
	--fd-pill: 999px;       /* buttons, chips */
	--fd-hero-bg: #073834;  /* matches the hero photo background */
	--fd-focus: 0 0 0 3px var(--fd-green-500);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.fd-main { margin-top: 0 !important; }
.fd-main > .wp-block-post-content > * { margin-block-start: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--fd-green-500); outline-offset: 2px; }
img { height: auto; }

/* ==========================================================================
   Generic helpers
   ========================================================================== */
.fd-section { padding-block: clamp(56px, 7vw, 96px); }
.fd-section--tight { padding-block: clamp(32px, 4vw, 56px); }
.fd-section--tight + .fd-section--tight { padding-top: 0; }
.fd-bg-cream { background: var(--fd-cream); }
.fd-bg-mint { background: var(--fd-green-100); }
.fd-section-title { margin-block: 0 1.5rem !important; }
.fd-section-head { margin-bottom: 1.5rem; gap: 1rem; }
.fd-section-head .fd-section-title, .fd-section-head p { margin-bottom: 0 !important; }
.fd-more { margin: 0; font-weight: 600; font-size: .9375rem; }
.fd-more a { text-decoration: none; color: var(--fd-green); }
.fd-more a::after { content: " \2192"; }
.fd-more a:hover { text-decoration: underline; }
.fd-eyebrow {
	font-size: .75rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--fd-green-500); margin-bottom: .6rem !important;
}
.fd-kicker { font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 1.25rem; color: var(--fd-turmeric-light); margin: 0 0 .75rem !important; }
.fd-lead { font-size: 1.125rem; line-height: 1.6; max-width: 60ch; }
.fd-lead--dark { color: var(--fd-muted); }
.fd-note { color: var(--fd-muted); font-size: .875rem; margin: .25rem 0 0; }
.fd-split { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.fd-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fd-chips span { border: 1px solid currentColor; border-radius: var(--fd-pill); padding: .4rem .8rem; font-size: .875rem; opacity: .9; }

.fd-ticks { list-style: none; padding-left: 0; }
.fd-ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; }
.fd-ticks li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem;
	border-left: 2px solid var(--fd-green-500); border-bottom: 2px solid var(--fd-green-500); transform: rotate(-45deg);
}

.fd-photo { margin: 0; }
.fd-photo img { border-radius: var(--fd-radius-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fd-photo--tall img { aspect-ratio: 3 / 4; }
.fd-gallery .fd-photo img { aspect-ratio: 1; }

/* Buttons */
.wp-block-button .wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button.is-style-fd-light .wp-block-button__link { background: #fff; color: var(--fd-green); }
.wp-block-button.is-style-fd-light .wp-block-button__link:hover { background: var(--fd-green-100); }
.wp-block-button.is-style-fd-accent .wp-block-button__link { background: var(--fd-turmeric); color: var(--fd-ink); }
.wp-block-button.is-style-fd-accent .wp-block-button__link:hover { background: #84AD14; color: var(--fd-ink); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: inherit; padding: calc(.85em - 1.5px) calc(1.6em - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   Header
   ========================================================================== */
.fd-topbar { background: var(--fd-green); color: #D3E6E1; font-size: .8125rem; padding-block: .5rem; position: relative; }
/* Brand signature: the three logo leaves as a thin stripe. */
.fd-topbar::before, .fd-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--fd-stripe); }
.fd-topbar p { margin: 0; }
.fd-topbar a { color: #fff; text-decoration: none; }
.fd-topbar a:hover { text-decoration: underline; }
.fd-topbar__links { display: flex; gap: 1.25rem; }

/* The whole header (announcement bar, logo row, menu) stays at the top while scrolling. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; background: #fff; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.fd-header {
	background: #fff;
	border-bottom: 1px solid var(--fd-line); padding-block: .9rem; margin-top: 0 !important;
}
/* After scrolling: hide the announcement bar so the header is slimmer. */
.fd-scrolled .fd-topbar { display: none; }
.fd-scrolled header.wp-block-template-part { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.fd-search-toggle { display: none; }
.fd-header__inner { gap: 1.5rem; align-items: center; }
.fd-brand { gap: .65rem !important; align-items: center; flex-shrink: 0; }
.fd-brand .wp-block-site-logo img { display: block; width: auto; max-height: 44px; }
.fd-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1; }
.fd-brand .wp-block-site-title a { color: var(--fd-green); text-decoration: none; }

.fd-search { flex: 1 1 auto; max-width: 620px; margin: 0 !important; }
.fd-search .wp-block-search__inside-wrapper { border: 1.5px solid var(--fd-green) !important; border-radius: var(--fd-radius); padding: 3px !important; background: #fff; }
.fd-search .wp-block-search__input { border: 0; padding: .55rem .75rem; font-size: .9375rem; background: transparent; min-width: 0; }
.fd-search .wp-block-search__input:focus { outline: none; }
.fd-search .wp-block-search__inside-wrapper:focus-within { box-shadow: var(--fd-focus); }
.fd-search .wp-block-search__button { margin: 0; border-radius: 9px; padding: .55rem 1.1rem; font-size: .875rem; }

/* Postcode checker */
.fd-pc { position: relative; flex-shrink: 0; }
.fd-pc__details > summary { list-style: none; }
.fd-pc__details > summary::-webkit-details-marker { display: none; }
.fd-pc__summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; padding: .45rem .75rem; border-radius: var(--fd-radius); background: var(--fd-subtle); color: var(--fd-green); }
.fd-pc__summary span { display: flex; flex-direction: column; line-height: 1.2; }
.fd-pc__summary small { font-size: .6875rem; color: var(--fd-muted); }
.fd-pc__summary strong { font-size: .8125rem; color: var(--fd-ink); font-weight: 600; }
.fd-pc__form {
	position: absolute; right: 0; top: calc(100% + .5rem); z-index: 120; width: min(340px, 90vw);
	background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 1rem;
	box-shadow: 0 12px 32px rgba(23, 33, 28, .14);
}
.fd-pc__form label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.fd-pc__row { display: flex; gap: .5rem; }
.fd-pc__row input { flex: 1; min-width: 0; border: 1px solid #C9CFC9; border-radius: var(--fd-radius); padding: .6rem .75rem; font: inherit; text-transform: uppercase; }
.fd-pc__row button { padding: .6rem 1rem; }
.fd-pc__msg { margin: .6rem 0 0; font-size: .875rem; min-height: 1.2em; }
.fd-pc__form.is-yes .fd-pc__msg { color: var(--fd-green-500); font-weight: 600; }
.fd-pc__form.is-error .fd-pc__msg { color: #B42318; }
.fd-pc__form.is-error input { border-color: #B42318; border-width: 2px; }

.fd-header__tools { gap: 1.1rem !important; align-items: center; flex-shrink: 0; }
.fd-header__tools .wc-block-customer-account__link { color: var(--fd-ink); font-size: .875rem; font-weight: 500; text-decoration: none; }
.fd-minicart .wc-block-mini-cart__button {
	background: var(--fd-green); color: #fff; border-radius: var(--fd-radius); padding: .6rem .9rem; font-weight: 700; font-size: .9375rem; gap: .5rem;
}
.fd-minicart .wc-block-mini-cart__button:hover { background: var(--fd-green-700); opacity: 1; }
.fd-minicart .wc-block-mini-cart__badge { background: var(--fd-turmeric); color: var(--fd-ink); border: 0; font-weight: 700; }
.fd-minicart .wc-block-mini-cart__icon { color: #fff; }

/* Category navigation bar */
.fd-navbar { background: #fff; border-bottom: 1px solid var(--fd-line); font-size: .875rem; }
.fd-catnav { font-weight: 500; }
.fd-catnav .wp-block-navigation__container { gap: 1.6rem; }
.fd-catnav .wp-block-navigation-item__content { padding-block: .8rem; color: var(--fd-ink); text-decoration: none; white-space: nowrap; }
.fd-catnav .wp-block-navigation-item__content:hover { color: var(--fd-green-500); }
.fd-catnav__all > .wp-block-navigation-item__content { font-weight: 700; color: var(--fd-green) !important; }
.fd-catnav__offers .wp-block-navigation-item__content, .fd-catnav__season .wp-block-navigation-item__content { color: var(--fd-offer) !important; font-weight: 600; }
.fd-catnav .wp-block-navigation__submenu-container { border: 1px solid var(--fd-line) !important; border-radius: var(--fd-radius); padding: .5rem 0; min-width: 240px !important; box-shadow: 0 12px 32px rgba(23, 33, 28, .12); }
.fd-catnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1.1rem; }

@media (max-width: 1100px) {
	.fd-header__inner { flex-wrap: wrap !important; row-gap: .75rem; }
	.fd-search { order: 10; flex-basis: 100%; max-width: none; }
	.fd-header__postcode .fd-pc__summary small { display: none; }
	.fd-navbar { overflow-x: auto; }
}
@media (max-width: 600px) {
	.fd-topbar__links { display: none; }
	.fd-brand .wp-block-site-title { font-size: 1.4rem; }
	.fd-header .fd-header__cta { display: none !important; }
	.fd-header__tools .wc-block-customer-account__label { display: none; }
	.fd-header__postcode { order: 11; flex-basis: 100%; }
	.fd-header__postcode .fd-pc__summary { padding: .35rem .6rem; }
	.fd-header__postcode .fd-pc__summary span { flex-direction: row; gap: .35rem; }
	.fd-header__postcode .fd-pc__form { left: 0; right: auto; }
	.fd-minicart .wc-block-mini-cart__button { padding: .5rem .7rem; }
}

/* ==========================================================================
   Shop homepage sections
   ========================================================================== */
/* Hero */
.fd-shero { padding-block: clamp(64px, 9vw, 120px) !important; padding-inline: var(--wp--style--root--padding-left, 1.25rem) !important; }
.fd-shero > .wp-block-cover__inner-container { max-width: 1296px; margin-inline: auto; width: 100%; }
.fd-shero .wp-block-cover__image-background { object-position: 65% center; }
.fd-shero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(26, 18, 12, .86) 0%, rgba(26, 18, 12, .62) 42%, rgba(26, 18, 12, 0) 75%);
}
.fd-shero__copy { max-width: 620px; color: #EDE3D3; }
.fd-shero h1 { color: var(--fd-inverse); font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.025em; margin-block: 0 1.25rem; }
.fd-shero .fd-lead { color: #EDE3D3; margin-bottom: 2rem; }
.fd-shero .is-style-outline .wp-block-button__link, .fd-band .is-style-outline .wp-block-button__link { color: var(--fd-inverse); }
@media (max-width: 781px) {
	.fd-shero { min-height: 560px !important; align-items: flex-end !important; padding-bottom: 32px !important; }
	.fd-shero::before { background: linear-gradient(180deg, rgba(26, 18, 12, .1) 0%, rgba(26, 18, 12, .55) 40%, rgba(26, 18, 12, .9) 100%); }
	.fd-shero .wp-block-buttons > * { flex: 1 1 100%; }
	.fd-shero .wp-block-button__link { width: 100%; }
}

/* Hero panel (v2) */
.fd-hero2-wrap { padding-block: 1.5rem .5rem; }
.fd-hero2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; }
.fd-hero2 > *, .fd-hero2__side > *, .fd-hero2__panel > * { margin-block: 0 !important; }
.fd-hero2__panel {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end;
	background: var(--fd-hero-bg); border-radius: var(--fd-radius-xl); overflow: hidden; min-height: 520px; color: #D3E6E1;
}
.fd-hero2__copy { align-self: center; padding: clamp(2rem, 4vw, 3.5rem); position: relative; z-index: 1; }
.fd-hero2__copy .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-hero2 h1 { color: #fff; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.fd-hero2 .fd-lead { color: #D3E6E1; font-size: 1.0625rem; margin-bottom: 1.75rem; max-width: 34rem; }
.fd-hero2 .is-style-outline .wp-block-button__link { color: #fff; }
.fd-hero2 .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }
.fd-hero2__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .8125rem; font-weight: 500; }
.fd-hero2__points li { display: flex; align-items: center; gap: .5rem; }
.fd-hero2__points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fd-logo-lime); }
.fd-hero2__shopper { margin: 0 !important; align-self: end; }
.fd-hero2__shopper { height: 100%; display: flex; align-items: flex-end; }
.fd-hero2__shopper img { display: block; width: 118%; max-width: none; margin-left: -12%; aspect-ratio: 1; object-fit: cover; object-position: 60% top; }
.fd-hero2__side { display: grid; grid-template-rows: 1.5fr 1fr; gap: 1.25rem; }
.fd-hero2__shop { position: relative; border-radius: var(--fd-radius-lg); overflow: hidden; min-height: 260px; }
.fd-hero2__shopimg { margin: 0 !important; position: absolute; inset: 0; }
.fd-hero2__shopimg img { width: 100%; height: 100%; object-fit: cover; }
.fd-hero2__label { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: max-content; background: #fff; border-radius: 16px; padding: .7rem 1rem; box-shadow: 0 6px 20px rgba(7, 42, 39, .18); }
.fd-hero2__label p { margin: 0; font-size: .8125rem; color: var(--fd-muted); }
.fd-hero2__label p:first-child { font-size: .9375rem; color: var(--fd-ink); }
.fd-hero2__label a { color: inherit; text-decoration: none; }
.fd-hero2__label a::after { content: ""; position: absolute; inset: 0; }
.fd-hero2__offers { position: relative; overflow: hidden; background: var(--fd-offer); color: #fff; border-radius: var(--fd-radius-lg); padding: 1.5rem; }
.fd-hero2__offers .fd-eyebrow { color: #FFE2E2; }
.fd-hero2__offers h2 { color: #fff; font-size: 1.75rem; line-height: 1.08; margin: 0 0 1rem; max-width: 11ch; position: relative; z-index: 1; }
.fd-hero2__offers .wp-block-buttons { position: relative; z-index: 1; }
.fd-hero2__offers .is-style-fd-light .wp-block-button__link { color: var(--fd-offer); padding: .6rem 1.1rem; font-size: .875rem; }
.fd-hero2__offimg { position: absolute; right: -24px; bottom: -24px; width: 150px; margin: 0 !important; }
.fd-hero2__offimg img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .9); }
@media (max-width: 1100px) {
	.fd-hero2 { grid-template-columns: 1fr; }
	.fd-hero2__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
	.fd-hero2-wrap { padding-block: 1rem .25rem; }
	.fd-hero2__panel { grid-template-columns: 1fr; min-height: 0; border-radius: var(--fd-radius-lg); }
	.fd-hero2__copy { padding: 1.75rem 1.4rem .5rem; }
	.fd-hero2 .wp-block-buttons > * { flex: 1 1 100%; }
	.fd-hero2 .wp-block-button__link { width: 100%; }
	.fd-hero2__offers .wp-block-button__link { width: auto; }
	.fd-hero2__offers .wp-block-buttons > * { flex: 0 0 auto; }
	.fd-hero2__shopper img { width: 100%; max-width: 340px; margin-inline: auto; }
	.fd-hero2__side { gap: .75rem; }
	.fd-hero2__shop { min-height: 180px; border-radius: 20px; }
	.fd-hero2__label { left: .5rem; bottom: .5rem; padding: .45rem .7rem; border-radius: 12px; }
	.fd-hero2__label p:last-child { display: none; }
	.fd-hero2__offers { border-radius: 20px; padding: 1rem; min-height: 180px; }
	.fd-hero2__offers h2 { font-size: 1.35rem; }
	.fd-hero2__offimg { width: 96px; right: -18px; bottom: -18px; }
}

/* Colour promo tiles */
.fd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fd-tile { position: relative; overflow: hidden; border-radius: var(--fd-radius-lg); padding: 1.75rem; min-height: 240px; display: flex; flex-direction: column; }
.fd-tile > * { margin: 0 !important; position: relative; z-index: 1; }
.fd-tile h3 { font-size: 1.75rem; line-height: 1.08; max-width: 12ch; margin: .1rem 0 .5rem !important; }
.fd-tile__text { font-size: .875rem; line-height: 1.45; max-width: 12.5rem; }
.fd-tile .wp-block-buttons { margin-top: auto !important; padding-top: 1rem; }
.fd-tile .wp-block-button__link { padding: .6rem 1.1rem; font-size: .875rem; }
.fd-tile__img { position: absolute !important; right: -16px; bottom: -16px; width: 170px; z-index: 0 !important; }
.fd-tile__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .9); }
.fd-tile--teal { background: var(--fd-green); color: #BFD9D3; }
.fd-tile--teal h3 { color: #fff; }
.fd-tile--teal .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-tile--teal .wp-block-button__link { background: var(--fd-logo-lime); color: var(--fd-ink); }
.fd-tile--red { background: var(--fd-offer); color: #FFD9DD; }
.fd-tile--red h3 { color: #fff; }
.fd-tile--red .fd-eyebrow { color: #FFE2E2; }
.fd-tile--red .wp-block-button__link { background: #fff; color: var(--fd-offer); }
.fd-tile--lime { background: var(--fd-logo-lime); color: #24361F; }
.fd-tile--lime h3, .fd-tile--lime .fd-eyebrow { color: var(--fd-ink); }
.fd-tile--lime .wp-block-button__link { background: var(--fd-green); color: #fff; }
@media (max-width: 1100px) { .fd-tile__img { width: 140px; } }
@media (max-width: 781px) {
	.fd-tiles {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; scrollbar-width: none;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)); padding-inline: var(--wp--style--root--padding-left, 1rem);
	}
	.fd-tiles::-webkit-scrollbar { display: none; }
	.fd-tile { flex: 0 0 82%; scroll-snap-align: start; min-height: 250px; padding: 1.4rem; border-radius: 20px; }
	.fd-tile h3 { font-size: 1.45rem; max-width: 11ch; }
	.fd-tile__text { max-width: 10.5rem; }
	.fd-tile__img { width: 120px; right: -14px; bottom: -14px; }
}

/* Inside our shop (real photos) */
.fd-inside__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.25rem; }
.fd-inside__pic { margin: 0 !important; }
.fd-inside__pic img { width: 100%; height: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: var(--fd-radius-lg); }
.fd-inside__big img { aspect-ratio: auto; min-height: 100%; }
.fd-inside .fd-section-head { align-items: flex-end; }
@media (max-width: 781px) {
	.fd-inside__grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
	.fd-inside__big { grid-column: 1 / -1; }
	.fd-inside__big img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
	.fd-inside__pic img { aspect-ratio: 3 / 4; border-radius: 16px; }
}
/* Promises bar */
.fd-trust { background: var(--fd-cream); padding-block: 1.4rem; border-bottom: 1px solid var(--fd-line); }
.fd-trust__row { gap: 1.5rem !important; }
.fd-trust p { margin: 0; font-size: .8125rem; color: var(--fd-muted); line-height: 1.45; padding-left: 2.6rem; position: relative; }
.fd-trust em { position: absolute; left: 0; top: -.1em; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; color: var(--fd-green-500); }
.fd-trust strong { display: block; color: var(--fd-ink); font-size: .9375rem; font-weight: 600; }

/* Departments: round photos in a white rounded strip */
.fd-depts {
	gap: .75rem !important; background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg);
	padding: clamp(1rem, 2.2vw, 1.75rem);
}
.fd-dept { position: relative; text-align: center; }
.fd-dept__img { margin: 0 auto .7rem !important; width: min(104px, 100%); }
.fd-dept__img img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 50%; background: var(--fd-green-100); transition: transform .2s ease, box-shadow .2s ease; }
.fd-dept:hover .fd-dept__img img { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--fd-logo-lime); }
.fd-dept__label { margin: 0; font-size: .875rem; font-weight: 600; }
.fd-dept__label a { color: var(--fd-ink); text-decoration: none; }
.fd-dept__label a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 781px) {
	body .fd-depts {
		display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem !important;
		background: transparent; border: 0; padding: 0 0 .5rem; margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem));
		padding-inline: var(--wp--style--root--padding-left, 1rem); scrollbar-width: none;
	}
	.fd-depts::-webkit-scrollbar { display: none; }
	.fd-dept { flex: 0 0 80px; scroll-snap-align: start; }
	.fd-dept__img { width: 76px; }
	.fd-dept__label { font-size: .75rem; }
}
/* Editorial bands (halal counter, visit) */
.fd-band { padding-block: clamp(56px, 7vw, 96px); }
.fd-band--clay { background: var(--fd-clay); color: #E6D9C6; }
.fd-band--green { background: var(--fd-green); color: #DCE8E0; }
.fd-band h2 { color: var(--fd-inverse); }
.fd-band .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-band .fd-lead { color: inherit; }
.fd-band__photo { margin: 0; }
.fd-band__photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: var(--fd-radius-lg); background: #F3EADD; }
.fd-band--clay .fd-band__photo img { object-fit: contain; background: #fff; }
.fd-band__note { font-size: .9375rem; border-left: 3px solid var(--fd-turmeric); padding-left: .9rem; }
.fd-band .fd-chips { color: #F7EBDD; margin-bottom: 1.75rem; }

/* Fish */
.fd-pricelist { list-style: none; padding: 0; margin: 1.25rem 0; }
.fd-pricelist li { font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; padding: .8rem 0; border-bottom: 1px solid var(--fd-line); }
.fd-fishgrid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.fd-fishgrid > * { margin: 0 !important; }
.fd-fishgrid__main { grid-row: 1 / span 2; }
.fd-fishgrid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--fd-radius-lg); }
.fd-fishgrid__a img, .fd-fishgrid__b img { object-fit: contain; background: #fff; border: 1px solid var(--fd-line); aspect-ratio: 1; }

/* Panels */
.fd-duo { gap: 1rem !important; }
.fd-panel { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: clamp(1.25rem, 3vw, 2rem); }
.fd-panel--cream { background: var(--fd-cream); border-color: transparent; }
.fd-panel h3 { font-size: 1.75rem; margin-top: 0; }
.fd-panel .fd-pricelist li { font-family: var(--wp--preset--font-family--body); font-size: .9375rem; font-weight: 500; }

/* Regions */
.fd-regions { gap: 0 !important; border-top: 1px solid var(--fd-line); border-bottom: 1px solid var(--fd-line); }
.fd-region { padding: 1.5rem 1.25rem 1.5rem 0; position: relative; }
.fd-region + .fd-region { padding-left: 1.25rem; border-left: 1px solid var(--fd-line); }
.fd-region h3 { font-size: 1.5rem; margin: 0 0 .4rem; }
.fd-region h3 a { color: var(--fd-ink); text-decoration: none; }
.fd-region h3 a::after { content: ""; position: absolute; inset: 0; }
.fd-region:hover h3 a { color: var(--fd-green-500); }
.fd-region p { margin: 0; color: var(--fd-muted); font-size: .875rem; }
@media (max-width: 781px) {
	body .fd-regions { grid-template-columns: repeat(2, 1fr) !important; }
	.fd-region, .fd-region + .fd-region { padding: 1.1rem .8rem; border-left: 0; border-bottom: 1px solid var(--fd-line); }
}

/* Seasonal banner */
.fd-season { border-radius: var(--fd-radius-xl); overflow: hidden; padding: clamp(2rem, 5vw, 4rem) !important; }
.fd-season::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 42, 32, .92) 0%, rgba(10, 42, 32, .55) 50%, rgba(10, 42, 32, 0) 80%); }
.fd-season__copy { max-width: 520px; color: #D6E9DF; }
.fd-season h2 { color: var(--fd-inverse); }
.fd-season .fd-eyebrow { color: var(--fd-turmeric-light); }
@media (max-width: 781px) { .fd-season::before { background: rgba(10, 42, 32, .72); } }

/* Recipes */
.fd-recipes .wp-block-post-featured-image img { border-radius: var(--fd-radius-lg); }
.fd-recipes .wp-block-post-title { font-size: 1.375rem; margin-top: .9rem; }
.fd-recipes .wp-block-post-title a { color: var(--fd-ink); text-decoration: none; }
.fd-recipes .wp-block-post-excerpt { color: var(--fd-muted); font-size: .875rem; }

/* ==========================================================================
   Product cards (WooCommerce Product Collection)
   ========================================================================== */
.fd-products-row .wc-block-product-template { gap: 1rem !important; }
.fd-card {
	height: 100%; gap: .35rem !important; background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius-card);
	padding: 1rem 1rem 1.1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.fd-card:hover { border-color: #C9CFC9; box-shadow: 0 6px 20px rgba(23, 33, 28, .07); }
.fd-card > * { margin: 0 !important; width: 100%; }
.fd-card__image { margin-bottom: .6rem !important; position: relative; }
.fd-card__image img { aspect-ratio: 1; object-fit: contain !important; width: 100%; background: #fff; }
.fd-card .wc-block-components-product-sale-badge {
	background: var(--fd-offer); color: #fff; border: 0; border-radius: var(--fd-pill); font-size: .6875rem; font-weight: 700;
	text-transform: none; letter-spacing: 0; padding: .25rem .5rem; top: 0; left: 0; margin: 0;
}
.fd-card .fd-pd-origin { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fd-terracotta); font-weight: 600; margin: 0; }
.fd-card__title { font-family: var(--wp--preset--font-family--body) !important; font-size: .9375rem !important; font-weight: 500 !important; line-height: 1.35 !important; letter-spacing: 0 !important; }
.fd-card__title a { color: var(--fd-ink); text-decoration: none; }
.fd-card__title a:hover { text-decoration: underline; }
.fd-card__price { font-size: 1.1875rem !important; font-weight: 700; color: var(--fd-ink); margin-top: .25rem !important; }
.fd-card__price ins, .fd-pdp__price ins { text-decoration: none; color: var(--fd-offer); }
.fd-card__price del, .fd-pdp__price del { color: var(--fd-muted); font-weight: 400; font-size: .8125rem; margin-left: .4rem; order: 2; }
.fd-card__price .wc-block-components-product-price { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .4rem; }
.fd-pd-card { display: flex; flex-wrap: wrap; gap: .1rem .6rem; font-size: .75rem; color: var(--fd-muted); }
.fd-pd-stock { color: #B54708; font-weight: 600; }
.fd-card__add { margin-top: auto !important; padding-top: .6rem; }
.fd-card__add .wp-block-button__link, .fd-card__add .wc-block-components-product-button__button {
	width: 100%; justify-content: center; background: var(--fd-green); color: #fff; border-radius: var(--fd-pill);
	font-size: .875rem; font-weight: 600; padding: .7rem 1rem; min-height: 44px;
}
.fd-card__add .wc-block-components-product-button__button:hover { background: var(--fd-green-700); }
.fd-card__add .added_to_cart { display: block; text-align: center; font-size: .8125rem; margin-top: .4rem; }
@media (max-width: 781px) {
	.fd-products-row .wc-block-product-template { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
	.fd-products-row:not(.fd-products-row--grid) .wc-block-product-template { display: grid !important; }
	.fd-card { padding: .7rem; }
}

/* Shop / category pages */
.fd-shop { padding-block: 1.5rem 4rem; }
.fd-crumbs { font-size: .8125rem; color: var(--fd-muted); margin-bottom: 1rem; }
.fd-crumbs a { color: var(--fd-muted); }
.fd-shop .wp-block-query-title { font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 .5rem; }
.fd-shop__bar { border-block: 1px solid var(--fd-line); padding-block: .75rem; margin-block: 1.25rem 1.5rem !important; font-size: .875rem; }
.fd-shop__bar p { margin: 0; }
.fd-shop__bar select { border: 1px solid #C9CFC9; border-radius: var(--fd-radius); padding: .45rem .6rem; font: inherit; }
.fd-pagination { margin-top: 2.5rem !important; }
.fd-pagination a, .fd-pagination .current { padding: .4rem .75rem; border-radius: var(--fd-radius); text-decoration: none; }
.fd-pagination .current { background: var(--fd-green); color: #fff; }

/* Product page */
.fd-pdp { padding-block: 1.5rem 4rem; }
.fd-pdp__top { gap: clamp(1.5rem, 4vw, 4rem) !important; }
.fd-pdp__media .woocommerce-product-gallery { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius-lg); padding: 1rem; overflow: hidden; }
.fd-pdp__info .wp-block-post-title { font-size: clamp(2rem, 3.4vw, 2.75rem); margin: .25rem 0 1rem; }
.fd-pdp__info .fd-pd-origin { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-terracotta); font-weight: 600; margin: 0; }
.fd-pdp__price { font-size: 1.75rem !important; font-weight: 700; }
.fd-pdp__summary { color: var(--fd-muted); }
.fd-pdp .wc-block-add-to-cart-form .quantity .qty { border: 1px solid #C9CFC9; border-radius: var(--fd-radius); padding: .7rem; width: 4.5rem; font: inherit; }
.fd-pdp .single_add_to_cart_button { background: var(--fd-green) !important; color: #fff !important; border-radius: var(--fd-pill) !important; padding: .9rem 2rem !important; font-weight: 600 !important; }
.fd-pdp .single_add_to_cart_button:hover { background: var(--fd-green-700) !important; }
.fd-pd-full { margin: 1.75rem 0 0; border-top: 1px solid var(--fd-line); }
.fd-pd-full > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--fd-line); font-size: .9375rem; }
.fd-pd-full dt { color: var(--fd-muted); }
.fd-pd-full dd { margin: 0; font-weight: 600; text-align: right; }
.fd-pdp__tabs { margin-top: 3rem; }
.fd-pdp__tabs .wc-tabs { border-bottom: 1px solid var(--fd-line); padding: 0; }

/* WooCommerce notices, cart and checkout touches */
.wc-block-components-notice-banner { border-radius: var(--fd-radius); }
.wc-block-cart, .wc-block-checkout { --wc-blocks-border-radius: 12px; }
.wc-block-components-button:not(.is-link) { border-radius: var(--fd-radius); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--fd-green) !important; color: #fff !important; }

/* ==========================================================================
   Inner pages (from version 1, restyled to the new system)
   ========================================================================== */
.fd-hero { position: relative; overflow: hidden; background: var(--fd-green); color: #fff; padding-block: clamp(56px, 8vw, 110px); }
.fd-hero h1 { color: var(--fd-inverse); font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-top: .4rem; }
.fd-hero .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-hero .fd-lead { color: #DCE8E0; }
.fd-hero__stats { gap: 2.2rem !important; margin-top: 2.2rem !important; }
.fd-hero__stats p { margin: 0; color: #CFE0D6; font-size: .92rem; line-height: 1.3; }
.fd-hero__stats strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; color: #fff; font-weight: 400; }
.fd-hero__img { margin: 0; }
.fd-hero__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--fd-radius); }

.fd-page-hero { background: var(--fd-green); color: #DCE8E0; padding-block: clamp(48px, 6vw, 88px); }
.fd-page-hero h1, .fd-page-hero .wp-block-post-title { color: var(--fd-inverse); font-size: clamp(2.1rem, 4.2vw, 3.3rem); text-wrap: balance; }
.fd-page-hero h1, .fd-page-hero .fd-lead { max-width: none; padding-right: clamp(0px, 30%, 460px); }
.fd-page-hero .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-page-hero .fd-lead { color: #DCE8E0; }
.fd-page-hero--simple { padding-block: clamp(40px, 5vw, 64px); }
.fd-page-hero--simple .wp-block-post-date { color: var(--fd-turmeric-light); }
.fd-page-hero--meat { background: var(--fd-clay); }
.fd-page-hero--fish { background: #0F3A44; }

.fd-cats { gap: 1rem !important; grid-template-columns: repeat(auto-fill, minmax(min(7rem, 100%), 1fr)) !important; }
.fd-cat { text-align: center; background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 1.1rem .6rem 1rem; position: relative; }
.fd-cat:hover { border-color: var(--fd-green-500); }
.fd-cat__icon { font-size: 2.2rem !important; line-height: 1; margin: 0 auto .7rem !important; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--fd-green-100); }
.fd-cat__label { margin: 0 !important; font-weight: 600; font-size: .9rem; }
.fd-cat__label a { color: var(--fd-ink); text-decoration: none; }
.fd-cat__label a::after { content: ""; position: absolute; inset: 0; }

.fd-promo { border-radius: var(--fd-radius); padding: 2rem; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.fd-promo > * { position: relative; z-index: 1; max-width: 72%; }
.fd-promo h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.fd-promo p { margin: 0 0 1.1rem; font-size: .95rem; }
.fd-promo .fd-promo__art { position: absolute; right: 0; top: 0; max-width: none; margin: 0; font-size: 6rem; line-height: 1; z-index: 0; }
.fd-promo--meat { background: var(--fd-blush, #F7EDE6); color: var(--fd-clay); }
.fd-promo--fish { background: #E4F0F4; color: #0F3A44; }
.fd-promo--grocery { background: var(--fd-cream); color: #4A3208; }

.fd-products { gap: 1rem !important; }
.fd-product { border-radius: var(--fd-radius); padding: 1.4rem 1rem 1.2rem; text-align: center; border: 1px solid var(--fd-line); background: #fff; }
.fd-product--blush, .fd-product--blue, .fd-product--cream, .fd-product--mint { background: #fff; }
.fd-product__art { font-size: 3.2rem !important; line-height: 1.1; margin: .4rem 0 .9rem !important; }
.fd-product__name { font-size: 1.05rem !important; margin: 0 0 .2rem !important; }
.fd-product__tag { margin: 0 !important; font-size: .82rem; color: var(--fd-green-500); font-weight: 600; }

.fd-photo-stack { position: relative; padding: 0 12% 12% 0; }
.fd-photo-stack .fd-photo--inset { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; }
.fd-photo-stack .fd-photo--inset img { border: 6px solid #fff; aspect-ratio: 1; }

.fd-feature { text-align: left; }
.fd-feature h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.fd-feature p { color: var(--fd-muted); margin: 0; font-size: .97rem; }
.fd-feature .fd-feature__icon { font-size: 1.5rem !important; width: 52px; height: 52px; border-radius: var(--fd-radius); display: grid; place-items: center; background: var(--fd-green-100); margin: 0 0 1rem !important; }
.fd-feature--card { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 1.75rem; }

.fd-aisle { border-radius: var(--fd-radius); padding: 1.75rem; border: 1px solid var(--fd-line); background: #fff; }
.fd-aisle__icon { font-size: 2.4rem !important; line-height: 1; margin: 0 0 .8rem !important; }
.fd-aisle h3 { margin: 0 0 1rem; }

.fd-fish { gap: .9rem !important; margin-bottom: 1.2rem; }
.fd-fish__item { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 1rem 1.2rem; border-left: 3px solid var(--fd-green-500); }
.fd-fish__item h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.fd-fish__item p { margin: 0; font-size: .92rem; color: var(--fd-muted); }

.fd-faq { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); padding: 1rem 1.3rem; margin-bottom: .75rem !important; }
.fd-faq summary { font-weight: 400; cursor: pointer; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; }
.fd-faq p { margin: .7rem 0 0; color: var(--fd-muted); }

.fd-visit { background: var(--fd-green); color: #DCE8E0; }
.fd-visit h2 { color: var(--fd-inverse); }
.fd-visit .fd-eyebrow { color: var(--fd-turmeric-light); }
.fd-visit .fd-lead { color: #fff; font-weight: 500; }
.fd-hours { margin: 1rem 0 1.8rem; }
.fd-hours table { border-collapse: collapse; width: 100%; max-width: 440px; }
.fd-hours td { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); padding: .7rem 0; }
.fd-hours td:last-child { text-align: right; font-weight: 600; color: #fff; }

.fd-cta { background: var(--fd-cream); border-radius: var(--fd-radius); padding: clamp(1.8rem, 4vw, 3rem) clamp(1.8rem, 4vw, 3.5rem); gap: 1.5rem; }
.fd-cta h2 { margin: 0 0 .3rem; color: var(--fd-green); }
.fd-cta p { margin: 0; color: var(--fd-muted); }

.fd-map { min-height: 280px; border-radius: var(--fd-radius); display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--fd-subtle); border: 1px dashed #C9CFC9; color: var(--fd-muted); }

.fd-post-card { background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); overflow: hidden; padding-bottom: 1.2rem; }
.fd-post-card > *:not(.wp-block-post-featured-image) { padding-inline: 1.3rem; }
.fd-post-card .wp-block-post-title a { color: var(--fd-ink); text-decoration: none; }
.fd-post-card .wp-block-post-date { color: var(--fd-green-500); font-size: .85rem; font-weight: 600; margin-top: 1rem; }
.fd-blog-title { color: #fff; }

/* Blog list + sidebar */
.fd-blog-layout { gap: clamp(1.5rem, 3vw, 3rem) !important; align-items: flex-start !important; }
.fd-post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.fd-post-row { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1.5rem; background: #fff; border: 1px solid #DCE8E3; border-radius: var(--fd-radius-card); padding: 1rem; align-items: center; }
.fd-post-row__img { margin: 0 !important; }
.fd-post-row__img img { border-radius: var(--fd-radius); width: 100%; height: 100%; object-fit: cover; }
.fd-post-row:not(:has(.fd-post-row__img img)) { grid-template-columns: 1fr; }
.fd-post-row__body > * { margin-block: 0 .5rem !important; }
.fd-post-row__title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
.fd-post-row__title a { color: var(--wp--preset--color--brand, #0B3C38); text-decoration: none; }
.fd-post-row__title a:hover { text-decoration: underline; }
.fd-post-row__date { color: #6B807C; font-size: .85rem; font-weight: 600; }
.fd-post-row__excerpt p { color: #3F5A56; }
.fd-post-row .wp-block-post-excerpt__more-text { margin-top: .9rem; }
.fd-post-row .wp-block-post-excerpt__more-link { display: inline-block; background: var(--wp--preset--color--brand, #0B3C38); color: #fff; border-radius: var(--fd-pill); padding: .55rem 1.2rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.fd-post-row .wp-block-post-excerpt__more-link:hover { background: var(--wp--preset--color--leaf, #0B7D77); }
.fd-blog-lead { color: var(--fd-turmeric-light, #CFE38A); margin-top: .5rem !important; font-size: clamp(.95rem, 1.4vw, 1.06rem); }
.fd-pagination { margin-top: 2rem !important; gap: .5rem; flex-wrap: wrap; }
.fd-pagination .page-numbers, .fd-pagination .wp-block-query-pagination-previous, .fd-pagination .wp-block-query-pagination-next { display: inline-flex; align-items: center; min-width: 2.4rem; justify-content: center; padding: .45rem .9rem; border: 1px solid #DCE8E3; border-radius: var(--fd-pill); background: #fff; color: var(--wp--preset--color--brand, #0B3C38); font-weight: 600; font-size: .9rem; text-decoration: none; }
.fd-pagination .page-numbers.current { background: var(--wp--preset--color--brand, #0B3C38); border-color: var(--wp--preset--color--brand, #0B3C38); color: #fff; }
.fd-pagination a:hover { border-color: var(--wp--preset--color--leaf, #0B7D77); }
.fd-pagination .page-numbers.dots { border: 0; background: none; }
.fd-blog-side { position: sticky; top: 1.5rem; display: grid; gap: 1.25rem; }
.fd-blog-side > aside { display: grid; gap: 1.25rem; }
.fd-side-box { background: #fff; border: 1px solid #DCE8E3; border-radius: var(--fd-radius-card); padding: 1.25rem 1.35rem; margin: 0 !important; }
.fd-side-title { font-size: 1.15rem; margin: 0 0 .85rem !important; padding-bottom: .6rem; border-bottom: 2px solid var(--wp--preset--color--logo-lime, #95C11F); }
.fd-side-cats, .fd-side-recent { list-style: none; padding: 0; margin: 0; }
.fd-side-cats li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #EDF3F0; color: #6B807C; }
.fd-side-cats li:last-child, .fd-side-recent li:last-child { border-bottom: 0; }
.fd-side-cats a, .fd-side-recent a { color: var(--wp--preset--color--brand, #0B3C38); text-decoration: none; font-weight: 500; }
.fd-side-cats a:hover, .fd-side-recent a:hover { text-decoration: underline; }
.fd-side-recent li { display: block; padding: .55rem 0; border-bottom: 1px solid #EDF3F0; }
.fd-side-recent li:has(.wp-block-latest-posts__featured-image) { display: grid; grid-template-columns: 64px 1fr; column-gap: .75rem; align-items: center; }
.fd-side-recent .wp-block-latest-posts__post-date { display: block; }
.fd-side-recent .wp-block-latest-posts__featured-image { grid-row: span 2; margin: 0; }
.fd-side-recent .wp-block-latest-posts__featured-image img { border-radius: var(--fd-radius-sm); width: 64px; height: 64px; object-fit: cover; }
.fd-side-recent .wp-block-latest-posts__post-date { font-size: .8rem; color: #6B807C; }
@media (max-width: 781px) {
	.fd-blog-side { position: static; }
	.fd-post-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.fd-footer { position: relative; background: #072A27; color: #A9C4BE; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 1.5rem; font-size: .9375rem; margin-top: 0 !important; }
.fd-footer h4 { color: var(--fd-turmeric-light); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--wp--preset--font-family--body); font-weight: 600; margin-bottom: 1rem; }
.fd-footer a { color: #E3EFEC; text-decoration: none; }
.fd-footer a:hover { color: #fff; text-decoration: underline; }
.fd-footer .fd-brand .wp-block-site-title a { color: var(--fd-inverse); }
.fd-footer__links { list-style: none; padding: 0; }
.fd-footer__links li { margin-bottom: .45rem; }
.fd-footer__cols { gap: 2.5rem !important; }
.fd-footer__bottom { border-top: 1px solid #1D4A45; margin-top: 2.5rem !important; padding-top: 1.3rem; font-size: .8125rem; color: #8FB0AA; }
.fd-footer__bottom p { margin: 0; }
.fd-social { margin-top: 1rem; }

/* Newsletter + food hygiene band (sits above the footer) */
.fd-keep { background: var(--fd-mint, #E8F4EE); padding-block: clamp(32px, 4vw, 48px); margin-top: 0 !important; }
.fd-keep__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.fd-keep__inner:empty, .fd-keep:has(.fd-keep__inner:empty) { display: none; }
.fd-keep__inner > * { margin: 0 !important; }
.fd-news { flex: 1 1 420px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 2rem; }
.fd-news__title { grid-column: 1; font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 !important; color: var(--wp--preset--color--brand, #0B3C38); }
.fd-news__text { grid-column: 1; margin: 0 !important; color: #3F5A56; max-width: 46ch; }
.fd-news__form, .fd-news .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.fd-news__note { grid-column: 1 / -1; font-size: .8rem; color: #6B807C; border: 1px dashed #A9C4BE; border-radius: var(--fd-radius-sm); padding: .5rem .75rem; margin: .5rem 0 0 !important; }
.fd-fhrs { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .4rem; background: #fff; border-radius: var(--fd-radius-card); padding: .9rem 1.1rem; }
.fd-fhrs img, .fd-fhrs iframe { min-width: 0 !important; width: 260px; max-width: 100%; height: auto; display: block; }
.fd-fhrs__link { font-size: .75rem; color: #3F5A56; text-align: center; max-width: 22ch; line-height: 1.35; }
.fd-fhrs--placeholder { border: 1px dashed #A9C4BE; font-size: .85rem; color: #3F5A56; }
@media (max-width: 781px) {
	.fd-news { grid-template-columns: 1fr; }
	.fd-news__form, .fd-news .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: .75rem; }
	.fd-keep__inner { justify-content: center; }
	.fd-fhrs { margin-inline: auto !important; }
}

/* Featured brands */
.fd-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.fd-brands > .fd-brand-tile { margin: 0 !important; }
.fd-brand-tile a { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: .75rem; background: #fff; border: 1px solid #DCE8E3; border-radius: var(--fd-radius-card); font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.05rem; color: var(--wp--preset--color--brand, #0B3C38); text-decoration: none; text-align: center; transition: border-color .15s, box-shadow .15s; }
.fd-brand-tile a:hover, .fd-brand-tile a:focus-visible { border-color: var(--wp--preset--color--leaf, #0B7D77); box-shadow: 0 4px 14px rgba(11, 60, 56, .08); }
.fd-brand-tile img { max-height: 52px; width: auto; }
@media (max-width: 1023px) { .fd-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .fd-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .fd-brand-tile a { min-height: 64px; font-size: .9rem; } }

/* ==========================================================================
   v2.4 UX
   ========================================================================== */
/* 1 + 6. Phone header: menu, logo, search, account and basket on one row;
   search box underneath until you scroll, then a search button instead. */
@media (max-width: 599px) {
	header.wp-block-template-part {
		display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto;
		align-items: center; border-bottom: 1px solid var(--fd-line);
	}
	header.wp-block-template-part > .fd-topbar { grid-column: 1 / -1; grid-row: 1; padding-block: .35rem; font-size: .75rem; }
	header.wp-block-template-part .fd-header,
	header.wp-block-template-part .fd-header__inner { display: contents; }
	header.wp-block-template-part > .fd-navbar { grid-column: 1; grid-row: 2; border: 0; background: transparent; overflow: visible; padding: 0 0 0 .4rem !important; margin: 0 !important; }
	.fd-header .fd-brand { grid-column: 2; grid-row: 2; padding-block: .5rem; min-width: 0; }
	.fd-brand .wp-block-site-logo { flex-shrink: 0; }
	.fd-brand .wp-block-site-logo img { max-height: 34px; min-width: 30px; }
	.fd-brand .wp-block-site-title { font-size: 1.3rem; }
	.fd-search-toggle { grid-column: 3; grid-row: 2; }
	.fd-header .fd-header__tools { grid-column: 4; grid-row: 2; padding-right: .75rem; gap: .25rem !important; }
	.fd-header .fd-header__cta { grid-column: 4; grid-row: 2; }
	.fd-header .fd-search { grid-column: 1 / 5; grid-row: 3; margin: 0 .5rem .6rem .75rem !important; }
	.fd-header .fd-header__postcode { grid-column: 5; grid-row: 3; order: 0; flex-basis: auto; margin: 0 .75rem .6rem 0 !important; }
	.fd-header__postcode .fd-pc__summary { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.fd-header__postcode .fd-pc__summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.fd-header__postcode .fd-pc__form { left: auto; right: 0; }
	.fd-header .fd-header__tools { grid-column: 4 / 6; }

	.fd-brand .wp-block-site-title { white-space: nowrap; }
	/* Account: icon only; the words stay for screen readers. */
	.fd-header__tools .wc-block-customer-account__link .label,
	.fd-header__tools .wc-block-customer-account__label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; display: block !important; }
	.fd-header__tools .wc-block-customer-account__avatar { width: 26px; height: 26px; border-radius: 50%; }

	/* Tap targets: at least 44px. */
	.fd-catnav .wp-block-navigation__responsive-container-open:not(.always-shown),
	.fd-header__tools .wc-block-customer-account__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
	.fd-search-toggle { align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
	.fd-catnav .wp-block-navigation__responsive-container-open { color: var(--fd-green); }
	.fd-minicart .wc-block-mini-cart__button { min-height: 44px; }

	/* Scrolled: one slim 56px bar. */
	.fd-scrolled .fd-header .fd-search,
	.fd-scrolled .fd-header .fd-header__postcode { display: none; }
	.fd-scrolled .fd-search-toggle { display: inline-flex; }
	.fd-scrolled.fd-search-open .fd-header .fd-search { display: block; }
	.fd-search-toggle { background: none; border: 0; padding: 0; color: var(--fd-green); cursor: pointer; border-radius: 50%; }
	.fd-search-toggle:focus-visible { box-shadow: var(--fd-focus); outline: none; }
}

/* 2. Placeholder note for opening hours that are not set yet. */
.fd-hours-soon { font-size: .9375rem; }

/* 3. Friendly empty department / shop / search page. */
.fd-shop:has(.fd-empty) .fd-shop__bar { display: none; }
.fd-empty { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; margin-block: 1rem 3rem; }
.fd-empty__card { background: #fff; border: 1px solid #DCE8E3; border-radius: 24px; padding: 1.75rem; }
.fd-empty__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 .6rem; }
.fd-empty__card p { color: #3F5A56; margin: 0 0 1.1rem; }
.fd-empty__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fd-empty__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--fd-green-100, #E3F1EC); color: var(--fd-green); font-weight: 600; font-size: .875rem; text-decoration: none; }
.fd-empty__links a:hover { background: #d3e9e1; }
.fd-empty__visit { background: var(--fd-green); color: #fff; border-radius: 24px; padding: 1.5rem; }
.fd-empty__visit-title { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: 1.25rem; margin: 0 0 .5rem; }
.fd-empty__visit-title svg { color: var(--fd-logo-lime, #95C11F); flex-shrink: 0; }
.fd-empty__visit p { color: #E3EFEC; margin: 0 0 1rem; }
.fd-empty__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; background: var(--fd-turmeric, #95C11F); color: var(--fd-ink); font-weight: 600; text-decoration: none; }
.fd-empty__btn:hover { background: #84AD14; }
@media (max-width: 781px) { .fd-empty { grid-template-columns: 1fr; } }

/* 4. Footer follow links. */
.fd-footer__follow { margin-top: .5rem; }

/* 5. Swipe hints on sideways-scrolling rows (phones). */
.fd-swipe { position: relative; }
.fd-swipe__next { display: none; }
@media (max-width: 781px) {
	.fd-swipe:not(.is-end) > .fd-depts,
	.fd-swipe:not(.is-end) > .fd-tiles { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
	.fd-swipe:not(.is-end) > .fd-swipe__next {
		display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
		width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fd-line); background: #fff; color: var(--fd-green);
		box-shadow: 0 4px 14px rgba(11, 60, 56, .14); cursor: pointer; z-index: 2;
	}
	.fd-swipe:has(> .fd-depts) > .fd-swipe__next { top: 38px; transform: none; }
}

/* Tablet: the department menu scrolls sideways with a fade instead of a scrollbar. */
@media (min-width: 600px) and (max-width: 1100px) {
	.fd-navbar { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.fd-navbar::-webkit-scrollbar { display: none; }
}

/* 7. Smaller brand tiles. */
.fd-brand-tile a { min-height: 56px; padding: .5rem .75rem; }
@media (max-width: 599px) { .fd-brand-tile a { min-height: 48px; } }

/* 8. Easy-to-tap links on phones. */
@media (max-width: 781px) {
	.fd-footer__links li { margin: 0; }
	.fd-footer__links a, .fd-footer__follow a, .fd-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
	.fd-more a { display: inline-flex; align-items: center; min-height: 44px; }
}

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