/*
Theme Name: Mercado Vera
Theme URI: https://mercado-vera.local
Author: Fictioneyes
Description: Minimal Elementor-ready theme for the Mercado Vera multi-vendor catalogue marketplace. Intentionally blank for Elementor page building; WooCommerce and Dokan compatible.
Version: 1.0.25
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mercado-vera
Tags: e-commerce, elementor, woocommerce, custom-menu, translation-ready
*/

/* ——— Reset (Elementor / WooCommerce friendly) ——— */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	overflow-x: clip;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
pre {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
	border: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

button,
input,
optgroup,
select,
textarea {
	font: inherit;
	color: inherit;
	margin: 0;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

legend {
	padding: 0;
}

a {
	text-decoration: none;
	background-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--mv-primary, #ab4d2b);
	outline-offset: 2px;
}

/* ——— Brand tokens (prototype: raices-arte-mex.base44.app) ——— */
:root {
	--mv-font-heading: "Playfair Display", Georgia, serif;
	--mv-font-body: "Inter", system-ui, sans-serif;

	--mv-primary: #ab4d2b; /* terracotta */
	--mv-primary-hover: #8f3f24;
	--mv-secondary: #3b9188; /* turquoise */
	--mv-accent: #2d765e; /* emerald */
	--mv-ink: #231d1a; /* foreground */
	--mv-muted-text: #7c706a;
	--mv-bg: #f9f7f5;
	--mv-card: #fdfcfc;
	--mv-muted: #f0edea;
	--mv-border: #e5e0dc;
	--mv-cream: #f6f3ee;
	--mv-clay: #af876a;
	--mv-gold: #dea821;
	--mv-deep-blue: #224577;
	--mv-destructive: #dc2828;
	--mv-soft-turquoise: #eaf5f4;
	--mv-soft-emerald: #ebf4f1;
	--mv-soft-terracotta: #f6edea;
	--mv-footer-muted: #a3a09d;
}

/* ——— Base ——— */
body {
	min-height: 100vh;
	line-height: 1.5;
	font-family: var(--mv-font-body);
	font-weight: 400;
	color: var(--mv-ink);
	background-color: var(--mv-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--mv-font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--mv-ink);
}

p {
	line-height: 1.6;
}

a {
	color: var(--mv-primary);
}

a:hover,
a:focus-visible {
	color: var(--mv-primary-hover);
}

.site-content {
	min-height: 50vh;
}

/*
 * Header utility icons: Elementor e-con-full + empty/% width can expand past
 * the viewport and hide icons off-screen. Keep the cluster shrink-wrapped.
 */
.elementor-location-header .mv-header-icons.e-con,
.elementor-location-header .elementor-element-60736d6.e-con {
	width: auto !important;
	max-width: max-content;
	flex: 0 0 auto !important;
}

/* Prevent header flex row (nowrap nav + icons) from forcing page-wide scroll. */
.elementor-location-header,
.elementor-location-header .e-con {
	max-width: 100%;
}

.elementor-location-header .elementor-element-3bfd125 {
	min-width: 0;
	--flex-shrink: 1 !important;
}
