/* ==========================================================================
   Single product page — modern layout

   Loaded with `agntix-shop` (sops.css) as a dependency so it always prints
   last, and every rule carries `body.single-product` so it also outsizes the
   single-class base rules in agntix-core.css.

   The tabs and the review panels already got this treatment in sops.css and
   are deliberately left alone here — this file covers the gallery, the
   summary column and the related-products row, which were still on the
   theme's original beige demo styling.
   ========================================================================== */

body.single-product {
	--agntix-sp-ink: #21212D;
	--agntix-sp-accent: #2e80ff;
	--agntix-sp-muted: #6E7480;
	--agntix-sp-line: #E6E9EF;
	--agntix-sp-soft: #F7F9FC;
	--agntix-sp-star: #FFB800;
	--agntix-sp-ok: #0F8A45;
	--agntix-sp-warn: #B26A00;
	--agntix-sp-danger: #D0342C;
	--agntix-sp-radius: 16px;
	--agntix-sp-shadow: 0 1px 2px rgba(33, 33, 45, 0.04),
		0 18px 40px rgba(33, 33, 45, 0.06);
}

/* WooCommerce core styles are dequeued in functions.php, so the a11y-only
   labels ("… quantity", "Price range: …") have no hiding rule of their own to
   fall back on if the block library stylesheet ever stops loading. */
body.single-product .tp-product-details-wrapper .screen-reader-text,
body.single-product .woocommerce-product-gallery .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

/* FlexSlider sizes `.flex-viewport` inline and clips it, which makes it the
   only node that can carry the frame without cutting the thumbnail rail. */
body.single-product .tp-product-details-thumb-wrapper .flex-viewport {
	border-radius: 20px;
	border: 1px solid var(--agntix-sp-line);
	background-color: var(--agntix-sp-soft);
}

body.single-product .woocommerce-product-gallery__image a {
	border-radius: 20px;
	overflow: hidden;
}

/* --- Sale badge ---------------------------------------------------------- */

/* The demo shipped a 50px brown disc; a pill sits better next to the rounded
   frame and leaves room for translated strings. */
body.single-product .tp-onsale {
	top: 20px;
	left: 20px;
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	border-radius: 999px;
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-accent);
	box-shadow: 0 10px 24px rgba(46, 128, 255, 0.3);
}

/* --- Thumbnail rail ------------------------------------------------------ */

body.single-product .tp-product-details-thumb-wrapper .flex-control-nav li img {
	padding: 4px;
	border-radius: 14px;
	border: 1px solid var(--agntix-sp-line);
	background-color: var(--tp-common-white);
	cursor: pointer;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.single-product .tp-product-details-thumb-wrapper .flex-control-nav li img:hover {
	border-color: rgba(46, 128, 255, 0.45);
}

/* Beats the `#ddd` in woo-new.css — the rail is the only wayfinding the
   gallery has, so the current tile is worth the accent. */
body.single-product .tp-product-details-thumb-wrapper .flex-control-nav li img.flex-active {
	border-color: var(--agntix-sp-accent);
	box-shadow: 0 0 0 3px rgba(46, 128, 255, 0.12);
}

/* ==========================================================================
   Summary column
   ========================================================================== */

/* --- Category eyebrow ---------------------------------------------------- */

/* The names are printed as bare spans with literal commas between them, so
   they are styled as one line of label text rather than as chips. */
body.single-product .tp-product-details-category {
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--agntix-sp-accent);
}

body.single-product .tp-product-details-category span {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* --- Title --------------------------------------------------------------- */

body.single-product .tp-product-details-title {
	margin-bottom: 14px;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--agntix-sp-ink);
}

/* --- Stock + rating row -------------------------------------------------- */

body.single-product .tp-product-details-inventory {
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

/* The template hangs `.mb-10` on both children for the pre-flex layout. */
body.single-product .tp-product-details-inventory > div {
	margin-right: 0;
	margin-bottom: 0;
}

body.single-product .tp-product-details-stock span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	color: var(--agntix-sp-ok);
	background-color: rgba(18, 161, 80, 0.1);
}

