:root {
  --byp-header-burgundy: #9b1f36;
  --byp-header-ink: #082747;
  --byp-header-cream: #fbf8f4;
}

.byp-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(155, 31, 54, 0.22);
  color: var(--byp-header-ink);
  position: relative;
  z-index: 50;
}

.byp-header * {
  box-sizing: border-box;
}

.byp-header__topbar {
  background: #1d1d1b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 16px;
  text-align: center;
}

.byp-header__inner,
.byp-header__search,
.byp-header__nav,
.byp-header__sale {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.byp-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 14px;
}

.byp-header__brand {
  color: var(--byp-header-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.byp-header__brand:hover {
  color: #b45264;
}

.byp-header__actions,
.byp-header__nav {
  align-items: center;
  display: flex;
  gap: 10px;
}

.byp-header__actions a,
.byp-header__link,
.byp-header__parent-link,
.byp-header__submenu-toggle,
.byp-header__search button {
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--byp-header-burgundy);
  border-radius: 999px;
  color: var(--byp-header-ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.15;
  min-height: 44px;
  padding: 10px 23px;
  text-decoration: none;
}

.byp-header__actions a:hover,
.byp-header__link:hover,
.byp-header__search button:hover {
  background: var(--byp-header-burgundy);
  color: #ffffff;
}

.byp-header__cart {
  gap: 7px;
}

.byp-header__cart-count {
  align-items: center;
  background: var(--byp-header-burgundy);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  padding: 0 5px;
}

.byp-header__cart:hover .byp-header__cart-count {
  background: #ffffff;
  color: var(--byp-header-burgundy);
}

.byp-header__search {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
  padding: 0 24px 14px;
}

.byp-header__search input[type="search"] {
  border: 1.5px solid var(--byp-header-burgundy);
  border-radius: 8px;
  color: var(--byp-header-ink);
  font-size: 17px;
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}

.byp-header__nav {
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px 16px;
}

.byp-header__item {
	align-items: stretch;
	background: #ffffff;
	border: 2px solid var(--byp-header-burgundy);
	border-radius: 999px;
	display: inline-flex;
	position: relative;
}

.byp-header__parent-link,
.byp-header__submenu-toggle {
  background: transparent;
  border: 0;
  font-weight: 400;
  transition: background-color 160ms ease, color 160ms ease;
}

.byp-header__link {
  font-weight: 400;
}

.byp-header__parent-link {
	border-radius: 999px 0 0 999px;
	padding-right: 16px;
}

.byp-header__submenu-toggle {
	border-radius: 0 999px 999px 0;
	cursor: pointer;
	padding-left: 9px;
	padding-right: 15px;
}

/* Desktop keeps the submenu control available to assistive tech without showing an extra arrow. */
@media (min-width: 761px) {
	.byp-header__parent-link {
		border-radius: 999px;
		padding-right: 23px;
	}

	.byp-header__submenu-toggle {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}
}

.byp-header__submenu-toggle span {
	font-size: 12px;
}

.byp-header__link.is-active,
.byp-header__item.is-active .byp-header__parent-link,
.byp-header__item.is-active .byp-header__submenu-toggle,
.byp-header__item.is-open .byp-header__parent-link,
.byp-header__item.is-open .byp-header__submenu-toggle,
.byp-header__item:hover .byp-header__parent-link,
.byp-header__item:hover .byp-header__submenu-toggle,
.byp-header__item:focus-within .byp-header__parent-link,
.byp-header__item:focus-within .byp-header__submenu-toggle {
	background: var(--byp-header-burgundy);
	color: #ffffff;
}

.byp-header__parent-link:focus-visible,
.byp-header__submenu-toggle:focus-visible,
.byp-header__submenu a:focus-visible {
	outline: 3px solid #d58a97;
	outline-offset: 2px;
}

.byp-header__submenu {
  background: #ffffff;
  border: 1px solid rgba(155, 31, 54, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(8, 39, 71, 0.08);
  display: grid;
  gap: 4px;
  left: 50%;
  min-width: 220px;
  padding: 7px;
  position: absolute;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  z-index: 80;
}

.byp-header__submenu[hidden] {
	display: none;
}

.byp-header__submenu a {
  border-radius: 6px;
  color: var(--byp-header-ink);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 11px;
  text-decoration: none;
}

.byp-header__submenu a:hover {
  background: var(--byp-header-cream);
  color: var(--byp-header-burgundy);
}

.byp-header__submenu a.is-active {
	background: var(--byp-header-cream);
	color: var(--byp-header-burgundy);
}

.byp-header__navigation-unavailable {
	border: 1px solid rgba(155, 31, 54, 0.45);
	color: var(--byp-header-ink);
	font-size: 14px;
	font-weight: 800;
	margin: 0;
	padding: 12px 16px;
	text-align: center;
	width: 100%;
}

.byp-header__sale {
  padding: 0 72px 10px 24px;
  text-align: right;
}

.byp-header__sale-badge {
  color: var(--byp-header-burgundy);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.byp-header__sale-badge::after {
  background: currentColor;
  border-radius: 999px;
  bottom: -6px;
  box-shadow: 0 5px 0 -2px currentColor;
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  right: 4px;
}

/* Cabecera interna: marca y navegacion, como superficie compacta de catalogo. */
.byp-header--interna {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1500px;
  min-height: 72px;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.byp-header--interna .byp-header__inner,
.byp-header--interna .byp-header__nav {
  margin: 0;
  max-width: none;
  padding: 0;
}

.byp-header--interna .byp-header__actions {
	display: flex;
	justify-self: center;
}

.byp-header--interna .byp-header__account {
	display: none;
}

.byp-header--interna .byp-header__cart {
	font-weight: 400;
	min-height: 40px;
	padding: 8px 15px;
}

.byp-header--interna .byp-header__nav {
  justify-content: flex-end;
}
