/* Half Skull — sale timer, offers card, combo pill, slide-in cart drawer. */

:root {
	--hsd-red: #e3001c;
	--hsd-ink: #131316;
	--hsd-tonal: #ffe1e4;
	--hsd-line: #e8e4df;
	--hsd-soft: #f6f3ef;
	--hsd-ok: #0b7a3e;
}

/* ---------- sale timer ---------- */
.hs-sale-timer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 9px 14px;
	border-radius: 14px;
	background: var(--hsd-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.hs-sale-timer[hidden] { display: none; }
.hs-sale-timer__label { opacity: .8; }
.hs-sale-timer__time {
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	letter-spacing: .04em;
	color: #fff;
}
.hs-sale-timer__time i { font-style: normal; color: #ff7d8d; padding: 0 1px; }
.hs-sale-timer--drawer { border-radius: 0; margin: 0; background: var(--hsd-tonal); color: var(--hsd-red); }
.hs-sale-timer--drawer .hs-sale-timer__time { color: var(--hsd-red); }
.hs-sale-timer--drawer .hs-sale-timer__time i { color: var(--hsd-red); }
.hs-sale-timer--shop { margin: 0 0 8px; }

.hs-shop-strip { margin: 0 0 18px; }
.hs-shop-strip__combo {
	margin: 0;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--hsd-tonal);
	color: var(--hsd-ink);
	font-size: 13px;
	line-height: 1.45;
}
.hs-shop-strip__combo b { color: var(--hsd-red); text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }

/* ---------- combo pill on cards ---------- */
.hs-badge.is-ink {
	background: var(--hsd-ink);
	color: #fff;
}

/* ---------- offers card on the product page ---------- */
.hs-offers { margin: 14px 0; }
/* .summary is a flex column ordered by CSS: timer above the price, offers right before the size picker */
.summary > .hs-sale-timer--pdp { order: 0; margin: 0 0 14px; }
.summary > .hs-offers { order: 4; }
.hs-offers__title {
	margin: 0 0 8px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hsd-ink);
}
.hs-offer-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 14px 14px;
	border: 1.5px solid var(--hsd-red);
	border-radius: 20px;
	background: linear-gradient(135deg, #fff 0%, var(--hsd-tonal) 100%);
}
.hs-offer-card__tag {
	position: absolute;
	top: -11px;
	left: 14px;
	padding: 3px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid var(--hsd-red);
	color: var(--hsd-red);
	font-size: 11px;
	font-weight: 800;
}
.hs-offer-card__body { flex: 1; min-width: 0; }
.hs-offer-card__big { margin: 0; font-weight: 800; font-size: 18px; color: var(--hsd-ink); }
.hs-offer-card__sub { margin: 2px 0 0; font-size: 12px; color: #55515a; line-height: 1.4; }
.hs-offer-card__cta {
	flex: none;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--hsd-ink);
	color: #fff !important;
	font-weight: 800;
	font-size: 12px;
	text-decoration: none !important;
	box-shadow: 3px 3px 0 var(--hsd-red);
}
.hs-offers__note { margin: 8px 2px 0; font-size: 12px; color: var(--hsd-ok); font-weight: 600; }

/* cart + checkout: savings pill above the order summary */
.hs-saved-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 11px 14px;
	border-radius: 999px;
	background: #e7f6ee;
	color: var(--hsd-ok);
	font-weight: 700;
	font-size: 14px;
}
.hs-saved-pill b { color: var(--hsd-ok); }

/* theme's own add-to-cart popup is replaced by the drawer */
#tbay-click-addtocart { display: none !important; }

/* ---------- cart drawer ---------- */
html.hs-dr-lock { overflow: hidden; }
.hs-dr { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.hs-dr.is-open { visibility: visible; pointer-events: auto; }
.hs-dr[hidden] { display: none; }
.hs-dr__scrim { position: absolute; inset: 0; background: rgba(19, 19, 22, .55); opacity: 0; transition: opacity .25s ease; }
.hs-dr.is-open .hs-dr__scrim { opacity: 1; }
.hs-dr__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 100%);
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
	transform: translateX(104%);
	transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.hs-dr.is-open .hs-dr__panel { transform: none; }

