/* ==========================================================
   Obsequios – Buscador de productos
   ========================================================== */

.obp {
	--obp-primary: #21a6a3;
	--obp-primary-dark: #178583;
	--obp-primary-soft: #e8f6f6;
	--obp-accent: #a8277f;
	--obp-text: #1f2a37;
	--obp-muted: #6b7280;
	--obp-border: #e7eaee;
	--obp-radius: 16px;
	color: var(--obp-text);
}

.obp *,
.obp *::before,
.obp *::after { box-sizing: border-box; }

.obp-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Encabezado ---------- */
.obp-hero {
	background: linear-gradient(135deg, #e9f7f7 0%, #f7eef4 100%);
	padding: 48px 0 44px;
	margin-bottom: 40px;
	text-align: center;
}

.obp-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--obp-primary-dark);
	background: #fff;
	padding: 6px 14px;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.obp-title {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.15;
	font-weight: 800;
	margin: 16px 0 8px;
	color: var(--obp-text);
}

.obp-title span { color: var(--obp-accent); }

.obp-count {
	margin: 0 0 26px;
	font-size: 16px;
	color: var(--obp-muted);
}

.obp-count strong { color: var(--obp-text); }

/* ---------- Formulario ---------- */
.obp-form {
	display: flex;
	align-items: center;
	max-width: 640px;
	margin: 0 auto;
	padding: 6px 6px 6px 20px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(31, 42, 55, .10);
	transition: border-color .2s, box-shadow .2s;
}

.obp-form:focus-within {
	border-color: var(--obp-primary);
	box-shadow: 0 10px 30px rgba(33, 166, 163, .22);
}

.obp-form svg { flex: 0 0 20px; color: var(--obp-muted); }

.obp .obp-form input[type="search"] {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	font-size: 16px;
	color: var(--obp-text);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
}

.obp .obp-form button {
	flex: 0 0 auto;
	margin: 0;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--obp-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s;
}

.obp .obp-form button:hover { background: var(--obp-primary-dark); }

/* ---------- Grilla de productos ---------- */
.obp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.obp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--obp-border);
	border-radius: var(--obp-radius);
	overflow: hidden;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}

.obp-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(31, 42, 55, .12);
}

.obp-card__img {
	display: block;
	aspect-ratio: 1 / 1;
	padding: 16px;
	background: #fff;
	overflow: hidden;
}

.obp-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .35s;
}

.obp-card:hover .obp-card__img img { transform: scale(1.05); }

.obp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
	border-top: 1px solid var(--obp-border);
}

.obp-card__cat {
	align-self: flex-start;
	max-width: 100%;
	margin-bottom: 10px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--obp-primary-dark);
	background: var(--obp-primary-soft);
	border-radius: 999px;
}

.obp .obp-card__title {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
}

.obp-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--obp-text);
	text-decoration: none;
}

.obp-card__title a:hover { color: var(--obp-primary-dark); }

.obp-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--obp-muted);
}

.obp .obp-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: auto;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: var(--obp-primary);
	border-radius: 10px;
	transition: background .2s, gap .2s;
}

.obp .obp-card__btn:hover {
	color: #fff;
	background: var(--obp-accent);
	gap: 10px;
}

/* ---------- Paginación ---------- */
.obp-pagination { margin: 48px 0 64px; }

.obp-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	background: none;
}

.obp-pagination li { margin: 0; }

.obp-pagination li > .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	font-weight: 600;
	color: var(--obp-text);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--obp-border);
	border-radius: 12px;
	transition: border-color .2s, color .2s;
}

.obp-pagination li > a.page-numbers:hover {
	color: var(--obp-primary-dark);
	border-color: var(--obp-primary);
}

.obp-pagination li > .current {
	color: #fff;
	background: var(--obp-primary);
	border-color: var(--obp-primary);
}

.obp-pagination li > .dots {
	background: transparent;
	border-color: transparent;
}

/* ---------- Sin resultados ---------- */
.obp-empty {
	max-width: 560px;
	margin: 20px auto 80px;
	padding: 48px 28px;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--obp-border);
	border-radius: var(--obp-radius);
}

.obp-empty__icon { font-size: 40px; margin-bottom: 8px; }
.obp-empty h2 { margin: 0 0 10px; font-size: 22px; }
.obp-empty p { margin: 0 0 22px; color: var(--obp-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.obp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.obp-hero { padding: 32px 0 28px; margin-bottom: 24px; }
	.obp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.obp-card__img { padding: 10px; }
	.obp-card__body { padding: 12px; }
	.obp-card__desc { display: none; }
	.obp .obp-card__title { font-size: 14px; }
	.obp .obp-card__btn { padding: 10px 8px; font-size: 13px; }
	.obp .obp-form button { padding: 12px 18px; }
}

/* ==========================================================
   Buscador del header (widget de búsqueda de Elementor)
   ========================================================== */
.elementor-widget-wp-widget-search .search-form {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 2px solid #21a6a3;
	border-radius: 999px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.elementor-widget-wp-widget-search .search-form:focus-within {
	box-shadow: 0 0 0 4px rgba(33, 166, 163, .18);
}

.elementor-widget-wp-widget-search .search-form .search-field {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	padding: 8px 18px;
	font-size: 15px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
}

.elementor-widget-wp-widget-search .search-form .search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	color: #fff;
	background: #21a6a3;
	border: 0;
	border-radius: 0 999px 999px 0;
	transition: background .2s;
}

.elementor-widget-wp-widget-search .search-form .search-submit:hover { background: #178583; }
.elementor-widget-wp-widget-search .search-form .search-submit svg { fill: #fff; }
