/*
Theme Name: HotFreshDeals
Theme URI:
Description: Original shopping deal discovery theme for HotFreshDeals.com.
Author: HotFreshDeals
Author URI:
Version: 0.1.0
Text Domain: hotfreshdeals-theme
Domain Path: /languages
*/

/* -------------------------------------------------------------------------
   0. Brand tokens
   ------------------------------------------------------------------------- */

:root {
	--hfd-color-primary: #e8491d;
	--hfd-color-primary-dark: #c93a12;
	--hfd-color-primary-tint: #fff1ea;
	--hfd-color-secondary: #1e8a5f;
	--hfd-color-secondary-tint: #eaf7f1;
	--hfd-color-ink: #201a17;
	--hfd-color-muted: #6b6560;
	--hfd-color-border: #ece5df;
	--hfd-color-surface: #ffffff;
	--hfd-color-surface-alt: #fffaf6;
	--hfd-radius-sm: 6px;
	--hfd-radius-md: 10px;
	--hfd-shadow-card: 0 1px 2px rgba(32, 26, 23, 0.04), 0 6px 16px rgba(32, 26, 23, 0.06);
	--hfd-shadow-card-hover: 0 2px 4px rgba(32, 26, 23, 0.06), 0 10px 24px rgba(32, 26, 23, 0.1);
}

/* -------------------------------------------------------------------------
   1. Reset / box sizing
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

::selection {
	background-color: var(--hfd-color-primary);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------------------- */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--hfd-color-ink);
	background-color: var(--hfd-color-surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.75em;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

/* -------------------------------------------------------------------------
   3. Links
   ------------------------------------------------------------------------- */

a {
	color: var(--hfd-color-primary-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

a:hover,
a:active {
	color: var(--hfd-color-primary);
}

/* -------------------------------------------------------------------------
   4. Buttons and form elements
   ------------------------------------------------------------------------- */

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: 1rem;
}

button,
input[type="submit"] {
	cursor: pointer;
	padding: 0.65em 1.25em;
	border: 2px solid var(--hfd-color-ink);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-ink);
	color: #ffffff;
	font-weight: 700;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

button:hover,
input[type="submit"]:hover {
	background-color: var(--hfd-color-primary);
	border-color: var(--hfd-color-primary);
}

button:active,
input[type="submit"]:active {
	transform: translateY(1px);
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"] {
	padding: 0.65em 1em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
	border-color: var(--hfd-color-primary);
}

/* -------------------------------------------------------------------------
   5. Images and media
   ------------------------------------------------------------------------- */

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* -------------------------------------------------------------------------
   6. Layout / containers
   ------------------------------------------------------------------------- */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-header,
.site-content,
.site-footer {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.site-content {
	flex: 1 0 auto;
	padding-top: 2rem;
	padding-bottom: 3rem;
}

/* -------------------------------------------------------------------------
   7. Header and navigation
   ------------------------------------------------------------------------- */

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--hfd-color-border);
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--hfd-color-surface);
}

.site-branding .site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-branding .site-title a {
	text-decoration: none;
	color: var(--hfd-color-ink);
}

.site-branding .site-title a::before {
	content: "";
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-right: 0.35em;
	border-radius: 50%;
	background-color: var(--hfd-color-primary);
	vertical-align: middle;
}

.site-branding .site-description {
	margin: 0.15rem 0 0;
	font-size: 0.875rem;
	color: var(--hfd-color-muted);
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo-link .custom-logo {
	display: block;
	width: auto;
	max-height: 76px;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	text-decoration: none;
	color: var(--hfd-color-ink);
	font-weight: 600;
}

.main-navigation a:hover {
	color: var(--hfd-color-primary);
}

.main-navigation .menu-item-active a {
	color: var(--hfd-color-primary);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Categories dropdown: keeps the header from listing every taxonomy term
   inline as the category set grows past a handful of items. */
.main-navigation .hfd-menu-item--has-children {
	position: relative;
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	min-width: 220px;
	max-height: 70vh;
	overflow-y: auto;
	margin: 0;
	padding: 0.5rem 0;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-radius: 0.5rem;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.main-navigation .hfd-menu-item--has-children:hover .sub-menu,
.main-navigation .hfd-menu-item--has-children:focus-within .sub-menu,
.main-navigation .hfd-menu-item--has-children.is-open .sub-menu {
	display: flex;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	font-weight: 500;
	white-space: nowrap;
}

.main-navigation .sub-menu .menu-item-active a {
	text-decoration: none;
	background-color: var(--hfd-color-surface-alt);
}

/* -------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------- */

.site-footer {
	padding-top: 2rem;
	padding-bottom: 2rem;
	margin-top: 2rem;
	font-size: 0.875rem;
	color: var(--hfd-color-muted);
	border-top: 1px solid var(--hfd-color-border);
	background-color: var(--hfd-color-surface-alt);
}

.site-footer .site-info {
	max-width: 1200px;
}

.hfd-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--hfd-color-border);
}

.hfd-footer__tagline {
	margin: 0;
	font-weight: 700;
	color: var(--hfd-color-ink);
}

.hfd-footer__links {
	display: flex;
	gap: 1.25rem;
}

.hfd-footer__links a {
	color: var(--hfd-color-muted);
	text-decoration: none;
	font-weight: 600;
}

.hfd-footer__links a:hover {
	color: var(--hfd-color-primary);
}

.hfd-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	line-height: 1.6;
}

.hfd-footer__legal-links a {
	color: var(--hfd-color-muted);
	text-decoration: none;
	font-weight: 400;
	opacity: 0.85;
}

.hfd-footer__legal-links a:hover,
.hfd-footer__legal-links a:focus {
	color: var(--hfd-color-primary);
	text-decoration: underline;
	opacity: 1;
}

.hfd-footer__legal-sep {
	color: var(--hfd-color-border);
	font-size: 0.75rem;
}

@media (max-width: 480px) {
	.hfd-footer__legal-links {
		gap: 0.35rem 0.5rem;
	}
}

.hfd-footer__amazon-statement {
	margin: 0 0 0.5rem;
	font-weight: 700;
	color: var(--hfd-color-ink);
}

