/* ============================================================
   Hooflakids Storefront — homepage
   Translated from the Claude Design React prototype.
   ============================================================ */

.hooflakids-home {
	background: var(--cream);
}

.hooflakids-home .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ----------- HERO CAROUSEL ----------- */
.hk-hero {
	position: relative;
	overflow: hidden;
	height: calc(100vh - var(--hk-header-h, 68px));
	min-height: 600px;
	background: var(--accent-tint);
}

.hk-hero__track {
	position: absolute;
	inset: 0;
	display: flex;
	transition: transform .7s cubic-bezier(.65, .05, .36, 1);
	will-change: transform;
}

.hk-hero__slide {
	flex: 0 0 100%;
	position: relative;
	background-size: cover;
	background-position: center;
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

a.hk-hero__slide { cursor: pointer; }

.hk-hero__content {
	position: relative;
	height: 100%;
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding: 40px 56px;
	color: #fff;
}

.hk-hero__inner {
	max-width: 600px;
}

.hk-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	backdrop-filter: blur(6px);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.hk-hero__title {
	font-size: clamp(44px, 6.5vw, 88px);
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -.02em;
	font-family: var(--font-display);
	color: #fff;
	margin: 0 0 20px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}

.hk-hero__title em {
	font-style: italic;
	color: var(--accent);
}

.hk-hero__title .hl {
	background: var(--sun);
	color: var(--ink);
	padding: 0 10px;
	border-radius: 12px;
	display: inline-block;
	transform: rotate(-1deg);
}

.hk-hero__sub {
	font-size: 18px;
	line-height: 1.5;
	margin: 0 0 26px;
	max-width: 520px;
	opacity: .95;
}

.hk-hero__cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hk-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: var(--radius-btn);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1;
}

.hk-btn--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 172, 138, .35);
}

.hk-btn--primary:hover {
	background: var(--accent-deep);
	color: #fff;
	transform: translateY(-1px);
}

.hk-btn--ghost {
	background: rgba(255, 255, 255, .08);
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
}

.hk-btn--ghost:hover {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.hk-btn--ink {
	background: var(--ink);
	color: #fff;
}

.hk-btn--ink:hover {
	background: #000;
	color: #fff;
}

.hk-btn--ghost-ink {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.hk-btn--ghost-ink:hover {
	background: var(--ink);
	color: #fff;
}

.hk-hero__trust {
	display: flex;
	gap: 16px;
	margin-top: 18px;
	font-size: 12.5px;
	font-weight: 600;
	flex-wrap: wrap;
	opacity: .95;
}

.hk-hero__trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hk-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .92);
	color: var(--ink) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	border: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	z-index: 2;
	box-sizing: border-box;
	transition: background .15s ease, transform .15s ease;
}

.hk-hero__nav svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	flex-shrink: 0;
	display: block;
	stroke: currentColor !important;
}

.hk-hero__nav svg polyline {
	stroke: currentColor !important;
}

.hk-hero__nav--prev { left: 16px; }
.hk-hero__nav--next { right: 16px; }

.hk-hero__nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.05);
}

.hk-hero__badge {
	position: absolute;
	top: 32px;
	right: 32px;
	background: #fff;
	padding: 12px 16px;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	gap: 10px;
	animation: hk-float 4s ease-in-out infinite;
	z-index: 2;
}

.hk-hero__badge-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accent-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-deep);
	font-size: 18px;
}

.hk-hero__badge-stat { font-weight: 800; font-size: 13px; color: var(--ink); }
.hk-hero__badge-sub  { font-size: 11px; color: var(--ink-mute); }

.hk-hero__dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	align-items: center;
	z-index: 2;
}

/* Visible dot is small (8×8); transparent padding extends tap area to 44×44. */
.hk-hero__dot {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}

.hk-hero__dot::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .6);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	transition: width .3s ease, background .3s ease;
}

.hk-hero__dot--active::before {
	width: 24px;
	background: #fff;
}

/* ----------- SECTION SHELL ----------- */
.hk-section {
	padding: 56px var(--hk-container-pad, 150px);
}

.hk-section--paper {
	background: var(--paper);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.hk-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 auto 24px;
}

