/* =========================================================
   NEPS additions: product catalogue, spec tables, quote forms
   Works in both the dark (default) and light theme modes.
   ========================================================= */

:root {
	--tt-link-color: #0f8dff;
	--tt-link-hover-color: #40adff;
	--neps-blue: #0f8dff;
	--neps-blue-2: #40adff;
	--neps-card-bg: rgb(255 255 255 / 4%);
	--neps-card-bg-hover: rgb(255 255 255 / 8%);
}
body.tt-lightmode-on {
	--neps-card-bg: rgb(0 0 0 / 3.5%);
	--neps-card-bg-hover: rgb(0 0 0 / 6%);
}

/* Breadcrumbs */
.neps-breadcrumbs { font-size: 14px; color: var(--tt-text-muted-color); margin-bottom: 30px; }
.neps-breadcrumbs a { color: var(--tt-text-muted-color); }
.neps-breadcrumbs a:hover { color: var(--neps-blue); }
.neps-breadcrumbs span.sep { margin: 0 8px; opacity: .6; }

/* Product cards grid */
.neps-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 28px;
}
.neps-card {
	display: flex; flex-direction: column;
	background: var(--neps-card-bg);
	border: 1px solid var(--tt-border-color);
	border-radius: 14px; overflow: hidden;
	color: var(--tt-text-color) !important;
	transition: background .3s, transform .3s, border-color .3s;
}
.neps-card:hover { background: var(--neps-card-bg-hover); border-color: var(--neps-blue); transform: translateY(-4px); }
.neps-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #1b1b1b; }
.neps-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.neps-card:hover .neps-card-img img { transform: scale(1.05); }
.neps-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.neps-card-body h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; line-height: 1.25; }
.neps-card-body p { font-size: 15px; line-height: 1.6; color: var(--tt-text-muted-color); margin: 0 0 18px; flex: 1; }
.neps-card-more { font-size: 14px; font-weight: 600; color: var(--neps-blue); letter-spacing: .3px; }
.neps-card-more i { margin-left: 6px; transition: margin .3s; }
.neps-card:hover .neps-card-more i { margin-left: 12px; }

/* Spec table */
.neps-specs { border: 1px solid var(--tt-border-color); border-radius: 14px; overflow: hidden; }
.neps-specs table { width: 100%; border-collapse: collapse; }
.neps-specs th, .neps-specs td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--tt-border-color); font-size: 15px; line-height: 1.6; }
.neps-specs tr:last-child th, .neps-specs tr:last-child td { border-bottom: 0; }
.neps-specs th { width: 32%; font-weight: 600; color: var(--neps-blue); background: var(--neps-card-bg); }
@media (max-width: 640px) {
	.neps-specs th, .neps-specs td { display: block; width: 100%; }
	.neps-specs th { border-bottom: 0; padding-bottom: 4px; }
}

/* Chips */
.neps-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.neps-chips li { border: 1px solid var(--tt-border-color); border-radius: 40px; padding: 8px 16px; font-size: 14px; }

/* Info boxes (templates, catalogue downloads) */
.neps-box {
	border: 1px solid var(--tt-border-color); border-radius: 14px;
	background: var(--neps-card-bg); padding: 28px 30px;
}
.neps-box h4 { font-size: 20px; margin: 0 0 10px; }
.neps-box p { font-size: 15px; color: var(--tt-text-muted-color); margin-bottom: 18px; }
.neps-box + .neps-box { margin-top: 24px; }
.neps-box .tt-btn { margin: 4px 10px 4px 0; }

.neps-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.neps-download { display: flex; gap: 22px; align-items: center; }
.neps-download img { width: 110px; flex: none; border-radius: 6px; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }

/* Quote form panel */
.neps-quote { border-top: 1px solid var(--tt-border-color); }
.neps-quote .tt-form-group label { font-size: 15px; }
.neps-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 767px) { .neps-form-grid { grid-template-columns: 1fr; } }
.neps-form-note { font-size: 13px; color: var(--tt-text-muted-color); margin-top: 18px; }

/* Trust strip */
.neps-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.neps-trust div { border-left: 3px solid var(--neps-blue); padding: 4px 0 4px 18px; }
.neps-trust strong { display: block; font-size: 17px; margin-bottom: 4px; }
.neps-trust span { font-size: 14px; color: var(--tt-text-muted-color); }

/* Legal pages */
.neps-legal h2 { font-size: 26px; margin: 40px 0 14px; }
.neps-legal p, .neps-legal li { font-size: 16px; line-height: 1.75; }
.neps-legal ul { margin-bottom: 20px; }
.neps-draft { border: 1px dashed var(--neps-blue); border-radius: 10px; padding: 14px 18px; font-size: 14px; margin-bottom: 30px; }

