/**
 * GAROE Season Stats Board product page. Layers on top of checkout.css, reusing the
 * same .garoe-checkout scope, tokens and form styles. Only the board preview, the
 * product intro, the description and the specification table are defined here.
 */

/* Tighten the gap above the product and add breathing room before the footer, which
   otherwise sits flush against the content. */
.garoe-checkout.garoe-st {
	margin-top: clamp(-2.5rem, -3vw, -1rem);
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/* Lighter preview pane, so the product reads as a clean, well-lit listing rather
   than a heavy black panel. The images sit at the top, aligned with the product
   title opposite. */
.garoe-checkout.garoe-st .preview-pane {
	background: #f6f6f4;
	color: var(--ink);
	border: 1px solid var(--line);
	box-shadow: 0 22px 50px -34px rgba(0, 0, 0, 0.4);
	gap: 1rem;
	padding: clamp(1.1rem, 2vw, 1.6rem);
}

/* A plain, subtle label above the image. No club colour, since smaller clubs may
   not have one set. */
.garoe-checkout.garoe-st .preview-cap {
	margin: 0;
	color: var(--mist);
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.16em;
	font-size: 0.74rem;
	text-transform: uppercase;
}

/* No club-colour accent bar at the top of the form card on this page. */
.garoe-checkout.garoe-st .form::before {
	display: none;
}

/* The gallery and the fallback board set their own display, so make the hidden
   attribute win over that when JS toggles them. */
.garoe-checkout.garoe-st .st-gallery[hidden],
.garoe-checkout.garoe-st .st-board-wrap[hidden] {
	display: none;
}

/* Cap the main gallery image so a tall board or info graphic still leaves the page
   readable in one screen. */
.garoe-checkout.garoe-st .st-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 66vh;
}

.garoe-checkout.garoe-st .st-gallery__main img {
	width: 100%;
	height: auto;
	max-height: 66vh;
	object-fit: contain;
}

/* Quantity and the Order now button share one row. */
.garoe-checkout.garoe-st .st-buyrow {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 1.3rem 0 0.4rem;
}

.garoe-checkout.garoe-st .st-buyrow__qty label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.garoe-checkout.garoe-st .st-buyrow #garoe-st-order {
	flex: 1;
	min-width: 190px;
	justify-content: center;
}

/* Image gallery: the main product image plus a row of thumbnails. Leads with the
   generic images, then a chosen club's board and info page move to the front. */
.garoe-checkout.garoe-st .st-gallery {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.garoe-checkout.garoe-st .st-gallery__main {
	width: 100%;
	background: var(--paper-2);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.garoe-checkout.garoe-st .st-gallery__main img {
	width: 100%;
	height: auto;
	display: block;
}

.garoe-checkout.garoe-st .st-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.garoe-checkout.garoe-st .st-thumb {
	width: 62px;
	height: 62px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: var(--paper-2);
	cursor: pointer;
	transition: border-color .2s ease, transform .2s ease;
}

.garoe-checkout.garoe-st .st-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.garoe-checkout.garoe-st .st-thumb:hover {
	transform: translateY(-2px);
}

.garoe-checkout.garoe-st .st-thumb.is-active {
	border-color: var(--club-primary);
}

/* Board preview, painted in the selected club's --club-primary. */
.garoe-checkout.garoe-st .st-board-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: clamp(0.6rem, 2vw, 1.4rem) 0;
}

.garoe-checkout.garoe-st .st-board {
	width: min(360px, 100%);
	aspect-ratio: 420 / 297;
	background: var(--club-primary);
	color: #ffffff;
	border-radius: 10px;
	padding: clamp(1rem, 3vw, 1.6rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
	transition: background .35s ease;
}

.garoe-checkout.garoe-st .st-board.is-flash {
	animation: garoe-st-flash .35s ease;
}

@keyframes garoe-st-flash {
	0% { transform: scale(0.985); }
	100% { transform: scale(1); }
}

.garoe-checkout.garoe-st .st-board__crest {
	height: clamp(38px, 8vw, 56px);
	margin-bottom: 0.5rem;
}

.garoe-checkout.garoe-st .st-board__crest img {
	height: 100%;
	width: auto;
	object-fit: contain;
}

.garoe-checkout.garoe-st .st-board__club {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: clamp(1.1rem, 3.4vw, 1.5rem);
	line-height: 1;
	text-align: center;
}

.garoe-checkout.garoe-st .st-board__title {
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 0.62rem;
	opacity: 0.85;
	margin-top: 0.35rem;
}

.garoe-checkout.garoe-st .st-board__grid {
	margin-top: auto;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.garoe-checkout.garoe-st .st-board__grid span {
	height: clamp(14px, 3.4vw, 22px);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.08);
}

/* Product intro, price and description. */
.garoe-checkout.garoe-st .st-intro {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.garoe-checkout.garoe-st .st-intro h2 {
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

.garoe-checkout.garoe-st .st-price {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	color: var(--club-primary);
}

.garoe-checkout.garoe-st .st-desc {
	margin: 1.1rem 0 1.6rem;
}

.garoe-checkout.garoe-st .st-desc p {
	margin: 0 0 0.85rem;
	color: var(--ink);
}

/* Key points as a standout panel, not faint grey text. Fixed brand colours, so it
   never depends on a club having a colour set. */
.garoe-checkout.garoe-st .st-bullets {
	list-style: none;
	margin: 1.3rem 0 0;
	padding: 1.1rem 1.35rem;
	background: #0b0b0c;
	border-radius: 10px;
}

.garoe-checkout.garoe-st .st-bullets li {
	position: relative;
	margin: 0;
	padding: 0.42rem 0 0.42rem 1.75rem;
	color: #ffffff;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
}

.garoe-checkout.garoe-st .st-bullets li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.garoe-checkout.garoe-st .st-bullets li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0.42rem;
	color: #c8a96e;
	font-weight: 800;
}

/* Specification table. */
.garoe-checkout.garoe-st .st-spec {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4rem 0;
	font-size: 0.9rem;
}

.garoe-checkout.garoe-st .st-spec caption {
	text-align: left;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.82rem;
	color: var(--ink);
	padding-bottom: 0.6rem;
}

.garoe-checkout.garoe-st .st-spec th,
.garoe-checkout.garoe-st .st-spec td {
	text-align: left;
	vertical-align: top;
	padding: 0.6rem 0;
	border-top: 1px solid var(--line);
}

.garoe-checkout.garoe-st .st-spec th {
	width: 38%;
	font-weight: 600;
	color: var(--ink);
}

.garoe-checkout.garoe-st .st-spec td {
	color: var(--mist);
}

.garoe-checkout.garoe-st .st-ship-note {
	font-size: 0.82rem;
	color: var(--mist);
	margin: 0.5rem 0 0;
}

.garoe-checkout.garoe-st .garoe-address-open h3 {
	font-size: 1.1rem;
	margin: 1.6rem 0 0.7rem;
}
