/* ============================================
   СОВРЕМЕННАЯ МИНИМАЛИСТИЧНАЯ ШАПКА САЙТА
   Основной цвет: #fe650d
   ============================================ */

:root {
  --primary-orange: #fe650d;
  --header-dark: #1a1a1a;
  --header-dark-light: #2d2d2d;
  --text-white: #ffffff;
  --text-light: #f5f5f5;
  --text-gray: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-light: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ВЕРХНЯЯ ПАНЕЛЬ (ТОП БАР)
   ============================================ */

.modern-top-bar {
  background: var(--header-dark);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-top-bar .cs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modern-top-bar-left,
.modern-top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.modern-top-bar a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.modern-top-bar a:hover {
  color: var(--primary-orange);
}

.modern-top-bar .delivery-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-top-bar .delivery-info i {
  color: var(--primary-orange);
  font-size: 1rem;
}

/* ============================================
   ОСНОВНАЯ ШАПКА (HEADER)
   ============================================ */

.modern-header {
  background: var(--header-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.modern-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Логотип и меню */
.modern-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.modern-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
}

.modern-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-orange);
}

.modern-menu-toggle i {
  font-size: 1.5rem;
}

.modern-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.modern-logo:hover {
  color: var(--primary-orange);
}

.modern-logo img {
  height: 40px;
  width: auto;
}

/* Поиск */
.modern-header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.modern-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-search-input {
  width: 100%;
  padding: 1rem 4rem 1rem 1.5rem;
  background: var(--bg-white);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9375rem;
  color: var(--header-dark);
  transition: var(--transition);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-search-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 4px 16px rgba(254, 101, 13, 0.2);
  background: var(--bg-white);
}

.modern-search-input::placeholder {
  color: var(--text-gray);
}

.modern-search-button {
	position: absolute;
	right: 0rem;
	top: 50%;
	transform: translateY(-50%);
	background: var(--primary-orange);
	border: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	color: var(--text-white);
	box-shadow: 0 2px 8px rgba(254, 101, 13, 0.3);
}

.modern-search-button:hover {
  background: #e55a00;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(254, 101, 13, 0.4);
}

.modern-search-button:active {
  transform: translateY(-50%) scale(1.05);
}

.modern-search-button i {
  font-size: 1rem;
}

/* Правая часть шапки */
.modern-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.modern-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.modern-header-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-orange);
}

.modern-hours-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.modern-hours-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-orange);
}

.modern-header-action i {
  font-size: 1.5rem;
}

.modern-header-action-text {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  text-transform: none;
}

.modern-header-action-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--primary-orange);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--header-dark);
}

.modern-delivery-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(254, 101, 13, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.modern-delivery-banner i {
  color: var(--primary-orange);
  font-size: 1.125rem;
}

.modern-delivery-banner strong {
  color: var(--primary-orange);
}

.modern-hours-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.modern-hours-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-orange);
}

.modern-hours-button i {
  font-size: 1.5rem;
}

.modern-hours-button .modern-header-action-text {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1200px) {
  .modern-header-container {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .modern-header-search {
    max-width: 400px;
  }
  
  .modern-delivery-banner {
    display: none;
  }
}

@media (max-width: 768px) {
  .modern-top-bar {
    display: none;
  }
  
  .modern-header {
    padding: 0.75rem 0;
  }
  
  .modern-header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .modern-header-left {
    order: 1;
    flex: 1;
  }
  
  .modern-header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .modern-header-right {
    order: 2;
    gap: 1rem;
  }
  
  .modern-header-action-text {
    display: none;
  }
  
  .modern-logo {
    font-size: 1.25rem;
  }
  
  .modern-logo img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .modern-header-container {
    padding: 0 0.75rem;
  }

  .modern-header-left {
    gap: 0.75rem;
  }

  .modern-header-right {
    gap: 0.5rem;
  }

  .modern-search-input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .modern-menu-toggle {
    width: 36px;
    height: 36px;
  }

  .modern-header-action-badge {
    top: 2px !important;
    right: 0px !important;
  }
}

/* ============================================
   СКРЫТИЕ СТАРОЙ ШАПКИ
   ============================================ */

.navbar.navbar-primary {
  display: none !important;
}

#masthead.site-header {
  margin: 0;
}

