/* Announcement Bar matching exact original screenshot & auto-rotating banner */
.announcement-bar {
  background-color: #D8C2B3;
  color: #7A5442;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  height: 36px;
  position: relative;
  z-index: 100;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.announcement-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  text-align: center;
  padding: 0 16px;
}

.announcement-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announcement-slide strong {
  font-weight: 600;
}

/* Site Header */
.site-header {
  background-color: #FAF6EF;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: box-shadow var(--transition-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Logo Left */
.site-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-wrap a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 32px;
  width: auto;
  max-width: 215px;
  display: block;
  object-fit: contain;
}

/* Navigation Center */
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: #111111;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.7;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #FAF6EF;
  min-width: 200px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  font-size: 0.84rem;
  color: #333333;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover {
  color: #000000;
  padding-left: 4px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #111111;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.action-btn:hover {
  opacity: 0.7;
}

.action-count {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  color: #111111;
}

/* Language selector */
.header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #111111;
  cursor: pointer;
  padding-left: 6px;
  margin-left: 4px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 1px;
  object-fit: cover;
  display: inline-block;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #111111;
  padding: 6px;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
}

.search-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.search-box {
  background-color: #FAF6EF;
  width: 90%;
  max-width: 650px;
  padding: 28px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.search-input-wrap {
  position: relative;
  margin: 16px 0;
}

.search-input {
  width: 100%;
  padding: 13px 40px 13px 14px;
  font-size: 1rem;
  border: 1.5px solid #D5CEBF;
  border-radius: 4px;
  background-color: #FFFFFF;
}

.search-input:focus {
  border-color: #111111;
}

.search-submit-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background-color: #FAF6EF;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.mobile-drawer-footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0,0,0,0.06);
  background-color: #F3ECE0;
}

/* Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 995;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-list {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}
