/* Lorys header and footer — loaded site-wide when the option lorys_header_footer = 1. Mobile first.
 * 18 Nov 2026 (Paul, ChatGPT's mock homepage): one 1320 px column for header, pages and footer, with 16 / 24 px side
 * margins; labelled Ask a Pharmacist / WhatsApp / Account on wide screens; larger category row with Shop and Offers. */

:root { --lorys-max: 1320px; --lorys-gutter: 16px; }
@media (min-width: 768px) { :root { --lorys-gutter: 24px; } }

.lorys-header, .lorys-footer { font-family: var(--lorys-font, 'Lato', sans-serif); color: var(--lorys-text, #1b2420); }
.lorys-header *, .lorys-footer * { box-sizing: border-box; }
.lorys-header a:focus-visible, .lorys-header summary:focus-visible, .lorys-header button:focus-visible,
.lorys-header input:focus-visible, .lorys-footer a:focus-visible { outline: 3px solid var(--lorys-red, #c8202a); outline-offset: 2px; }

/* Strip */
.lorys-strip { background: var(--lorys-green-dark, #134e27); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 8px var(--lorys-gutter); display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; }
.lorys-strip span + span::before { content: "·"; margin: 0 10px; opacity: .7; }
.lorys-strip span:nth-child(n+3) { display: none; }
@media (min-width: 768px) { .lorys-strip span:nth-child(n+3) { display: inline; } .lorys-strip { font-size: 14px; } }

/* Bar: logo + icons on row 1, search full width on row 2 (mobile) */
.lorys-header { position: relative; background: #fff; box-shadow: 0 1px 0 #dce5de; }
.lorys-bar {
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo icons" "search search";
	align-items: center; gap: 10px 8px; padding: 10px var(--lorys-gutter) 12px; background: #fff;
	max-width: var(--lorys-max); margin: 0 auto;
}
.lorys-logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 44px; }
.lorys-logo__img { height: 44px; width: auto; max-width: 170px; display: block; }
.lorys-icons { grid-area: icons; display: flex; align-items: center; gap: 2px; }
.lorys-icon {
	min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative;
	color: var(--lorys-text, #1b2420); border-radius: 10px; cursor: pointer; list-style: none; text-decoration: none; padding: 0 6px;
}
.lorys-icon:hover, .lorys-act:hover { background: var(--lorys-green-tint, #eaf5ec); color: var(--lorys-green-dark, #134e27); }
.lorys-icon__label { display: none; font-size: 15px; font-weight: 700; }
.lorys-act { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-radius: 10px; color: var(--lorys-green-dark, #134e27); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lorys-act svg { color: var(--lorys-green, #1e7b3c); flex: none; }
.lorys-cart-count {
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
	background: var(--lorys-red, #c8202a); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.lorys-cart-count.is-empty { display: none; }

/* Search */
.lorys-search {
	grid-area: search; display: flex; align-items: center; gap: 8px; height: 50px; margin: 0;
	border: 1.5px solid #b9cfc0; border-radius: 999px; padding: 0 6px 0 16px; background: #fff; color: #4a5750;
	box-shadow: 0 2px 8px rgba(19, 78, 39, .06);
}
.lorys-search:focus-within { border-color: var(--lorys-green, #1e7b3c); box-shadow: 0 0 0 3px rgba(30, 123, 60, .15); }
.lorys-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 0; height: 40px;
	font: inherit; font-size: 16px; color: var(--lorys-text, #1b2420);
}
.lorys-search button {
	background: var(--lorys-green, #1e7b3c); color: #fff; border: 0; border-radius: 999px; height: 38px; padding: 0 18px;
	font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.lorys-search button:hover { background: var(--lorys-green-dark, #134e27); }

/* Menu (details/summary — no JavaScript) */
.lorys-menu { position: static; }
.lorys-menu > summary::-webkit-details-marker { display: none; }
.lorys-menu > summary::marker { content: ""; }
.lorys-menu__close { display: none; }
.lorys-menu[open] .lorys-menu__open { display: none; }
.lorys-menu[open] .lorys-menu__close { display: block; }
.lorys-menu__panel {
	position: absolute; left: 0; right: 0; z-index: 999; background: #fff; border-bottom: 1px solid #dce5de;
	box-shadow: 0 12px 24px rgba(19, 78, 39, 0.12); padding: 8px 16px 20px; max-height: 75vh; overflow-y: auto;
}
.lorys-menu__title { margin: 14px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lorys-red, #c8202a); }
.lorys-menu__panel ul { list-style: none; margin: 0; padding: 0; }
.lorys-menu__panel a {
	display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid #eef3ef;
	color: var(--lorys-text, #1b2420); font-size: 16px; font-weight: 700; text-decoration: none;
}
.lorys-menu__panel a:hover { color: var(--lorys-green-dark, #134e27); }

/* Category row (scrolls sideways on phones) */
.lorys-needs-nav { background: #fff; border-top: 1px solid #edf2ee; }
.lorys-needs-nav ul {
	list-style: none; margin: 0 auto; padding: 0 var(--lorys-gutter); max-width: var(--lorys-max); display: flex; gap: 2px;
	overflow-x: auto; scrollbar-width: none;
}
.lorys-needs-nav ul::-webkit-scrollbar { display: none; }
.lorys-needs-nav a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; white-space: nowrap;
	color: var(--lorys-text, #1b2420); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent;
}
.lorys-needs-nav a:hover { color: var(--lorys-green-dark, #134e27); border-bottom-color: var(--lorys-green, #1e7b3c); }
.lorys-needs-nav a.lorys-nav-shop { color: var(--lorys-green-dark, #134e27); }
.lorys-needs-nav a.lorys-nav-offer { color: var(--lorys-red, #c8202a); }
.lorys-needs-nav a.lorys-nav-offer:hover { border-bottom-color: var(--lorys-red, #c8202a); }

/* "More" (wide screens only): the last health needs in a small dropdown, no JavaScript */
.lorys-nav-more { display: none; position: relative; }
.lorys-nav-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 9px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--lorys-text, #1b2420); list-style: none; white-space: nowrap; }
.lorys-nav-more summary::-webkit-details-marker { display: none; }
.lorys-nav-more summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lorys-nav-more ul { position: absolute; right: 0; top: 100%; z-index: 50; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid #dce5de; border-radius: 12px; box-shadow: 0 12px 24px rgba(19, 78, 39, .12); min-width: 260px; }
.lorys-nav-more ul a { display: flex; min-height: 44px; border: 0; border-radius: 8px; padding: 0 12px; }
.lorys-nav-more ul a:hover { background: #eaf5ec; }

/* Footer */
.lorys-footer { background: var(--lorys-green-dark, #134e27); color: #fff; margin-top: 0; }
.lorys-footer__wrap { max-width: var(--lorys-max); margin: 0 auto; padding: 32px var(--lorys-gutter) 96px; display: flex; flex-direction: column; gap: 22px; }
.lorys-footer__top { display: flex; flex-direction: column; gap: 18px; }
.lorys-footer__logo { align-self: flex-start; background: #fff; border-radius: 10px; padding: 8px 14px; display: inline-flex; }
.lorys-footer__logo img { height: 46px; width: auto; display: block; }
.lorys-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.lorys-footer a { color: #fff; }
.lorys-footer__links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.lorys-footer__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lorys-footer__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.lorys-footer__facts li.is-small { font-size: 13px; color: #d6ebdc; }
.lorys-footer__facts svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lorys-footer__facts a { font-weight: 700; }

/* Larger screens: logo · search · actions on one row */
@media (min-width: 922px) {
	.lorys-bar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search icons"; gap: 28px; padding: 14px var(--lorys-gutter); }
	.lorys-logo__img { height: 54px; max-width: 200px; }
	.lorys-search { max-width: 640px; width: 100%; justify-self: center; height: 52px; }
	.lorys-menu__panel { left: auto; right: var(--lorys-gutter); width: 360px; border: 1px solid #dce5de; border-radius: 12px; }
	.lorys-footer__links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lorys-footer__top { flex-direction: row; align-items: center; gap: 36px; }
	.lorys-footer__top .lorys-footer__links { flex: 1; padding-left: 36px; border-left: 1px solid rgba(255,255,255,.25); }
	.lorys-footer__wrap { padding-bottom: 40px; }
}
@media (min-width: 1180px) {
	.lorys-act { display: inline-flex; }
	.lorys-icon__label { display: inline; }
	.lorys-icons { gap: 6px; }
	.lorys-needs-nav > ul { justify-content: space-between; overflow: visible; gap: 0; }
	.lorys-needs-nav a { padding: 0 9px; }
	.lorys-needs-nav li.is-extra { display: none; }
	.lorys-nav-more { display: block !important; }
}

/* The Home page has its own search when this header is off; hide it when the header search is shown. */
.lorys-has-header .lh-search { display: none; }
