/**
 * Default single product page (normal shop products).
 *
 * The plate and pre-owned plate pages are rendered and styled entirely
 * by the DVLA plugin; everything here is scoped to .bpp-product, the
 * wrapper printed by woocommerce/content-single-product.php, so it
 * cannot leak into plugin-rendered screens.
 */

.bpp-product {
	max-width: var(--bp-container);
	margin: 0 auto;
	padding: var(--bp-s6) var(--bp-s5) var(--bp-s8);
	font-family: var(--bp-font);
}

.bpp-product__crumb { margin-bottom: var(--bp-s5); }
.bpp-product__crumb a {
	font-size: var(--bp-text-sm);
	font-weight: 500;
	color: var(--bp-muted);
	text-decoration: none;
}
.bpp-product__crumb a:hover { color: var(--bp-navy); }

/* ---- Top: gallery + summary ---- */
.bpp-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: var(--bp-s6);
	align-items: start;
}

/* Gallery card */
.bpp-product__gallery { padding: var(--bp-s4); position: relative; }
.bpp-product__gallery .woocommerce-product-gallery { margin: 0; }
.bpp-product__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.bpp-product__gallery .woocommerce-product-gallery__image img {
	border-radius: var(--bp-radius);
	width: 100%;
	height: auto;
}
.bpp-product__gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bp-s2);
	margin: var(--bp-s3) 0 0;
	padding: 0;
	list-style: none;
}
.bpp-product__gallery .flex-control-thumbs li {
	width: 76px;
	margin: 0;
}
.bpp-product__gallery .flex-control-thumbs img {
	border-radius: var(--bp-radius-sm);
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--bp-fast) var(--bp-ease), border-color var(--bp-fast) var(--bp-ease);
}
.bpp-product__gallery .flex-control-thumbs img:hover,
.bpp-product__gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--bp-royal);
}
.bpp-product .onsale {
	position: absolute;
	top: var(--bp-s4);
	left: var(--bp-s4);
	z-index: 9;
	background: var(--bp-red);
	color: var(--bp-white);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: var(--bp-radius-pill);
	padding: 6px 14px;
	min-height: 0;
	min-width: 0;
	line-height: 1.4;
}

/* Summary card */
.bpp-product__summary .product_title {
	font-size: var(--bp-text-2xl);
	font-weight: 700;
	color: var(--bp-navy);
	line-height: var(--bp-leading-tight);
	margin: 0 0 var(--bp-s3);
}
.bpp-product__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: var(--bp-s2);
	margin-bottom: var(--bp-s3);
}
.bpp-product .star-rating span::before,
.bpp-product .star-rating::before { color: #f59e0b; }
.bpp-product__summary .price {
	display: block;
	font-size: var(--bp-text-2xl);
	font-weight: 800;
	color: var(--bp-navy);
	margin: 0 0 var(--bp-s4);
}
.bpp-product__summary .price del {
	font-size: var(--bp-text-lg);
	font-weight: 500;
	color: var(--bp-muted);
	margin-right: var(--bp-s2);
}
.bpp-product__summary .price ins { text-decoration: none; color: var(--bp-red); }
.bpp-product__summary .woocommerce-product-details__short-description {
	color: var(--bp-text-soft);
	line-height: var(--bp-leading-normal);
	margin-bottom: var(--bp-s5);
}

/* Add to cart */
.bpp-product__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bp-s3);
	align-items: stretch;
	margin-bottom: var(--bp-s5);
}
.bpp-product__summary form.cart .quantity {
	display: flex;
}
.bpp-product__summary form.cart .qty {
	width: 84px;
	border: 1px solid var(--bp-border-strong);
	border-radius: var(--bp-radius-pill);
	padding: 12px 8px 12px 18px;
	font-family: var(--bp-font);
	font-size: var(--bp-text-base);
	text-align: center;
	color: var(--bp-text);
}
.bpp-product__summary form.cart .qty:focus {
	outline: none;
	border-color: var(--bp-royal);
	box-shadow: 0 0 0 3px var(--bp-royal-soft);
}
.bpp-product__summary form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	background: var(--bp-red);
	color: var(--bp-white);
	border: none;
	border-radius: var(--bp-radius-pill);
	padding: 13px 28px;
	font-family: var(--bp-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--bp-fast) var(--bp-ease), transform var(--bp-fast) var(--bp-ease);
}
.bpp-product__summary form.cart .single_add_to_cart_button:hover {
	background: var(--bp-red-deep);
	transform: translateY(-1px);
}
/* Variations table */
.bpp-product__summary form.cart table.variations { width: 100%; margin-bottom: var(--bp-s3); }
.bpp-product__summary form.cart table.variations td { padding: var(--bp-s2) 0; }
.bpp-product__summary form.cart table.variations label { font-weight: 600; color: var(--bp-navy); font-size: var(--bp-text-sm); }
.bpp-product__summary form.cart table.variations select {
	width: 100%;
	border: 1px solid var(--bp-border-strong);
	border-radius: var(--bp-radius-sm);
	padding: 10px 12px;
	font-family: var(--bp-font);
	color: var(--bp-text);
}
.bpp-product__summary .single_variation_wrap .woocommerce-variation-price .price { margin-bottom: var(--bp-s3); }