body.single-product .tp-product-details-stock span::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: currentColor;
}

body.single-product .tp-product-details-stock.is-onbackorder span {
	color: var(--agntix-sp-warn);
	background-color: rgba(224, 150, 0, 0.12);
}

body.single-product .tp-product-details-stock.is-outofstock span {
	color: var(--agntix-sp-danger);
	background-color: rgba(208, 52, 44, 0.1);
}

body.single-product .tp-product-details-rating-wrapper {
	gap: 8px;
}

body.single-product .tp-product-details-rating {
	margin-right: 0;
}

body.single-product .tp-product-details-rating span {
	font-size: 13px;
	color: var(--agntix-sp-star);
}

body.single-product .tp-product-details-reviews span {
	font-size: 13px;
	font-weight: 500;
	color: var(--agntix-sp-muted);
}

/* --- Short description --------------------------------------------------- */

body.single-product .tp-product-details-sort-desc {
	margin-bottom: 24px;
}

body.single-product .tp-product-details-sort-desc p {
	margin-bottom: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--agntix-sp-muted);
}

/* --- Price --------------------------------------------------------------- */

body.single-product .tp-product-details-price-wrapper {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--agntix-sp-line);
}

body.single-product .tp-product-details-price {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--agntix-sp-ink);
}

body.single-product .tp-product-details-price del {
	margin-right: 4px;
	font-size: 18px;
	font-weight: 400;
	color: var(--agntix-sp-muted);
	text-decoration-line: line-through;
}

body.single-product .tp-product-details-price ins {
	text-decoration: none;
	color: inherit;
	background-color: transparent;
}

/* Discount chip printed by agntix_product_details(). */
body.single-product .tp-product-details-save {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	border-radius: 999px;
	color: var(--agntix-sp-ok);
	background-color: rgba(18, 161, 80, 0.1);
}

/* ==========================================================================
   Variations
   ========================================================================== */

/* Left empty when the swatch plugin is inactive, and its 30px bottom margin
   would otherwise open a gap under the price. */
body.single-product .tp-product-details-variation:empty {
	display: none;
}

body.single-product .tp-product-details-action-wrapper .variations {
	width: 100%;
	margin-bottom: 22px;
	border-collapse: collapse;
	border-spacing: 0;
}

body.single-product .tp-product-details-action-wrapper .variations tr {
	display: block;
}

body.single-product .tp-product-details-action-wrapper .variations tr:not(:last-child) {
	margin-bottom: 16px;
}

/* Label over field rather than beside it — the summary column is too narrow
   for a two-column table once the attribute name is translated. */
body.single-product .tp-product-details-action-wrapper .variations th.label,
body.single-product .tp-product-details-action-wrapper .variations td.value {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background-color: transparent;
}

body.single-product .tp-product-details-action-wrapper .variations th.label label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--agntix-sp-muted);
}

body.single-product .tp-product-details-action-wrapper .variations td.value {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

body.single-product .tp-product-details-action-wrapper .variations .value select {
	flex: 1 1 200px;
	min-width: 0;
	height: 50px;
	margin-left: 0;
	padding: 0 44px 0 16px;
	font-size: 15px;
	font-weight: 500;
	color: var(--agntix-sp-ink);
	border: 1px solid var(--agntix-sp-line);
	border-radius: 12px;
	background-color: var(--tp-common-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E7480' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.single-product .tp-product-details-action-wrapper .variations .value select:focus {
	border-color: var(--agntix-sp-accent);
	box-shadow: 0 0 0 3px rgba(46, 128, 255, 0.12);
	outline: none;
}

/* --- Colour swatches ----------------------------------------------------- */

/* Both states are driven by the class variation-swatches.js adds once it has
   paired the circles with the dropdown: until then the circles stay hidden and
   the native select is the control, so the form still works without scripts. */
body.single-product .agntix-swatches {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

body.single-product .value.agntix-swatches-active .agntix-swatches {
	display: flex;
}

body.single-product .value.agntix-swatches-active select {
	display: none;
}

body.single-product .agntix-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--agntix-swatch-color, var(--agntix-sp-soft));
	cursor: pointer;
	/* Hairline keeps white and cream circles visible against the page. */
	box-shadow: 0 0 0 1px rgba(33, 33, 45, 0.14);
	transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

body.single-product .agntix-swatch:hover {
	transform: scale(1.08);
}

/* Inset white cuts a gap between the colour and the ring, so the marker reads
   on a dark swatch as well as a light one. The ring is kept neutral — an
   accent ring beside a blue swatch would not read as "selected". */
body.single-product .agntix-swatch.is-selected {
	box-shadow: 0 0 0 2px var(--tp-common-white) inset,
		0 0 0 2px rgba(33, 33, 45, 0.45);
}

body.single-product .agntix-swatch:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--tp-common-white) inset,
		0 0 0 3px var(--agntix-sp-accent);
}

