:root {
  --blue: #075cab;
  --deep-blue: #003d77;
  --line: #c9d7e8;
  --pale: #edf3fc;
  --ink: #111;
  --nav-blue: #036;
  --nav-blue-dark: #024;
  --nav-blue-mid: #003366;
  --nav-blue-light: #0a4d8c;
  --store-orange: #ff8a00;
  --device-active-yellow: #8a6500;
  --device-menu-gold: #d4af37;
  --device-tray-bg: #3d9ee6;
  --device-chip-bg: #5eb4f0;
  --device-chip-border: rgb(255 255 255 / 0.45);
  --device-bar-top: #001f3d;
  /* 남색 내비 띠(뒤 레이어) 세로 — 트레이·칩은 이 밖으로 겹침 */
  --device-navy-strip-height: 34px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Dotum, "Malgun Gothic", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  width: min(100% - 16px, 959px);
  margin: 0 auto;
}

.layout-inner {
  width: min(100% - 16px, 959px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.site-header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.site-header > .top-utility-bar,
.site-header > .uci-strip,
.site-header > .header-main,
.site-header > .device-menu-wrap,
.site-header > .category-menu-wrap {
  width: 100%;
  box-sizing: border-box;
}

.uci-strip {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.uci-strip-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  /* 상단 0: UCI 트랩 상단이 회색 유틸 막대(밑변)에 맞닿음 */
  padding: 0 0 10px;
  box-sizing: border-box;
}

.top-utility-bar {
  background: #e9e9e9;
  border-bottom: 1px solid #d4d4d4;
}

.top-utility-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 10px;
  min-height: 34px;
  /* PC·모바일 공통: 로그인 / 배포문구(중앙) / 고객센터 */
  padding: 5px 10px 6px;
}

.top-utility-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 3;
  justify-self: end;
}

/* 회색 유틸 막대 가운데: deploy-info.json (빌드·npm run dev 시 기록) */
.deploy-inline {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: #555;
  letter-spacing: 0.02em;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deploy-inline:empty,
.deploy-inline[hidden] {
  display: none;
}

.utility-links {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9a9a9a;
}

.utility-sep {
  color: #b0b0b0;
  user-select: none;
}

.btn-customer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-customer:hover {
  opacity: 0.82;
}

.btn-customer-icon {
  flex-shrink: 0;
  color: #000;
}

.header-main {
  background: #fff;
}

.header-main-inner {
  --header-pad-top: 12px;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 14px;
  align-items: center;
  padding: var(--header-pad-top) 0 0;
}

.header-main-col {
  /* 문장 최대폭; 검색은 그보다 최대 +50px(.top-search) */
  --header-tagline-max-w: 620px;
  grid-column: 2;
  align-self: center;
  min-width: 0;
  width: 100%;
  container-type: inline-size;
  container-name: hero-col;
}

.header-main-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.uci-top-cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: nowrap;
}

.uci-trap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 92px;
  padding: 0 12px;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.28));
  /* 윗변(100%) > 아랫변(약 72%): 등변사다리꼴 */
  clip-path: polygon(0% 0%, 100% 0%, 86% 100%, 14% 100%);
}

.uci-trap-text {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.uci-trap--what {
  margin: 0;
  background: linear-gradient(180deg, #ffe033 0%, #f5b000 55%, #e89400 100%);
}

.uci-trap--reg {
  margin: 0 0 0 -1px;
  background: linear-gradient(180deg, #6a6f76 0%, #4a4f55 45%, #35393e 100%);
}

.uci-trap:hover {
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.28)) brightness(1.06);
}

.logo--hero {
  display: block;
  grid-column: 1;
  align-self: center;
  grid-row: 1;
  justify-self: start;
}

.logo--hero img {
  width: 172px;
  height: 115px;
  margin: 0;
}

.header-tagline {
  width: 100%;
  max-width: min(100%, var(--header-tagline-max-w));
  margin: 0;
  padding: 0 8px;
  color: #111;
  font-size: 12px;
  font-weight: normal;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-align: center;
}

.tag-em {
  color: #e64a19;
  font-weight: 700;
}

.top-search {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  max-width: min(100%, calc(var(--header-tagline-max-w) + 50px));
  min-width: 0;
  margin: 0;
  padding: 0 8px;
}

.top-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.top-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 37px;
  border: 4px solid var(--nav-blue);
  padding: 0 10px;
  background: #fff;
  font-weight: bold;
}

