/*
 * ARDIGI Product Page — Technical Compact
 * Version 1.0.10
 *
 * RTL-first presentation. WooCommerce remains owner of purchase logic.
 */

.single-product .ardigi-product {
	--ardigi-panel-bg: #fff;
	--ardigi-panel-line: #dbe2ea;
	--ardigi-muted: #667085;
	--ardigi-blue: #2563eb;
	--ardigi-blue-soft: #eaf2ff;
	--ardigi-green: #16a34a;
	--ardigi-radius: 12px;
	--ardigi-gallery-height: clamp(360px, 27vw, 460px);

	direction: rtl;
	text-align: right;
	width: 100%;
	margin-inline: auto;
	color: #101827;
	font-family: "Vazirmatn", "IRANSansX", "IRANYekanX", Tahoma, Arial, sans-serif;
}

/*
 * Force the brand font on ARDIGI's own text content, but never on
 * Woodmart's own UI chrome (anything with a "wd-" prefixed class — nav
 * arrows, carousels, action buttons, etc.) or on ::before/::after, since
 * that is exactly where Woodmart's icon glyphs render. The previous
 * blanket `* , *::before, *::after { font-family: inherit }` silently
 * broke every Woodmart icon glyph inside the product page (it forced the
 * Persian text font onto icon-font characters too, so glyphs like the
 * gallery's prev/next arrows rendered as garbled placeholder text instead
 * of an icon).
 */
.single-product .ardigi-product *:not([class^="wd-"]):not([class*=" wd-"]) {
	font-family: inherit;
}

.single-product .ardigi-product-top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 14px;
	/*
	 * Stretch (not start) so the right-hand side column is exactly as
	 * tall as the gallery column — whose own bottom edge is the trust
	 * box's bottom edge. Combined with the flex/stretch rules below, this
	 * keeps the quick-specs panel's and the customization box's bottom
	 * edges level with the trust box's bottom edge.
	 */
	align-items: stretch;
}

.single-product .ardigi-gallery-column,
.single-product .ardigi-product-side,
.single-product .ardigi-quick-column {
	min-width: 0;
}

.single-product .ardigi-product-side {
	display: grid;
	grid-template-columns: minmax(250px, 1fr) minmax(285px, 1.08fr);
	gap: 12px;
	align-items: stretch;
}

