/* =========================================================================
   NP Packaging - wc-product.css
   Single product page: gallery, summary, trust card, activity, ask and
   share, buying controls, bundle, modal, tabs, specifications, reviews.
   ========================================================================= */
/* =========================================================================
   Single product
   ========================================================================= */
div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
}

div.product .woocommerce-product-gallery {
	position: relative;
}

div.product .woocommerce-product-gallery__wrapper {
	margin: 0;
}

div.product .woocommerce-product-gallery img {
	width: 100%;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-grey-50);
}

div.product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

div.product .flex-control-thumbs img {
	cursor: pointer;
	opacity: 0.65;
}

div.product .flex-control-thumbs img.flex-active,
div.product .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--np-black);
}

div.product .summary {
	min-width: 0;
}

div.product .product_title {
	font-size: clamp(1.35rem, 2.6vw, 1.8rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 8px;
}

div.product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

div.product .woocommerce-product-rating .star-rating {
	display: none;
}

div.product .woocommerce-review-link {
	font-size: var(--np-text-s);
	color: var(--np-grey-600);
	text-decoration: underline;
}

div.product .product_meta {
	font-size: 0.8rem;
	color: var(--np-grey-600);
	margin: 0 0 10px;
	display: grid;
	gap: 2px;
}

div.product .product_meta a {
	color: var(--np-grey-600);
	text-decoration: underline;
}

div.product p.price {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 4px 0 12px;
}

div.product p.price .np-save {
	display: block;
	width: fit-content;
	font-size: 0.9rem;
	margin: 0 0 6px;
}

div.product p.price del {
	font-size: 1.05rem;
}

div.product .woocommerce-product-details__short-description {
	font-size: var(--np-text-s);
	color: var(--np-ink);
	margin-bottom: 14px;
}

/* Trust card */
.np-trust {
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-white);
	margin: 0 0 12px;
}

.np-trust__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	font-size: var(--np-text-s);
	font-weight: 600;
}

.np-trust__row + .np-trust__row {
	border-top: var(--np-border);
}

.np-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--np-yellow-soft);
	color: var(--np-black);
	flex: 0 0 auto;
}

/* Activity */
.np-activity {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 12px;
	font-size: var(--np-text-s);
	font-weight: 700;
	color: var(--np-ink);
	background: var(--np-grey-50);
	border: var(--np-border);
	border-radius: 99px;
	padding: 7px 14px;
}

.np-activity__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--np-green);
	box-shadow: 0 0 0 3px var(--np-green-soft);
}

/* Ask / share */
.np-product-utils {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}

.np-product-utils__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-white);
	font: inherit;
	font-size: var(--np-text-s);
	font-weight: 700;
	padding: 9px 14px;
	cursor: pointer;
	color: var(--np-black);
}

.np-product-utils__btn:hover {
	border-color: var(--np-black);
}

.np-product-utils__feedback {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--np-green);
}

/* Buying controls */
div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 16px;
}

div.product form.cart.variations_form {
	display: block;
}

div.product form.cart .quantity {
	display: inline-flex;
}

div.product form.cart .quantity .qty {
	width: 82px;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	padding: 12px;
	font: inherit;
	font-weight: 700;
	text-align: center;
}

div.product form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	background: var(--np-yellow);
	color: var(--np-black);
	border: 0;
	border-radius: var(--np-radius-s);
	font: inherit;
	font-weight: 800;
	font-size: 1rem;
	padding: 13px 22px;
	cursor: pointer;
	transition: background 0.15s ease;
}

div.product form.cart .single_add_to_cart_button:hover {
	background: var(--np-yellow-dark);
}

div.product form.cart .single_add_to_cart_button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

div.product form.cart .np-wish {
	position: static;
	width: 48px;
	height: 48px;
	align-self: center;
}

div.product form.cart.variations_form .np-wish {
	margin-left: 10px;
}

div.product table.variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