.top-search button {
  min-width: 64px;
  height: 37px;
  border: 1px solid #0a0a0a;
  background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 18%, #151515 55%, #0a0a0a 100%);
  color: #fff;
  font-weight: bold;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    inset 0 -1px 0 rgb(0 0 0 / 0.35),
    0 1px 0 rgb(255 255 255 / 0.12);
}

.top-search button:hover {
  filter: brightness(1.08);
}

.device-menu-wrap {
  position: relative;
  isolation: isolate;
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

/* 남색 띠: 하단 얇은 띠만. 트레이는 세로로 더 크게 위·아래로 삐져나옴 */
.device-menu-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--device-navy-strip-height);
  z-index: 0;
  pointer-events: none;
  border-top: 1px solid var(--device-bar-top);
  background: linear-gradient(180deg, var(--nav-blue-dark) 0%, var(--nav-blue-mid) 42%, var(--nav-blue) 72%, var(--nav-blue-light) 100%);
  box-shadow: none;
}

.device-menu-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

/* 스토어 탭 + 브레드크럼: 탭 하단 = 남색 띠 상단(띠 높이만큼 아래 블록) */
.device-menu-side-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}

.device-menu-tabs-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 3;
  line-height: 0;
  flex: 0 0 auto;
}

.store-switch {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.store-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 30px;
  border: 0;
  padding: 0 12px;
  border-radius: 4px 4px 0 0;
  background: var(--store-orange);
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.02em;
  box-sizing: border-box;
  transform: skewX(-11deg);
}

.store-switch .store-trap-text {
  display: inline-block;
  transform: skewX(11deg);
}

.store-switch .active {
  background: var(--nav-blue-mid);
}

body.design-mode .store-switch .active {
  background: var(--store-orange);
}

body.design-mode .store-switch [data-store="design"].active {
  background: var(--nav-blue-mid);
}

body.design-mode .top-search input {
  border-color: var(--store-orange);
}

.device-menu-blue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0;
  padding: 4px 8px 0 4px;
  position: relative;
  z-index: 1;
}

.device-nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  min-width: 0;
  width: 100%;
  min-height: var(--device-navy-strip-height);
  z-index: 2;
}

.device-menu-tray {
  flex: 0 1 auto;
  margin-left: -8px;
  margin-top: -11px;
  margin-bottom: 0;
  padding: 8px 14px 9px;
  background: linear-gradient(180deg, #4eb0ef 0%, var(--device-tray-bg) 45%, #2d8fd4 100%);
  border: 1px solid rgb(0 40 80 / 0.55);
  border-radius: 3px;
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.28);
  z-index: 2;
}

.device-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
}

.device-menu button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: none;
}

.device-menu button:hover {
  filter: brightness(1.08);
}

.device-menu .active {
  background: transparent;
  color: var(--device-menu-gold);
  border: 0;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}