.hfd-footer__disclosure {
	margin: 0 0 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--hfd-color-border);
	color: var(--hfd-color-ink);
}

.hfd-footer__copy {
	margin: 0;
}

/* -------------------------------------------------------------------------
   9. Accessibility
   ------------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--hfd-color-primary-dark);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   10. Basic responsive behavior
   ------------------------------------------------------------------------- */

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1;
	cursor: pointer;
}

.menu-toggle__bars {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 20px;
	height: 14px;
	flex: none;
}

.menu-toggle__bars span {
	display: block;
	height: 2px;
	border-radius: 1px;
	background-color: currentColor;
}

.menu-toggle:focus-visible {
	outline: 2px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.site-header {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.custom-logo-link .custom-logo {
		max-height: 48px;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		display: none;
		flex-basis: 100%;
		width: 100%;
		margin-top: 1rem;
	}

	.main-navigation.toggled {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		width: 100%;
	}

	.main-navigation li {
		flex-shrink: 0;
		width: 100%;
		border-bottom: 1px solid var(--hfd-color-border);
	}

	.main-navigation a {
		display: block;
		width: 100%;
		white-space: normal;
		padding: 0.9rem 0.25rem;
	}

	.main-navigation .hfd-menu-item--has-children {
		position: static;
	}

	.main-navigation .hfd-menu-item--has-children:hover .sub-menu {
		display: none;
	}

	.main-navigation .hfd-menu-item--has-children.is-open .sub-menu,
	.main-navigation .hfd-menu-item--has-children:focus-within .sub-menu {
		display: block;
	}

	.main-navigation .sub-menu {
		display: none;
		position: static;
		flex-direction: column;
		width: 100%;
		min-width: 0;
		max-height: calc(100vh - 10rem);
		max-height: calc(100svh - 10rem);
		overflow-y: auto;
		touch-action: pan-y;
		overscroll-behavior: contain;
		margin: 0 0 0.5rem;
		padding: 0 0 0 1rem;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: none;
	}

	.main-navigation .sub-menu a {
		padding: 0.65rem 0.5rem;
	}
}

/* -------------------------------------------------------------------------
   11. Homepage hero
   ------------------------------------------------------------------------- */

.hfd-hero {
	padding-top: 3.5rem;
	padding-bottom: 3rem;
	margin-bottom: 0.5rem;
	text-align: center;
	background: radial-gradient( ellipse at top, var(--hfd-color-primary-tint) 0%, rgba(255, 255, 255, 0) 65% );
	border-radius: var(--hfd-radius-md);
}

.hfd-hero__title {
	margin-bottom: 1.25rem;
	font-size: clamp( 1.75rem, 4vw, 2.5rem );
	max-width: 26ch;
	margin-left: auto;
	margin-right: auto;
}

.hfd-hero__search .search-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	max-width: 32rem;
	margin: 0 auto;
}

.hfd-hero__search .search-field {
	flex: 1 1 16rem;
}

.hfd-hero__stats {
	margin: 1.5rem 0 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	row-gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--hfd-color-muted);
}

.hfd-hero__stats span:not(:last-child)::after {
	content: "•";
	margin: 0 0.75rem;
	color: var(--hfd-color-border);
	font-weight: 400;
}

/* -------------------------------------------------------------------------
   12. Homepage sections (generic)
   ------------------------------------------------------------------------- */

.hfd-section {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.hfd-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	padding-left: 0.75rem;
	border-left: 4px solid var(--hfd-color-primary);
}

.hfd-section__header h2 {
	margin: 0;
	font-size: 1.375rem;
}

