/* 5thAXIS — Product Details (WooCommerce Single Product) */

.axis5th-pd {

	--axis5th-pd-title-color: #000000;
	--axis5th-pd-breadcrumb-color: #1a1a1a;
	--axis5th-pd-tagline-secondary-color: #9a9a9a;
}

/* Breadcrumb */
.axis5th-pd-breadcrumb {
    font-family: var(--e-global-typography-57475c0-font-family), Sans-serif;
    display: block;
    font-size: 16px !important;
    font-weight: 400;
	text-transform: uppercase;
	color: var(--axis5th-pd-breadcrumb-color);
	margin-bottom: 1.5rem;
}

.axis5th-pd-breadcrumb__link {
	color: var(--axis5th-pd-breadcrumb-color);
	text-decoration: none;
}

.axis5th-pd-breadcrumb__link:hover {
	color: var(--e-global-color-primary);
}

.axis5th-pd-breadcrumb__sep {
	margin: 0 0.4rem;
	color: #cccccc;
}

.axis5th-pd-breadcrumb__current {
	color: var(--e-global-color-primary);
}

/* Layout */
.axis5th-pd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

/* Gallery */
.axis5th-pd-gallery {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 1rem;
}

.axis5th-pd-gallery__main {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	overflow: hidden;
}

/* Sale flash above the product title (inc/product-flash.php). */
.axis5th-pd-flash {
	margin-bottom: 1rem;
}

.axis5th-pd-flash .axis5th-flash {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-family: var(--e-global-typography-57475c0-font-family), sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--e-global-color-primary);
}

.axis5th-flash--sale     { background: #dd2828; }
.axis5th-flash--trending { background: #18181b; }
.axis5th-flash--new      { background: #2a7a2a; }
.axis5th-flash--best-seller { background: #b45309; }
.axis5th-flash--limited  { background: #6c6c6c; }
.axis5th-flash--featured { background: #1f4e79; }

.axis5th-pd-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.2s ease;
	will-change: transform;
}

/* Hover zoom — the container already clips (overflow: hidden), so the
   scaled image magnifies in place rather than overflowing the layout.
   Only added by JS for real mouse pointers. */
.axis5th-pd-gallery__main.has-zoom {
	cursor: zoom-in;
}

@media ( prefers-reduced-motion: reduce ) {
	.axis5th-pd-gallery__main img {
		transition: none;
	}
}

.axis5th-pd-gallery__thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-height: 520px;
	overflow-y: auto;
}

.axis5th-pd-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	border: 1px solid transparent;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
}

.axis5th-pd-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.axis5th-pd-gallery__thumb.is-active {
	border-color: var(--e-global-color-primary);
}

.axis5th-pd-gallery__thumb--3d {
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
	color: #4a4a4a;
	border: 1px dashed #cccccc;
	font-size: 0.6rem;
	font-weight: 600;
	text-align: center;
	padding: 0.4rem;
}

.axis5th-pd-gallery__thumb--3d:hover {
	border-color: var(--e-global-color-primary);
	color: var(--e-global-color-primary);
}

/* Thumbs past the visible limit — reachable through the "+N more"
   lightbox rather than sitting in the strip, which made the overlay's
   count meaningless. */
.axis5th-pd-gallery__thumb--hidden,
.axis5th-pd-gallery__thumb[hidden] {
	display: none;
}

.axis5th-pd-gallery__thumb--more {
	position: relative;
}

.axis5th-pd-gallery__thumb--more::after {
	content: '+' attr(data-axis5th-more-count) ' more';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 700;
	text-align: center;
	padding: 0.25rem;
}

/* Badges */
/*
 * TEMPORARILY HIDDEN (client request, Oct 2026): the badge row above the
 * product title (category + attribute badges). Delete this rule to bring it
 * back — or switch the badges off per widget in Elementor instead
 * (Product Details widget > Badges).
 */
.axis5th-pd .axis5th-pd-badges {
	display: none !important;
}

.axis5th-pd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.axis5th-pd-badge {
	display: inline-flex;
	align-items: center;
	background: #FDEDED;
	color: #4B5563;
    font-family: var(--e-global-typography-57475c0-font-family), Sans-serif;
    display: block;
    font-size: 14px !important;
    font-weight: 400;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
}
.axis5th-pd-badge:first-child{
	background: var(--e-global-color-primary);
	color: #E5E7EB;
}

.axis5th-pd-badge--status {
	background: var(--e-global-color-primary);
	color: #ffffff;
}

/* Title */
.axis5th-pd-title {
	font-size: clamp(1.75rem, 3vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--axis5th-pd-title-color);
	margin: 0 0 1rem;
}

.axis5th-pd-tagline {
	display: block;
	color: var(--e-global-color-primary);
}

.axis5th-pd-tagline-secondary {
	display: block;
	font-size: 0.6em;
	font-weight: 600;
	text-transform: none;
	color: var(--axis5th-pd-tagline-secondary-color);
}

/* Meta */
.axis5th-pd-meta {
	font-size: 18px;
	font-weight: 500;
	color: #6c6c6c;
	margin: 0 0 1rem;
}

.axis5th-pd-meta__sep {
	margin: 0 0.5rem;
}

.axis5th-pd-meta__category a {
	color: var(--e-global-color-primary);
	text-decoration: underline;
}

/* Price / Stock */
.axis5th-pd-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-bottom: 1.25rem;
}

.axis5th-pd-price {
	font-size: 26px;
	font-weight: 600;
	color: var(--e-global-color-accent);
}

.axis5th-pd-price ins {
	text-decoration: none;
}

.axis5th-pd-price del {
	color: #9a9a9a;
	font-weight: 400;
	font-size: 1rem;
	margin-right: 0.5rem;
}

.axis5th-pd-stock {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: var(--e-global-color-primary);
}

.axis5th-pd-stock .in-stock {
	color: var(--e-global-color-primary) !important;
}

.axis5th-pd-stock .out-of-stock {
	color: #9a9a9a !important;
}

/* Short description */
.axis5th-pd-short-desc {
	font-size: 18px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--e-global-color-text);
	margin-bottom: 1.5rem;
}

.axis5th-pd-short-desc ul {
	margin: 0;
	padding-left: 1.1rem;
}

.axis5th-pd-short-desc li {
	margin-bottom: 0.4rem;
}

/* Actions */
.axis5th-pd-actions {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
}
/* Stock message above Add to cart, with a dot in front to draw the eye. */
.axis5th-pd-cart-form .stock {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}

.axis5th-pd-cart-form .stock::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px color-mix( in srgb, currentColor 22%, transparent );
}

 .stock.available-on-backorder,
 .stock.in-stock{
	color: var(--e-global-color-primary) !important;
	font-size: 18px !important;
}
 .stock.available-on-backorder::before,
 .stock.in-stock::before{
	color: #008000;
}

