/* ==========================================================================
   Single product (woocommerce/content-single-product.php)
   Row 1: gallery · summary · sidebar  —  Row 2: tabs  —  Row 3: related slider
   ========================================================================== */
.tech-ae-section--product { padding-top: 28px; }

/* Row 1 ------------------------------------------------------------------- */
.tech-ae-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.tech-ae-product__gallery { position: relative; min-width: 0; }
.tech-ae-product__summary { min-width: 0; }

@media (min-width: 768px) {
	.tech-ae-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; }
	.tech-ae-product__aside { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.tech-ae-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 300px; column-gap: 40px; }
	.tech-ae-product__aside { grid-column: auto; }
	.tech-ae-product__gallery,
	.tech-ae-product__aside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 150px); }
}

/* Gallery (WooCommerce slider + hover zoom + lightbox) */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
	overflow: hidden;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
}
.woocommerce div.product div.images .woocommerce-product-gallery__image a img,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder img {
	aspect-ratio: 1;
	object-fit: contain;
	padding: 16px;
	background: var(--tech-ae-white);
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border: 1px solid var(--tech-ae-border);
	background: var(--tech-ae-white);
}
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: contain;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-white);
	opacity: .6;
	transition: opacity var(--tech-ae-ease), border-color var(--tech-ae-ease);
}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover { border-color: var(--tech-ae-primary); opacity: 1; }

/* Summary: title · info table · Get a Quote */
.woocommerce div.product .product_title { margin-bottom: 18px; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.3; }

.tech-ae-info {
	width: 100%;
	margin: 0 0 24px;
	overflow: hidden;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}
.tech-ae-info th,
.tech-ae-info td { padding: 12px 16px; border-bottom: 1px solid var(--tech-ae-border); text-align: left; vertical-align: top; }
.tech-ae-info tr:last-child th,
.tech-ae-info tr:last-child td { border-bottom: 0; }
.tech-ae-info th {
	width: 34%;
	background: var(--tech-ae-soft);
	color: var(--tech-ae-dark);
	font-weight: 600;
	white-space: nowrap;
}
.tech-ae-info td { color: var(--tech-ae-grey); word-break: break-word; }
.tech-ae-info__sku { color: var(--tech-ae-primary); letter-spacing: .02em; }
.tech-ae-info a { font-weight: 600; }

.tech-ae-stock { display: inline-flex; align-items: center; gap: 8px; color: var(--tech-ae-dark); font-weight: 600; }
.tech-ae-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tech-ae-primary); }
.tech-ae-stock--in { color: #157f3b; }
.tech-ae-stock--in::before { background: #1fa34a; box-shadow: 0 0 0 4px rgba(31, 163, 74, .15); }
.tech-ae-stock--out::before { background: var(--tech-ae-grey); }

.tech-ae-product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tech-ae-product-cta .tech-ae-quote-btn { min-width: 170px; min-height: 42px; padding: 8px 20px; font-size: 14px; }
.tech-ae-product-cta__badge { width: auto; max-height: 52px; }

/* Sidebar */
.tech-ae-product__aside { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
	.tech-ae-product__aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.tech-ae-aside-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.tech-ae-aside-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--tech-ae-grey); }
.tech-ae-aside-points strong { display: block; color: var(--tech-ae-dark); font-size: 14px; }
.tech-ae-aside-points__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-soft);
	color: var(--tech-ae-primary);
}

.tech-ae-aside-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: border-color var(--tech-ae-ease); }
.tech-ae-aside-brand:hover { border-color: var(--tech-ae-primary); }
.tech-ae-aside-brand__logo img { max-width: 160px; max-height: 60px; width: auto; object-fit: contain; }

/* Row 2: tabs ------------------------------------------------------------- */
.woocommerce div.product .woocommerce-tabs { margin-top: 48px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 28px;
	padding: 0;
	overflow-x: auto;
	border-bottom: 1px solid var(--tech-ae-border);
	scrollbar-width: none;
	white-space: nowrap;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 18px;
	border-bottom: 3px solid transparent;
	color: var(--tech-ae-grey);
	font-family: var(--tech-ae-font-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--tech-ae-dark); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--tech-ae-primary); color: var(--tech-ae-primary); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child,
.tech-ae-tab__title { margin-bottom: 14px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }

/* Tab content (Delivery and Payment, Warranty) */
.tech-ae-tab { color: var(--tech-ae-grey); }
.tech-ae-tab__lead { margin-bottom: 24px; color: var(--tech-ae-dark); font-size: 1.05rem; }
.tech-ae-tab__label { margin-bottom: 14px; color: var(--tech-ae-dark); font-weight: 600; }
.tech-ae-tab__subtitle { margin: 36px 0 16px; font-size: 1.2rem; }
.tech-ae-tab h3 { color: var(--tech-ae-dark); }

.tech-ae-carriers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 24px; padding: 0; list-style: none; }
.tech-ae-carrier {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	grid-template-areas: "logo name" "logo time";
	align-items: center;
	column-gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
}
.tech-ae-carrier__logo {
	grid-area: logo;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 6px;
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-soft);
}
.tech-ae-carrier__logo img { max-height: 100%; width: auto; object-fit: contain; }
.tech-ae-carrier__name { grid-area: name; color: var(--tech-ae-dark); font-family: var(--tech-ae-font-head); font-weight: 600; }
.tech-ae-carrier__time { grid-area: time; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tech-ae-carrier__time .tech-ae-icon { color: var(--tech-ae-primary); }

.tech-ae-tab__notice {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 18px;
	border-left: 4px solid var(--tech-ae-primary);
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-soft);
	color: var(--tech-ae-dark);
}
.tech-ae-tab__notice .tech-ae-icon { margin-top: 2px; color: var(--tech-ae-primary); }
.tech-ae-tab__notice p { margin: 0; }

.tech-ae-tab__grid,
.tech-ae-guarantees { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
	.tech-ae-tab__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tech-ae-guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .tech-ae-guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tech-ae-tab__card {
	padding: 22px 20px;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
	font-size: 15px;
	transition: border-color var(--tech-ae-ease);
}
.tech-ae-tab__card:hover { border-color: rgba(11, 81, 153, .35); }
.tech-ae-tab__card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.tech-ae-tab__card p { margin: 0; }
.tech-ae-tab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-primary);
	color: var(--tech-ae-white);
}

.tech-ae-tab__payment img { max-width: 300px; }

/* RMA steps */
.tech-ae-rma { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: tech-ae-rma; font-size: 15px; }
.tech-ae-rma li {
	position: relative;
	padding: 14px 16px 14px 60px;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius);
	background: var(--tech-ae-white);
	counter-increment: tech-ae-rma;
}
.tech-ae-rma li::before {
	content: counter(tech-ae-rma);
	position: absolute;
	top: 12px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tech-ae-soft);
	color: var(--tech-ae-primary);
	font-size: 14px;
	font-weight: 700;
}

/* Row 3: related products ------------------------------------------------- */
.tech-ae-product__related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--tech-ae-border); }
