.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;

  background: transparent;
  transition: background 0.3s ease;
}

.site-header.scrolled{
  background:#000;
}

.header-inner,
.pdp-inner {
  max-width: 90vw;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  height: 60px;
  /* position: relative; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left{
  flex:1;
  display:flex;
  align-items:center;
}

.header-center{
  flex:1;
  display:flex;
  justify-content:center;
}

.header-right{
  flex:1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
/* 

/* Logo: sparse letterspacing, all lowercase */

.logo img{
  height: 38px;
  width:auto;
  display:block;
}

.logo{
  display:flex;
  align-items:center;
}

.logo:hover { opacity: 0.6; }

.header-nav{
  display:flex;
  gap:10px;
  margin-left:auto;
  margin-right:.85em;
  font-size:.75em;
  letter-spacing:0.03em;
  font-weight: 900;
}

.header-nav a:hover{background-color:var(--details)}
/* .header-nav a:hover{text-shadow: -.6cap .8cap 2px var(--details);} */

/* Cart button */
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: .1em solid ;
  color: var(--text-secondary);
  transition: border-color var(--t), background var(--t);
  flex-shrink: 0;
}
.cart-btn:hover { border-color: var(--text); color: var(--text) }

/* Cart count badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--details);
  color: var(--bg);
  font-size: 1em;
  font-weight: 400;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 4px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hidden by default */
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t), transform var(--t);
}
.cart-count.visible { opacity: 1; transform: scale(1); }


/* MENU HAMBURGUESA TIPO MODAL MOBILE */
.menu-btn {
  width: 40px;
  height: 40px;

  display: flex; 
  flex-direction: column;
  justify-content: center;
  gap: 4px;

  border: .1em solid;
  border-radius: var(--radius);
  color: var(--text-secondary);

  transition: all var(--t);
}

.menu-btn span {
  display: block;
  height: 1px;
  width: 16px;
  background: currentColor;
  margin: 0 auto;
}

.menu-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

/* .mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 3500;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
} */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3500;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* .mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;

  width: 80%;
  max-width: 300px;
  height: 100%;

  background: var(--surface);
  border-left: 1px solid var(--border);

  padding: 24px;

  display: flex;
  flex-direction: column;
} */

.mobile-menu-panel {
  background: var(--surface);
  padding: 22px 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(320px, calc(100vw - 48px));
}

/* Opciones separadas por una línea fina (sin línea después de la última).
   Cada opción ocupa toda la fila: área táctil de 52 px. */
.mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 4px 2px;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color var(--t), padding-left var(--t);
}
.mobile-menu-panel a:last-of-type { border-bottom: none; }
.mobile-menu-panel a:hover { color: var(--text-secondary); padding-left: 6px; }
.mobile-menu-panel a:active { color: var(--text-secondary); }
.mobile-menu-panel a:focus-visible { outline: var(--focus-outline); outline-offset: 2px; box-shadow: var(--focus-ring); }
.mobile-menu-close { margin-bottom: 6px !important; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel a { transition: none; }
  .mobile-menu-panel a:hover { padding-left: 2px; }
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 18px;
  background: none;
  border: none;
  color: var(--text);
  margin: -.8em;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

/* .mobile-menu-links a {
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
} */

.header-actions {
    display: flex;
    align-items: center;
    gap: .4em; 
  }

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: #000; /* negro real */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Intro ya vista en esta visita: no se vuelve a mostrar */
.intro-seen #preloader { display: none; }

/* Respaldo: si el JavaScript no llega a cargar, la intro se va sola */
#preloader { animation: preloader-failsafe 0.5s ease 5s forwards; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Tipografía de la marca: css/components/brand.css (.povmatero-wordmark) */
.logo-preload {

  /* 🔥 esto oculta todo el texto */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    white 50%,
    transparent 60%,
    transparent 100%
  );

  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    white 50%,
    transparent 60%,
    transparent 100%
  );

  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;

  animation: reveal 2s ease forwards;
}

@keyframes reveal {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}
