/* KSKA Safety Gate. Ουδέτερο στυλ, κληρονομεί γραμματοσειρές και χρώματα από το θέμα. */
.sg-wrap, .sg-single {
	--sg-border: #dcdcde;
	--sg-muted: #5a6673;
	--sg-bg: #f6f7f7;
	--sg-serious: #b32d2e;
	--sg-other: #996800;
	--sg-radius: 8px;
}

.sg-filters {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr) auto;
	gap: 12px;
	align-items: end;
	margin: 0 0 20px;
	padding: 16px;
	background: var(--sg-bg);
	border-radius: var(--sg-radius);
}
.sg-field label {
	display: block;
	font-size: 0.85em;
	color: var(--sg-muted);
	margin-bottom: 4px;
}
.sg-field input,
.sg-field select {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--sg-border);
	border-radius: 6px;
	background: #fff;
	font: inherit;
}
.sg-field--actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.sg-field--actions button {
	padding: 9px 18px;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
}
.sg-reset { font-size: 0.9em; }

.sg-count { color: var(--sg-muted); margin: 0 0 12px; }

.sg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.sg-card {
	border: 1px solid var(--sg-border);
	border-radius: var(--sg-radius);
	overflow: hidden;
	background: #fff;
}
.sg-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.sg-card__media {
	aspect-ratio: 4 / 3;
	background: var(--sg-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sg-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.sg-card__noimg {
	font-size: 2.5em;
	font-weight: 700;
	color: var(--sg-border);
}
.sg-card__body { padding: 12px 14px 14px; }
.sg-card__title {
	font-size: 1.05em;
	line-height: 1.3;
	margin: 8px 0 4px;
}
.sg-card__brand { margin: 0; font-weight: 600; }
.sg-card__cat,
.sg-card__date {
	margin: 4px 0 0;
	font-size: 0.85em;
	color: var(--sg-muted);
}

.sg-level {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.8em;
	font-weight: 600;
	color: #fff;
}
.sg-level--serious { background: var(--sg-serious); }
.sg-level--other { background: var(--sg-other); }

.sg-tags { margin: 8px 0 0; }
.sg-tag {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 1px 8px;
	border: 1px solid var(--sg-border);
	border-radius: 999px;
	font-size: 0.8em;
}

.sg-pagination { margin: 24px 0; text-align: center; }
.sg-pagination .page-numbers {
	display: inline-block;
	min-width: 32px;
	padding: 6px 8px;
	margin: 0 2px;
	border: 1px solid var(--sg-border);
	border-radius: 6px;
	text-decoration: none;
}
.sg-pagination .current { font-weight: 700; background: var(--sg-bg); }

.sg-empty { padding: 24px; background: var(--sg-bg); border-radius: var(--sg-radius); }

.sg-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 16px 0;
}
.sg-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--sg-bg);
	border-radius: 6px;
}

.sg-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 20px;
}
.sg-table th,
.sg-table td {
	text-align: left;
	vertical-align: top;
	padding: 8px 10px;
	border-bottom: 1px solid var(--sg-border);
}
.sg-table tbody th { width: 34%; font-weight: 600; }

.sg-advice {
	padding: 14px 16px;
	border-left: 4px solid var(--sg-serious);
	background: var(--sg-bg);
	margin: 20px 0;
}
.sg-advice p { margin: 0; }

.sg-links a { margin-right: 16px; }

.sg-source {
	margin-top: 24px;
	font-size: 0.8em;
	color: var(--sg-muted);
}

@media (max-width: 800px) {
	.sg-filters { grid-template-columns: 1fr 1fr; }
	.sg-field--search { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.sg-filters { grid-template-columns: 1fr; }
	.sg-table tbody th { width: 40%; }
}

/* ---------- Σελίδα προϊόντος (1.0.3) ---------- */
.sg-single { font-size: 0.95em; line-height: 1.5; }
.sg-single h3 { font-size: 1.05em; margin: 0 0 6px; }
.sg-single__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
}
.sg-single__head .sg-tag { margin: 0; }
.sg-single__meta { color: var(--sg-muted); font-size: 0.85em; margin-left: auto; }

.sg-mt {
	position: relative;
	margin: 0 0 16px;
	padding: 10px 40px 10px 14px;
	border-left: 3px solid #2c4a8a;
	background: #eef1f7;
	border-radius: 4px;
	font-size: 0.82em;
	color: #333;
}
.sg-mt p { margin: 0; }
.sg-mt__close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0;
}

.sg-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin-bottom: 18px;
}
.sg-single__grid--noimg { grid-template-columns: 1fr; }

.sg-dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	margin: 0;
	border-top: 1px solid var(--sg-border);
}
.sg-dl dt,
.sg-dl dd {
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px solid var(--sg-border);
}
.sg-dl dt { font-weight: 600; padding-right: 16px; }
.sg-dl dd { word-break: break-word; }

.sg-media__main {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--sg-bg);
	border-radius: var(--sg-radius);
	overflow: hidden;
	cursor: zoom-in;
}
.sg-media__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sg-media__count {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75em;
}
.sg-media__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 6px;
	margin-top: 6px;
}
.sg-media__thumbs a {
	display: block;
	aspect-ratio: 1;
	background: var(--sg-bg);
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: zoom-in;
}
.sg-media__thumbs a[aria-current="true"] { border-color: var(--sg-border); }
.sg-media__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-block { margin: 0 0 14px; }
.sg-block p { margin: 0; }
.sg-block--danger {
	padding: 12px 14px;
	background: #fcf0f0;
	border-left: 3px solid var(--sg-serious);
	border-radius: 4px;
}
.sg-measures { list-style: none; margin: 0; padding: 0; }
.sg-measures li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--sg-border);
}
.sg-measures li span { color: var(--sg-muted); font-size: 0.9em; }

.sg-single .sg-advice { margin: 14px 0; padding: 10px 14px; }
.sg-single .sg-links { margin: 0 0 6px; font-size: 0.9em; }
.sg-single .sg-source { margin-top: 10px; }

/* Lightbox */
.sg-lb-open, .sg-lb-open body { overflow: hidden; }
.sg-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 16, 0.95);
}
.sg-lb[hidden] { display: none; }
.sg-lb__fig {
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 64px;
	box-sizing: border-box;
}
.sg-lb__fig img {
	max-width: 100%;
	max-height: calc(100% - 28px);
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}
.sg-lb__count { color: #ddd; font-size: 14px; margin-top: 10px; min-height: 18px; }
.sg-lb__close,
.sg-lb__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 44px;
	padding: 0;
	text-align: center;
}
.sg-lb__close { top: 12px; right: 12px; }
.sg-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sg-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.sg-lb__close:hover, .sg-lb__nav:hover { background: rgba(255, 255, 255, 0.25); }
.sg-lb__nav[hidden] { display: none; }

@media (max-width: 760px) {
	.sg-single__grid { grid-template-columns: 1fr; gap: 14px; }
	.sg-media { order: -1; }
	.sg-single__meta { margin-left: 0; width: 100%; }
	.sg-dl { grid-template-columns: minmax(110px, 38%) 1fr; }
	.sg-lb__fig { padding: 56px 8px 24px; }
	.sg-lb__nav { top: auto; bottom: 16px; transform: none; }
}
