/* =========================================================================
 * Elevate — Phone Systems listing (refine card + product grid)
 * Scoped to the /phone-systems/ page. Native-Elementor shell provides the
 * two-column row; these rules style the shortcode output inside it.
 * ====================================================================== */

/* Flex blowout fix: let the main column shrink so the 3-col grid fits. */
.elementor-element-epmain { flex: 1 1 0 !important; min-width: 0; }
.elementor-element-epside { flex: 0 0 auto; }

/* ---- Refine results card ---- */
.ep-refine {
	background: #fff;
	border: 1px solid #EDF0F5;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(16, 40, 88, .06);
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
}
.ep-refine__head { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.ep-refine__ficon { color: #1B62E0; display: inline-flex; width: 18px; height: 18px; }
.ep-refine__ficon svg { width: 18px; height: 18px; }
.ep-refine__htitle { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; color: #0A1B3A; }
.ep-refine__label { font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px; color: #0A1B3A; margin: 0 0 8px; }
.ep-refine__input,
.ep-refine__select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #E4E8F0;
	border-radius: 10px;
	padding: 12px 14px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: #41506B;
	background: #fff;
	margin-bottom: 20px;
	height: 48px;
	line-height: 1.5;
}
.ep-refine__input::placeholder { color: #9AA6B8; }
.ep-refine__select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.ep-refine__input:focus,
.ep-refine__select:focus { outline: none; border-color: #1B62E0; }
.ep-refine__btn {
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: #1B62E0;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 16px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(27, 98, 224, .28);
	transition: background .15s ease;
}
.ep-refine__btn:hover { background: #1552c4; }

/* ---- Result count ---- */
.ep-count {
	font-family: "Inter", sans-serif;
	font-size: 18px;
	color: #64748B;
	margin: 4px 0 26px;
}

/* ---- Product grid ---- */
.ep-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.ep-card {
	background: #fff;
	border: 1px solid #EDF0F5;
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(16, 40, 88, .05);
	padding: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden; /* clip the full-bleed image to the card's rounded corners */
}
/* Full-bleed image: fills the whole card width, flush with the top + side frame
   (negative margins cancel the card's 14px padding), complete picture (no crop). */
.ep-card__imgwrap { display: block; margin: -14px -14px 0; overflow: hidden; background: #EEF3FA; }
.ep-card__imgwrap .ep-card__img { width: 100%; height: auto; display: block; }
.ep-card__img--ph { display: block; aspect-ratio: 4 / 3; }
.ep-card__body { padding: 16px 8px 8px; display: flex; flex-direction: column; flex: 1 1 auto; }
/* Push the button group to the bottom so buttons align across a row of unequal-height cards. */
.ep-card .ep-btn--primary { margin-top: auto; }
.ep-card__title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.25; color: #0A1B3A; margin: 0 0 10px; }
.ep-card__title a { color: inherit; text-decoration: none; }
.ep-card__excerpt { font-family: "Inter", sans-serif; font-size: 15px; line-height: 24px; color: #64748B; margin: 0 0 16px; }
.ep-card__pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.ep-pill {
	font-family: "Inter", sans-serif;
	font-size: 13px;
	color: #41506B;
	border: 1px solid #E4E8F0;
	border-radius: 999px;
	padding: 6px 12px;
	line-height: 1;
	white-space: nowrap;
}

/* ---- Card buttons + shared button styles ---- */
.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: "Sora", sans-serif;
	font-weight: 700;
	font-size: 15px;
	border-radius: 10px;
	padding: 13px 20px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	box-sizing: border-box;
}
.ep-card .ep-btn { width: 100%; }
.ep-btn--primary { background: #1B62E0; color: #fff; box-shadow: 0 12px 26px rgba(27, 98, 224, .45); }
/* Hover: darker blue fill + a stronger glow shadow (client wants the hover shadow back). */
.ep-btn--primary:hover { background: #1552c4; color: #fff; box-shadow: 0 16px 32px rgba(27, 98, 224, .5); }
.ep-btn--ghost { background: #fff; color: #0A1B3A; border: 1.5px solid #33404F; margin-top: 12px; box-shadow: 0 8px 18px rgba(16, 40, 88, .08); }
.ep-btn--ghost:hover { border-color: #1B62E0; color: #1B62E0; }

/* ---- Pagination ---- */
.ep-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.ep-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 10px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #E4E8F0; border-radius: 10px;
	font-family: "Inter", sans-serif; font-size: 15px; color: #41506B; text-decoration: none;
}
.ep-pagination .page-numbers.current { background: #1B62E0; color: #fff; border-color: #1B62E0; }
.ep-pagination a.page-numbers:hover { border-color: #1B62E0; color: #1B62E0; }
.ep-empty { font-family: "Inter", sans-serif; color: #64748B; font-size: 16px; }

/* ---- Responsive ---- */
@media (max-width: 1200px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tablet (769–1024): keep side-by-side, but a NARROWER refine card and a WIDER products area. */
@media (min-width: 769px) and (max-width: 1024px) {
	.elementor-element-epside { flex: 0 0 250px !important; width: 250px !important; }
	.elementor-element-epmain { flex: 1 1 0 !important; }
}
/* Mobile (≤768): stack the refine card above the products. */
@media (max-width: 768px) {
	.elementor-element-epside { flex: 1 1 100% !important; width: 100% !important; }
	.elementor-element-epmain { flex: 1 1 100% !important; }
}
/* Tighten the gap between the header and the first section on mobile.
   Elementor applies section/container padding via the --padding-top custom
   property, so override that (a plain padding-top would be ignored). The two
   wrapper containers also carry a default 10px top each — zero them here. */
@media (max-width: 768px) {
	.elementor-element-epsec { --padding-top: 12px !important; }
	.elementor-element-eprow,
	.elementor-element-epside { --padding-top: 0px !important; }
}
@media (max-width: 600px) { .ep-grid { grid-template-columns: minmax(0, 1fr); } }
