/* Softhands site design: header, hero, gradients */
:root {
	--sh-black: #000;
	--sh-gradient: linear-gradient(100deg, #a78bfa 0%, #6366f1 38%, #22d3ee 100%);
	--sh-gradient-soft: linear-gradient(100deg, rgba(167, 139, 250, .9), rgba(99, 102, 241, .9) 40%, rgba(34, 211, 238, .9));
}

.sh-gradient-text {
	background: var(--sh-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---------- Header ---------- */
.sh-topbar p { margin: 0; }
.sh-topbar a { text-decoration: none; }
.sh-topbar a:hover { text-decoration: underline; }
.sh-topbar__sep { opacity: .45; margin: 0 .35em; }
.sh-topbar__claim { font-weight: 600; letter-spacing: .01em; }
.sh-topbar { position: relative; }
.sh-topbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--sh-gradient);
	opacity: .7;
}

.sh-header__main { align-items: center; }
.sh-header__brand a { text-decoration: none; }
.sh-header__search { flex: 1 1 auto; max-width: 680px; margin: 0; }
.sh-header__search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--border-light, #e3e3f0);
	border-radius: 999px;
	padding: 4px 4px 4px 18px;
	background: var(--wp--preset--color--tertiary, #f8f7fc);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.sh-header__search .wp-block-search__inside-wrapper:focus-within {
	background: #fff;
	border-color: #6366f1;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.sh-header .sh-header__search .wp-block-search__inside-wrapper .wp-block-search__input {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0;
	padding: 8px 0;
	font-size: .95rem;
	min-width: 0;
	outline: none;
}
.sh-header__search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 999px;
	width: 42px;
	height: 42px;
	padding: 0;
	display: grid;
	place-items: center;
	background: var(--sh-black);
	color: #fff;
	cursor: pointer;
	transition: transform .15s;
}
.sh-header__search .wp-block-search__button:hover { background: var(--sh-gradient); }
.sh-header__search .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
.sh-header__icons { flex-shrink: 0; }

.sh-header__nav .wp-block-navigation-item__content { padding: 4px 0; }
.sh-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position: relative; }
.sh-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--sh-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.sh-header__nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.sh-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { text-decoration: none; }
.sh-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { min-width: 260px !important; font-weight: 500; }

@media (max-width: 781px) {
	.sh-topbar .alignwide { justify-content: center !important; text-align: center; }
	.sh-topbar__links, .sh-topbar__extra { display: none; }
	.sh-header__navrow { padding-top: 4px !important; padding-bottom: 4px !important; }
	.sh-header__main { flex-wrap: wrap !important; row-gap: 12px; }
	.sh-header__brand { order: 1; }
	.sh-header__icons { order: 2; margin-left: auto; }
	.sh-header__search { order: 3; flex-basis: 100%; max-width: none; }
}

/* Sticky header: top bar scrolls away, search + menu stay pinned */
:root { --sh-topbar-h: 38px; }
header.site-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--sh-topbar-h));
	z-index: 100;
}
.sh-topbar {
	padding-top: 9px !important;
	padding-bottom: 9px !important;
}
.sh-topbar p,
.sh-topbar .wp-block-navigation { line-height: 20px; white-space: nowrap; }
.sh-header__navrow { box-shadow: 0 8px 24px -18px rgba(10, 10, 20, .35); }

/* Top bar help menu */
.sh-topbar__links .wp-block-navigation-item__content { color: #fff; text-decoration: none; opacity: .9; }
.sh-topbar__links .wp-block-navigation-item__content:hover { opacity: 1; text-decoration: underline; }

/* Account label */
.sh-header__account .wc-block-customer-account__link { gap: 6px; font-weight: 600; }

/* Menu: helper link pushed right */
.sh-header__navwrap { width: 100%; }
.sh-header__nav { flex: 1 1 auto; }
.sh-header__nav .wp-block-navigation__container { width: 100%; }
.sh-header__nav .sh-nav-help { margin-left: auto; }
.sh-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .sh-nav-help > .wp-block-navigation-item__content {
	padding: 5px 12px 5px 30px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border-light, #e3e3f0);
	position: relative;
}
.sh-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .sh-nav-help > .wp-block-navigation-item__content::before {
	content: "?";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--sh-gradient);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
}
.sh-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .sh-nav-help > .wp-block-navigation-item__content::after { display: none; }

@media (max-width: 781px) {
	.sh-header__account .wc-block-customer-account__link .label { display: none; }
}

