/*
Theme Name: Woodmart Child - DistribuidoraCG
Description: Tema hijo de Woodmart con el rediseño de DistribuidoraCG. Aquí van todos los estilos personalizados.
Template: woodmart
Version: 1.0.0
*/

/* =========================================================
   Rediseño landing DistribuidoraCG
   Paleta: oscuro #1c1c1c · acento #efb536
   ========================================================= */

/* Variables globales de paleta: en :root (no solo bajo .dcg-landing) para
   que también apliquen en las grillas de producto de páginas que no son
   la portada (ej. "Productos relacionados" en single-product). */
:root {
	--dcg-paper: rgba(28, 28, 28, 0.04);
	--dcg-ink: #1c1c1c;
	--dcg-ink-soft: rgba(28, 28, 28, 0.65);
	--dcg-line: rgba(28, 28, 28, 0.15);
	--dcg-yellow: #efb536;
}

/* ----- Header (fila navy: logo invertido a blanco) ----- */
.whb-general-header .site-logo img {
	filter: brightness(0) invert(1);
}

/* ----- Cabecera (logo + buscador) y menú principal: contenedor a 1400px ----- */
.whb-general-header,
.whb-header-bottom {
	--wd-container-w: 1400px;
}

/* ----- Fila de categorías del header: menos alta ----- */
.whb-header-bottom {
	--wd-header-bottom-h: 46px !important;
	--wd-header-bottom-sm-h: 40px !important;
	border-bottom: 1px solid lightgray;
}

/* ----- Barra de búsqueda del header ----- */
.whb-general-header .wd-header-search-form {
	max-width: 680px;
	margin: 0 auto;
	padding-top: 8px;
}

/* ----- Carrito: texto "Mi carrito" a la izquierda, ícono a la derecha, sin precio ni cantidad ----- */
.whb-col-right .wd-header-cart a {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 8px;
}

.whb-col-right .wd-header-cart .wd-cart-number,
.whb-col-right .wd-header-cart .subtotal-divider,
.whb-col-right .wd-header-cart .wd-cart-subtotal {
	display: none !important;
}

.whb-col-right .wd-header-cart .wd-tools-text::before {
	content: "Mi carrito";
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.whb-header-bottom .wd-header-main-nav {
	width: 100%;
}

.whb-header-bottom .wd-nav-main {
	width: 100%;
	justify-content: space-between;
}

.page .wd-page-content,
.woodmart-archive-shop:not(.single-product) .wd-page-content,
.single-product .wd-page-content,
.woodmart-archive-blog .wd-page-content {
	background-color: #fff !important;
}

.dcg-landing {
	font-family: "Archivo", inherit;
	color: var(--dcg-ink);
	background: #fff;
}

.dcg-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

.dcg-landing h1,
.dcg-landing h2 {
	font-family: "Archivo", sans-serif;
	color: var(--dcg-ink);
	letter-spacing: -0.01em;
}

/* ----- Hero: carrusel de imágenes ----- */
main.container:has(.dcg-hero-carousel) {
	--wd-container-w: 1430px;
}

/* ----- Tienda / categorías / búsqueda: ancho del contenido principal ----- */
main.wd-content-layout.container {
	--wd-container-w: 1390px;
}

.dcg-hero-carousel {
	position: relative;
	background: #fff;
}

.dcg-hero-swiper {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	border-radius: 25px;
}

.dcg-hero-swiper .swiper-wrapper {
	display: flex;
	box-sizing: content-box;
}

.dcg-hero-swiper .swiper-slide {
	position: relative;
	flex-shrink: 0;
	width: 100%;
}

.dcg-hero-slide-bg {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
}

/* ----- Overlay de texto + botón sobre cada slide ----- */
.dcg-hero-slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 6%;
	font-family: "Poppins", sans-serif;
}

.dcg-hero-slide-content--center {
	align-items: center;
	text-align: center;
}

