/* =====================================
   MAIN
===================================== */
html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #2563eb;
}

a:hover {
  color: #03ecfa;
}

/* =====================================
   HEADER
===================================== */
.header {
  background: linear-gradient(135deg, #111827, #1e3a8a);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.header-right {
  display: flex;
  align-items: center;
}

/* =====================================
   HAMBURGER
===================================== */
.hamburger {
  width: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* =====================================
   LOGO
===================================== */
.logo img {
  height: 32px;
  display: block;
}

/* =====================================
   SEARCH
===================================== */
.search-form {
  display: flex;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}

.search-form input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  outline: none;
  font-size: 14px;
}

.search-form button {
  width: 45px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form img {
  width: 18px;
}

/* =====================================
   MEMBER ICON
===================================== */
.member-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-icon img {
  height: 28px;
}

/* =====================================
   TOP HOT BAR
===================================== */
.top-hot-bar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.top-hot-inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.hot-badge {
  color: #fff;
  font-weight: 700;
  background: #dc2626;
  padding: 4px 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.top-hot-inner a {
  color: #f9fafb;
  font-size: 14px;
}

.top-hot-inner a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =====================================
   SIDE MENU
===================================== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform .3s ease;

  z-index: 20000;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-header h3 {
  font-size: 17px;
  margin: 0;
}

.close-btn {
  border: none;
  background: none;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.menu-item {
  border-bottom: 1px solid #eee;
}

.menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.menu-parent-left {
  min-width: 0;
  flex: 1;
}

.menu-parent-left a {
  color: #2563eb;
  font-size: 17px;
  font-weight: 500;
  display: block;
  line-height: 1.4;
  word-break: break-word;
}

.toggle-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toggle-btn:hover {
  background: #e5e7eb;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding-left: 14px;
}

.submenu a {
  display: block;
  color: #444;
  font-size: 15px;
  padding: 8px 0;
}

.submenu a:hover {
  color: #2563eb;
}

.menu-item.active > .submenu {
  padding-bottom: 12px;
}

/* =====================================
   OVERLAY
===================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 15000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================
   CONTENT
===================================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px 15px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #2563eb;
}

/* =====================================
   FOOTER
===================================== */
.footer {
  text-align: center;
  font-size: 14px;
  color: #F9FAFB;
  margin-top: 40px;
  padding: 25px 15px;
  background: linear-gradient(135deg, #111827, #1e3a8a);
}

.footer a {
  color: #e5e7eb;
}

.footer a:hover {
  color: #ffffff;
}

.footer-categories {
  max-width: 1200px;
  margin: 0 auto 22px;
  text-align: left;
}

.footer-categories h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #fff;
}

.footer-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 20px;
}

.footer-category-grid a {
  color: #f9fafb;
  font-size: 14px;
}

.footer-category-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  margin-top: 10px;
}

/* =====================================
   MOBILE
===================================== */
@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  html {
    scroll-padding-top: 60px;
  }

  .header-inner {
    gap: 6px;
    padding: 10px 8px;
  }

  .logo img {
    height: 22px;
  }

  .header-center {
    flex: 1;
    min-width: 0;
    padding: 0 5px;
  }

  .search-form input {
    padding: 6px 8px;
    font-size: 12px;
  }

  .search-form button {
    width: 34px;
    flex-shrink: 0;
  }

  .member-icon {
    width: 38px;
    height: 38px;
  }

  .member-icon img {
    height: 24px;
  }

  .top-hot-bar::-webkit-scrollbar {
    height: 6px;
  }

  .top-hot-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
  }

  .top-hot-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
  }

  .top-hot-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
  }

  .side-menu {
    width: 100%;
  }

  .side-menu.open {
    left: 0;
  }

  .menu-parent-left a {
    font-size: 17px;
  }

  .footer-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }

  .footer-categories {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 4px;
  }

  .header-left {
    gap: 6px;
  }

  .logo img {
    height: 20px;
  }

  .header-center {
    padding: 0 3px;
  }

  .search-form {
    max-width: 100%;
  }

  .search-form input {
    font-size: 12px;
    padding: 5px 6px;
    min-width: 0;
  }

  .search-form button {
    width: 32px;
    min-width: 32px;
    flex-shrink: 0;
  }

  .member-icon {
    width: 36px;
  }

  .menu-parent-left a {
    font-size: 18px;
  }
}