/* =====================================================
   GLOBAL SITE STYLES  –  Header / Nav / Search Overlay
   ===================================================== */

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.header-row { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; padding: 0 40px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 36px; }
.logo-badge {
  width: 38px; height: 38px; background: #c8102e; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -1px; flex-shrink: 0;
}
.logo-text .main { font-size: 17px; font-weight: 700; color: #c8102e; line-height: 1.2; }
#logo-img {  height: 18px; }
.logo-text .sub  { font-size: 10px; color: #aaa; font-weight: 400; letter-spacing: 1px; line-height: 1; }
.cat-nav { flex: 1; display: flex; align-items: stretch; justify-content: center; height: 100%; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; padding: 0 20px;
  font-size: 17px; font-weight: 500; color: #555;
  border-bottom: 3px solid transparent; white-space: nowrap;
  letter-spacing: 0.5px; transition: color .2s, border-color .2s;
}
.cat-nav a:hover, .cat-nav a.active { color: #c8102e; border-bottom-color: #c8102e; }
.cat-nav a.active { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: 20px; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 8px; font-size: 13.5px;
  color: #444; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: background .18s, color .18s;
}
.action-btn i { font-size: 15px; }
.action-btn:hover { background: #fff1f2; color: #c8102e; }
.action-btn.search-btn { padding: 7px 11px; font-size: 16px; }

/* SEARCH OVERLAY */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 2000;
  align-items: flex-start; justify-content: center;
  padding-top: 90px; animation: fadeIn .18s;
}
.search-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-box {
  background: #fff; border-radius: 16px; padding: 22px 24px 24px;
  width: 560px; max-width: 92vw; box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.search-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.search-box-head span { font-size: 15px; font-weight: 600; color: #222; }
.search-box-head button {
  background: none; border: none; font-size: 18px; color: #888;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color .18s, background .18s;
}
.search-box-head button:hover { color: #c8102e; background: #fff1f2; }
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1; height: 46px; border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 0 16px; font-size: 15px; font-family: inherit; color: #1a1a1a;
  outline: none; transition: border-color .2s;
}
.search-form input::placeholder { color: #bbb; }
.search-form input:focus { border-color: #c8102e; }
.search-form button {
  height: 46px; padding: 0 20px; background: #c8102e; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background .2s; white-space: nowrap;
}
.search-form button:hover { background: #a8102e; }

/* Responsive – Nav */
@media (max-width: 960px) {
  .header-row { padding: 0 18px; }
  .logo { margin-right: 18px; }
  .cat-nav a { padding: 0 13px; font-size: 14px; }
  .header-actions { margin-left: 10px; }
  .k-cat-wrap { display: none; }
}
@media (max-width: 640px) {
  .logo-text .sub { display: none; }
  .logo { margin-right: 10px; }
  .cat-nav a { padding: 0 9px; font-size: 13px; }
  .action-btn span { display: none; }
  .action-btn { padding: 7px; }
  .action-btn.search-btn { padding: 7px 9px; }
}
