/* =====================================================================
   Half Skull: hoodie band (prefix hs-hood). Own look, built on the m3 tokens:
   an ink "fabric" panel, a giant outlined HOODIES watermark, hood-arch
   product frames with drawstrings, and a ribbed waistband along the bottom.
   ===================================================================== */

.hs-hood {
	--hh-red: var(--m3-primary, #e3001c);
	--hh-ink: var(--m3-ink, #131316);
	--hh-display: var(--hs-font-display, "Bricolage Grotesque", "Poppins", system-ui, sans-serif);
	--hh-spring: var(--m3-spring, cubic-bezier(.34, 1.56, .64, 1));
	--hh-ease: var(--m3-ease, cubic-bezier(.2, 0, 0, 1));

	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	margin: 0 0 28px;
	padding: 40px 40px 52px;
	border-radius: var(--m3-r-2xl, 36px);
	color: #fff;
	/* brushed fleece: soft red heat top-left, faint cross-weave over ink */
	background:
		radial-gradient(70% 90% at 0% 0%, rgba(227, 0, 28, .42), transparent 60%),
		radial-gradient(60% 70% at 100% 100%, rgba(227, 0, 28, .16), transparent 65%),
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px),
		var(--hh-ink);
	box-shadow: 0 0 0 1px rgba(19, 19, 22, .1), 0 24px 50px -18px rgba(19, 19, 22, .45);
}

/* giant outlined watermark */
.hs-hood__mark {
	position: absolute;
	right: -1%;
	top: -6%;
	z-index: -1;
	font-family: var(--hh-display);
	font-size: clamp(90px, 15vw, 230px);
	font-weight: 800;
	line-height: .8;
	letter-spacing: -.04em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
}

/* ribbed waistband along the bottom edge */
.hs-hood__rib {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 18px;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 40%),
		repeating-linear-gradient(90deg, #1d1d22 0 5px, #26262c 5px 7px, #18181c 7px 10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- head ---------- */
.hs-hood__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.hs-hood__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.hs-hood__eyebrow i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hh-red);
	box-shadow: 0 0 0 4px rgba(227, 0, 28, .25);
	animation: hsHoodPulse 2.4s var(--hh-ease) infinite;
}
@keyframes hsHoodPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(227, 0, 28, .3); } 50% { box-shadow: 0 0 0 7px rgba(227, 0, 28, 0); } }

.hs-hood .hs-hood__title {
	margin: 0;
	font-family: var(--hh-display);
	font-size: clamp(40px, 5vw, 76px);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.045em;
	text-transform: uppercase;
	color: #fff;
}
.hs-hood__title small {
	display: block;
	margin-top: 12px;
	font-family: var(--hs-font-body, "Poppins", sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .2em;
	color: rgba(255, 255, 255, .7);
}
.hs-hood .hs-hood__text { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .78); }

.hs-hood__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.hs-hood__chips li {
	margin: 0;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(19, 19, 22, .55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
}

.hs-hood .hs-hood__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin-top: 6px;
	padding: 0 8px 0 24px;
	border-radius: 999px;
	background: var(--hh-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: transform var(--m3-med, .35s) var(--hh-spring), box-shadow .25s;
}
.hs-hood__cta > span[aria-hidden] {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--hh-red);
	transition: transform var(--m3-med, .35s) var(--hh-spring);
}
.hs-hood__count {
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .22);
	font-size: 12px;
}
.hs-hood .hs-hood__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(227, 0, 28, .7); }
.hs-hood__cta:hover > span[aria-hidden] { transform: translateX(3px) rotate(-8deg); }

/* ---------- rail ---------- */
.hs-hood__rail { position: relative; min-width: 0; }
.hs-hood__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 2px 4px;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.hs-hood__track::-webkit-scrollbar { display: none; }

.hs-hood .hs-hood__item {
	flex: 0 0 calc((100% - 32px) / 3);
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	scroll-snap-align: start;
}
.hs-hood .hs-hood__item:hover { color: #fff; }

/* hood-arch frame */
.hs-hood__frame {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 999px 999px 22px 22px / 46% 46% 22px 22px;
	background: linear-gradient(180deg, #2b2b31, #1b1b20);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 30px -12px rgba(0, 0, 0, .7);
	transition: border-radius var(--m3-slow, .5s) var(--hh-spring), transform var(--m3-slow, .5s) var(--hh-spring), box-shadow .3s;
}
.hs-hood .hs-hood__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	transition: transform .8s var(--hh-ease);
}
@media (hover: hover) {
	.hs-hood__item:hover .hs-hood__frame {
		border-radius: 999px 999px 30px 30px / 38% 38% 30px 30px;
		transform: translateY(-6px);
		box-shadow: 0 0 0 1px rgba(227, 0, 28, .5), 0 24px 40px -14px rgba(0, 0, 0, .8);
	}
	.hs-hood__item:hover .hs-hood__img { transform: scale(1.06); }
}
.hs-hood__item:active .hs-hood__frame { transform: scale(.98); }

.hs-hood__meta { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.hs-hood__name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: capitalize;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.hs-hood__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.hs-hood__price { font-size: 15px; font-weight: 800; color: #fff; }
.hs-hood__price del { margin-right: 4px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.hs-hood__price ins { text-decoration: none; }
.hs-hood__price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.hs-hood__sizes { display: flex; gap: 4px; }
.hs-hood__size {
	min-width: 26px;
	padding: 4px 5px;
	border-radius: 7px;
	background: rgba(255, 255, 255, .1);
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}
.hs-hood__size.is-out { opacity: .35; text-decoration: line-through; }

/* arrows under the rail, right-aligned */
.hs-hood__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hs-hood__nav button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0 0 3px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
	transition: background .2s, transform .25s var(--hh-spring), opacity .2s;
}
.hs-hood__nav button:hover { background: var(--hh-red); transform: scale(1.06); }
.hs-hood__nav button:disabled { opacity: .3; pointer-events: none; }

/* ---------- tablet ---------- */
@media (max-width: 991px) {
	.hs-hood { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 28px 44px; border-radius: var(--m3-r-xl, 28px); }
	.hs-hood__mark { top: auto; bottom: 14px; font-size: 22vw; }
	.hs-hood .hs-hood__item { flex-basis: calc((100% - 32px) / 3); }
}

/* ---------- phone: head on top, rail peeks the next hoodie ---------- */
@media (max-width: 767px) {
	.hs-hood { gap: 20px; margin-bottom: 20px; padding: 26px 0 38px; border-radius: var(--m3-r-lg, 20px); }
	.hs-hood__head { gap: 12px; padding: 0 18px; }
	.hs-hood .hs-hood__title { font-size: clamp(38px, 12vw, 52px); }
	.hs-hood .hs-hood__text { font-size: 14px; }
	.hs-hood__chips li { padding: 6px 10px; font-size: 12px; }
	.hs-hood .hs-hood__cta { min-height: 46px; }
	.hs-hood__track { gap: 12px; padding: 4px 18px; scroll-padding: 0 18px; }
	.hs-hood .hs-hood__item { flex-basis: 62%; }
	.hs-hood__nav { display: none; }
	.hs-hood__mark { font-size: 28vw; bottom: 22px; }
	.hs-hood__rib { height: 14px; }
}

@media (hover: none) { .hs-hood__nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.hs-hood *, .hs-hood *::before, .hs-hood *::after { animation: none !important; transition: none !important; }
	.hs-hood__track { scroll-behavior: auto; }
}