.hs-dr__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid var(--hsd-line);
}
.hs-dr__title { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--hsd-ink); }
.hs-dr__close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--hsd-soft);
	color: var(--hsd-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.hs-dr__scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.hs-dr__block { margin: 12px 14px 0; }

.hs-dr-pin {
	display: flex;
	gap: 8px;
	padding: 8px 8px 8px 12px;
	border: 1.5px solid var(--hsd-line);
	border-radius: 16px;
	align-items: center;
}
.hs-dr-pin input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 14px;
	height: 36px;
	padding: 0 !important;
}
.hs-dr-pin button {
	border: 0;
	border-radius: 999px;
	background: var(--hsd-ink);
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	padding: 9px 16px;
	cursor: pointer;
}
.hs-dr-pin-result { margin: 6px 4px 0; font-size: 12px; color: #55515a; }
.hs-dr-pin-result.is-ok { color: var(--hsd-ok); font-weight: 600; }
.hs-dr-pin-result.is-bad { color: var(--hsd-red); font-weight: 600; }

.hs-dr-combo {
	padding: 12px 14px;
	border-radius: 18px;
	background: var(--hsd-tonal);
	border: 1.5px solid #ffc2c9;
}
.hs-dr-combo__msg { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--hsd-ink); }
.hs-dr-combo__msg b { color: var(--hsd-red); }
.hs-dr-combo__bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.hs-dr-combo__fill { height: 100%; width: 0; background: var(--hsd-red); border-radius: 999px; transition: width .35s ease; }
.hs-dr-combo__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: #55515a; }
.hs-dr-combo__row a {
	flex: none;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--hsd-red);
	color: var(--hsd-red) !important;
	font-weight: 800;
	text-decoration: none !important;
	background: #fff;
}

.hs-dr-items { list-style: none; margin: 12px 14px 0; padding: 0; }
.hs-dr-item {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hsd-line);
}
.hs-dr-item__img { width: 76px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--hsd-soft); display: block; }
.hs-dr-item__name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--hsd-ink); }
.hs-dr-item__name a { color: inherit !important; text-decoration: none !important; }
.hs-dr-item__meta { margin: 2px 0 0; font-size: 12px; color: #6b6670; }
.hs-dr-item__price { margin: 6px 0 0; font-weight: 800; font-size: 15px; color: var(--hsd-ink); }
.hs-dr-item__price s { font-weight: 500; font-size: 12px; color: #8a858f; margin-left: 6px; }
.hs-dr-item__ctl { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.hs-dr-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--hsd-line); border-radius: 999px; overflow: hidden; }
.hs-dr-qty button { width: 32px; height: 32px; border: 0; background: #fff; font-size: 17px; font-weight: 800; color: var(--hsd-ink); cursor: pointer; }
.hs-dr-qty span { min-width: 26px; text-align: center; font-weight: 800; font-size: 13px; }
.hs-dr-rm { border: 0; background: none; color: var(--hsd-red); font-weight: 700; font-size: 12px; cursor: pointer; padding: 6px 2px; }

.hs-dr-empty { text-align: center; padding: 48px 24px; color: #55515a; }
.hs-dr-empty strong { display: block; font-size: 16px; color: var(--hsd-ink); margin-bottom: 6px; }
.hs-dr-empty a {
	display: inline-block;
	margin-top: 14px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--hsd-ink);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 4px 4px 0 var(--hsd-red);
}

.hs-dr-rv { margin: 18px 14px 0; }
.hs-dr-rv__title { margin: 0 0 8px; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hsd-ink); }
.hs-dr-rv__row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.hs-dr-rv__card { flex: none; width: 112px; text-decoration: none !important; color: var(--hsd-ink) !important; }
.hs-dr-rv__card img { width: 112px; height: 140px; object-fit: cover; border-radius: 14px; background: var(--hsd-soft); display: block; }
.hs-dr-rv__card span { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; line-height: 1.25; }
.hs-dr-rv__card em { font-style: normal; font-size: 12px; font-weight: 800; }

.hs-dr__foot { border-top: 1px solid var(--hsd-line); background: #fff; padding-bottom: env(safe-area-inset-bottom); }
.hs-dr-saved {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 14px;
	background: #e7f6ee;
	color: var(--hsd-ok);
	font-weight: 700;
	font-size: 13px;
}
.hs-dr-saved[hidden] { display: none; }
.hs-dr-foot__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px 14px; }
.hs-dr-foot__sum { min-width: 92px; }
.hs-dr-foot__total { display: block; font-weight: 800; font-size: 20px; color: var(--hsd-ink); line-height: 1.1; }
.hs-dr-foot__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6b6670; text-decoration: underline; }
.hs-dr-go {
	flex: 1;
	display: block;
	text-align: center;
	padding: 15px 14px;
	border-radius: 999px;
	background: var(--hsd-red);
	color: #fff !important;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 4px 4px 0 var(--hsd-ink);
	transition: transform .1s, box-shadow .1s;
}
.hs-dr-go:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hsd-ink); }
.hs-dr-go.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.hs-dr-trust { text-align: center; font-size: 11px; color: #6b6670; padding: 0 14px 10px; }
.hs-dr-busy { opacity: .55; pointer-events: none; transition: opacity .15s; }

@media (max-width: 480px) {
	.hs-dr__panel { width: 100%; }
	.hs-offer-card { flex-wrap: wrap; }
	.hs-offer-card__cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.hs-dr__panel, .hs-dr__scrim, .hs-dr-combo__fill { transition: none; }
}
