/* Header styles extracted from style.css */

.site-header {
  background: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.site-header a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.site-header a:hover {
  color: #640406;
}

.site-header,
.site-header * {
  font-family: var(--font-sans);
}

.burger {
  display: none;
  width: 23px;
  height: 27px;
  border: none;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  position: relative;
}

.header-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  flex: 1;
}

.nav-link {
  position: relative;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #640406;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo img {
  display: block;
  height: auto;
  max-height: 45px;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: end;
  flex: 1;
}

.icon-link {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.header-actions--compact {
  gap: 32px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header .container-m {

    padding-left: 16px;
  }

  .header-inner {
    display: flex;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: relative;
    gap: 16px;
  }

  .burger {
    display: flex;
    width: 24px;
    height: 24px;
    gap: 5px;
  }

  .header-nav {
    display: none;
  }

  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-logo img {
    max-height: 40px;
  }

  .header-actions {
    gap: 16px;
  }

  .header-actions--compact {
    gap: 16px;
  }

  /* Hide phone icon on mobile */
  .header-actions img[alt="Phone"] {
    display: none;
  }

  /* Hide profile icon on mobile */
  .header-actions img[alt="Profile"] {
    display: none;
  }

  /* Keep only cart and search visible on mobile */
  .icon-link {
    width: 22px;
    height: 22px;
  }
}

.header-nav .nav-link {
  color: #2E2E2E;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.6px;
  font-weight: 350;
}

.header-nav .nav-link:hover {
  color: #111;
}

.header-actions .icon-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.header-actions .lang {
  color: #666;
  font-weight: 500;
  font-size: 12px;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 900;
}

.mobile-menu__panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 78vw;
  max-width: 320px;
  background: #fff;
  z-index: 910;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.12);
  padding: 64px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: #2b2b2b;
}

.mobile-user__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e1d7c9;
  align-self: flex-start;
  margin-top: 2px;
}

.mobile-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-user__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user__name {
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
}

.mobile-user__email {
  font-size: 12px;
  color: #6b6b6b;
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #2e2e2e;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu__close:hover {
  background: transparent;
}

.mobile-menu__link {
  font-size: 30px;
  font-weight: 600;
  color: #1d1d1d;
  text-decoration: none;
  letter-spacing: 0.2px;
}

/* Explicitly target the user request if they meant general site-header links in mobile, but likely they meant mobile menu */
.mobile-menu__nav a {
  font-size: 30px !important;
}

.mobile-menu__link:hover {
  color: #a01f34;
}