/* ==========================================================================
   Shared layout: nav (desktop base — mobile collapse lives in nav-mobile.css),
   drawer/search overlays, mini-cart panel, footer, and the section-head/
   eyebrow/section-title pattern reused on every content page.
   ========================================================================== */

/* WooCommerce's default content wrapper (global/wrapper-start.php) — targeted
   directly instead of overriding that template, see plan. */
#primary {
	position: relative;
}

/* ---------- Nav ---------- */
.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 14px clamp(16px, 4vw, 40px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 12px 30px -18px rgba(53, 48, 42, 0.35);
}
.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}
.nav-logo img {
	width: 32px;
	height: auto;
	display: block;
}
.nav-logo span {
	font-size: 0.64rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.nav-links {
	justify-self: center;
	display: flex;
	gap: clamp(16px, 2.6vw, 34px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links a {
	text-decoration: none;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.75;
	transition: opacity 0.3s ease, color 0.3s ease;
}
.nav-links a:hover {
	opacity: 1;
	color: var(--dorado-ink);
}
.nav-icons {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nav-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background 0.2s ease;
}
.nav-icon-btn:hover {
	background: rgba(255, 255, 255, 0.32);
}
/* Guest state reads as an actual "login button" (client asked for a button,
   not just an icon), not just a bare account icon — logged-in users keep the
   compact icon-only form since at that point it's account access, not a CTA. */
.nav-account-btn--guest {
	width: auto;
	border-radius: 999px;
	padding: 0 14px 0 10px;
	gap: 6px;
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.nav-account-label {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.lnco-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--dorado-ink);
	color: var(--stone);
	font-size: 0.58rem;
	line-height: 16px;
	text-align: center;
}
.nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	cursor: pointer;
}
.nav-hamburger span {
	display: block;
	height: 1.5px;
	background: var(--ink);
}

/* ---------- Mini-cart dropdown (present in the header on every page) ---------- */
.lnco-mini-cart-panel {
	position: fixed;
	top: 64px;
	right: clamp(16px, 4vw, 40px);
	z-index: 55;
	width: min(340px, calc(100vw - 32px));
	max-height: 70vh;
	overflow-y: auto;
	border-radius: 18px;
	padding: 18px;
}
.lnco-mini-cart-panel[hidden] {
	display: none;
}

/* ---------- Drawer + search overlays ---------- */
.nav-drawer-overlay,
.nav-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(53, 48, 42, 0.32);
	backdrop-filter: blur(4px);
	display: flex;
}
.nav-drawer-overlay[hidden],
.nav-search-overlay[hidden] {
	display: none;
}
.nav-drawer {
	width: min(320px, 84vw);
	height: 100%;
	margin-right: auto;
	padding: 28px 24px;
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.75) 0%, rgba(222, 216, 205, 0.85) 100%);
	backdrop-filter: blur(20px) saturate(1.1);
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.nav-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.nav-drawer a {
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
}
.nav-search-overlay {
	align-items: flex-start;
	justify-content: center;
	padding-top: 100px;
}
.nav-search-panel {
	width: min(520px, 92vw);
	padding: 20px;
	border-radius: 18px;
}
.woocommerce-product-search {
	display: flex;
	gap: 10px;
}
.woocommerce-product-search .search-field {
	flex: 1;
	height: 50px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.32);
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--ink);
}
.woocommerce-product-search button[type='submit'] {
	appearance: none;
	cursor: pointer;
	height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	border: 1px solid rgba(255, 244, 214, 0.6);
	color: #4a3712;
	background: linear-gradient(150deg, rgba(255, 249, 227, 0.5) 0%, rgba(226, 191, 116, 0.26) 100%);
	font-family: inherit;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- Shared section head (barbería + tienda pages) ---------- */
.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	margin-bottom: clamp(40px, 6vw, 72px);
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 0.68rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.eyebrow::before,
.eyebrow::after {
	content: '';
	width: 22px;
	height: 1px;
	background: var(--dorado);
}
.section-title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.9rem, 3.6vw, 3.1rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 48px 20px 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.site-footer img {
	width: 40px;
	height: auto;
	opacity: 0.85;
}
.site-footer p {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	color: var(--ink-muted);
}

/* ---------- Avisos nativos de WooCommerce (añadido al carrito, errores de
   checkout, etc.) — cubre el feedback visual en los flujos que no son AJAX
   (ej. agregar al carrito desde la página de producto, ver Fase 2) sin tener
   que forzar todo por AJAX. ---------- */
.woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto 20px;
	padding: 0 clamp(20px, 5vw, 56px);
}
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	list-style: none;
	margin: 0 0 14px;
	padding: 14px 20px;
	border-radius: 14px;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: rgba(255, 255, 255, 0.32);
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: var(--ink);
}
.woocommerce-message {
	background: linear-gradient(150deg, rgba(255, 249, 227, 0.55) 0%, rgba(226, 191, 116, 0.22) 100%);
	border-color: rgba(255, 244, 214, 0.6);
}
.woocommerce-error {
	background: rgba(178, 84, 66, 0.12);
	border-color: rgba(178, 84, 66, 0.3);
}
.woocommerce-message a.button,
.woocommerce-error a.button {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 16px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.4);
}

/* ---------- Breadcrumbs (see inc/woocommerce-setup.php for the arg overrides) ---------- */
.lnco-breadcrumb {
	max-width: 1280px;
	margin: 0 auto;
	padding: 100px clamp(20px, 6vw, 64px) 0;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--ink-muted);
}
.lnco-breadcrumb a {
	color: var(--ink-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lnco-breadcrumb-sep {
	opacity: 0.5;
	margin: 0 4px;
}
