/* FoxTech Catalog — frontend styles.
   Every selector is prefixed .fxc- to avoid clashing with the theme
   AND with the separate foxtech-product-manager (WooCommerce) plugin,
   if that's ever active on the same site alongside this one. Colors
   are exposed as CSS variables so a theme/child-theme can override
   them without editing this file. */

:root {
	--fxc-accent: #1f5fa8;
	--fxc-text: #1d2327;
	--fxc-muted: #646970;
	--fxc-border: #e2e4e7;
	--fxc-bg-soft: #f6f7f8;
	--fxc-radius: 10px;
}

.fxc-product * {
	box-sizing: border-box;
}

/* ---------- Single product ---------- */

.fxc-product-top {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.fxc-product-gallery-col {
	flex: 1 1 320px;
	max-width: 480px;
}

.fxc-product-summary-col {
	flex: 1 1 280px;
	min-width: 260px;
}

.fxc-product-title {
	margin: 0 0 12px;
	font-size: 1.9rem;
}

.fxc-bullet-features {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.fxc-bullet-features li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 6px;
	color: var(--fxc-text);
}

.fxc-bullet-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background: var(--fxc-accent);
	border-radius: 50%;
}

/* Gallery */

.fxc-gallery-main {
	position: relative;
	border: 1px solid var(--fxc-border);
	border-radius: var(--fxc-radius);
	overflow: hidden;
	background: #fff;
}

.fxc-gallery-slide {
	display: none;
}

.fxc-gallery-slide.is-active {
	display: block;
}

.fxc-gallery-image,
.fxc-gallery-slide img {
	width: 100%;
	height: auto;
	display: block;
}

.fxc-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--fxc-border);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
}

.fxc-gallery-prev { left: 12px; }
.fxc-gallery-next { right: 12px; }

.fxc-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.fxc-gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	background: none;
	cursor: pointer;
	width: 64px;
	height: 64px;
}

.fxc-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fxc-gallery-thumb.is-active {
	border-color: var(--fxc-accent);
}

/* Feature icons */

.fxc-feature-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.fxc-feature-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 88px;
	padding: 10px 6px;
	border: 1px solid var(--fxc-border);
	border-radius: 8px;
	background: var(--fxc-bg-soft);
	font-size: 0.75rem;
	font-weight: 600;
	gap: 6px;
}

.fxc-feature-icon-image img {
	max-width: 32px;
	max-height: 32px;
}

/* ---------- Tabs ---------- */

.fxc-tabs {
	margin-top: 20px;
}

.fxc-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--fxc-border);
}

.fxc-tabs-nav li a {
	display: block;
	padding: 12px 20px;
	text-decoration: none;
	color: var(--fxc-text);
	font-weight: 600;
}

.fxc-tabs-nav li.is-active a {
	background: var(--fxc-accent);
	color: #fff;
}

.fxc-tab-panel {
	display: none;
	padding: 24px 4px;
}

.fxc-tab-panel.is-active {
	display: block;
}

/* Technical data table */

.fxc-tech-data-search {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.fxc-tech-data-table {
	width: 100%;
	border-collapse: collapse;
}

.fxc-tech-data-table th,
.fxc-tech-data-table td {
	text-align: left;
	padding: 10px 14px;
	border: 1px solid var(--fxc-border);
}

.fxc-tech-data-table tr.is-even {
	background: var(--fxc-bg-soft);
}

/* Accessories */

.fxc-accessories-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
	gap: 20px;
}

.fxc-accessory-card {
	text-align: center;
}

.fxc-accessory-card a {
	text-decoration: none;
	color: var(--fxc-text);
}

.fxc-accessory-image img {
	max-width: 100%;
	height: auto;
}

.fxc-accessory-title {
	font-weight: 600;
	margin-top: 8px;
}

.fxc-accessory-desc {
	color: var(--fxc-muted);
	font-size: 0.85rem;
}

/* Video */

.fxc-videos {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 32px 24px;
}

@media ( max-width: 782px ) {
	.fxc-videos {
		grid-template-columns: 1fr;
	}
}

.fxc-video-wrap {
	position: relative;
	padding-top: 56.25%;
}

.fxc-video-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fxc-video-title {
	margin: 10px 0 0;
	font-weight: 600;
	text-align: center;
}

/* Downloads */

.fxc-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.fxc-download-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: linear-gradient( 180deg, #6b7280, #4b5563 );
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.fxc-download-ext {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.7rem;
}

/* Related products */

.fxc-related-products {
	margin-top: 48px;
}

.fxc-section-title {
	margin-bottom: 20px;
}

.fxc-product-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 24px;
}

.fxc-product-card {
	background: #fff;
	border: 1px solid var(--fxc-border);
	border-radius: var(--fxc-radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.fxc-product-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY( -2px );
}

.fxc-product-card-link {
	display: block;
	padding: 18px;
	text-decoration: none;
	color: var(--fxc-text);
}

.fxc-product-card-image img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 12px;
}

.fxc-product-card-title {
	font-size: 1rem;
	margin: 0 0 4px;
	border-bottom: 2px solid var(--fxc-accent);
	display: inline-block;
	padding-bottom: 4px;
}