.hfd-section__see-all {
	font-size: 0.875rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.hfd-section__see-all:hover {
	text-decoration: underline;
}

.hfd-section__see-all--button {
	display: inline-flex;
	align-items: center;
	background-color: var(--hfd-color-secondary);
	color: #fff;
	padding: 0.6em 1.4em;
	border-radius: 999px;
	text-decoration: none;
}

.hfd-section__see-all--button:hover {
	background-color: var(--hfd-color-ink);
	text-decoration: none;
}

.hfd-section--secondary .hfd-section__header {
	border-left-color: var(--hfd-color-secondary);
}

/* -------------------------------------------------------------------------
   13. Scroll rows and tile grids (mobile scroll-snap, desktop grid)
   ------------------------------------------------------------------------- */

.hfd-scroll-row,
.hfd-tile-grid {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0.75rem;
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.hfd-scroll-row__item,
.hfd-tile-grid__item {
	flex: 0 0 80%;
	scroll-snap-align: start;
}

@media (min-width: 700px) {
	.hfd-scroll-row,
	.hfd-tile-grid {
		display: grid;
		grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
		overflow-x: visible;
	}

	.hfd-scroll-row__item,
	.hfd-tile-grid__item {
		flex: none;
	}
}

/* -------------------------------------------------------------------------
   14. Deal card
   ------------------------------------------------------------------------- */

.hfd-deal-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	overflow: hidden;
	box-shadow: var(--hfd-shadow-card);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hfd-deal-card:hover {
	box-shadow: var(--hfd-shadow-card-hover);
	transform: translateY(-2px);
}

.hfd-deal-card__media {
	position: relative;
	display: block;
	background-color: var(--hfd-color-surface-alt);
}

.hfd-deal-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hfd-deal-card__image-placeholder,
.hfd-deal-single__media-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: var(--hfd-color-surface-alt);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3b9a4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20% auto;
}

.hfd-deal-single__media-placeholder {
	aspect-ratio: 16 / 9;
	border-radius: var(--hfd-radius-md);
}

/* Category accent variants: gives deals/categories a distinct, data-driven
   visual identity (derived from the deal's real category) in place of a
   product photo, instead of every placeholder looking identical. */

.hfd-accent-1.hfd-deal-card__image-placeholder,
.hfd-accent-1.hfd-deal-single__media-placeholder {
	background-color: #eef4fb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8cfe8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-2.hfd-deal-card__image-placeholder,
.hfd-accent-2.hfd-deal-single__media-placeholder {
	background-color: var(--hfd-color-secondary-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8d9c2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-3.hfd-deal-card__image-placeholder,
.hfd-accent-3.hfd-deal-single__media-placeholder {
	background-color: #f3eefb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbb8e8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-4.hfd-deal-card__image-placeholder,
.hfd-accent-4.hfd-deal-single__media-placeholder {
	background-color: #eafaf8;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8dcd6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-5.hfd-deal-card__image-placeholder,
.hfd-accent-5.hfd-deal-single__media-placeholder {
	background-color: #fdf3e0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0c079' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-6.hfd-deal-card__image-placeholder,
.hfd-accent-6.hfd-deal-single__media-placeholder {
	background-color: #fdeef3;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6a8c2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-accent-7.hfd-deal-card__image-placeholder,
.hfd-accent-7.hfd-deal-single__media-placeholder {
	background-color: #eef1f4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aebac4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5-4 4-3-3-6 6'/%3E%3C/svg%3E");
}

.hfd-deal-card__badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	background-color: var(--hfd-color-primary);
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.3em 0.6em;
	border-radius: 999px;
}

.hfd-deal-card__featured {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	background-color: var(--hfd-color-ink);
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.3em 0.6em;
	border-radius: 999px;
}

/* -------------------------------------------------------------------------
   Expiring Soon badge + countdown (shared by card and single deal page)
   ------------------------------------------------------------------------- */

.hfd-expiring-badge {
	display: flex;
	align-items: center;
	gap: 0.35em;
	background-color: #c0392b;
	color: #ffffff;
	font-weight: 800;
	line-height: 1.2;
	border-radius: 999px;
	white-space: nowrap;
}

.hfd-expiring-badge--card {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	max-width: calc(100% - 1.2rem);
	font-size: 0.6875rem;
	padding: 0.35em 0.7em;
	flex-wrap: wrap;
	justify-content: center;
}

.hfd-expiring-badge--single {
	display: inline-flex;
	font-size: 0.9375rem;
	padding: 0.5em 1em;
	margin-bottom: 1rem;
}

.hfd-expiring-badge__countdown {
	font-variant-numeric: tabular-nums;
	min-width: 5.5em;
	text-align: center;
}

.hfd-expiring-badge:not(.hfd-expiring-badge--expired) .hfd-expiring-badge__label span:first-child {
	display: inline-block;
	animation: hfd-badge-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.hfd-expiring-badge__label span:first-child {
		animation: none;
	}
}

@keyframes hfd-badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.15); }
}

.hfd-deal-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1 0 auto;
}

.hfd-deal-card__store {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hfd-color-muted);
}

.hfd-deal-card__store a {
	color: inherit;
	text-decoration: none;
}

.hfd-deal-card__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.hfd-deal-card__title a {
	color: var(--hfd-color-ink);
	text-decoration: none;
}

.hfd-deal-card__title a:hover {
	color: var(--hfd-color-primary);
}

.hfd-deal-card__price {
	margin: 0.15rem 0 0;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.hfd-deal-card__price-current {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--hfd-color-secondary);
}

.hfd-deal-card__price-original {
	text-decoration: line-through;
	color: var(--hfd-color-muted);
	font-size: 0.875rem;
}

.hfd-deal-card__coupon-flag {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--hfd-color-secondary);
}

.hfd-deal-card__expiration {
	margin: 0;
	font-size: 0.75rem;
	color: var(--hfd-color-muted);
}

.hfd-deal-card__status--expired {
	display: inline-block;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--hfd-color-muted);
}

.hfd-deal-card__cta {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 44px;
	text-align: center;
	text-decoration: none;
	padding: 0.6em 1em;
	border: 2px solid var(--hfd-color-primary);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-primary);
	color: #ffffff;
	font-weight: 700;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hfd-deal-card__cta:hover {
	background-color: var(--hfd-color-ink);
	border-color: var(--hfd-color-ink);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   15. Store card
   ------------------------------------------------------------------------- */

.hfd-store-card {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	padding: 1.25rem;
	box-shadow: var(--hfd-shadow-card);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hfd-store-card:hover {
	box-shadow: var(--hfd-shadow-card-hover);
	transform: translateY(-2px);
}

.hfd-store-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	text-decoration: none;
}

.hfd-store-card__logo {
	max-height: 60px;
	width: auto;
}

.hfd-store-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--hfd-color-primary);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.125rem;
}

.hfd-store-card__name {
	font-weight: 700;
	text-align: center;
	color: var(--hfd-color-ink);
}

.hfd-store-card__count {
	font-size: 0.75rem;
	color: var(--hfd-color-muted);
}

.hfd-store-single__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background-color: var(--hfd-color-primary);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.75rem;
}

/* -------------------------------------------------------------------------
   16. Category tile
   ------------------------------------------------------------------------- */

.hfd-category-tile {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: 100%;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-top: 4px solid var(--hfd-color-primary);
	border-radius: var(--hfd-radius-md);
	padding: 1.25rem;
	text-decoration: none;
	box-shadow: var(--hfd-shadow-card);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hfd-category-tile.hfd-accent-1 {
	border-top-color: #3b6ea5;
}

.hfd-category-tile.hfd-accent-2 {
	border-top-color: var(--hfd-color-secondary);
}

.hfd-category-tile.hfd-accent-3 {
	border-top-color: #7a4fb0;
}

.hfd-category-tile.hfd-accent-4 {
	border-top-color: #1f8a80;
}

.hfd-category-tile.hfd-accent-5 {
	border-top-color: #b8860b;
}

.hfd-category-tile.hfd-accent-6 {
	border-top-color: #c2185b;
}

.hfd-category-tile.hfd-accent-7 {
	border-top-color: #546878;
}

.hfd-category-tile:hover {
	box-shadow: var(--hfd-shadow-card-hover);
	transform: translateY(-2px);
}

.hfd-category-tile__name {
	font-weight: 700;
	color: var(--hfd-color-ink);
}

.hfd-category-tile__image {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: var(--hfd-radius-sm);
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   18. Empty state
   ------------------------------------------------------------------------- */

.hfd-empty-notice {
	text-align: center;
	padding: 3rem 1.5rem;
	margin-top: 2rem;
	background-color: var(--hfd-color-surface-alt);
	border: 1px dashed var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
}

.hfd-empty-notice h2 {
	margin-bottom: 0.5rem;
}

.hfd-empty-notice p {
	margin: 0;
	color: var(--hfd-color-muted);
}

.no-results.not-found,
.error-404.not-found {
	text-align: center;
	padding: 3rem 1.5rem;
	background-color: var(--hfd-color-surface-alt);
	border: 1px dashed var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
}

.no-results.not-found .search-form,
.error-404.not-found .search-form {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	max-width: 28rem;
	margin: 1.5rem auto 0;
}

/* -------------------------------------------------------------------------
   19. Archive grid (full browse pages — no horizontal scroll)
   ------------------------------------------------------------------------- */

.hfd-archive-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 1.25rem;
}

.page-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--hfd-color-border);
}