/* Meta */
.bpp-product__summary .product_meta {
	border-top: 1px solid var(--bp-border);
	padding-top: var(--bp-s4);
	font-size: var(--bp-text-sm);
	color: var(--bp-muted);
	display: flex;
	flex-direction: column;
	gap: var(--bp-s1);
}
.bpp-product__summary .product_meta a { color: var(--bp-royal); text-decoration: none; }
.bpp-product__summary .product_meta a:hover { color: var(--bp-royal-deep); }

/* Stock */
.bpp-product .stock.in-stock { color: var(--bp-success); font-weight: 600; font-size: var(--bp-text-sm); }
.bpp-product .stock.out-of-stock { color: var(--bp-danger); font-weight: 600; font-size: var(--bp-text-sm); }

/* ---- Tabs ---- */
.bpp-product__after { margin-top: var(--bp-s7); }
.bpp-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: var(--bp-s2);
	list-style: none;
	margin: 0 0 0;
	padding: 0 0 0;
	border-bottom: 2px solid var(--bp-border);
}
.bpp-product .woocommerce-tabs ul.tabs::before,
.bpp-product .woocommerce-tabs ul.tabs::after { display: none; }
.bpp-product .woocommerce-tabs ul.tabs li {
	background: none;
	border: none;
	margin: 0;
	padding: 0;
	border-radius: 0;
}
.bpp-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: var(--bp-s3) var(--bp-s4);
	font-weight: 600;
	font-size: var(--bp-text-sm);
	color: var(--bp-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color var(--bp-fast) var(--bp-ease), border-color var(--bp-fast) var(--bp-ease);
}
.bpp-product .woocommerce-tabs ul.tabs li a:hover { color: var(--bp-navy); }
.bpp-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--bp-navy);
	border-bottom-color: var(--bp-red);
}
.bpp-product .woocommerce-tabs .panel {
	background: var(--bp-white);
	border-radius: 0 0 var(--bp-radius-lg) var(--bp-radius-lg);
	box-shadow: var(--bp-shadow-card);
	padding: var(--bp-s6);
	margin: 0;
	color: var(--bp-text-soft);
	line-height: var(--bp-leading-normal);
}
.bpp-product .woocommerce-tabs .panel h2:first-child { display: none; } /* Woo repeats the tab name */
.bpp-product .woocommerce-tabs .panel h2,
.bpp-product .woocommerce-tabs .panel h3 { color: var(--bp-navy); }