div.product table.variations th,
div.product table.variations td {
	padding: 6px 0;
	text-align: left;
	font-size: var(--np-text-s);
}

div.product table.variations select {
	width: 100%;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	padding: 10px 12px;
	font: inherit;
	font-size: var(--np-text-s);
}

div.product .reset_variations {
	font-size: 0.8rem;
	color: var(--np-grey-600);
	text-decoration: underline;
}

div.product .woocommerce-variation-price {
	margin-bottom: 10px;
	font-size: 1.3rem;
	font-weight: 800;
}

div.product .woocommerce-variation-price .np-save {
	display: block;
	width: fit-content;
	font-size: 0.85rem;
	margin-bottom: 6px;
}

div.product .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

div.product .stock {
	font-size: var(--np-text-s);
	font-weight: 700;
}

div.product .stock.in-stock {
	color: var(--np-green);
}

div.product .stock.out-of-stock {
	color: var(--np-red);
}

/* Bundle */
.np-bundle {
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-white);
	margin: 0 0 18px;
	overflow: hidden;
}

.np-bundle__title {
	font-size: 1rem;
	font-weight: 800;
	margin: 0;
	padding: 14px 18px;
	border-bottom: var(--np-border);
}

.np-bundle__items {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	flex-wrap: wrap;
}

.np-bundle__item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 200px;
}

.np-bundle__thumb img {
	width: 62px;
	height: 62px;
	object-fit: cover;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-grey-50);
}

.np-bundle__plus {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--np-grey-400);
}

.np-bundle__meta {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.np-bundle__name {
	font-size: var(--np-text-s);
	font-weight: 600;
	color: var(--np-black);
	line-height: 1.3;
}

.np-bundle__name:hover {
	text-decoration: underline;
}

.np-bundle__price {
	font-size: 0.85rem;
	font-weight: 700;
}

.np-bundle__price .np-save {
	font-size: 0.7rem;
	padding: 2px 6px;
}

.np-bundle__summary {
	background: var(--np-grey-50);
	border-top: var(--np-border);
	padding: 14px 18px;
	display: grid;
	gap: 6px;
}

.np-bundle__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: var(--np-text-s);
}

.np-bundle__row--total strong {
	font-size: 1.15rem;
}

.np-bundle__add {
	margin-top: 8px;
	width: 100%;
	justify-content: center;
	text-align: center;
}

.np-bundle__status {
	font-size: 0.8rem;
	color: var(--np-red);
}

/* Modal (Ask a question).
   `display: flex` only applies when the modal is not hidden; the global
   [hidden] rule in main.css keeps it closed on page load. */
.np-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.np-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.6);
}

.np-modal__box {
	position: relative;
	z-index: 2;
	width: min(520px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	background: var(--np-white);
	border-radius: var(--np-radius-s);
	box-shadow: 0 18px 50px rgba(17, 17, 17, 0.3);
}

.np-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--np-black);
	color: var(--np-white);
	padding: 14px 20px;
}

.np-modal__title {
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0;
}

.np-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	background: transparent;
	color: var(--np-white);
	cursor: pointer;
}

.np-modal__context {
	margin: 0;
	padding: 14px 20px 0;
	font-size: var(--np-text-s);
	font-weight: 700;
}

.np-modal__form,
.np-ask-form {
	padding: 16px 20px 22px;
}

.np-ask-form p {
	margin: 0 0 12px;
}

.np-ask-form label {
	display: block;
	font-size: var(--np-text-s);
	font-weight: 700;
	margin-bottom: 5px;
}

.np-ask-form input,
.np-ask-form textarea {
	width: 100%;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	padding: 11px 12px;
	font: inherit;
	font-size: var(--np-text-s);
}

.np-ask-form input:focus,
.np-ask-form textarea:focus {
	outline: 2px solid var(--np-yellow);
	outline-offset: 1px;
	border-color: var(--np-black);
}

