/* -------- Julius Chancer shop redesign v4 -------- */

/* Main shop page title */
.shopMainTitle {
	text-align: center;
}

/* Shop section anchor links and View cart text link */
.shopJump {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	margin: 18px 0 24px;
}

.bodytxt .shopJump a,
.bodytxt .shopJump a:link,
.bodytxt .shopJump a:visited,
.shopCartLink button {
	font: inherit;
	color: #8b1116;
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.bodytxt .shopJump a:hover,
.shopCartLink button:hover {
	text-decoration: underline;
}

.shopCartLink {
	display: inline;
	margin: 0;
}

/* Intro area: PayPal note, UK-only notice and technical note */
.shopIntro {
	text-align: center;
	margin-bottom: 32px;
}

.shopPayment {
	text-align: center;
	margin: 10px auto 16px;
}

.shopPayment p {
	max-width: 620px;
	margin: 0 auto;
	font-size: 0.95em;
}

.shopTechnical {
	max-width: 760px;
	margin: 10px auto 0;
	font-size: 0.82em;
}

.shopNotice {
	max-width: 760px;
	margin: 18px auto 0;
	padding: 14px 18px;
	background: #fffede;
}

/* Main section headings: Books, T-shirts, Posters & Prints, Badges */
.shopSectionTitle {
	margin-top: 34px;
	scroll-margin-top: 20px;
}

.shopSectionNote {
	text-align: center;
	max-width: 820px;
	margin: 12px auto 24px;
}

/* Full-size in-stock product layout */
.shopProduct {
	display: grid;
	grid-template-columns: minmax(180px, 230px) 1fr minmax(210px, 250px);
	gap: 28px;
	align-items: center;
	padding: 28px 0;
}

.shopProductImage {
	text-align: center;
}

.shopProductImage img {
	max-width: 180px;
	width: 100%;
	height: auto;
}

.shopShirtImages img {
	max-width: 260px;
}

.shopProductInfo h2,
.shopAddonInfo h3,
.shopSmallCard h3 {
	margin-top: 0;
}

.shopCallout {
	color: #bc101e;
	font-style: italic;
}

/* Purchase form layout */
.shopProductBuy,
.shopAddonBuy {
	text-align: center;
}

.shopProductBuy form,
.shopAddonBuy form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.shopProductBuy label,
.shopAddonBuy label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	max-width: 240px;
}

.shopProductBuy input[type="text"],
.shopAddonBuy input[type="text"],
.shopProductBuy select {
	box-sizing: border-box;
	width: 100%;
}


/* Add-on product block, e.g. second sketch */
.shopAddon {
	display: grid;
	grid-template-columns: 160px 1fr 230px;
	gap: 24px;
	align-items: center;
	padding: 22px;
	margin: 22px 0 28px;
	background: #f4f4f4;
}

.shopAddonImage {
	text-align: center;
}

.shopAddonImage img {
	max-width: 140px;
	width: 100%;
	height: auto;
}

/* Grid for sold-out / unavailable items */
.shopUnavailableRow {
	display: grid;
	gap: 14px;
	margin: 20px auto 34px;
}

.shopUnavailableRow.cols4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shopUnavailableRow.cols3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shopUnavailableRow.cols1 {
	grid-template-columns: 1fr;
}

/* Compact card used for sold-out / unavailable products */
.shopSmallCard {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 12px;
	background: #f4f4f4;
	text-align: center;
}

.shopSmallCard /* SOLD OUT / OUT OF STOCK status label */
.shopStatus {
	align-self: center;
	margin-bottom: 10px;
}

/* Standard portrait image size for unavailable items */
.shopSmallCard img {
	width: auto;
	max-width: 125px;
	max-height: 150px;
	object-fit: contain;
	margin-bottom: 10px;
}

/* Wider landscape-format images, e.g. single volumes and prints */
.shopSmallCard img.shopWideImage {
	width: 100%;
	max-width: 220px;
	max-height: 170px;
}

/* Extra-wide badge image when it is the only item in the row */
.shopSmallCard img.shopBadgeImage {
	max-width: 280px;
	max-height: 190px;
}

.shopSmallCard h3 {
	font-size: 1em;
	margin: 0 0 6px;
}

.shopSmallCard p {
	font-size: 0.85em;
	margin: 0 0 6px;
}

.shopStatus {
	display: inline-block;
	padding: 4px 7px;
	background: #747474;
	color: white;
	font-size: 0.68em;
	font-weight: bold;
	letter-spacing: 0.03em;
}


.shopDividerAfter {
	border-bottom: 12px solid #dedede;
	margin-bottom: 0;
}

.shopLastItem {
	border-bottom: 0;
}

.productRotate {     /* for rotation of book covers and/or prints */
	transform: rotate(-4deg);
}


/* Shared grey pill-button style for Add to basket and external shop buttons */
.shopBasketButton,
.bodytxt a.shopExternalButton,
.bodytxt a.shopExternalButton:link,
.bodytxt a.shopExternalButton:visited {
	display: inline-block;
	padding: 10px 18px;
	background: #747474;
	color: white;
	text-decoration: none;
	border: 0;
	border-radius: 18px;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.shopBasketButton:hover,
.shopBasketButton:focus,
.bodytxt a.shopExternalButton:hover,
.bodytxt a.shopExternalButton:active {
	background: #000;
	color: white;
}



/* Fourthwall T-shirt section */
.shopShirts {
	text-align: center;
	padding: 28px 0;
}

.shopShirtHero {
	display: block;
	margin: 0 auto 20px;
}

.shopShirtHero img {
	display: block;
	width: auto;
	max-width: min(100%, 760px);
	height: auto;
	margin: 0 auto;
}

.shopShirtText {
	max-width: 620px;
	margin: 0 auto;
}

.shopShirtText h2 {
	margin-top: 0;
}


.shopSectionIntroDivider {
	padding-bottom: 18px;
	border-bottom: 12px solid #dedede;
	margin-bottom: 0;
}



/* Grey separator between products within a section */
.shopItemDivider {
	height: 12px;
	background: #dedede;
	margin: 22px 0;
}

.shopUnavailableBooks {
	border-top: 12px solid #dedede;
	padding-top: 24px;
	margin-top: 0;
}

.shopTshirtsSection {
	padding-bottom: 12px;
}

.shopTshirtsSection + .shopSectionTitle {
	margin-top: 16px;
}

/* Responsive layout adjustments */
@media (max-width: 900px) {
	.shopUnavailableRow.cols4,
	.shopUnavailableRow.cols3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 800px) {
	.shopProduct {
		grid-template-columns: 1fr 1fr;
	}

	.shopProductBuy {
		grid-column: 1 / -1;
	}

	.shopAddon {
		grid-template-columns: 140px 1fr;
	}

	.shopAddonBuy {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.shopProduct,
	.shopAddon {
		display: flex;
		flex-direction: column;
		text-align: center;
	}

	.shopUnavailableRow.cols4,
	.shopUnavailableRow.cols3,
	.shopUnavailableRow.cols1 {
		grid-template-columns: 1fr;
	}

}
