/*
 * AS Brand Home — bridge between this store's theme and the original autoolstore.com home styles
 * (assets/autool/*). Only what autoolstore.com adds outside autool-homepage.css, or what this
 * store's theme sets differently, is here:
 *   1. the Blocksy theme values autoolstore.com gives the page (colours come inline from the settings; the
 *      content width is NOT pinned: every module uses this store's theme container, aligned with header / footer);
 *   2. the reference's inline head CSS (hero LCP picture, phone hero) and inline-link rules;
 *   3. device visibility and builder helpers;
 *   4. the product card (autoolstore.com Blocksy card, measured at 1440 / 834 / 390).
 */

/* 1. Theme values ---------------------------------------------------------------------------- */
.asbh-page {
	--theme-font-family: Inter, Sans-Serif;
	--theme-heading-font-family: 'Barlow Condensed', sans-serif;
	--theme-palette-color-6: #F4F6F8;
	--theme-palette-color-7: #F9FAFB;
	--theme-palette-color-8: #FFFFFF;
	--theme-button-font-family: Barlow, Sans-Serif;
	--asbh-shadow: 0 1px 3px 0 rgba(26, 29, 32, .05), 0 1px 2px 0 rgba(26, 29, 32, .04);
	--asbh-shadow-hover: 0 10px 20px -4px rgba(26, 29, 32, .1), 0 4px 8px -2px rgba(26, 29, 32, .06);
	-webkit-font-smoothing: antialiased;
}
/* autoolstore.com never loads Barlow Condensed or IBM Plex Mono: its headings and labels render in the
   system sans-serif / monospace. This store's theme does load IBM Plex Mono, so the label stack names a
   face that is never loaded — same fallback as the reference (and no bare-"monospace" size quirk). */
.asbh-page.autool-hp-page-wrapper { --font-mono: 'autool-mono-fallback', monospace; }
/* autoolstore.com's Blocksy heading typography (used where the original home CSS sets nothing). */
.asbh-page h1 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 42px; --theme-line-height: 1.15; --theme-letter-spacing: -0.02em; }
.asbh-page h2 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 32px; --theme-line-height: 1.2; --theme-letter-spacing: -0.01em; }
.asbh-page h3 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 24px; --theme-line-height: 1.3; --theme-letter-spacing: 0em; }
.asbh-page h4 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 20px; --theme-line-height: 1.35; --theme-letter-spacing: 0em; }
.asbh-page h5 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: none; --theme-font-size: 18px; --theme-line-height: 1.4; --theme-letter-spacing: 0em; }
.asbh-page h6 { --theme-font-family: Barlow, Sans-Serif; --theme-font-weight: 700; --theme-text-transform: uppercase; --theme-font-size: 14px; --theme-line-height: 1.4; --theme-letter-spacing: 0.04em; }
@media (max-width: 999.98px) {
	.asbh-page h1 { --theme-font-size: 36px; }
	.asbh-page h2 { --theme-font-size: 28px; }
	.asbh-page h3 { --theme-font-size: 22px; }
	.asbh-page h4 { --theme-font-size: 18px; }
	.asbh-page h5 { --theme-font-size: 16px; }
}
@media (max-width: 689.98px) {
	.asbh-page h1 { --theme-font-size: 28px; }
	.asbh-page h2 { --theme-font-size: 24px; }
	.asbh-page h3 { --theme-font-size: 20px; }
}
/* Phones too: the store's container (16 px gutters), not the reference's 20–24 px. */
@media (max-width: 767px) {
	body.asbh-home .asbh-page.autool-hp-page-wrapper .autool-hp-container { width: var(--content-w); }
}
/* The theme's content area must not add space around the full-bleed page. */
.asbh-home #main,
.asbh-home .site-main { padding: 0; margin: 0; }
.asbh-home .autool-hp-page-wrapper { margin-top: 0; margin-bottom: 0; }
/* autoolstore.com squares every control and picture site-wide (theme radius 0); same here, inside the page. */
.asbh-page :where(button, input, img, figure, .autool-hp-btn, .button) { border-radius: var(--theme-border-radius); }

