:root {
  --navy: #071927;
  --ink: #0e1f2f;
  --muted: #64748b;
  --line: #dbe3ea;
  --surface: #f4f7fa;
  --accent: #ef5428;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 48px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: 220px;
  max-width: 42vw;
}

.catalog-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
}

.catalog-header a {
  color: var(--ink);
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.catalog-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 76px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.catalog-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.catalog-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.catalog-button,
.catalog-zoom button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
}

.catalog-button.primary,
.catalog-zoom button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.catalog-toolbar {
  position: sticky;
  top: 81px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.catalog-toolbar select {
  height: 42px;
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.catalog-zoom {
  display: flex;
  gap: 8px;
}

.catalog-pages {
  display: grid;
  gap: 28px;
  padding-bottom: 80px;
}

.catalog-page {
  scroll-margin-top: 160px;
}

.catalog-page-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-page img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(7, 25, 39, 0.1);
}

.catalog-pages.fit .catalog-page {
  width: min(100%, 900px);
  margin: 0 auto;
}

.catalog-pages.wide .catalog-page {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(7, 25, 39, 0.2);
  cursor: pointer;
}

@media (max-width: 860px) {
  .catalog-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .catalog-header nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .catalog-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 46px;
  }

  .catalog-actions,
  .catalog-toolbar {
    width: 100%;
  }

  .catalog-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar label,
  .catalog-toolbar select,
  .catalog-zoom button {
    width: 100%;
  }

  .catalog-zoom {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