.np-ask-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.np-ask-form__status {
	display: block;
	margin-top: 10px;
	font-size: var(--np-text-s);
	font-weight: 700;
}

body.np-modal-open {
	overflow: hidden;
}

/* Tabs */
.woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: 34px;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid var(--np-black);
}

.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 11px 18px;
	font-size: var(--np-text-s);
	font-weight: 700;
	color: var(--np-grey-600);
	background: var(--np-grey-50);
	border: var(--np-border);
	border-bottom: 0;
	border-radius: var(--np-radius-s) var(--np-radius-s) 0 0;
}

.woocommerce-tabs ul.tabs li.active a {
	background: var(--np-black);
	color: var(--np-white);
	border-color: var(--np-black);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
	padding: 24px 0 6px;
	font-size: var(--np-text-s);
	line-height: 1.7;
}

.woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

/* Specifications table */
table.woocommerce-product-attributes {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
	border: var(--np-border);
}

table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td {
	padding: 11px 16px;
	text-align: left;
	font-size: var(--np-text-s);
	border-bottom: var(--np-border);
}

table.woocommerce-product-attributes th {
	width: 38%;
	background: var(--np-grey-50);
	font-weight: 700;
}

table.woocommerce-product-attributes td p {
	margin: 0;
}

/* Rating summary + reviews */
.np-rating-summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	background: var(--np-grey-50);
	padding: 20px 22px;
	margin: 0 0 24px;
	max-width: 640px;
}

.np-rating-summary__score {
	display: grid;
	gap: 6px;
	justify-items: center;
	text-align: center;
}

.np-rating-summary__avg {
	font-size: 2.3rem;
	font-weight: 800;
	line-height: 1;
}

.np-rating-summary__count {
	font-size: 0.8rem;
	color: var(--np-grey-600);
}

.np-rating-summary__bars {
	display: grid;
	gap: 6px;
}

.np-rating-bar {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 30px;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
}

.np-rating-bar__track {
	height: 9px;
	border-radius: 99px;
	background: var(--np-grey-200);
	overflow: hidden;
}

.np-rating-bar__fill {
	display: block;
	height: 100%;
	background: var(--np-yellow);
}

.np-rating-bar__count {
	text-align: right;
	color: var(--np-grey-600);
}

.woocommerce-Reviews .commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	max-width: 760px;
}

.woocommerce-Reviews .comment_container {
	display: flex;
	gap: 14px;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	padding: 16px;
}

.woocommerce-Reviews .comment_container img.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.woocommerce-Reviews .comment-text {
	min-width: 0;
}

.woocommerce-Reviews .comment-text .star-rating {
	float: none;
	margin-bottom: 4px;
}

.woocommerce-Reviews .meta {
	font-size: 0.8rem;
	color: var(--np-grey-600);
	margin: 0 0 6px;
}

.woocommerce-Reviews .meta .woocommerce-review__verified {
	color: var(--np-green);
	font-weight: 700;
	font-style: normal;
}

.woocommerce-Reviews .description p {
	margin: 0;
	font-size: var(--np-text-s);
}

/* Star rating (WooCommerce native, used in reviews) */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1em;
	line-height: 1;
	font-size: 0.95em;
	font-family: star, sans-serif;
	overflow: hidden;
}

.star-rating::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--np-grey-300);
	position: absolute;
	top: 0;
	left: 0;
	letter-spacing: 0.1em;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--np-yellow);
	position: absolute;
	top: 0;
	left: 0;
	letter-spacing: 0.1em;
}

#review_form .comment-reply-title {
	font-size: 1.05rem;
	font-weight: 800;
	display: block;
	margin-bottom: 12px;
}

#review_form .comment-form {
	display: grid;
	gap: 12px;
	max-width: 640px;
}

#review_form .comment-form label {
	display: block;
	font-size: var(--np-text-s);
	font-weight: 700;
	margin-bottom: 5px;
}

