: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;
}

/* BREADCRUMB */
.subnav {
	background-color: var(--of-card-bg);
	border-bottom: 1px solid var(--of-border);
	padding: 12px 20px;
}

.breadcrumb-container {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--of-text-muted);
	flex-wrap: wrap;
}

.breadcrumb-container a {
	color: var(--of-text-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumb-container a:hover {
	color: var(--of-red);
}

.breadcrumb-container i {
	font-size: 10px;
}

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

.detail-main-card {
	background-color: var(--of-card-bg);
	border-radius: 12px;
	border: 1px solid var(--of-border);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.detail-header-block {
	padding: 24px 28px;
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--of-border);
}

/* GALERIA (solo imagen destacada por ahora) */
.detail-gallery {
	width: 320px;
	min-width: 320px;
}

.main-image-box {
	width: 100%;
	height: 280px;
	background-color: #f8fafc;
	border-radius: 10px;
	border: 1px solid var(--of-border);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.main-image-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.main-image-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(135deg, #eee, #f7f7f7);
}

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

/* INFO DE CABECERA */
.detail-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.meta-top-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.views-badge {
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	border: 1px solid #fca5a5;
	color: var(--of-red);
	font-weight: 800;
	font-size: 14px;
	padding: 6px 14px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-time-author {
	font-size: 13px;
	color: var(--of-text-muted);
	margin-left: auto;
}

.detail-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--of-text-main);
	margin-bottom: 12px;
	line-height: 1.35;
}

.detail-price-box {
	background-color: #f8fafc;
	border: 1px solid var(--of-border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.price-amounts {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.btn-buy-offer {
	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;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
	transition: all 0.2s;
}

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

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

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

.price-discount-tag {
	background-color: #ecfdf5;
	color: var(--of-green);
	font-weight: 700;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #a7f3d0;
}

.meta-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #4b5563;
	background: #f9fafb;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #f3f4f6;
}

.meta-item i {
	color: var(--of-red);
	font-size: 15px;
}

/* CUERPO / DESCRIPCION */
.detail-body {
	padding: 28px;
}

.section-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--of-text-main);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-heading i {
	color: var(--of-red);
}

.description-content {
	font-size: 15px;
	color: #374151;
	line-height: 1.7;
}

.description-content p {
	margin-bottom: 12px;
}

.description-content ul {
	margin-left: 20px;
	margin-bottom: 12px;
}

.description-content li {
	margin-bottom: 6px;
}

/* SIDEBAR DERECHA */
.sidebar-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.workshop-card {
	background-color: var(--of-card-bg);
	border-radius: 12px;
	border: 1px solid var(--of-border);
	padding: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.workshop-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.workshop-icon {
	width: 48px;
	height: 48px;
	background-color: #fef2f2;
	color: var(--of-red);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	flex-shrink: 0;
}

.workshop-name {
	font-weight: 800;
	font-size: 16px;
	color: var(--of-text-main);
}

/* OFERTAS RELACIONADAS */
.related-card {
	background-color: var(--of-card-bg);
	border-radius: 12px;
	border: 1px solid var(--of-border);
	padding: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.related-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--of-border);
}

.related-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.related-item {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: var(--of-text-main);
}

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

.related-img {
	width: 64px;
	height: 64px;
	background-color: #f8fafc;
	border-radius: 8px;
	border: 1px solid var(--of-border);
	object-fit: contain;
	padding: 4px;
	flex-shrink: 0;
}

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

.related-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 4px;
	transition: color 0.2s;
}

.related-item-price {
	font-size: 14px;
	font-weight: 800;
	color: var(--of-red);
}

.related-item-price-before {
	font-size: 11px;
	color: #9ca3af;
	text-decoration: line-through;
	font-weight: 400;
	margin-left: 6px;
}

/* RESPONSIVO */
@media (max-width: 992px) {
	.detail-wrapper {
		grid-template-columns: 1fr;
	}
	.detail-header-block {
		flex-direction: column;
	}
	.detail-gallery {
		width: 100%;
		min-width: 100%;
	}
}

@media (max-width: 640px) {
	.detail-header-block,
	.detail-body {
		padding: 18px;
	}
	.post-time-author {
		margin-left: 0;
	}
	.detail-title {
		font-size: 19px;
	}
	.price-now {
		font-size: 24px;
	}
	.detail-price-box {
		flex-direction: column;
		align-items: stretch;
	}
	.btn-buy-offer {
		justify-content: center;
	}
}
