.rs-producto-card {
	font-family: 'Jost', sans-serif;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-producto-card *,
.rs-producto-card *::before,
.rs-producto-card *::after {
	box-sizing: border-box;
}

.rs-producto-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.1);
	z-index: 10;
}

/* Badges */
.rs-producto-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 5;
}

.rs-producto-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.rs-producto-oferta { background: #2563eb; }
.rs-producto-nuevo { background: #22c55e; }

/* Galería */
.rs-producto-galeria {
	position: relative;
	width: 100%;
	background: #f8f9fb;
	border-radius: 12px;
	padding: 16px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.rs-producto-imagen {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.rs-producto-img-principal {
	max-width: 90%;
	max-height: 90%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 0.25s ease;
}

/* Acciones flotantes */
.rs-producto-acciones {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 6;
	opacity: 0;
	visibility: hidden;
	transform: translateX(10px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.rs-producto-card:hover .rs-producto-acciones {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.rs-producto-comparar,
.rs-producto-vista-rapida {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rs-producto-comparar:hover,
.rs-producto-vista-rapida:hover {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.rs-accion-icono { font-size: 13px; line-height: 1; }
.rs-accion-texto { display: none; }

@media (min-width: 400px) {
	.rs-producto-comparar,
	.rs-producto-vista-rapida { padding: 8px 12px; }
	.rs-accion-texto { display: inline; }
}

/* Thumbnails y dots */
.rs-producto-thumbnails {
	position: absolute;
	bottom: 38px;
	left: 16px;
	right: 16px;
	display: flex;
	justify-content: center;
	gap: 6px;
	z-index: 4;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.rs-producto-card:hover .rs-producto-thumbnails {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.rs-producto-thumb {
	width: 36px;
	height: 36px;
	padding: 2px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
	flex: 0 0 auto;
}

.rs-producto-thumb.rs-thumb-activo,
.rs-producto-thumb:hover {
	border-color: #2563eb;
}

.rs-producto-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rs-producto-dots {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	z-index: 4;
}

.rs-galeria-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(0,0,0,0.25);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.rs-galeria-dot.rs-dot-activo,
.rs-galeria-dot:hover {
	background: #2563eb;
	transform: scale(1.2);
}

/* Info */
.rs-producto-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px;
	gap: 6px;
	min-width: 0;
}

.rs-producto-titulo {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-producto-titulo a {
	color: #111827;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rs-producto-titulo a:hover { color: #2563eb; }

.rs-producto-categorias {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rs-producto-categorias a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.rs-producto-categorias a:hover { text-decoration: underline; }

.rs-categoria-separador { color: #9ca3af; margin-right: 2px; }

.rs-producto-rating { margin: 2px 0; }
.rs-producto-rating .star-rating { float: none; margin: 0; color: #fbbf24; font-size: 13px; }
.rs-producto-rating .star-rating::before { color: #e5e7eb; }
.rs-producto-rating .star-rating span { color: #fbbf24; }

.rs-producto-stock {
	font-size: 12px;
	margin: 0;
	font-weight: 500;
}

.rs-producto-stock.in-stock { color: #16a34a; }
.rs-producto-stock.out-of-stock { color: #ef4444; }

.rs-producto-precio {
	font-size: 16px;
	font-weight: 700;
	color: #2563eb;
	margin: 4px 0;
	line-height: 1.3;
}

.rs-producto-precio del,
.rs-producto-precio .woocommerce-Price-amount:first-child:has(~ .woocommerce-Price-amount) {
	color: #9ca3af;
	font-weight: 400;
	font-size: 13px;
	text-decoration: line-through;
	margin-right: 6px;
}

.rs-producto-precio ins { text-decoration: none; color: #2563eb; }

/* Botón */
.rs-producto-boton { margin-top: auto; }

.rs-producto-boton .button,
.rs-producto-boton a.button,
.rs-producto-boton button.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100%;
	padding: 12px 16px !important;
	background: #2563eb !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-align: center !important;
	text-decoration: none !important;
	cursor: pointer !important;
	line-height: 1.4 !important;
	transition: background 0.2s ease !important;
}

.rs-producto-boton .button:hover,
.rs-producto-boton a.button:hover,
.rs-producto-boton button.button:hover {
	background: #1d4ed8 !important;
}

/* Atributos */
.rs-producto-atributos {
	padding: 0 16px 16px;
	border-top: 1px solid #f3f4f6;
}

.rs-atributos-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	padding: 10px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #6b7280;
}

.rs-atributos-toggle .rs-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.rs-atributos-contenido {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.25s ease;
}

.rs-producto-card.rs-atributos-expandido .rs-atributos-contenido {
	max-height: 800px;
	opacity: 1;
}

.rs-atributos-tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	color: #374151;
}

.rs-atributos-tabla tr { border-bottom: 1px solid #f3f4f6; }
.rs-atributos-tabla tr:last-child { border-bottom: none; }

.rs-atributos-tabla th,
.rs-atributos-tabla td {
	padding: 8px 0;
	vertical-align: top;
	text-align: left;
}

.rs-atributos-tabla th {
	width: 45%;
	font-weight: 600;
	color: #111827;
	padding-right: 10px;
}

/* Grid helpers */
.rs-filtro-grid .rs-producto-card { height: 100%; }

@media (max-width: 768px) {
	.rs-producto-galeria { padding: 12px; }
	.rs-producto-info { padding: 12px; }
	.rs-producto-titulo { font-size: 14px; }
	.rs-producto-precio { font-size: 15px; }
	.rs-producto-atributos { padding: 0 12px 12px; }
}
