/* Home page built by [az_home] (inc/homepage.php). Sections own the site gutter. */
.az-home {
	--az-red: #db070b;
	--az-red-dark: #b7060a;
	--az-ink: #19191b;
	--az-muted: #65656d;
	--az-line: #ececef;
	--az-soft: #f6f6f8;
	color: var(--az-ink);
}
body.home .entry-content > .az-home { width: 100%; max-width: none; margin: 0; padding-bottom: 16px; }
/* Astra's page margins would add ~60px above the hero and below the last section. */
body.home #content #primary { margin-block: 0; }
.az-home > * {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 28px var(--az-site-gutter);
}
.az-home h2 { margin: 0; font: 600 clamp(22px, 2vw, 30px)/1.25 Urbanist, Arial, sans-serif; color: var(--az-ink); }

/* Section headings: title on the start side, link on the end side. */
.az-home :is(.az-home-head, .az-home-products-heading) {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}
.az-home :is(.az-home-head, .az-home-products-heading) > a {
	flex-shrink: 0;
	color: var(--az-red);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.az-home :is(.az-home-head, .az-home-products-heading) > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.az-home .az-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: 600 15px/1.2 Urbanist, Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.az-home .az-btn:focus-visible { outline: 2px solid var(--az-ink); outline-offset: 3px; }
.az-home .az-btn--primary { background: var(--az-red); color: #fff; }
.az-home .az-btn--primary:hover { background: var(--az-red-dark); color: #fff; }
.az-home .az-btn--ghost { border-color: #d4d4da; background: #fff; color: var(--az-ink); }
.az-home .az-btn--ghost:hover { border-color: var(--az-ink); color: var(--az-ink); }
.az-home .az-btn--light { flex-shrink: 0; background: #fff; color: var(--az-ink); }
.az-home .az-btn--light:hover { background: #f1f1f4; color: var(--az-ink); }
.az-home .az-btn--light:focus-visible { outline-color: #fff; }

/* Hero */
.az-home .az-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: 48px;
	padding-block: 40px 24px;
}
.az-hero-eyebrow {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fdeced;
	color: var(--az-red);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.az-home .az-hero h1 {
	max-width: 18ch;
	margin: 0 0 16px;
	color: var(--az-ink);
	font: 700 clamp(32px, 3.6vw, 52px)/1.1 Urbanist, Arial, sans-serif;
	letter-spacing: -.01em;
}
.az-hero-lead { max-width: 52ch; margin: 0 0 26px; color: var(--az-muted); font-size: 17px; line-height: 1.6; }
.az-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.az-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8%;
	min-height: 320px;
	padding: 28px;
	border-radius: 24px;
	background: radial-gradient(120% 120% at 30% 20%, #fff 0, #f2f2f5 60%, #ececf0 100%);
}
/* The photos have white backgrounds; multiply lets the panel colour show through. */
.az-hero-media img { width: 42%; height: auto; max-height: 280px; object-fit: contain; mix-blend-mode: multiply; }

/* Category tabs */
.az-cat-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.az-home .az-cat-tab {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--az-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	color: var(--az-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.az-home .az-cat-tab:is(:hover, :focus) { border-color: #cfcfd6; background: #fff; color: var(--az-ink); }
.az-home .az-cat-tab[aria-selected="true"] { border-color: var(--az-red); background: #fff6f6; box-shadow: inset 0 0 0 1px var(--az-red); }
.az-home .az-cat-tab:focus-visible { outline: 2px solid var(--az-ink); outline-offset: 2px; }
.az-cat-tab img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.az-cat-tab > span { min-width: 0; }
.az-cat-tab strong { display: block; font: 600 16px/1.3 Urbanist, Arial, sans-serif; }
.az-cat-tab small { display: block; margin-top: 2px; color: var(--az-muted); font-size: 13px; }
.az-cat-panel { padding-top: 16px; }
.az-cat-panel[hidden] { display: none; }
.az-home .az-cat-panel .az-category-slider { margin: 0 0 4px; }
.az-cat-all { display: inline-flex; gap: 6px; color: var(--az-red); font-size: 14px; font-weight: 600; text-decoration: none; }
.az-cat-all:hover { color: var(--az-red-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Product rows: two rows of five on desktop, a swipeable row below 1025px. */
body.home #main .az-home ul.products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
}
body.home #main .az-home ul.products::before,
body.home #main .az-home ul.products::after { display: none; }
body.home #main .az-home ul.products li.product { float: none; width: auto; min-width: 0; margin: 0; }
body.home #main .az-home ul.products .astra-shop-thumbnail-wrap img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 8px;
}
body.home #main .az-home ul.products .woocommerce-loop-product__title { margin-block: 12px 6px; font-size: 14px; line-height: 1.45; }
body.home #main .az-home ul.products .price { font-size: 14px; }

/* Wholesale band */
.az-home .az-wholesale-band { padding-block: 12px; }
.az-wholesale-band-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	border-radius: 20px;
	background: linear-gradient(120deg, #19191b 0%, #2b1214 100%);
	color: #fff;
}
.az-home .az-wholesale-band h2 { color: #fff; font-size: clamp(20px, 1.8vw, 26px); }
.az-wholesale-band p { max-width: 62ch; margin: 6px 0 0; color: #d9d9de; font-size: 15px; line-height: 1.55; }

/* Brands: 15 logos in three rows of five, on every screen size. */
.az-home .az-home-brands h2 { margin-bottom: 16px; }
.az-home .az-brand-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.az-home .az-brand-grid li { min-width: 0; margin: 0; padding: 0; }
.az-home .az-brand-grid a {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	height: 88px;
	padding: 10px;
	border: 1px solid var(--az-line);
	border-radius: 12px;
	background: #fff;
	color: var(--az-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s;
}
.az-home .az-brand-grid a:hover { border-color: #cfcfd6; }
.az-home .az-brand-grid a:focus-visible { outline: 2px solid var(--az-red); outline-offset: 2px; }
.az-home .az-brand-grid img { display: block; width: 100px; max-width: 100%; height: 52px; object-fit: contain; }

/* Key figures */
.az-home .az-trust { padding-block: 4px 12px; }
.az-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.az-trust-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 18px 12px;
	border: 1px solid var(--az-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
}
.az-trust-grid strong { color: var(--az-ink); font: 700 clamp(26px, 2.4vw, 34px)/1.1 Urbanist, Arial, sans-serif; }
.az-trust-grid span { color: var(--az-muted); font-size: 14px; line-height: 1.4; }

/* Screen quality guide */
.az-screens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.az-screen {
	--az-q: #2e7a4d;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--az-line);
	border-radius: 16px;
	background: #fff;
}
.az-screen--oled { --az-q: #6b3fbf; }
.az-screen--incell { --az-q: #a3580b; }
.az-screen-pill { padding: 5px 14px; border-radius: 999px; background: var(--az-q); color: #fff; font: 700 14px/1.3 Urbanist, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.az-screen p { margin: 14px 0 14px; color: var(--az-muted); font-size: 15px; line-height: 1.55; }
.az-screen dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; }
.az-screen dl div { display: flex; gap: 6px; font-size: 14px; }
.az-screen dt { color: var(--az-muted); }
.az-screen dt::after { content: " :"; }
.az-screen dd { margin: 0; color: var(--az-ink); font-weight: 600; }
.az-home .az-screen a { margin-top: auto; color: var(--az-q); font-size: 14px; font-weight: 700; text-decoration: none; }
.az-home .az-screen a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Reviews slider */
.az-reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--az-muted); font-size: 15px; }
.az-reviews-summary strong { color: var(--az-ink); }
.az-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.az-stars svg { fill: #e3e3e8; }
.az-stars svg.on { fill: #f5a623; }
.az-slider { position: relative; }
.az-reviews-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 48px) / 4);
	gap: 16px;
	margin: 0;
	padding: 2px 2px 10px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.az-reviews-track::-webkit-scrollbar { display: none; }
.az-review {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--az-line);
	border-radius: 16px;
	background: #fff;
	scroll-snap-align: start;
}
.az-home .az-review blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--az-ink);
	font-size: 15px;
	font-style: normal;
	line-height: 1.55;
}
.az-review footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: auto; font-size: 14px; }
.az-review footer strong { color: var(--az-ink); }
.az-review footer small { color: var(--az-muted); }
.az-review footer a { flex-basis: 100%; overflow: hidden; color: var(--az-muted); font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.az-review footer a:hover { color: var(--az-red); }
.az-review-verified { padding: 1px 8px; border-radius: 999px; background: #e3f4e8; color: #17663a; font-size: 12px; font-weight: 600; }
.az-home .az-slider-btn {
	position: absolute;
	top: calc(50% - 25px);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--az-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(25, 25, 27, .08);
	color: var(--az-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.az-home .az-slider-btn:is(:hover, :focus) { background: #fff; color: var(--az-red); border-color: #cfcfd6; }
.az-home .az-slider-btn:focus-visible { outline: 2px solid var(--az-ink); outline-offset: 2px; }
.az-home .az-slider-btn:disabled { opacity: .35; cursor: default; }
.az-home .az-slider-btn[hidden] { display: none; }
.az-slider-btn--prev { inset-inline-start: -20px; }
.az-slider-btn--next { inset-inline-end: -20px; }
[dir="rtl"] .az-slider-btn span { display: inline-block; transform: scaleX(-1); }

/* Stores */
.az-stores-lead { margin: 4px 0 0; color: var(--az-muted); font-size: 15px; }
.az-stores-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.az-store {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--az-line);
	border-radius: 16px;
	background: #fff;
}
.az-home .az-store h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	color: var(--az-ink);
	font: 700 19px/1.3 Urbanist, Arial, sans-serif;
}
.az-store-icon { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fdeced; color: var(--az-red); }
.az-store p { margin: 0 0 18px; color: var(--az-muted); font-size: 15px; line-height: 1.5; }
.az-store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.az-home .az-store-actions .az-btn { gap: 8px; min-height: 44px; padding-inline: 20px; }

@media (max-width: 1024px) {
	.az-reviews-track { grid-auto-columns: calc((100% - 16px) / 2.2); }
	.az-stores-grid, .az-screens-grid { grid-template-columns: 1fr; gap: 12px; }
	.az-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.az-home .az-hero { gap: 28px; }
	body.home #main .az-home ul.products {
		display: flex;
		gap: 12px;
		padding-bottom: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
	}
	body.home #main .az-home ul.products li.product { flex: 0 0 calc((100% - 24px) / 3.3); scroll-snap-align: start; }
}

@media (max-width: 767px) {
	.az-home > * { padding-block: 20px; }
	.az-home .az-hero { grid-template-columns: 1fr; padding-block: 20px 8px; }
	.az-hero-media { display: none; }
	.az-hero-eyebrow { margin-bottom: 12px; font-size: 12px; }
	.az-home .az-hero h1 { font-size: 30px; }
	.az-hero-lead { margin-bottom: 18px; font-size: 15px; }
	.az-hero-actions .az-btn { flex: 1 1 0; padding-inline: 12px; }

	.az-cat-tabs { gap: 8px; }
	.az-home .az-cat-tab { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
	.az-cat-tab img { width: 44px; height: 44px; }
	.az-cat-tab strong { font-size: 13px; }
	.az-cat-tab small { font-size: 11px; }

	body.home #main .az-home ul.products li.product { flex-basis: 46%; }
	body.home #main .az-home ul.products .woocommerce-loop-product__title { font-size: 13px; }

	.az-wholesale-band-inner { flex-direction: column; align-items: stretch; padding: 22px 20px; text-align: start; }
	.az-home .az-trust { padding-block: 16px 8px; }
	.az-reviews-track { grid-auto-columns: 84%; gap: 12px; }
	.az-home .az-slider-btn { display: none; } /* Phones swipe; arrows would cover the text. */
	.az-trust-grid { gap: 8px; }
	.az-trust-grid li { padding: 14px 8px; border-radius: 12px; }
	.az-trust-grid strong { font-size: 24px; }
	.az-trust-grid span { font-size: 12.5px; }
	.az-home .az-brand-grid { gap: 8px; }
	.az-home .az-brand-grid a { height: 60px; padding: 8px; border-radius: 10px; }
	.az-home .az-brand-grid img { width: 48px; height: 32px; }
}
