@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
  color-scheme: light dark;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --deep: #0f172a;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --yellow: #f59e0b;
  --green: #10b981;
  --blue: #2563eb;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --max: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', 'Pretendard', sans-serif;
  --header-bg: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f8fafc;
    --muted: #94a3b8;
    --line: #334155;
    --paper: #1e293b;
    --soft: #0f172a;
    --deep: #0f172a;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(30, 41, 59, 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.55;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  transition: var(--transition);
}

img {
  display: block;
  width: 100%;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 99;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--yellow);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #2f3744;
  font-size: 15px;
  font-weight: 700;
}

.main-nav > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  padding: 24px 0;
}

.main-nav a:hover {
  color: var(--red);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-trigger {
  gap: 6px;
}

.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: min(940px, calc(100vw - 36px));
  max-height: min(80vh, 600px);
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-menu a {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.nav-menu-all {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  padding: 12px 24px !important;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-menu-all:hover,
.nav-menu-all:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.nav-group {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.nav-group-title {
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 14px !important;
  border-bottom: 2px solid var(--blue);
  padding: 0 0 6px !important;
  border-radius: 0 !important;
  margin-bottom: 4px;
  pointer-events: none; /* Make heading non-clickable if needed, or clickable */
}

.nav-submenu {
  display: grid;
  gap: 2px;
}

.nav-submenu a {
  color: var(--muted) !important;
  padding: 6px 0 !important;
  background: transparent !important;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
  color: var(--blue) !important;
  transform: translateX(6px);
  font-weight: 800;
  outline: none;
}

.header-actions,
.hero-actions,
.contact-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.primary-action,
.secondary-action,
.quick-band button,
.close-button,
.mobile-cta a,
.mobile-cta button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 800;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 62px;
}

.icon-button.phone,
.primary-action {
  background: var(--red);
  color: #fff;
}

.icon-button.kakao,
.secondary-action,
.quick-band button {
  background: var(--yellow);
  color: #171717;
}

.secondary-action.dark {
  background: var(--deep);
  color: #fff;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
}

.primary-action:hover,
.icon-button.phone:hover {
  background: var(--red-dark);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(820px, 82svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: #111927 center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  z-index: -1;
  background: rgba(7, 13, 22, 0.58);
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.98;
  letter-spacing: 0;
  word-break: keep-all;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-copy {
  max-width: 710px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 38px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-facts div {
  padding: 18px 18px 0 0;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.quick-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1px;
  background: var(--line);
}

.quick-band div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px clamp(18px, 4vw, 48px);
  background: #fff;
}

.quick-band strong {
  color: var(--muted);
  font-size: 13px;
}

.quick-band a,
.quick-band span {
  font-weight: 900;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 6vw, 86px);
}

.intro .section-heading {
  display: block;
  margin-bottom: 0;
}

.intro-copy {
  color: #3f4856;
  font-size: 18px;
}

.tool-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
}

.search-box input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 95, 191, 0.16);
}

.filter-count {
  color: var(--muted);
  font-weight: 800;
}

.category-filter {
  margin-bottom: 18px;
}

.category-select {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.category-select select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 42px 0 14px;
  font-weight: 900;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--deep) 50%), linear-gradient(135deg, var(--deep) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.category-select select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 95, 191, 0.16);
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.category-card button {
  display: grid;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.category-card > a {
  display: grid;
  width: 100%;
  height: 100%;
  color: inherit;
}

.category-card figure {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.35 / 1;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid #edf1f6;
  background: #f7f9fc;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  padding: 0;
  background: #fff;
}

.category-card .image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef3f8);
  color: #6a7380;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.case-card img {
  object-fit: cover;
  padding: 0;
  background: #dfe6ef;
}

.category-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.category-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.category-body p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.case-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe6ef;
}

.case-grid img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.case-grid figure:nth-child(1),
.case-grid figure:nth-child(8),
.case-grid .case-tile:nth-child(1),
.case-grid .case-tile:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
}

.case-grid figure:nth-child(1) img,
.case-grid figure:nth-child(8) img,
.case-grid .case-tile:nth-child(1) img,
.case-grid .case-tile:nth-child(8) img {
  aspect-ratio: 1 / 1;
}

.case-tile {
  display: block;
  min-width: 0;
}

.case-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 34px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 20, 0.82));
  color: #fff;
}

.case-tile figcaption strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-tile figcaption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.process {
  width: 100%;
  max-width: none;
  background: #fff;
  padding-left: max(18px, calc((100% - var(--max)) / 2));
  padding-right: max(18px, calc((100% - var(--max)) / 2));
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 26px;
  background: #fff;
}

.process-list-detailed li {
  min-height: 206px;
}

.process-list li::before {
  content: counter(list-item, decimal-leading-zero);
  color: var(--green);
  font-weight: 900;
}

.process-list strong {
  font-size: 22px;
  line-height: 1.25;
}

.process-list span {
  color: var(--muted);
}

.process-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.process-page {
  padding-top: clamp(32px, 5vw, 64px);
}

.process-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(24px, 4vw, 42px);
}

.process-cta-panel h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 36px);
}

.process-cta-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.contact {
  padding-bottom: 92px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  padding: clamp(26px, 5vw, 52px);
}

