/*
 * Hariys Home Blocks - section styles.
 * Scope: .hy-section wrappers only, so theme and other pages stay untouched.
 */

.hy-announcement {
	position: relative;
	z-index: 12;
	background: #1b4cd1;
	color: #fff;
	text-align: center;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	padding: 11px 16px;
}

.hy-announcement span {
	display: inline-block;
}

@media (max-width: 849px) {
	.hy-announcement {
		font-size: 11px;
		padding: 10px 12px;
	}
}

.hy-section {
	--hy-navy: #001d48;
	--hy-orange: #d44316;
	--hy-orange-dark: #b8360f;
	--hy-red: #c8102e;
	--hy-gray: #f7f7f7;
	--hy-line: rgba(0, 29, 72, 0.12);
	position: relative;
	width: 100%;
	color: var(--hy-navy);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0.01em;
	box-sizing: border-box;
}

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

.hy-section h1,
.hy-section h2,
.hy-section h3 {
	width: auto;
	color: inherit;
	font-family: inherit;
	margin: 0;
}

.hy-inner {
	max-width: 1392px;
	margin: 0 auto;
	padding: 0 32px;
}

.hy-section__head {
	text-align: center;
	margin: 0 0 32px;
}

.hy-section__title {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--hy-navy);
	margin: 0 0 8px;
}

.hy-section__sub {
	margin: 0;
	font-size: 14px;
	color: var(--hy-navy);
	opacity: 0.75;
}

.hy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--hy-orange);
	color: #fff !important;
	border: 0;
	border-radius: 4px;
	padding: 13px 24px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.hy-btn:hover,
.hy-btn:focus-visible {
	background: var(--hy-orange-dark);
	color: #fff !important;
}

.hy-empty {
	margin: 24px auto;
	max-width: 520px;
	text-align: center;
	font-size: 14px;
	color: var(--hy-navy);
	opacity: 0.7;
}

/* ------------------------------------------------------------------ hero */

.hy-hero {
	min-height: var(--hy-hero-h, 810px);
	background: #0a0a0a;
	overflow: hidden;
}

.hy-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.hy-hero__media picture,
.hy-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.hy-hero__media img {
	object-fit: cover;
	object-position: center;
}

.hy-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.hy-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1392px;
	margin: 0 auto;
	min-height: var(--hy-hero-h, 810px);
	padding: 0 32px var(--hy-hero-pad, 64px);
	display: flex;
	align-items: flex-end;
}

.hy-hero.is-center .hy-hero__inner {
	justify-content: center;
	text-align: center;
}

.hy-hero__copy {
	max-width: 520px;
}

.hy-hero.is-center .hy-hero__copy {
	max-width: 720px;
}

.hy-hero__title,
.hy-section .hy-hero__title,
.hy-hero .hy-hero__title {
	color: #fff;
	font-size: clamp(30px, 3.1vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.02em;
	margin: 0 0 16px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hy-hero__discount {
	display: inline-block;
	margin: 0 0 16px;
	background: var(--hy-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 3px;
	line-height: 1;
}

.hy-hero__sub,
.hy-section .hy-hero__sub,
.hy-hero .hy-hero__sub {
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 22px;
	max-width: 380px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hy-hero.is-center .hy-hero__sub {
	margin-left: auto;
	margin-right: auto;
}

.hy-hero__cta {
	padding: 14px 30px;
}

/* -------------------------------------------------------------- products */

.hy-products {
	padding: var(--hy-pad, 56px) 0;
}

.hy-grid {
	display: grid;
	grid-template-columns: repeat(var(--hy-cols, 4), minmax(0, 1fr));
	gap: 16px;
}

.hy-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	padding: 14px;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hy-card:hover {
	box-shadow: 0 10px 26px rgba(0, 29, 72, 0.1);
	transform: translateY(-2px);
}

.hy-card__badges {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	min-height: 22px;
	margin-bottom: 8px;
}

.hy-badge {
	display: inline-block;
	background: var(--hy-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 3px;
	line-height: 1.2;
}

.hy-card__figure {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	text-decoration: none;
}

.hy-card__img,
.hy-card__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hy-card__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--hy-navy);
}

.hy-stars {
	position: relative;
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	color: #d8d8d8;
	letter-spacing: 0.08em;
}

.hy-stars::before {
	content: "\2605\2605\2605\2605\2605";
}

.hy-stars::after {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--hy-stars, 5) / 5 * 100%);
	overflow: hidden;
	white-space: nowrap;
	color: var(--hy-navy);
}

.hy-card__reviews {
	opacity: 0.65;
	font-size: 11px;
}

.hy-card__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin: 10px 0 6px;
}

.hy-card__title a {
	color: var(--hy-navy);
	text-decoration: none;
}

.hy-card__title a:hover {
	text-decoration: underline;
}

.hy-card__price {
	font-size: 14px;
	font-weight: 600;
	color: var(--hy-navy);
	margin: auto 0 0;
}

.hy-card__price del {
	opacity: 0.55;
	font-weight: 400;
	margin-right: 6px;
}

.hy-card__price ins {
	text-decoration: none;
	font-weight: 700;
}

.hy-card__cta {
	margin-top: 12px;
	width: 100%;
	padding: 12px 10px;
	font-size: 12px;
}

.hy-card__cta.added::after {
	content: " \2713";
}

/* ----------------------------------------------------------- razor cards */