.axis5th-pd-cart-form .cart {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
	margin: 0 !important;
}

.axis5th-pd-cart-form .quantity {
	display: flex;
	align-items: stretch;
	float: none;
}

.axis5th-pd-qty-btn {
    width: 38px;
    height: 38px;
	padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	color: var(--e-global-color-accent);
	font-size: 1.1rem;
	cursor: pointer;
	border: 1px solid var(--e-global-color-primary);
}

.axis5th-pd-qty-btn:hover {
	color: var(--e-global-color-primary);
}

.axis5th-pd-cart-form .qty {
	width: 44px;
	border: 0;
	text-align: center;
	-moz-appearance: textfield;
	font-size: 18px;
	padding: 0;
	color: #6B7280;
}

.axis5th-pd-cart-form .qty::-webkit-inner-spin-button,
.axis5th-pd-cart-form .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.axis5th-pd-cart-form .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	gap: 60px;
	background: var(--e-global-color-primary) !important;
	color: #ffffff !important;
	border: 0 !important;
	padding: 14px 16px !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	cursor: pointer;
	white-space: nowrap;
	border-radius: 0 !important;
	margin-right: 0 !important;
}

.axis5th-pd-cart-form .single_add_to_cart_button::after {
	content: '';
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.axis5th-pd-cart-form a.add-request-quote-button.button{
	margin-top: 0;
    background: var(--e-global-color-primary) !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    cursor: pointer;
    border-radius: 0 !important;
}
.axis5th-pd-cart-form .yith-ywraq-add-to-quote{
	margin-top: 0 !important;
}

.axis5th-pd-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.axis5th-pd-btn--outline {
	background: transparent;
	color: var(--e-global-color-accent);
	border: 1px solid var(--e-global-color-primary);
	font-size: 14px;
	font-weight: 500;
}

.axis5th-pd-btn--outline:hover {
	background: var(--e-global-color-primary);
	color: #ffffff;
}

/* ── Request a Quote button (plugin-rendered) ─────────────────────────────
   The button inside .axis5th-pd-quote is YITH Request-a-Quote's own — the
   widget calls its renderer so the AJAX add, the "already in your list"
   swap and the browse link all behave exactly as they do on production.
   These rules only restyle it to match the outline button beside it.

   Selectors name the plugin's classes because that's what its template
   outputs; the wrapper keeps them scoped to this widget so the plugin's
   button is left alone everywhere else. The colour flags are needed because
   the plugin writes its own palette inline from its settings. */

.axis5th-pd-quote {
	display: inline-flex;
	align-items: center;
}

/* The plugin nests the link inside two layout divs of its own.
   No `display` on .yith-ywraq-add-button on purpose: the plugin toggles that
   element inline — hiding it once the product is on the quote list and
   showing the "already in your list" message instead — and setting display
   here would be one plugin change away from forcing a hidden button visible. */
.axis5th-pd-quote .yith-ywraq-add-to-quote {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.axis5th-pd-quote .yith-ywraq-add-button {
	margin: 0;
}

.axis5th-pd-quote a.add-request-quote-button.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 14px 16px !important;
	background: transparent !important;
	color: var( --e-global-color-accent ) !important;
	border: 1px solid var( --e-global-color-primary ) !important;
	border-radius: 0 !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.axis5th-pd-quote .add-request-quote-button:hover {
	background: var( --e-global-color-primary ) !important;
	color: #ffffff !important;
}

/* Shown once the product is already on the list, in place of the button. */
.axis5th-pd-quote .yith_ywraq_add_item_response_message,
.axis5th-pd-quote .yith_ywraq_add_item_browse_message {
	font-size: 0.875rem;
	line-height: 1.4;
}

.axis5th-pd-quote .yith_ywraq_add_item_browse_message a {
	color: var( --e-global-color-primary );
	text-decoration: underline;
}

/* The plugin emits a float-clearing div that would otherwise break the
   actions row's flex layout. */
.axis5th-pd-actions .clear {
	display: none;
}

.axis5th-pd-btn--ghost {
	background: #f5f5f5;
	color: #4a4a4a;
	border: 1px solid #e5e5e5;
}

.axis5th-pd-btn--ghost:hover {
	border-color: var(--e-global-color-primary);
	color: var(--e-global-color-primary);
}

/* Responsive */
@media (max-width: 900px) {
	.axis5th-pd-layout {
		grid-template-columns: 1fr;
	}

	.axis5th-pd-gallery {
		grid-template-columns: 1fr;
	}

	.axis5th-pd-gallery__main {
		grid-column: 1;
		grid-row: 1;
	}

	.axis5th-pd-gallery__thumbs {
		grid-column: 1;
		grid-row: 2;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
		overflow-y: visible;
	}

	.axis5th-pd-gallery__thumb {
		flex: 0 0 72px;
	}
}

@media (max-width: 480px) {
	.axis5th-pd-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.axis5th-pd-cart-form .cart {
		flex-direction: column;
	}
	.axis5th-pd-cart-form .single_add_to_cart_button{
		width: 100%;
		justify-content: center;
		gap: 20px;
	}
	.axis5th-pd-quote .yith-ywraq-add-to-quote{
		width: 100%;
	    margin-top: 0 !important;
	}
	.axis5th-pd-quote a.add-request-quote-button.button{
		width: 100%;
		justify-content: center;
		margin-top: 0;
	}
	.axis5th-pd-actions{
		gap: 6px;
	}
}


/* ── Gallery lightbox ─────────────────────────────────────────────── */

.axis5th-pd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp( 12px, 4vw, 48px );
	background: rgba( 0, 0, 0, 0.85 );
}

.axis5th-pd-lightbox[hidden] {
	display: none;
}

.axis5th-pd-lightbox__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp( 8px, 2vw, 24px );
	width: 100%;
	max-width: 1100px;
}