.dcg-hero-slide-content--left {
	align-items: flex-start;
	text-align: left;
	max-width: 620px;
}

.dcg-hero-slide-eyebrow {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	opacity: 0.9;
}

.dcg-hero-carousel .dcg-hero-slide-heading {
	margin: 0 0 16px;
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	font-size: clamp(22px, 3.4vw, 44px);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.dcg-hero-slide-heading .dcg-hl {
	color: var(--dcg-yellow);
}

.dcg-hero-slide-text {
	margin: 0 0 24px;
	max-width: 520px;
	font-size: clamp(14px, 1.3vw, 17px);
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.dcg-hero-slide-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 30px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.dcg-hero-slide-btn:hover {
	transform: translateY(-2px);
}

.dcg-hero-slide-btn--dark {
	background: var(--dcg-ink);
	color: #fff !important;
}

.dcg-hero-slide-btn--light {
	background: #fff;
	color: var(--dcg-ink) !important;
}

.dcg-hero-slide-quote {
	position: absolute;
	right: 6%;
	bottom: 24px;
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-style: italic;
	font-size: 14px;
	color: #fff;
	opacity: 0.85;
}

.dcg-hero-swiper .swiper-pagination {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.dcg-hero-swiper .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.dcg-hero-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	transform: scale(1.15);
	background: var(--dcg-yellow);
}

.dcg-hero-swiper .swiper-button-prev,
.dcg-hero-swiper .swiper-button-next {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.dcg-hero-swiper .swiper-button-prev:hover,
.dcg-hero-swiper .swiper-button-next:hover {
	opacity: 0.7;
}

.dcg-hero-swiper .swiper-button-prev {
	left: 20px;
}

.dcg-hero-swiper .swiper-button-next {
	right: 20px;
}

.dcg-hero-swiper .swiper-button-prev::after,
.dcg-hero-swiper .swiper-button-next::after {
	content: "";
	width: 9px;
	height: 9px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.dcg-hero-swiper .swiper-button-prev::after {
	transform: rotate(-135deg) translate(1px, -1px);
}

.dcg-hero-swiper .swiper-button-next::after {
	transform: rotate(45deg) translate(-1px, -1px);
}

.dcg-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dcg-btn-primary {
	background: var(--dcg-ink);
	color: #fff !important;
}

.dcg-btn-primary:hover {
	background: var(--dcg-yellow);
	color: var(--dcg-ink) !important;
}

/* ----- Secciones ----- */
.dcg-section {
	padding: 64px 0;
}

.dcg-section-alt {
	background: #fff;
}

.dcg-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}

.dcg-section-head h2 {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	margin: 0;
}

.dcg-section-head a {
	font-size: 14px;
	font-weight: 600;
	color: var(--dcg-ink);
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--dcg-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.dcg-section-head a:hover {
	text-decoration-color: var(--dcg-ink);
}

/* ----- Conoce nuestros productos: categorías destacadas ----- */
.dcg-highlights {
	padding-top: 32px;
	padding-bottom: 64px;
}

.dcg-highlights .dcg-container {
	padding-left: 0;
	padding-right: 0;
}

.dcg-highlights .dcg-section-head {
	justify-content: center;
}

.dcg-highlights-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.dcg-highlight-card {
	display: block;
	line-height: 0;
	border-radius: 25px;
	overflow: hidden;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.dcg-highlight-card:hover {
	transform: translateY(-2px);
	opacity: 0.92;
}

.dcg-highlight-card img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.dcg-highlights-grid {
		grid-template-columns: 1fr;
	}
}

/* ----- Más formas de comprar ----- */
.dcg-section-head-center {
	justify-content: center;
}

.dcg-savings {
	background: var(--dcg-paper);
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.dcg-savings .dcg-container {
	padding-left: 0;
	padding-right: 0;
}

.dcg-savings-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.dcg-save-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 2px solid var(--dcg-line);
	border-radius: 20px;
	padding: 32px 24px;
}

.dcg-save-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--dcg-yellow);
}

.dcg-save-card h3 {
	font-family: "Archivo", sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: var(--dcg-ink);
	margin: 0 0 10px;
}

.dcg-save-card p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dcg-ink-soft);
	margin: 0 0 22px;
}

