@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
  --primary-rgb: 107, 125, 153;
  --primary: #6b7d99;
  --primary-hover: #94a4bf;
  --primary-glow: rgba(107, 125, 153, 0.18);
  --bg-dark: #0a0b0d;
  --bg-card: #111318;
  --text-main: #e6e8ed;
  --text-muted: #888e9b;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(12, 13, 18, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { font-family: 'Inter', 'Noto Sans Thai', sans-serif; }
body { background: #0a0b0d !important; color: var(--text-main) !important; }
body::before, body::after, .gojo-bg, #snowfall-container { display: none; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 4px; }
.gradient-text { background: none; -webkit-text-fill-color: currentColor; color: #aab8cc; }
.navbar.glass { padding: 22px 28px; background: linear-gradient(#0a0b0df5 65%, #0a0b0d00); border: 0; box-shadow: none; backdrop-filter: none; }
.navbar.is-stuck { background: rgba(10, 11, 13, 0.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-color); }
.navbar-inner { max-width: 1240px; gap: 20px; }
.navbar .logo-link { font-size: 1.15rem !important; gap: 9px !important; letter-spacing: -0.6px; white-space: nowrap; }
.navbar-inner > .nav-pill-group { border-radius: 999px; padding: 5px; background: rgba(12, 13, 18, 0.8); border-color: rgba(255, 255, 255, 0.09); box-shadow: 0 4px 18px #0003; }
.nav-pill { padding: 9px 15px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: #989eac; }
.nav-pill-indicator { border-radius: 999px; background: linear-gradient(135deg, #6b7d99, #94a4bf); border: 0; box-shadow: 0 4px 12px #6b7d992e; }
.nav-pill--sale, .nav-pill--sale:hover { color: #c5b698; }
.nav-pill__badge { background: #302b22; color: #d7c5a3; }
.nav-drop__menu, .nav-search__panel { background: #111318; border-color: var(--border-color); }
.nav-search__btn { width: 34px; height: 34px; border-radius: 50%; }
.nav-links-container { gap: 16px !important; }
#nav-login-btn { padding: 9px 17px !important; border-radius: 999px; font-size: 0.78rem; font-weight: 500; background: #171b23; border: 1px solid #ffffff14; box-shadow: none; white-space: nowrap; }
#nav-login-btn:hover { background: #222a36; }
.page-container, .page-container.is-home { max-width: 1296px; }
#app-content.page-container { padding: 132px 28px 48px !important; min-height: 100vh; }
.catalog-filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 24px; margin-bottom: 4px; }
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-filter { flex-shrink: 0; padding: 7px 15px; border: 1px solid #ffffff0d; border-radius: 999px; background: #101217; color: #8f96a4; font-size: 0.75rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.catalog-filter:hover, .catalog-filter.is-active { color: #d4dce9; border-color: #6b7d9940; background: #6b7d9924; }
.catalog-section { margin-bottom: 32px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 19px; margin-bottom: 20px; border-bottom: 1px solid #ffffff0c; }
.catalog-head h2 { margin: 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.3px; }
.catalog-head h2 span { display: inline-block; margin-left: 10px; color: #646c7a; font-size: 0.7rem; font-weight: 400; letter-spacing: 0; }
.catalog-more { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: #929bab; font-size: 0.75rem; cursor: pointer; white-space: nowrap; }
.catalog-more:hover { color: #d4dce9; }
.catalog-more svg { width: 14px; height: 14px; }
.catalog-grid, .rail-track.is-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; }
.catalog-grid > *, .rail-track.is-grid > * { min-width: 0; }
.catalog-grid .tile { background: #111318; border: 1px solid #ffffff0b; border-radius: 12px; overflow: hidden; }
.tile:hover { transform: translateY(-4px); }
.catalog-grid .tile:hover { border-color: #6b7d9970; box-shadow: 0 10px 26px #0004; }
.tile .tile__media { aspect-ratio: 16 / 10; border-radius: 11px; background: #14171e; outline: none; }
.catalog-grid .tile__media { border-radius: 11px 11px 0 0; }
.tile__media::before { display: none; }
.tile__img { object-fit: cover; }
.tile:hover .tile__media { box-shadow: none; }
.tile__body { padding: 12px; }
.tile__titlerow { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.tile__cat { max-width: 100%; padding: 2px 7px; border: 1px solid #6b7d992e; color: #9daec6; background: #6b7d991a; font-size: 0.6rem; font-weight: 500; border-radius: 4px; }
.tile__cat::before { display: none; }
.tile__name { min-height: 2.9em; color: #dce0e8; font-size: 0.8rem; font-weight: 500; line-height: 1.45; }
.tile__meta { font-size: 0.62rem; margin-bottom: 11px; gap: 5px; }
.tile__meta-item + .tile__meta-item::before { margin: 0 3px; }
.tile__meta-item--in { color: #86aa97; }
.tile__meta-item--out { color: #b78589; }
.tile__badge { top: 9px; right: 9px; padding: 4px 8px; font-size: 0.65rem; background: #11151ddd; border-color: #ffffff24; color: #e2e7ef; box-shadow: none; }
.tile__badge--sale { background: #453c2bef; color: #e0c795; }
.tile__flag { top: 9px; left: 9px; font-size: 0.58rem; padding: 4px 7px; box-shadow: none; }
.tile__sold { top: auto; bottom: 9px; right: 9px; font-size: 0.6rem; background: #101318cc; box-shadow: none; }
.tile__price { font-size: 0.85rem; color: #c7d2e3; }
.tile__list { font-size: 0.62rem; }
.tile__buy { padding: 6px 9px; border-radius: 6px; font-size: 0.66rem; background: #293342; color: #dbe4f1; box-shadow: none; }
.tile__buy:hover:not(:disabled) { background: #3c4b62; box-shadow: none; }
.tile__buy svg { width: 12px; height: 12px; }
.rail-head__icon { background: #6b7d991a; color: #9daec6; box-shadow: none; }
.rail-head__title { font-size: 1.05rem; font-weight: 600; }
.rail-track > * { flex-basis: 220px; }
.catalog-empty { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #ffffff12; border-radius: 12px; color: #687181; }
.catalog-empty > svg { width: 42px; height: 42px; stroke-width: 1; }
.catalog-empty h3 { color: #afb7c5; font-size: 0.95rem; font-weight: 500; }
.catalog-empty p { font-size: 0.78rem; }
.catalog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 0 32px; }
.catalog-pagination button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #ffffff0d; border-radius: 50%; color: #949dac; background: #111318; font-size: 0.78rem; cursor: pointer; }
.catalog-pagination button:hover:not(:disabled), .catalog-pagination .is-active { background: #6b7d99; color: white; border-color: #6b7d99; }
.catalog-pagination button:disabled { opacity: 0.3; cursor: default; }
.catalog-pagination > span { color: #687181; }
.catalog-footer { margin-top: 60px; padding: 30px 0 0; border-top: 1px solid #ffffff0c; text-align: center; color: #626b79; }
.catalog-footer > span { color: #a3adbc; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; }
.catalog-footer p { margin: 10px 0 18px; font-size: 0.75rem; }
.catalog-footer small { font-size: 0.65rem; }

@media (max-width: 1100px) {
  .navbar-inner { gap: 12px; }
  .nav-pill { padding: 9px 11px; }
  .navbar .logo-link { font-size: 1rem !important; }
  .catalog-grid, .rail-track.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .navbar.glass { padding: 15px 20px; }
  .navbar-inner { flex-wrap: wrap; }
  .navbar-inner > .nav-pill-group { order: 3; flex: 0 0 100%; justify-content: center; margin: 0; }
  .navbar-inner > .nav-links-container { margin-left: auto; }
  #app-content.page-container { padding: 152px 20px 32px !important; }
  .catalog-grid, .rail-track.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
}

@media (max-width: 600px) {
  .navbar.glass { padding: 12px 14px; }
  .navbar #navbar-brand { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; }
  .navbar-inner > .nav-pill-group { justify-content: flex-start; gap: 0; }
  .nav-pill { padding: 8px 10px; font-size: 0.7rem; }
  .nav-pill i, .nav-pill svg { width: 14px; height: 14px; }
  .nav-pill-sep { margin: 0 2px; }
  .nav-search { margin-left: auto; }
  .nav-search__btn { width: 30px; height: 30px; }
  #nav-login-btn { padding: 8px 12px !important; font-size: 0.7rem; }
  #app-content.page-container { padding: 140px 14px 28px !important; }
  .catalog-filters { padding-bottom: 20px; }
  .catalog-grid, .rail-track.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .catalog-head { gap: 8px; margin-bottom: 16px; padding-bottom: 14px; }
  .catalog-head h2 { font-size: 0.95rem; }
  .catalog-head h2 span { display: block; margin: 6px 0 0; }
  .catalog-more { font-size: 0.65rem; }
  .tile__body { padding: 10px; }
  .tile__name { font-size: 0.75rem; }
  .tile__meta { font-size: 0.57rem; }
  .tile__foot { flex-wrap: wrap; }
  .catalog-footer { margin-top: 40px; }
}