.page-header .page-title {
	margin-bottom: 0.25rem;
}

.page-header .page-title span {
	color: var(--hfd-color-primary);
}

.hfd-search-result-count {
	margin: 0 0 1rem;
	color: var(--hfd-color-muted);
	font-size: 0.875rem;
}

.archive-description {
	color: var(--hfd-color-muted);
}

/* -------------------------------------------------------------------------
   20. Single deal page
   ------------------------------------------------------------------------- */

.hfd-deal-single__store {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hfd-color-muted);
}

.hfd-deal-single__store a {
	color: inherit;
	text-decoration: none;
}

.hfd-category-pills {
	margin: 0 0 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hfd-category-pill {
	display: inline-block;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	background-color: var(--hfd-color-primary-tint);
	color: var(--hfd-color-primary-dark);
}

.hfd-highlight-pills {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hfd-highlight-pill {
	padding: 0.35em 0.9em;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	background-color: var(--hfd-color-surface-alt);
	border: 1px solid var(--hfd-color-border);
	color: var(--hfd-color-ink);
}

.hfd-category-pill.hfd-accent-1 {
	background-color: #eef4fb;
	color: #3b6ea5;
}

.hfd-category-pill.hfd-accent-2 {
	background-color: var(--hfd-color-secondary-tint);
	color: var(--hfd-color-secondary);
}

.hfd-category-pill.hfd-accent-3 {
	background-color: #f3eefb;
	color: #7a4fb0;
}

.hfd-category-pill.hfd-accent-4 {
	background-color: #eafaf8;
	color: #1f8a80;
}

.hfd-category-pill.hfd-accent-5 {
	background-color: #fdf3e0;
	color: #b8860b;
}

.hfd-category-pill.hfd-accent-6 {
	background-color: #fdeef3;
	color: #c2185b;
}

.hfd-category-pill.hfd-accent-7 {
	background-color: #eef1f4;
	color: #546878;
}

.hfd-category-pill:hover {
	text-decoration: underline;
}

.hfd-deal-single__status--expired {
	display: inline-block;
	background-color: var(--hfd-color-surface-alt);
	color: var(--hfd-color-muted);
	padding: 0.3em 0.85em;
	border-radius: 999px;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hfd-deal-single__media {
	margin-bottom: 1.5rem;
}

.hfd-deal-single__media img {
	border-radius: var(--hfd-radius-md);
	box-shadow: var(--hfd-shadow-card);
}

.hfd-deal-single__media-image {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	height: auto;
}

.hfd-deal-single__price-block {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 1rem;
	margin: 1rem 0;
	padding: 1.25rem;
	background-color: var(--hfd-color-surface-alt);
	border-radius: var(--hfd-radius-md);
}

.hfd-deal-single__price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--hfd-color-secondary);
	margin: 0;
	width: 100%;
}

.hfd-deal-single__price-original {
	text-decoration: line-through;
	color: var(--hfd-color-muted);
	font-size: 1.125rem;
	margin-left: 0.5rem;
}

.hfd-deal-single__savings,
.hfd-deal-single__discount,
.hfd-deal-single__expiration {
	margin: 0;
	color: var(--hfd-color-muted);
	font-weight: 600;
}

.hfd-deal-single__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 48px;
	margin: 0.5rem 0 1.5rem;
	padding: 0.85em 2.25em;
	background-color: var(--hfd-color-primary);
	border: 2px solid var(--hfd-color-primary);
	border-radius: var(--hfd-radius-sm);
	color: #ffffff;
	text-decoration: none;
	font-weight: 800;
	font-size: 1.1875rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.hfd-deal-single__cta:active {
	transform: translateY(1px);
}

@media (max-width: 600px) {
	.hfd-deal-single__cta {
		display: flex;
		width: 100%;
	}
}

.hfd-deal-single__cta:hover {
	background-color: var(--hfd-color-ink);
	border-color: var(--hfd-color-ink);
}

/* -------------------------------------------------------------------------
   Single deal page: two-column layout, gallery, buy box, features
   ------------------------------------------------------------------------- */

.hfd-deal-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 700px) {
	.hfd-deal-single__layout {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 2.5rem;
	}
}

@media (min-width: 1000px) {
	.hfd-deal-single__layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	}
}

.hfd-deal-single__buy-box {
	min-width: 0;
}

.hfd-gallery-thumbs {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.hfd-gallery-thumbs__button {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background: none;
	cursor: pointer;
	overflow: hidden;
}

@media (min-width: 1000px) {
	.hfd-gallery-thumbs__button {
		width: 96px;
		height: 96px;
	}
}

.hfd-gallery-thumbs__button[aria-pressed="true"] {
	border-color: var(--hfd-color-primary);
}

.hfd-gallery-thumbs__button img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	box-shadow: none;
}

.hfd-deal-single__savings-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
}

.hfd-deal-single__availability {
	width: 100%;
	margin: 0.25rem 0 0;
	color: var(--hfd-color-muted);
	font-size: 0.875rem;
}

.hfd-deal-single__expired-notice {
	font-weight: 700;
	color: var(--hfd-color-muted);
}

.hfd-deal-single__features ul,
.hfd-deal-single__product-info ul {
	margin: 0;
	padding-left: 1.25rem;
}

.hfd-deal-single__features li,
.hfd-deal-single__product-info li {
	margin-bottom: 0.4rem;
	line-height: 1.5;
}

