/* =========================
   GLOBAL / PAGE FRAME
========================= */
html{
  height: 100%;
  box-sizing: border-box;
}

*,
*::before,
*::after{
  box-sizing: inherit;
}

body{
  margin: 0;
  min-height: 100vh;
  background: #111;
  color: white;
  font-family: Georgia, serif;
  display: flex;
  flex-direction: column;
  border: 2px solid #8a611c;
}

/* =========================
   TOP HEADER
========================= */
.topbar{
  width: 100%;
  background: #000000;
  color: white;
  border-bottom: 1px solid #111;
}

/* =========================
   HEADER INNER
========================= */
.topbar-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 20px;
  min-height: 136px;
  flex-wrap: nowrap; /* 🔥 prevent wrapping */
}

/* =========================
   LEFT SIDE
========================= */
.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.logo-box{
  width: 120px;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand h1{
  margin: 0;
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: white;
  white-space: nowrap;
  min-width: 0;
}

.site-title{
  white-space: nowrap;
}

.page-title-text{
  white-space: nowrap;
}

/* =========================
   RIGHT SIDE
========================= */
.header-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* =========================
   SEARCH BAR
========================= */
.search-wrap{
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap::before{
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.92;
  pointer-events: none;
}

.search-wrap input{
  width: clamp(160px, 20vw, 300px);
  background: #1b1b1b;
  color: white;
  border: 1.5px solid #8a611c;
  outline: none;
  border-radius: 999px;
  padding: 14px 20px 14px 46px;
  font-size: 16px;
  font-family: Georgia, serif;
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-wrap input::placeholder{
  color: #d8c39a;
  opacity: 0.88;
}

.search-wrap input:focus{
  background: #202020;
  border-color: #c28a2b;
  box-shadow: 0 0 0 2px rgba(194, 138, 43, 0.18);
}

/* =========================
   ACCOUNT BUTTON
========================= */
.account-btn{
  background: #1b1b1b;
  color: #e0c38a;
  border: 1.5px solid #8a611c;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  font-family: Georgia, serif;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.account-btn:hover{
  background: #211a10;
  color: white;
  border-color: #c28a2b;
}

/* =========================
   SMALLER LAPTOP
========================= */
@media (max-width: 1250px){
  .page-title-text{
    font-size: 0.88em;
  }
}

/* hide page suffix earlier so layout never breaks */
@media (max-width: 1200px){
  .page-title-text{
    display: none;
  }
}

/* =========================
   TABLET
========================= */
@media (max-width: 1100px){
  .topbar-inner{
    padding: 16px 20px;
    gap: 16px;
  }

  .brand{
    gap: 12px;
  }

  .logo-box{
    width: 82px;
    height: 82px;
  }

  .brand h1{
    font-size: 40px;
  }

  .search-wrap input{
    width: 220px;
  }

  .account-btn{
    padding: 13px 18px;
  }
}

/* =========================
   PHONE
========================= */
@media (max-width: 800px){
  .topbar-inner{
    padding: 14px 16px;
    gap: 12px;
  }

  .brand{
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .logo-box{
    width: 64px;
    height: 64px;
  }

  .brand h1{
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* hide search bar */
  .search-wrap{
    display: none;
  }

  .header-actions{
    flex-shrink: 0;
    gap: 0;
  }

  .account-btn{
    padding: 10px;
    font-size: 0;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .account-btn::before{
    content: "👤";
    font-size: 18px;
  }
}

/* =========================
   SMALL PHONE
========================= */
@media (max-width: 520px){
  .topbar-inner{
    padding: 12px 14px;
  }

  .logo-box{
    width: 54px;
    height: 54px;
  }

  .brand h1{
    font-size: 24px;
  }

  .account-btn{
    min-width: 40px;
    min-height: 40px;
  }

  .account-btn::before{
    font-size: 16px;
  }
}
