/* ---------------------------------------------------------------------------
   Single product.
   Source layout: sticky gallery (vertical thumbnail strip on the left of the
   main image) beside the summary column; description/additional-information as
   an accordion; 4-up related products.
   --------------------------------------------------------------------------- */

.nx-single { padding-block: 26px 60px; }

/* --- Breadcrumb ---------------------------------------------------------- */

.nx-crumbs {
	margin-bottom: 22px;
	font-size: 13px;
	color: var(--nx-muted);
}
.nx-crumbs a { color: var(--nx-muted); }
.nx-crumbs a:hover { color: var(--nx-purple); }
.nx-crumb__sep { padding: 0 8px; opacity: 0.6; }

/* --- Two-column top ------------------------------------------------------ */

.nx-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin-bottom: 50px;
}

/* --- Gallery ------------------------------------------------------------- */

.nx-gallery {
	position: sticky;
	top: 110px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.nx-gallery--has-thumbs {
	grid-template-columns: 78px minmax(0, 1fr);
}

.nx-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 520px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.nx-gallery__thumb {
	padding: 0;
	border: 1px solid var(--nx-rule);
	border-radius: var(--nx-radius);
	background: var(--nx-white);
	cursor: pointer;
	overflow: hidden;
	transition: border-color var(--nx-transition);
}
.nx-gallery__thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.nx-gallery__thumb:hover { border-color: var(--nx-purple-20); }
.nx-gallery__thumb.is-active { border-color: var(--nx-purple); }

.nx-gallery__main {
	position: relative;
	border: 1px solid var(--nx-rule);
	border-radius: var(--nx-radius-lg);
	background: var(--nx-white);
	overflow: hidden;
}
.nx-gallery__image { width: 100%; height: auto; }
.nx-gallery__badge { top: 14px; left: 14px; }

/* --- Summary ------------------------------------------------------------- */

.nx-product__summary > * + * { margin-top: 14px; }

.nx-single__eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nx-single__eyebrow a { color: var(--nx-purple); }

/* Measured: 30px in the accent purple. */
.nx-product__summary .product_title {
	margin: 0;
	font-size: 30px;
	color: var(--nx-purple);
}

/* Measured: 1.5rem / 700 in ink. Woo ships `.woocommerce div.product p.price`
   at (0,2,2) in a green (#77a464); a plain `.nx-product__summary .price` is
   (0,2,0) and loses, which is why the build was painting a stray olive. */
.woocommerce div.product .nx-product__summary p.price,
.woocommerce div.product .nx-product__summary span.price,
.nx-product__summary .price {
	display: block;
	margin: 0 0 0.2em;
	font-family: var(--nx-font-body);
	font-size: 24px;
	font-weight: 700;
	color: var(--nx-ink);
}
.nx-product__summary .price del { font-size: 18px; font-weight: 400; opacity: 0.5; margin-right: 8px; }
.nx-product__summary .price ins { text-decoration: none; }

.woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.75;
}

/* --- Crypto discount bar ------------------------------------------------- */

/* Measured from the live PDP: `.awdr_discount_bar { padding:10px; margin-bottom:
   10px; border-radius:4px }` with inline `background:#72069E; color:#fff`. It is
   a SOLID purple bar with white text, not a tinted callout. */
.nx-crypto-bar {
	padding: 10px;
	margin-bottom: 10px;
	border: 0;
	border-radius: 4px;
	background: var(--nx-purple);
	color: var(--nx-white);
	font-size: 16px;
	font-weight: 400;
}

/* --- COA link ------------------------------------------------------------ */

.nx-test-result { font-size: 14px; }
.nx-test-result[hidden] { display: none; }
.nx-test-result strong { color: var(--nx-ink); margin-right: 6px; }
.nx-test-result a { font-weight: 600; text-decoration: underline; }

/* --- Variations ---------------------------------------------------------- */

.nx-product__summary table.variations {
	width: 100%;
	margin: 0;
	border: 0;
}
.nx-product__summary table.variations th,
.nx-product__summary table.variations td {
	padding: 6px 0;
	border: 0;
	text-align: left;
	vertical-align: middle;
}
.nx-product__summary table.variations th.label {
	width: 80px;
	font-family: var(--nx-font-form);
	font-size: 14px;
	font-weight: 600;
	color: var(--nx-ink);
	text-transform: uppercase;
}
.nx-product__summary table.variations select { max-width: 320px; }