/* Combinations WooCommerce cannot offer for the current selection. */
body.single-product .agntix-swatch.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

body.single-product .agntix-swatch.is-disabled:hover {
	transform: none;
}

body.single-product .agntix-swatch.is-disabled::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 128%;
	height: 1px;
	background-color: var(--agntix-sp-ink);
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* No colour could be matched to the term, so it carries its initial instead of
   a wrong shade. Set a colour on the attribute term to replace it. */
body.single-product .agntix-swatch.is-unknown {
	background-color: var(--agntix-sp-soft);
}

body.single-product .agntix-swatch-initial {
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	color: var(--agntix-sp-muted);
}

/* Tooltip. Real text rather than a `content: attr()` string so it translates
   and stays selectable; the button carries the same string as `aria-label`. */
body.single-product .agntix-swatch-name {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 3;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	border-radius: 8px;
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-ink);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(4px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

body.single-product .agntix-swatch-name::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background-color: inherit;
	transform: translate(-50%, -60%) rotate(45deg);
}

body.single-product .agntix-swatch:hover .agntix-swatch-name,
body.single-product .agntix-swatch:focus-visible .agntix-swatch-name {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

body.single-product .tp-product-details-action-wrapper .variations .reset_variations {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 500;
	color: var(--agntix-sp-muted);
	text-decoration: underline;
	transition: color 0.3s ease;
}

body.single-product .tp-product-details-action-wrapper .variations .reset_variations:hover {
	color: var(--agntix-sp-accent);
}

/* --- Selected-variation panel -------------------------------------------- */

body.single-product .woocommerce-variation.single_variation {
	margin-bottom: 18px;
	padding: 16px 18px;
	border-radius: 14px;
	background-color: var(--agntix-sp-soft);
}

body.single-product .woocommerce-variation.single_variation:empty {
	display: none !important;
}

body.single-product .woocommerce-variation-price .price {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--agntix-sp-ink);
}

body.single-product .woocommerce-variation-price .price del {
	margin-right: 4px;
	font-size: 16px;
	font-weight: 400;
	color: var(--agntix-sp-muted);
}

body.single-product .woocommerce-variation-price .price ins {
	text-decoration: none;
	background-color: transparent;
}

body.single-product .woocommerce-variation-availability p,
body.single-product .woocommerce-variation-description p {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--agntix-sp-muted);
}

body.single-product .woocommerce-variation-availability p.in-stock {
	color: var(--agntix-sp-ok);
}

body.single-product .woocommerce-variation-availability p.out-of-stock {
	color: var(--agntix-sp-danger);
}

/* Stock line simple.php prints above the form. */
body.single-product .tp-product-details-action-wrapper > p.stock {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--agntix-sp-ok);
}

body.single-product .tp-product-details-action-wrapper > p.stock.out-of-stock {
	color: var(--agntix-sp-danger);
}

/* ==========================================================================
   Quantity + actions
   ========================================================================== */

body.single-product .tp-product-details-action-wrapper {
	margin-bottom: 26px;
}

body.single-product .tp-product-details-action-title {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--agntix-sp-muted);
}