.hfd-deal-single__coupon,
.hfd-coupon-single__terms {
	margin: 1.5rem 0;
	padding: 1.25rem;
	background-color: var(--hfd-color-secondary-tint);
	border: 1px dashed var(--hfd-color-secondary);
	border-radius: var(--hfd-radius-md);
}

.hfd-deal-single__coupon h2,
.hfd-coupon-single__terms h2 {
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
}

.hfd-deal-single__product-info {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hfd-color-border);
}

.hfd-deal-single__product-info h2 {
	font-size: 1.125rem;
}

.hfd-deal-single__product-info ul {
	padding-left: 1.25rem;
	color: var(--hfd-color-muted);
}

/* -------------------------------------------------------------------------
   21. Single store page
   ------------------------------------------------------------------------- */

.hfd-store-single__logo {
	margin-bottom: 1rem;
}

.hfd-store-single__logo img {
	max-height: 100px;
	width: auto;
}

.hfd-store-single__website {
	margin-top: 1rem;
}

.hfd-store-single__website a {
	display: inline-block;
	padding: 0.65em 1.5em;
	background-color: var(--hfd-color-ink);
	color: #ffffff;
	border-radius: var(--hfd-radius-sm);
	text-decoration: none;
	font-weight: 700;
}

.hfd-store-single__website a:hover {
	background-color: var(--hfd-color-primary);
}

/* -------------------------------------------------------------------------
   23. Breadcrumbs
   ------------------------------------------------------------------------- */

.hfd-breadcrumbs {
	margin-bottom: 1.25rem;
	font-size: 0.8125rem;
	color: var(--hfd-color-muted);
}

.hfd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hfd-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--hfd-color-border);
}

.hfd-breadcrumbs a {
	color: var(--hfd-color-muted);
	text-decoration: none;
}

.hfd-breadcrumbs a:hover {
	color: var(--hfd-color-primary);
}

.hfd-breadcrumbs [aria-current="page"] {
	color: var(--hfd-color-ink);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   24. Deal sort form
   ------------------------------------------------------------------------- */

.hfd-sort-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

.hfd-sort-form select {
	padding: 0.5em 0.75em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
}

.hfd-sort-form button {
	padding: 0.5em 1em;
}

.hfd-scoped-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
	max-width: 32rem;
}

.hfd-scoped-search-form__input {
	flex: 1 1 16rem;
	padding: 0.65em 0.9em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
	font-size: 1rem;
}

.hfd-scoped-search-form__submit {
	padding: 0.65em 1.3em;
	border: 2px solid var(--hfd-color-ink);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-ink);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.hfd-scoped-search-form__submit:hover {
	background-color: var(--hfd-color-primary);
	border-color: var(--hfd-color-primary);
}

/* -------------------------------------------------------------------------
   25. Empty-state browse links
   ------------------------------------------------------------------------- */

.hfd-browse-links {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	color: var(--hfd-color-muted);
}

.hfd-browse-links a {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   26. Search form (keyword + optional category)
   ------------------------------------------------------------------------- */

.hfd-hero__search-label {
	margin: 0 0 0.75rem;
	font-weight: 700;
	color: var(--hfd-color-ink);
}

.hfd-search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.hfd-search-form__field {
	flex: 1 1 16rem;
	padding: 0.6em 0.85em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
}

.hfd-search-form__category {
	flex: 0 1 12rem;
	padding: 0.6em 0.75em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
}

.hfd-search-form__submit {
	flex: 0 0 auto;
	padding: 0.6em 1.5em;
	border: none;
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.hfd-search-form__submit:hover {
	filter: brightness(1.05);
}

/* -------------------------------------------------------------------------
   27. Report Deal
   ------------------------------------------------------------------------- */

.hfd-report-deal {
	margin: 2rem 0;
	padding: 1.25rem;
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	background-color: var(--hfd-color-surface-alt);
}

.hfd-report-deal__notice {
	margin: 0 0 1rem;
	padding: 0.75em 1em;
	border-radius: var(--hfd-radius-sm);
	font-weight: 600;
}

.hfd-report-deal__notice--success {
	background-color: #e7f6ec;
	color: #1f8a3e;
}

.hfd-report-deal__notice--error {
	background-color: #fbe9e7;
	color: #c0392b;
}

.hfd-report-deal__summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--hfd-color-ink);
}

.hfd-report-deal__form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-width: 32rem;
	margin-top: 1rem;
}

.hfd-report-deal__prompt {
	margin: 0;
	font-weight: 600;
}

.hfd-report-deal__form select,
.hfd-report-deal__form textarea {
	padding: 0.6em 0.75em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
	font: inherit;
}

.hfd-report-deal__submit {
	align-self: flex-start;
	padding: 0.6em 1.5em;
	border: none;
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-ink);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   28. Search infinite scroll
   ------------------------------------------------------------------------- */

.hfd-search-sentinel {
	height: 1px;
}

.hfd-search-status {
	margin: 1.5rem 0;
	text-align: center;
	color: var(--hfd-color-muted);
	font-size: 0.875rem;
	min-height: 1.25em;
}

/* -------------------------------------------------------------------------
   29. Numbered pagination
   ------------------------------------------------------------------------- */

.pagination.navigation {
	margin: 2rem 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25em;
	height: 2.25em;
	padding: 0 0.5em;
	border: 2px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-sm);
	color: var(--hfd-color-ink);
	text-decoration: none;
	font-weight: 600;
}

.pagination .page-numbers.current {
	background-color: var(--hfd-color-primary);
	border-color: var(--hfd-color-primary);
	color: #fff;
}

.pagination .page-numbers:not(.current):not(.dots):hover {
	border-color: var(--hfd-color-primary);
	color: var(--hfd-color-primary);
}

.pagination .page-numbers.dots {
	border: none;
	color: var(--hfd-color-muted);
}

/* -------------------------------------------------------------------------
   30. Search results — refine form
   ------------------------------------------------------------------------- */

.hfd-search-refine {
	margin-bottom: 1.5rem;
}

.hfd-search-refine .hfd-search-form__row {
	justify-content: flex-start;
}

