/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme — Rediseño Distrimega (demo)
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =========================================================================
   Distrimega — rediseño por categorías (demo)
   Paleta moderna y limpia.
   ========================================================================= */

:root {
	--dm-ink: #151519;
	--dm-muted: #6b6b70;
	--dm-accent: #0e7c73;
	--dm-accent-dark: #0a5f58;
	--dm-accent-soft: #e5f2f1;
	--dm-bg: #ffffff;
	--dm-bg-soft: #f6f6f4;
	--dm-line: #eaeae8;
	--dm-badge: #c0392b;
	--dm-radius: 16px;
	--dm-shadow: 0 1px 2px rgba(21, 21, 25, 0.05), 0 10px 30px rgba(21, 21, 25, 0.07);
	--dm-font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

.dm-home {
	font-family: var(--dm-font);
	color: var(--dm-ink);
	background: var(--dm-bg);
}

.dm-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Barra de categorías (navegación) */
.dm-catbar {
	background: #101013;
	color: #fff;
	padding: 0;
	position: relative;
	z-index: 5;
}
.dm-catbar .dm-container {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 52px;
	overflow: hidden;
}
.dm-catbar-label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9aa0a6;
}
.dm-catbar-list {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.dm-catbar-list::-webkit-scrollbar { display: none; }
.dm-catbar-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	color: #e7e7ea;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}
.dm-catbar-list a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dm-catbar-list sup {
	background: var(--dm-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	padding: 1px 7px;
	top: auto;
}

/* Hero */
.dm-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(14, 124, 115, 0.16), transparent 60%),
		linear-gradient(180deg, #fbfbfa 0%, #ffffff 100%);
	border-bottom: 1px solid var(--dm-line);
	overflow: hidden;
}
.dm-hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
	padding-top: 72px;
	padding-bottom: 72px;
}
.dm-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dm-accent);
	margin-bottom: 14px;
}
.dm-hero-title {
	font-size: clamp(30px, 4.4vw, 54px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
}
.dm-hero-title em {
	font-style: normal;
	color: var(--dm-accent);
	position: relative;
	white-space: nowrap;
}
.dm-hero-sub {
	font-size: 17px;
	line-height: 1.6;
	color: var(--dm-muted);
	max-width: 460px;
	margin: 0 0 28px;
}

/* Buscador */
.dm-search {
	display: flex;
	align-items: center;
	max-width: 460px;
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
	box-shadow: var(--dm-shadow);
	margin-bottom: 24px;
}
.dm-search input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 15px;
	color: var(--dm-ink);
	font-family: inherit;
	min-width: 0;
}
.dm-search input::placeholder { color: #a0a0a6; }
.dm-search button {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--dm-accent);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.18s ease;
}
.dm-search button:hover { background: var(--dm-accent-dark); }

.dm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Botones */
.dm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	border: 1px solid transparent;
}
.dm-btn--accent { background: var(--dm-accent); color: #fff; }
.dm-btn--accent:hover { background: var(--dm-accent-dark); color: #fff; }
.dm-btn--ghost { background: transparent; color: var(--dm-ink); border-color: var(--dm-line); }
.dm-btn--ghost:hover { border-color: var(--dm-ink); }
.dm-btn:hover { transform: translateY(-1px); }

/* Arte del hero */
.dm-hero-art {
	position: relative;
	min-height: 360px;
}
.dm-hero-orbit {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}
.dm-hero-orbit::before {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--dm-accent-soft), #ffffff);
	box-shadow: var(--dm-shadow);
}
.dm-hero-orbit img {
	position: relative;
	width: 300px;
	height: 300px;
	object-fit: contain;
	border-radius: 24px;
	z-index: 1;
	filter: drop-shadow(0 24px 40px rgba(21, 21, 25, 0.16));
}
.dm-hero-chip {
	position: absolute;
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: var(--dm-shadow);
	z-index: 2;
}
.dm-hero-chip--1 { top: 24px; left: 4%; }
.dm-hero-chip--2 { top: 46%; right: 0; }
.dm-hero-chip--3 { bottom: 30px; left: 12%; }

/* Secciones */
.dm-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}
.dm-sec-title {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
}
.dm-sec-head .dm-eyebrow { margin-bottom: 8px; }
.dm-link {
	font-size: 15px;
	font-weight: 600;
	color: var(--dm-accent);
	text-decoration: none;
	white-space: nowrap;
}
.dm-link:hover { color: var(--dm-accent-dark); }

/* Categorías (tiles) */
.dm-cats { padding: 64px 0; }
.dm-cats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}
.dm-cat {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dm-cat:hover {
	transform: translateY(-4px);
	box-shadow: var(--dm-shadow);
	border-color: transparent;
}
.dm-cat-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--dm-bg-soft);
	overflow: hidden;
	display: grid;
	place-items: center;
}
.dm-cat-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.dm-cat:hover .dm-cat-media img { transform: scale(1.05); }
.dm-cat-ph {
	font-size: 48px;
	font-weight: 700;
	color: var(--dm-accent);
	opacity: 0.4;
}
.dm-cat-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 16px 18px;
}
.dm-cat-name { font-size: 16px; font-weight: 600; color: var(--dm-ink); }
.dm-cat-count { font-size: 13px; color: var(--dm-muted); }

/* Sección por categoría */
.dm-catsec { padding: 28px 0 56px; }
.dm-catsec:nth-of-type(even) { background: var(--dm-bg-soft); }
.dm-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
}

/* Tarjeta de producto */
.dm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dm-card:hover { transform: translateY(-4px); box-shadow: var(--dm-shadow); }
.dm-card-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--dm-bg-soft);
	overflow: hidden;
}
.dm-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.dm-card:hover .dm-card-media img { transform: scale(1.05); }
.dm-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--dm-badge);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
	z-index: 2;
}
.dm-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
	flex: 1 1 auto;
}
.dm-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
}
.dm-card-title a { color: var(--dm-ink); text-decoration: none; }
.dm-card-title a:hover { color: var(--dm-accent); }
.dm-card-price { margin-top: auto; font-size: 16px; font-weight: 700; }
.dm-card-price del { color: var(--dm-muted); font-weight: 400; margin-right: 6px; }
.dm-card-price ins { text-decoration: none; }
.dm-card .dm-btn {
	padding: 11px 18px;
	font-size: 14px;
	background: var(--dm-ink);
	color: #fff;
}
.dm-card .dm-btn:hover { background: var(--dm-accent); }
.dm-card .dm-btn--ghost { background: transparent; color: var(--dm-ink); border-color: var(--dm-line); }
.dm-card .dm-btn--ghost:hover { border-color: var(--dm-ink); background: transparent; }

/* Franja de confianza */
.dm-trust {
	padding: 56px 0;
	background: #101013;
	color: #fff;
}
.dm-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}
.dm-trust-item { display: flex; gap: 16px; align-items: flex-start; }
.dm-trust-ico {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	color: #5eead4;
}
.dm-trust-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.dm-trust-item p { margin: 0; font-size: 14px; color: #a7abb0; line-height: 1.5; }

/* Ocultar la barra superior de demo (texto en inglés) */
.whb-top-bar { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
	.dm-hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
	.dm-hero-art { min-height: 300px; order: -1; }
	.dm-hero-orbit::before { width: 240px; height: 240px; }
	.dm-hero-orbit img { width: 220px; height: 220px; }
}
@media (max-width: 560px) {
	.dm-container { padding: 0 18px; }
	.dm-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.dm-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.dm-hero-title { font-size: 30px; }
	.dm-sec-head { flex-direction: column; align-items: flex-start; }
}