body.single-product .tp-product-details-action-wrapper .cart,
body.single-product .tp-product-details-action-wrapper .woocommerce-variation-add-to-cart.variations_button {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 12px;
}

/* The variable form is `d-block` and holds the attribute table above the
   button row, so only the row itself may become a flex line. */
body.single-product .tp-product-details-action-wrapper form.variations_form.cart {
	display: block;
}

/* The "Quantity" heading is the first item of that flex row, and a full-width
   basis is what drops the stepper and the button onto the line below it. The
   row's 12px gap then spaces the three, so the heading carries no margin. */
body.single-product .tp-product-details-action-wrapper .tp-product-details-action-title {
	flex: 0 0 100%;
	margin-bottom: 0;
}

body.single-product .tp-product-details-action-wrapper .quantity {
	flex: 0 0 auto;
	margin: 0 !important;
}

body.single-product .tp-product-details-quantity {
	margin: 0;
}

body.single-product .tp-product-details-action-wrapper .tp-product-details-quantity .tp-product-quantity {
	width: 138px;
	margin: 0;
}

body.single-product .tp-product-details-quantity .tp-cart-input[type="text"] {
	height: 52px;
	line-height: 52px;
	padding: 0 44px;
	font-size: 15px;
	font-weight: 600;
	color: var(--agntix-sp-ink);
	background-color: var(--tp-common-white);
	border: 1px solid var(--agntix-sp-line);
	border-radius: 12px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.single-product .tp-product-details-quantity .tp-cart-input[type="text"]:focus {
	border-color: var(--agntix-sp-accent);
	box-shadow: 0 0 0 3px rgba(46, 128, 255, 0.12);
	outline: none;
}

body.single-product .tp-product-details-quantity .tp-cart-plus,
body.single-product .tp-product-details-quantity .tp-cart-minus {
	top: 14px;
	left: 9px;
	width: 26px;
	height: 26px;
	line-height: 23px;
	color: var(--agntix-sp-muted);
	background-color: var(--agntix-sp-soft);
}

body.single-product .tp-product-details-quantity .tp-cart-plus {
	left: auto;
	right: 9px;
}

body.single-product .tp-product-details-quantity .tp-cart-plus:hover,
body.single-product .tp-product-details-quantity .tp-cart-minus:hover {
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-accent);
}

/* --- Add to cart --------------------------------------------------------- */

/* `.w-100` on the wrapper is a Bootstrap `!important` rule, so the flex basis
   — which outranks `width` for the main size — is what makes it share the row
   with the stepper instead of wrapping onto its own line. */
body.single-product .tp-product-details-add-to-cart {
	flex: 1 1 0%;
	min-width: 190px;
	margin: 0;
}

body.single-product .tp-product-details-add-to-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border-radius: 12px;
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-accent);
	border: 1px solid var(--agntix-sp-accent);
	box-shadow: 0 12px 26px rgba(46, 128, 255, 0.24);
	transition: all 0.3s ease;
}

body.single-product .tp-product-details-add-to-cart-btn:hover {
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-ink);
	border-color: var(--agntix-sp-ink);
	box-shadow: 0 12px 26px rgba(33, 33, 45, 0.24);
	transform: translateY(-2px);
}

/* Variable products render the button up front and only enable it once every
   attribute is chosen — it should not read as the live primary until then. */
body.single-product .tp-product-details-add-to-cart-btn.disabled,
body.single-product .tp-product-details-add-to-cart-btn:disabled {
	color: var(--agntix-sp-muted);
	background-color: var(--agntix-sp-soft);
	border-color: var(--agntix-sp-line);
	box-shadow: none;
	cursor: not-allowed;
}

body.single-product .tp-product-details-add-to-cart-btn.disabled:hover,
body.single-product .tp-product-details-add-to-cart-btn:disabled:hover {
	color: var(--agntix-sp-muted);
	background-color: var(--agntix-sp-soft);
	border-color: var(--agntix-sp-line);
	transform: none;
}

/* --- Buy now ------------------------------------------------------------- */

/* The template nests a `<button>` inside the `<a>`, so the anchor is stripped
   back to a plain block and the button carries the whole look. */
