/* ==== Product card (compartida: home, categoría, relacionados) ==== */
.ardea-product-card {
	display: block;
	color: var(--c-ink);
	font-family: var(--f-ui);
}
.ardea-product-card__link { display: block; }
.ardea-product-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--c-pink-muted);
	margin-bottom: 10px;
}
.ardea-product-card__media-link { height: 100%; }
.ardea-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ardea-product-card__badge { position: absolute; top: 10px; left: 10px; }
.ardea-product-card__quick-add {
	flex: 0 0 auto;
	width: 38px; height: 38px; padding: 0; border: 1px solid var(--c-ink);
	background: var(--c-bg); color: var(--c-ink); display: grid; place-items: center;
	transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.ardea-product-card__quick-add svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ardea-product-card__quick-add:hover { background: var(--c-ink); color: var(--c-pink); transform: translateY(-2px); }
.ardea-product-card__quick-add:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.ardea-product-card__quick-add:disabled { border-color: var(--c-pink-border); color: var(--c-muted); cursor: not-allowed; opacity: .5; }
.ardea-product-card__quick-add:disabled:hover { background: var(--c-bg); color: var(--c-muted); transform: none; }
.ardea-product-card__name {
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.01em;
}
.ardea-product-card__price { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 600; }
.ardea-product-card__price .woocommerce-Price-amount { font-size: 14px; font-weight: 600; }
.ardea-product-card__price del { order: 2; }
.ardea-product-card__price del .woocommerce-Price-amount { font-size: 12px; font-weight: 400; color: var(--c-muted); text-decoration: line-through; }
.ardea-product-card__price ins { text-decoration: none; }
.ardea-product-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ardea-product-card__colors { display: flex; flex-wrap: wrap; gap: 7px; }
.ardea-product-card__quick-add--solo { display: grid; margin: 10px 0 0 auto; }
.ardea-product-card__color {
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--c-ink) 22%, transparent);
	border-radius: 50%;
	background: var(--ardea-swatch-color);
	box-shadow: 0 0 0 2px transparent;
	transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}
.ardea-product-card__color:hover:not(:disabled) { transform: scale(1.08); }
.ardea-product-card__color.is-selected { box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 3px var(--c-ink); }
.ardea-product-card__color:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.ardea-product-card__color:disabled { opacity: .32; cursor: not-allowed; }
.ardea-quick-add-sheet { position: fixed; inset: 0; z-index: 80; display: none; }
.ardea-quick-add-sheet.is-open { display: block; }
.ardea-quick-add-sheet__backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .28); }
.ardea-quick-add-sheet__panel { position: absolute; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); padding: 20px; background: var(--c-bg); border: 1px solid var(--c-pink-border); box-shadow: 0 18px 44px rgba(18, 18, 18, .2); }
.ardea-quick-add-sheet__title { margin: 0 32px 16px 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ardea-quick-add-sheet__close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; background: transparent; font-size: 24px; line-height: 1; }
.ardea-quick-add-sheet__label { display: block; margin-bottom: 10px; color: var(--c-label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ardea-quick-add-sheet__sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ardea-quick-add-sheet__size { min-height: 42px; border: 1px solid var(--c-pink-border); background: transparent; font-size: 13px; }
.ardea-quick-add-sheet__size:hover:not(:disabled) { border-color: var(--c-ink); }
.ardea-quick-add-sheet__size:disabled { color: var(--c-muted); text-decoration: line-through; cursor: not-allowed; }
.ardea-quick-add-toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; padding: 12px 18px; background: var(--c-ink); color: var(--c-pink); font-size: 13px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.ardea-quick-add-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) {
	.ardea-quick-add-sheet__panel { right: 0; bottom: 0; width: 100%; padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
	.ardea-quick-add-sheet__panel::before { content: ''; display: block; width: 34px; height: 3px; margin: -16px auto 18px; background: var(--c-muted); }
}

/* ==== Product grid ==== */
.ardea-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 12px;
}
@media (min-width: 480px) { .ardea-product-grid { gap: 20px 16px; } }
@media (min-width: 768px) { .ardea-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ardea-product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==== Archive header (categoría) ==== */
.ardea-archive-header {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}
@media (min-width: 600px) {
	.ardea-archive-header { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
}
.ardea-archive-header h1 { font-size: 24px; }
@media (min-width: 480px) { .ardea-archive-header h1 { font-size: 30px; } }
.ardea-archive-header__count { margin: 0; font-size: 13px; color: var(--c-label); }

.ardea-filters {
	display: flex;
	gap: 8px 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
@media (min-width: 480px) { .ardea-filters { margin-bottom: 28px; } }

.ardea-archive-main { padding: 24px var(--gutter) 56px; }
@media (min-width: 480px) { .ardea-archive-main { padding: 32px var(--gutter) 64px; } }