.nx-product__summary .reset_variations {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
}

.woocommerce-variation-price { margin-bottom: 12px; }

/* --- Quantity + add to cart ---------------------------------------------- */

.nx-product__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 4px 0 0;
}
.nx-product__summary form.variations_form { display: block; }
.nx-product__summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.nx-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--nx-rule);
	border-radius: var(--nx-radius);
	overflow: hidden;
}

.nx-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	border: 0;
	background: var(--nx-pale);
	color: var(--nx-ink);
	cursor: pointer;
	transition: background var(--nx-transition), color var(--nx-transition);
}
.nx-qty__btn svg { fill: currentColor; }
.nx-qty__btn:hover { background: var(--nx-purple); color: var(--nx-white); }

.nx-qty .quantity { margin: 0; }
.nx-qty input.qty {
	width: 62px;
	height: 100%;
	padding: 11px 6px;
	border: 0;
	border-inline: 1px solid var(--nx-rule);
	border-radius: 0;
	text-align: center;
	font-family: var(--nx-font-body);
	font-weight: 600;
	-moz-appearance: textfield;
}
.nx-qty input.qty::-webkit-outer-spin-button,
.nx-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.nx-product__summary .single_add_to_cart_button { flex: 1 1 200px; }

/* --- Meta ---------------------------------------------------------------- */

.product_meta {
	padding-top: 14px;
	border-top: 1px solid var(--nx-rule);
	font-size: 14px;
	color: var(--nx-muted);
}
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta .sku, .product_meta a { color: var(--nx-ink); font-weight: 500; }
.product_meta a:hover { color: var(--nx-purple); }

/* --- Safe checkout strip ------------------------------------------------- */

.nx-safe-checkout {
	margin: 6px 0 0;
	padding: 14px 16px 16px;
	border: 1px solid var(--nx-rule);
	border-radius: var(--nx-radius-lg);
	background: var(--nx-white);
}

.nx-safe-checkout legend {
	padding: 0 8px;
	font-family: var(--nx-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-muted);
}

.nx-safe-checkout__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-safe-checkout__list li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid var(--nx-rule);
	border-radius: 40px;
	background: var(--nx-pale);
	font-size: 12px;
	font-weight: 600;
	color: var(--nx-navy);
}
.nx-safe-checkout__list svg { flex: 0 0 auto; }

/* --- Product accordion --------------------------------------------------- */

.nx-product-accordion { max-width: none; margin-bottom: 50px; }
.nx-product-accordion .nx-accordion__panel { font-size: 15px; }
.nx-product-accordion table.shop_attributes { margin: 0; font-size: 14px; }
.nx-product-accordion table.shop_attributes th,
.nx-product-accordion table.shop_attributes td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--nx-rule);
	text-align: left;
}
.nx-product-accordion table.shop_attributes th { width: 200px; color: var(--nx-ink); font-weight: 600; }
.nx-product-accordion table.shop_attributes p { margin: 0; }

/* --- Related ------------------------------------------------------------- */

.related.products > h2,
.up-sells > h2 {
	margin-bottom: 24px;
	font-size: var(--nx-h2);
	color: var(--nx-navy);
}

/* --- Breakpoints --------------------------------------------------------- */

@media (max-width: 1024px) {
	.nx-product__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.nx-gallery { position: static; }
}

@media (max-width: 767px) {
	.nx-gallery--has-thumbs { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
	.nx-product__summary .single_add_to_cart_button { flex: 1 1 100%; }
	.nx-product-accordion table.shop_attributes th { width: 130px; }
}

/* --- Add to cart --------------------------------------------------------
   Measured: #72069e, radius 3px, 15px/400 uppercase. The source does NOT dim
   the button while a variation is unchosen, so neither do we. */
.nx-product__summary .single_add_to_cart_button,
.woocommerce .nx-product__summary button.single_add_to_cart_button {
	border-radius: 3px;
	background: var(--nx-purple);
	border-color: var(--nx-purple);
	color: var(--nx-white);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.woocommerce .nx-product__summary button.single_add_to_cart_button.disabled,
.woocommerce .nx-product__summary button.single_add_to_cart_button:disabled {
	opacity: 1;
	background: var(--nx-purple);
	color: var(--nx-white);
}
