/*
Theme Name: Flatsome Child — Hulok
Description: Hulok child theme for Flatsome. Team pages, sport category grids, /{sport}/{team}/ permalinks.
Author: Hulok
Template: flatsome
Version: 1.0.0
*/

/* ═════════════════════════════════════════════════════════════════
   Glass header — the v29 look, applied to Flatsome's native header
   so cart / account / menus keep working.

   Team pages: dark glass floating over the hero room color.
   Category pages: light glass, sticky over the cream grid.
   ═════════════════════════════════════════════════════════════════ */

/* ── Team pages: dark glass over the hero ── */
body.hulok-team-page #header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 40;
	background: transparent;
	box-shadow: none;
}
body.hulok-team-page #header .header-wrapper,
body.hulok-team-page #header .header-main {
	background: #000000 !important;
	box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.12);
}
body.hulok-team-page #header .header-main .nav > li > a,
body.hulok-team-page #header .header-main .nav > li > button,
body.hulok-team-page #header .header-main a,
body.hulok-team-page #header .header-main .icon-search,
body.hulok-team-page #header .header-main i {
	color: #ffffff !important;
}
body.hulok-team-page #header .header-main .nav > li > a:hover {
	color: rgba(255, 255, 255, 0.75) !important;
}
/* Header floats over the hero, so no top gap under it */
body.hulok-team-page #wrapper {
	padding-top: 0;
}

/* ── Category pages: same dark glass, sticky (white wordmark logo
      needs a dark header everywhere) ── */
body.hulok-category-page #header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: transparent;
	box-shadow: none;
}
body.hulok-category-page #header .header-wrapper,
body.hulok-category-page #header .header-main {
	background: #000000 !important;
	box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.12);
}
body.hulok-category-page #header .header-main .nav > li > a,
body.hulok-category-page #header .header-main a,
body.hulok-category-page #header .header-main i {
	color: #ffffff !important;
}

/* ═══ Rainbow bar: full 9px visible above the header (the absolute
      header was covering it) ═══ */
body.hulok-team-page .rainbow-bar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
}
body.admin-bar.hulok-team-page .rainbow-bar { top: 32px; }
body.hulok-team-page #header { top: 9px; } /* sit below the bar */
@media screen and (max-width: 782px) {
	body.admin-bar.hulok-team-page .rainbow-bar { top: 46px; }
}

/* ═══ Logo size ═══ */
body.hulok-team-page #header #logo img,
body.hulok-category-page #header #logo img {
	max-height: 34px;
	width: auto;
}

/* ═══ Flatsome style-bleed resets on the team page ═══ */

/* Product title + subtitle follow the room's adaptive ink (white on
   dark rooms, near-black on light), not Flatsome's heading grey */
body.hulok-team-page.v6 .panel-title,
body.hulok-team-page.v6 .panel-sub {
	color: var(--hero-ink, #ffffff) !important;
}

/* Flatsome gives <button> margins, min-heights, and 2.4em line-height —
   neutralize ALL of it inside the team page so pills and chips render
   at prototype size */
body.hulok-team-page.v6 button {
	margin: 0;
	min-height: 0;
	height: auto;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}

/* Front/Back pill: buttons centered */
body.hulok-team-page.v6 .face-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
body.hulok-team-page.v6 .face-toggle .face-btn {
	margin: 0;
	min-height: 0;
	height: auto;
	line-height: 1.2;
	padding: 7px 18px;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Upload chip row: wrap inside the glass panel instead of overflowing
   (item 7) */
body.hulok-team-page.v6 .panel-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
body.hulok-team-page.v6 .panel-upload-text {
	min-width: 0;
	flex: 1 1 160px;
}
body.hulok-team-page.v6 .panel-upload-text .panel-upload-title,
body.hulok-team-page.v6 .panel-upload-text .panel-upload-sub {
	display: block;
	white-space: normal;
}
body.hulok-team-page.v6 .panel-upload-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	justify-content: flex-end;
}

/* Flatsome content wrappers shouldn't pad the full-bleed templates */
body.hulok-team-page #main,
body.hulok-category-page #main {
	padding: 0;
	background: transparent;
}

@media only screen and (max-width: 48em) {
	/* Mobile-only adjustments land here during QA round two. */
}


/* ═══ "See all colorways": the case stays pinned at the top while the
      expanded panel scrolls (the hero grid was vertically centering,
      so a tall panel slid the case down the page) ═══ */
@media (min-width: 850px) {
	body.hulok-team-page.v6 .hero {
		align-items: flex-start;
	}
	body.hulok-team-page.v6 .hero-stage {
		position: sticky;
		top: 100px;
	}
}

/* ═══ Preview-your-card chips: locked inside the glass panel ═══ */
body.hulok-team-page.v6 .panel-upload {
	min-width: 0;
	overflow: hidden;
}
body.hulok-team-page.v6 .panel-upload-btns .panel-chip-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}


/* ═══ Quantity stepper: +/- and the number on one centerline ═══ */
body.hulok-team-page.v6 .qty-stepper {
	display: inline-flex;
	align-items: center;
}
body.hulok-team-page.v6 .qty-btn {
	margin: 0;
	min-height: 0;
	width: 36px;
	height: 36px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
body.hulok-team-page.v6 .qty-value {
	line-height: 1;
	display: inline-block;
}

/* ═══ Preview-your-card panel: text keeps its width, chips wrap inside
      the box instead of escaping it ═══ */
body.hulok-team-page.v6 .panel-upload {
	flex-wrap: wrap;
}
body.hulok-team-page.v6 .panel-upload-text {
	flex: 1 1 150px;
	min-width: 0;
}
body.hulok-team-page.v6 .panel-upload-btns {
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: 100%;
}
