/* Storefront homepage (everything under the slider).
 * All rules are scoped under .ah so nothing reaches the slider or the rest of the theme.
 * Six product columns on desktop, four on tablet, two on phone; catalogue images are square and kept compact. */

.ah {
	--ah-y: var(--color-accent, #fc0);
	--ah-ink: #2e2e2e;
	font-size: 15px;
	line-height: 1.5;
	color: #454444;
}
.ah *,
.ah *::before,
.ah *::after { box-sizing: border-box; }
.ah a { color: inherit; text-decoration: none; }
.ah h2,
.ah h3,
.ah p,
.ah ul { margin: 0; padding: 0; }
.ah ul { list-style: none; }
.ah img { max-width: 100%; }

/* The page spans the screen; .ah-w lines the content up with the header's edges. */
.ah { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.ah .ah-w { width: 100%; max-width: calc(var(--site-max, 83rem) + 2 * var(--site-gutter, 2rem)); margin-inline: auto; padding-inline: var(--site-gutter, 2rem); }
.ah-sec { padding-block: 36px; }
.ah-sec--flush { padding-top: 0; }
.ah-sh { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.ah-eb { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #6f6f6f; }
.ah .ah-ttl { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--ah-ink); }

/* ---------- Search band ---------- */
.ah-find { position: relative; z-index: 5; background: var(--ah-y); }
.ah-find::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(0 0 0 / .035) 0 2px, transparent 2px 22px); pointer-events: none; }
.ah-find__in { position: relative; display: grid; justify-items: center; gap: 16px; padding-block: 34px 30px; text-align: center; }
.ah .ah-find__h { font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #1c1c1c; }
.ah .ah-srch {
	--store-search-h: 66px;
	--armenius-infield-input-min-h: 66px;
	--armenius-infield-input-fs: 18px;
	--armenius-infield-label-fs: 18px;
	--armenius-infield-label-color: #555;
	--armenius-infield-label-top-focus: 11px;
	--armenius-infield-label-scale-focus: .72;
	--armenius-infield-pad-x: 20px;
	--armenius-infield-pad-x-focus: 20px;
	--armenius-infield-pad-y-start: 25px;
	--armenius-infield-pad-y-end: 8px;
	--armenius-infield-pad-y-start-focus: 28px;
	--armenius-infield-pad-y-end-focus: 6px;
	--armenius-infield-input-bg: transparent;
	--armenius-infield-input-border: transparent;
	display: flex;
	width: 100%;
	max-width: 820px;
	height: var(--store-search-h);
	min-height: 0;
	background: #fff;
	box-shadow: 0 10px 30px rgb(0 0 0 / .18);
	text-align: left;
	transition: box-shadow .15s;
}
.ah .ah-srch:focus-within { box-shadow: 0 0 0 3px var(--ah-ink), 0 10px 30px rgb(0 0 0 / .18); }
.ah .ah-srch__field { flex: 1 1 auto; min-width: 0; }
/* The theme's search rules set a grey fill and tighter spacing directly on these elements. */
.ah .ah-srch input.armenius-infield__input { padding: var(--armenius-infield-pad-y-start) var(--armenius-infield-pad-x) var(--armenius-infield-pad-y-end); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.ah .ah-srch .armenius-infield:focus-within input.armenius-infield__input,
.ah .ah-srch .armenius-infield--filled input.armenius-infield__input { padding: var(--armenius-infield-pad-y-start-focus) var(--armenius-infield-pad-x-focus) var(--armenius-infield-pad-y-end-focus); }
.ah .ah-srch .armenius-infield__label { inset-inline-start: var(--armenius-infield-pad-x); overflow: hidden; }
.ah .ah-srch .armenius-infield:focus-within .armenius-infield__label,
.ah .ah-srch .armenius-infield--filled .armenius-infield__label { inset-inline-start: var(--armenius-infield-pad-x-focus); }
.ah .ah-srch__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	height: 100%;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: var(--ah-ink);
	color: var(--ah-y);
	font: 800 17px/1 var(--font-body, "Open Sans", sans-serif);
	cursor: pointer;
	transition: background .2s, color .2s;
}
.ah .ah-srch__btn:hover,
.ah .ah-srch__btn:focus-visible { background: #111; color: #fff; }
.ah .ah-find__pop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 820px; font-size: 14px; line-height: 1.2; }
.ah-find__pop span { font-weight: 700; color: #1c1c1c; }
.ah .ah-find__pop a { padding: 7px 13px; background: rgb(255 255 255 / .6); color: #1c1c1c; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: background .2s, color .2s; }
.ah .ah-find__pop a:hover,
.ah .ah-find__pop a:focus-visible { background: var(--ah-ink); color: var(--ah-y); }
.ah-srch__btn svg { flex: none; }

/* ---------- Promises strip ---------- */
.ah-prom { background: var(--ah-ink); color: #fff; }
.ah .ah-prom__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-block: 14px; }
.ah-prom__in li,
.ah-prom__in a { display: flex; gap: 11px; align-items: center; font-weight: 600; font-size: 14px; line-height: 1.3; }
.ah .ah-prom__in a { color: #fff; }
.ah .ah-prom__in a:hover span { text-decoration: underline; }
.ah-prom svg { flex: none; color: var(--ah-y); }

/* ---------- Categories ---------- */
.ah-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ah-cat { flex: 0 0 calc((100% - 6 * 10px) / 7); min-width: 0; display: grid; gap: 6px; justify-items: center; align-content: start; padding: 12px 8px; text-align: center; background: #f5f5f6; transition: background .2s, transform .2s; }
.ah-cat:hover,
.ah-cat:focus-visible { background: var(--ah-y); transform: translateY(-2px); }
.ah .ah-cat img { width: 96px; height: 96px; object-fit: contain; }
.ah-cat b { font-size: 14px; line-height: 1.2; color: var(--ah-ink); overflow-wrap: anywhere; hyphens: auto; }
.ah-cat small { font-size: 12px; color: #6a6a6a; }
.ah-cat:hover small,
.ah-cat:focus-visible small { color: var(--ah-ink); }

/* ---------- Real product cards, compact (body prefix: must beat the theme's responsive .woocommerce ul.products) ---------- */
body .ah ul.products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
body .ah ul.products li.product { width: auto; min-width: 0; margin: 0; }
.ah .armenius-product-card { padding: 8px 8px 10px; box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 0 0 1px rgb(0 0 0 / .04); }
.ah .armenius-product-card:hover,
.ah .armenius-product-card:focus-within { box-shadow: 0 6px 18px rgb(0 0 0 / .16), 0 0 0 1px rgb(0 0 0 / .04); }
.ah .armenius-product-card__image-link { width: 100%; max-width: 160px; margin-inline: auto; padding: 6px; }
.ah .armenius-product-card__meta-row { --product-card-cta-height: 38px; gap: 6px; }
.ah .armenius-product-card__cart-btn { flex: 0 0 36px; width: 36px; aspect-ratio: auto; }
.ah .armenius-product-card__cart-icon { width: 20px; height: 20px; }
.ah .armenius-product-card__price { min-width: 0; padding: 3px 9px; font-size: 14px; }
.ah .armenius-product-card__price del { font-size: 11px; }
.ah .armenius-product-card__sale-badge,
.ah .armenius-product-card__badges-corner-start > * { padding: 3px 6px; font-size: 10.5px; }

/* ---------- Biggest sales ---------- */
.ah-deals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ah .ah-deals > ul.products { grid-column: span 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ah .ah-deals--nolead > ul.products { grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ah-lead { grid-column: span 2; display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; padding: 18px; background: #141414; color: #fff; }
.ah-lead__main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ah-lead__top { display: grid; grid-template-columns: minmax(0, 176px) minmax(0, 1fr); gap: 16px; align-items: center; }
.ah-sq { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #fff; }
.ah .ah-sq img { display: block; width: 100%; height: 100%; padding: 9%; object-fit: contain; }
.ah-lead__info { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.ah-lead__pc { margin-bottom: 7px; padding: 5px 9px; background: #c62f35; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; }
.ah-lead__info s { font-size: 14px; opacity: .65; }
.ah-lead__info b { font-size: 29px; line-height: 1.05; font-weight: 800; color: var(--ah-y); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-lead__info small { font-size: 13px; font-weight: 600; color: #ddd; }
.ah .ah-lead__name { font-size: 16.5px; line-height: 1.3; font-weight: 700; color: #fff; }
.ah .ah-lead__name a { color: #fff; }
.ah .ah-lead__name a:hover { color: var(--ah-y); }
.ah .ah-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; background: var(--ah-y); color: #111; font-weight: 700; font-size: 15px; transition: background .2s; }
.ah .ah-btn:hover,
.ah .ah-btn:focus-visible { background: #fff; color: #111; }
.ah-dl { display: grid; grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); min-height: 0; padding-top: 10px; border-top: 1px solid #383838; }
.ah .ah-dl > p { margin-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #aaa; }
.ah-lm { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 5px 0; border-top: 1px solid #2a2a2a; }
.ah-dl > p + .ah-lm { border-top: 0; }
.ah-lm__nm { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.3; color: #e8e8e8; }
.ah-lm:hover .ah-lm__nm { color: var(--ah-y); }
.ah-lm em { font-style: normal; font-weight: 700; font-size: 14px; line-height: 1.2; text-align: right; white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; }
.ah-lm em s { display: block; font-weight: 400; font-size: 11px; color: #9a9a9a; }

/* ---------- Three promos ---------- */
.ah .ah-proms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 36px; }
.ah-pt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 6px 12px; align-items: center; min-height: 178px; padding: 18px 16px 18px 20px; overflow: hidden; background: #111; }
.ah .ah-pt { color: #fff; }
.ah-pt::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ah-pt--pcb::before { background: linear-gradient(90deg, rgb(8 8 10 / .86), rgb(8 8 10 / .3)); }
.ah-pt--wh::before { background: linear-gradient(90deg, rgb(24 2 4 / .92), rgb(40 4 8 / .45)); }
.ah-pt--apple { background: #000; }
.ah .ah-pt__bg { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; }
.ah-pt__t { position: relative; z-index: 2; display: grid; gap: 7px; }
.ah-pt__t b { font-size: 22px; line-height: 1.1; font-weight: 800; }
.ah-pt__t small { font-size: 13.5px; line-height: 1.35; opacity: .9; }
.ah-pt__t em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ah-y); }
.ah .ah-pt__im { position: relative; z-index: 2; width: 148px; height: 148px; object-fit: contain; transition: transform .3s; }
.ah-pt:hover .ah-pt__im { transform: scale(1.05); }

/* ---------- What's new ---------- */
.ah-new { background: #f8f8f8; }
.ah-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-tab { position: relative; margin: 0; cursor: pointer; }
.ah .ah-tab input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ah-tab span { display: flex; align-items: center; min-height: 42px; padding: 9px 16px; background: #eaebec; color: var(--ah-ink); font-weight: 700; font-size: 14px; line-height: 1.2; transition: background .2s; }
.ah-tab:hover span { background: #dedfe1; }
.ah-tab input:checked + span { background: var(--ah-ink); color: var(--ah-y); }
.ah-tab input:focus-visible + span { outline: 3px solid var(--ah-ink); outline-offset: 2px; }
.ah-panel--b { display: none; }
.ah-new:has(input[value="b"]:checked) .ah-panel--a { display: none; }
.ah-new:has(input[value="b"]:checked) .ah-panel--b { display: block; }

/* ---------- Brands ---------- */
.ah-brands { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.ah-brand { display: grid; place-items: center; height: 68px; padding: 10px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); transition: box-shadow .2s; }
.ah-brand:hover,
.ah-brand:focus-visible { box-shadow: 0 0 0 2px var(--ah-y); }
.ah .ah-brand img { display: block; width: auto; max-height: 44px; object-fit: contain; }

.ah-more { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.ah-more[hidden] { display: none; }
.ah .ah-more__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin: 0; padding: 10px 26px; border: 2px solid var(--ah-ink); border-radius: 0; background: transparent; color: var(--ah-ink); font: 700 15px/1.2 var(--font-body, "Open Sans", sans-serif); cursor: pointer; transition: background .2s, color .2s; }
.ah .ah-more__btn:hover,
.ah .ah-more__btn:focus-visible { background: var(--ah-ink); color: var(--ah-y); }
.ah .ah-more__btn[aria-busy="true"] { background: var(--ah-ink); color: var(--ah-y); cursor: progress; }
.ah-more__spin { display: none; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ah-spin .7s linear infinite; }
.ah .ah-more__btn[aria-busy="true"] .ah-more__spin { display: block; }
@keyframes ah-spin { to { transform: rotate(360deg); } }
.ah-more__err { font-size: 13px; color: #b3261e; }
.ah-more__err[hidden] { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
	body .ah ul.products,
	.ah .ah-deals--nolead > ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ah-deals { grid-template-columns: minmax(0, 1fr); }
	.ah .ah-deals > ul.products { grid-column: auto; }
	.ah-lead { grid-column: auto; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.ah-dl { padding-top: 0; border-top: 0; }
	.ah-cat { flex-basis: calc((100% - 4 * 10px) / 5); }
	.ah-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
	.ah .ah-prom__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
	.ah .ah-proms { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
	.ah-sec { padding-block: 26px; }
	.ah-sec--flush { padding-top: 0; }
	.ah-sh { margin-bottom: 14px; }
	.ah .ah-ttl { font-size: 23px; }
	.ah-find__in { gap: 12px; padding-block: 22px; }
	.ah .ah-find__h { font-size: 24px; }
	.ah .ah-srch {
		--store-search-h: 64px;
		--armenius-infield-input-min-h: 64px;
		--armenius-infield-input-fs: 17px;
		--armenius-infield-label-fs: 16px;
		--armenius-infield-pad-x: 16px;
		--armenius-infield-pad-x-focus: 16px;
	}
	.ah .ah-srch__btn { justify-content: center; width: 64px; padding: 0; }
	.ah-srch__btn svg { width: 28px; height: 28px; }
	.ah .ah-srch__btn span { display: none; }
	.ah .ah-find__pop { gap: 6px; font-size: 13px; }
	.ah-find__pop span { flex-basis: 100%; }
	.ah .ah-find__pop a { padding: 6px 10px; }
	.ah .ah-prom__in { gap: 12px 10px; padding-block: 13px; }
	.ah-prom__in li,
	.ah-prom__in a { gap: 8px; font-size: 12.5px; }
	.ah-prom svg { width: 21px; height: 21px; }
	.ah-cats { gap: 7px; }
	.ah-cat { flex-basis: calc((100% - 2 * 7px) / 3); padding: 9px 5px; }
	.ah .ah-cat img { width: 72px; height: 72px; }
	.ah-cat b { font-size: 12.5px; }
	.ah-cat small { font-size: 11px; }
	body .ah ul.products,
	.ah .ah-deals > ul.products,
	.ah .ah-deals--nolead > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ah-deals { gap: 8px; }
	.ah-lead { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
	.ah-lead__top { grid-template-columns: minmax(0, 142px) minmax(0, 1fr); gap: 13px; }
	.ah-lead__info b { font-size: 25px; }
	.ah .ah-lead__name { font-size: 15px; }
	.ah-dl { padding-top: 10px; border-top: 1px solid #383838; }
	.ah-lm { padding: 7px 0; }
	.ah .ah-proms { gap: 8px; padding-bottom: 26px; }
	.ah-pt { grid-template-columns: minmax(0, 1fr) 112px; min-height: 140px; padding: 14px; }
	.ah .ah-pt__im { width: 112px; height: 112px; }
	.ah-pt__t b { font-size: 19px; }
	.ah-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 4px; }
	.ah-tab { flex: none; }
	.ah-tab span { min-height: 40px; padding: 8px 12px; font-size: 13px; }
	.ah-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ah-brand { height: 66px; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.ah *,
	.ah *::before,
	.ah *::after { transition: none !important; }
}
