/*
Theme Name: VW Ecommerce Shop Child
Template: vw-ecommerce-shop
Version: 1.0
*/

/* ============================================================
   Новая шапка — компактная тёмная в стиле задачника
   ============================================================ */

/* Скрываем оригинальную шапку темы */
.header .logo,
.header .side_search,
.header .menubox,
.header .row,
.topbar {
  display: none !important;
}
.header {
  padding: 0 !important;
  background: transparent !important;
}

/* Шапка */
#att-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: #1a1a1a;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

/* Логотип */
#att-header .att-logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 24px;
  letter-spacing: -0.01em;
}
#att-header .att-logo span { color: #e53935; }

/* Навигация */
#att-header nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
  overflow: visible;
}
#att-header nav > a,
#att-header nav > .att-dd > a {
  color: #999;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .15s, color .15s;
  letter-spacing: 0.03em;
  display: block;
}
#att-header nav > a:hover,
#att-header nav > a.att-cur,
#att-header nav > .att-dd > a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Дропдаун */
#att-header nav > .att-dd {
  position: relative;
}
#att-header nav > .att-dd > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: .4;
}
#att-header .att-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #222;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px;
  min-width: 170px;
  z-index: 99999;
}
#att-header .att-dd:hover .att-dd-menu { display: block; }
#att-header .att-dd-menu a {
  display: block;
  padding: 7px 12px;
  font-size: 12px;
  color: #ccc;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}
#att-header .att-dd-menu a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Поиск */
#att-header .att-search {
  flex-shrink: 0;
  margin-left: 12px;
}
#att-header .att-search input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 150px;
  outline: none;
  transition: width .2s, background .15s;
}
#att-header .att-search input::placeholder { color: #555; }
#att-header .att-search input:focus {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
  width: 190px;
}

/* Мобильное меню */
#att-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
#att-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ccc;
  margin: 4px 0;
  border-radius: 2px;
  transition: all .2s;
}
#att-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: #1a1a1a;
  z-index: 8999;
  padding: 12px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#att-mobile-menu a {
  display: block;
  padding: 10px 12px;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#att-mobile-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
#att-mobile-menu .att-sub { padding-left: 24px; font-size: 13px; color: #888; }

@media (max-width: 900px) {
  #att-header nav, #att-header .att-search { display: none; }
  #att-burger { display: block; }
  #att-header { padding: 0 16px; }
}

/* Убираем отступ сверху у контента */
.admin-bar #att-header { top: 32px; }

/* На мобильных admin bar выше */
@media screen and (max-width: 782px) {
  .admin-bar #att-header { top: 46px; }
}
/* Мобильное меню тоже сдвигаем */
.admin-bar #att-mobile-menu { top: 84px; }
@media screen and (max-width: 782px) {
  .admin-bar #att-mobile-menu { top: 98px; }
}