#review_form .comment-form input[type="text"],
#review_form .comment-form input[type="email"],
#review_form .comment-form textarea,
#review_form .comment-form select {
	width: 100%;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
	padding: 11px 12px;
	font: inherit;
	font-size: var(--np-text-s);
}

#review_form .form-submit input {
	background: var(--np-black);
	color: var(--np-white);
	border: 0;
	border-radius: var(--np-radius-s);
	font: inherit;
	font-weight: 800;
	padding: 12px 24px;
	cursor: pointer;
}

#review_form .form-submit input:hover {
	background: var(--np-ink);
}

/* Related / upsells / recently viewed on product page */
.related.products,
.upsells.products,
.np-single-recent {
	grid-column: 1 / -1;
	margin-top: 36px;
}

.related.products > h2,
.upsells.products > h2 {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	border-bottom: 3px solid var(--np-black);
	padding-bottom: 10px;
	margin: 0 0 18px;
}

/* =========================================================================
   Responsive: single product
   ========================================================================= */
@media (max-width: 1023px) {
	div.product {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.np-rating-summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.np-bundle__items {
		flex-direction: column;
		align-items: stretch;
	}

	.np-bundle__plus {
		text-align: center;
	}
}

/* =========================================================================
   Production corrections: single product proportions
   =========================================================================
   The gallery previously shared the row almost evenly with the summary but
   still sat inside a narrow track, leaving a large empty band on wide
   screens. The gallery now takes roughly half the row with a generous gap,
   and images are constrained by aspect ratio with object-fit: contain so a
   low-resolution photo is never stretched.
   ========================================================================= */
div.product {
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	gap: clamp(32px, 3.6vw, 56px);
	align-items: start;
}

div.product .woocommerce-product-gallery {
	min-width: 0;
	width: 100%;
	max-width: 640px;
	float: none;
	margin: 0;
}

div.product .woocommerce-product-gallery__wrapper,
div.product .woocommerce-product-gallery__image {
	width: 100%;
}

div.product .woocommerce-product-gallery__image > a,
div.product .woocommerce-product-gallery__image {
	display: block;
}

/* Substantial main image without distortion. */
div.product .woocommerce-product-gallery__wrapper img,
div.product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	max-height: 620px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--np-grey-50);
	padding: 12px;
}

div.product .flex-control-thumbs img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--np-grey-50);
	max-height: none;
	padding: 6px;
}

/* Summary column: room for the title to breathe. */
div.product .summary {
	min-width: 0;
	width: 100%;
	float: none;
	margin: 0;
}

div.product .product_title {
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	line-height: 1.2;
	text-wrap: balance;
}

div.product .woocommerce-product-details__short-description {
	max-width: 62ch;
}

/* Tags relocated to the Specifications tab. */
.np-product-tags {
	margin: 16px 0 0;
	font-size: 0.85rem;
	color: var(--np-grey-600);
}

.np-product-tags__label {
	font-weight: 700;
	color: var(--np-ink);
}

.np-product-tags a {
	color: var(--np-grey-600);
	text-decoration: underline;
}

/* Activity indicator with eye icon. */
.np-activity__icon {
	display: inline-flex;
	align-items: center;
	color: var(--np-black);
}

/* =========================================================================
   Purchase row: quantity + add to cart + wishlist as one control group
   ========================================================================= */
div.product form.cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 18px;
}

div.product form.cart .quantity {
	flex: 0 0 auto;
	display: flex;
}

div.product form.cart .quantity .qty {
	width: 92px;
	height: 100%;
	min-height: 54px;
	border: 2px solid var(--np-black);
	border-radius: var(--np-radius-s);
	font-size: 1rem;
	font-weight: 700;
}

div.product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 54px;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

div.product form.cart .np-wish,
div.product .woocommerce-variation-add-to-cart .np-wish {
	position: static;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	align-self: stretch;
	border-width: 2px;
	border-radius: var(--np-radius-s);
	margin: 0;
}

