/*
 Theme Name: Astra Child Modern
 Template: astra
*/

/* ================= VARIÁVEIS ================= */
:root {
	--cor-primaria: #e11d24;
	--cor-primaria-escura: #b0161c;
	--cor-primaria-clara: #fde8e9;
	--cor-secundaria: #ff6b00;
	--cor-sucesso: #00a86b;
	--cor-perigo: #dc3545;
	--cor-aviso: #ffc107;

	--cor-texto-principal: #1a1a1a;
	--cor-texto-secundario: #666666;
	--cor-texto-terciario: #999999;

	--cor-fundo-body: #F8F9FA;
	--cor-fundo-card: #ffffff;
	--cor-fundo-hover: #f5f7fa;

	--cor-borda-clara: #e0e0e0;
	--cor-borda-media: #d1d5db;
	--cor-borda-escura: #b0b0b0;

	--raio-borda-pequeno: 6px;
	--raio-borda-medio: 10px;
	--raio-borda-grande: 14px;
	--raio-borda-xl: 20px;

	--sombra-pequena: 0 2px 8px rgba(0, 0, 0, 0.06);
	--sombra-media: 0 4px 16px rgba(0, 0, 0, 0.08);
	--sombra-grande: 0 8px 32px rgba(0, 0, 0, 0.1);
	--sombra-xl: 0 12px 48px rgba(0, 0, 0, 0.12);

	--transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= RESET & BASE ================= */
body {
	background: var(--cor-fundo-body) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif !important;
	color: var(--cor-texto-principal);
	line-height: 1.6;
}

.site-content .ast-container {
	display: table !important;
}

/* ================= CONTAINER ================= */
.wm-container {
	max-width: 1440px !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
}

/* ================= HERO BANNER ================= */
.wm-hero-banner {
	background: linear-gradient(
		135deg,
		var(--cor-primaria) 0%,
		var(--cor-primaria-escura) 100%
	);
	color: white;
	padding: 20px 0;
	margin-bottom: 40px;
	border-radius: 0 0 var(--raio-borda-xl) var(--raio-borda-xl);
}

.wm-hero-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.wm-breadcrumb {
	font-size: 14px;
	margin-bottom: 16px;
	opacity: 0.9;
}

.wm-breadcrumb a {
	color: white;
	text-decoration: none;
	transition: var(--transicao);
}

.wm-breadcrumb a:hover {
	opacity: 0.8;
}

.wm-hero-title {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	flex-wrap: wrap !important;
}

.wm-hero-title h1 {
	font-size: 2.5rem !important;
	font-weight: 700 !important;
	margin: 0 !important;
	color: white !important;
}

/* ================= STATUS BADGE ================= */
.wm-status-badge {
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wm-status-badge.sold {
	background: var(--cor-perigo);
	color: white;
}

.wm-status-badge.available {
	background: white;
	color: var(--cor-primaria);
}

/* ================= LAYOUT GRID ================= */
.wm-content-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 380px !important;
	gap: 40px !important;
	max-width: 1200px;
	margin: 0 auto !important;
}

/* ================= GALERIA MODERNA ================= */
.wm-gallery-modern {
	margin-bottom: 30px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.wm-gallery-main {
	position: relative;
	background: #f8f9fa;
	min-height: 400px;
	display: flex;
	flex-direction: column;
}

.wm-gallery-featured {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
}

.wm-featured-image {
	width: auto !important;
	max-width: 100%;
	max-height: 500px;
	height: auto !important;
	transition: all 0.3s ease;
	object-fit: contain;
}

.wm-featured-image:hover {
	transform: scale(1.01);
}

.wm-sold-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	pointer-events: none;
}

.wm-sold-overlay span {
	background: #dc3545;
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 60px;
	font-weight: bold;
	transform: rotate(-15deg);
}

.wm-gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	background: #fff;
	border-top: 1px solid #eee;
}