.contact-panel .eyebrow {
  color: var(--yellow);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-actions {
  justify-content: flex-end;
}

address {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 48px) 92px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.mobile-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-cta a,
.mobile-cta button {
  display: grid;
  place-items: center;
}

.mobile-cta a {
  background: var(--red);
  color: #fff;
}

.mobile-cta button {
  background: var(--yellow);
  color: #181818;
}

.gallery-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: min(820px, calc(100svh - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-dialog::backdrop {
  background: rgba(6, 12, 20, 0.62);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.dialog-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.close-button {
  background: #eef2f7;
  color: var(--ink);
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 52svh;
  overflow: auto;
  padding: 14px 24px 24px;
}

.dialog-grid img {
  aspect-ratio: 1.12 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: #e8edf3;
}

.dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(var(--max), calc(100% - 36px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--blue);
}

.directory-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0 clamp(28px, 5vw, 54px);
}

.directory-hero h1 {
  max-width: 980px;
  color: var(--ink);
}

.directory-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: #3f4856;
  font-size: clamp(18px, 2vw, 22px);
}

.directory-facts {
  color: var(--ink);
  border-top-color: var(--line);
}

.directory-facts dt {
  color: var(--muted);
}

.directory-facts dd {
  color: var(--ink);
}

.page-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.compact-contact {
  padding-top: clamp(48px, 7vw, 78px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.product-detail-media {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-main-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.35 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-main-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-main-visual .image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 320px;
  place-items: center;
  background: linear-gradient(135deg, #f8fafc, #eef3f8);
  color: #6a7380;
  font-size: 16px;
  font-weight: 900;
}

.detail-image-list {
  display: grid;
  gap: 14px;
}

.detail-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.detail-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-image-grid img {
  aspect-ratio: 1.18 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  object-position: center;
  padding: 12px;
}

.detail-image-grid img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 1.65 / 1;
}

.detail-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.detail-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

.detail-actions .primary-action,
.detail-actions .secondary-action {
  width: 100%;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 78svh;
  }

  .quick-band,
  .section-heading,
  .intro,
  .contact-panel,
  .process-cta-panel,
  address,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list-detailed li {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .header-actions {
    display: none;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-inner {
    width: calc(100% - 28px);
    padding-bottom: 112px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .tool-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-facts div {
    padding-top: 12px;
  }

  .quick-band div {
    display: grid;
    gap: 8px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .breadcrumb,
  .directory-hero {
    width: calc(100% - 28px);
  }

  .category-grid,
  .case-grid,
  .dialog-grid,
  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .detail-image-grid img:first-child {
    aspect-ratio: 1.18 / 1;
  }

  .product-main-visual .image-placeholder {
    min-height: 220px;
  }

  .category-body p {
    min-height: auto;
  }

  .case-grid figure:nth-child(1),
  .case-grid figure:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .dialog-head {
    display: grid;
    padding: 18px;
  }

  .dialog-grid {
    padding: 12px 18px 18px;
  }

  .dialog-actions {
    align-items: stretch;
    padding: 14px 18px 18px;
  }

  .mobile-cta {
    display: grid;
  }

  .toast {
    right: 14px;
    bottom: 86px;
    left: 14px;
    text-align: center;
  }
}

/* ==========================================
   Premium UI/UX Enhancements (Upgraded)
   ========================================== */

/* 1. Category Chips (Tabs) */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  margin-bottom: 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.category-chips::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.category-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.category-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.category-chip-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 10px;
  transition: var(--transition);
}

.category-chip.active .category-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 2. Interactive Image Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: grid;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  user-select: none;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-image {
  transform: scale(1);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1010;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

@media (max-width: 1200px) {
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* 3. Quote Request Basket (장바구니) */
.cart-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-toggle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: popBadge 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBadge {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  display: block;
  opacity: 1;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.cart-close-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-items-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px solid var(--line);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-category {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  overflow: hidden;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--line);
}

.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.cart-item-remove {
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.cart-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.cart-form-section {
  margin-top: 32px;
  border-top: 2px solid var(--line);
  padding-top: 24px;
}

.cart-form-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
}

.cart-form {
  display: grid;
  gap: 16px;
}

.cart-form-group {
  display: grid;
  gap: 6px;
}

.cart-form-group label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.cart-form-group input,
.cart-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  transition: var(--transition);
}

.cart-form-group input:focus,
.cart-form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cart-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.cart-submit-btn {
  width: 100%;
  min-height: 50px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.cart-submit-btn:hover {
  background: var(--blue);
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.cart-submit-btn:disabled {
  background: var(--muted);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* 4. Add to Cart button on detail and cards */
.add-to-cart-btn {
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--blue);
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.product-detail-actions-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .cart-panel {
    max-width: 100%;
  }
  .cart-toggle-btn {
    right: 16px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}

/* ==========================================
   Super Upgrade Styles
   ========================================== */

/* 1. Search Autocomplete suggestions */
.search-suggest-container {
  position: relative;
  width: 100%;
}

.search-suggest-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 6px;
  display: none;
}

.search-suggest-box.active {
  display: block;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--soft);
  transition: var(--transition);
}

.search-suggest-item:last-child {
  border-bottom: none;
}

.search-suggest-item:hover {
  background: var(--soft);
  color: var(--blue);
}

.search-suggest-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px solid var(--line);
}

.search-suggest-info {
  flex: 1;
  min-width: 0;
}

.search-suggest-name {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-cat {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

/* 2. Cart Calculator Section */
.cart-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}

.cart-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.cart-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.cart-tab-pane {
  display: none;
}

.cart-tab-pane.active {
  display: block;
}

.calc-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.calc-form-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.calc-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.calc-result-box {
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.calc-result-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 10px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.calc-result-item:last-child {
  margin-bottom: 0;
}

.calc-result-qty {
  color: var(--blue);
}

.calc-add-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.calc-add-btn:hover {
  background: var(--blue);
  filter: brightness(0.9);
}

/* 3. FLIP animations */
.product-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

/* 4. Action row for PDF generation in cart footer */
.cart-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.cart-pdf-btn {
  background: var(--deep);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.cart-pdf-btn:hover {
  background: var(--muted);
}