div.product form.cart.variations_form {
	display: block;
}

div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
}

/* =========================================================================
   Bundle: a full-width offer block, not a sidebar widget
   ========================================================================= */
.np-bundle {
	margin: 0 0 20px;
	border: 2px solid var(--np-black);
	border-radius: var(--np-radius-s);
}

.np-bundle__title {
	font-size: 1.05rem;
	padding: 14px 20px;
	background: var(--np-grey-50);
}

.np-bundle__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	padding: 20px;
}

.np-bundle__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: initial;
}

.np-bundle__thumb img {
	width: 92px;
	height: 92px;
	object-fit: contain;
	background: var(--np-grey-50);
	padding: 6px;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
}

.np-bundle__name {
	font-size: 0.95rem;
	line-height: 1.35;
}

.np-bundle__price {
	font-size: 0.95rem;
	margin-top: 2px;
}

.np-bundle__plus {
	font-size: 1.5rem;
	color: var(--np-black);
}

.np-bundle__summary {
	display: grid;
	gap: 7px;
	padding: 18px 20px 20px;
	background: var(--np-grey-50);
	border-top: var(--np-border);
}

.np-bundle__flag {
	margin: 0;
	justify-self: start;
	background: var(--np-black);
	color: var(--np-yellow);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 3px;
}

.np-bundle__headline {
	margin: 2px 0 4px;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--np-red);
}

.np-bundle__headline .amount {
	color: inherit;
}

.np-bundle__add {
	margin-top: 10px;
	min-height: 52px;
	font-size: 1.02rem;
}

@media (max-width: 767px) {
	.np-bundle__items {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.np-bundle__plus {
		justify-self: center;
	}

	div.product form.cart,
	div.product .woocommerce-variation-add-to-cart {
		flex-wrap: wrap;
	}

	div.product form.cart .single_add_to_cart_button {
		flex: 1 1 60%;
	}

	div.product .woocommerce-product-gallery__wrapper img,
	div.product .woocommerce-product-gallery__image img {
		max-height: 420px;
	}
}

/* =========================================================================
   ROOT LAYOUT FIX: WooCommerce percentage widths inside the product grid
   =========================================================================
   Diagnosis from the staging screenshots: the grid tracks were the correct
   size, but the CONTENT inside each track was collapsing to roughly half
   its column, leaving a large empty channel down the middle of the page.

   Cause: WooCommerce core ships

       .woocommerce div.product div.images  { width: 48%; float: left; }
       .woocommerce div.product div.summary { width: 48%; float: right; }

   at specificity (0,0,2,2). The theme's resets used `div.product .summary`
   and `div.product .woocommerce-product-gallery` at (0,0,2,1), so core won
   and each column's content shrank to 48% of an already-halved track.

   Every reset below matches or exceeds core's specificity and covers both
   the `div.images` and `.woocommerce-product-gallery` class names, on both
   the `.woocommerce` and `.woocommerce-page` body wrappers.
   ========================================================================= */
.woocommerce div.product,
.woocommerce-page div.product,
.woocommerce #content div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
	gap: clamp(40px, 3.4vw, 64px);
	align-items: start;
	width: 100%;
	min-width: 0;
	float: none;
}

.woocommerce div.product::before,
.woocommerce div.product::after,
.woocommerce-page div.product::before,
.woocommerce-page div.product::after {
	content: none;
	display: none;
}

/* Gallery column: fills its track, never 48% of it. */
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce-page div.product div.images,
.woocommerce-page div.product .woocommerce-product-gallery,
.woocommerce #content div.product div.images {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	float: none;
	margin: 0;
	opacity: 1;
}

/* Summary column: fills its track, never 48% of it. */
.woocommerce div.product div.summary,
.woocommerce div.product .summary,
.woocommerce-page div.product div.summary,
.woocommerce-page div.product .summary,
.woocommerce #content div.product div.summary {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	float: none;
	margin: 0;
	clear: none;
}

