/* ===== Reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Base ===== */
.bb-header {
    position: sticky;
    top: 10;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    background: #0b0b0b;
    border-bottom: 1px solid #1f1f1f;
    direction: rtl;
    font-family: Vazirmatn, sans-serif;
}

/* ===== Right ===== */
.bb-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger */
.bb-hamburger {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bb-hamburger span {
    width: 22px;
    height: 2px;
    background: #d4af37;
}

/* Logo */
/* لوگو - نسخه ریسپانسیو */
.bb-logo img {
    height: 90px !important;
    width: auto !important;
}

/* نمایش بزرگ‌تر برای لپ‌تاپ و دسکتاپ */
@media (min-width: 1024px) {
.bb-logo img {
        height: 96px !important;
        width: auto !important;
    }
}



/* ===== Center ===== */
.bb-center {
    display: none;
    flex: 1;
    padding: 0 24px;
}

.bb-center input {
    width: 100%;
    padding: 10px 10px;
    border-radius: 10px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    color: #eee;
}

/* ===== Left ===== */
.bb-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bb-search-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: #d4af37;
    cursor: pointer;
}

/* Desktop Buttons */
.bb-desktop-actions {
    display: none;
    gap: 10px;
}

.bb-btn-outline {
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

.bb-btn-solid {
    background: #d4af37;
    color: #000;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
}

/* ===== Mobile Search ===== */
.bb-search {
    display: block !important;
}

.bb-search input {
    width: 100%;
    height: 70px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid #d4af37;
    color: #d4af37;
    padding: 0 44px 0 16px;
    font-size: 14px;
}

.bb-search .search-icon {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
}


/* ===== Mobile Menu ===== */
.bb-mobile-menu {
    position: fixed;
    inset: 0;
    background: #0b0b0b;
    transform: translateX(100%);
    transition: .3s ease;
    padding: 90px 32px;
    z-index: 1000;
}

.bb-mobile-menu.active {
    transform: translateX(0);
}

.bb-mobile-menu a {
    display: block;
    color: #eee;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 24px;
}

/* ===== Tablet (768px+) ===== */
@media (min-width:768px) {

.bb-center {
        display: block;
    }

.bb-search-icon {
        display: none;
    }

}

/* ===== Desktop (1024px+) ===== */
@media (min-width:1024px) {

.bb-hamburger {
        display: none;
    }

.bb-desktop-actions {
        display: flex;
    }

.bb-center {
        max-width: 520px;
    }

}


@media (max-width: 768px) {

  .bb-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    gap: 10px;
    direction: rtl;
  }

  /* راست */
  .bb-hamburger {
    grid-column: 3;
    justify-self: end;
  }

  /* وسط */
  .bb-search {
    grid-column: 2;
    width: 100%;
  }

  /* چپ */
  .bb-logo {
    grid-column: 1;
    justify-self: start;
  }
}