.wm-gallery-prev,
.wm-gallery-next {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	color: #333;
	transition: color 0.3s;
	font-size: 24px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wm-gallery-prev:hover,
.wm-gallery-next:hover {
	color: var(--cor-primaria);
}

.wm-gallery-counter {
	margin: 0 20px;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.wm-gallery-thumbnails-modern {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
	padding: 15px;
	background: #fff;
	border-top: 1px solid #eee;
}

.wm-thumbnail-modern {
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	position: relative;
}

.wm-thumbnail-modern:hover {
	opacity: 0.8;
	transform: translateY(-2px);
}

.wm-thumbnail-modern.active {
	opacity: 1;
	border-color: var(--cor-primaria);
	box-shadow: 0 3px 10px rgba(225, 29, 36, 0.2);
}

.wm-thumbnail-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wm-thumbnail-modern:hover .wm-thumbnail-image {
	transform: scale(1.05);
}

/* ================= LIGHTBOX ================= */
.wm-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.wm-lightbox.active {
	display: flex;
}

.wm-lightbox-content {
	position: relative;
	width: 90%;
	height: 90%;
	max-width: 1200px;
	max-height: 90vh;
	background: transparent;
	display: flex;
	flex-direction: column;
}

.wm-lightbox-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	color: white;
}

.wm-lightbox-counter {
	font-size: 16px;
	font-weight: 500;
	opacity: 0.8;
}

.wm-lightbox-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
	line-height: 1;
}

.wm-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.wm-lightbox-close svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2;
}

.wm-lightbox-image-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.wm-lightbox-image {
	max-width: 100%;
	max-height: calc(90vh - 140px);
	object-fit: contain;
	animation: zoomIn 0.3s ease;
}

.wm-lightbox-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
}

.wm-loader {
	width: 50px;
	height: 50px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: var(--cor-primaria);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.wm-lightbox-footer {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 20px;
}

.wm-lightbox-prev,
.wm-lightbox-next {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.wm-lightbox-prev {
	left: 20px;
}

.wm-lightbox-next {
	right: 20px;
}

.wm-lightbox-prev:hover,
.wm-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%) scale(1.1);
}

.wm-lightbox-prev svg,
.wm-lightbox-next svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
}

/* Botões de navegação da galeria principal (pequenos) */
.wm-gallery-nav-buttons {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	transform: translateY(-50%);
	z-index: 2;
}

.wm-gallery-nav-prev,
.wm-gallery-nav-next {
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
}

.wm-gallery-nav-prev:hover,
.wm-gallery-nav-next:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.1);
}

.wm-gallery-nav-prev svg,
.wm-gallery-nav-next svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	stroke-width: 2;
}

/* Botões da galeria moderna */
.wm-gallery-prev,
.wm-gallery-next {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	color: #333;
	transition: color 0.3s;
	font-size: 0; /* Esconde texto se houver */
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wm-gallery-prev:hover,
.wm-gallery-next:hover {
	color: var(--cor-primaria);
}

.wm-gallery-prev svg,
.wm-gallery-next svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
}

/* ================= VEHICLE SUMMARY ================= */
.wm-vehicle-summary {
	background: var(--cor-fundo-card);
	border-radius: var(--raio-borda-grande);
	padding: 32px;
	box-shadow: var(--sombra-media);
	margin-bottom: 32px;
}

.wm-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 32px;
	padding-bottom: 32px;
}

.wm-price-section {
	flex: 1;
	min-width: 300px;
}

/* Preço antigo riscado */
.wm-price-old {
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wm-price-old-label {
	font-size: 0.9rem;
	color: var(--cor-texto-terciario);
}

.wm-price-old-value {
	font-size: 1.8rem;
	color: var(--cor-texto-terciario);
	text-decoration: line-through;
	font-weight: 600;
}

/* Preço principal NORMAL */
.wm-price-main {
	font-size: 3rem;
	font-weight: 800;
	color: var(--cor-texto-principal);
	line-height: 1;
	margin-bottom: 4px;
}

/* Destaque promocional */
.wm-price-promo {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 4px;
}

.wm-price-promo-value {
	font-size: 3rem;
	color: var(--cor-perigo);
	font-weight: 800;
	line-height: 1;
}

.wm-price-promo-label {
	font-size: 1rem;
	color: var(--cor-texto-secundario);
	margin-bottom: 6px;
	font-weight: 500;
}

.wm-price-installment {
	font-size: 1.1rem;
	color: var(--cor-texto-secundario);
	margin-top: 8px;
}

.wm-highlight-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 20px;
	flex: 2;
	min-width: 300px;
}