.axis5th-pd-lightbox__figure {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	text-align: center;
}

.axis5th-pd-lightbox__figure img {
	display: block;
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	margin: 0 auto;
}

.axis5th-pd-lightbox__count {
	margin-top: 12px;
	font-size: 0.8rem;
	color: rgba( 255, 255, 255, 0.75 );
}

.axis5th-pd-lightbox__nav,
.axis5th-pd-lightbox__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba( 255, 255, 255, 0.1 );
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	color: #ffffff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.axis5th-pd-lightbox__nav {
	width: 48px;
	height: 48px;
	font-size: 30px;
	line-height: 1;
}

.axis5th-pd-lightbox__close {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 40px;
	height: 40px;
	font-size: 24px;
	line-height: 1;
	z-index: 1;
}

.axis5th-pd-lightbox__nav:hover,
.axis5th-pd-lightbox__nav:focus-visible,
.axis5th-pd-lightbox__close:hover,
.axis5th-pd-lightbox__close:focus-visible {
	background: rgba( 255, 255, 255, 0.25 );
}

body.axis5th-pd-lightbox-open {
	overflow: hidden;
}

@media ( max-width: 600px ) {
	.axis5th-pd-lightbox__nav {
		width: 38px;
		height: 38px;
		font-size: 24px;
	}

	.axis5th-pd-lightbox__close {
		top: -4px;
		right: -4px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.axis5th-pd-lightbox__nav,
	.axis5th-pd-lightbox__close {
		transition: none;
	}
}