.dcg-btn-outline {
	background: #fff;
	color: var(--dcg-ink) !important;
	border: 2px solid var(--dcg-ink);
	border-radius: 30px;
}

.dcg-btn-outline:hover {
	background: var(--dcg-yellow);
	border-color: var(--dcg-yellow);
	color: var(--dcg-ink) !important;
}

@media (max-width: 991px) {
	.dcg-savings-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.dcg-savings-grid {
		grid-template-columns: 1fr;
	}
}

/* ----- Categorías: filas con productos destacados ----- */
.dcg-cat-section .dcg-container {
	padding-left: 0;
	padding-right: 0;
}

.dcg-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 22px;
	border-radius: 999px;
	background: var(--dcg-ink);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dcg-pill-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--dcg-yellow);
	color: var(--dcg-ink);
	font-size: 15px;
	transition: transform 0.15s ease;
}

.dcg-pill-btn:hover {
	background: var(--dcg-yellow);
	color: var(--dcg-ink) !important;
}

.dcg-pill-btn:hover .dcg-pill-btn-icon {
	background: var(--dcg-ink);
	color: #fff;
	transform: translateX(2px);
}

.dcg-cat-rows {
	display: flex;
	flex-direction: column;
}

.dcg-cat-row {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 40px 0;
	border-top: 1px solid var(--dcg-line);
}

.dcg-cat-row-info {
	flex: 0 0 260px;
	width: 260px;
}

.dcg-cat-row-info h3 {
	font-family: "Archivo", sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--dcg-ink);
	margin: 0 0 10px;
}

.dcg-cat-row-info p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dcg-ink-soft);
	margin: 0 0 20px;
}

.dcg-cat-row-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dcg-ink);
}

.dcg-cat-row-all-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px dashed var(--dcg-ink);
	border-radius: 50%;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dcg-cat-row-all:hover .dcg-cat-row-all-icon {
	background: var(--dcg-yellow);
	border-color: var(--dcg-yellow);
	color: var(--dcg-ink);
}

.dcg-cat-row-products {
	flex: 1;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.dcg-cat-product {
	display: flex;
	flex-direction: column;
	min-height: 400px;
	background: var(--dcg-paper);
	border-radius: 10px;
	padding: 18px;
}

.dcg-cat-product-badge {
	font-size: 12px;
	color: var(--dcg-ink-soft);
	margin-bottom: 10px;
}

.dcg-cat-product-media {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	margin-bottom: 14px;
}

.dcg-cat-product-media img {
	max-height: 260px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dcg-cat-product-foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.dcg-cat-product-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--dcg-ink);
	line-height: 1.3;
}

