/* Softhands homepage — loaded on the front page only */
.home .wp-site-blocks > main, .home main.wp-block-group { margin-top: 0 !important; }
.home main > .wp-block-post-content > *:first-child { margin-top: 0; }

/* ---------- shared section heads ---------- */
.sh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 8px; }
.sh-eyebrow { margin: 0 0 6px; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--primary); }
.sh-sec-title { margin: 0; font-size: var(--wp--preset--font-size--x-large); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sh-sec-sub { margin: 8px 0 0; color: var(--wp--preset--color--secondary); max-width: 60ch; }
.sh-sec-link { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--primary); white-space: nowrap; }
.sh-sec-link:hover span { transform: translateX(3px); }
.sh-sec-link span { display: inline-block; transition: transform .2s; }

/* ---------- hero ---------- */
.sh-hx { position: relative; isolation: isolate; overflow: hidden; background: #0B0B12; color: #fff; }
.sh-hx::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(83,68,244,.45), transparent 65%),
    radial-gradient(40% 50% at 0% 100%, rgba(222,201,255,.16), transparent 70%); }
.sh-hx::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  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: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 80% at 60% 30%, #000 30%, transparent 80%); }
.sh-hx__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 8vw, 104px); }
.sh-hx__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px;
  background: rgba(255,255,255,.05); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: #d4d4ec; }
.sh-hx__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.sh-hx__title { margin: 0; color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.sh-hx__title span { background: linear-gradient(90deg, #a99fff, #DEC9FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-hx__lead { margin: 20px 0 0; max-width: 54ch; color: #c4c4dc; font-size: var(--wp--preset--font-size--medium); line-height: 1.55; }

.sh-hx__search { margin-top: 32px !important; max-width: 640px; }
.sh-hx__search .wp-block-search__inside-wrapper { padding: 6px !important; border: 0 !important; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px -20px rgba(83,68,244,.7), 0 0 0 1px rgba(255,255,255,.1); }
.sh-hx__search .wp-block-search__input { border: 0 !important; padding: 14px 16px 14px 48px !important; font-size: 1rem; color: #1E1E26; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23545473' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px 50% / 20px no-repeat; }
.sh-hx__search .wp-block-search__input:focus { outline: none; }
.sh-hx__search .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 3px #a99fff, 0 20px 50px -20px rgba(83,68,244,.7); }
.sh-hx__search .wp-block-search__button { margin: 0 !important; border-radius: 10px !important; padding: 0 26px !important; font-weight: 700; background: var(--wp--preset--color--primary) !important; color: #fff !important; }
.sh-hx__search .wp-block-search__button:hover { background: #3f30e0 !important; }

.sh-hx__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--wp--preset--font-size--x-small); color: #9a9ab8; }
.sh-hx__popular a { padding: 5px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: #e4e4f4; text-decoration: none; transition: background .2s, border-color .2s; }
.sh-hx__popular a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }

.sh-hx__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 40px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.1); }
.sh-hx__stats li { display: flex; flex-direction: column; max-width: none; }
.sh-hx__stats strong { font-size: var(--wp--preset--font-size--x-large); font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.sh-hx__stats span { font-size: var(--wp--preset--font-size--x-small); color: #9a9ab8; }

.sh-hx__finder { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; color: #1E1E26;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.sh-hx__finder::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 25px; background: linear-gradient(160deg, #8a7dff, transparent 50%); }
.sh-hx__finder-title { margin: 0; font-size: var(--wp--preset--font-size--large); font-weight: 800; letter-spacing: -.01em; }
.sh-hx__finder-sub { margin: 6px 0 18px; color: var(--wp--preset--color--secondary); font-size: var(--wp--preset--font-size--small); }
.sh-hx__finder-help { margin: 14px 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--secondary); }
.sh-hx__finder-help a { color: var(--wp--preset--color--primary); font-weight: 600; }
.sh-hx__finder .sh-pf { background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; color: inherit; }
.sh-hx__finder .sh-pf__head { display: none; }
.sh-hx__finder .sh-pf__fields { display: grid; gap: 12px; }
.sh-hx__finder .sh-pf__submit { width: 100%; padding: 14px 20px; border-radius: 12px; font-weight: 700; }

/* ---------- trust bar ---------- */
.sh-tb { border-bottom: 1px solid var(--wp--preset--color--border-light); background: #fff; }
.sh-tb__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 auto; padding: 0; list-style: none; }
.sh-tb__list li { display: flex; align-items: center; gap: 12px; max-width: none; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--secondary); }
.sh-tb__list strong { color: var(--wp--preset--color--main); font-weight: 700; }
.sh-tb__list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--wp--preset--color--primary-accent); color: var(--wp--preset--color--primary); }

/* ---------- categories ---------- */
.sh-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sh-cat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--wp--preset--color--border-light); border-radius: 16px;
  background: #fff; color: var(--wp--preset--color--main); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sh-cat:hover { transform: translateY(-3px); border-color: #c9c4ff; box-shadow: 0 18px 40px -22px rgba(83,68,244,.55); }
.sh-cat__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--primary); transition: background .2s, color .2s; }
.sh-cat__icon svg { width: 26px; height: 26px; }
.sh-cat:hover .sh-cat__icon { background: var(--wp--preset--color--primary); color: #fff; }
.sh-cat__name { font-weight: 700; line-height: 1.25; }
.sh-cat__meta { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--secondary); }
.sh-cat--all { justify-content: flex-end; background: var(--wp--preset--color--main); border-color: var(--wp--preset--color--main); color: #fff; }
.sh-cat--all .sh-cat__meta { color: #b5b5cf; }
.sh-cat__arrow { position: absolute; top: 18px; right: 20px; font-size: 1.4rem; transition: transform .2s; }
.sh-cat--all:hover .sh-cat__arrow { transform: translateX(4px); }

/* ---------- brands ---------- */
.sh-brands__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sh-brand { --b: #5344F4; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 200px; padding: 26px; border-radius: 20px;
  background: #fff; border: 1px solid var(--wp--preset--color--border-light); color: var(--wp--preset--color--main); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.sh-brand::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--b); opacity: .1; transition: transform .35s, opacity .35s; }
.sh-brand:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(30,30,38,.45); }
.sh-brand:hover::after { transform: scale(1.6); opacity: .16; }
.sh-brand--dell { --b: #0076CE; } .sh-brand--hp { --b: #0096D6; } .sh-brand--lenovo { --b: #E2231A; } .sh-brand--asus { --b: #1E1E26; }
.sh-brand__name { font-size: var(--wp--preset--font-size--xx-large); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sh-brand__series { margin-top: 10px; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--secondary); line-height: 1.5; }
.sh-brand__cta { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: var(--wp--preset--font-size--small); color: var(--b); }

/* ---------- product rails ---------- */
.sh-featured .wc-block-product-template, .sh-arrivals .wc-block-product-template, .sh-offers .wc-block-product-template { gap: 18px !important; }
.home .sh-card { height: 100%; }

/* ---------- promos ---------- */
.sh-promos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sh-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 4vw, 44px); border-radius: 24px; text-decoration: none; min-height: 240px; transition: transform .2s; }
.sh-promo:hover { transform: translateY(-3px); }
.sh-promo--trade { background: linear-gradient(135deg, #5344F4 0%, #3d2fd0 100%); color: #fff; }
.sh-promo--trade::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.sh-promo--help { background: #0B0B12; color: #fff; }
.sh-promo--help::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(83,68,244,.55), transparent 65%); }
.sh-promo__tag { align-self: flex-start; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; }
.sh-promo__title { font-size: var(--wp--preset--font-size--x-large); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sh-promo__text { max-width: 46ch; color: rgba(255,255,255,.8); }
.sh-promo__btn { margin-top: auto; padding-top: 10px; font-weight: 700; position: relative; z-index: 1; }

/* ---------- offers ---------- */
.sh-offers .sh-eyebrow { color: #e11d48; }

/* ---------- steps ---------- */
.sh-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.sh-steps__list li { position: relative; max-width: none; padding: 28px; border-radius: 20px; border: 1px solid var(--wp--preset--color--border-light); background: #fff; }
.sh-steps__list li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -18px; width: 18px; height: 2px; background: var(--wp--preset--color--border-light); }
.sh-steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--main); color: #fff; font-weight: 800; }
.sh-steps__list h3 { margin: 18px 0 6px; font-size: var(--wp--preset--font-size--medium); }
.sh-steps__list p { margin: 0; color: var(--wp--preset--color--secondary); font-size: var(--wp--preset--font-size--small); }

/* ---------- why ---------- */
.sh-why2__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sh-why2__card { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--wp--preset--color--border-light); }
.sh-why2__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--wp--preset--color--primary-accent); color: var(--wp--preset--color--primary); }
.sh-why2__icon svg { width: 24px; height: 24px; }
.sh-why2__card h3 { margin: 16px 0 6px; font-size: var(--wp--preset--font-size--medium); }
.sh-why2__card p { margin: 0; color: var(--wp--preset--color--secondary); font-size: var(--wp--preset--font-size--small); }

