/* Shared shop header; keep this file after the existing theme styles. */
html[data-font-choice] .tf-header.tf-header-editorial {
  --tf-header-line: #e7e7e3;
  position: relative;
  z-index: 20;
  background: #fff;
  color: #20201e;
  border-bottom: 1px solid var(--tf-header-line);
  font-family: "Manrope", Arial, sans-serif;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-header-main {
  position: relative;
  max-width: 1260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 24px;
  padding: 14px 32px 0;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-wordmark {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  padding: 0;
  color: #20201e;
  font: 400 40px/1 "Times New Roman", Times, serif;
  letter-spacing: -.045em;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 44px;
  padding: 0;
  border: 0;
  font: 500 13px/1.4 "Manrope", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-primary-nav {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  justify-content: flex-start;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-desktop-nav a {
  padding: 0;
  color: inherit;
  min-height: 40px;
  font-weight: 500;
  white-space: nowrap;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-header-controls {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-header-actions { gap: 22px; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-action {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-action .tf-icon { width: 20px; height: 20px; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-header-navrow {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 9px 0;
  border-top: 1px solid #f0f0ed;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-secondary-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
  min-height: 36px;
  gap: 22px;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-header-locale {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-locale { position: relative; align-self: center; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-locale-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--tf-header-line);
  border-radius: 3px;
  background: #fff;
  color: #343430;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .015em;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-locale-menu {
  z-index: 45;
  background: #fff;
  border-color: var(--tf-header-line);
  box-shadow: 0 12px 30px rgb(0 0 0 / 8%);
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-locale-menu button[aria-pressed="true"] { background: #242421; color: #fff; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-search {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 310px);
  max-width: none;
  height: 44px;
  border: 1px solid var(--tf-header-line);
  border-radius: 8px;
  background: #f8f8f6;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-search input { padding: 0 12px; font-size: 14px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-search button { padding: 7px 10px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-search .tf-icon { width: 18px; height: 18px; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-nav { position: relative; display: inline-flex; align-items: center; gap: 3px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-disclosure { position: static; }

html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 40px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

html[data-font-choice] .tf-header.tf-header-editorial summary::-webkit-details-marker { display: none; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-disclosure[open] > summary > svg { transform: rotate(180deg); }

html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: min(560px, calc(100vw - 72px));
  max-height: min(65vh, 610px);
  padding: 20px 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--tf-header-line);
  box-shadow: none;
  border-radius: 8px;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 0;
  text-decoration: none;
  white-space: normal;
  line-height: 1.45;
}

html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel a::after { display: none; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel a:hover { text-decoration: none; color: #f00; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-link { font-size: 15px; font-weight: 600; }
html[data-font-choice] .tf-header.tf-header-editorial nav a[aria-current="page"] { color: #e60000; font-weight: 700; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-audiences a { background: #f5f5f3; border-radius: 8px; padding: 10px 12px; min-height: 44px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel .tf-shop-all { border-bottom: 1px solid var(--tf-header-line); padding-bottom: 12px; margin-bottom: 18px; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel-label { margin: 0 0 12px; color: #777770; font-size: 11px; font-weight: 400; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; padding: 0; margin: 0; list-style: none; }
html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu { display: none; }
html[data-font-choice] .tf-header.tf-header-editorial :is(a, button, summary, input):focus-visible { outline: 2px solid #33332e; outline-offset: 3px; }
/* The brand search wrapper already draws the shared focus ring. */
html[data-font-choice] .tf-header.tf-header-editorial .tf-brand-drawer-search input:focus-visible { outline: none; }

@media (min-width: 750px) and (max-width: 1099px) {
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-main { padding-inline: 24px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-wordmark { font-size: 36px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-desktop-nav { gap: 18px; font-size: 13px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-actions { gap: 14px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-navrow { grid-template-columns: auto minmax(0, 1fr); gap: 4px 24px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-search { grid-column: 2; grid-row: 1; width: min(100%, 330px); }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-secondary-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; min-height: 36px; }
}

@media (max-width: 749px) {
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-main { grid-template-columns: minmax(44px, 1fr) auto minmax(68px, 1fr); gap: 6px 8px; padding: 8px 16px 0; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-wordmark { font-size: clamp(24px, 7vw, 32px); }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-desktop-nav { display: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-controls { display: flex; flex-direction: row; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-actions { gap: 4px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-action { position: relative; width: 40px; min-height: 44px; justify-content: center; padding: 0; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-action > span { display: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-action > .tf-cart-count { display: block; position: absolute; top: -2px; right: -4px; font-size: 10px; background: #fff; border-radius: 8px; padding: 0 2px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-navrow { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 0 10px; border: 0; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-search { grid-column: 1; grid-row: 1; width: 100%; height: 44px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-search input { font-size: 16px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-header-locale { grid-column: 1; grid-row: 2; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-locale-badge { min-height: 32px; padding-inline: 9px; gap: 6px; font-size: 10px; }

  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu { display: block; position: static; grid-column: 1; grid-row: 1; width: auto; top: auto; left: auto; justify-self: start; border: 0; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu > summary { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; margin-left: -8px; border: 0; color: #20201e; list-style: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-menu-close-icon { display: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu[open] > summary .tf-menu-open-icon { display: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu[open] > summary .tf-menu-close-icon { display: block; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-nav-panel { position: absolute; top: 58px; left: 0; right: 0; z-index: 40; padding: 8px 20px 22px; max-height: calc(100dvh - 70px); overflow: auto; overscroll-behavior: contain; background: #fff; border-block: 1px solid var(--tf-header-line); box-shadow: 0 16px 30px rgb(0 0 0 / 7%); }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu nav { position: static; top: auto; left: auto; display: flex; flex-direction: column; gap: 0; width: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-mobile-menu nav a { display: flex; align-items: center; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid #f0f0ed; font-size: 14px; font-weight: 500; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-nav { display: block; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-disclosure > summary { justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 0; font-size: 13px; color: #686860; border-bottom: 1px solid #f0f0ed; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-summary-label { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; transform: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel { position: static; width: 100%; max-height: none; padding: 6px 0 12px 12px; border: 0; box-shadow: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel .tf-shop-all { margin: 0; padding-bottom: 10px; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-panel-label { display: none; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-categories { grid-template-columns: 1fr; gap: 0; }
  html[data-font-choice] .tf-header.tf-header-editorial .tf-shop-categories a { min-height: 42px; font-size: 13px; }
}