body.single-product .tp-product-details-buy-now-btn {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background-color: transparent;
}

body.single-product .tp-product-details-buy-now-btn:hover {
	background-color: transparent;
	border-color: transparent;
}

body.single-product .tp-product-details-buy-now-btn button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 15px 28px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border-radius: 12px;
	color: var(--agntix-sp-ink);
	background-color: var(--tp-common-white);
	border: 1px solid var(--agntix-sp-line);
	cursor: pointer;
	transition: all 0.3s ease;
}

body.single-product .tp-product-details-buy-now-btn button:hover {
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-ink);
	border-color: var(--agntix-sp-ink);
	transform: translateY(-2px);
}

/* --- Wishlist / compare row ---------------------------------------------- */

body.single-product .tp-product-details-action-sm {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--agntix-sp-line);
}

body.single-product .tp-product-details-action-sm-btn {
	margin-bottom: 0;
	font-size: 15px;
	color: var(--agntix-sp-muted);
}

body.single-product .tp-product-details-action-sm-btn:not(:last-child) {
	margin-right: 0;
}

body.single-product .tp-product-details-action-sm-btn:hover {
	color: var(--agntix-sp-accent);
}

/* ==========================================================================
   Meta — SKU / categories / tags
   ========================================================================== */

body.single-product .tp-product-details-query {
	margin-bottom: 24px;
	padding: 6px 20px;
	border-radius: 14px;
	background-color: var(--agntix-sp-soft);
}

body.single-product .tp-product-details-query-item {
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	padding: 13px 0;
	border-bottom: 1px solid var(--agntix-sp-line);
}

body.single-product .tp-product-details-query-item:not(:last-child) {
	margin-bottom: 0;
}

body.single-product .tp-product-details-query-item:last-child {
	border-bottom: 0;
}

body.single-product .tp-product-details-query-item > span {
	flex: 0 0 110px;
	margin-right: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--agntix-sp-muted);
}

body.single-product .tp-product-details-query-item p {
	flex: 1 1 160px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--agntix-sp-ink);
}

body.single-product .tp-product-details-query-item p a {
	color: var(--agntix-sp-ink);
	transition: color 0.3s ease;
}

body.single-product .tp-product-details-query-item p a:hover {
	color: var(--agntix-sp-accent);
}

/* ==========================================================================
   Share
   ========================================================================== */

body.single-product .tp-product-details-social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 0;
}

body.single-product .tp-product-details-social span {
	margin-right: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--agntix-sp-muted);
}

body.single-product .tp-product-details-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	line-height: 1;
	font-size: 14px;
	border-radius: 50%;
	color: var(--agntix-sp-muted);
	background-color: var(--tp-common-white);
	border: 1px solid var(--agntix-sp-line);
	transition: all 0.3s ease;
}

body.single-product .tp-product-details-social a:hover {
	color: var(--tp-common-white);
	background-color: var(--agntix-sp-accent);
	border-color: var(--agntix-sp-accent);
	transform: translateY(-2px);
}

/* ==========================================================================
   Additional information table
   ========================================================================== */