/* -------------------------------------------------------------------------
   31. Homepage discovery buttons
   ------------------------------------------------------------------------- */

.hfd-discovery-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin: 1.5rem auto 2rem;
	max-width: 58rem;
}

.hfd-discovery-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85em 1.4em;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--hfd-color-surface) 0%, var(--hfd-color-surface-alt) 100%);
	border: 2px solid var(--hfd-color-border);
	color: var(--hfd-color-ink);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: var(--hfd-shadow-card);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hfd-discovery-button:hover {
	transform: translateY(-3px);
	box-shadow: var(--hfd-shadow-card-hover);
	border-color: var(--hfd-color-primary);
	color: var(--hfd-color-primary-dark);
}

.hfd-discovery-button:focus-visible {
	outline: 3px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

.hfd-discovery-button__icon {
	font-size: 1.3em;
	line-height: 1;
	transition: transform 0.18s ease;
}

.hfd-discovery-button:hover .hfd-discovery-button__icon {
	transform: scale(1.15) rotate(-6deg);
}

.hfd-discovery-button--primary {
	padding: 1em 1.85em;
	font-size: 1.1rem;
	color: #fff;
	border: none;
	background-image: linear-gradient(135deg, var(--hfd-color-primary) 0%, var(--hfd-color-primary-dark) 55%, #ff9448 100%);
	background-size: 200% 200%;
	box-shadow: 0 4px 14px rgba(232, 73, 29, 0.35);
	animation: hfd-gradient-move 6s ease infinite, hfd-pulse-glow 2.8s ease-in-out infinite;
}

.hfd-discovery-button--primary:hover {
	transform: translateY(-4px) scale(1.03);
	color: #fff;
	box-shadow: 0 8px 22px rgba(232, 73, 29, 0.45);
}

.hfd-discovery-button--primary .hfd-discovery-button__icon {
	animation: hfd-icon-bounce 2.2s ease-in-out infinite;
}

@keyframes hfd-gradient-move {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

@keyframes hfd-pulse-glow {
	0%, 100% { box-shadow: 0 4px 14px rgba(232, 73, 29, 0.35); }
	50% { box-shadow: 0 4px 22px rgba(232, 73, 29, 0.55); }
}

@keyframes hfd-icon-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.hfd-discovery-button--primary,
	.hfd-discovery-button--primary .hfd-discovery-button__icon {
		animation: none;
	}
}

@media (max-width: 700px) {
	.hfd-discovery-buttons {
		gap: 0.6rem;
	}

	.hfd-discovery-button {
		flex: 1 1 auto;
		justify-content: center;
		padding: 0.75em 1em;
		font-size: 0.85rem;
	}

	.hfd-discovery-button--primary {
		flex-basis: 100%;
		font-size: 1rem;
	}
}

/* -------------------------------------------------------------------------
   32. Single coupon page
   ------------------------------------------------------------------------- */

.hfd-coupon-single__store {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hfd-color-muted);
}

.hfd-coupon-single__store a {
	color: inherit;
	text-decoration: none;
}

.hfd-coupon-single__brand {
	margin: 0.25rem 0 0;
	color: var(--hfd-color-muted);
	font-weight: 600;
}

.hfd-coupon-single__status {
	display: inline-block;
	padding: 0.3em 0.85em;
	border-radius: 999px;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hfd-coupon-single__status--expired {
	background-color: var(--hfd-color-surface-alt);
	color: var(--hfd-color-muted);
}

.hfd-coupon-single__status--ending-soon {
	background-color: #fdf0e6;
	color: var(--hfd-color-primary-dark);
}

.hfd-coupon-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 700px) {
	.hfd-coupon-single__layout {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}
}

.hfd-coupon-single__media {
	margin-bottom: 1.5rem;
}

.hfd-coupon-single__media img {
	border-radius: var(--hfd-radius-md);
	box-shadow: var(--hfd-shadow-card);
}

.hfd-coupon-single__media-image {
	display: block;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	height: auto;
}

.hfd-coupon-single__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 260px;
	font-size: 4rem;
	background-color: var(--hfd-color-surface-alt);
	border-radius: var(--hfd-radius-md);
}

.hfd-coupon-single__buy-box {
	min-width: 0;
}

.hfd-coupon-single__price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--hfd-color-secondary);
	margin: 0 0 0.5rem;
}

.hfd-coupon-single__price-original {
	text-decoration: line-through;
	color: var(--hfd-color-muted);
	font-size: 1.125rem;
	margin-left: 0.5rem;
}

.hfd-coupon-single__savings-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

.hfd-coupon-single__discount,
.hfd-coupon-single__savings,
.hfd-coupon-single__discount-desc,
.hfd-coupon-single__expiration {
	margin: 0 0 0.75rem;
	color: var(--hfd-color-muted);
	font-weight: 600;
}

.hfd-coupon-single__clip-note {
	margin: 0 0 1rem;
	padding: 0.65em 1em;
	background-color: var(--hfd-color-secondary-tint);
	border-radius: var(--hfd-radius-sm);
	color: var(--hfd-color-secondary);
	font-weight: 600;
}

.hfd-coupon-single__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 48px;
	margin: 0.5rem 0 1.5rem;
	padding: 0.85em 2.25em;
	background-color: var(--hfd-color-primary);
	border: 2px solid var(--hfd-color-primary);
	border-radius: var(--hfd-radius-sm);
	color: #ffffff;
	text-decoration: none;
	font-weight: 800;
	font-size: 1.1875rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.hfd-coupon-single__cta:hover {
	background-color: var(--hfd-color-ink);
	border-color: var(--hfd-color-ink);
}

.hfd-coupon-single__cta[hidden] {
	display: none;
}

.hfd-coupon-single__cta:active {
	transform: translateY(1px);
}

@media (max-width: 600px) {
	.hfd-coupon-single__cta {
		display: flex;
		width: 100%;
	}
}

.hfd-coupon-single__expired-notice {
	font-weight: 700;
	color: var(--hfd-color-muted);
}

.hfd-coupon-single__features ul {
	margin: 0;
	padding-left: 1.25rem;
}

