/* Pressovac Equipment Grid Widget */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.pressovac-eq-section {
	background-color: transparent;
}

/* ── Inner container (follows Elementor column width) ───────────────────── */
.pressovac-eq-container {
	width: 100%;
}

/* Remove Elementor default padding from widget-container and column wrappers
   so text lines up with the page header / logo */
.elementor-widget-pressovac_equipment_grid > .elementor-widget-container {
	padding: 0;
	margin-left: 0 !important;
}

.pressovac-eq-section {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Old Elementor column layout */
.elementor-column:has(.pressovac-eq-section) .elementor-element-populated,
.elementor-column:has(.pressovac-eq-section) .elementor-widget-wrap {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* New Elementor Flexbox Container layout */
.e-con:has(.pressovac-eq-section),
.e-con:has(.pressovac-eq-section) > .e-con-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
	--padding-left: 0px;
	--padding-right: 0px;
	--padding-inline-start: 0px;
	--padding-inline-end: 0px;
}

/* ── Section header ──────────────────────────────────────────────────────── */
.pressovac-eq-header {
	margin-bottom: 40px;
}

.pressovac-eq-header__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0DA2E7;
	margin-bottom: 10px;
}

.pressovac-eq-header__title {
	font-size: clamp(26px, 3.5vw, 40px);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
	margin: 0 0 14px;
}

.pressovac-eq-header__desc {
	font-size: 15px;
	color: #64748b;
	line-height: 1.65;
	max-width: 640px;
	margin: 0;
	white-space: pre-line;
}

/* ── Filter Tabs ─────────────────────────────────────────────────────────── */
.pressovac-eq-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 32px;
	width: 100%;
	box-sizing: border-box;
}

.pressovac-eq-filter-btn {
	padding: 7px 11px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	background-color: #ffffff;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
	line-height: 1.4;
}

.pressovac-eq-filters .pressovac-eq-filter-btn:hover {
	background-color: #f0f9ff;
	border-color: #7dd3fc;
	color: #0f172a;
}

.pressovac-eq-filter-btn.is-active {
	background-color: #0DA2E7;
	border-color: #0DA2E7;
	color: #ffffff;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.pressovac-eq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.pressovac-eq-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.pressovac-eq-grid {
		grid-template-columns: 1fr;
	}

	.pressovac-eq-filters {
		justify-content: center;
	}
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.pressovac-eq-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pressovac-eq-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	transform: translateY(-2px);
}

/* Hidden cards (filtered out) */
.pressovac-eq-card.is-hidden {
	display: none;
}

/* ── Card Image ──────────────────────────────────────────────────────────── */
.pressovac-eq-card__image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 24px;
	background-color: #f1f5f9;
	overflow: hidden;
}

.pressovac-eq-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pressovac-eq-card__img--placeholder {
	width: 100%;
	height: 100%;
	background-color: #e2e8f0;
}

/* ── Card Body ───────────────────────────────────────────────────────────── */
.pressovac-eq-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Category Label ──────────────────────────────────────────────────────── */
.pressovac-eq-cat-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #0DA2E7;
	text-transform: uppercase;
	margin-bottom: 6px;
}

/* ── Title ───────────────────────────────────────────────────────────────── */
.pressovac-eq-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.pressovac-eq-card__title a {
	color: inherit;
	text-decoration: none;
}

.pressovac-eq-card__title a:hover {
	color: #0DA2E7;
}

/* ── Specs List ──────────────────────────────────────────────────────────── */
.pressovac-eq-specs {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pressovac-eq-specs__item {
	font-size: 12px;
	color: #444;
	line-height: 1.4;
}

.pressovac-eq-specs__key {
	font-weight: 600;
	color: #0f172a;
}

.pressovac-eq-specs__val {
	font-weight: 400;
}

/* ── Button row ──────────────────────────────────────────────────────────── */
.pressovac-eq-card__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.pressovac-eq-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0DA2E7;
	border: 1.5px solid #0DA2E7;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pressovac-eq-btn:hover {
	background-color: #0DA2E7;
	color: #ffffff !important;
}

/* View Details stretches to fill remaining space */
.pressovac-eq-card__actions .pressovac-eq-btn:not(.pressovac-eq-btn--download) {
	flex: 1;
	justify-content: center;
}

/* Download — compact icon-only button */
.pressovac-eq-btn--download {
	flex: 0 0 auto;
	padding: 8px 10px;
	border-color: #e2e8f0;
	color: #64748b;
}

.pressovac-eq-btn--download:hover {
	background-color: #0DA2E7;
	border-color: #0DA2E7;
	color: #ffffff;
}

/* ── Grease Duct theme (orange) ──────────────────────────────────────────── */
.pressovac-eq-wrapper--grease-duct .pressovac-eq-filter-btn.is-active {
	background-color: #e55d00;
	border-color: #e55d00;
	color: #ffffff;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-filter-btn:hover {
	border-color: #e55d00;
	color: #e55d00;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-filter-btn.is-active:hover {
	background-color: #c94f00;
	border-color: #c94f00;
	color: #ffffff;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-cat-label {
	color: #e55d00;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-card__title a:hover {
	color: #e55d00;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-btn {
	color: #e55d00;
	border-color: #e55d00;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-btn:hover {
	background-color: #e55d00;
	border-color: #e55d00;
	color: #ffffff;
}

.pressovac-eq-wrapper--grease-duct .pressovac-eq-btn--download:hover {
	background-color: #e55d00;
	border-color: #e55d00;
}

/* Header eyebrow color override (if used) */
.pressovac-eq-wrapper--grease-duct + .pressovac-eq-header__eyebrow,
.pressovac-eq-wrapper--grease-duct .pressovac-eq-header__eyebrow {
	color: #e55d00;
}