/* ---- Related / upsells ---- */
.bpp-product .related.products,
.bpp-product .upsells.products { margin-top: var(--bp-s7); }
.bpp-product .related.products > h2,
.bpp-product .upsells.products > h2 {
	font-size: var(--bp-text-2xl);
	font-weight: 700;
	color: var(--bp-navy);
	text-align: center;
	margin-bottom: var(--bp-s6);
}
.bpp-product .related.products > h2::after,
.bpp-product .upsells.products > h2::after {
	content: '';
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--bp-red);
	margin: var(--bp-s3) auto 0;
}
.woo-shell ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--bp-s5);
	list-style: none;
	margin: 0;
	padding: 0;
}
.woo-shell ul.products::before,
.woo-shell ul.products::after { display: none; }
.woo-shell ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	background: var(--bp-white);
	border-radius: var(--bp-radius-lg);
	box-shadow: var(--bp-shadow-card);
	padding: var(--bp-s4);
	text-align: left;
	transition: transform var(--bp-fast) var(--bp-ease), box-shadow var(--bp-fast) var(--bp-ease);
}
.woo-shell ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--bp-shadow-card-hover);
}
.woo-shell ul.products li.product img {
	border-radius: var(--bp-radius);
	margin-bottom: var(--bp-s3);
	width: 100%;
	height: auto;
}
.woo-shell ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--bp-text-base);
	font-weight: 600;
	color: var(--bp-navy);
	padding: 0;
	line-height: 1.4;
}
.woo-shell ul.products li.product .price {
	font-size: var(--bp-text-base);
	font-weight: 700;
	color: var(--bp-navy);
	margin: var(--bp-s2) 0 var(--bp-s3);
	display: block;
}
.woo-shell ul.products li.product .button {
	display: inline-block;
	background: var(--bp-navy);
	color: var(--bp-white);
	font-size: var(--bp-text-sm);
	font-weight: 600;
	border-radius: var(--bp-radius-pill);
	padding: 9px 18px;
	margin: 0;
	transition: background var(--bp-fast) var(--bp-ease);
}
.woo-shell ul.products li.product .button:hover { background: var(--bp-royal); }

/* ---- Reviews tab bits ---- */
.bpp-product #reviews .commentlist { list-style: none; margin: 0; padding: 0; }
.bpp-product #reviews .comment_container {
	display: flex;
	gap: var(--bp-s4);
	padding: var(--bp-s4) 0;
	border-bottom: 1px solid var(--bp-border);
}
.bpp-product #reviews .comment_container img.avatar { border-radius: 50%; width: 44px; height: 44px; }
.bpp-product #reviews .comment-text { flex: 1; }
.bpp-product #reviews .meta { font-size: var(--bp-text-sm); color: var(--bp-muted); }
.bpp-product #reviews .meta strong { color: var(--bp-navy); }
.bpp-product #reviews .comment-form input[type="submit"] {
	background: var(--bp-red);
	color: var(--bp-white);
	border: none;
	border-radius: var(--bp-radius-pill);
	padding: 12px 26px;
	font-family: var(--bp-font);
	font-weight: 600;
	cursor: pointer;
}
.bpp-product #reviews .comment-form input[type="submit"]:hover { background: var(--bp-red-deep); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.bpp-product__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.bpp-product { padding: var(--bp-s5) var(--bp-s4) var(--bp-s7); }
	.bpp-product__summary .product_title { font-size: var(--bp-text-xl); }
	.bpp-product .woocommerce-tabs ul.tabs { overflow-x: auto; }
}


/* ================================================================
   Shop / product archives (same stylesheet: the grid card styles
   above are scoped to .woo-shell so they apply here too)
   ================================================================ */
.woo-shell .woocommerce-products-header { margin-bottom: var(--bp-s5); }
.woo-shell .woocommerce-products-header__title {
	font-size: var(--bp-text-3xl);
	font-weight: 700;
	color: var(--bp-navy);
	margin: 0;
}
.woo-shell .woocommerce-products-header__title::after {
	content: '';
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--bp-red);
	margin-top: var(--bp-s3);
}
.woo-shell .term-description {
	color: var(--bp-text-soft);
	max-width: 720px;
	margin-top: var(--bp-s4);
}

.woo-shell .woocommerce-result-count {
	font-size: var(--bp-text-sm);
	color: var(--bp-muted);
	margin: 0 0 var(--bp-s5);
	float: left;
}
.woo-shell .woocommerce-ordering {
	float: right;
	margin: 0 0 var(--bp-s5);
}
.woo-shell .woocommerce-ordering select {
	border: 1px solid var(--bp-border-strong);
	border-radius: var(--bp-radius-pill);
	padding: 9px 36px 9px 16px;
	font-family: var(--bp-font);
	font-size: var(--bp-text-sm);
	color: var(--bp-text);
	background: var(--bp-white);
}
.woo-shell .woocommerce-ordering select:focus {
	outline: none;
	border-color: var(--bp-royal);
	box-shadow: 0 0 0 3px var(--bp-royal-soft);
}