/* ---------- Footer ---------- */
.sh-footer { position: relative; }
.sh-trust__list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--medium, 24px);
}
.sh-trust__item { display: flex; align-items: center; gap: 14px; }
.sh-trust__item strong { display: block; color: var(--wp--preset--color--main, #1e1e26); font-size: .95rem; }
.sh-trust__item strong + span { display: block; color: var(--wp--preset--color--secondary, #545473); font-size: .85rem; }
.sh-trust__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: #000;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px -8px rgba(99, 102, 241, .7);
}
.sh-trust__icon svg { width: 22px; height: 22px; }
.sh-footer__main { position: relative; }
.sh-footer__main::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--sh-gradient);
	opacity: .8;
}
.sh-footer__brand a { color: #fff !important; text-decoration: none; }
.sh-footer__address { line-height: 1.6; }
.sh-footer__cta .wp-block-button__link {
	background: #fff;
	color: #000 !important;
	font-weight: 700;
	font-size: .9rem;
	padding: 10px 18px;
	border-radius: 999px;
}
.sh-footer__cta .wp-block-button__link:hover { background: var(--sh-gradient); color: #fff !important; }
.sh-footer__title {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	margin-bottom: 14px;
}
.sh-footer__nav .wp-block-navigation__container { gap: 10px !important; }
.sh-footer__nav a, .sh-footer__legalnav a { text-decoration: none; color: #a1a1aa; transition: color .15s; }
.sh-footer__nav a:hover, .sh-footer__legalnav a:hover { color: #fff; text-decoration: underline; }
.sh-footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); }
.sh-footer__legal p { margin: 0; }
.sh-footer__pay { display: inline-flex; align-items: center; gap: 6px; }
.sh-footer__pay::before { content: "🔒"; filter: grayscale(1); font-size: .85em; }

@media (max-width: 1024px) {
	.sh-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.sh-trust__list { grid-template-columns: 1fr; gap: 14px; }
	.sh-footer__cols { flex-wrap: wrap !important; }
	.sh-footer__cols > .sh-footer__brandcol { flex-basis: 100% !important; }
	.sh-footer__cols > .sh-footer__col { flex-basis: calc(50% - 16px) !important; flex-grow: 0 !important; }
}

/* Search results: "See every part for Dell Latitude 5430 →" */
.sh-search-hint {
	margin: 0;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(99, 102, 241, .25);
	background: linear-gradient(100deg, rgba(167, 139, 250, .1), rgba(34, 211, 238, .08));
	font-weight: 600;
}

/* ---------- Hero ---------- */
.sh-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--sh-black);
	color: #fff;
}
.sh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(55% 60% at 12% -10%, rgba(99, 102, 241, .55), transparent 70%),
		radial-gradient(45% 55% at 92% 0%, rgba(34, 211, 238, .35), transparent 70%),
		radial-gradient(50% 45% at 50% 115%, rgba(167, 139, 250, .35), transparent 70%);
}
.sh-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}
.sh-hero h1 {
	color: #fff;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-wrap: balance;
}
.sh-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .06);
	backdrop-filter: blur(6px);
	color: #e4e4e7;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.sh-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sh-gradient);
	box-shadow: 0 0 12px rgba(99, 102, 241, .9);
}
.sh-hero__lead { color: #a1a1aa; }
.sh-hero__grid { align-items: center !important; }
.sh-hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.sh-hero__copy > * { margin-left: 0 !important; }
#find-parts { scroll-margin-top: 140px; }

/* Finder in a narrow column: two fields per row, full-width button */
.sh-pf--stack .sh-pf__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-pf--stack .sh-pf__submit.wp-element-button { grid-column: 1 / -1; width: 100%; height: 52px; font-size: 1rem; }
@media (max-width: 520px) {
	.sh-pf--stack .sh-pf__fields { grid-template-columns: 1fr; }
}
.sh-hero .sh-pf {
	border-color: rgba(255, 255, 255, .1);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -24px rgba(99, 102, 241, .55);
}
.sh-hero__brands {
	color: #71717a;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
}
.sh-hero__brands strong { color: #d4d4d8; font-weight: 800; margin: 0 .6em; }

@media (prefers-reduced-motion: no-preference) {
	.sh-hero h1, .sh-hero__eyebrow, .sh-hero .sh-pf {
		animation: sh-rise .7s cubic-bezier(.2, .7, .2, 1) both;
	}
	.sh-hero__eyebrow { animation-delay: .05s; }
	.sh-hero h1 { animation-delay: .12s; }
	.sh-hero__lead { animation-delay: .2s; }
	.sh-hero .sh-pf { animation-delay: .3s; }
}
@keyframes sh-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Shop / model pages: filter sidebar ---------- */
.sh-shop { align-items: flex-start !important; }
@media (min-width: 782px) {
	.sh-shop__filters { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 4px; }
}
.sh-filters .wc-block-product-filters { --wc-product-filters-background-color: #fff; }
.sh-filters .wp-block-woocommerce-product-filters > .sh-filter__title:first-child {
	font-size: .8rem !important;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--wp--preset--color--secondary, #545473);
}
.sh-filters .wp-block-woocommerce-product-filter-attribute,
.sh-filters .wp-block-woocommerce-product-filter-status,
.sh-filters .wp-block-woocommerce-product-filter-price {
	padding: 14px 0;
	border-top: 1px solid var(--wp--preset--color--border-light, #e3e3f0);
}
.sh-filters .sh-filter__title { font-weight: 700; }
.sh-filters .wc-block-product-filter-checkbox-list__label { font-size: .9rem; }
.sh-filters input[type="checkbox"]:checked { accent-color: #000; }
.sh-filters .wc-block-product-filter-removable-chips__chip { border-radius: 999px; }

/* Model page aliases */
.sh-aliases { margin: 6px 0 0; font-size: .85rem; color: var(--wp--preset--color--secondary, #545473); }

/* ---------- Product page: OEM numbers + fitment note ---------- */
.sh-pdp__oem { margin: 10px 0 0; font-size: .85rem; color: var(--wp--preset--color--secondary, #545473); }
.sh-pdp__oem span { font-weight: 700; color: var(--wp--preset--color--main, #1e1e26); }
.sh-fitnote {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a8a;
	font-size: .9rem;
}
.sh-fitnote strong { display: block; }
.sh-fitnote__icon {
	flex: 0 0 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #2563eb;
	color: #fff;
	font-weight: 800;
	font-style: italic;
	font-family: Georgia, serif;
	font-size: .8rem;
}
.sh-fit__note { display: block; margin-top: 6px; font-size: .85rem; }
