/* Sock Shop home (socks + EXTRAS). Loaded after the storefront plugin's home.css and uses its variables (--ink, --red, --cream, --line, --muted, radii, easing).
   Nothing here introduces a new colour: ink, white, red, cream and the pastel tile colours the site already uses. */

/* ---------- Hero: wider lead, EXTRAS tile ---------- */
.ssh-home .wsf-hero__lead { max-width: 38ch; }

.ssh-home .ssh-hero-extras {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
	padding: clamp(18px, 2.2vw, 30px); background: var(--ink); color: #fff; isolation: isolate;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ssh-home .ssh-hero-extras::before {
	content: ''; position: absolute; z-index: -1; inset: auto -25% -45% auto; width: 80%; aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(219, 18, 21, .5), rgba(219, 18, 21, 0)); pointer-events: none;
}
.ssh-home .ssh-hero-extras:hover, .ssh-home .ssh-hero-extras:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.ssh-home .extras-wordmark { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.ssh-home .extras-wordmark .extras-final-s { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; letter-spacing: 0; }
.ssh-home .ssh-hero-extras__mark { font-size: clamp(1.35rem, 2.5vw, 2.3rem); }
.ssh-home .ssh-hero-extras__by, .ssh-home .ssh-tile-extras__by { margin-top: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ssh-home .ssh-hero-extras__text { margin-top: auto; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.ssh-home .ssh-hero-extras__go, .ssh-home .ssh-tile-extras__go {
	display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink);
	font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ssh-home .ssh-hero-extras__go span, .ssh-home .ssh-tile-extras__go span { transition: transform .3s var(--ease); }
.ssh-home .ssh-hero-extras:hover .ssh-hero-extras__go, .ssh-home .ssh-tile-extras:hover .ssh-tile-extras__go { background: var(--red); color: #fff; }
.ssh-home .ssh-hero-extras:hover .ssh-hero-extras__go span, .ssh-home .ssh-tile-extras:hover .ssh-tile-extras__go span { transform: translateX(4px); }
@media (max-width: 520px) {
	.ssh-home .ssh-hero-extras__text { font-size: .95rem; }
	.ssh-home .ssh-hero-extras__go { min-height: 34px; padding: 0 12px; font-size: 11px; }
}

/* ---------- Trust strip: link item ---------- */
.ssh-home .ssh-usp-link { display: flex; align-items: center; gap: 14px; color: inherit; border-radius: 10px; }
.ssh-home .ssh-usp-link svg { width: 30px; height: 30px; flex: none; color: var(--ink); }
.ssh-home .ssh-usp-link strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.ssh-home .ssh-usp-link span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.ssh-home .ssh-usp-link:hover strong { color: var(--red); }

/* ---------- Shop the range ---------- */
.ssh-home .ssh-range { padding-bottom: clamp(24px, 4vw, 48px); }
.ssh-home .ssh-range__grid .wsf-vibe { aspect-ratio: 4 / 5; }
.ssh-home .wsf-vibe__img { object-position: center bottom; }
.ssh-home .ssh-tile-extras { background: var(--ink); color: #fff; justify-content: flex-start; gap: 6px; }
.ssh-home .ssh-tile-extras__mark { font-size: clamp(1.25rem, 2.1vw, 2rem); }
.ssh-home .ssh-tile-extras__text { margin-top: 14px; font-size: clamp(.85rem, 1.15vw, 1.05rem); line-height: 1.4; color: rgba(255, 255, 255, .86); max-width: 24ch; }
.ssh-home .ssh-tile-extras__go { margin-top: auto; align-self: flex-start; }
.ssh-home .ssh-tile-extras:hover, .ssh-home .ssh-tile-extras:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
@media (max-width: 520px) {
	.ssh-home .ssh-tile-extras__text { display: none; }
	.ssh-home .ssh-tile-extras__go { min-height: 34px; padding: 0 12px; font-size: 11px; }
}

/* Even rows of tiles: the EXTRAS tile fills whatever is left of the last row.
   --d0 / --p0: the other tiles fill whole rows, so EXTRAS runs full width underneath as a band. */
@media (min-width: 800px) {
	.ssh-home .ssh-range--d0 > li:last-child { grid-column: 1 / -1; }
	.ssh-home .ssh-range--d0 .ssh-tile-extras { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 32px; padding: clamp(22px, 3vw, 36px) clamp(22px, 3.2vw, 44px); }
	.ssh-home .ssh-range--d0 .ssh-tile-extras__mark { grid-column: 1; grid-row: 1; }
	.ssh-home .ssh-range--d0 .ssh-tile-extras__by { grid-column: 1; grid-row: 2; }
	.ssh-home .ssh-range--d0 .ssh-tile-extras__text { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 46ch; }
	.ssh-home .ssh-range--d0 .ssh-tile-extras__go { grid-column: 3; grid-row: 1 / span 2; margin: 0; align-self: center; white-space: nowrap; }
	.ssh-home .ssh-range--d1 > li:last-child { grid-column: span 3; }
	.ssh-home .ssh-range--d2 > li:last-child { grid-column: span 2; }
	.ssh-home .ssh-range--d1 .ssh-tile-extras, .ssh-home .ssh-range--d2 .ssh-tile-extras { aspect-ratio: auto; height: 100%; }
	.ssh-home .ssh-range--d1 .ssh-tile-extras__text, .ssh-home .ssh-range--d2 .ssh-tile-extras__text { max-width: 40ch; }
}
@media (max-width: 799px) {
	.ssh-home .ssh-range--p0 > li:last-child { grid-column: 1 / -1; }
	.ssh-home .ssh-range--p0 .ssh-tile-extras { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 16px; padding: 22px 20px; }
	.ssh-home .ssh-range--p0 .ssh-tile-extras__mark { grid-column: 1; grid-row: 1; }
	.ssh-home .ssh-range--p0 .ssh-tile-extras__by { grid-column: 1; grid-row: 2; }
	.ssh-home .ssh-range--p0 .ssh-tile-extras__text { display: block; grid-column: 1 / -1; grid-row: 3; margin: 10px 0 0; font-size: .9rem; max-width: 46ch; }
	.ssh-home .ssh-range--p0 .ssh-tile-extras__go { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; white-space: nowrap; }
}

/* Longer department names ("Games & Party") must not run under the round arrow on narrow screens. */
.ssh-home .ssh-range__grid .wsf-vibe__label { padding-right: 44px; }
@media (max-width: 520px) {
	.ssh-home .ssh-range__grid .wsf-vibe__label { padding-right: 38px; font-size: 1.02rem; }
	.ssh-home .ssh-range__grid .wsf-vibe__go { width: 30px; height: 30px; font-size: 14px; }
}

/* ---------- About page: four value cards when EXTRAS is live ---------- */
@media (min-width: 800px) { .ssh-home .wsf-values__grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.ssh-home .wsf-about-hero__lead + .wsf-about-hero__lead { margin-top: -6px; }

/* ---------- Sections that sit between white and cream ---------- */
.ssh-home .ssh-extras { background: #fff; border-top: 1px solid var(--line); }
.ssh-home .ssh-extras .wsf-eyebrow .extras-wordmark { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.ssh-home .ssh-extras .wsf-eyebrow .extras-final-s { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Amazon band ---------- */
.ssh-home .ssh-amazon { padding-block: clamp(8px, 2vw, 20px) clamp(8px, 2vw, 16px); }
.ssh-home .ssh-amazon__box {
	display: grid; gap: 18px 28px; align-items: center; padding: clamp(22px, 3.6vw, 44px);
	background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-xl);
}
.ssh-home .ssh-amazon__badge { display: flex; align-items: center; justify-content: flex-start; min-height: 46px; color: var(--ink); }
.ssh-home .ssh-amazon__badge svg { width: 44px; height: 44px; flex: none; }
.ssh-home .ssh-amazon__img { width: auto; height: 46px; max-width: 160px; object-fit: contain; }
.ssh-home .ssh-amazon__copy { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ssh-home .ssh-amazon__copy .wsf-h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-top: 2px; }
.ssh-home .ssh-amazon__copy p:not(.wsf-eyebrow) { font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.5; color: #3f3b36; max-width: 52ch; margin-top: 4px; }
.ssh-home .ssh-amazon__btn { justify-self: start; }
@media (min-width: 900px) {
	.ssh-home .ssh-amazon__box { grid-template-columns: auto 1fr auto; }
	.ssh-home .ssh-amazon__btn { justify-self: end; }
}
