/* Shop page only. Loaded after the front-page styles. */

.shop-page {
	color: #1a1a1a;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 1.05rem;
	line-height: 1.45;
	padding: 0 0 6.5rem;
}

.shop-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.75rem 1rem 2rem;
	background: #fff;
	color: #1a1a1a;
}

.shop-page h1 {
	font-family: Righteous, sans-serif;
	font-weight: normal;
	color: #c82333;
	text-align: center;
	font-size: clamp(1.45rem, 5.4vw, 2.05rem);
	line-height: 1.2;
	margin: 0.35rem 0 0.55rem;
}

.shop-support {
	text-align: center;
	font-weight: 700;
	margin: 0 auto 1rem;
	max-width: 40rem;
}

.shop-page h2 {
	font-family: Righteous, sans-serif;
	font-weight: normal;
	font-style: normal;
	color: #1a1a1a;
	text-align: left;
	font-size: 1.55rem !important;
	line-height: 1.2 !important;
	padding: 0;
	margin: 0 0 0.75rem;
}

.shop-page h2::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin-top: 0.35rem;
	background: #ff004f;
}

.shop-page h3 {
	font-family: Righteous, sans-serif;
	font-weight: normal;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0.65rem 0 0.25rem;
}

.shop-page a {
	color: #c82333;
	text-decoration: underline;
}

.shop-page a:hover,
.shop-page a:focus {
	color: #a71d2a;
}

.shop-page a.btn,
.shop-page a.btn:hover,
.shop-page a.btn:focus {
	text-decoration: none;
}

.info-card {
	border: 2px solid #ff004f;
	border-radius: 12px;
	padding: 0.9rem 1rem 0.4rem;
	margin: 0 0 1rem;
	background: #fff;
}

.shop-page ul.shop-facts {
	color: #1a1a1a;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 0.9rem;
	padding-left: 1.2rem;
}

.shop-page ul.shop-facts li {
	color: #1a1a1a;
	font-size: 1rem;
	font-weight: 400;
	list-style: disc;
	margin: 0.35rem 0;
}

.info-card__actions {
	margin: 0.2rem 0 0.85rem;
}

.info-card__mail {
	margin: 0.55rem 0 0;
	font-size: 0.95rem;
	color: #333;
}

.shop-jump {
	position: sticky;
	top: 46px;
	z-index: 0;
	margin: 0 0 1.1rem;
	padding: 0.55rem 0.75rem;
	background: #fff5f7;
	border: 1px solid #f3d0d8;
	border-radius: 8px;
	text-align: center;
	font-weight: 700;
}

.shop-jump a {
	text-decoration: none;
	padding: 0.35rem 0.2rem;
}

.shop-jump__sep {
	color: #999;
	font-weight: 400;
	margin: 0 0.35rem;
}

.product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.product-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #eadfe2;
	border-radius: 12px;
	padding: 0.75rem;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.product-badge {
	align-self: flex-start;
	margin: 0 0 0.45rem;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	background: #ff004f;
	color: #fff;
	font-family: "Roboto Condensed", sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.product-card .lightbox-link {
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	color: inherit;
	background: #f6f6f6;
	border-radius: 8px;
	overflow: hidden;
}

.product-card .lightbox-link:focus {
	outline: 2px solid #ff004f;
	outline-offset: 2px;
}

.product-card img {
	display: block;
	height: auto;
}

.product-card img.is-mockup {
	width: 100%;
	max-width: 300px;
}

.product-card img.is-photo {
	width: 100%;
	max-width: 900px;
}

.product-price {
	margin: 0.15rem 0 0.2rem;
	color: #c82333;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.1;
}

.product-offer {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	color: #333;
}

.product-specs {
	display: grid;
	grid-template-columns: 6.6rem 1fr;
	gap: 0.28rem 0.55rem;
	margin: 0.45rem 0 0.85rem;
	font-size: 0.95rem;
}

.product-specs dt {
	margin: 0;
	font-weight: 700;
	color: #444;
}

.product-specs dd {
	margin: 0;
}

.product-card .js-add-product {
	margin-top: auto;
}

.product-note {
	margin: 0.85rem 0 0;
	text-align: center;
	color: #555;
	font-size: 0.92rem;
}

.order-panel {
	margin-top: 1.75rem;
	padding-top: 0.25rem;
}

.order-line {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 0.75rem 0.75rem 0.15rem;
	margin-bottom: 0.75rem;
	background: #fafafa;
}

.order-line__remove {
	display: flex;
	align-items: flex-end;
}

.order-line__remove .btn {
	margin-bottom: 1rem;
}

.delivery-choice {
	border: 0;
	margin: 0 0 1rem;
	padding: 0;
	min-width: 0;
}

.delivery-choice legend {
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.4rem;
	padding: 0;
}

.delivery-option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0 0 0.45rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	background: #fff;
	font-weight: 400;
	cursor: pointer;
}

