/* =========================================================
   Camisetum Header (custom)
   Estructura: Dropdown (izq) - Logo (centro) - Iconos (der)
   ========================================================= */

body.camisetum-has-custom-header #masthead,
body.camisetum-has-custom-header .site-header,
body.camisetum-has-custom-header header.ast-header,
body.camisetum-has-custom-header .ast-primary-header-bar,
body.camisetum-has-custom-header .ast-mobile-header-wrap {
  display: none !important;
}

/* Header custom */
.camisetum-header{
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
  z-index: 50;
}

.camisetum-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 64px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Logo centrado */
.camisetum-header__center{
  display:flex;
  justify-content:center;
  align-items:center;
}
.camisetum-header__logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  color: inherit;
}
.camisetum-header__logo img{
  display:block;
  height: 34px;
  width: auto;
}
.ch-logo-text{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}

/* Lado izq/der */
.camisetum-header__left{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.camisetum-header__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
}

/* Botones icono */
.ch-icon-btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  color: #111;
  text-decoration:none !important;
}
.ch-icon-btn svg{ display:block; fill: currentColor; }
.ch-icon-btn:focus-visible{
  outline: 2px solid #046bd2;
  outline-offset: 2px;
}

/* Badge carrito */
.ch-badge{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background:#111;
  color:#fff;
  font-size: 11px;
  line-height: 18px;
  text-align:center;
}

/* Dropdown */
.ch-dropdown{
  position: relative;
}
.ch-dropdown__toggle{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  font-weight: 700;
  font-size: 13px;
  cursor:pointer;
}
.ch-dropdown__toggle svg{ fill: currentColor; }
.ch-dropdown__toggle:focus-visible{
  outline: 2px solid #046bd2;
  outline-offset: 2px;
}

/* Menú */
.ch-dropdown__menu{
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, 80vw);
  background:#fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 8px;
  display:none;
  max-height: min(420px, 60vh);
  overflow:auto;
}
.ch-dropdown.is-open .ch-dropdown__menu{ display:block; }

.ch-dropdown__list{
  margin:0;
  padding:0;
  list-style:none;
}
.ch-dropdown__item{ margin:0; }

.ch-dropdown__link{
  display:flex;
  align-items:center;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration:none !important;
  color:#111;
  font-size: 13px;
  font-weight: 600;
}
.ch-dropdown__link:hover{
  background: rgba(0,0,0,.05);
}

.ch-dropdown__empty{
  padding: 10px;
  font-size: 12px;
  color: #555;
}

/* Evitar “azul Astra” en focus */
.ch-dropdown__link:focus,
.ch-dropdown__link:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.18) !important;
}

/* Mobile */
@media (max-width: 767.98px){
  .camisetum-header__inner{
    min-height: 56px;
    padding: 8px 12px;
  }
  .camisetum-header__logo img{
    height: 30px;
  }
  .ch-dropdown__toggle{
    padding: 0 10px;
    font-size: 12px;
  }
}