.wm-stat {
	background: var(--cor-fundo-hover);
	padding: 20px;
	border-radius: var(--raio-borda-medio);
	text-align: center;
	transition: var(--transicao);
}

.wm-stat:hover {
	background: var(--cor-primaria-clara);
	transform: translateY(-2px);
}

.wm-stat-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--cor-texto-terciario);
	margin-bottom: 6px;
}

.wm-stat-value {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--cor-texto-principal);
}

/* Responsividade para preços */
@media (max-width: 768px) {
	.wm-price-main {
		font-size: 2.5rem;
	}

	.wm-price-promo-value {
		font-size: 2.5rem;
	}

	.wm-price-old-value {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.wm-price-main {
		font-size: 2rem;
	}

	.wm-price-promo-value {
		font-size: 2rem;
	}

	.wm-price-old-value {
		font-size: 1.2rem;
	}
}

/* ================= SEÇÕES DE CONTEÚDO ================= */
.wm-description-section,
.wm-specs-section,
.wm-features-section {
	background: var(--cor-fundo-card);
	border-radius: var(--raio-borda-grande);
	padding: 32px;
	box-shadow: var(--sombra-media);
	margin-bottom: 32px;
}

.wm-section-title {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--cor-texto-principal);
	margin-bottom: 24px !important;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--cor-primaria-clara);
}

.wm-description-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--cor-texto-secundario);
}

.wm-description-content p {
	margin-bottom: 1.5em !important;
}

/* ================= FICHA TÉCNICA ================= */
.wm-specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.wm-spec-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: var(--cor-fundo-hover);
	border-radius: var(--raio-borda-medio);
	transition: var(--transicao);
}

.wm-spec-item:hover {
	background: var(--cor-primaria-clara);
}

.wm-spec-label {
	font-size: 14px;
	color: var(--cor-texto-terciario);
}

.wm-spec-value {
	font-weight: 600;
	color: var(--cor-texto-principal);
}

.wm-spec-color {
	display: inline-block;
	width: 25%;
	height: 20px;
	border-radius: 4px;
}

/* ================= OPICIONAIS ================= */
.wm-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.wm-feature-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: var(--cor-fundo-hover);
	border-radius: var(--raio-borda-medio);
	transition: var(--transicao);
}

.wm-feature-item:hover {
	background: var(--cor-primaria-clara);
	transform: translateY(-2px);
}

.wm-feature-item span:first-child {
	color: var(--cor-sucesso);
	font-weight: bold;
}

/* ================= SIDEBAR ================= */
.wm-sidebar-column {
	position: sticky;
	top: 100px;
	height: fit-content;
	margin-bottom: 32px;
}

/* ================= CARD DE CONTATO MODERNO ================= */
.wm-contact-card-modern {
	background: var(--cor-fundo-card);
	border-radius: var(--raio-borda-grande);
	overflow: hidden;
	box-shadow: var(--sombra-grande);
	margin-bottom: 24px;
}

.wm-contact-header {
	background: linear-gradient(
		135deg,
		var(--cor-primaria) 0%,
		var(--cor-primaria-escura) 100%
	);
	color: white;
	padding: 32px;
	text-align: center;
}

.wm-contact-header h3 {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	margin: 0 0 8px 0 !important;
	color: white;
}

.wm-contact-header p {
	opacity: 0.9;
	margin: 0;
}

.wm-contact-actions {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ================= BOTÕES MODERNOS ================= */
.wm-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 24px;
	border-radius: var(--raio-borda-medio);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transicao);
	border: none;
	width: 100%;
	text-align: center;
}

.wm-button-whatsapp {
	background: #25d366;
	color: white;
	border: 2px solid #25d366;
}

.wm-button-whatsapp:hover {
	background: transparent;
	color: #25d366;
	transform: translateY(-2px);
	box-shadow: var(--sombra-media);
}

.wm-button-call {
	background: var(--cor-primaria);
	color: white;
	border: 2px solid var(--cor-primaria);
}

.wm-button-call:hover {
	background: transparent;
	color: var(--cor-primaria);
	transform: translateY(-2px);
	box-shadow: var(--sombra-media);
}

.wm-button-email {
	background: transparent;
	color: var(--cor-texto-principal);
	border: 2px solid var(--cor-borda-media);
}

