/*
 * Single product page, styled to match the Shop design (red pattern, white panel, red/gold accents).
 * No Figma frame exists for this page, so the look is inferred from the Shop frame.
 * The theme sets html font-size to 10px, so rem values are scaled for a 10px base.
 */
.single-product .site-main {
	/* Same wallpaper as the Shop page and the other pages' repeated parallax cover. */
	background-color: var(--red);
	background-image: url(../../img/gwalia-text.svg);
	background-repeat: repeat;
	background-size: auto;
	background-position: 50% 50%;
	background-attachment: fixed;
	padding: 4.8rem 2.4rem 8rem;
}

.single-product .woocommerce-breadcrumb {
	max-width: 120rem;
	margin: 0 auto 1.6rem;
	color: #fff;
	font-size: 1.4rem;
}

.single-product .woocommerce-breadcrumb a {
	color: var(--shop-gold, #F8B053);
}

.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	gap: 3.2rem;
	max-width: 120rem;
	margin: 0 auto;
	padding: 3.2rem;
	background: #fff;
	color: #2c2c2c;
}

.single-product div.product .woocommerce-product-gallery {
	flex: 1 1 36rem;
	max-width: 52rem;
	margin: 0;
}

.single-product div.product .woocommerce-product-gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.single-product div.product .summary {
	flex: 1 1 36rem;
}

.single-product .product_title {
	font-family: BebasKai, sans-serif;
	font-size: clamp(3.6rem, 5vw, 5.6rem);
	line-height: 1;
	text-transform: uppercase;
	color: var(--shop-red, #A72114);
	margin: 0 0 1.2rem;
}

.single-product .summary .price {
	font-family: BebasKai, sans-serif;
	font-size: 2.8rem;
	color: #2c2c2c;
	margin: 0 0 1.6rem;
}

.single-product table.variations {
	width: 100%;
	margin: 0 0 1.6rem;
	border: 0;
}

/* WooCommerce lays variations out as a two-column table; stacking label over select suits the narrow summary column. */
.single-product table.variations th,
.single-product table.variations td {
	display: block;
	padding: 0;
	text-align: left;
	border: 0;
}

.single-product table.variations label {
	font-family: BebasKai, sans-serif;
	font-size: 1.8rem;
	text-transform: uppercase;
	color: var(--shop-red, #A72114);
}

.single-product table.variations select {
	width: 100%;
	max-width: 32rem;
	padding: 1rem 1.2rem;
	margin: 0.4rem 0 1.2rem;
	border: 1px solid var(--shop-red, #A72114);
	border-radius: 0;
	background: #fff;
	font-size: 1.6rem;
}

.single-product .reset_variations {
	color: var(--shop-red, #A72114);
	font-size: 1.4rem;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
	display: flex;
	align-items: stretch;
	gap: 1.2rem;
	margin-top: 1.2rem;
}

.single-product .quantity input.qty {
	width: 8rem;
	padding: 1rem;
	border: 1px solid var(--shop-red, #A72114);
	border-radius: 0;
	font-size: 1.6rem;
	text-align: center;
}

.single-product .single_add_to_cart_button {
	background: var(--shop-red, #A72114);
	color: #fff;
	border: 1px solid var(--shop-red, #A72114);
	border-radius: 0;
	padding: 1rem 2.8rem;
	font-family: BebasKai, sans-serif;
	font-size: 2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.single-product .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:focus-visible {
	background: var(--shop-gold, #F8B053);
	border-color: var(--shop-gold, #F8B053);
	color: #2c2c2c;
}

/* WooCommerce adds .disabled until a size and colour are chosen; fade it so it reads as not yet available. */
.single-product .single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* The tabs drop below the gallery and summary on their own row. (product_meta is also removed in PHP.) */
.single-product .product_meta,
.single-product .woocommerce-tabs {
	flex-basis: 100%;
}

.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 2.4rem;
	list-style: none;
	margin: 0 0 1.6rem;
	padding: 0;
	border-bottom: 1px solid var(--shop-red, #A72114);
}

.single-product .woocommerce-tabs ul.tabs a {
	font-family: BebasKai, sans-serif;
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--shop-red, #A72114);
	text-decoration: none;
}

@media (max-width: 48rem) {
	.single-product .site-main {
		padding: 2.4rem 1.2rem 4rem;
	}

	.single-product div.product {
		padding: 1.6rem;
	}
}
