/* ===== HEADER ===== */

.tm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wp--preset--color--bg);
  border-bottom: 1px solid var(--wp--preset--color--border);
  height: 88px;
}

.tm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tm-content-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tm-header-wordmark-link {
  text-decoration: none;
  flex-shrink: 0;
}

.tm-header-wordmark {
  font-family: var(--wp--preset--font-family--cormorant);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--wp--preset--color--text);
  line-height: 1;
}

.tm-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.tm-header-nav .tm-nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-header-nav a {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-header-nav a:hover,
.tm-header-nav a[aria-current="page"] {
  color: var(--wp--preset--color--accent);
}

.tm-header-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.tm-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wp--preset--color--text);
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

.tm-icon-btn:hover {
  color: var(--wp--preset--color--accent);
}

.tm-cart-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--wp--preset--color--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--inter);
  line-height: 1;
}

.tm-cart-counter[hidden] {
  display: none;
}

/* Language switcher */
.tm-lang-switcher {
  display: flex;
  align-items: center;
}

.tm-lang-switcher ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-lang-switcher ul li a,
.tm-lang-switcher ul li span {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.tm-lang-switcher ul li.current-lang a,
.tm-lang-switcher ul li.current-lang span {
  color: var(--wp--preset--color--text);
}

.tm-lang-switcher ul li a:hover {
  color: var(--wp--preset--color--accent);
}

.tm-lang-switcher ul li:not(:last-child)::after {
  content: '·';
  color: var(--wp--preset--color--text-light);
  padding-left: 4px;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 1023.98px) {
  .tm-header {
    height: 64px;
  }

  .tm-header-inner {
    padding: 0 14px;
    gap: 8px;
  }

  .tm-header-nav {
    display: none;
  }

  .tm-header-wordmark {
    font-size: 22px;
  }

  .tm-lang-switcher {
    display: none;
  }
}

/* Logo focus fix — superseded by global a:focus rule in main.css */

/* ===== BURGER + MOBILE NAV DRAWER ===== */

.tm-burger {
  display: none;
}

.tm-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 55;
}

body.tm-nav-open .tm-nav-overlay {
  display: block;
}

.tm-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--wp--preset--color--bg);
  z-index: 56;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.tm-nav-open .tm-nav-drawer {
  transform: translateX(0);
}

.tm-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid var(--wp--preset--color--border);
  flex-shrink: 0;
}

.tm-nav-drawer-title {
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 20px;
  font-weight: 500;
  color: var(--wp--preset--color--text);
}

.tm-nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wp--preset--color--text);
  padding: 0;
  transition: color 0.2s ease;
}

.tm-nav-drawer-close:hover {
  color: var(--wp--preset--color--accent);
}

.tm-nav-drawer-body {
  flex: 1;
  padding: 8px 0 24px;
}

.tm-nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-nav-drawer-list li a {
  display: block;
  padding: 14px 24px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-nav-drawer-list li a:hover,
.tm-nav-drawer-list li.current-menu-item > a {
  color: var(--wp--preset--color--accent);
}

.tm-nav-drawer-lang {
  margin-top: 24px;
  padding: 20px 24px 0;
  border-top: 1px solid var(--wp--preset--color--border);
}

.tm-nav-drawer-lang ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.tm-nav-drawer-lang li a {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-nav-drawer-lang li.current-lang a {
  color: var(--wp--preset--color--accent);
}

.tm-nav-drawer-lang li a:hover {
  color: var(--wp--preset--color--accent);
}

@media (max-width: 1023.98px) {
  .tm-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--text);
    padding: 0;
  }
}