.hfd-coupon-single__features li {
	margin-bottom: 0.4rem;
	line-height: 1.5;
}

.hfd-coupon-single__deal-link {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--hfd-color-border);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   33. Coupon code + Copy Code button
   ------------------------------------------------------------------------- */

.hfd-coupon-code {
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	background-color: var(--hfd-color-secondary-tint);
	border: 2px dashed var(--hfd-color-secondary);
	border-radius: var(--hfd-radius-md);
}

.hfd-coupon-code__label {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hfd-color-secondary);
}

.hfd-coupon-code__value {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 0.45em 1.1em;
	background-color: var(--hfd-color-surface);
	border: 2px solid var(--hfd-color-secondary);
	border-radius: var(--hfd-radius-sm);
}

.hfd-coupon-code__value[hidden] {
	display: none;
}

.hfd-coupon-code__copy {
	display: block;
	width: 100%;
	padding: 0.85em 1.4em;
	border: none;
	border-radius: var(--hfd-radius-sm);
	background-color: var(--hfd-color-secondary);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.0625rem;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.hfd-coupon-code__copy:hover {
	background-color: #17714c;
}

.hfd-coupon-code__copy:active {
	transform: translateY(1px);
}

.hfd-coupon-code__copy--copied {
	background-color: #1f8a3e;
}

/* -------------------------------------------------------------------------
   34. "How to use this coupon" tutorial
   ------------------------------------------------------------------------- */

.hfd-coupon-howto {
	margin: 1.5rem 0 2rem;
	padding: 1.25rem 1.5rem;
	background-color: var(--hfd-color-surface-alt);
	border-radius: var(--hfd-radius-md);
	border: 1px solid var(--hfd-color-border);
}

.hfd-coupon-howto__heading {
	margin-bottom: 0.85rem;
	font-size: 1.125rem;
}

.hfd-coupon-howto__steps {
	margin: 0;
	padding-left: 1.35rem;
	display: grid;
	gap: 0.5rem;
}

.hfd-coupon-howto__steps li {
	line-height: 1.5;
}

.hfd-coupon-howto__steps li strong {
	color: var(--hfd-color-ink);
}

/* -------------------------------------------------------------------------
   35. Coupon card
   ------------------------------------------------------------------------- */

.hfd-coupon-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	overflow: hidden;
	box-shadow: var(--hfd-shadow-card);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hfd-coupon-card:hover {
	box-shadow: var(--hfd-shadow-card-hover);
	transform: translateY(-2px);
}

.hfd-coupon-card__media {
	position: relative;
	display: block;
	background-color: var(--hfd-color-surface-alt);
}

.hfd-coupon-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hfd-coupon-card__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	font-size: 2.5rem;
}

.hfd-coupon-card__badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background-color: var(--hfd-color-secondary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.hfd-coupon-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1rem;
	gap: 0.35rem;
}

.hfd-coupon-card__store {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hfd-color-muted);
}

.hfd-coupon-card__store a {
	color: inherit;
	text-decoration: none;
}

.hfd-coupon-card__title {
	margin: 0;
	font-size: 1rem;
}

.hfd-coupon-card__title a {
	color: var(--hfd-color-ink);
	text-decoration: none;
}

.hfd-coupon-card__price {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--hfd-color-secondary);
}

.hfd-coupon-card__discount,
.hfd-coupon-card__expiration,
.hfd-coupon-card__deal-link {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hfd-color-muted);
}

.hfd-coupon-card__cta {
	margin-top: auto;
	padding-top: 0.75rem;
	text-align: center;
	font-weight: 700;
	text-decoration: none;
	color: var(--hfd-color-secondary);
}

.hfd-deal-single__coupon-link {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 700;
	color: var(--hfd-color-secondary);
	text-decoration: none;
}

.hfd-deal-single__coupon-link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   26. Legal / policy pages (Privacy Policy, Terms of Use, Affiliate
   Disclosure, Contact) — a dedicated readable-prose treatment, since these
   pages are long-form text rather than deal/coupon grids.
   ------------------------------------------------------------------------- */

.hfd-legal-page .entry-header {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.hfd-legal-page .entry-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--hfd-color-ink);
}

.hfd-legal-page .entry-content > p,
.hfd-legal-page .entry-content > ul,
.hfd-legal-page .entry-content > ol {
	margin: 0 0 1.25rem;
}

.hfd-legal-page .entry-content h2 {
	margin: 2.5rem 0 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hfd-color-border);
	font-size: 1.375rem;
}

.hfd-legal-page .entry-content h2:first-of-type {
	margin-top: 1.5rem;
	padding-top: 0;
	border-top: none;
}

.hfd-legal-page .entry-content h3 {
	margin: 1.75rem 0 0.75rem;
	font-size: 1.125rem;
}

.hfd-legal-page .entry-content ul,
.hfd-legal-page .entry-content ol {
	padding-left: 1.5rem;
}

.hfd-legal-page .entry-content li {
	margin-bottom: 0.5rem;
}

.hfd-legal-page .entry-content a {
	color: var(--hfd-color-secondary);
	text-decoration: underline;
}

.hfd-legal-page .entry-content a:hover {
	color: var(--hfd-color-primary);
}

/* The "Contents" list right after the H2 heading gets a quiet card
   treatment so it visually reads as a table of contents, not just another
   bullet list in the body copy. */
.hfd-legal-page .entry-content #contents + ul {
	background-color: var(--hfd-color-surface-alt);
	border: 1px solid var(--hfd-color-border);
	border-radius: var(--hfd-radius-md);
	padding: 1.25rem 1.25rem 1.25rem 2.5rem;
	list-style: decimal;
}

.hfd-legal-page .entry-content #contents + ul a {
	text-decoration: none;
	font-weight: 600;
}

.hfd-legal-page .entry-content #contents + ul a:hover {
	text-decoration: underline;
}

.hfd-legal-page .entry-content em {
	color: var(--hfd-color-muted);
}

.hfd-affiliate-notice {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--hfd-color-muted);
}

.hfd-affiliate-notice a {
	color: var(--hfd-color-muted);
	text-decoration: underline;
	font-weight: 400;
}

