/* Hafer's Shop Feed
 * Defaults match mmepgfp0bc.wpdns.site: Hafer's red #BB212B, near-black #1E1E1E,
 * Roboto Slab headings, Lato body. Override via Elementor style controls or these variables.
 */
.hsf {
	--hsf-accent: #bb212b;
	--hsf-dark: #1e1e1e;
	--hsf-text: #333;
	--hsf-muted: #6b6b6b;
	--hsf-border: #e2e2e2;
	--hsf-card-bg: #fff;
	--hsf-heading-font: "Roboto Slab", Georgia, serif;
	--hsf-body-font: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--hsf-cols: 4;
	--hsf-gap: 20px;
	--hsf-radius: 4px;
	position: relative;
	font-family: var(--hsf-body-font);
	color: var(--hsf-text);
	box-sizing: border-box;
}
.hsf *, .hsf *::before, .hsf *::after { box-sizing: border-box; }
.hsf ul { list-style: none; margin: 0; padding: 0; }
.hsf a { text-decoration: none; }
.hsf img { max-width: 100%; height: auto; display: block; }

/* Heading row ------------------------------------------------------- */
.hsf-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.hsf-title {
	margin: 0;
	font-family: var(--hsf-heading-font);
	font-weight: 800;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--hsf-dark);
}
.hsf-view-all {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--hsf-accent);
}
.hsf-view-all:hover { text-decoration: underline; }

/* Carousel / grid track --------------------------------------------- */
.hsf-viewport { position: relative; }
.hsf-track {
	display: grid;
	gap: var(--hsf-gap);
}
.hsf-layout-grid .hsf-track {
	grid-template-columns: repeat(var(--hsf-cols), minmax(0, 1fr));
}
.hsf-layout-carousel .hsf-track {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--hsf-cols) - 1) * var(--hsf-gap)) / var(--hsf-cols));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}
.hsf-layout-carousel .hsf-track::-webkit-scrollbar { display: none; }
.hsf-layout-carousel .hsf-item { scroll-snap-align: start; min-width: 0; }

/* Product card ------------------------------------------------------ */
.hsf-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--hsf-card-bg);
	border: 1px solid var(--hsf-border);
	border-radius: var(--hsf-radius);
	overflow: hidden;
	color: var(--hsf-text);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.hsf-card:hover {
	border-color: var(--hsf-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}
.hsf-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #fff;
	padding: 12px;
}
.hsf-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hsf-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px 14px;
	border-top: 1px solid var(--hsf-border);
	flex: 1;
}
.hsf-badge {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 2px;
	background: #f1f1f1;
	color: var(--hsf-dark);
}
.hsf-badge-brand-new { background: var(--hsf-dark); color: #fff; }
.hsf-card-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hsf-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hsf-price {
	margin-top: auto;
	font-size: 17px;
	font-weight: 800;
	color: var(--hsf-accent);
}
.hsf-price del {
	color: var(--hsf-muted);
	font-weight: 400;
	font-size: .85em;
	margin-right: 6px;
}

/* Arrows ------------------------------------------------------------ */
.hsf-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: 0;
	border-radius: 50%;
	background: var(--hsf-dark);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	padding: 0 0 3px;
	cursor: pointer;
	opacity: .9;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	transition: opacity .2s, background-color .2s;
}
.hsf-arrow:hover, .hsf-arrow:focus-visible { background: var(--hsf-accent); opacity: 1; }
.hsf-arrow[disabled] { opacity: 0; pointer-events: none; }
.hsf-prev { left: -14px; }
.hsf-next { right: -14px; }
.hsf-products .hsf-arrow { top: 38%; }

/* Banner slider ----------------------------------------------------- */
.hsf-banners {
	overflow: hidden;
	border-radius: var(--hsf-radius);
	background: var(--hsf-dark);
}
.hsf-slides { display: grid; }
.hsf-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}
.hsf-slide.is-active { opacity: 1; visibility: visible; }
.hsf-slide img { width: 100%; height: auto; }
.hsf-banners .hsf-prev { left: 14px; }
.hsf-banners .hsf-next { right: 14px; }
.hsf-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.hsf-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
}
.hsf-dot.is-active { background: var(--hsf-accent); }