body.single-product .tp-product-details-additional-info table {
	width: 100%;
	margin-bottom: 0;
	border-radius: var(--agntix-sp-radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: inherit;
}

body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__label,
body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__value {
	padding: 15px 24px;
	font-size: 15px;
	line-height: 1.5;
	border-bottom: 1px solid var(--agntix-sp-line);
}

body.single-product .tp-product-details-additional-info table tr:last-child .woocommerce-product-attributes-item__label,
body.single-product .tp-product-details-additional-info table tr:last-child .woocommerce-product-attributes-item__value {
	border-bottom: 0;
}

body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__label {
	width: 240px;
	font-weight: 600;
	color: var(--agntix-sp-ink);
	background-color: var(--agntix-sp-soft);
}

body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__value {
	color: var(--agntix-sp-muted);
	background-color: var(--tp-common-white);
}

/* The related-products row below is intentionally left to agntix-core.css —
   it is shared with the shop archive and is not part of this restyle. */

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Below xl the gallery drops its right-hand rail reservation (sops.css) and
   the summary loses ~150px, so the type steps down with it. */
@media (max-width: 1199px) {
	body.single-product .tp-product-details-title {
		font-size: 30px;
	}

	body.single-product .tp-product-details-price {
		font-size: 27px;
	}
}

/* Columns stack here — the summary needs its own breathing room above. */
@media (max-width: 991px) {
	body.single-product .summary.entry-summary {
		margin-top: 40px;
	}
}

@media (max-width: 767px) {
	body.single-product .tp-onsale {
		top: 14px;
		left: 14px;
		padding: 7px 13px;
		font-size: 11px;
	}

	body.single-product .tp-product-details-thumb-wrapper .flex-viewport,
	body.single-product .woocommerce-product-gallery__image a {
		border-radius: 16px;
	}

	body.single-product .tp-product-details-title {
		font-size: 26px;
	}

	body.single-product .tp-product-details-sort-desc p {
		font-size: 15px;
	}

	body.single-product .tp-product-details-price {
		font-size: 25px;
	}

	body.single-product .tp-product-details-price-wrapper {
		margin-bottom: 20px;
		padding-bottom: 20px;
	}

	body.single-product .tp-product-details-query {
		padding: 4px 16px;
	}

	/* Stacked label + value: 110px of fixed label column is more than a phone
	   can spare next to a list of category links. */
	body.single-product .tp-product-details-query-item > span {
		flex: 0 0 100%;
	}

	body.single-product .tp-product-details-query-item p {
		flex: 1 1 100%;
	}

	body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__label,
	body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__value {
		padding: 12px 16px;
		font-size: 14px;
	}

	body.single-product .tp-product-details-additional-info table tr .woocommerce-product-attributes-item__label {
		width: 140px;
	}
}

/* The stepper and the button no longer fit side by side. */
@media (max-width: 479px) {
	body.single-product .tp-product-details-action-wrapper .tp-product-details-quantity .tp-product-quantity {
		width: 100%;
	}

	body.single-product .tp-product-details-action-wrapper .quantity {
		flex: 1 1 100%;
	}

	body.single-product .tp-product-details-add-to-cart {
		flex: 1 1 100%;
	}

	body.single-product .tp-product-details-title {
		font-size: 23px;
	}

	body.single-product .tp-product-details-social a {
		width: 36px;
		height: 36px;
	}
}

/* ==========================================================================
   My account — login card parity with the register card
   ========================================================================== */

/* --- Fields --------------------------------------------------------------- */

.woocommerce .tp-login-area .tp-login-card form.login label {
	display: block;
	margin-bottom: 9px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tp-common-black);
}

