/* ==========================================================================
   Banco de semillas — [benditasea_random_seeds]
   ========================================================================== */

.bendita-random-seeds-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 15px;
}

.bendita-seeds-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
	transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	opacity: 1;
}

@media (max-width: 991px) {
	.bendita-seeds-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 600px) {
	.bendita-seeds-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}
}

.bendita-seed-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(46, 204, 113, 0.12);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

/* Necesario: `display: flex` de arriba gana al `display: none` que el navegador
   aplica por omisión a [hidden], y las tarjetas del pool se verían todas. */
.bendita-seed-card[hidden] {
	display: none;
}

.bendita-seed-card:hover {
	transform: translateY(-8px);
	border-color: rgba(46, 204, 113, 0.4);
	box-shadow: 0 15px 35px rgba(46, 204, 113, 0.12);
}

.bendita-seed-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bendita-seed-img-wrapper {
	position: relative;
	padding-top: 100%;
	background-color: #f7f9f8;
	overflow: hidden;
	border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.bendita-seed-img-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bendita-seed-card:hover .bendita-seed-img-wrapper img {
	transform: scale(1.06);
}

.bendita-seed-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #1b4d3e;
	color: #ffffff;
	padding: 5px 12px;
	border-radius: 30px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	z-index: 2;
	box-shadow: 0 4px 10px rgba(27, 77, 62, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.bendita-seed-info {
	padding: 20px 20px 15px 20px;
	text-align: left;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bendita-seed-title {
	font-family: 'Outfit', 'Montserrat', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1c3c22;
	margin: 0 0 12px 0;
	line-height: 1.4;
	height: 2.8em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.bendita-seed-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #2ecc71;
	margin-top: auto;
}

.bendita-seed-price del {
	font-size: 0.95rem;
	color: #999;
	font-weight: 400;
	margin-right: 8px;
}

.bendita-seed-price ins {
	text-decoration: none;
	color: #2ecc71;
}

.bendita-seed-actions {
	padding: 0 20px 20px 20px;
}

.bendita-seed-btn {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background-color: #0f1b15;
	color: #2ecc71;
	border: 1px solid rgba(46, 204, 113, 0.3);
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.bendita-seed-card:hover .bendita-seed-btn {
	background-color: #2ecc71;
	color: #ffffff;
	border-color: transparent;
	box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.bendita-refresh-btn-wrapper {
	text-align: center;
	margin-top: 20px;
}

.bendita-refresh-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 36px;
	background: linear-gradient(135deg, #1b4d3e 0%, #2ecc71 100%);
	color: #ffffff;
	border: none;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bendita-refresh-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(46, 204, 113, 0.45);
}

.bendita-refresh-btn:active {
	transform: translateY(0);
}

.bendita-refresh-btn svg {
	transition: transform 0.6s ease;
}

.bendita-refresh-btn.loading svg {
	animation: bendita-spin 0.8s linear infinite;
}

@keyframes bendita-spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.bendita-seeds-empty {
	text-align: center;
	color: #6b7280;
}

/* Respeta la preferencia del sistema de reducir animaciones. */
@media (prefers-reduced-motion: reduce) {

	.bendita-seeds-grid,
	.bendita-seed-card,
	.bendita-seed-img-wrapper img,
	.bendita-seed-btn,
	.bendita-refresh-btn,
	.bendita-refresh-btn svg {
		transition: none;
	}

	.bendita-refresh-btn.loading svg {
		animation: none;
	}
}
