.ofertas-page-content {
	max-width: 1320px;
	margin: 0 auto 1rem;
	padding: 1rem 20px 0;
}

:root {
	--of-red: #c0392b;
	--of-red-hover: #a5301f;
	--of-dark: #1a1a1a;
	--of-bg: #f5f5f0;
	--of-card-bg: #ffffff;
	--of-border: #e2e8f0;
	--of-text-main: #1f2937;
	--of-text-muted: #6b7280;
	--of-green: #10b981;
}

/* SUBNAV: pestañas de categoria */
.subnav {
	background-color: var(--of-card-bg);
	border-bottom: 1px solid var(--of-border);
	padding: 0 20px;
}

.subnav-container {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	gap: 32px;
	overflow-x: auto;
}

.subnav-btn {
	padding: 14px 4px;
	color: var(--of-text-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 3px solid transparent;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.subnav-btn.active,
.subnav-btn:hover {
	color: var(--of-red);
	border-bottom-color: var(--of-red);
}

/* CONTENEDOR PRINCIPAL */
.main-wrapper {
	max-width: 1320px;
	margin: 24px auto;
	padding: 0 20px 3rem;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
}

/* SIDEBAR DE FILTROS */
.sidebar {
	background-color: var(--of-card-bg);
	border-radius: 12px;
	padding: 20px;
	border: 1px solid var(--of-border);
	height: fit-content;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--of-border);
}

.filter-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--of-text-main);
}

.btn-reset {
	color: var(--of-text-muted);
	font-size: 13px;
	text-decoration: none;
	font-weight: 500;
}

.btn-reset:hover {
	color: var(--of-red);
}

.filter-group {
	margin-bottom: 22px;
}

.filter-label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	display: block;
	color: var(--of-text-main);
}

/* SELECTOR DE VEHICULO (deshabilitado por ahora, se reactiva en fase futura) */
.garage-selector {
	background: #f8fafc;
	border: 1px solid var(--of-border);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 20px;
	position: relative;
}

.garage-selector.is-disabled {
	opacity: 0.6;
}

.garage-selector.is-disabled select {
	cursor: not-allowed;
	pointer-events: none;
}

.garage-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--of-red);
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.garage-soon {
	font-size: 11px;
	color: var(--of-text-muted);
	margin-top: 6px;
	font-style: italic;
}

.custom-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--of-border);
	border-radius: 6px;
	background-color: white;
	font-size: 14px;
	color: var(--of-text-main);
	outline: none;
	margin-bottom: 8px;
	cursor: pointer;
}

.custom-select:focus {
	border-color: var(--of-red);
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
}

.checkbox-item input[type='checkbox'] {
	accent-color: var(--of-red);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.count-tag {
	margin-left: auto;
	font-size: 12px;
	color: #9ca3af;
}

.price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.price-box {
	position: relative;
	flex: 1;
}

.price-box span {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--of-text-muted);
	font-size: 13px;
}

.price-box input {
	width: 100%;
	padding: 8px 8px 8px 22px;
	border: 1px solid var(--of-border);
	border-radius: 6px;
	font-size: 13px;
}

.btn-apply-filters {
	width: 100%;
	justify-content: center;
	border: none;
	cursor: pointer;
}

/* FEED DE OFERTAS */
.offers-feed {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.offer-card {
	background-color: var(--of-card-bg);
	border-radius: 12px;
	border: 1px solid var(--of-border);
	display: flex;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	position: relative;
}

.offer-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.card-image-wrapper {
	width: 240px;
	min-width: 240px;
	background-color: #f8fafc;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-right: 1px solid #f1f5f9;
}

.card-image {
	max-width: 100%;
	max-height: 180px;
	width: 100%;
	height: 180px;
	object-fit: contain;
	border-radius: 6px;
}

.card-image--placeholder {
	background: linear-gradient(135deg, #eee, #f7f7f7);
}

.discount-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: var(--of-red);
	color: white;
	font-weight: 800;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
	z-index: 1;
}

.card-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.card-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.vote-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #fef2f2;
	border: 1px solid #fca5a5;
	color: var(--of-red);
	font-weight: 700;
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 20px;
}

.time-ago {
	font-size: 12px;
	color: var(--of-text-muted);
	background-color: #f3f4f6;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.workshop-tag {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #4b5563;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.workshop-tag i {
	color: var(--of-red);
}

.card-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--of-text-main);
	margin-bottom: 8px;
	line-height: 1.3;
	text-decoration: none;
	display: block;
}

.card-title:hover {
	color: var(--of-red);
}

.price-section {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.current-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--of-red);
}

.old-price {
	font-size: 15px;
	color: #9ca3af;
	text-decoration: line-through;
}

.saving-tag {
	font-size: 12px;
	color: var(--of-green);
	font-weight: 700;
	background-color: #ecfdf5;
	padding: 2px 6px;
	border-radius: 4px;
}

.merchant-info {
	font-size: 12px;
	color: var(--of-text-muted);
}

.merchant-info strong {
	color: var(--of-text-main);
}

.card-description {
	font-size: 13px;
	color: #4b5563;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.5;
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
	margin-top: auto;
	gap: 12px;
}

.social-actions {
	display: flex;
	gap: 16px;
}

.action-btn {
	background: none;
	border: none;
	color: var(--of-text-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
}

.action-btn:hover {
	color: var(--of-red);
}

.btn-cta {
	background-color: var(--of-red);
	color: white;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 25px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.btn-cta:hover {
	background-color: var(--of-red-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(192, 57, 43, 0.35);
	color: white;
}

.ofertas-pagination {
	text-align: center;
	margin: 2rem 0 0;
}

.ofertas-pagination .page-numbers {
	display: inline-block;
	margin: 0 0.25rem;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
}

.ofertas-pagination .page-numbers.current {
	background: var(--of-red);
	color: #fff;
}

.ofertas-empty {
	text-align: center;
	padding: 3rem 0;
	color: #777;
}

/* RESPONSIVO */
@media (max-width: 992px) {
	.main-wrapper {
		grid-template-columns: 1fr;
	}
	.sidebar {
		display: none;
	}
}

@media (max-width: 640px) {
	.offer-card {
		flex-direction: column;
	}
	.card-image-wrapper {
		width: 100%;
		height: 200px;
		border-right: none;
		border-bottom: 1px solid #f1f5f9;
	}
	.card-image {
		height: 100%;
	}
	.card-top-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.card-footer {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
	}
	.btn-cta {
		justify-content: center;
	}
}
