/* XYNC Commerce — front-end & admin styles */

.xync-equipment-panel {
	margin: 28px 0;
	border-top: 1px solid #e2e2e2;
	padding-top: 20px;
}
.xync-panel-title {
	font-size: 1.1em;
	margin-bottom: 10px;
}
.xync-availability {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 10px;
	border-radius: 3px;
	margin-bottom: 12px;
	background: #eee;
	color: #444;
}
.xync-availability-available { background: #e6f4ea; color: #1e7e34; }
.xync-availability-on_hold   { background: #fff3cd; color: #8a6d00; }
.xync-availability-sold      { background: #fbe4e4; color: #a12626; }
.xync-availability-incoming  { background: #e3edfb; color: #1a56a8; }

.xync-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}
.xync-spec-table th,
.xync-spec-table td {
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid #eee;
	font-size: 0.95em;
}
.xync-spec-table th {
	width: 40%;
	font-weight: 600;
	color: #555;
}

.xync-panel-links {
	margin-top: 14px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.xync-link {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9em;
}
.xync-link:hover {
	background: #f5f5f5;
}

/* Card grid layout */
.xync-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}
.xync-card {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 10px 12px;
	background: #fafafa;
}
.xync-card-label {
	display: block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #888;
	margin-bottom: 3px;
}
.xync-card-value {
	display: block;
	font-size: 0.98em;
	font-weight: 600;
	color: #222;
}

/* Minimal layout */
.xync-minimal-line {
	font-size: 0.95em;
	color: #444;
	margin-bottom: 8px;
}
.xync-minimal-specs summary {
	cursor: pointer;
	font-weight: 600;
	margin-bottom: 8px;
}

/* Shop loop badge */
.xync-loop-badge {
	font-size: 0.82em;
	color: #666;
	margin: 2px 0 6px;
}

/* [xync_equipment_grid] shortcode */
.xync-equipment-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, 1fr);
	margin: 20px 0;
}
.xync-columns-1 { grid-template-columns: repeat(1, 1fr); }
.xync-columns-2 { grid-template-columns: repeat(2, 1fr); }
.xync-columns-3 { grid-template-columns: repeat(3, 1fr); }
.xync-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 782px) {
	.xync-equipment-grid { grid-template-columns: repeat(2, 1fr); }
}

.xync-grid-item {
	display: block;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.xync-grid-item:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.xync-grid-image img {
	width: 100%;
	height: auto;
	display: block;
}
.xync-grid-body {
	padding: 12px 14px;
}
.xync-grid-title {
	font-size: 1em;
	margin: 0 0 4px;
}
.xync-grid-manufacturer {
	font-size: 0.85em;
	color: #777;
	margin: 0 0 6px;
}
.xync-grid-meta {
	font-size: 0.8em;
	color: #999;
	margin: 0 0 8px;
}
.xync-grid-price {
	font-weight: 600;
	margin: 0;
}
.xync-no-results {
	grid-column: 1 / -1;
	color: #888;
}