/* Category tiles ---------------------------------------------------- */
.hsf-cat-grid {
	display: grid;
	grid-template-columns: repeat(var(--hsf-cols), minmax(0, 1fr));
	gap: var(--hsf-gap);
}
.hsf-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 16px 12px;
	background: #f7f6f2;
	border: 1px solid transparent;
	border-radius: var(--hsf-radius);
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.hsf-cat:hover { border-color: var(--hsf-accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.hsf-cat-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; }
.hsf-cat-img img { max-height: 100%; width: auto; object-fit: contain; }
.hsf-cat-name {
	font-family: var(--hsf-heading-font);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	color: var(--hsf-dark);
}
.hsf-categories-icons .hsf-cat { background: transparent; padding: 8px; }
.hsf-categories-icons .hsf-cat-img { width: 56px; height: 56px; aspect-ratio: auto; }
.hsf-categories-icons .hsf-cat-img img { width: 100%; height: 100%; }
.hsf-categories-icons .hsf-cat-name { font-family: var(--hsf-body-font); font-size: 13px; text-transform: none; }

/* Brands ------------------------------------------------------------ */
.hsf-brands { --hsf-cols: 6; }
.hsf-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--hsf-border);
	border-radius: var(--hsf-radius);
	color: var(--hsf-dark);
	font-weight: 700;
	text-align: center;
	transition: border-color .2s;
}
.hsf-brand:hover { border-color: var(--hsf-accent); }
.hsf-brand img { max-height: 100%; width: auto; object-fit: contain; }
.hsf-brands .hsf-arrow { width: 34px; height: 34px; margin-top: -17px; font-size: 22px; }

/* Promos ------------------------------------------------------------ */
.hsf-promos { display: flex; flex-direction: column; gap: var(--hsf-gap); }
.hsf-promo { display: block; border-radius: var(--hsf-radius); overflow: hidden; }
.hsf-promo img { width: 100%; }
@media (max-width: 575px) { .hsf-only-desktop { display: none; } }
@media (min-width: 576px) { .hsf-only-mobile { display: none; } }

/* Editor-only notice ------------------------------------------------ */
.hsf-notice {
	padding: 12px 16px;
	border-left: 4px solid var(--hsf-accent, #bb212b);
	background: #fff6f6;
	color: #333;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Default columns per screen size (Elementor's "Items per row" overrides these). */
@media (max-width: 1024px) {
	.hsf { --hsf-cols: 3; }
	.hsf.hsf-brands { --hsf-cols: 4; }
}
@media (max-width: 767px) {
	.hsf { --hsf-cols: 2; --hsf-gap: 12px; }
	.hsf.hsf-brands { --hsf-cols: 3; }
	.hsf-categories-icons { --hsf-cols: 3; }
	.hsf-card-name { font-size: 14px; }
	.hsf-price { font-size: 15px; }
	.hsf-cat-name { font-size: 14px; }
}

/* Small screens: let carousels peek so people know to swipe -------- */
@media (max-width: 767px) {
	.hsf-arrow { display: none; }
	.hsf-banners .hsf-arrow { display: block; width: 32px; height: 32px; margin-top: -16px; font-size: 22px; }
	.hsf-layout-carousel .hsf-track {
		grid-auto-columns: calc((100% - (var(--hsf-cols) - 1) * var(--hsf-gap)) / (var(--hsf-cols) + .3));
	}
	.hsf-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
	.hsf-slide, .hsf-card, .hsf-layout-carousel .hsf-track { transition: none; scroll-behavior: auto; }
}

/* "No longer available" page ---------------------------------------- */
.hsf-unavailable { padding: 56px 20px 72px; }
.hsf-unavailable-inner { max-width: 1120px; margin: 0 auto; }
.hsf-unavailable .hsf-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.hsf-unavailable-msg { font-size: 18px; line-height: 1.55; max-width: 720px; margin: 0 0 24px; color: var(--hsf-text); }
.hsf-unavailable-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hsf-unavailable-sub {
	font-family: var(--hsf-heading-font);
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--hsf-dark);
	margin: 0 0 18px;
}
.hsf-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid var(--hsf-accent);
	border-radius: 3px;
	background: var(--hsf-accent);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .3px;
	text-transform: uppercase;
}
.hsf-btn:hover { background: #9a1a23; border-color: #9a1a23; }
.hsf-btn-outline { background: transparent; color: var(--hsf-accent) !important; }
.hsf-btn-outline:hover { background: var(--hsf-accent); color: #fff !important; }

/* Missing images ----------------------------------------------------- */
.hsf-card-img.hsf-noimg { position: relative; background: #f4f3ef; }
.hsf-card-img.hsf-noimg img { display: none; }
.hsf-card-img.hsf-noimg::after {
	content: "Photo coming soon";
	color: var(--hsf-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
}
.hsf-brand.hsf-noimg img, .hsf-cat-img.hsf-noimg img { display: none; }
