/* Rounded corners on the product gallery image */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
	border-radius: 20px;
	overflow: hidden;
}

.single-product .woocommerce-product-gallery__image img {
	border-radius: 20px;
}

/* Breadcrumb removed: the category chip under the photo is clickable and
 * covers the same navigation, so the top-of-page links are redundant. */
.wp-block-woocommerce-breadcrumbs {
	display: none;
}

/* SKU + Category, restyled from plain text into bubble chips (matching the
 * COA badge look). This is WooCommerce's own Product Meta block, not our
 * markup, so it's targeted by its own class names. product-page-layout.js
 * moves this block into the gallery's column so it renders directly under
 * the photo (in a single row) instead of at the bottom of the page. The COA
 * badge (below) is appended into this same row by the same script, so it
 * reads as one unified chip row instead of a separate badge above it. */
.wp-block-woocommerce-product-meta {
	margin: 16px 0 0;
}

.wp-block-woocommerce-product-meta .wp-block-group {
	flex-wrap: wrap;
	flex-direction: row !important;
	align-items: center;
	gap: 10px !important;
}

/* The COA badge, once product-page-layout.js has moved it into the chip row
 * above: drop its own spacing/sizing (set for when it stood alone in the
 * summary column) so it reads as a same-height chip, not an oversized one.
 * Its cyan tint (set in product-lab-data.css) is kept so it still reads as a
 * distinct trust signal among the plainer SKU/Category chips. */
.rineova-coa-badge--chip {
	margin: 0;
	padding: 7px 14px;
	font-size: 12.5px;
}

/* The Documentation card, once moved into the gallery column below the chip
 * row: it previously capped its width for the (wider) summary column, and
 * carried vertical margin on both sides for when it sat between other
 * summary content. Here it should fill the narrower gallery column and only
 * need space above it. */
.rineova-documentation--in-gallery {
	margin: 16px 0 0;
	width: 100%;
	max-width: none;
}

/* Trust row: fills the space the COA badge/Documentation card used to
 * occupy in the summary column now that both have moved into the gallery
 * column above. */
.rineova-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 22px 0 4px;
}

.rineova-trust-row__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #33475B;
}

.rineova-trust-row__item svg {
	flex-shrink: 0;
	color: #2E6EDB;
}

.wp-block-woocommerce-product-meta .product_meta,
.wp-block-woocommerce-product-meta .taxonomy-product_cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #EAF6FA;
	border: 1px solid #71CDE3;
	font-size: 12.5px;
	font-weight: 600;
	color: #0B2347;
	white-space: nowrap;
}

.wp-block-woocommerce-product-meta .wp-block-post-terms__prefix {
	color: #5B7290;
	font-weight: 600;
	margin-right: 2px;
}

.wp-block-woocommerce-product-meta .taxonomy-product_cat a {
	color: #2E6EDB;
	text-decoration: none;
	font-weight: 700;
}

.wp-block-woocommerce-product-meta .taxonomy-product_cat a:hover {
	color: #0B2347;
	text-decoration: underline;
}

/* Description section, in place of the Description/Additional info/Reviews
 * tabs. Rendered in the summary column (via woocommerce_single_product_summary,
 * priority 33 — see Rineova_Labs_Product_Page_Layout::init()), just under the
 * price/trust row, so it takes the column's width rather than the old
 * bottom-of-page two-column grid. */
.rineova-description {
	margin: 18px 0 20px;
	max-width: none;
}

.rineova-description__title {
	font-size: 22px;
	font-weight: 700;
	color: #0B2347;
	margin: 0 0 12px;
}

.rineova-description__body {
	font-size: 15px;
	line-height: 1.75;
	color: #33475B;
}

.rineova-description__body p {
	margin: 0 0 14px;
}

.rineova-description__body p:last-child {
	margin-bottom: 0;
}

/* Breathing room before the footer on single product pages */
body.single-product div.product {
	padding-bottom: 48px;
}

/* Shared by any section that renders full width below the summary row
 * (Specifications, Research & Handling): these render as plain siblings of
 * <main> (the Product Details block they appear to nest inside in the
 * template source is already closed by the time these hooks fire), so
 * without their own alignment they inherit the theme's constrained-layout
 * centering at content-size instead of the wide-size the gallery/summary
 * row above uses — same wide-vs-constrained centering as the shop header's
 * alignwide gotcha. Match "alignwide" explicitly so their left edge lines
 * up with the photo. */
.rineova-full-width-section {
	max-width: var( --wp--style--global--wide-size, 1200px );
	margin-left: auto;
	margin-right: auto;
}

/* The main price (above Add to Cart) swaps to the selected variation's
 * price instead — WooCommerce's own small secondary price stays hidden. */
.woocommerce-variation-price {
	display: none;
}


/* "N customer reviews" link next to the star rating: brand pill instead of
 * WooCommerce's default plain blue underlined text. Offsets the #reviews
 * scroll target by the sticky header's height so the section isn't hidden
 * underneath it when the link is clicked. */
.rineova-reviews {
	scroll-margin-top: 96px;
}

.woocommerce-review-link {
	display: inline-flex;
	align-items: center;
	background-color: var(--rivenova-pale-blue, #eaf1f8);
	color: var(--rivenova-navy, #0b2347);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.woocommerce-review-link:hover,
.woocommerce-review-link:focus-visible {
	background-color: var(--rivenova-cobalt, #2e6edb);
	color: #fff;
}
