* {
  box-sizing: border-box;
}

:root {
  --page: #f2f2f0;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #2d2d2b;
  --muted: #676767;
  --soft: #b5b5b5;
  --line: #1d1d1b;
  --line-strong: #1d1d1b;
  --wire: #1d1d1b;
  --blue: #4a9de2;
  --blue-soft: #d9ecfb;
  --sage: #777c77;
  --clay: #ff5a1f;
  --shadow-dark: rgba(40, 56, 66, 0.16);
  --shadow-light: rgba(255, 255, 255, 0.96);
  --neumo-surface: #fff;
  --neumo-shadow-dark: rgba(40, 56, 66, 0.17);
  --neumo-shadow-light: rgba(255, 255, 255, 0.98);
  --neumo-shadow: 2px 2px 5px var(--neumo-shadow-dark),
    -2px -2px 5px var(--neumo-shadow-light);
  --neumo-shadow-inset: inset 2px 2px 5px rgba(40, 56, 66, 0.14),
    inset -2px -2px 5px var(--neumo-shadow-light);
  --arrow-shadow: 0 1px 4px rgba(40, 56, 66, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.76);
  --arrow-shadow-inset: inset 0 1px 3px rgba(40, 56, 66, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.82);
  --scrollbar-track: rgba(217, 236, 251, 0.48);
  --scrollbar-thumb: rgba(74, 157, 226, 0.58);
  --scrollbar-thumb-hover: rgba(74, 157, 226, 0.74);
  --focus: rgba(52, 120, 185, 0.28);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font-family:
    "NanumSquare", "NanumSquare Neo", "Noto Sans KR", "Apple SD Gothic Neo",
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: grid;
  place-items: center;
  line-height: 1.5;
  overflow: hidden;
}

* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 0;
}

*::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb));
  background-clip: padding-box;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 0;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.showroom-frame {
  width: min(100vw, 480px);
  max-width: 480px;
  flex: 0 1 min(100vw, 480px);
  height: 100svh;
  background: var(--surface);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 700px) {
  body {
    padding: 28px 0;
  }

  .showroom-frame {
    height: calc(100svh - 56px);
  }
}

.loading-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.loading-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--sage);
  animation: pulse 850ms ease-in-out infinite alternate;
}

@keyframes pulse {
  to {
    opacity: 0.35;
    transform: scale(0.82);
  }
}