.hfd-affiliate-notice a:hover,
.hfd-affiliate-notice a:focus {
	color: var(--hfd-color-primary);
}

.hfd-legal-page .entry-content .hfd-legal-callout {
	background-color: var(--hfd-color-secondary-tint);
	border: 1px solid var(--hfd-color-secondary);
	border-radius: var(--hfd-radius-md);
	padding: 1rem 1.25rem;
	font-size: 1.0625rem;
}

@media (max-width: 600px) {
	.hfd-legal-page .entry-content {
		font-size: 1rem;
	}

	.hfd-legal-page .entry-content #contents + ul {
		padding: 1rem 1rem 1rem 2rem;
	}
}

/* -------------------------------------------------------------------------
   9. AI "Learn more about this product"
   ------------------------------------------------------------------------- */

.hfd-learn-more {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--hfd-color-border);
	border-radius: 0.5rem;
	background-color: var(--hfd-color-surface-alt);
}

.hfd-learn-more__summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.hfd-learn-more__summary::-webkit-details-marker {
	display: none;
}

.hfd-learn-more__summary:focus-visible {
	outline: 2px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

.hfd-learn-more__body {
	margin-top: 0.75rem;
}

.hfd-learn-more__body p {
	margin: 0 0 0.75rem;
	line-height: 1.6;
}

.hfd-learn-more__body p:last-child {
	margin-bottom: 0;
}


/* -------------------------------------------------------------------------
   15. Deals archive "Filters" control
   ------------------------------------------------------------------------- */

.hfd-filters {
	position: relative;
	display: inline-block;
}

.hfd-filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border: 1px solid var(--hfd-color-border);
	border-radius: 999px;
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
	font-weight: 600;
	font-size: 0.9375rem;
	cursor: pointer;
}

.hfd-filters-toggle::after {
	content: "";
	width: 0.4em;
	height: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-top: -0.2em;
}

.hfd-filters-toggle.is-open::after {
	transform: rotate(-135deg);
	margin-top: 0.2em;
}

.hfd-filters-toggle:focus-visible {
	outline: 2px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

.hfd-filters-toggle.is-active {
	border-color: var(--hfd-color-primary);
	color: var(--hfd-color-primary);
}

.hfd-filters-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 60;
	min-width: 240px;
	max-height: 60vh;
	overflow-y: auto;
	background-color: var(--hfd-color-surface);
	border: 1px solid var(--hfd-color-border);
	border-radius: 0.5rem;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0;
}

.hfd-filters-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hfd-filters-panel__option {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.6rem 1rem;
	border: none;
	background: none;
	font: inherit;
	font-weight: 500;
	color: var(--hfd-color-ink);
	cursor: pointer;
}

.hfd-filters-panel__option:hover,
.hfd-filters-panel__option:focus-visible {
	background-color: var(--hfd-color-surface-alt);
}

.hfd-filters-panel__option.is-selected {
	color: var(--hfd-color-primary);
	font-weight: 700;
	background-color: var(--hfd-color-surface-alt);
}

@media (max-width: 600px) {
	.hfd-filters-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: auto;
		max-height: 70vh;
		border-radius: 0.75rem 0.75rem 0 0;
		box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.15);
	}

	.hfd-filters-panel__option {
		padding: 0.9rem 1.25rem;
		font-size: 1rem;
	}
}

/* -------------------------------------------------------------------------
   Shared deal-listing filter bar (search + category "Filters" + sort +
   Apply) - used by the deals archive, curated ?hfd_filter= views, and
   Expiring Soon via hfd_render_filter_bar(), so all three look and
   behave as one component.
   ------------------------------------------------------------------------- */

.hfd-archive-filter-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.75rem;
}

.hfd-archive-filter-form #hfd-archive-search,
.hfd-archive-filter-form #hfd-archive-sort {
	height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid var(--hfd-color-border);
	border-radius: 999px;
	background-color: var(--hfd-color-surface);
	color: var(--hfd-color-ink);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 2.75rem;
	-webkit-appearance: none;
	appearance: none;
}

.hfd-archive-filter-form #hfd-archive-search {
	flex: 1 1 200px;
	min-width: 160px;
	font-weight: 400;
}

.hfd-archive-filter-form #hfd-archive-search::placeholder {
	color: var(--hfd-color-muted);
}

.hfd-archive-filter-form #hfd-archive-sort {
	flex: 0 1 auto;
	padding-right: 2.25rem;
	background-image: linear-gradient(45deg, transparent 50%, var(--hfd-color-ink) 50%), linear-gradient(135deg, var(--hfd-color-ink) 50%, transparent 50%);
	background-position: calc(100% - 1.15rem) center, calc(100% - 0.85rem) center;
	background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
	background-repeat: no-repeat;
	cursor: pointer;
}

.hfd-archive-filter-form #hfd-archive-search:focus-visible,
.hfd-archive-filter-form #hfd-archive-sort:focus-visible {
	outline: 2px solid var(--hfd-color-primary);
	outline-offset: 2px;
}

.hfd-archive-filter-form .hfd-filters-toggle {
	height: 2.75rem;
}

.hfd-archive-filter-form button[type="submit"] {
	height: 2.75rem;
	padding: 0 1.5rem;
	border: none;
	border-radius: 999px;
	background-color: var(--hfd-color-primary);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.hfd-archive-filter-form button[type="submit"]:hover {
	background-color: var(--hfd-color-primary-dark);
}

.hfd-archive-filter-form button[type="submit"]:focus-visible {
	outline: 2px solid var(--hfd-color-primary-dark);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.hfd-archive-filter-form {
		gap: 0.6rem;
	}

	.hfd-archive-filter-form #hfd-archive-search,
	.hfd-archive-filter-form #hfd-archive-sort,
	.hfd-archive-filter-form .hfd-filters,
	.hfd-archive-filter-form button[type="submit"] {
		flex: 1 1 100%;
		width: 100%;
	}

	.hfd-archive-filter-form #hfd-archive-sort {
		width: 100%;
	}

	.hfd-archive-filter-form .hfd-filters-toggle {
		width: 100%;
		justify-content: center;
	}
}