.neps-form-grid .neps-span { grid-column: 1 / -1; }
body.tt-lightmode-on { --tt-link-color: #0a6ad3; --tt-link-hover-color: #0f8dff; }
.neps-tpl-select { width: 100%; background: transparent; border: 1px solid var(--tt-border-color); border-radius: 8px; padding: 12px 14px; color: var(--tt-text-color); font-size: 15px; }
.neps-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.neps-tpl-grid .neps-box + .neps-box { margin-top: 0; }
.neps-tpl-list { list-style: none; margin: 0; padding: 0; }
.neps-tpl-list li { padding: 6px 0; border-bottom: 1px solid var(--tt-border-color); font-size: 15px; }
.neps-tpl-list li:last-child { border-bottom: 0; }

/* Dropdowns: readable options in both modes */
select.tt-form-control, .neps-tpl-select { color-scheme: dark; }
select.tt-form-control option, .neps-tpl-select option { background-color: #1b1b1b; color: #efedea; }
body.tt-lightmode-on select.tt-form-control, body.tt-lightmode-on .neps-tpl-select { color-scheme: light; }
body.tt-lightmode-on select.tt-form-control option, body.tt-lightmode-on .neps-tpl-select option { background-color: #ffffff; color: #212121; }

/* Template download buttons */
.neps-tpl-files { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.neps-tpl-files[hidden] { display: none; }
.neps-tpl-btn { justify-content: flex-start; width: 100%; padding: 12px 18px !important; font-size: 14px !important; }
.neps-tpl-btn i { margin-right: 8px; color: var(--neps-blue); }
.neps-tpl-btn small { margin-left: auto; padding-left: 10px; opacity: .65; font-size: 12px; text-transform: none; }
.neps-tpl-list li { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.neps-tpl-name { font-weight: 600; }
.neps-tpl-fmts { display: flex; flex-wrap: wrap; gap: 6px; }
.neps-tpl-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--tt-border-color); border-radius: 30px; padding: 3px 10px; font-size: 12px; color: var(--tt-text-color) !important; }
.neps-tpl-chip:hover { border-color: var(--neps-blue); color: var(--neps-blue) !important; }
.neps-tpl-chip i { color: var(--neps-blue); }
.neps-tpl-chip small { display: none; }

/* Forms (IONOS ASP) */
.neps-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.neps-field-error { color: #ff6b6b; font-size: 13px; margin: 6px 0 0; min-height: 0; }
.neps-field-error:empty { display: none; }
.neps-has-error .tt-form-control { border-color: #ff6b6b !important; }
.neps-form-status { margin-top: 24px; padding: 16px 20px; border-radius: 10px; font-size: 15px; line-height: 1.6; outline: none; }
.neps-form-status.is-ok { background: rgb(15 141 255 / 14%); border: 1px solid var(--neps-blue); }
.neps-form-status.is-error { background: rgb(255 107 107 / 12%); border: 1px solid #ff6b6b; }
.neps-form button.is-sending { opacity: .6; pointer-events: none; }
.neps-parts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.neps-part-btn { justify-content: flex-start; text-align: left; padding: 12px 18px !important; font-size: 14px !important; }
.neps-part-btn small { opacity: .65; margin-left: 8px; text-transform: none; }

/* Compact page header: same height on products index, category and product pages */
#page-header.neps-compact .page-header-inner { padding-top: 190px; padding-bottom: 80px; }
#page-header.neps-compact .ph-caption-title { font-size: clamp(38px, 5.2vw, 76px); }
#page-header.neps-compact .ph-caption-description { font-size: 15px; }
@media (max-width: 767px) { #page-header.neps-compact .page-header-inner { padding-top: 140px; padding-bottom: 50px; } }
.neps-cards-cats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.neps-cards-cats .neps-card-body { padding: 18px 20px 20px; }
.neps-cards-cats .neps-card-body h3 { font-size: 19px; }
.neps-cards-cats .neps-card-body p { font-size: 14px; margin-bottom: 12px; }

/* Catalogue download cards */
.neps-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: stretch; }
.neps-cat-card { display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--tt-border-color); border-radius: 14px; background: var(--neps-card-bg); padding: 28px; }
.neps-cat-head { display: flex; gap: 22px; align-items: flex-start; }
.neps-cat-head img { width: 96px; flex: none; border-radius: 6px; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }
.neps-cat-head h4 { font-size: 21px; margin: 2px 0 8px; }
.neps-cat-head p { font-size: 15px; line-height: 1.6; color: var(--tt-text-muted-color); margin: 0; }
.neps-dl-list { display: flex; flex-direction: column; border-top: 1px solid var(--tt-border-color); margin-top: auto; }
.neps-dl-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--tt-border-color); color: var(--tt-text-color) !important; font-size: 15px; line-height: 1.4; transition: background .2s, padding .2s; }
.neps-dl-row:hover { background: rgb(15 141 255 / 8%); padding-left: 10px; }
.neps-dl-ico { color: var(--neps-blue); font-size: 18px; flex: none; }
.neps-dl-label { flex: 1; min-width: 0; font-weight: 500; }
.neps-dl-meta { flex: none; font-size: 12px; color: var(--tt-text-muted-color); white-space: nowrap; }
.neps-dl-arrow { flex: none; color: var(--neps-blue); font-size: 13px; }
@media (max-width: 540px) {
	.neps-cat-card { padding: 20px; }
	.neps-cat-head img { width: 72px; }
	.neps-cat-head h4 { font-size: 18px; }
	.neps-dl-row { flex-wrap: wrap; row-gap: 2px; }
	.neps-dl-meta { order: 3; width: 100%; padding-left: 32px; }
}