.single-product .ardigi-quick-column {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.single-product .ardigi-quick-column .ardigi-quick-specs {
	flex: 1 1 auto;
	min-height: 0;
}

.single-product .ardigi-panel {
	background: var(--ardigi-panel-bg);
	border: 1px solid var(--ardigi-panel-line);
	border-radius: var(--ardigi-radius);
	box-shadow: none;
}

.single-product .ardigi-gallery-panel,
.single-product .ardigi-quick-specs,
.single-product .ardigi-config-panel,
.single-product .ardigi-full-specs,
.single-product .ardigi-review-copy,
.single-product .ardigi-related-wrap,
.single-product .ardigi-reviews-wrap {
	padding: 18px;
}

/*
 * Product title has its own bordered box (same treatment as the other
 * panels). It sits at the top of the quick-spec column; grid items are
 * always flush with the start of their row regardless of align-items, so
 * its top edge stays level with the gallery panel and the customization
 * box (now that the row also stretches them to a matching bottom edge —
 * see .ardigi-product-top above); it shares the quick-specs panel's width
 * because both live in the same column.
 */
.single-product .ardigi-product-heading {
	margin: 0 0 12px;
	padding: 18px;
}

.single-product .ardigi-product-heading .product_title {
	margin: 0;
	color: inherit;
	font-size: clamp(20px, 1.45vw, 27px);
	font-weight: 700;
	line-height: 1.65;
}

/* Gallery: keep Woodmart functionality but reduce the oversized visual height. */
.single-product .ardigi-gallery-panel .woocommerce-product-gallery,
.single-product .ardigi-gallery-panel .product-images {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__image {
	border-radius: 9px;
	overflow: hidden;
	background: #f8fafc;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	height: var(--ardigi-gallery-height);
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__image img {
	display: block;
	width: auto !important;
	max-width: 100%;
	max-height: calc(var(--ardigi-gallery-height) - 12px);
	margin: auto;
	object-fit: contain;
}

/*
 * Gallery controls (zoom + prev/next), v4.
 *
 * DevTools inspection on the live site confirmed Woodmart renders this
 * gallery with Swiper, using its OWN classes — not WooCommerce core's
 * `.woocommerce-product-gallery__trigger` / flexslider markup our v1/v2
 * rules targeted, which is why those rules never matched anything here.
 * The real structure is:
 *   .wd-nav-arrows > .wd-btn-arrow.wd-prev / .wd-btn-arrow.wd-next
 *     > .wd-arrow-inner  (the glyph itself)
 *
 * The garbled "FI 14 / FI 13"-style boxes were traced to a separate bug:
 * product.css previously forced `font-family: inherit` (the ARDIGI
 * brand/Persian font) onto every element AND ::before/::after
 * pseudo-element on the page, including Woodmart's own icon glyphs — so
 * the arrow icon's character rendered in the wrong font instead of as an
 * icon. That rule is now scoped to skip anything with a `wd-` prefixed
 * class (see the top of this file), so Woodmart's own icon font/graphics
 * render correctly again on their own — including the arrow glyph itself,
 * so it no longer needs (and must NOT also get) a second icon drawn on
 * top of it. v3 of this block added exactly that redundant icon as a
 * belt-and-suspenders measure before the font-family root cause was
 * confirmed; with Woodmart's own glyph now rendering correctly, that
 * second icon only doubled up on top of it, which is why the arrows
 * looked like more than a single chevron. It has been removed — only
 * Woodmart's own single-arrow glyph remains, re-skinned via its own CSS
 * custom-property API (--wd-arrow-bg, --wd-arrow-color, etc.) so
 * hover/disabled states Woodmart's JS already manages keep working, for a
 * clean white circular button consistent with the rest of the page.
 *
 * The zoom control is left alone here on purpose (only the prev/next
 * arrows are restyled) — see the best-effort zoom-button rule further
 * below.
 *
 * The older WooCommerce-core / flexslider / slick / swiper-default /
 * flickity selectors are kept as a harmless fallback: they simply won't
 * match anything on a Swiper-based Woodmart gallery like this one, but
 * cost nothing and cover stores where Woodmart is configured differently.
 */
.single-product .ardigi-gallery-panel .wd-nav-arrows {
	--wd-arrow-size: 34px;
	--wd-arrow-bg: #fff;
	--wd-arrow-color: #333333;
	--wd-arrow-brd: 1px;
	--wd-arrow-brd-color: #e3e8ef;
	--wd-arrow-shadow: 0 2px 8px rgba(16, 24, 39, .18);
	--wd-arrow-radius: 50%;
	z-index: 21;
}

.single-product .ardigi-gallery-panel .wd-btn-arrow:hover {
	--wd-arrow-bg: #f6f8fa;
	--wd-arrow-shadow: 0 4px 12px rgba(16, 24, 39, .24);
}

.single-product .ardigi-gallery-panel .wd-btn-arrow.wd-disabled {
	--wd-arrow-bg: #fff;
	opacity: .4;
}

/*
 * Any Woodmart "zoom" / additional-media action button. The exact markup
 * wasn't visible in the inspected DOM snippet (it was inside a collapsed
 * `.product-additional-galleries` node) — this is a best-effort, additive
 * style that only takes effect if one of these common Woodmart class
 * names is present, and changes nothing if none of them match. Send a
 * screenshot with `.product-additional-galleries` expanded in DevTools if
 * this still needs adjusting.
 */
.single-product .ardigi-gallery-panel .wd-action-btn,
.single-product .ardigi-gallery-panel .product-additional-galleries .wd-zoom-btn,
.single-product .ardigi-gallery-panel [class*="zoom-btn"] {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e3e8ef;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(16, 24, 39, .18);
}

/* Legacy fallback for non-Swiper Woodmart gallery configurations. */
.single-product .ardigi-gallery-panel .woocommerce-product-gallery__wrapper,
.single-product .ardigi-gallery-panel .woocommerce-product-gallery__image,
.single-product .ardigi-gallery-panel .flex-viewport,
.single-product .ardigi-gallery-panel .product-images {
	position: relative;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__trigger,
.single-product .ardigi-gallery-panel .flex-direction-nav a,
.single-product .ardigi-gallery-panel .slick-arrow,
.single-product .ardigi-gallery-panel .swiper-button-next,
.single-product .ardigi-gallery-panel .swiper-button-prev,
.single-product .ardigi-gallery-panel .flickity-button {
	position: absolute !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border: 1px solid #e3e8ef !important;
	border-radius: 50% !important;
	background-color: #fff !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 15px 15px !important;
	box-shadow: 0 2px 8px rgba(16, 24, 39, .18) !important;
	opacity: 1 !important;
	overflow: hidden;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-indent: -9999px !important;
	z-index: 20;
	transition: background-color .15s ease, box-shadow .15s ease;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__trigger::before,
.single-product .ardigi-gallery-panel .flex-direction-nav a::before,
.single-product .ardigi-gallery-panel .slick-arrow::before,
.single-product .ardigi-gallery-panel .flickity-button::before,
.single-product .ardigi-gallery-panel .swiper-button-next::after,
.single-product .ardigi-gallery-panel .swiper-button-prev::after {
	content: none !important;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__trigger:hover,
.single-product .ardigi-gallery-panel .flex-direction-nav a:hover,
.single-product .ardigi-gallery-panel .slick-arrow:hover,
.single-product .ardigi-gallery-panel .swiper-button-next:hover,
.single-product .ardigi-gallery-panel .swiper-button-prev:hover,
.single-product .ardigi-gallery-panel .flickity-button:hover {
	background-color: #f6f8fa !important;
	box-shadow: 0 4px 12px rgba(16, 24, 39, .24) !important;
}

.single-product .ardigi-gallery-panel .woocommerce-product-gallery__trigger {
	top: .8em;
	left: .8em;
	right: auto;
	z-index: 21;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6' fill='none' stroke='%23333333' stroke-width='2'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20' stroke='%23333333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.single-product .ardigi-gallery-panel .flex-direction-nav a,
.single-product .ardigi-gallery-panel .slick-arrow,
.single-product .ardigi-gallery-panel .flickity-button,
.single-product .ardigi-gallery-panel .swiper-button-next,
.single-product .ardigi-gallery-panel .swiper-button-prev {
	top: 50%;
	transform: translateY(-50%);
}

.single-product .ardigi-gallery-panel .flex-direction-nav .flex-prev,
.single-product .ardigi-gallery-panel .slick-prev,
.single-product .ardigi-gallery-panel .flickity-prev-next-button.previous,
.single-product .ardigi-gallery-panel .swiper-button-prev {
	right: 10px;
	left: auto;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23333333' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.single-product .ardigi-gallery-panel .flex-direction-nav .flex-next,
.single-product .ardigi-gallery-panel .slick-next,
.single-product .ardigi-gallery-panel .flickity-prev-next-button.next,
.single-product .ardigi-gallery-panel .swiper-button-next {
	left: 10px;
	right: auto;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='%23333333' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.single-product .ardigi-gallery-panel .flex-control-nav,
.single-product .ardigi-gallery-panel .flickity-page-dots {
	bottom: 8px;
	z-index: 15;
}

/* Trust strip */
.single-product .ardigi-trust-box {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 12px;
	overflow: hidden;
	padding: 0;
}

.single-product .ardigi-trust-item {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 8px;
	border-inline-end: 1px solid var(--ardigi-panel-line);
}

.single-product .ardigi-trust-item:last-child {
	border-inline-end: 0;
}

.single-product .ardigi-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	color: var(--ardigi-blue);
	background: linear-gradient(145deg, #eff6ff, #dbeafe);
	font-weight: 800;
	font-size: 15px;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}

.single-product .ardigi-trust-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.single-product .ardigi-trust-copy strong {
	font-size: 12px;
	line-height: 1.55;
}

.single-product .ardigi-trust-copy small {
	margin-top: 2px;
	color: var(--ardigi-muted);
	font-size: 10px;
	line-height: 1.5;
}

/* Panel headings */
.single-product .ardigi-panel-heading {
	margin-bottom: 12px;
}

.single-product .ardigi-panel-heading h2,
.single-product .ardigi-section-heading h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	font-weight: 800;
	color: #101827;
}

/* Quick specs: six fixed, composed technical rows. */
.single-product .ardigi-quick-spec-list {
	display: flex;
	flex-direction: column;
}

.single-product .ardigi-quick-spec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--ardigi-panel-line);
	font-family: inherit;
}

.single-product .ardigi-quick-spec-row:last-child {
	border-bottom: 0;
}

.single-product .ardigi-quick-spec-row span,
.single-product .ardigi-quick-spec-row strong {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.single-product .ardigi-quick-spec-row span {
	flex: 0 0 38%;
	color: var(--ardigi-muted);
	font-weight: inherit;
}

.single-product .ardigi-quick-spec-row strong {
	flex: 1 1 auto;
	max-width: 62%;
	color: inherit;
	font-weight: 600;
	text-align: left;
	direction: ltr;
	unicode-bidi: plaintext;
}


/* Native WooCommerce breadcrumb: ARDIGI only supplies spacing. */
.single-product .ardigi-breadcrumb-wrap {
	width: 100%;
	margin: 0 0 14px;
}

.single-product .ardigi-breadcrumb-wrap .woocommerce-breadcrumb {
	margin: 0;
}

/*
 * Product customization accordion. The option plugin still owns all fields
 * and logic. The open panel is positioned absolutely (floating over the
 * page) so opening it never increases the purchase box's own height.
 */
.single-product .ardigi-options-wrapper {
	position: relative;
	margin: 12px 0 0;
}

.single-product .ardigi-options-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--ardigi-panel-line);
	border-radius: 10px;
	background: #f8fafc;
	color: #111827;
	text-align: right;
	cursor: pointer;
	font: inherit;
}

.single-product .ardigi-options-wrapper .ardigi-options-toggle[aria-expanded="true"] {
	border-color: var(--ardigi-blue);
	background: var(--ardigi-blue-soft);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.single-product .ardigi-options-toggle:hover {
	background: #f1f5f9;
}

.single-product .ardigi-options-toggle-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.single-product .ardigi-options-toggle-copy strong {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
}

.single-product .ardigi-options-toggle-copy small {
	margin-top: 2px;
	color: var(--ardigi-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
}

.single-product .ardigi-options-toggle-icon {
	position: relative;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border: 1px solid var(--ardigi-panel-line);
	border-radius: 50%;
	background: #fff;
}

.single-product .ardigi-options-toggle-icon::before,
.single-product .ardigi-options-toggle-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}

.single-product .ardigi-options-toggle-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.single-product .ardigi-options-toggle[aria-expanded="true"] .ardigi-options-toggle-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.single-product .ardigi-options-content {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 60;
	max-height: min(60vh, 460px);
	overflow-y: auto;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--ardigi-blue);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 38px -8px rgba(15, 23, 42, .22);
	animation: ardigi-options-in .15s ease;
}

.single-product .ardigi-options-content--collapsed {
	display: none !important;
}

@keyframes ardigi-options-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.single-product .ardigi-config-panel .ardigi-options-content .tm-extra-product-options-inner,
.single-product .ardigi-config-panel .ardigi-options-content .tm-extra-product-options-fields {
	width: 100%;
}

/* Purchase/configurator panel: only price, native cart/options and expert contact. */
.single-product .ardigi-summary {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.single-product .ardigi-price-row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin: 10px 0 14px;
	max-width: 100%;
}

.single-product .ardigi-price-row .price {
	margin: 0;
	padding-top: 6px;
	color: var(--ardigi-blue);
	font-size: 21px;
	font-weight: 800;
}

/*
 * Sale countdown card — four boxes (days / hours / minutes / seconds),
 * each with the number on top and its Persian label underneath. Sits next
 * to the price in its own flex row with wrap enabled (see
 * .ardigi-price-row above), so on a narrow purchase box it simply drops
 * to its own line instead of stretching the price or disturbing any
 * other element's width.
 */
.single-product .ardigi-sale-countdown {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	padding: 7px 10px 8px;
	border: 1px solid #ffd7ad;
	border-radius: 12px;
	background: linear-gradient(160deg, #fff8f2, #ffe9d5);
	box-shadow: 0 3px 8px -3px rgba(194, 65, 12, .28);
}

.single-product .ardigi-sale-countdown-label {
	color: #c2410c;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.single-product .ardigi-sale-countdown-units {
	display: flex;
	align-items: stretch;
	max-width: 100%;
	overflow: hidden;
}

.single-product .ardigi-sale-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0 9px;
	min-width: 28px;
}

.single-product .ardigi-sale-countdown-unit + .ardigi-sale-countdown-unit {
	border-inline-start: 1px solid #ffd7ad;
}

.single-product .ardigi-sale-countdown-number {
	color: #9a3412;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.single-product .ardigi-sale-countdown-unit-label {
	color: #b45f2f;
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.single-product .ardigi-summary form.cart {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	margin-bottom: 0;
}

.single-product .ardigi-summary form.cart .quantity {
	flex: 0 0 auto;
	margin: 0;
}

.single-product .ardigi-summary .quantity input.qty {
	min-height: 44px;
	border-radius: 8px;
	border-color: var(--ardigi-panel-line);
}

.single-product .ardigi-summary .single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 44px;
	margin: 0 !important;
	border-radius: 8px;
	background: var(--ardigi-blue);
	box-shadow: none;
	font-weight: 800;
}

.single-product .ardigi-summary .single_add_to_cart_button:hover {
	background: #1d4ed8;
}

/* Woodmart "Buy now" must not compete with ARDIGI's sales-contact action. */
.single-product .ardigi-config-panel .wd-buy-now-btn,
.single-product .ardigi-config-panel .woodmart-buy-now-btn,
.single-product .ardigi-config-panel .buy-now-btn,
.single-product .ardigi-config-panel [class*="buy-now"] {
	display: none !important;
}

.single-product .ardigi-summary .variations,
.single-product .ardigi-summary .variations tbody,
.single-product .ardigi-summary .variations tr,
.single-product .ardigi-summary .variations th,
.single-product .ardigi-summary .variations td {
	text-align: right;
}

.single-product .ardigi-summary select,
.single-product .ardigi-summary input:not([type="checkbox"]):not([type="radio"]),
.single-product .ardigi-summary textarea {
	border-radius: 8px;
}

/* Defensive cleanup if a Woodmart extension injects legacy summary extras. */
.single-product .ardigi-summary .product_meta,
.single-product .ardigi-summary .product-share,
.single-product .ardigi-summary .wd-product-share,
.single-product .ardigi-summary .woodmart-social-icons,
.single-product .ardigi-summary .social-icons,
.single-product .ardigi-summary .wd-action-btn,
.single-product .ardigi-summary .compare,
.single-product .ardigi-summary .wd-visits-count,
.single-product .ardigi-summary .wd-product-visits,
.single-product .ardigi-summary .product-visits,
.single-product .ardigi-summary [class*="visits-count"],
.single-product .ardigi-summary [class*="visitor-count"] {
	display: none !important;
}

/*
 * Generic containment for option/configurator plugins.
 * Their existing forms and validation remain untouched.
 */
.single-product .ardigi-config-panel .tm-extra-product-options,
.single-product .ardigi-config-panel .tc-extra-product-options,
.single-product .ardigi-config-panel .tm-extra-product-options-fields,
.single-product .ardigi-config-panel .cpf-section {
	max-width: 100%;
}

.single-product .ardigi-sales-contact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 180px;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #86bf95;
	border-radius: 8px;
	background: #20a84a;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.single-product .ardigi-whatsapp-icon {
	flex: 0 0 auto;
	display: block;
}

.single-product .ardigi-trust-icon svg {
	display: block;
}

.single-product .ardigi-sales-contact:hover {
	border-color: #16843a;
	background: #168f3f;
	color: #fff;
}

/* When JS has not moved the button yet, keep it usable below the form. */
.single-product .ardigi-config-panel > .ardigi-sales-contact {
	width: 100%;
	margin-top: 10px;
}

/* Two parallel middle sections */
.single-product .ardigi-product-middle {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 14px;
	margin-top: 14px;
	align-items: stretch;
}

.single-product .ardigi-full-specs,
.single-product .ardigi-review-copy {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.single-product .ardigi-section-heading {
	flex: 0 0 auto;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ardigi-panel-line);
}

/*
 * Device specs never scroll — the table renders at its natural full
 * height, and (via `align-items: stretch` above) that height becomes the
 * reference the review column next to it is matched to.
 */
.single-product .ardigi-attributes-wrap {
	overflow: visible;
}

/*
 * Review column: matches the specs column's height on desktop/tablet
 * (grid stretch, aided by `min-height: 0` + `overflow-y: auto` below,
 * which keeps this column from forcing the row taller than the specs
 * column wants to be) and only scrolls internally if the review text is
 * longer than that height. On mobile the two sections stack into separate
 * rows instead of sharing one, so a fixed cap takes over there — see the
 * mobile media query.
 */
.single-product .ardigi-review-content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-inline-end: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--ardigi-panel-line) transparent;
}

.single-product .ardigi-review-content::-webkit-scrollbar {
	width: 6px;
}

.single-product .ardigi-review-content::-webkit-scrollbar-track {
	background: transparent;
}

.single-product .ardigi-review-content::-webkit-scrollbar-thumb {
	background-color: var(--ardigi-panel-line);
	border-radius: 999px;
}

.single-product .ardigi-attributes-wrap table {
	width: 100%;
	margin: 0;
	border: 0;
}

.single-product .ardigi-attributes-wrap table th,
.single-product .ardigi-attributes-wrap table td {
	padding: 9px 8px;
	border: 0;
	border-bottom: 1px solid #edf0f3;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	text-align: right;
	vertical-align: top;
}

.single-product .ardigi-attributes-wrap table th {
	width: 34%;
	color: var(--ardigi-muted);
	font-weight: 500;
}

.single-product .ardigi-review-content {
	color: #465164;
	font-size: 13px;
	line-height: 2;
}

.single-product .ardigi-review-content > :first-child {
	margin-top: 0;
}

.single-product .ardigi-review-content > :last-child {
	margin-bottom: 0;
}

/* Related first, then reviews; both are full-width blocks. */
.single-product .ardigi-product-bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	margin-top: 14px;
}

.single-product .ardigi-related-wrap,
.single-product .ardigi-reviews-wrap {
	width: 100%;
}

.single-product .ardigi-related-wrap > .related {
	margin: 0;
}

.single-product .ardigi-related-wrap > .related > h2 {
	display: none;
}

.single-product .ardigi-related-wrap ul.products {
	margin-bottom: 0;
}

.single-product .ardigi-related-wrap .product-grid-item,
.single-product .ardigi-related-wrap li.product {
	border-radius: 10px;
}

.single-product .ardigi-reviews-wrap #reviews {
	margin: 0;
}

