/* ==========================================================================
   Tienda y categorías (maquetas 05 y 07) y tarjetas de producto de los listados.
   Se carga en la Tienda, en las categorías y en las fichas (productos relacionados).
   ========================================================================== */

/* ---------- Contenedor ---------- */
.marea-tienda .ast-container {
	max-width: 1240px;
	padding-inline: 20px;
	display: block;
}
.marea-tienda #primary { width: 100%; margin: 0; padding: 0; }
.marea-tienda .ast-woocommerce-container { padding: 0; margin: 0; }
.marea-tienda .site-main { padding: 0; }

/* ---------- Cabecera ---------- */
.marea-tienda .marea-ac {
	font-family: var(--fuente-adorno);
	font-weight: 400;
	font-variation-settings: normal;
	letter-spacing: 0;
	color: var(--rosa-accion);
	font-size: 1.3em;
	line-height: 0.8;
}
.marea-tienda__cabecera { padding-top: 16px; }
.marea-tienda .marea-tienda__titulo {
	margin: 0;
	font-size: 42px;
	line-height: 1.06;
	letter-spacing: -0.015em;
}
.marea-tienda__intro {
	margin: 16px 0 0;
	max-width: 640px;
	font-size: 17px;
	line-height: 1.6;
}
.marea-chips { margin-top: 24px; }
.marea-chips ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.marea-chips li { margin: 0; }
.marea-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--crema);
	color: var(--tinta);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}
.marea-chip:hover { background: var(--crema); }
.marea-chip.is-activo,
.marea-chip.is-activo:hover {
	background: var(--rosa-accion);
	color: var(--fondo);
	text-decoration: none;
}

/* Categoría sin productos: aviso sencillo en vez de la caja de Astra */
.marea-tienda .woocommerce-info {
	margin: 40px 0 0;
	padding: 24px 28px;
	border: 0;
	border-radius: 24px;
	background: var(--crema);
	color: var(--tinta);
}
.marea-tienda .woocommerce-info::before { display: none; }

/* ---------- Rejilla ---------- */
.marea-tienda ul.products,
.marea-tienda .products[class*="columns-"] {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
}
.marea-tienda ul.products::before,
.marea-tienda ul.products::after { display: none; }

/* ---------- Tarjeta (también en Inicio y en relacionados) ---------- */
.marea-fav,
.woocommerce ul.products li.product.marea-fav,
.ast-container .woocommerce ul.products li.product.marea-fav {
	margin: 0;
	padding: 0;
	width: auto;
	float: none;
	list-style: none;
	text-align: left;
	border: 0;
	box-shadow: none;
	background: none;
	border-radius: 0;
}
.marea-fav__foto { position: relative; display: block; }
.marea-fav__enlace-foto { display: block; }
.marea-fav__foto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 50% 40%;
	border-radius: 18px !important; /* Astra redondea solo arriba (20px 20px 0 0) en las listas de productos */
	background: var(--crema);
	margin: 0 !important; /* Astra/WooCommerce dejan 12,8 px bajo la foto en las listas de productos y el botón «Ver producto» se salía por abajo */
}
.marea-fav__ver {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 4px 4px 4px 14px;
	border-radius: 999px;
	background: var(--fondo);
	color: var(--tinta);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}
.marea-fav__ver::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--rosa-accion);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FEFDFB' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}
.marea-fav .marea-fav__nombre {
	margin: 14px 0 0;
	font-family: var(--fuente-texto);
	font-variation-settings: normal;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: 0;
}
.marea-fav .marea-fav__nombre a { color: var(--tinta); text-decoration: none; }
.marea-fav a.marea-fav__ver { text-decoration: none; }
.marea-fav .marea-fav__precio {
	margin: 4px 0 0;
	font-weight: 600;
	color: var(--rosa-accion);
	font-size: 16px;
}
.marea-fav .marea-fav__precio .woocommerce-Price-amount,
.marea-fav .marea-fav__precio ins { color: inherit; background: none; text-decoration: none; }

/* ---------- Cierre: ¿Tienes una idea en mente? ---------- */
.marea-tienda .marea-idea { padding: 72px 0 56px; }
.marea-idea__caja {
	background: var(--crema);
	border-radius: 32px;
	padding: 36px 24px;
	text-align: center;
	max-width: 960px;
	margin-inline: auto;
}
.marea-idea__caja h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; }
.marea-idea__caja p { margin: 12px auto 22px; max-width: 560px; font-size: 17px; line-height: 1.6; }
.marea-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 32px;
	border-radius: 999px;
	background: var(--rosa-accion);
	color: var(--fondo);
	font-weight: 600;
	text-decoration: none;
}
.marea-pill:hover { color: var(--fondo); background: var(--rosa-accion); }

/* ==========================================================================
   Escritorio
   ========================================================================== */
@media (min-width: 900px) {
	.marea-tienda .ast-container { padding-inline: 40px; }
	.marea-tienda__cabecera { padding-top: 40px; }
	.marea-tienda .marea-tienda__titulo { font-size: clamp(56px, 5.3vw, 76px); }
	.marea-tienda__intro { margin-top: 20px; font-size: 20px; }
	.marea-chips { margin-top: 32px; }
	.marea-tienda ul.products,
	.marea-tienda .products[class*="columns-"] {
		margin-top: 40px;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 48px 24px;
	}
	.marea-fav__foto img { border-radius: 22px !important; }
	.marea-fav__ver { min-height: 48px; }
	.marea-fav .marea-fav__nombre { font-size: 18px; }
	.marea-tienda .marea-idea { padding: 112px 0 96px; }
	.marea-idea__caja { border-radius: 40px; padding: 56px 48px; }
	.marea-idea__caja h2 { font-size: 40px; }
	.marea-idea__caja p { margin: 14px auto 28px; font-size: 18px; }
	.marea-pill { display: inline-flex; min-height: 56px; padding: 0 40px; font-size: 18px; }
}