.wm-button-email:hover {
	background: transparent;
	color: var(--cor-primaria);
	border-color: var(--cor-primaria);
}

.wm-phone-number {
	background: var(--cor-fundo-hover);
	padding: 16px;
	border-radius: var(--raio-borda-medio);
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: var(--cor-texto-principal);
	margin-top: 16px;
	animation: fadeIn 0.3s ease-out;
}

/* ================= CARD DE SEGURANÇA ================= */
.wm-safety-card {
	background: var(--cor-fundo-card);
	border-radius: var(--raio-borda-grande);
	padding: 24px;
	box-shadow: var(--sombra-media);
}

.wm-safety-card h4 {
	font-size: 1.2rem !important;
	font-weight: 600 !important;
	margin: 0 0 16px 0 !important;
	color: var(--cor-texto-principal);
}

.wm-safety-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wm-safety-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	color: var(--cor-texto-secundario);
}

/* ================= ANIMAÇÕES ================= */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.wm-gallery-modern,
.wm-vehicle-summary,
.wm-description-section,
.wm-specs-section,
.wm-contact-card-modern,
.wm-safety-card,
.wm-features-section {
	animation: fadeIn 0.6s ease-out;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1200px) {
	.wm-content-wrapper {
		grid-template-columns: 1fr !important;
    	padding: 0 20px !important;
	}

	.wm-sidebar-column {
		position: static !important;
	}
}

@media (max-width: 768px) {
	.wm-hero-title h1 {
		font-size: 2rem !important;
	}

	.wm-gallery-featured {
		height: 300px;
	}

	.wm-summary-header {
		align-items: stretch;
	}

	.wm-price-section,
	.wm-highlight-stats {
		min-width: 100%;
	}

	.wm-price-main {
		font-size: 2.5rem;
	}

	.wm-price-old-value {
		font-size: 1.5rem;
	}

	.wm-price-promo-value {
		font-size: 2rem;
	}

	/* Lightbox responsivo */
	.wm-lightbox-content {
		width: 95%;
		height: 95%;
	}

	.wm-lightbox-image {
		max-height: calc(95vh - 120px);
	}

	.wm-lightbox-header,
	.wm-lightbox-footer {
		padding: 15px;
	}

	.wm-lightbox-prev,
	.wm-lightbox-next {
		width: 50px;
		height: 50px;
		position: fixed;
		top: auto;
		bottom: 20px;
	}

	.wm-lightbox-prev {
		left: 20px;
		right: auto;
		transform: none;
	}

	.wm-lightbox-next {
		right: 20px;
		left: auto;
		transform: none;
	}

	.wm-lightbox-close {
		width: 35px;
		height: 35px;
	}

	/* Botões de navegação da galeria principal */
	.wm-gallery-nav-buttons {
		display: none; /* Esconde em mobile */
	}

	.wm-gallery-prev,
	.wm-gallery-next {
		width: 35px;
		height: 35px;
	}
}

@media (max-width: 480px) {
	.wm-container {
		padding: 0 12px !important;
	}

	.wm-hero-banner {
		padding: 24px 0;
	}

	.wm-gallery-featured {
		height: 250px;
	}

	.wm-featured-image {
		max-height: 350px;
	}

	.wm-price-main {
		font-size: 2rem;
	}

	.wm-price-old-value {
		font-size: 1.2rem;
	}

	.wm-price-promo-value {
		font-size: 1.8rem;
	}

	.wm-specs-grid {
		grid-template-columns: 1fr;
	}

	.wm-features-grid {
		grid-template-columns: 1fr;
	}

	.wm-sold-overlay span {
		font-size: 16px;
	}

	/* Lightbox mobile */
	.wm-lightbox-content {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
	}

	.wm-lightbox-header {
		padding: 10px;
	}

	.wm-lightbox-footer {
		padding: 10px;
	}

	.wm-lightbox-prev,
	.wm-lightbox-next {
		width: 45px;
		height: 45px;
		bottom: 15px;
	}

	.wm-lightbox-prev {
		left: 15px;
	}

	.wm-lightbox-next {
		right: 15px;
	}

	.wm-lightbox-close {
		width: 30px;
		height: 30px;
	}

	.wm-lightbox-counter {
		font-size: 14px;
	}
}