.woocommerce .tp-login-area .tp-login-card form.login input.input-text,
.woocommerce .tp-login-area .tp-login-card form.login input[type="text"],
.woocommerce .tp-login-area .tp-login-card form.login input[type="password"] {
	width: 100%;
	height: 52px;
	padding: 0 18px;
	/* The 20px the legacy block set here is the whole spacing bug: as a flex
	   child of .password-input it also stretched that wrapper 20px taller. */
	margin-bottom: 0;
	font-size: 15px;
	line-height: 50px;
	color: var(--tp-common-black);
	background-color: #fff;
	border: 1px solid var(--agntix-cart-line, #ECEEF1);
	border-radius: 12px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce .tp-login-area .tp-login-card form.login input.input-text:focus,
.woocommerce .tp-login-area .tp-login-card form.login input[type="text"]:focus,
.woocommerce .tp-login-area .tp-login-card form.login input[type="password"]:focus {
	outline: none;
	border-color: var(--tp-theme-shop, #2e80ff);
	box-shadow: 0 0 0 3px rgba(46, 128, 255, 0.12);
}

/* With the input margin gone the wrapper hugs the field again, so the eye
   re-centres at 50% — woo-new.css nudges it to 36% to cope with the old
   72px-tall wrapper. */
.woocommerce .tp-login-area .tp-login-card form.login .password-input .show-password-input {
	top: 50%;
}

/* --- Remember me / lost password ------------------------------------------ */

.woocommerce .tp-login-area .tp-login-card form.login .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 0;
}

/* The legacy 10px stacked on top of the flex gap, doubling the label offset. */
.woocommerce .tp-login-area .tp-login-card form.login .woocommerce-form__label-for-checkbox input {
	margin-right: 0;
}

/* --- Button --------------------------------------------------------------- */

/* Same geometry as the register button; blue rather than green keeps it paired
   with the blue lock badge in the card head. */
.woocommerce .tp-login-area .tp-login-card form.login button.button {
	display: block;
	width: 100%;
	height: auto;
	padding: 15px 24px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--tp-common-white, #fff);
	background-color: var(--tp-theme-shop, #2e80ff);
	border: 1px solid var(--tp-theme-shop, #2e80ff);
	border-radius: 12px;
	box-shadow: 0 12px 26px rgba(46, 128, 255, 0.24);
	transition: all 0.3s ease;
}

.woocommerce .tp-login-area .tp-login-card form.login button.button:hover {
	color: var(--tp-common-white, #fff);
	background-color: var(--tp-common-black);
	border-color: var(--tp-common-black);
	box-shadow: 0 12px 26px rgba(20, 26, 46, 0.22);
	transform: translateY(-2px);
}

/* ==========================================================================
   My account — lost / reset password parity
   ========================================================================== */

/* One card instead of two, so the 1000px grid width is far too wide. */
.tp-login-area.is-narrow {
	max-width: 520px;
}

/* --- Card shell ----------------------------------------------------------- */

/* The card wrapper owns the frame now; the form is just its contents. */
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password {
	max-width: none;
	padding: 0;
	margin: 0;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* --- Fields --------------------------------------------------------------- */

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password label {
	display: block;
	margin-bottom: 9px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tp-common-black);
}

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input.input-text,
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input[type="text"],
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input[type="password"] {
	width: 100%;
	height: 52px;
	padding: 0 18px;
	margin-bottom: 0;
	font-size: 15px;
	line-height: 50px;
	color: var(--tp-common-black);
	background-color: #fff;
	border: 1px solid var(--agntix-cart-line, #ECEEF1);
	border-radius: 12px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input.input-text:focus,
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input[type="text"]:focus,
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password input[type="password"]:focus {
	outline: none;
	border-color: var(--tp-theme-shop, #2e80ff);
	box-shadow: 0 0 0 3px rgba(46, 128, 255, 0.12);
}

/* The reset form's two password fields carry WooCommerce's half-width grid
   classes. They stack here, so the float and 47% width must not apply. */
.tp-login-area .tp-login-card .form-row-first,
.tp-login-area .tp-login-card .form-row-last {
	float: none;
	width: 100%;
}

/* --- Message + spacing ---------------------------------------------------- */

/* The legacy block styles every `p` in the form, including the rows. */
.woocommerce .tp-login-area .tp-login-card form.lost_reset_password p {
	margin-bottom: 18px;
	color: inherit;
	line-height: inherit;
}

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password p.tp-login-note {
	color: var(--agntix-cart-muted, #6B7280);
	line-height: 1.55;
}

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password p.tp-login-submit {
	margin-bottom: 0;
}

/* --- Button --------------------------------------------------------------- */

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password button.button {
	display: block;
	width: 100%;
	height: auto;
	padding: 15px 24px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--tp-common-white, #fff);
	background-color: var(--tp-theme-shop, #2e80ff);
	border: 1px solid var(--tp-theme-shop, #2e80ff);
	border-radius: 12px;
	box-shadow: 0 12px 26px rgba(46, 128, 255, 0.24);
	transition: all 0.3s ease;
}

.woocommerce .tp-login-area .tp-login-card form.lost_reset_password button.button:hover {
	color: var(--tp-common-white, #fff);
	background-color: var(--tp-common-black);
	border-color: var(--tp-common-black);
	box-shadow: 0 12px 26px rgba(20, 26, 46, 0.22);
	transform: translateY(-2px);
}