/* 2. Reference inline CSS (autool-header-elements: hero LCP picture, phone hero stability, inline links) */
.autool-hp-hero-section > .autool-hp-hero-lcp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; margin: 0; padding: 0; border: 0; display: block; pointer-events: none; max-width: none; }
.autool-hp-hero-section::before { background-image: linear-gradient(90deg, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .72) 48%, rgba(8, 8, 8, .82) 100%) !important; z-index: 1; }
.autool-hp-hero-section::after { z-index: 1; }
.autool-hp-hero-section > .autool-hp-container,
.autool-hp-hero-section .autool-hp-hero-inner { position: relative; z-index: 2; }
@media (max-width: 767px) {
	body.asbh-home .autool-hp-page-wrapper .autool-hp-hero-section { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
	body.asbh-home .autool-hp-page-wrapper .autool-hp-hero-section > .autool-hp-container { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: clamp(20px, 5vw, 24px) !important; padding-right: clamp(20px, 5vw, 24px) !important; }
	body.asbh-home .autool-hp-page-wrapper .autool-hp-hero-inner { width: 100% !important; grid-template-columns: minmax(0, 1fr) !important; }
	body.asbh-home .autool-hp-page-wrapper .autool-hp-hero-visual { display: none !important; }
}
.autool-hp-page-wrapper .autool-hp-inline-link { color: var(--theme-link-hover-color, var(--theme-palette-color-1, #feb511)); font-weight: 700; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; border-bottom: 2px solid transparent; }
.autool-hp-page-wrapper .autool-hp-inline-link::after { content: " >"; font-weight: 800; }
.autool-hp-page-wrapper .autool-hp-inline-link:hover,
.autool-hp-page-wrapper .autool-hp-inline-link:focus-visible { color: var(--theme-palette-color-4, #1a1d20); background-color: color-mix(in srgb, var(--theme-palette-color-1, #feb511) 22%, transparent); outline: 2px solid var(--theme-palette-color-1, #feb511); outline-offset: 2px; }

/* 3. Device visibility (desktop >= 1024, tablet 768–1023, phone <= 767) and helpers ----------- */
@media (min-width: 1024px) { .asbh-hide-d { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023.98px) { .asbh-hide-t { display: none !important; } }
@media (max-width: 767.98px) { .asbh-hide-m { display: none !important; } }
.asbh-off:not(.asbh-is-preview *) { display: none !important; }
.asbh-html--raw { display: contents; }
.asbh-page [id] { scroll-margin-top: 90px; }

/* The store theme forces Plex Mono 500 !important on prices and 8px radii / Plex Sans on .button. */
body .asbh-page .asbh-card__price :is(.amount, .woocommerce-Price-amount, .woocommerce-Price-currencySymbol, bdi, del, ins, span) { font-family: inherit !important; font-weight: inherit !important; font-variant-numeric: normal; }
body .asbh-page .asbh-card__actions :is(.button, .added_to_cart) { border-radius: var(--theme-border-radius, 0) !important; font-family: Barlow, sans-serif; font-weight: 600; }
body .asbh-page .asbh-card__title { font-family: Barlow, sans-serif; font-weight: 600; }

/* 4. Product card ------------------------------------------------------------------------------ */
.asbh-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
	--asbh-pad: 14px;
	--asbh-gap: 6px;
	--asbh-top: 2px;
}
.asbh-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asbh-cards--one { grid-template-columns: minmax(0, 1fr); gap: 0; }
.asbh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--asbh-gap);
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .05);
	box-shadow: var(--asbh-shadow);
	color: var(--text-on-light, #4a5568);
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.asbh-card:hover,
.asbh-card:focus-within { transform: translateY(-3px); border-color: var(--accent, #feb511); box-shadow: var(--asbh-shadow-hover); }
.asbh-card > :not(.asbh-card__media) { margin: var(--asbh-top) var(--asbh-pad) 0; min-width: 0; }
.asbh-card__media { position: relative; display: flex; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; }
.asbh-card__pic { position: relative; display: block; width: 100%; height: 100%; }
.asbh-card__pic img { display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; transition: opacity .5s, transform .5s; }
.asbh-card__swap { position: absolute; inset: 0; z-index: 1; opacity: 0; }
.asbh-card:hover .asbh-card__swap { opacity: 1; }
.asbh-card__badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 26px;
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, .64);
	border-radius: 7px;
	background: rgba(254, 181, 17, .42);
	box-shadow: 0 3px 10px 0 rgba(26, 29, 32, .1), inset 0 1px 0 0 rgba(255, 255, 255, .34);
	-webkit-backdrop-filter: blur(10px) saturate(1.4);
	backdrop-filter: blur(10px) saturate(1.4);
	color: #171a1d;
	font: 700 11px/1.1 Inter, sans-serif;
	text-align: center;
	letter-spacing: .04em;
	text-transform: uppercase;
}
/* One line; a long name is cut at the line like the reference (no ellipsis). */
.asbh-card > .asbh-card__cat { height: 17.55px; margin-bottom: 2.04px; overflow: hidden; color: var(--text-on-light, #4a5568); font-size: 13px; font-weight: 500; line-height: 17.55px; text-transform: capitalize; }
.asbh-card__cat a { color: inherit; text-decoration: none; }
.asbh-card__title {
	display: flow-root;
	min-height: 2.8em;
	margin-bottom: 0;
	overflow: hidden;
	color: var(--heading-on-light, #1a1d20);
	font-family: Barlow, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
}
.asbh-card__title a { display: -webkit-box; overflow: hidden; color: inherit; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.asbh-card__rating { display: flex; align-items: center; gap: 4px; min-height: 21.6px; }
.asbh-card__stars {
	display: block;
	width: 78px;
	height: 14px;
	background: linear-gradient(90deg, var(--accent, #feb511) var(--asbh-r, 0%), #e2e8f0 var(--asbh-r, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.6 14'%3E%3Cpath d='M7 .6l2 4.3 4.6.5-3.4 3.1 1 4.6L7 10.8 2.8 13.1l1-4.6L.4 5.4 5 4.9z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.6 14'%3E%3Cpath d='M7 .6l2 4.3 4.6.5-3.4 3.1 1 4.6L7 10.8 2.8 13.1l1-4.6L.4 5.4 5 4.9z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x;
}
.asbh-card__count { color: var(--text-on-light, #4a5568); font-size: 12px; line-height: 1; }
.asbh-card__price { display: flex; font-family: Inter, sans-serif; flex-wrap: wrap; align-items: baseline; gap: .35em; min-height: 24px; color: var(--heading-on-light, #1a1d20); font-size: 15px; font-weight: 600; line-height: 1.65; }
.asbh-card__price del { color: var(--text-on-light, #4a5568); font-size: .85em; font-weight: 400; opacity: .75; }
.asbh-card__price ins { text-decoration: none; background: none; }
.asbh-card__price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.asbh-card > .asbh-card__actions { display: flex; margin-top: auto; margin-bottom: var(--asbh-pad); padding-top: var(--asbh-gap); }
.asbh-card__actions .button,
.asbh-card__actions .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	padding: 0 12px;
	overflow: hidden;
	border: 0;
	border-radius: var(--theme-border-radius, 0);
	background: var(--accent, #feb511);
	box-shadow: none;
	color: #111;
	font-family: Barlow, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .04em;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s;
}
.asbh-card__actions .button:is(:hover, :focus-visible, .loading, .added) { background: var(--accent-dark, #e5a30f); color: #111; }
.asbh-card__actions .button:focus-visible { outline: 2px solid var(--accent-dark, #e5a30f); outline-offset: 2px; }
.asbh-card__actions .added_to_cart { display: none; }
.asbh-card__btnicon { display: flex; flex: none; width: 12px; height: 12px; }
.asbh-card__btnicon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.asbh-card__btnlabel { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 999.98px) {
	.asbh-cards, .asbh-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); --asbh-pad: 12px; --asbh-gap: 5px; }
}
@media (max-width: 689.98px) {
	.asbh-cards, .asbh-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; --asbh-pad: 9px; --asbh-gap: 4px; --asbh-top: 1px; }
	.asbh-card__badge { top: 16px; left: 16px; border-radius: 6px; }
	.asbh-card__actions .button { min-height: 48px; height: auto; padding: 6px 12px; overflow: visible; line-height: 1.2; white-space: normal; }
	.asbh-card__btnlabel { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}
.asbh-cards--one { gap: 0; }
@media (max-width: 999.98px) { .asbh-cards--one { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
	.asbh-card, .asbh-card__pic img { transition: none; }
	.asbh-card:hover, .asbh-card:focus-within { transform: none; }
}