.woo-shell nav.woocommerce-pagination { text-align: center; margin-top: var(--bp-s6); }
.woo-shell nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: var(--bp-s2);
	list-style: none;
	border: none;
	margin: 0;
	padding: 0;
}
.woo-shell nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woo-shell nav.woocommerce-pagination ul li a,
.woo-shell nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--bp-s3);
	border-radius: var(--bp-radius-pill);
	background: var(--bp-white);
	border: 1px solid var(--bp-border);
	color: var(--bp-navy);
	font-weight: 600;
	font-size: var(--bp-text-sm);
	text-decoration: none;
	transition: background var(--bp-fast) var(--bp-ease), color var(--bp-fast) var(--bp-ease);
}
.woo-shell nav.woocommerce-pagination ul li a:hover { background: var(--bp-royal-soft); }
.woo-shell nav.woocommerce-pagination ul li span.current {
	background: var(--bp-navy);
	border-color: var(--bp-navy);
	color: var(--bp-white);
}

/* Sale flash on archive cards */
.woo-shell ul.products li.product .onsale {
	position: absolute;
	top: var(--bp-s3);
	left: var(--bp-s3);
	z-index: 9;
}
.woo-shell ul.products li.product { position: relative; }

/* ---- Empty shop state (mirrors the 404 signature) ---- */
.shop-empty { text-align: center; padding: var(--bp-s8) 0 var(--bp-s9); }
.shop-empty .plate-chip--lg { margin-bottom: var(--bp-s5); }
.shop-empty h2 {
	font-size: var(--bp-text-2xl);
	font-weight: 700;
	color: var(--bp-navy);
	margin: 0 0 var(--bp-s3);
}
.shop-empty p {
	color: var(--bp-muted);
	max-width: 520px;
	margin: 0 auto var(--bp-s6);
	line-height: var(--bp-leading-normal);
}
.shop-empty__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bp-s3);
}
/* When the shop is empty, hide the stray count/ordering chrome */
.woo-shell .woocommerce-no-products-found .woocommerce-result-count,
.woo-shell .woocommerce-no-products-found .woocommerce-ordering { display: none; }


/* ---- Branded no-image state ---- */
.bpp-product__noimage {
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--bp-s4);
	background: var(--bp-canvas);
	border-radius: var(--bp-radius);
}
.bpp-product__noimage-label {
	font-size: var(--bp-text-sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bp-muted);
}

/* ---- Secure note under add to cart ---- */
.bpp-product__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--bp-s2);
	margin-top: var(--bp-s4);
	font-size: var(--bp-text-xs);
	color: var(--bp-muted);
}

/* ---- Inline description section (replaces the Description tab) ---- */
.bpp-product__desc { margin-top: var(--bp-s6); }
.bpp-product__desc h2 {
	font-size: var(--bp-text-xl);
	font-weight: 700;
	color: var(--bp-navy);
	margin: 0 0 var(--bp-s4);
}
.bpp-product__desc h2::after {
	content: '';
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--bp-red);
	margin-top: var(--bp-s3);
}
.bpp-product__desc-body { color: var(--bp-text-soft); line-height: var(--bp-leading-normal); }
.bpp-product__desc-body h2,
.bpp-product__desc-body h3 { color: var(--bp-navy); }

/* ---- Inline reviews section ---- */
.bpp-product__reviews-wrap { margin-top: var(--bp-s6); }
.bpp-product__reviews-wrap .woocommerce-Reviews-title {
	font-size: var(--bp-text-xl);
	font-weight: 700;
	color: var(--bp-navy);
	margin: 0 0 var(--bp-s4);
}

/* Belt and braces: if any plugin re-registers the tab strip, hide it */
.bpp-product .woocommerce-tabs ul.tabs { display: none; }
.bpp-product .woocommerce-tabs .panel { display: none !important; }
