/* =========================================================================
 * IVONIX — Single product page (buy box + layout rebalance)
 * Loaded only on is_product(). Brand navy #1a56db.
 * Companion hooks live in functions.php (search "ivonix_pdp_").
 * ====================================================================== */

.single-product {
	--ivx-navy: #1a56db;
	--ivx-ink: #14161c;
	--ivx-muted: #6b7280;
	--ivx-line: #e3e6ee;
	--ivx-green: #1a7f37;
}

/* ---------------- GALLERY: stop the 702px square ---------------- */
.single-product div.product .woocommerce-product-gallery {
	background: #fff;
	border: 1px solid var(--ivx-line);
	border-radius: 10px;
	padding: 18px;
}
/* NOTE: do NOT set display/width on .woocommerce-product-gallery__wrapper or on
 * the slide images. Multi-image galleries run FlexSlider, which floats the
 * slides and translates the wrapper as a track — flexing it or forcing
 * width:auto collapses the first slide and blanks the main image. Constrain
 * height only, and let object-fit letterbox inside the theme's own box. */
.single-product div.product .woocommerce-product-gallery__image {
	text-align: center;
}
.single-product div.product .woocommerce-product-gallery__image img {
	max-height: 440px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* ---------------- SUMMARY / BUY BOX ---------------- */
.single-product div.product .summary.entry-summary {
	display: flex;
	flex-direction: column;
}

/* Category · Brand eyebrow above the title */
.ivx-pdp-eyebrow {
	order: -1;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ivx-muted);
	margin: 0 0 8px;
}
.ivx-pdp-eyebrow a { color: var(--ivx-navy); text-decoration: none; }
.ivx-pdp-eyebrow a:hover { text-decoration: underline; }
.ivx-pdp-eyebrow span { color: #c3c8d4; margin: 0 4px; }

.single-product div.product .product_title.entry-title {
	font-size: 25px;
	line-height: 1.28;
	margin: 0 0 12px;
	color: var(--ivx-ink);
}

/* Price — dominant, navy, with a quiet Ex-VAT chip */
.single-product div.product p.price {
	margin: 0 0 6px;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}
.single-product div.product p.price .amount,
.single-product div.product p.price bdi {
	font-size: 30px;
	font-weight: 800;
	color: var(--ivx-navy);
	letter-spacing: -.4px;
}
.single-product div.product p.price del { font-size: 15px; opacity: .55; font-weight: 400; }
.single-product div.product p.price ins { text-decoration: none; }
.single-product div.product p.price .woocommerce-price-suffix {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--ivx-muted);
	background: #f1f3f8;
	border: 1px solid var(--ivx-line);
	border-radius: 3px;
	padding: 2px 6px;
	position: relative;
	top: -3px;
}

/* Stock line */
.ivx-pdp-stock { font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.ivx-pdp-stock.in { color: var(--ivx-green); }
.ivx-pdp-stock.out { color: #b42318; }

.single-product div.product .woocommerce-product-details__short-description {
	font-size: 14px;
	line-height: 1.6;
	color: #4b5160;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ivx-line);
}
.single-product div.product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* ---------------- TRUST STRIP ---------------- */
.ivx-pdp-trust {
	margin: 18px 0 0;
	border: 1px solid var(--ivx-line);
	border-radius: 10px;
	background: #fafbfd;
	padding: 6px 16px;
}
.ivx-pdp-trust-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ivx-line);
}
.ivx-pdp-trust-item:last-child { border-bottom: 0; }
.ivx-pdp-trust-item svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--ivx-navy);
}
.ivx-pdp-trust-txt { line-height: 1.4; }
.ivx-pdp-trust-txt strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ivx-ink);
}
.ivx-pdp-trust-txt span { font-size: 12.5px; color: var(--ivx-muted); }
.ivx-pdp-trust-txt a { color: var(--ivx-navy); text-decoration: underline; }

/* ---------------- TABS ---------------- */
.single-product .woocommerce-tabs ul.tabs { text-align: left; padding-left: 0; }
.single-product .woocommerce-tabs ul.tabs li a {
	font-size: 15px;
	font-weight: 700;
	color: var(--ivx-muted);
}
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--ivx-navy); }

/* Category/Brand already shown in the eyebrow — hide the stranded duplicate */
.single-product .product_meta { display: none; }

/* ---------------- FLOATING CALL-BACK BAR ---------------- */
/* Clears the 60px WhatsApp bubble (fixed at right:20px + 8px inner offset). */
@media (min-width: 992px) {
	.single-product .call-back-feature { right: 104px !important; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
	.single-product div.product .woocommerce-product-gallery { padding: 12px; }
	.single-product div.product .woocommerce-product-gallery__image img { max-height: 320px; }
	.single-product div.product .product_title.entry-title { font-size: 21px; }
	.single-product div.product p.price .amount,
	.single-product div.product p.price bdi { font-size: 26px; }
}