.hy-razor {
	padding: var(--hy-pad, 64px) 0;
}

.hy-razor__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.hy-razor__card {
	position: relative;
	display: block;
	aspect-ratio: 1220 / 1360;
	overflow: hidden;
	border-radius: 6px;
	background: #ededed;
	text-decoration: none;
}

.hy-razor__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hy-razor__card:hover .hy-razor__img {
	transform: scale(1.02);
}

.hy-razor__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0) 70%);
}

.hy-razor__body {
	position: absolute;
	top: 28px;
	left: 0;
	right: 0;
	padding: 0 28px;
	text-align: center;
	color: #fff;
}

.hy-razor__kicker {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.hy-razor__text {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.95;
	max-width: 300px;
	margin: 0 auto;
}

.hy-razor__btn {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	padding: 13px 26px;
	pointer-events: none;
}

/* -------------------------------------------------------------- category */

.hy-cats {
	padding: var(--hy-pad, 64px) 0;
}

.hy-cats__grid {
	display: grid;
	grid-template-columns: repeat(var(--hy-cols, 4), minmax(0, 1fr));
	gap: 16px;
}

.hy-cat {
	position: relative;
	display: block;
	aspect-ratio: 592 / 700;
	overflow: hidden;
	border-radius: 6px;
	background: #ededed;
	text-decoration: none;
}

.hy-cat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hy-cat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 32%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
	pointer-events: none;
}

.hy-cat:hover .hy-cat__img {
	transform: scale(1.03);
}

.hy-cat__label {
	position: absolute;
	top: 5%;
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
	padding: 0 10px;
}

/* Optional overlay button. Off by default because the campaign art already
   prints a SHOP NOW button; the whole tile is the link either way. */
.hy-cat__btn {
	position: absolute;
	left: 50%;
	bottom: 5.2%;
	transform: translateX(-50%);
	width: 39%;
	height: 8.9%;
	min-height: 34px;
	padding: 0;
	font-size: clamp(9px, 1.05vw, 13px);
	letter-spacing: 0.14em;
	pointer-events: none;
	z-index: 2;
}

/* ----------------------------------------------------------------- story */

.hy-story {
	padding: var(--hy-pad, 72px) 0;
}

.hy-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 48px;
	align-items: center;
}

.hy-story__title {
	font-size: clamp(24px, 2.3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	margin: 0 0 18px;
	max-width: 420px;
}

.hy-story__text {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 26px;
	max-width: 430px;
	color: var(--hy-navy);
	opacity: 0.9;
}

.hy-story__media {
	position: relative;
	padding: 0 0 56px 64px;
}

.hy-story__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.hy-story__img--small {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 46%;
	border: 6px solid #fff;
	box-shadow: 0 12px 30px rgba(0, 29, 72, 0.16);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1023px) {
	.hy-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hy-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.hy-inner {
		padding: 0 16px;
	}

	.hy-hero {
		min-height: 620px;
	}

	.hy-hero__inner {
		min-height: 620px;
		padding: 0 16px 36px;
	}

	.hy-hero__media img {
		object-position: center 25%;
	}

	.hy-hero__scrim {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.62) 100%);
	}

	.hy-hero__title {
		font-size: 30px;
	}

	.hy-hero__sub {
		font-size: 14px;
		max-width: none;
	}

	.hy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hy-card {
		padding: 10px;
	}

	.hy-razor__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.hy-razor__card {
		aspect-ratio: 3 / 3.4;
	}

	.hy-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hy-cat__label {
		font-size: 16px;
	}

	.hy-story__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.hy-story__media {
		padding: 0 0 40px 40px;
	}

	.hy-story__img--small {
		width: 44%;
	}

	.hy-section__title {
		font-size: 21px;
	}

	.hy-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 850px) {
	.hy-hide-desktop {
		display: none !important;
	}
}

/* ---------------------------------------- WooCommerce badges on all pages */

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce .badge-container .badge-inner,
.woocommerce .product-gallery .badge .badge-inner,
.badge-container .badge .badge-inner,
.woocommerce .product-small .badge-inner,
.woocommerce div.product .badge-inner {
	background-color: #c8102e !important;
	color: #fff !important;
	border: 0 !important;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.woocommerce .product-small .badge-inner.on-sale {
	background-color: #c8102e !important;
}

/* --------------------------------------------- footer mobile accordion */

@media (max-width: 849px) {
	.footer-2 .hy-acc-item {
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}

	.footer-2 .hy-acc-btn {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		background: none;
		border: 0;
		padding: 14px 0;
		margin: 0;
		font-family: inherit;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: inherit;
		cursor: pointer;
		text-align: left;
	}

	.footer-2 .hy-acc-btn::after {
		content: "+";
		font-size: 20px;
		line-height: 1;
		font-weight: 400;
		color: inherit;
	}

	.footer-2 .hy-acc-btn[aria-expanded="true"]::after {
		content: "\2013";
	}

	.footer-2 .hy-acc-panel[hidden] {
		display: none !important;
	}

	.footer-2 .hy-acc-panel {
		padding: 0 0 14px;
	}

	.footer-2 .hy-acc-panel p:first-child {
		margin-top: 0;
	}
}

@media (min-width: 850px) {
	.footer-2 .hy-acc-btn {
		display: none;
	}

	.footer-2 .hy-acc-panel[hidden] {
		display: block !important;
	}
}

.hy-footer-link {
	display: block;
	padding: 3px 0;
}