/* ---------- CTA ---------- */
.sh-cta { background: linear-gradient(120deg, #0B0B12 0%, #1d1850 100%); color: #fff; }
.sh-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.sh-cta__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.sh-cta__text { margin: 8px 0 0; color: #c4c4dc; max-width: 56ch; }
.sh-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sh-btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.sh-btn:hover { transform: translateY(-2px); }
.sh-btn--light { background: #fff; color: #1E1E26; }
.sh-btn--ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.sh-btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- focus ---------- */
.sh-cat:focus-visible, .sh-brand:focus-visible, .sh-promo:focus-visible, .sh-btn:focus-visible, .sh-hx__popular a:focus-visible { outline: 3px solid #a99fff; outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sh-hx__grid { grid-template-columns: 1fr; }
  .sh-tb__list { grid-template-columns: 1fr 1fr; }
  .sh-brands__grid, .sh-why2__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sh-promos__grid, .sh-steps__list { grid-template-columns: 1fr; }
  .sh-steps__list li::after { display: none; }
  .sh-cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sh-cat { padding: 16px; }
  .sh-cat__meta { display: none; }
  .sh-hx__stats { gap: 12px 24px; }
}
@media (max-width: 480px) {
  .sh-tb__list, .sh-brands__grid, .sh-why2__grid { grid-template-columns: 1fr; }
  .sh-brand { min-height: 0; }
  .sh-hx__search .wp-block-search__button { padding: 0 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-cat, .sh-brand, .sh-promo, .sh-btn, .sh-brand::after { transition: none; }
  .sh-cat:hover, .sh-brand:hover, .sh-promo:hover, .sh-btn:hover { transform: none; }
}