.device-breadcrumb {
  margin: 0;
  max-width: min(260px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(255 255 255 / 0.98);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-align: right;
}

.category-menu-wrap {
  background: #f4f7fc;
  margin-top: -1px;
  border-top: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.category-menu {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  height: 105px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.category-menu button {
  display: block;
  flex: 0 0 auto;
  width: 96px;
  height: 105px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f4f7fc;
}

.category-menu button:last-child {
  border-right: 0;
}

.category-menu .active {
  background: #cfe5ff;
}

.category-menu img {
  width: 96px;
  max-width: none;
  height: 103px;
  object-fit: cover;
  object-position: center top;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 231px;
  gap: 8px;
  align-items: start;
  margin-top: 10px;
}

.content-area {
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.page-back {
  color: var(--blue);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.page-back-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: top;
}

.page-back:hover .page-back-img,
.page-back:focus-visible .page-back-img {
  opacity: 0.88;
}

.page-title {
  margin: 0;
  font-size: 16px;
}

.page-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 14px;
}

.page-link {
  color: var(--blue);
  font-weight: bold;
  text-decoration: underline;
}

.info-article {
  display: grid;
  gap: 12px;
}

.info-hero img {
  height: 22px;
  width: auto;
}

.info-body {
  display: grid;
  gap: 12px;
}

.info-hero-img,
.info-diagram {
  width: 100%;
  height: auto;
}

.info-text p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.info-steps {
  margin: 0 0 10px 18px;
  padding: 0;
}

.info-steps li {
  margin: 0 0 6px;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.hero-banner {
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  aspect-ratio: 720 / 218;
  height: auto;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  box-shadow: 0 0 5px rgb(0 0 0 / 0.14);
}

.hero-banner-slide {
  grid-area: 1 / 1;
  display: block;
  margin: 0;
  line-height: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-banner-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-banner-slide:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.tab-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 37px;
  margin-top: 8px;
  border-bottom: 2px solid #161616;
}

.tab-strip button {
  width: 159px;
  height: 36px;
  border: 1px solid #b8b8b8;
  background: linear-gradient(#edf4ff, #c7d5ed);
  padding: 0;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
}

.tab-strip .active {
  background: #111;
  color: #fff;
}

.tab-strip .count {
  margin-left: auto;
  color: #666;
}

.product-grid {
  --tile-w: 129px;
  --tile-h: 126px;
  --gap-x: 7px;
  --gap-y: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-w), 1fr));
  grid-auto-rows: var(--tile-h);
  grid-auto-flow: dense;
  gap: var(--gap-y) var(--gap-x);
  width: 100%;
  max-width: 720px;
  padding-top: 8px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  width: 100%;
  max-width: 720px;
}

.pager button {
  height: 26px;
  min-width: 54px;
  border: 1px solid #bbb;
  background: linear-gradient(#fff, #e8e8e8);
  padding: 0 10px;
  font-weight: bold;
}

.pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.pager-info {
  color: #444;
  font-weight: bold;
}

.tile {
  position: relative;
  overflow: hidden;
  width: auto;
  height: auto;
  border: 1px solid #ccc;
  background: #f7f7f7;
}

.tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.tile.mid {
  grid-column: span 1;
  grid-row: span 1;
}

.tile img {
  width: min(115px, calc(100% - 12px));
  height: min(115px, calc(100% - 12px));
  margin: 6px auto 0;
  padding: 0;
  object-fit: contain;
}

.tile.big img {
  width: min(160px, calc(100% - 14px));
  height: min(240px, calc(100% - 14px));
  margin: 7px auto 0;
  object-fit: contain;
  padding: 0;
  background: #fff;
}

.tile.mid img {
  width: min(124px, calc(100% - 12px));
  height: min(124px, calc(100% - 12px));
}

.tile-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 26px;
  padding: 6px 7px 4px;
  background: rgb(0 0 0 / 0.72);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile .hover {
  position: absolute;
  inset: 0;
  display: block;
  padding: 18px 10px 8px;
  background: linear-gradient(#f9f9f9, #e4e4e4);
  opacity: 0;
  transition: opacity 0.15s ease;
  border: 1px solid #d9d9d9;
  cursor: pointer;
}

.tile:hover .hover,
.tile:focus-within .hover {
  opacity: 1;
}

.hover strong {
  display: block;
  color: #000;
  font-size: 12px;
  line-height: 1.3;
  max-height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.hover p {
  margin: 8px 0 0;
  color: #333;
  line-height: 1.35;
  max-height: 34px;
  overflow: hidden;
  word-break: keep-all;
  text-align: center;
}

.hover button {
  display: none;
}

.hover .hover-code {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  margin: 0;
  color: #006bd6;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-height: none;
  text-align: center;
}

.tile-title,
.tile .hover,
.tile .hover strong,
.tile .hover p,
.best-item span {
  text-align: center;
}

.side-area {
  display: grid;
  gap: 10px;
}

.buy-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border: 1px solid #9abce4;
  background: #cde2fa;
  padding: 0 25px;
  color: #001b4b;
  font-weight: bold;
  font-size: 14px;
}

.notice-panel {
  border-left: 1px solid #e1e1e1;
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

.notice-head strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 28px;
  border: 1px solid #bbb;
  color: #333;
  font-size: 13px;
}

.notice-head a {
  color: #666;
  font-size: 11px;
}

.notice-panel ul {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.notice-panel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
  margin-bottom: 4px;
  align-items: center;
}

.notice-panel a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-panel time {
  text-align: right;
  color: #222;
  font-size: 11px;
  white-space: nowrap;
}

.best-panel h2 {
  position: relative;
  margin: 0 0 8px;
  height: 36px;
  background: #003565;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.best-panel h2::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  margin-left: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #003565;
}

.best-list {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.best-item {
  width: 89px;
}

.best-item img {
  width: 89px;
  height: 89px;
  object-fit: cover;
  border-radius: 9px;
}

.best-item span {
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.site-footer {
  position: relative;
  min-height: 100px;
  margin-top: 20px;
  border-top: 2px solid #ccc;
  padding: 17px 0 18px;
  color: #666;
}

.footer-logo {
  position: absolute;
  top: 10px;
  left: 36px;
  width: 138px;
  height: 76px;
}

.footer-content {
  margin-left: 187px;
  padding-top: 3px;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 6px;
}

.footer-menu a {
  position: relative;
  padding: 0 16px 0 0;
  margin-right: 15px;
  color: #333;
  font-size: 12px;
  font-weight: bold;
}

.footer-menu a::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 10px;
  background: #999;
}

.footer-menu a:last-child::after {
  display: none;
}

.footer-menu .privacy {
  color: #333;
}

.footer-content p {
  margin: 0;
}

.detail-dialog {
  width: min(100% - 24px, 920px);
  height: min(100% - 24px, 720px);
  border: 1px solid #777;
  padding: 0;
}

.detail-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 42px;
  border-bottom: 1px solid #ccc;
  padding: 0 12px;
  background: #f7f7f7;
}

.dialog-head button {
  border: 1px solid #888;
  background: #fff;
  padding: 5px 10px;
}

.detail-dialog iframe {
  width: 100%;
  height: calc(100% - 42px);
  border: 0;
}

/* 좁은 창 + 거친 포인터(모바일·데스크톱 사이트 모드 등). (hover:none) 단독은 데스크톱에서 오탐이 있어 제외 */
@media (max-width: 820px),
  (max-width: 1200px) and (pointer: coarse) {
  .site-shell {
    width: min(100% - 12px, 959px);
  }

  .layout-inner {
    width: min(100% - 12px, 959px);
  }

  .header-main-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    --header-pad-top: 14px;
    padding: var(--header-pad-top) 10px 18px;
  }

  .logo--hero {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
  }

  .header-main-col {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    align-self: center;
  }

  .header-main-stack {
    align-items: flex-start;
  }

  .header-tagline {
    text-align: left;
    padding: 0;
    max-width: min(100%, var(--header-tagline-max-w));
    width: 100%;
    font-size: 11px;
    line-height: 1.45;
  }

  /* UCI 링크: 단말 뷰포트 우측 끝 정렬(일반 layout-inner 폭·중앙 정렬 해제) */
  .uci-strip .uci-strip-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-end;
    padding: 0 max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px));
  }

  .logo--hero img {
    width: 86px;
    height: auto;
  }

  .top-search {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    max-width: min(100%, calc(var(--header-tagline-max-w) + 50px));
    margin: 0;
    padding: 0;
    align-self: flex-start;
    box-sizing: border-box;
  }

  .top-utility-right {
    width: auto;
    align-items: flex-end;
  }

  .top-search input {
    width: 100%;
    max-width: none;
  }

  .tab-strip {
    width: 75%;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .tab-strip button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-size: 12px;
  }

  .tab-strip .count {
    margin-left: 6px;
    flex-shrink: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .device-menu-tabs-row {
    justify-content: center;
  }

  .device-menu-side-right {
    width: 100%;
    margin-left: 0;
    align-items: center;
  }

  .device-menu-blue-row {
    flex-direction: column;
    align-items: stretch;
    padding: 4px 8px 0;
    row-gap: 6px;
  }

  .device-menu-tray {
    width: 100%;
    margin-left: 0;
    margin-top: -8px;
    margin-bottom: 0;
    overflow-x: auto;
    padding: 7px 10px 8px;
  }

  .device-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .device-nav-right {
    width: 100%;
    min-height: 0;
    padding: 0 0 4px;
    align-items: flex-end;
    align-self: stretch;
  }

  .device-breadcrumb {
    max-width: 100%;
    width: 100%;
    margin: 0;
    text-align: right;
  }

  .device-menu button {
    flex: 0 0 auto;
  }

  .category-menu {
    width: 100%;
    overflow-x: auto;
    height: calc(105px * 0.75);
  }

  .category-menu button {
    width: calc(96px * 0.75);
    height: calc(105px * 0.75);
  }

  .category-menu img {
    width: calc(96px * 0.75);
    height: calc(103px * 0.75);
  }

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

  .side-area {
    grid-row: 2;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .buy-guide,
  .notice-panel,
  .best-panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .best-panel {
    overflow: hidden;
  }

  .content-area {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* 가로 모드 등 넓은 뷰에서 그리드·페이저가 쉘 폭까지 채움(우측 빈 여백 방지) */
  .product-grid,
  .pager {
    max-width: 100%;
  }

  .hero-banner,
  .hero-banner img {
    width: 100%;
  }

  .hero-banner {
    height: auto;
  }

  .hero-banner img {
    height: auto;
  }

  /* 판매 어플 베스트: 가로 스크롤은 목록 안에서만 (페이지 전체 가로 스크롤 방지) */
  .best-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 10px;
    scrollbar-width: thin;
  }

  .best-item {
    flex: 0 0 auto;
    width: 82px;
  }

  .best-item img {
    width: 82px;
    height: 82px;
  }

  .best-item span {
    max-width: 82px;
  }
}

/* 모바일·터치 레이아웃 규칙 뒤에 두어, 좁은 폭은 flex-start·621px 이상은 중앙 맞춤이 이김(깜빡임 없음) */
@container hero-col (min-width: 621px) {
  .header-main-stack {
    align-items: center;
  }

  .header-main-col .header-tagline {
    width: fit-content;
    max-width: min(100%, var(--header-tagline-max-w));
    margin-inline: auto;
    text-align: center;
  }
}

/* 푸터: 터치 미디어쿼리와 무관하게 좁은 뷰포트에서는 배지 옆에 본문 (pointer: fine·데스크톱 사이트 모드 포함) */
@media (max-width: 959px) {
  .site-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px 18px;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-logo {
    flex: 0 0 auto;
    position: static;
    margin: 0;
    width: 69px;
    height: 38px;
  }

  .footer-content {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
    padding-top: 0;
  }

  /* 상품 타일(큰/작은) 전체 75% — 그리드 셀·썸네일·간격 */
  .product-grid {
    --tile-w: calc(clamp(96px, 30vw, 129px) * 0.75);
    --tile-h: calc(var(--tile-w) * 126 / 129);
    --gap-x: calc(7px * 0.75);
    --gap-y: calc(6px * 0.75);
    max-width: 100%;
  }

  .pager {
    max-width: 100%;
  }

  .tile.big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tile img {
    width: min(calc(115px * 0.75), calc(100% - 12px));
    height: min(calc(115px * 0.75), calc(100% - 12px));
    margin: calc(6px * 0.75) auto 0;
  }

  .tile.big img {
    width: min(calc(160px * 0.75), calc(100% - 14px));
    height: min(calc(240px * 0.75), calc(100% - 14px));
    margin: calc(7px * 0.75) auto 0;
  }

  .tile.mid img {
    width: min(calc(124px * 0.75), calc(100% - 12px));
    height: min(calc(124px * 0.75), calc(100% - 12px));
  }

  .tile-title {
    min-height: calc(26px * 0.75);
    padding: calc(6px * 0.75) calc(7px * 0.75) calc(4px * 0.75);
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    --tile-w: calc(clamp(92px, 46vw, 129px) * 0.75);
    --tile-h: calc(var(--tile-w) * 126 / 129);
  }

  .tile.big {
    grid-column: span 1;
    grid-row: span 2;
  }

  .side-area {
    grid-template-columns: 1fr;
  }
}

.device-debug {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: min(100vw, 720px);
  max-height: 50vh;
  margin: 0;
  padding: 10px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.88);
  color: #00ff66;
  font: 12px/1.45 Consolas, Monaco, monospace;
  white-space: pre-wrap;
  text-align: left;
}