/* ===================================
   MOBILE HEADER – ONE LINE FIX
=================================== */
@media (max-width: 768px) {

  .bb-header {
    position: sticky;
    top: 0;
    height: 64px;
    z-index: 9999;

    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;

    background: #0b0b0b;
    border-bottom: 1px solid rgba(255,215,0,.15);
  }

}


  .bb-search {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .bb-search input {
    height: 36px;
    padding: 0 38px 0 14px;
    font-size: 13px;
  }

  .bb-hamburger,
  .bb-logo {
    align-self: center;
  }

  /* حذف آیکن سرچ اضافی */
  .bb-search-icon {
    display: none !important;
  }


@media (max-width: 768px) {

  .bb-header *,
  .bb-header {
    position: relative !important;
  }

}
.bb-logo {
  display: flex !important;
  align-items: center;
  height: 100%;
}

.bb-logo img {
  height: 36px;
  width: auto;
}
@media (max-width: 768px) {

  /* 1. نابودی همه تداخل‌ها */
  .bb-header,
  .bb-header * {
    position: static !important;
    float: none !important;
    transform: none !important;
  }

  /* 2. تحمیل Grid واقعی */
  .bb-header {
    display: grid !important;
    grid-template-columns: 48px 1fr 48px !important;
    align-items: center !important;
    height: 64px !important;
    padding: 0 12px !important;
  }

  /* 3. قفل کردن جای هر آیتم */
  .bb-hamburger {
    grid-column: 1 !important;
  }

  .bb-search {
    grid-column: 2 !important;
    width: 100% !important;
  }

  .bb-logo {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .bb-logo img {
    height: 36px !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {

  /* خود هدر */
  .bb-header {
    align-items: center !important;
  }

  /* ظرف سرچ */
  .bb-search {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
  }

  /* فرم داخل سرچ */
  .bb-search form {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    height: 100%;
  }

  /* خود input */
  .bb-search input {
    margin: auto 0 !important;
    height: 36px;
    line-height: 36px;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .bb-header {
    grid-template-columns: 48px 1fr 48px;
  }

  .bb-desktop-actions {
    display: none;
  }

  .bb-search input {
    height: 36px;
    border-radius: 999px;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .bb-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 32px;
  }

  .bb-search {
    max-width: 480px;
    margin: 0 auto;
  }

  .bb-search input {
    height: 44px;
    border-radius: 12px;
  }

  .bb-desktop-actions {
    display: flex;
    gap: 12px;
  }
}

/* ===== Desktop Header Refinement ===== */
@media (min-width: 1024px) {

  /* گرید دسکتاپ */
  .bb-header {
    grid-template-columns: auto 1fr auto auto !important;
    padding: 0 48px !important;
  }

  /* لوگو کاملاً راست */
  .bb-logo {
    justify-self: flex-end !important;
    margin-right: 0 !important;
  }

  .bb-logo img {
    height: 150px !important;
  }

  /* سرچ بزرگ‌تر و وسط */
  .bb-search {
    max-width: 620px !important;
    align-items: center;
    margin: 0 auto !important;
  }

  .bb-search input {
    height: 46px !important;
    font-size: 15px;
    padding: 0 20px;
    align-items: center;
    border-radius: 14px;
  }

  /* اکشن‌ها سمت چپ */
  .bb-desktop-actions {
    justify-self: flex-start !important;
  }
}

/* ==============================
   DESKTOP FINAL FORCE FIX
============================== */
@media (min-width: 1024px) {

  header.bb-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    padding: 0 48px !important;
    height: 74px !important;
  }

  /* LOGO → RIGHT */
  header.bb-header a.bb-logo {
    order: 4 !important;
    justify-self: flex-end !important;
  }

  header.bb-header a.bb-logo img {
    height: 70px !important;
    width: auto;
  }

  /* SEARCH → CENTER & BIG */
  header.bb-header .bb-search {
    order: 2 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 680px !important;
  }

  header.bb-header .bb-search input {
    height: 48px !important;
    font-size: 15px !important;
    padding: 0 22px !important;
    border-radius: 16px !important;
  }

  /* ACTIONS → LEFT */
  header.bb-header .bb-desktop-actions {
    order: important;
    justify-self: flex-start !important;
  }

  /* HAMBURGER OFF IN DESKTOP */
  header.bb-header .bb-hamburger {
    display: none !important;
  }
}

@media (min-width: 1024px) {

  /* هدر */
  header.bb-header {
    height: 74px !important;
    align-items: center !important;
  }

  /* خود کانتینر سرچ */
  header.bb-header .bb-search {
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* فرم – عامل اصلی مشکل */
  header.bb-header .bb-search form {
    margin: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* خود input */
  header.bb-header .bb-search input {
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 48px !important;
    line-height: 48px !important;
    position: relative;
    top: 0 !important;
  }
}
.bb-header-slogan {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
@media (min-width: 1024px) {
  .bb-header-slogan {
    font-size: 13px;
    margin-top: 6px;
  }
}

@media (max-width: 1023px) {
  .bb-header-slogan {
    font-size: 12px;
    margin-top: 2px;
  }
}

.bb-header-slogan {
  width: 100%;
  text-align: center;
  margin-top: 6px;
  font-family: Tahoma, sans-serif;
}

/* خط اول – بولد و احساسی */
.bb-slogan-line-1 {
  font-size: 30px;
  font-weight: 700;
  color: #d4af37; /* طلایی برند */
  letter-spacing: 0.4px;
}

/* خط دوم – حرفه‌ای‌تر و ظریف‌تر */
.bb-slogan-line-2 {
  font-size: 20px;
  font-weight: 700;
  color: #bfa640;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

