/* Φυλλάδιο: leaflet-style catalogue theme for online-farmakeia.gr */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/commissioner-greek-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url(../fonts/commissioner-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Leaflet"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/fira-sans-extra-condensed-greek-700-normal.woff2) format("woff2");
	unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Leaflet"; font-style: normal; font-weight: 700; font-display: swap;
	src: url(../fonts/fira-sans-extra-condensed-latin-700-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Leaflet"; font-style: normal; font-weight: 800; font-display: swap;
	src: url(../fonts/fira-sans-extra-condensed-greek-800-normal.woff2) format("woff2");
	unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Leaflet"; font-style: normal; font-weight: 800; font-display: swap;
	src: url(../fonts/fira-sans-extra-condensed-latin-800-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	--ink: #141414;
	--ink-2: #4D4A44;
	--line: #DEDAD0;
	--ground: #F3F2EE;
	--paper: #FFFFFF;
	--red: #D7191C;
	--red-deep: #A80F12;
	--yellow: #FFD400;
	--yellow-soft: #FFF3B0;

	--f-ui: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-leaf: "Leaflet", "Commissioner", "Arial Narrow", sans-serif;

	--r: 6px;
	--wrap: 1320px;
	--gut: clamp(16px, 3vw, 32px);
	--ease: cubic-bezier(.16, 1, .3, 1);
	--shadow: 0 6px 18px -8px rgba(20, 20, 20, .28), 0 2px 4px rgba(20, 20, 20, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--ground); }
body {
	margin: 0; background: var(--ground); color: var(--ink);
	font: 400 1rem/1.55 var(--f-ui);
	font-feature-settings: "kern";
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap;
}
.fy-skip:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 100;
	left: 8px; top: 8px; padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.fy-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.fy-strip { background: var(--yellow); color: var(--ink); font-size: .8125rem; }
.fy-strip__in, .fy-band__in, .fy-nav__in, .fy-wrap, .fy-footer__in, .fy-footer__base, .fy-crumbs__in {
	max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut);
}
.fy-strip__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.fy-strip p { margin: 0; }
.fy-strip strong { font-weight: 750; font-variant-numeric: tabular-nums; }

.fy-band { background: var(--red); color: #fff; }
.fy-band__in { display: grid; min-height: 0; grid-template-columns: auto minmax(0, 640px); justify-content: space-between; align-items: center; gap: 20px 40px; padding-top: 20px; padding-bottom: 20px; }
.fy-brand__name, .fy-brand .custom-logo-link {
	font: 800 clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem)/1 var(--f-leaf); color: #fff; text-decoration: none; letter-spacing: -.01em;
}
.fy-brand__name:hover { color: #fff; }
.fy-brand__logo { display: block; }
.fy-brand__logo img { height: clamp(64px, 3vw + 44px, 92px); width: auto; }
.fy-brand__tag { margin: 2px 0 0; font-size: .875rem; color: #fff; }
.fy-band :focus-visible { outline-color: var(--yellow); }

.fy-search { display: flex; background: #fff; border-radius: var(--r); box-shadow: 0 8px 24px -10px rgba(80, 0, 0, .55); overflow: hidden; }
.fy-search__input {
	flex: 1; min-width: 0; border: 0; padding: 0 18px; height: 54px; font-size: 1.0625rem; background: transparent; color: var(--ink);
}
.fy-search__input::placeholder { color: #6E6A62; }
.fy-search__input:focus { outline: none; }
.fy-search:focus-within { box-shadow: 0 0 0 3px var(--yellow), 0 8px 24px -10px rgba(80, 0, 0, .55); }
.fy-search__btn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
	background: var(--yellow); color: var(--ink); padding: 0 22px; font: 800 1.125rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .02em;
	transition: background-color .25s var(--ease);
}
.fy-search__btn:hover { background: #FFE34D; }

.fy-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.fy-nav__in { display: flex; align-items: center; }
.fy-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fy-nav__list a {
	display: block; padding: 14px 14px 11px; border-bottom: 3px solid transparent;
	font: 700 1.0625rem/1.1 var(--f-leaf); letter-spacing: .02em; color: var(--ink); text-decoration: none; text-transform: uppercase;
	transition: border-color .25s var(--ease), color .25s var(--ease);
}
.fy-nav__list li:first-child a { padding-left: 0; }
.fy-nav__list a:hover, .fy-nav__list .current-menu-item > a, .fy-nav__list .current-product_cat-ancestor > a { border-bottom-color: var(--red); color: var(--red-deep); }
.fy-nav__toggle { display: none; }

/* ---------- Layout ---------- */
.fy-crumbs { font-size: .8125rem; color: var(--ink-2); }
.fy-crumbs__in { padding: 14px 0 0; }
.fy-crumbs a { color: var(--ink-2); text-decoration: none; }
.fy-crumbs a:hover { color: var(--red-deep); text-decoration: underline; }
.fy-crumbs__sep { margin: 0 .5em; color: #9A958B; }
.fy-wrap > .fy-crumbs .fy-crumbs__in { padding-left: 0; padding-right: 0; }

.fy-layout { padding: 20px 0 64px; }
.fy-layout--archive { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; align-items: start; }
.fy-main { min-width: 0; }

/* Archive heading */
.woocommerce-products-header { margin: 0 0 18px; }
.woocommerce-products-header__title, .fy-page__title, .product_title {
	font: 800 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem)/1.05 var(--f-leaf); letter-spacing: -.005em; margin: 0 0 .35em;
}
.term-description, .page-description { color: var(--ink-2); max-width: 70ch; }

/* Pharmacy chips */
.fy-shops { margin: 6px 0 22px; }
.fy-shops__title { font: 700 1rem/1.2 var(--f-ui); margin: 0 0 10px; color: var(--ink-2); }
.fy-shops__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fy-shopchip {
	display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
	padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
	color: var(--ink); text-decoration: none; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.fy-shopchip .fy-icon { color: var(--red); width: 22px; height: 22px; }
.fy-shopchip__name { font: 800 1.125rem/1.1 var(--f-leaf); }
.fy-shopchip__count { font-size: .75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fy-shopchip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* Toolbar */
.fy-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 16px; }
.woocommerce-result-count { margin: 0; color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .fy-select, .widget select {
	appearance: none; height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23141414'/%3E%3C/svg%3E") no-repeat right 10px center / 20px;
	font-size: .9375rem; cursor: pointer;
}
.woocommerce-ordering select:hover { border-color: var(--ink); }

/* Notices */
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-no-products-found .woocommerce-info {
	list-style: none; margin: 0 0 20px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.woocommerce-error { border-color: var(--red); }

/* ---------- Product grid & card ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product {
	position: relative; display: flex; flex-direction: column; margin: 0; padding: 0 0 14px; width: auto; float: none;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
ul.products li.product:hover { border-color: #BDB8AC; box-shadow: var(--shadow); }
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }

.fy-card__media { position: relative; display: block; aspect-ratio: 1; padding: 14px; border-bottom: 1px solid #EEEBE4; }
.fy-card__media img { width: 100%; height: 100%; object-fit: contain; }

.fy-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px 0; font-size: .75rem; line-height: 1.3; }
.fy-card__shop { display: inline-flex; align-items: center; gap: 5px; font: 700 .875rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.fy-card__shop .fy-icon { width: 15px; height: 15px; color: var(--red); }
.fy-card__brand { color: var(--ink-2); }

ul.products li.product .woocommerce-loop-product__title {
	margin: 6px 0 12px; padding: 0 14px; font: 500 .9375rem/1.35 var(--f-ui); color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; text-decoration-color: var(--red); }

/* The leaflet price tag: the signature move */
.fy-price { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding: 0 14px; }
.fy-price__tag {
	display: inline-flex; align-items: flex-start; padding: 6px 10px 4px; background: var(--yellow); color: var(--ink);
	font-family: var(--f-leaf); font-weight: 800; line-height: .9; border-radius: 3px;
	font-variant-numeric: lining-nums tabular-nums;
}
.fy-price__int { font-size: 2.125rem; letter-spacing: -.02em; }
.fy-price__dec { font-size: 1.0625rem; margin-top: .12em; }
.fy-price__cur { font-size: 1.0625rem; margin-top: .12em; margin-left: 1px; }
.fy-price__was { font-size: .8125rem; color: var(--ink-2); padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.fy-price__was s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.fy-price.is-sale .fy-price__tag { box-shadow: inset 0 -4px 0 var(--red); padding-bottom: 8px; }
.fy-price--plain { font: 800 1.5rem/1 var(--f-leaf); }

/* Discount burst */
.fy-burst {
	position: absolute; top: 8px; left: 8px; width: 64px; height: 64px; display: grid; place-items: center;
	background: var(--red); color: #fff; transform: rotate(-10deg);
	clip-path: polygon(50% 0%, 61% 11%, 75% 6%, 79% 21%, 94% 25%, 89% 39%, 100% 50%, 89% 61%, 94% 75%, 79% 79%, 75% 94%, 61% 89%, 50% 100%, 39% 89%, 25% 94%, 21% 79%, 6% 75%, 11% 61%, 0% 50%, 11% 39%, 6% 25%, 21% 21%, 25% 6%, 39% 11%);
	transition: transform .45s var(--ease);
}
.fy-burst span { font: 800 1.125rem/1 var(--f-leaf); letter-spacing: -.01em; }
ul.products li.product:hover .fy-burst { transform: rotate(-18deg) scale(1.08); }
.fy-burst--inline { position: static; width: 78px; height: 78px; }
.fy-burst--inline span { font-size: 1.375rem; }

/* Card button */
ul.products li.product .button, .fy-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 14px 0; min-height: 44px; padding: 10px 14px;
	background: var(--ink); color: #fff; border: 0; border-radius: var(--r); text-decoration: none; text-align: center;
	font: 700 1rem/1.15 var(--f-leaf); letter-spacing: .02em; text-transform: uppercase; cursor: pointer;
	transition: background-color .25s var(--ease);
}
ul.products li.product .button::after, .single_add_to_cart_button::after {
	content: ""; width: 18px; height: 18px; flex: none; background: var(--yellow);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.3 5.3 20 12l-6.7 6.7-1.4-1.4 4.3-4.3H4v-2h12.2l-4.3-4.3 1.4-1.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .35s var(--ease);
}
ul.products li.product .button:hover, .fy-btn:hover { background: var(--red); color: #fff; }
ul.products li.product .button:hover::after, .single_add_to_cart_button:hover::after { transform: translateX(3px); background: #fff; }
ul.products li.product .button:focus-visible { outline-offset: 3px; }

/* Category tiles (all-categories page) */
ul.products li.product-category > a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; padding: 14px; gap: 10px; height: 100%; }
ul.products li.product-category img { aspect-ratio: 1; object-fit: contain; }
.woocommerce-loop-category__title { font: 700 1.125rem/1.15 var(--f-leaf); margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.woocommerce-loop-category__title mark { background: none; color: var(--ink-2); font: 400 .8125rem var(--f-ui); text-transform: none; }

/* Pagination */
.woocommerce-pagination { margin: 32px 0 0; }
.woocommerce-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r);
	background: var(--paper); color: var(--ink); text-decoration: none; font: 700 1.0625rem/1 var(--f-leaf); font-variant-numeric: tabular-nums;
}
.woocommerce-pagination .page-numbers a:hover { border-color: var(--ink); }
.woocommerce-pagination .page-numbers .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-pagination .page-numbers .dots { border-color: transparent; background: none; }

/* ---------- Filters sidebar ---------- */
.fy-filters { position: sticky; top: 16px; }
.fy-filters__toggle { display: none; }
.fy-filters__body { display: grid; gap: 14px; }
.fy-widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: .9375rem; }
.fy-widget__title, .fy-widget h2, .fy-widget h3, .wp-block-heading {
	font: 800 1.125rem/1.1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px;
}
.fy-widget ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-widget-layered-nav-list__item, .fy-widget li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; }
.woocommerce-widget-layered-nav-list__item a { color: var(--ink); text-decoration: none; }
.woocommerce-widget-layered-nav-list__item a:hover { color: var(--red-deep); text-decoration: underline; }
.woocommerce-widget-layered-nav-list__item .count, .wc-block-components-filter-element-label-count { color: var(--ink-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.woocommerce-widget-layered-nav-list__item--chosen a { font-weight: 700; }
.woocommerce-widget-layered-nav-list__item--chosen a::before {
	content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; background: var(--red);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5 12 10.6 17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Classic price slider */
.price_slider_wrapper { padding-top: 6px; }
.price_slider { position: relative; height: 4px; margin: 10px 8px 22px; background: var(--line); border-radius: 2px; }
.price_slider .ui-slider-range { position: absolute; top: 0; height: 100%; background: var(--ink); border-radius: 2px; }
.price_slider .ui-slider-handle {
	position: absolute; top: -9px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
	background: var(--yellow); border: 2px solid var(--ink); cursor: grab; outline: none; z-index: 2;
}
.price_slider .ui-slider-handle:focus-visible { box-shadow: 0 0 0 3px rgba(20,20,20,.25); }
.price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .875rem; }
.price_slider_amount input { display: none; }
.price_slider_amount .button, .fy-widget .wp-block-button__link, .fy-widget button {
	min-height: 38px; padding: 6px 14px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; cursor: pointer;
	font: 700 .9375rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em;
}
.price_slider_amount .button:hover { background: var(--red); }
.price_label { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.price_slider_amount .clear { display: none; }

/* Block filters (WooCommerce blocks) */
.wp-block-woocommerce-attribute-filter .wc-block-components-checkbox-list,
.wp-block-woocommerce-attribute-filter ul { max-height: 300px; overflow: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.wc-block-components-checkbox-list { margin: 0; padding: 0; }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--ink); border-color: var(--ink); }

/* ---------- Single product ---------- */
.fy-layout--single div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.fy-layout--single div.product > .woocommerce-tabs, .fy-layout--single div.product > .related, .fy-layout--single div.product > .upsells,
.fy-layout--single div.product > #jp-relatedposts { grid-column: 1 / -1; }

.woocommerce-product-gallery { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center;
	background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font-size: 0; text-decoration: none;
}
.woocommerce-product-gallery__trigger::before {
	content: ""; width: 20px; height: 20px; background: var(--ink);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.9 12.13l4.24 4.23-1.42 1.42-4.23-4.24A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flex-control-thumbs img { border: 1px solid var(--line); border-radius: 4px; cursor: pointer; opacity: .6; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }

.summary.entry-summary { min-width: 0; }
.fy-single__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: .875rem; }
.fy-single__meta .fy-card__shop { font-size: 1.0625rem; }
.product_title { font: 650 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.25 var(--f-ui); letter-spacing: -.01em; margin: 0 0 18px; }
.fy-single__price { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.fy-single__price .fy-price { padding: 0; margin: 0; }
.fy-price--single .fy-price__tag { padding: 10px 16px 6px; }
.fy-price--single.is-sale .fy-price__tag { padding-bottom: 12px; box-shadow: inset 0 -6px 0 var(--red); }
.fy-price--single .fy-price__int { font-size: 4rem; }
.fy-price--single .fy-price__dec, .fy-price--single .fy-price__cur { font-size: 1.75rem; }
.fy-price--single .fy-price__was { font-size: 1rem; }

.summary .woocommerce-product-details__short-description { color: var(--ink-2); max-width: 65ch; }
.summary form.cart, .summary p.cart { margin: 0 0 12px; }
.single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 440px; min-height: 58px; padding: 14px 24px;
	background: var(--ink); color: #fff; border: 0; border-radius: var(--r); text-decoration: none; cursor: pointer;
	font: 800 1.375rem/1.1 var(--f-leaf); letter-spacing: .02em; text-transform: uppercase;
	transition: background-color .25s var(--ease);
}
.single_add_to_cart_button:hover { background: var(--red); color: #fff; }
.single_add_to_cart_button::after { width: 22px; height: 22px; }
.fy-single__note { max-width: 440px; font-size: .8125rem; color: var(--ink-2); margin: 0 0 20px; }
.product_meta { font-size: .8125rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.product_meta a { color: var(--ink-2); }

.woocommerce-tabs { margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 14px 12px 11px; border-bottom: 3px solid transparent; margin-bottom: -1px;
	font: 700 1.0625rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a:hover { color: var(--ink); border-bottom-color: var(--red); }
.woocommerce-Tabs-panel { padding: 20px 24px 24px; max-width: 80ch; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-product-attributes { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-product-attributes th { width: 30%; font-weight: 650; }
.woocommerce-product-attributes td p { margin: 0; }

.related > h2, .upsells > h2 { font: 800 1.75rem/1.1 var(--f-leaf); margin: 40px 0 16px; }
#jp-relatedposts { margin-top: 24px; }
.jp-relatedposts-post-title a, #jp-relatedposts .jp-relatedposts-post a { color: var(--ink); text-decoration: none; font-weight: 600; }
.jp-relatedposts-post-title a:hover { color: var(--red-deep); text-decoration: underline; }

/* ---------- Pages ---------- */
.fy-page { padding: 28px 0 64px; }
.fy-prose { max-width: 72ch; }
.fy-entry { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.fy-footer { background: var(--ink); color: #E9E6DF; font-size: .875rem; }
.fy-footer__in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.fy-footer__name { font: 800 1.75rem/1 var(--f-leaf); color: #fff; margin-bottom: 12px; }
.fy-footer__note { max-width: 58ch; color: #CFCAC0; }
.fy-footer__h { font: 700 .9375rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); margin-bottom: 12px; }
.fy-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fy-footer a { color: #fff; text-decoration: none; }
.fy-footer a:hover { color: var(--yellow); text-decoration: underline; }
.fy-footer :focus-visible { outline-color: var(--yellow); }
.fy-footer__base { border-top: 1px solid #2E2E2C; padding-top: 16px; padding-bottom: 24px; color: #A8A399; font-size: .8125rem; }
.fy-footer__base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.fy-strip__aside { display: none; }
	.fy-band__in { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 16px; gap: 12px; }
	.fy-search__btn span { display: none; }
	.fy-search__btn { padding: 0 18px; }
	.fy-search__btn .fy-icon { width: 24px; height: 24px; }

	.fy-nav__toggle {
		display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; border: 0; background: none; cursor: pointer;
		font: 700 1.0625rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em;
	}
	.fy-nav__in { flex-direction: column; align-items: stretch; }
	.fy-nav__menu { display: none; padding-bottom: 8px; }
	.fy-nav__menu.is-open { display: block; }
	.fy-nav__list { flex-direction: column; gap: 0; }
	.fy-nav__list a, .fy-nav__list li:first-child a { padding: 12px 0; border-bottom: 1px solid var(--line); }

	.fy-layout--archive { grid-template-columns: 1fr; gap: 16px; }
	.fy-filters { position: static; }
	.fy-filters__toggle {
		display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; min-height: 46px; padding: 0 14px;
		background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font: 700 1.0625rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em;
	}
	.fy-filters__toggle::-webkit-details-marker { display: none; }
	.fy-filters[open] .fy-filters__toggle { background: var(--ink); color: #fff; border-color: var(--ink); }
	.fy-filters[open] .fy-filters__body { margin-top: 10px; }

	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fy-shops__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scroll-snap-type: x proximity; }
	.fy-shops__list::-webkit-scrollbar { display: none; }
	.fy-shops__list li { flex: none; scroll-snap-align: start; }
	.fy-shopchip { padding: 9px 12px; white-space: nowrap; }

	.fy-layout--single div.product { grid-template-columns: 1fr; }
	.summary.entry-summary { position: static; }
	.fy-price--single .fy-price__int { font-size: 3.25rem; }

	.fy-footer__in { grid-template-columns: 1fr 1fr; }
	.fy-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.fy-card__media { padding: 10px; }
	.fy-card__meta { padding: 10px 10px 0; }
	ul.products li.product .woocommerce-loop-product__title { padding: 0 10px; font-size: .875rem; }
	.fy-price { padding: 0 10px; }
	.fy-price__int { font-size: 1.75rem; }
	ul.products li.product .button { margin: 10px 10px 0; font-size: .9375rem; padding: 8px 10px; }
	ul.products li.product .button::after { display: none; }
	.fy-burst { width: 52px; height: 52px; }
	.fy-burst span { font-size: .9375rem; }
}
@media (min-width: 901px) {
	.fy-filters > .fy-filters__toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Category tiles (fallback product photo) ---------- */
.fy-cat__img { display: block; aspect-ratio: 1; background: var(--paper); }
.fy-cat__img img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- All categories page ---------- */
.fy-allcats { padding: 24px 0 64px; }
.fy-allcats__head { margin-bottom: 8px; }
.fy-allcats__jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.fy-allcats__jump a {
	padding: 8px 14px; border-radius: var(--r); background: var(--yellow); color: var(--ink); text-decoration: none;
	font: 700 1rem/1 var(--f-leaf); text-transform: uppercase; letter-spacing: .03em;
}
.fy-allcats__jump a:hover { background: var(--ink); color: #fff; }
.fy-allcats__group { margin-top: 36px; scroll-margin-top: 16px; }
.fy-allcats__grouphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.fy-allcats__grouphead h2 { font: 800 clamp(1.5rem, 1.2rem + 1vw, 2.125rem)/1 var(--f-leaf); text-transform: uppercase; margin: 0; }
.fy-allcats__grouphead h2 a { color: var(--ink); text-decoration: none; }
.fy-allcats__grouphead h2 a:hover { color: var(--red-deep); }
.fy-allcats__all { font-weight: 650; font-size: .9375rem; }
.fy-allcats__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fy-tile { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.fy-tile:hover { border-color: #BDB8AC; box-shadow: var(--shadow); color: var(--ink); }
.fy-tile__img { display: flex; align-items: center; justify-content: center; height: 180px; padding: 12px; overflow: hidden; border-bottom: 1px solid #EEEBE4; }
.fy-tile__img img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; object-fit: contain; }
.fy-tile__name { padding: 10px 12px 2px; font: 800 1.125rem/1.15 var(--f-leaf); }
.fy-tile__count { padding: 0 12px 12px; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fy-allcats__chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fy-allcats__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.fy-allcats__chips a span { font-size: .75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fy-allcats__chips a:hover { border-color: var(--ink); background: var(--yellow-soft); }
.fy-az__letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.fy-az__letters a { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; font: 800 1rem/1 var(--f-leaf); }
.fy-az__letters a:hover { background: var(--yellow); border-color: var(--yellow); }
.fy-az { columns: 4 220px; column-gap: 28px; }
.fy-az__block { break-inside: avoid; margin-bottom: 18px; scroll-margin-top: 16px; }
.fy-az__letter { font: 800 1.5rem/1 var(--f-leaf); color: var(--red); margin: 0 0 6px; }
.fy-az ul { list-style: none; margin: 0; padding: 0; }
.fy-az li { padding: 3px 0; font-size: .9375rem; }
.fy-az li a { color: var(--ink); text-decoration: none; }
.fy-az li a:hover { color: var(--red-deep); text-decoration: underline; }
.fy-az li span { color: var(--ink-2); font-size: .75rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
	.fy-allcats__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Shop: popular topics + secondary pharmacy row ---------- */
.fy-topics { margin: 6px 0 14px; }
.fy-topics__title { font: 700 1rem/1.2 var(--f-ui); margin: 0 0 10px; color: var(--ink-2); }
.fy-topics__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fy-topic {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
	color: var(--ink); text-decoration: none; font: 800 1.125rem/1.1 var(--f-leaf);
}
.fy-topic:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.fy-topic--offers { background: var(--red); border-color: var(--red); color: #fff; }
.fy-topic--offers:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.fy-topic--all { background: transparent; border-style: dashed; }
.fy-topic .fy-icon { width: 16px; height: 16px; }
.fy-shops { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 22px; }
.fy-shops .fy-shops__title { font-size: .875rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.fy-shops .fy-shops__list { gap: 4px 14px; }
.fy-shoplink { font-size: .9375rem; color: var(--ink); text-decoration: underline; text-decoration-color: #C9C4B8; text-underline-offset: 3px; }
.fy-shoplink:hover { color: var(--red-deep); text-decoration-color: currentColor; }
.fy-side-topics ul { list-style: none; margin: 0; padding: 0; }
.fy-side-topics li { padding: 5px 0; border-bottom: 1px solid #EEEBE4; }
.fy-side-topics li:last-child { border-bottom: 0; }
.fy-side-topics a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.fy-side-topics a:hover { color: var(--red-deep); }
.fy-side-topics .fy-side-topics__offers { color: var(--red); font-weight: 700; }
@media (max-width: 900px) {
	.fy-topics__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; }
	.fy-topics__list::-webkit-scrollbar { display: none; }
	.fy-topic { white-space: nowrap; }
	.fy-shops .fy-shops__list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
