/* Home page after the WoodMart „home“ demo (inc/home-layout.php; owner approved mockup 8 on 12.11.2026,
   03_ЛОКАЛНА_СРЕДА/mockups/home-layout-v8.src.css). Loaded on the front page only. */

/* ===== Open category list in the hero (≥1200 px; below that the hero stays: H1 + card) */
.airloc-hero-cats { display: none; }
@media (min-width: 1200px) {
	/* The left icon rail repeats the open list on the home page. */
	body.wd-sticky-nav-enabled { --wd-sticky-nav-w: 0px; margin-left: 0; }
	.wd-sticky-nav { display: none !important; }

	.airloc-hero.has-alx.has-cats { grid-template-columns: 270px minmax(0, 1fr) 520px; grid-template-areas: "cats text card"; column-gap: 32px; align-items: stretch;
		padding: 0 40px 0 0; overflow: visible; }
	.airloc-hero.has-cats > .airloc-hero-text { align-self: center; padding: 40px 0; }
	.airloc-hero.has-cats > .alx { align-self: center; margin: 28px 0; }
	.airloc-hero.has-cats h1 { font-size: 36px; }

	.airloc-hero-cats { grid-area: cats; position: relative; z-index: 5; display: flex; flex-direction: column; border-right: 1px solid var(--airloc-border, #E3E6EA); }
	.ahc-list { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; padding: 6px 0; list-style: none; } /* rows share the height of the card */
	.ahc-list > li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; max-height: 84px; margin: 0; } /* 8 rows, no taller than 84 px */
	.ahc-list > li + li { border-top: 1px solid #EEF1F4; }
	.airloc-hero-cats a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px 0 22px; color: var(--airloc-text, #26343F); font-size: 15.5px; font-weight: 600; text-decoration: none; }
	.ahc-list > li > a { flex: 1 1 auto; }
	.ahc-ico { display: inline-flex; flex: none; width: 30px; color: var(--airloc-cta, #00843D); }
	.ahc-svg { width: 28px; height: 28px; }
	.ahc-arr { margin-left: auto; color: #9AA3AB; font-size: 18px; line-height: 1; }
	.ahc-list > li:hover > a, .ahc-list > li:focus-within > a { background: #F3FAF6; color: var(--airloc-cta, #00843D); }
	.airloc-hero-cats a:focus-visible { outline: 3px solid rgba(0, 132, 61, .4); outline-offset: -3px; }

	/* Subcategories open to the right, over the hero (as in the demo). */
	.ahc-sub { position: absolute; top: -1px; left: 100%; display: none; min-width: 250px; margin: 0; padding: 8px 0; list-style: none; background: #fff;
		border: 1px solid var(--airloc-border, #E3E6EA); border-radius: 0 12px 12px 0; box-shadow: 0 14px 30px rgba(38, 52, 63, .12); }
	.ahc-list > li:hover > .ahc-sub, .ahc-list > li:focus-within > .ahc-sub { display: block; }
	.ahc-sub a { min-height: 44px; padding: 0 20px; font-weight: 500; font-size: 15px; }
	.ahc-sub a:hover { background: #F3FAF6; color: var(--airloc-cta, #00843D); }
}

/* (Retired 12.11.2026 with the wide page – style.css „Page width“: there is no room left of the content any more,
   so the 1200–1839 look below now applies to every width from 1200 px. Kept, never matching, for the record.)
   ≥1840 px (owner 12.11.2026, after mockup 8): „Продукти“ as a green bar left of the content, the list under it. */
@media (min-width: 99999px) {
	.whb-header-bottom .container { position: relative; }
	.whb-header-bottom .wd-header-sticky-nav { position: absolute; top: 0; bottom: 0; right: calc(100% + 9px); /* = 24 px left of the content (container padding 15) */
		width: 270px; margin: 0; }
	/* The white pill (style.css) becomes the bar; two element classes beat style.css and WoodMart. */
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a { display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 100%; min-height: 0; padding: 0 22px 0 14px;
		border-radius: 12px 12px 0 0; background: var(--airloc-cta, #00843D); box-shadow: none; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-inner { display: flex; align-items: center; gap: 10px; height: auto; padding: 0; border: 0; background: transparent; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-icon { background: transparent; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-text { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a:hover, .whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav.wd-opened > a { background: var(--airloc-cta-hover, #006B31); box-shadow: none; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a:focus-visible { outline: 3px solid rgba(0, 132, 61, .45); outline-offset: 2px; }
	.whb-header-bottom .whb-airloc_catnav_d + .wd-header-nav { margin-inline-start: 0; }

	.airloc-hero.has-alx.has-cats { position: relative; grid-template-columns: minmax(0, 1fr) 560px; grid-template-areas: "text card"; column-gap: 40px; align-items: center; padding: 48px; }
	.airloc-hero.has-cats > .airloc-hero-text { padding: 0; }
	.airloc-hero.has-cats > .alx { margin: 0; }
	.airloc-hero.has-cats h1 { font-size: 40px; } /* 40 (not 44) so H1 + photo stay as high as the card (mockup 10) */
	/* top: from the hero up to the bottom of the header row (content padding 40 + 16, + 1 px over the row border). */
	.airloc-hero-cats { position: absolute; top: -57px; right: calc(100% + 24px); width: 270px; background: #fff;
		border: 1px solid var(--airloc-border, #E3E6EA); border-top: 0; border-right: 1px solid var(--airloc-border, #E3E6EA); border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(38, 52, 63, .06); }
	.ahc-list > li { flex: none; }
	.ahc-sub { border-radius: 12px; }
}

/* ≥1200 px (owner 12.11.2026: „да се оправи веднага“ – the menu must look as on the wide screen; since the wide page
   of 12.11.2026 this is the look at every desktop width): the green bar „Продукти“ sits at the left edge of the
   content, above the hero's category column, and the list hangs right under it (the column reaches up to the header row). */
@media (min-width: 1200px) {
	.whb-header-bottom .container { position: relative; }
	.whb-header-bottom .wd-header-sticky-nav { position: absolute; top: 0; bottom: 0; left: 15px; /* = the content's left edge (container padding) */
		width: 270px; margin: 0; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a { display: flex; align-items: center; justify-content: flex-start; width: 100%; height: 100%; min-height: 0; padding: 0 22px 0 14px;
		border-radius: 12px 12px 0 0; background: var(--airloc-cta, #00843D); box-shadow: none; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-inner { display: flex; align-items: center; gap: 10px; height: auto; padding: 0; border: 0; background: transparent; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-icon { background: transparent; color: #fff; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav .wd-tools-text { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a:hover, .whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav.wd-opened > a { background: var(--airloc-cta-hover, #006B31); box-shadow: none; }
	.whb-header-bottom .whb-airloc_catnav_d.wd-header-sticky-nav > a:focus-visible { outline: 3px solid rgba(0, 132, 61, .45); outline-offset: 2px; }

	/* The list hangs under the bar as a box of its own (owner 12.11.2026 at 120 % zoom: „да запазва размера си, а не
	   да се уголемяват полетата“ – rows keep their height instead of stretching to the hero). It starts at the bottom of
	   the header row (content padding 40 + 16, + 1 px over the row border). */
	.airloc-hero.has-cats > .airloc-hero-cats { align-self: start; margin-top: -57px; background: #fff; border: 1px solid var(--airloc-border, #E3E6EA); border-top: 0;
		border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(38, 52, 63, .06); }
	.airloc-hero.has-cats .ahc-list > li { flex: none; }
	/* The white hero card starts right of the list (as on the wide screen); text 40 px from its edge. */
	.airloc-hero.has-alx.has-cats { position: relative; isolation: isolate; background: transparent; }
	.airloc-hero.has-alx.has-cats::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 294px; /* list 270 + 24 */
		border-radius: var(--airloc-radius-block, 20px); background: var(--airloc-card, #fff); }
	.airloc-hero.has-alx.has-cats h1, .airloc-hero.has-alx.has-cats .airloc-hero-trust, .airloc-hero.has-alx.has-cats .airloc-hero-photo { margin-left: 32px; } /* column at 302 + 32 = card edge 294 + 40 */
	.airloc-hero.has-alx.has-cats h1 { font-size: 26px; } /* stays on one row in the 818 px left (27 px needs 827) */
}
@media (min-width: 1200px) and (max-width: 1299px) { .airloc-hero.has-alx.has-cats h1 { font-size: 24px; } }

/* ===== 5 banners above „Намаления“: 1 large + 4 small */
.airloc-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ahb { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; aspect-ratio: 1 / 1; min-width: 0; padding: 14px; border-radius: 16px;
	background: #DDE3E8; color: #fff; text-decoration: none; overflow: hidden; }
.ahb:first-child { grid-column: 1 / -1; }
.ahb-img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
/* Photo banners (owner 13.11.2026, variant 2): a dark fade under the text keeps white text readable on any photo. */
.ahb:not(.ahb-empty)::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(16, 24, 30, .84) 0%, rgba(16, 24, 30, .5) 45%, rgba(16, 24, 30, 0) 80%); } /* phone: text takes more of the small tile */
@media (min-width: 768px) { .ahb:not(.ahb-empty)::after { background: linear-gradient(to top, rgba(16, 24, 30, .80) 0%, rgba(16, 24, 30, .40) 36%, rgba(16, 24, 30, 0) 60%); } }
a.ahb:hover .ahb-img { transform: scale(1.03); }
.ahb-t { max-width: 100%; font-size: 18px; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ahb-s { max-width: 100%; margin-top: 3px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.ahb-b { display: none; align-items: center; margin-top: 10px; padding: 8px 14px; border-radius: 8px; background: var(--airloc-cta, #00843D); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; }
.ahb-b::after { content: "\203A"; margin-left: 8px; font-size: 17px; line-height: .9; }
.ahb:first-child .ahb-b { display: inline-flex; }
/* Phone (owner 13.11.2026): the small banners show only the title; the line stays on the big one. */
@media (max-width: 767px) {
	.ahb:not(:first-child) .ahb-s { display: none; }
	.ahb:not(:first-child):not(.ahb-empty)::after { background: linear-gradient(to top, rgba(16, 24, 30, .78) 0%, rgba(16, 24, 30, .35) 30%, rgba(16, 24, 30, 0) 55%); }
}
a.ahb:hover .ahb-b { background: var(--airloc-cta-hover, #006B31); }
a.ahb:focus-visible { outline: 3px solid rgba(0, 132, 61, .5); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ahb-img { transition: none; } a.ahb:hover .ahb-img { transform: none; } }

/* Empty places (only for people who can edit the site). */
.ahb-empty { border: 1.5px dashed #C9D1D8; background: #EEF1F4; color: var(--airloc-text, #26343F); }
.ahb-empty:hover { border-color: var(--airloc-cta, #00843D); }
.ahb-empty b { font-size: 15px; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.ahb-empty small { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--airloc-text-muted, #5F6870); }
.ahb-n { position: absolute; top: 12px; left: 14px; padding: 2px 8px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; color: var(--airloc-text-muted, #5F6870); }

@media (min-width: 768px) {
	.airloc-banners { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
	.ahb:first-child { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
	.ahb { padding: 22px; }
	.ahb-empty b { font-size: 19px; }
	.ahb-t { font-size: 22px; }
	.ahb:first-child .ahb-t { font-size: 34px; }
	.ahb-s { font-size: 14px; }
	.ahb:first-child .ahb-s { font-size: 16px; }
	.ahb-b { display: inline-flex; }
	.ahb-empty small { font-size: 13px; }
}

/* ===== Photo (owner's, mockup 10 variant B) and the H1 on one row above the photo and the card
   (owner 12.11.2026: „изтегляме го горе на един ред и снимката става по-висока“, so the logo on the sleeve shows).
   ≥1200 px the hero text box „dissolves“ (display: contents) and its H1, line and photo are placed in the hero grid:
     1200–1839: cats | H1 (2 columns) / line / photo | card      ≥1840: H1 / line / photo | card
   The photo is exactly as tall as the card (contain: size – it never makes the row taller). Below 1200 px: 1:1 under the line. */
.airloc-hero-photo { display: block; margin-top: 14px; }
.airloc-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
@media (min-width: 1200px) {
	.airloc-hero.has-alx.has-cats { grid-template-areas: "cats h1 h1" "cats trust trust" "cats photo card"; grid-template-rows: auto auto 1fr; row-gap: 0; align-items: stretch; padding: 0 40px 0 0; }
	.airloc-hero.has-alx.has-cats > .airloc-hero-text { display: contents; }
	.airloc-hero.has-cats h1 { grid-area: h1; max-width: none; padding-top: 32px; font-size: 27px; } /* one row in ≈850 px */
	.airloc-hero.has-cats .airloc-hero-trust { grid-area: trust; margin: 10px 0 22px; }
	.airloc-hero.has-cats .airloc-hero-photo { grid-area: photo; margin: 0 0 32px; contain: size; }
	.airloc-hero.has-cats .airloc-hero-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 45%; border-radius: 16px; }
	.airloc-hero.has-alx.has-cats > .alx { grid-area: card; align-self: start; margin: 0 0 32px; }
}
@media (min-width: 1200px) and (max-width: 1299px) { .airloc-hero.has-cats h1 { font-size: 25px; } }
/* The wider page leaves more room for the H1 (one row: ~27 px needs 850 px). */
@media (min-width: 1500px) { .airloc-hero.has-alx.has-cats h1 { font-size: 30px; } }
@media (min-width: 1800px) { .airloc-hero.has-alx.has-cats h1 { font-size: 34px; } }
@media (min-width: 99999px) { /* retired with the ≥1840 look above */
	.airloc-hero.has-alx.has-cats { grid-template-areas: "h1 h1" "trust trust" "photo card"; padding: 0 48px; }
	.airloc-hero.has-cats h1 { padding-top: 40px; font-size: 34px; }
	.airloc-hero.has-cats .airloc-hero-photo, .airloc-hero.has-alx.has-cats > .alx { margin-bottom: 48px; }
}
@media (min-width: 1200px) { .airloc-hero.has-cats .airloc-hero-trust { font-size: 15px; } } /* desktop: the line a step larger (owner 12.11.2026) */
