/* Український хедер Pibu */
.gf-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.gf-brand-logo__text {
  font-family: "Barlow", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #303030;
  position: relative;
  padding-right: 10px;
}

.gf-brand-logo__img {
  max-height: 72px;
  width: auto;
  display: block;
}

.gf-brand-logo__text::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e61f7f;
}

@media (max-width: 575px) {
  .gf-brand-logo__img {
    max-height: 58px;
  }

  .gf-brand-logo__text {
    font-size: 1.55rem;
    letter-spacing: 0.1em;
  }
}

.gf-site-header .cs_nav_category_btn.gf-catalog-btn {
  text-decoration: none;
}

/* Каталог — випадаючий список з картками при наведенні (desktop) */
@media (min-width: 992px) {
  .gf-site-header .cs_bottom_header,
  .gf-site-header .cs_bottom_header_in,
  .gf-site-header .cs_nav_wrap,
  .gf-site-header .cs_nav_out {
    overflow: visible;
  }

  .gf-site-header .gf-catalog-dropdown {
    z-index: 130;
  }

  .gf-site-header .gf-catalog-dropdown:hover > .cs_nav_category_list,
  .gf-site-header .gf-catalog-dropdown:focus-within > .cs_nav_category_list,
  .gf-site-header .gf-catalog-dropdown > .cs_nav_category_list.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gf-site-header .gf-catalog-dropdown:hover .cs_nav_category_btn::before,
  .gf-site-header .gf-catalog-dropdown:focus-within .cs_nav_category_btn::before,
  .gf-site-header .gf-catalog-dropdown .cs_nav_category_btn.active::before {
    opacity: 1;
  }

  .gf-site-header .cs_nav_category_list {
    width: min(760px, 94vw);
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 18px 16px 14px;
    z-index: 131;
    transform: translateY(6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }

  .gf-site-header .cs_nav_category_list > li > a {
    padding: 12px 10px 10px;
    min-height: 130px;
  }

  .gf-site-header .cs_nav_category_list > li > a img {
    height: 72px;
    width: 72px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }

  .gf-site-header .cs_nav_category_list > li > a span {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.25;
  }
}

.gf-main-nav > li.current-menu-item > a {
  color: var(--accent-color, #c45c48);
}

.gf-site-header .cs_top_header_info_list a.cs_header_icon_box {
  text-decoration: none;
}

.gf-site-header .cs_top_header_info_list a.cs_header_icon_box:hover {
  opacity: 0.85;
}

/* Live search dropdown */
.gf-header-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.gf-header-wishlist:hover {
  color: var(--accent, #e61f7f);
}

.gf-header-lang__group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gf-header-lang__btn {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gf-header-lang__btn:hover {
  border-color: var(--accent, #e61f7f);
  color: var(--accent, #e61f7f);
}

.gf-header-lang__btn.is-active {
  background: var(--accent, #e61f7f);
  color: #fff;
  border-color: transparent;
}

.gf-nav-dropdown__menu {
  min-width: 220px;
}

.gf-header-search-wrap {
  position: relative;
}

.gf-header-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 220;
  background: #fff;
  border: 1px solid #e6e6ea;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(30, 30, 40, 0.14);
  overflow: hidden;
  max-height: min(70vh, 440px);
  display: flex;
  flex-direction: column;
}

.gf-header-search-panel[hidden] {
  display: none !important;
}

.gf-header-search-panel__status {
  padding: 10px 16px 0;
  font-size: 0.82rem;
  color: #888;
}

.gf-header-search-panel__status[hidden] {
  display: none;
}

.gf-header-search-panel__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow: auto;
  flex: 1;
}

.gf-header-search-panel__item.is-active .gf-header-search-panel__link,
.gf-header-search-panel__link:hover,
.gf-header-search-panel__link:focus {
  background: #faf7f8;
  outline: none;
}

.gf-header-search-panel__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.gf-header-search-panel__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gf-header-search-panel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gf-header-search-panel__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gf-header-search-panel__name {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  color: #303030;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gf-header-search-panel__sub {
  font-size: 0.82rem;
  color: #777;
}

.gf-header-search-panel__all {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color, #c45c48);
  text-decoration: none;
  border-top: 1px solid #eee;
  background: #fcfcfd;
}

.gf-header-search-panel__all:hover {
  background: #faf7f8;
}

@media (max-width: 991px) {
  .gf-header-search-panel {
    top: calc(100% + 4px);
    border-radius: 10px;
    max-height: min(60vh, 380px);
  }
}