/* A substantial main image area regardless of source image size. */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	width: 100%;
	margin: 0;
}

.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	min-height: 500px;
	max-height: 680px;
	object-fit: contain;
	background: var(--np-grey-50);
	padding: 20px;
	border: var(--np-border);
	border-radius: var(--np-radius-s);
}

/* Thumbnails keep their own smaller box. */
.woocommerce div.product div.images .flex-control-thumbs img,
.woocommerce div.product .flex-control-thumbs img {
	min-height: 0;
	max-height: none;
	padding: 6px;
	aspect-ratio: 1 / 1;
}

/* Full-width children of the product grid. */
.woocommerce div.product .np-bundle,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.woocommerce div.product .np-single-recent,
.woocommerce div.product .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	float: none;
}

/* Summary internals fill the column. */
.woocommerce div.product .summary .np-trust,
.woocommerce div.product .summary .np-activity,
.woocommerce div.product .summary .np-product-utils,
.woocommerce div.product .summary form.cart,
.woocommerce div.product .summary .woocommerce-product-details__short-description {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.woocommerce div.product .summary .np-trust__row {
	padding: 14px 20px;
}

.woocommerce div.product .summary .np-activity {
	width: auto;
	max-width: 100%;
}

.woocommerce div.product .product_title {
	font-size: clamp(1.6rem, 2vw, 2.15rem);
	text-wrap: balance;
	max-width: 22ch;
}

/* Purchase row proportions. */
.woocommerce div.product form.cart .quantity .qty {
	width: 96px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	padding-inline: 28px;
}

.woocommerce div.product form.cart .np-wish {
	width: 54px;
}

/* =========================================================================
   Bundle: full container width, below the product area
   ========================================================================= */
.np-bundle {
	max-width: 1100px;
	margin: 8px 0 32px;
}

.np-bundle__items {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 28px;
	padding: 26px 24px;
	align-items: center;
}

.np-bundle__item {
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	min-width: 0;
	overflow: hidden;
}

.np-bundle__thumb {
	flex: 0 0 auto;
}

.np-bundle__thumb img {
	width: 132px;
	height: 132px;
	padding: 8px;
}

.np-bundle__meta {
	min-width: 0;
}

.np-bundle__name {
	font-size: 1rem;
	line-height: 1.4;
	/* Titles wrap on words, never character by character. */
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
	display: block;
}

.np-bundle__price {
	font-size: 1rem;
	display: block;
	margin-top: 4px;
}

.np-bundle__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 32px;
	padding: 22px 24px;
}

.np-bundle__flag,
.np-bundle__headline {
	grid-column: 1;
}

.np-bundle__row {
	grid-column: 1;
	max-width: 320px;
}

.np-bundle__add {
	grid-column: 2;
	grid-row: 1 / span 4;
	align-self: center;
	min-width: 240px;
	margin: 0;
}

.np-bundle__status {
	grid-column: 1 / -1;
}

@media (max-width: 1023px) {
	.woocommerce div.product,
	.woocommerce-page div.product,
	.woocommerce #content div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.woocommerce div.product div.images img,
	.woocommerce div.product .woocommerce-product-gallery__image img {
		min-height: 0;
		max-height: 460px;
	}

	.woocommerce div.product .product_title {
		max-width: none;
	}

	.np-bundle__summary {
		grid-template-columns: minmax(0, 1fr);
	}

	.np-bundle__add {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
		margin-top: 10px;
	}
}

@media (max-width: 767px) {
	.np-bundle__items {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 18px 16px;
	}

	.np-bundle__thumb img {
		width: 96px;
		height: 96px;
	}

	.np-bundle__summary {
		padding: 18px 16px;
	}

	.np-bundle__row {
		max-width: none;
	}
}