.single-product .ardigi-reviews-wrap #comments > h2,
.single-product .ardigi-reviews-wrap .woocommerce-Reviews-title {
	display: none;
}

.single-product .ardigi-reviews-wrap .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-product .ardigi-reviews-wrap .comment_container {
	padding-block: 10px;
	border-bottom: 1px solid #edf0f3;
}

.single-product .ardigi-reviews-wrap #review_form_wrapper {
	margin-top: 14px;
}

.single-product .ardigi-empty-state {
	margin: 0;
	color: var(--ardigi-muted);
	font-size: 12px;
	line-height: 1.8;
}

/* Do not allow legacy floats to break the ARDIGI grid. */
.single-product .ardigi-product-top::before,
.single-product .ardigi-product-top::after,
.single-product .ardigi-product-middle::before,
.single-product .ardigi-product-middle::after,
.single-product .ardigi-product-bottom::before,
.single-product .ardigi-product-bottom::after {
	display: none;
	content: none;
}

/* Tablet */
@media (max-width: 1100px) {
	.single-product .ardigi-product-top {
		grid-template-columns: 1fr;
	}

	.single-product .ardigi-product-side {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.single-product .ardigi-product {
		--ardigi-gallery-height: clamp(340px, 56vw, 520px);
	}
}

/* Mobile */
@media (max-width: 767px) {
	.single-product .ardigi-gallery-panel,
	.single-product .ardigi-quick-specs,
	.single-product .ardigi-config-panel,
	.single-product .ardigi-full-specs,
	.single-product .ardigi-review-copy,
	.single-product .ardigi-related-wrap,
	.single-product .ardigi-reviews-wrap {
		padding: 14px;
	}

	.single-product .ardigi-product-side,
	.single-product .ardigi-product-middle {
		grid-template-columns: 1fr;
	}

	.single-product .ardigi-trust-box {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.single-product .ardigi-trust-item {
		border-bottom: 1px solid var(--ardigi-panel-line);
	}

	.single-product .ardigi-trust-item:nth-child(2n) {
		border-inline-end: 0;
	}

	.single-product .ardigi-trust-item:nth-last-child(-n+2) {
		border-bottom: 0;
	}

	.single-product .ardigi-quick-spec-row {
		align-items: flex-start;
	}

	.single-product .ardigi-quick-spec-row strong {
		max-width: 58%;
	}

	.single-product .ardigi-summary form.cart {
		display: flex;
		flex-wrap: wrap;
	}

	.single-product .ardigi-summary .single_add_to_cart_button,
	.single-product .ardigi-summary form.cart .ardigi-sales-contact {
		flex: 1 1 100%;
	}

	.single-product .ardigi-related-wrap ul.products {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	/*
	 * On mobile, specs and review stack into separate rows (see
	 * grid-template-columns: 1fr above), so there's no sibling row to
	 * stretch-match review's height to. Revert review to a fixed scroll
	 * cap here instead of the desktop grow-to-match-specs behavior.
	 */
	.single-product .ardigi-review-content {
		flex: 0 1 auto;
		max-height: 360px;
	}
}

/* Very small screens */
@media (max-width: 420px) {
	.single-product .ardigi-trust-item,
	.single-product .ardigi-trust-item:nth-child(2n),
	.single-product .ardigi-trust-item:nth-last-child(-n+2) {
		border-inline-end: 0;
		border-bottom: 1px solid var(--ardigi-panel-line);
	}

	.single-product .ardigi-trust-item:nth-child(3),
	.single-product .ardigi-trust-item:nth-child(4) {
		border-bottom: 0;
	}
}

/* v1.0.4 refinements */
.single-product .ardigi-attributes-wrap {
	font-size: 13.5px;
}

.single-product .ardigi-feature-groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.single-product .ardigi-feature-group {
	margin: 0;
	padding: 0;
}

.single-product .ardigi-feature-group-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ardigi-panel-line);
}

.single-product .ardigi-feature-group-heading h3 {
	margin: 0;
	color: #111827;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.7;
}

.single-product .ardigi-feature-group-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border: 1px solid #dbeafe;
	border-radius: 12px;
	background: linear-gradient(145deg, #eff6ff, #dbeafe);
	color: var(--ardigi-blue);
	box-shadow: 0 3px 8px -2px rgba(37, 99, 235, .18);
}

.single-product .ardigi-feature-group-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

/*
 * Each spec group gets its own accent so the technical-specs section is
 * easier to scan at a glance — most noticeably the previously plain
 * "ports & connections" and "other specs" groups.
 */
.single-product .ardigi-feature-group--processor .ardigi-feature-group-icon {
	border-color: #dbeafe;
	background: linear-gradient(145deg, #eff6ff, #dbeafe);
	color: #2563eb;
	box-shadow: 0 3px 8px -2px rgba(37, 99, 235, .2);
}

.single-product .ardigi-feature-group--ram .ardigi-feature-group-icon {
	border-color: #e9d8fd;
	background: linear-gradient(145deg, #f5f0ff, #e9d8fd);
	color: #7c3aed;
	box-shadow: 0 3px 8px -2px rgba(124, 58, 237, .2);
}

.single-product .ardigi-feature-group--storage .ardigi-feature-group-icon {
	border-color: #c7f0e6;
	background: linear-gradient(145deg, #ecfdf8, #c7f0e6);
	color: #0d9488;
	box-shadow: 0 3px 8px -2px rgba(13, 148, 136, .2);
}

.single-product .ardigi-feature-group--gpu .ardigi-feature-group-icon {
	border-color: #ffe1c2;
	background: linear-gradient(145deg, #fff7ed, #ffe1c2);
	color: #ea580c;
	box-shadow: 0 3px 8px -2px rgba(234, 88, 12, .2);
}

.single-product .ardigi-feature-group--display .ardigi-feature-group-icon {
	border-color: #fbcfe8;
	background: linear-gradient(145deg, #fdf2f8, #fbcfe8);
	color: #db2777;
	box-shadow: 0 3px 8px -2px rgba(219, 39, 119, .2);
}

.single-product .ardigi-feature-group--ports .ardigi-feature-group-icon {
	border-color: #bbf0d3;
	background: linear-gradient(145deg, #ecfdf5, #bbf0d3);
	color: #16a34a;
	box-shadow: 0 3px 8px -2px rgba(22, 163, 74, .2);
}

.single-product .ardigi-feature-group--other .ardigi-feature-group-icon {
	border-color: #e2e6ec;
	background: linear-gradient(145deg, #f8fafc, #e2e6ec);
	color: #475569;
	box-shadow: 0 3px 8px -2px rgba(71, 85, 105, .18);
}

.single-product .ardigi-feature-items {
	display: flex;
	flex-direction: column;
}

.single-product .ardigi-feature-item {
	display: grid;
	grid-template-columns: minmax(0, 34%) minmax(0, 66%);
	gap: 12px;
	align-items: start;
	padding: 9px 0;
	border-bottom: 1px solid #edf0f3;
}

.single-product .ardigi-feature-item:last-child {
	border-bottom: 0;
}

.single-product .ardigi-feature-label {
	color: #596579;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.8;
}

.single-product .ardigi-feature-value {
	color: #172033;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.8;
	text-align: left;
	direction: ltr;
	unicode-bidi: plaintext;
	word-break: break-word;
}

.single-product .ardigi-review-content {
	color: #354154;
	font-size: 14px;
	font-weight: 500;
	line-height: 2.15;
}

.single-product .ardigi-review-content strong,
.single-product .ardigi-review-content b,
.single-product .ardigi-review-content h3,
.single-product .ardigi-review-content h4 {
	font-weight: 800;
	color: #111827;
}

.single-product .ardigi-sales-contact {
	border-color: #159447;
	background: #16a34a;
}

.single-product .ardigi-sales-contact:hover {
	border-color: #12813a;
	background: #12813a;
}

.single-product .ardigi-sales-contact .ardigi-whatsapp-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.single-product .ardigi-trust-icon--test {
	border-radius: 50%;
}

.single-product .ardigi-trust-icon--test svg text {
	font-family: Arial, sans-serif;
}

@media (max-width: 767px) {
	.single-product .ardigi-feature-item {
		grid-template-columns: minmax(0, 38%) minmax(0, 62%);
	}

	.single-product .ardigi-feature-label,
	.single-product .ardigi-feature-value {
		font-size: 12.5px;
	}

	.single-product .ardigi-review-content {
		font-size: 13.5px;
		line-height: 2.05;
	}
}
