/* BÜROMOTTO HEADER v3 STABLE */

/* Hide old headers and patches */
.ct-header,
#header,
.site-header,
.bm-custom-header,
.bm-top-search-row,
.bm-topbar,
.bmph-header,
.bmph2-header {
  display: none !important;
}

/* Clean top spacing */
.site-main,
.content-area,
.site-content,
.entry-content,
.wp-block-post-content,
.ct-container-full,
.ct-container,
[data-vertical-spacing] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.entry-header,
.page-header,
.hero-section,
.ct-page-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bm-home {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Base */
.bmh3 {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  z-index: 99999;
  font-family: inherit;
  color: #101820;
}

.bmh3 *,
.bmh3 *::before,
.bmh3 *::after {
  box-sizing: border-box;
}

.bmh3__wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top */
.bmh3__top {
  height: 30px;
  border-bottom: 1px solid #f3f3f3;
}

.bmh3__top-inner {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: #313844;
  font-size: 12px;
  font-weight: 800;
}

/* Main */
.bmh3__main {
  height: 82px;
  background: #fff;
}

.bmh3__main-inner {
  height: 82px;
  display: grid;
  grid-template-columns: 210px minmax(560px, 680px) 210px 0;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Logo */
.bmh3__logo {
  width: 210px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  text-decoration: none;
}

.bmh3__logo img {
  width: 182px;
  max-width: 182px;
  max-height: 58px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Search */
.bmh3__search {
  position: relative;
  z-index: 100000;
  width: 100%;
}

.bmh3__search-form {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  border: 1px solid #e5e8ee;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px 0 20px;
  box-shadow: 0 10px 30px rgba(16,24,32,.055);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.bmh3__search-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: #737b88;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bmh3__search-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bmh3__search-input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #202733;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .1px;
}

.bmh3__search-input::placeholder {
  color: #8f96a3;
}

.bmh3__search-submit {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 14px;
  background: #e92828;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(233,40,40,.22);
  transition: background .2s ease, transform .2s ease;
}

.bmh3__search-submit svg {
  width: 18px;
  height: 18px;
  display: block;
}

.bmh3__search-submit:hover {
  background: #c91515;
  transform: translateX(1px);
}

.bmh3__search:focus-within .bmh3__search-form {
  background: #fff;
  border-color: rgba(233,40,40,.65);
  box-shadow: 0 16px 42px rgba(233,40,40,.14), 0 8px 28px rgba(16,24,32,.08);
}

.bmh3__search:focus-within .bmh3__search-icon {
  color: #e92828;
}

/* Panel */
.bmh3__panel {
  display: none;
  position: absolute;
  top: 126px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid rgba(233,40,40,.28);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(16,24,32,.18);
}

.bmh3__panel::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0,0,0,.10);
}

.bmh3__search:focus-within .bmh3__panel {
  display: block;
}

.bmh3__panel-title {
  margin: 0 0 13px;
  color: #101820;
  font-size: 14px;
  font-weight: 900;
}

.bmh3__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.bmh3__tags a {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid #edf0f3;
  background: #fafafa;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.bmh3__tags a:hover {
  color: #e92828;
  border-color: #e92828;
  background: #fff1f1;
}

.bmh3__default-grid,
.bmh3__results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bmh3__default-grid a,
.bmh3__result {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: #101820;
  font-size: 13px;
  font-weight: 900;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bmh3__default-grid a:hover,
.bmh3__result:hover {
  border-color: #e92828;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.bmh3__default-grid img,
.bmh3__result img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  min-width: 62px;
}

.bmh3__result-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bmh3__result-title {
  color: #101820;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.bmh3__result-price {
  color: #e92828;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
}

.bmh3__empty,
.bmh3__loading {
  padding: 18px;
  border-radius: 14px;
  background: #fafafa;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

/* Actions */
.bmh3__actions {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.bmh3__actions a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}

.bmh3__actions svg {
  width: 18px;
  height: 18px;
}

.bmh3__actions a:hover {
  color: #e92828;
}

/* Menu */
.bmh3__menu {
  height: 58px;
  border-top: 1px solid #f2f2f2;
  background: #fff;
}

.bmh3__menu-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
}

.bmh3__menu a {
  position: relative;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 58px;
  white-space: nowrap;
  transition: color .2s ease;
}

.bmh3__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #e92828;
  transition: width .25s ease;
}

.bmh3__menu a:hover,
.bmh3__menu a:first-child {
  color: #e92828;
}

.bmh3__menu a:hover::after,
.bmh3__menu a:first-child::after {
  width: 100%;
}

/* Mobile button */
.bmh3__mobile {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.bmh3__mobile span {
  width: 20px;
  height: 2px;
  background: #101820;
  border-radius: 2px;
}

/* Tablet */
@media (max-width: 1024px) {
  .bmh3__main-inner {
    grid-template-columns: 180px 1fr 44px;
  }

  .bmh3__actions {
    display: none;
  }

  .bmh3__mobile {
    display: inline-flex;
  }

  .bmh3__panel {
    width: 620px;
    top: 118px;
  }

  .bmh3__menu-inner {
    gap: 26px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bmh3__top {
    display: none;
  }

  .bmh3__main {
    height: auto;
  }

  .bmh3__main-inner {
    height: auto;
    grid-template-columns: 1fr 44px;
    gap: 14px;
    padding: 16px 0;
  }

  .bmh3__logo {
    width: auto;
  }

  .bmh3__logo img {
    width: 155px;
    max-width: 155px;
  }

  .bmh3__search {
    grid-column: 1 / -1;
  }

  .bmh3__panel {
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
    top: 64px;
  }

  .bmh3__default-grid,
  .bmh3__results-grid {
    grid-template-columns: 1fr;
  }

  .bmh3__menu {
    display: none;
    height: auto;
  }

  .bmh3__menu.is-open {
    display: block;
  }

  .bmh3__menu-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .bmh3__menu a {
    width: 100%;
    line-height: 48px;
  }
}


/* =========================================================
   BÜROMOTTO HEADER v3 STABLE 3.0.8
   Search butonu: ikon yerine gri ARA yazısı
   Başka header alanına dokunmaz.
=========================================================*/

.bmh3__search-submit.bmh3__search-submit--text {
  width: 54px !important;
  min-width: 54px !important;
  height: 40px !important;
  border-radius: 14px !important;
  background: #6f747b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(16, 24, 32, .14) !important;
  transform: none !important;
}

.bmh3__search-submit.bmh3__search-submit--text:hover {
  background: #5f646b !important;
  transform: none !important;
}

.bmh3__search-submit.bmh3__search-submit--text::before,
.bmh3__search-submit.bmh3__search-submit--text::after {
  content: none !important;
  display: none !important;
}

.bmh3__search-submit.bmh3__search-submit--text span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}