.dcg-cat-product-view {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--dcg-ink);
	text-decoration: underline;
	text-decoration-color: var(--dcg-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

@media (max-width: 767px) {
	.dcg-cat-row {
		flex-direction: column;
		gap: 20px;
	}

	.dcg-cat-row-info {
		width: 100%;
	}

	.dcg-cat-row-products {
		grid-template-columns: repeat(2, 1fr);
		width: 100%;
	}
}

@media (max-width: 480px) {
	.dcg-cat-row-products {
		grid-template-columns: 1fr;
	}
}

/* ----- Productos destacados ----- */
.dcg-products .products.wd-products {
	--wd-col-lg: 6 !important;
	--wd-col-md: 3 !important;
	--wd-col-sm: 2 !important;
	--wd-gap-lg: 18px !important;
	--wd-gap-sm: 12px !important;
}

.dcg-products .wd-product {
	background: #fff !important;
	border: 1px solid #ccc !important;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcg-products .wd-product:hover {
	border-color: #999 !important;
	box-shadow: 0 6px 18px rgba(28, 28, 28, 0.08) !important;
}

/* El tema levanta la tarjeta y muestra una tarjeta "fantasma" superpuesta al pasar el mouse (efecto fade/lift);
   lo desactivamos por completo para que la tarjeta se quede quieta y solo cambien los colores. */
.dcg-products .wd-product .product-wrapper,
.dcg-products .wd-product:is(:hover, .state-hover) .product-wrapper {
	transform: none !important;
	z-index: auto !important;
}

.dcg-products .wd-hover-with-fade .content-product-imagin {
	display: none !important;
}

.dcg-products .wd-hover-with-fade .fade-in-block {
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.dcg-products .wd-hover-with-fade .product-element-bottom {
	position: static !important;
}

.dcg-products .product-element-top {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	padding: 20px;
	background: #fff;
}

.dcg-products .product-image-link,
.dcg-products .wd-product-grid-slider {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.dcg-products .product-image-link img {
	width: auto !important;
	height: auto !important;
	max-height: 160px !important;
	max-width: 100%;
	object-fit: contain;
	position: static !important;
}

.dcg-products .wd-product-grid-slider,
.dcg-products .wd-product-grid-slider-pagin {
	display: none !important;
}

.dcg-products .onsale {
	top: 12px !important;
	left: 12px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	line-height: 1 !important;
	padding: 5px 10px !important;
	border-radius: 20px !important;
	background: var(--dcg-yellow) !important;
	color: var(--dcg-ink) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dcg-products .wd-product-cats,
.dcg-products .wd-product-stock {
	display: none !important;
}

.dcg-products .product-element-bottom {
	display: flex !important;
	flex-direction: column;
	padding: 16px !important;
}

.dcg-products .wrap-price {
	order: 1;
	margin: 0 0 6px !important;
}

.dcg-products .wrap-price .price,
.dcg-products .wrap-price .price *,
.dcg-products .wrap-price .price .amount {
	font-size: 17px !important;
	font-weight: 800 !important;
	color: var(--dcg-ink) !important;
}

.dcg-products .wrap-price .dcg-price-agotado {
	font-weight: 800 !important;
	color: var(--dcg-ink-soft) !important;
}

.dcg-products .wrap-price del {
	font-size: 13px;
	font-weight: 400;
	color: var(--dcg-ink-soft);
	opacity: 1;
	margin-right: 6px;
}

.dcg-products .wrap-price ins {
	text-decoration: none;
}

.dcg-products .star-rating {
	display: none !important;
}

.dcg-products .wd-entities-title {
	order: 3;
	font-size: 14px !important;
	font-weight: 500 !important;
	margin: 0 0 4px !important;
	line-height: 1.4;
}

.dcg-products .wd-entities-title a {
	color: var(--dcg-ink) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dcg-products .wd-product:hover .wd-entities-title a {
	color: var(--dcg-ink) !important;
	text-decoration: underline;
	text-decoration-color: var(--dcg-yellow);
}

.dcg-products .dcg-product-excerpt {
	order: 3;
	margin: 0 0 14px !important;
	font-size: 12px;
	line-height: 1.5;
	color: var(--dcg-ink-soft);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dcg-products .wd-add-btn {
	order: 4;
	margin: 0 !important;
}

.dcg-products .wd-add-btn .button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	height: 40px !important;
	text-align: center;
	text-transform: none !important;
	padding: 6px 14px !important;
	border-radius: 999px !important;
	border: 1px solid #1c1c1c !important;
	background: #fff !important;
	color: #1c1c1c !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	line-height: 1.3 !important;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.dcg-products .wd-add-btn .button:hover {
	background: #efb536 !important;
	border-color: #1c1c1c !important;
	color: #1c1c1c !important;
}

.dcg-products .wd-add-btn .dcg-btn-agotado,
.dcg-products .wd-add-btn .dcg-btn-agotado:hover {
	cursor: default;
	background: #f0f0f0 !important;
	border-color: #ccc !important;
	color: rgba(28, 28, 28, 0.5) !important;
}

/* ----- Carrusel: flechas ----- */
.dcg-products {
	position: relative;
	padding-top: 4px;
}

.dcg-products .wd-nav-pagin-wrap {
	display: none !important;
}

.dcg-section-head-carousel {
	padding-right: 100px;
}

.dcg-products .wd-nav-arrows {
	position: absolute !important;
	top: -56px !important;
	right: 0 !important;
	left: auto !important;
	bottom: auto !important;
	display: flex !important;
	gap: 10px;
	transform: none !important;
	opacity: 1 !important;
	pointer-events: none !important;
}

.dcg-products .wd-nav-arrows::after {
	display: none !important;
}

.dcg-products .wd-btn-arrow .wd-arrow-inner {
	color: var(--dcg-ink) !important;
}

.dcg-products .wd-btn-arrow:hover .wd-arrow-inner {
	color: var(--dcg-ink) !important;
}

.dcg-products .wd-btn-arrow {
	position: static !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	border-radius: 50% !important;
	border: 1px solid var(--dcg-line) !important;
	background: #fff !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transform: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.dcg-products .wd-btn-arrow:hover {
	border-color: var(--dcg-yellow) !important;
	background: var(--dcg-yellow) !important;
}

.dcg-products .wd-btn-arrow.wd-disabled {
	opacity: 0.35 !important;
	pointer-events: none;
}

.dcg-products .wd-add-btn .button span {
	display: inline !important;
	white-space: normal !important;
	overflow: visible !important;
	transform: none !important;
	opacity: 1 !important;
	transition: none !important;
}

.dcg-products .wd-add-btn .button:hover span {
	transform: none !important;
	opacity: 1 !important;
}

.dcg-products .wd-add-btn .button::before,
.dcg-products .wd-add-btn .button::after {
	display: none !important;
	content: none !important;
}

.dcg-products .fade-in-block {
	display: none !important;
}

@media (max-width: 640px) {
	.dcg-products .product-element-top {
		height: 160px;
		padding: 14px;
	}
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
	.dcg-cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.dcg-hero-inner {
		padding-top: 48px;
		padding-bottom: 44px;
	}
	.dcg-section {
		padding: 44px 0;
	}
	.dcg-cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.dcg-section-head {
		flex-direction: column;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcg-landing * {
		transition: none !important;
	}
}

/* =========================================================
   Rediseño página Shop / categorías de producto
   ========================================================= */

/* ----- Botón volver a la categoría anterior ----- */
body.woodmart-archive-shop .dcg-back-to-parent-cat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 9px 18px 9px 14px;
	border: 1px solid rgba(28, 28, 28, 0.15);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #1c1c1c;
	background: #fff;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

body.woodmart-archive-shop .dcg-back-to-parent-cat:hover {
	border-color: #1c1c1c;
	color: #1c1c1c;
	background: rgba(28, 28, 28, 0.04);
}

body.woodmart-archive-shop .dcg-back-arrow {
	font-size: 15px;
	line-height: 1;
}

/* ----- Alto de caja mínimo para imágenes: productos y categorías ----- */
body.woodmart-archive-shop .product-element-top {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	background: #fff;
}

body.woodmart-archive-shop .product-element-top .product-image-link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body.woodmart-archive-shop .product-element-top .product-image-link img {
	width: auto !important;
	height: auto !important;
	max-height: 190px !important;
	max-width: 100%;
	object-fit: contain;
}

body.woodmart-archive-shop .category-image-wrapp {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

body.woodmart-archive-shop .category-image-wrapp .category-image {
	max-height: 120px;
	width: auto;
	object-fit: contain;
}

@media (max-width: 640px) {
	body.woodmart-archive-shop .product-element-top {
		min-height: 160px;
	}

	body.woodmart-archive-shop .product-element-top .product-image-link img {
		max-height: 140px !important;
	}
}

/* ----- Texto "N productos" más compacto ----- */
body.woodmart-archive-shop .more-products {
	font-size: 12px !important;
}

body.woodmart-archive-shop .more-products > a {
	font-size: 12px !important;
}

/* ----- Sidebar de filtros ----- */
body.woodmart-archive-shop .wd-sidebar .widget {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(28, 28, 28, 0.15);
}

body.woodmart-archive-shop .wd-sidebar .widget:last-child {
	border-bottom: none;
}

body.woodmart-archive-shop .wd-sidebar .widget-title,
body.woodmart-archive-shop .wd-sidebar .widget_title {
	font-size: 15px;
	font-weight: 700;
	color: #1c1c1c;
	margin-bottom: 16px;
}

/* ----- Botones globales: fondo oscuro por defecto, acento al hover ----- */
button,
input[type="submit"],
input[type="button"],
.button,
.wd-add-btn .button,
.add_to_cart_button,
.single_add_to_cart_button,
.wd-btn-arrow,
.dcg-btn,
.dcg-btn-primary,
.dcg-btn-ghost,
.dcg-cat-initial,
a.button,
.wp-block-button__link {
	background-color: #1c1c1c !important;
	border-color: #1c1c1c !important;
	color: #fff !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.wd-add-btn .button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.wd-btn-arrow:hover,
.dcg-btn:hover,
.dcg-btn-primary:hover,
.dcg-btn-ghost:hover,
a.button:hover,
.wp-block-button__link:hover {
	background-color: #efb536 !important;
	border-color: #efb536 !important;
	color: #1c1c1c !important;
}

.wd-btn-arrow .wd-arrow-inner {
	color: #fff !important;
}

.wd-btn-arrow:hover .wd-arrow-inner {
	color: #1c1c1c !important;
}

/* =========================================================
   Página de producto individual
   ========================================================= */

/* ----- Precio: negrita y color oscuro ----- */
.single-product .wd-single-price .price,
.single-product .wd-single-price .woocommerce-Price-amount {
	font-weight: 700 !important;
	color: #1c1c1c !important;
}

/* ----- Precio + etiqueta de stock en la misma línea ----- */
.single-product .wd-single-price,
.single-product .wd-single-stock-status {
	width: auto !important;
	max-width: 100% !important;
}

.single-product .wd-single-price .price {
	margin: 0;
}

.single-product .wd-single-stock-status .stock {
	margin: 0;
}

/* ----- Descripción: contenido en dos columnas ----- */
.single-product .wd-single-content {
	column-count: 2;
	column-gap: 40px;
}

@media (max-width: 767px) {
	.single-product .wd-single-content {
		column-count: 1;
	}
}

/* =========================================================
   Banner de pasos (Carrito / Checkout / Pedido completado)
   ========================================================= */

body.woocommerce-cart .wd-page-title,
body.woocommerce-checkout .wd-page-title {
	--wd-title-sp: 18px;
	background-color: #efb536;
}

body.woocommerce-cart .wd-checkout-steps,
body.woocommerce-checkout .wd-checkout-steps {
	color: #fff;
}

body.woocommerce-cart .wd-checkout-steps li > :is(a, span),
body.woocommerce-checkout .wd-checkout-steps li > :is(a, span) {
	color: #fff;
}

body.woocommerce-cart .wd-checkout-steps .step-active > :is(a, span),
body.woocommerce-checkout .wd-checkout-steps .step-active > :is(a, span) {
	text-decoration-color: #1c1c1c;
}

/* ----- Descripción: tabla de especificaciones (label + valor) ----- */
.single-product .wd-single-content .dcg-spec-table,
.single-product .woocommerce-Tabs-panel--description .dcg-spec-table {
	break-inside: avoid;
	column-span: all;
}

.single-product .wd-single-content .dcg-spec-row,
.single-product .woocommerce-Tabs-panel--description .dcg-spec-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(28, 28, 28, 0.12);
	break-inside: avoid;
}

.single-product .wd-single-content .dcg-spec-row:first-child,
.single-product .woocommerce-Tabs-panel--description .dcg-spec-row:first-child {
	border-top: 1px solid rgba(28, 28, 28, 0.12);
}

.single-product .wd-single-content .dcg-spec-label,
.single-product .woocommerce-Tabs-panel--description .dcg-spec-label {
	font-weight: 700;
	color: #1c1c1c;
}

.single-product .wd-single-content .dcg-spec-value,
.single-product .woocommerce-Tabs-panel--description .dcg-spec-value {
	color: rgba(28, 28, 28, 0.75);
	text-align: right;
}

/* ----- Descripción: texto libre antes de la tabla, separado con margen ----- */
.single-product .wd-single-content .dcg-single-intro,
.single-product .woocommerce-Tabs-panel--description .dcg-single-intro {
	margin-bottom: 28px;
	column-span: all;
}

/* ----- Ficha de producto: centrar verticalmente el resumen (título, precio, etc.) respecto a la imagen ----- */
.single-product .product-image-summary-wrap {
	align-items: center;
}

/* ----- Productos relacionados / Vistos recientemente: mismo diseño que Productos destacados ----- */
.single-product .dcg-products {
	position: relative;
	padding-top: 4px;
	margin-bottom: 40px;
}

.single-product .dcg-products .wd-nav-pagin-wrap {
	display: none !important;
}

/* Oculta el título y el bloque completo si el carrusel no trae productos (p. ej. "Vistos recientemente" sin historial) */
.single-product .dcg-section-head:has(+ .dcg-products:not(:has(.wd-products-element))),
.single-product .dcg-products:not(:has(.wd-products-element)) {
	display: none;
}

/* =========================================================
   Footer
   ========================================================= */

.dcg-footer {
	background: #1c1c1c;
	color: rgba(255, 255, 255, 0.7);
	padding: 56px 0 0;
}

.dcg-footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-bottom: 40px;
}

.dcg-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dcg-footer-logo {
	display: inline-block;
	max-width: 170px;
}

.dcg-footer-logo img {
	max-width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
}

.dcg-footer-logo span {
	font-family: "Archivo", sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #fff;
}

.dcg-footer-tagline {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.55);
	max-width: 280px;
}

.dcg-footer-col h3 {
	margin: 0 0 18px;
	font-family: "Archivo", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.dcg-footer-links ul,
.dcg-footer-contact ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dcg-footer-links a,
.dcg-footer-contact a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.15s ease;
}

.dcg-footer-links a:hover,
.dcg-footer-contact a:hover {
	color: #efb536;
}

.dcg-footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.dcg-footer-icon {
	display: inline-flex;
	color: #efb536;
	flex-shrink: 0;
}

.dcg-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 0;
}

.dcg-footer-bottom p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1024px) {
	.dcg-footer-main {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
	}
}

@media (max-width: 600px) {
	.dcg-footer-main {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Página "Pedido recibido"
   ========================================================= */

.woocommerce-order .woocommerce-thankyou-order-received {
	color: #fff !important;
	background-color: #efb536 !important;
	border-color: #efb536 !important;
}

.woocommerce-order .woocommerce-bacs-bank-details {
	margin-top: 40px;
}

.woocommerce-order .woocommerce-order-details {
	margin-top: 40px;
}

.dcg-print-receipt {
	margin-top: 20px;
}

@media print {
	.whb-header,
	#wd-mobile-navigation,
	.dcg-print-receipt,
	.wd-shipping-progress-bar,
	.wd-page-title,
	footer,
	.scroll-top,
	.wd-bottom-toolbar {
		display: none !important;
	}
}