.delivery-option input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

.address-block {
	display: none;
	margin-bottom: 0.25rem;
	padding: 0.15rem 0 0;
}

#shop-order-form.is-post .address-block,
#shop-order-form:has(#delivery-post:checked) .address-block {
	display: block;
}

.order-total {
	margin: 0.4rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 2px solid #ff004f;
	border-radius: 10px;
	background: #fff5f7;
}

.order-total p {
	margin: 0.2rem 0;
}

.order-total__grand {
	font-size: 1.25rem;
	font-weight: 700;
	color: #c82333;
}

.order-hint {
	margin: 0.55rem 0 0;
	color: #555;
	font-size: 0.92rem;
}

.shop-guides {
	margin: 1.25rem 0 0;
	text-align: center;
	font-size: 0.95rem;
}

.shop-page .btn-primary {
	background-color: #ff004f;
	border-color: #c82333;
	color: #fff;
	font-weight: 700;
}

.shop-page .btn-primary:hover,
.shop-page .btn-primary:focus {
	background-color: #c82333;
	border-color: #a71d2a;
	color: #fff;
}

.shop-page .btn-primary:disabled {
	background-color: #e7a0ae;
	border-color: #e7a0ae;
}

.shop-page .btn-add-line {
	background: #fff;
	color: #c82333;
	border: 2px solid #ff004f;
	font-weight: 700;
}

.shop-page .btn-add-line:hover,
.shop-page .btn-add-line:focus {
	background: #fff5f7;
	color: #a71d2a;
}

.shop-page .form-control:focus {
	border-color: #ff004f;
	box-shadow: 0 0 0 0.2rem rgba(255, 0, 79, 0.22);
}

.shop-page :focus-visible {
	outline: 2px solid #ff004f;
	outline-offset: 2px;
}

#paidat,
#tilaa,
#kurssipaita {
	scroll-margin-top: 6.5rem;
}

#kurssipaita:target {
	outline: 3px solid #ff004f;
	outline-offset: 4px;
}

.shop-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.86);
}

.shop-lightbox[hidden] {
	display: none !important;
}

.shop-lightbox__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.35rem 0.8rem;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	font-weight: 700;
	cursor: pointer;
}

.shop-lightbox__figure {
	margin: 0;
	max-width: 100%;
	text-align: center;
}

.shop-lightbox img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 78vh;
	margin: 0 auto;
	background: #fff;
}

.shop-lightbox__caption {
	margin: 0.55rem 0 0;
	color: #fff;
	font-size: 1rem;
}

body.shop-lightbox-open {
	overflow: hidden;
}

@media (min-width: 700px) {
	.product-grid {
		grid-template-columns: 1fr 1fr;
	}

	.shop-wrap {
		margin: 1rem auto 1.25rem;
		border-radius: 16px;
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	}
}

@media (min-width: 1100px) {
	.product-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 575px) {
	.order-line__remove .btn {
		width: 100%;
		margin-top: 0.15rem;
	}

	#shop-order-submit,
	#add-line,
	.info-card__actions .btn {
		width: 100%;
	}
}

/* Club logo, same as Oppaat pages */
.guide-logo {
	display: block;
	width: 128px;
	height: 128px;
	margin: 0 auto;
	flex-shrink: 0;
	filter: brightness(0) saturate(100%);
}

.guide-logo-home {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0.85em auto 1em;
	line-height: 0;
	text-align: center;
}

@media (min-width: 700px) {
	.guide-logo {
		width: 140px;
		height: 140px;
	}
}

/* Top-bar breadcrumb, same as Oppaat pages */
.shop-body #site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.shop-body #site-nav > label {
	order: 1;
	flex: 0 0 auto;
}

.shop-body .nav-crumb {
	order: 2;
	/* Basis 0 so a long nowrap crumb does not claim the row and wrap the flags. */
	flex: 1 1 0%;
	min-width: 0;
	margin: 0;
	padding: 0.15rem 0.35rem;
	padding-left: 5px;
	color: #fff;
	font-family: "Roboto Condensed", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.2;
	text-align: left;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.shop-body .nav-crumb a,
.shop-body .nav-crumb [aria-current="page"] {
	color: #fff;
	white-space: nowrap;
}

.shop-body .nav-crumb a {
	text-decoration: underline;
	text-underline-offset: 1px;
}

.shop-body .nav-crumb a:hover,
.shop-body .nav-crumb a:focus {
	color: #fff;
	opacity: 0.85;
}

.shop-body .nav-crumb [aria-current="page"] {
	font-weight: 700;
	text-decoration: none;
}

.shop-body .nav-crumb__sep {
	display: inline-block;
	margin: 0 0.28em;
	opacity: 0.9;
}

.shop-body #site-nav-menu {
	order: 4;
	flex: 1 0 100%;
}

@media print {
	.nav-crumb {
		display: none !important;
	}
}