.topbar {
  min-height: 108px;
  padding: 42px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.grid-topbar {
  justify-content: flex-end;
}

.detail-topbar {
  min-height: 118px;
  align-items: flex-start;
}

.topbar-spacer {
  flex: 1 1 auto;
}

.brand-title {
  min-width: 0;
}

.brand-title__eyebrow {
  color: var(--sage);
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.brand-title__name {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1.15;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button,
.logo-switch,
.drawer-brand,
.slider-button {
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--neumo-shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.icon-button:active,
.logo-switch:active,
.drawer-brand:active,
.slider-button:active,
.drawer-brand[aria-current="true"],
.logo-switch[aria-expanded="true"] {
  transform: translateY(1px);
  box-shadow: var(--neumo-shadow-inset);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.language {
  position: relative;
}

.language-button {
  min-width: 78px;
  height: 40px;
  border-radius: 0;
  border: 0;
  background: var(--neumo-surface);
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: var(--neumo-shadow);
  transition:
    transform 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.language-button[aria-expanded="true"],
.language-button:active {
  color: var(--blue);
  transform: translateY(1px);
  box-shadow: var(--neumo-shadow-inset);
}

.flag {
  width: 22px;
  height: 22px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: inline-grid;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.flag-fr {
  background-image: url("images/flags/flag-fr.svg?v=20260607-flags-v2");
}

.flag-en {
  background-image: url("images/flags/flag-en.svg?v=20260607-flags-v2");
}

.flag-ko {
  background-image: url("images/flags/flag-ko.svg?v=20260607-flags-v2");
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 138px;
  padding: 8px;
  border-radius: 0;
  background: var(--neumo-surface);
  box-shadow: var(--neumo-shadow);
  z-index: 40;
}

.language-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.language-option[aria-current="true"] {
  background: #f7f9fb;
  color: var(--blue);
  box-shadow: var(--neumo-shadow-inset);
}

.page {
  padding: 18px 30px 56px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 16px;
  padding-bottom: 28px;
}

.brand-card {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform 160ms ease;
}

.brand-card:active {
  transform: translateY(1px);
}

.brand-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow:
    3px 3px 8px rgba(40, 56, 66, 0.16),
    -3px -3px 8px rgba(255, 255, 255, 0.98);
  transition: box-shadow 160ms ease;
}

.brand-card:active .brand-card__image {
  box-shadow:
    inset 2px 2px 5px rgba(40, 56, 66, 0.15),
    inset -2px -2px 5px rgba(255, 255, 255, 0.96);
}

.brand-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.brand-card__photo--base {
  opacity: 1;
}

.brand-card__photo--hover {
  opacity: 0;
  transform: scale(1.015);
}

.brand-card:not(.brand-card--no-hover):hover .brand-card__photo--hover,
.brand-card:not(.brand-card--no-hover):focus-visible .brand-card__photo--hover {
  opacity: 1;
  transform: scale(1);
}

.brand-card:not(.brand-card--no-hover):hover .brand-card__photo--base,
.brand-card:not(.brand-card--no-hover):focus-visible .brand-card__photo--base {
  opacity: 0;
  transform: scale(0.985);
}

.brand-card__logo {
  height: 58px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.organizer-footer {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
}

.organizer-footer img {
  width: min(260px, 68vw);
  height: auto;
  object-fit: contain;
}

.detail-page {
  padding-bottom: 36px;
}

.logo-switch {
  min-width: 0;
  width: min(240px, calc(100vw - 146px));
  height: 48px;
  padding: 5px 16px;
  border-radius: 0;
  background: var(--neumo-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neumo-shadow);
}

.logo-switch:active,
.logo-switch[aria-expanded="true"] {
  box-shadow: var(--neumo-shadow-inset);
}

.logo-switch img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
}

.company {
  padding: 0 28px 20px;
}

.info-list {
  display: grid;
  gap: 9px;
}

.info-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 0.94rem;
}

.info-label {
  color: var(--blue);
  font-weight: 800;
}

.info-value {
  min-width: 0;
  color: var(--ink);
  word-break: break-word;
}

.info-value a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.info-row--description {
  margin-top: 2px;
}

.info-row--description .info-value {
  line-height: 1.42;
}

.products {
  padding: 0 28px 28px;
  display: grid;
  gap: 22px;
}

.product-card {
  background: var(--surface-strong);
  border-radius: 0;
  overflow: hidden;
}

.product-media {
  position: relative;
  background: #f1f1ef;
  contain: paint;
  isolation: isolate;
  overflow: hidden;
}

.product-media__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  padding: 0;
  box-shadow: var(--arrow-shadow);
}

.slider-button::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform-origin: center;
}

.slider-button--prev::before {
  transform: rotate(135deg);
}

.slider-button--next::before {
  transform: rotate(-45deg);
}

.slider-button:active {
  transform: translateY(calc(-50% + 1px));
  box-shadow: var(--arrow-shadow-inset);
}

.slider-button--prev {
  left: 10px;
}

.slider-button--next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
}

.slider-dot.is-active {
  background: var(--blue);
}

.product-info {
  padding: 22px 20px 24px;
}

.product-specs {
  display: grid;
  gap: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 0.94rem;
}

.product-label {
  color: var(--blue);
  font-weight: 800;
}

.product-text {
  color: #3f433c;
  word-break: break-word;
  white-space: pre-line;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 480px);
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(25, 28, 24, 0.34);
}

.drawer[hidden],
.language-menu[hidden] {
  display: none;
}

.drawer-panel {
  width: 100%;
  max-height: min(84svh, 640px);
  background: #fff;
  padding: 22px 28px max(22px, env(safe-area-inset-bottom));
  box-shadow: 0 -24px 70px rgba(35, 39, 34, 0.24);
  overflow-y: auto;
}

@media (min-width: 700px) {
  .drawer {
    top: 28px;
    bottom: 28px;
  }

  .drawer-panel {
    max-height: min(calc(100svh - 92px), 640px);
  }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.drawer-head .icon-button {
  width: 37px;
  height: 37px;
  aspect-ratio: 1 / 1;
  flex: 0 0 37px;
  padding: 0;
  color: var(--blue);
  font-size: 1.12rem;
  line-height: 1;
}

.drawer-grid {
  display: grid;
  gap: 8px;
}

.drawer-brand {
  min-width: 0;
  width: 100%;
  height: 44px;
  border-radius: 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neumo-surface);
  box-shadow: var(--neumo-shadow);
}

.drawer-brand:active,
.drawer-brand[aria-current="true"] {
  box-shadow: var(--neumo-shadow-inset);
}

.drawer-brand:last-child {
  border-bottom: 0;
}

.drawer-brand img {
  max-width: 80%;
  max-height: 32px;
  object-fit: contain;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.plain-button {
  border: 0;
  background: var(--surface);
  border-radius: 0;
  padding: 12px 10px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: var(--neumo-shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.plain-button:active {
  transform: translateY(1px);
  box-shadow: var(--neumo-shadow-inset);
}

.plain-button--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--neumo-shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 360px) {
  .page,
  .products,
  .company {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-grid {
    gap: 14px 10px;
  }

  .brand-card {
    padding: 8px;
  }

  .brand-card__logo {
    height: 42px;
  }

  .info-row,
  .product-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .logo-switch {
    width: min(220px, calc(100vw - 132px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