.hk-section__head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.hk-eyebrow {
	color: var(--accent-deep);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hk-section__head h2 {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.hk-section__head .hk-eyebrow + h2 {
	margin-top: 4px;
}

/* ----------- CATEGORY STRIP ----------- */
.hk-categories__grid {
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.hk-cat-tile {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.hk-cat-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	color: inherit;
}

.hk-cat-tile__img {
	position: relative;
	border-radius: calc(var(--radius-card) - 6px);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--accent-tint);
}

.hk-cat-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* Shift crop downward to hide the brand-banner strip at the top of WC
	   product photos when no dedicated category thumbnail is set in admin.
	   For a clean fix, upload a category thumbnail at Products → Categories. */
	object-position: center 35%;
}

.hk-cat-tile__icon {
	position: absolute;
	bottom: 8px;
	left: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: var(--shadow-sm);
}

.hk-cat-tile__name {
	font-weight: 700;
	font-size: 13.5px;
	line-height: 1.2;
}

.hk-cat-tile__more {
	font-size: 11.5px;
	color: var(--ink-soft);
}

/* ----------- BESTSELLERS ----------- */
.hk-bestsellers__scroller {
	margin: 0 auto;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	list-style: none !important;
	padding: 0 !important;
}

.hooflakids-home .hk-bestsellers ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 24px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.hooflakids-home .hk-bestsellers ul.products::before,
.hooflakids-home .hk-bestsellers ul.products::after {
	display: none !important;
	content: none !important;
}

.hooflakids-home .hk-bestsellers ul.products li.product {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	float: none !important;
	clear: none !important;
}

/* Hide the empty manual scroller container — shortcode renders its own ul.products */
.hk-bestsellers__scroller:empty { display: none !important; }

@media (max-width: 1024px) {
	.hk-bestsellers__scroller,
	.hooflakids-home .hk-bestsellers ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.hk-bestsellers__scroller,
	.hooflakids-home .hk-bestsellers ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}

.hk-bestsellers__nav {
	display: flex;
	gap: 8px;
}

.hk-icon-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--line);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	cursor: pointer;
}

.hk-icon-btn:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ----------- FAMILY SPOTLIGHT ----------- */
.hk-spotlight__card {
	margin: 0 auto;
	background: var(--accent-tint);
	border: 1px solid var(--accent-soft);
	border-radius: calc(var(--radius-card) * 1.4);
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 36px;
	align-items: center;
}

.hk-spotlight__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.hk-chip {
	padding: 5px 11px;
	border-radius: 999px;
	background: #fff;
	color: var(--accent-deep);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	border: 1px solid var(--accent-soft);
}

.hk-spotlight__title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 14px;
	letter-spacing: -.02em;
}

.hk-spotlight__title em {
	font-style: normal;
	color: var(--accent-deep);
}

.hk-spotlight__lead {
	color: var(--ink-soft);
	font-size: 15.5px;
	margin: 0 0 18px;
	max-width: 460px;
	line-height: 1.5;
}

.hk-spotlight__features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	max-width: 440px;
	margin-bottom: 22px;
}

.hk-spotlight__feature {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.hk-feature-ic {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-deep);
	font-size: 16px;
	flex-shrink: 0;
}

.hk-feature-t { font-weight: 700; font-size: 13.5px; }
.hk-feature-s { font-size: 12px; color: var(--ink-mute); }

.hk-spotlight__photos {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	height: 480px;
}

.hk-spotlight__photos > div {
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--accent-soft);
}

.hk-spotlight__photos > div:first-child {
	grid-row: 1 / 3;
}

.hk-spotlight__photos img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ----------- EDITORIAL BLOCK ----------- */
.hk-editorial {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.hk-editorial__photo {
	position: relative;
	border-radius: var(--radius-card);
	overflow: hidden;
	aspect-ratio: 5 / 4;
}

.hk-editorial__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hk-editorial__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hk-editorial__title {
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	margin: 8px 0 14px;
	letter-spacing: -.02em;
}

.hk-editorial__lead {
	color: var(--ink-soft);
	font-size: 15.5px;
	margin: 0 0 20px;
	max-width: 480px;
}

/* Footer rules moved to style.css so they render on all pages, not just home. */

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
	.hk-categories__grid { grid-template-columns: repeat(3, 1fr); }
	.hk-bestsellers__scroller { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
	.hk-spotlight__card,
	.hk-editorial { grid-template-columns: 1fr; gap: 24px; }
	.hk-spotlight__photos { height: 320px; }
	.hk-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.hk-hero {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 5;
		max-height: 70vh;
	}
	.hk-hero__content { padding: 32px 24px; }
	.hk-hero__badge { top: 16px; right: 16px; padding: 8px 12px; }
	.hk-hero__nav { width: 36px; height: 36px; }
	.hk-hero__nav--prev { left: 8px; }
	.hk-hero__nav--next { right: 8px; }
	.hk-hero__dots { bottom: 12px; }
	.hk-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hk-cat-tile { padding: 10px; gap: 8px; }
	.hk-cat-tile__name { font-size: 13px; }
	.hk-cat-tile__more { font-size: 10.5px; }
	.hk-cat-tile__icon { width: 26px; height: 26px; font-size: 14px; }
	.hk-section { padding: 32px 16px; }
	.hk-section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 20px;
	}
	.hk-section__head--center { align-items: center; }
	.hk-section__head .hk-btn {
		align-self: stretch;
		justify-content: center;
		padding: 10px 16px;
		font-size: 13.5px;
	}
	.hk-bestsellers__scroller { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hk-footer__cols { grid-template-columns: 1fr; gap: 32px; }
	.hk-spotlight__features { grid-template-columns: 1fr; }
	.hk-spotlight__card { padding: 24px; }
}
