/* ==========================================================================
   Home page (src/app/page.tsx) — 11/2026 mall floor.
   Every rule is scoped to #container.lx; colour tokens come from public/css/header.css (:root).
   Dense and continuous like a Korean open market: 56–64px between sections, compact bold sans heads with a
   "전체보기" link, one product card everywhere, line banners between floors, a red FLASH SALE band, a ranked
   TOP 검색, one navy floor (분야별 인기). Spacing scale 4/8/12/16/20/24/32/48/64.
   ========================================================================== */

#container.lx {
  --sale: #e8352b;
  --sale-soft: #fff1ef;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 21, 33, .05), 0 8px 24px -16px rgba(16, 21, 33, .25);
  --shadow-up: 0 2px 4px rgba(16, 21, 33, .05), 0 20px 40px -20px rgba(16, 21, 33, .35);

  padding: 0 !important;
  background: #fff !important;
  color: var(--nb-ink);
  font-family: var(--ui-font);
}
#container.lx *,
#container.lx *::before,
#container.lx *::after { box-sizing: border-box; }
/* zero specificity (:where): the component rules below set their own margins */
:where(#container.lx) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(#container.lx) :where(h2, p) { margin: 0; }

.lx .lx-inner { width: calc(100% - 48px); max-width: var(--ui-container, 1400px); margin: 0 auto; }
.lx .lx-only-mo { display: none; }

/* ==========================================================================
   Section rhythm and heads
   ========================================================================== */
.lx .lx-sec { padding: 64px 0 0; }
.lx > .lx-sec:last-child { padding-bottom: 96px; }

.lx .lx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.lx .lx-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.lx .lx-title { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -0.045em; color: var(--nb-ink); word-break: keep-all; }
.lx .lx-desc { font-size: 15px; color: var(--nb-muted); }
.lx .lx-head__tools { display: flex; flex: none; align-items: center; gap: 10px; }

.lx .lx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-muted);
  transition: color .2s var(--nb-ease);
}
.lx .lx-link::after { content: ''; width: 6px; height: 6px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); }
.lx .lx-link:hover { color: var(--nb-ink); }
.lx .lx-link--quiet::after { display: none; }

.lx .lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--brand-800);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: background-color .2s var(--nb-ease), color .2s var(--nb-ease), box-shadow .2s var(--nb-ease);
}
.lx .lx-btn:hover { background: var(--brand-700); }
.lx .lx-btn--ghost { background: #fff; color: var(--nb-ink); box-shadow: inset 0 0 0 1px var(--nb-line); }
.lx .lx-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--nb-ink); }
.lx .lx-btn--gold { background: var(--brass); color: var(--brand-950); }
.lx .lx-btn--gold:hover { background: var(--brass-hi); }
.lx .lx-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.lx .lx-btn--line:hover { background: rgba(255, 255, 255, .1); }

.lx .lx-tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  margin: -4px 0 20px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--nb-mist);
  scrollbar-width: none;
}
.lx .lx-tabs::-webkit-scrollbar { display: none; }
.lx .lx-tabs button {
  flex: none;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-muted);
  cursor: pointer;
  transition: background-color .2s var(--nb-ease), color .2s var(--nb-ease);
}
.lx .lx-tabs button:hover { color: var(--nb-ink); }
.lx .lx-tabs button.on { background: var(--nb-ink); color: #fff; }

.lx .lx-pager { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--nb-muted); }
.lx .lx-pager b { font-weight: 700; color: var(--nb-ink); }
.lx .lx-pager button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--nb-line);
  border-radius: 50%;
  background: #fff center / 14px 14px no-repeat;
  cursor: pointer;
  transition: border-color .2s var(--nb-ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121725' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}
.lx .lx-pager button:last-child {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121725' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}
.lx .lx-pager button:hover { border-color: var(--nb-ink); }

/* ==========================================================================
   Hero: banner at its own ratio (fills the frame, nothing letterboxed) + two service banners
   ========================================================================== */
.lx .lx-hero { padding: 20px 0 0; }
.lx .lx-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
/* 메인 관리 › 바로가기 카드 hidden: the slider takes the whole row, a little flatter so it does not tower */
.lx .lx-hero__grid.lx-hero__grid--full { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 769px) { .lx .lx-hero__grid--full .lx-hero__media { aspect-ratio: 1400 / 560; } }
.lx .lx-hero__media { position: relative; min-width: 0; aspect-ratio: 894 / 476; overflow: hidden; border-radius: var(--r-lg); background: var(--nb-mist); }
.lx .lx-hero__media .lx-only-pc,
.lx .lx-hero__media .lx-only-mo,
.lx .lx-hero__media .main_visual_slider,
.lx .lx-hero__media .swiper-container,
.lx .lx-hero__media .swiper-wrapper,
.lx .lx-hero__media .swiper-slide,
.lx .lx-hero__media .swiper-slide a { height: 100%; }
.lx .lx-hero__media .main_visual_slider { margin: 0 !important; padding: 0 !important; }
.lx .lx-hero__media .main_slider,
.lx .lx-hero__media .main_slider_mo { padding: 0 !important; overflow: hidden; }
.lx .lx-hero__media .swiper-slide { width: 100% !important; opacity: 1; transform: none; }
.lx .lx-hero__media .swiper-slide a { display: block; }
.lx .lx-hero__media .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lx .lx-hero__media .swiper-slide-btn {
  position: absolute !important;
  inset: auto 16px 16px auto !important;
  display: flex;
  justify-content: space-between;
  width: 140px !important;
  height: 44px !important;
  max-width: none;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(10, 17, 36, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: none !important;
  z-index: 6;
}
.lx .lx-hero__media .swiper-button-prev,
.lx .lx-hero__media .swiper-button-next {
  position: static !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border-radius: 50%;
  background: transparent center / 14px 14px no-repeat !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: pointer;
}
.lx .lx-hero__media .swiper-button-prev::after,
.lx .lx-hero__media .swiper-button-next::after { display: none; }
.lx .lx-hero__media .swiper-button-prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") !important;
}
.lx .lx-hero__media .swiper-button-next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") !important;
}
.lx .lx-hero__media .total_slide {
  position: absolute !important;
  inset: auto 64px 16px auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 52px !important;
  height: 44px !important;
  padding: 0 !important;
  background: none !important;
  opacity: 1 !important;
  transform: none !important;
  z-index: 7;
  pointer-events: none;
}
.lx .lx-hero__media .total_slide span { font-size: 13px !important; font-weight: 700 !important; color: #fff !important; }
.lx .lx-hero__media .total_slide span:not(.current) { opacity: .65; }

.lx .lx-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.lx .lx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #fff;
  transition: transform .3s var(--nb-ease), box-shadow .3s var(--nb-ease);
}
.lx .lx-tile--landing { background: linear-gradient(160deg, rgba(10, 17, 36, .55) 0%, rgba(31, 49, 92, .92) 75%), url('/img/main/lx/tile-landing.webp') center / cover; }
.lx .lx-tile--quote { background: linear-gradient(160deg, rgba(40, 30, 10, .4) 0%, rgba(16, 21, 33, .9) 75%), url('/img/main/lx/tile-quote.webp') center / cover; }
.lx .lx-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.lx .lx-tile__title { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.045em; word-break: keep-all; }
.lx .lx-tile__desc { margin-top: 6px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.lx .lx-tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--brass-hi); }
.lx .lx-tile__go::after { content: ''; width: 6px; height: 6px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); }

/* categories: phones only */
.lx .lx-dir { display: none; }

/* ==========================================================================
   Product card (one style everywhere)
   ========================================================================== */
.lx .lx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 16px; }
.lx .lx-card { display: flex; flex-direction: column; gap: 12px; height: 100%; color: var(--nb-ink); }
/* a missing image shows the picture icon on the grey (the photo layer covers it once it loads) */
.lx .lx-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--nb-mist) url('/img/main/lx/no-image.svg') center / 44px no-repeat; }
.lx .lx-card__media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 21, 33, .05); pointer-events: none; }
.lx .lx-card__img { position: absolute; inset: 0; display: block; background: center / cover no-repeat; transition: transform .6s var(--nb-ease); }
.lx .lx-card:hover .lx-card__img,
.lx .lx-news__item:hover .lx-card__img,
.lx .lx-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.lx .lx-card__seller { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--nb-muted); }
.lx .lx-card__seller-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lx .lx-card__level { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--brass-soft); font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--brass-ink); }
.lx .lx-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: inherit;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.lx .lx-card:hover .lx-card__title { text-decoration: underline; text-underline-offset: 3px; }
.lx .lx-card__price { margin-top: auto; padding-top: 2px; font-size: 14px; color: var(--nb-ink-2); }
.lx .lx-card__price b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: var(--nb-ink); }
.lx .lx-card__price em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--brand-700); }
.lx .lx-card__meta { font-size: 12px; color: var(--nb-muted); }
.lx .lx-card__meta--split { display: flex; justify-content: space-between; gap: 8px; }
.lx .lx-card__meta--split span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lx .lx-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--nb-ink);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.lx .lx-tag--light { background: rgba(255, 255, 255, .94); color: var(--nb-ink); }

.lx .lx-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lx .lx-rail::-webkit-scrollbar { display: none; }
.lx .lx-rail > li { min-width: 0; scroll-snap-align: start; }

/* portfolio mosaic: the first card takes a 2×2 block */
.lx .lx-sec--mosaic .lx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.lx .lx-sec--mosaic .lx-grid > li:first-child { grid-column: span 2; grid-row: span 2; }
.lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__media { flex: 1; aspect-ratio: auto; min-height: 280px; }
.lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__body { flex: none; }
.lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__title { font-size: 20px; font-weight: 700; }

/* ==========================================================================
   FLASH SALE band
   ========================================================================== */
.lx .lx-flash { margin-top: 48px; padding: 40px 0 44px; background: var(--sale-soft); }
.lx .lx-flash__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.lx .lx-flash__title { display: flex; align-items: center; gap: 6px; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.lx .lx-flash__ico { color: var(--sale); }
.lx .lx-flash__word { font-weight: 900; font-style: italic; color: var(--sale); }
.lx .lx-flash__sale { font-weight: 500; font-style: italic; color: var(--nb-ink); }
.lx .lx-flash__timer { display: flex; align-items: center; gap: 4px; }
.lx .lx-flash__when { margin-right: 6px; font-size: 13px; font-weight: 600; color: var(--nb-muted); }
.lx .lx-flash__timer b {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--nb-ink);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lx .lx-flash__timer i { font-style: normal; font-size: 18px; font-weight: 800; color: var(--nb-ink); }
.lx .lx-flash__name { font-size: 15px; font-weight: 600; color: var(--nb-ink-2); }
.lx .lx-flash__tools { margin-left: auto; }
.lx .lx-flash__rail { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
.lx .lx-flash__card { padding: 10px 10px 14px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); transition: box-shadow .3s var(--nb-ease); }
.lx .lx-flash__card:hover { box-shadow: var(--shadow-up); }
.lx .lx-flash__card .lx-card__body { padding: 0 4px; }
.lx .lx-flash__off { position: absolute; top: 0; left: 0; padding: 8px 12px; border-radius: var(--r) 0 var(--r) 0; background: var(--sale); font-size: 13px; font-weight: 700; color: #fff; }
.lx .lx-flash__off b { font-size: 20px; font-weight: 900; }
.lx .lx-flash__soon { position: absolute; inset: auto 0 0 0; padding: 8px; background: rgba(16, 21, 33, .72); font-size: 13px; font-weight: 700; text-align: center; color: #fff; }
.lx .lx-flash__price { display: flex; flex-direction: column; margin-top: auto; padding-top: 2px; }
.lx .lx-flash__price del { font-size: 13px; color: #8a909b; }
.lx .lx-flash__price > span { font-size: 14px; color: var(--nb-ink-2); }
.lx .lx-flash__price em { margin-right: 6px; font-style: normal; font-size: 18px; font-weight: 900; color: var(--sale); }
.lx .lx-flash__price b { font-size: 18px; font-weight: 800; color: var(--nb-ink); }

/* ==========================================================================
   검색 랭킹 TOP 10 — ranked cards
   ========================================================================== */
.lx .lx-top__keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lx .lx-top__keys a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--nb-mist);
  font-size: 14px;
  color: var(--nb-ink-2);
  transition: background-color .2s var(--nb-ease), color .2s var(--nb-ease);
}
.lx .lx-top__keys a:hover { background: var(--nb-ink); color: #fff; }
.lx .lx-top__keys em { font-style: normal; font-weight: 800; color: var(--sale); }

/* ==========================================================================
   Line banners (admin sliders or the photo stand-ins)
   ========================================================================== */
.lx .lx-band { padding: 64px 0 0; }
.lx .lx-band .slider_box { margin: 0 !important; }
.lx .lx-band .slick-list,
.lx .lx-band .slider_item a,
.lx .lx-band .swiper-container { display: block; overflow: hidden; border-radius: var(--r-lg); }
.lx .lx-band img { display: block; width: 100%; height: auto; }
.lx .lx-band .slick-dots,
.lx .lx-band .swiper-pagination { position: static !important; display: flex; justify-content: center; gap: 2px; margin: 10px 0 0 !important; padding: 0; transform: none !important; }
.lx .lx-band .slick-dots li { width: auto !important; height: auto !important; margin: 0 !important; }
.lx .lx-band .slick-dots button,
.lx .lx-band .swiper-pagination-bullet { position: relative; display: block; width: 24px !important; height: 24px !important; margin: 0 !important; padding: 0; border: 0; background: none !important; font-size: 0 !important; opacity: 1 !important; cursor: pointer; }
.lx .lx-band .slick-dots button::before,
.lx .lx-band .swiper-pagination-bullet::before { content: '' !important; position: absolute; inset: 9px; width: auto !important; height: auto !important; border-radius: 999px; background: var(--nb-line); opacity: 1 !important; }
.lx .lx-band .slick-active button::before,
.lx .lx-band .swiper-pagination-bullet-active::before { background: var(--nb-ink); }
.lx .lx-promo-visual .promotion_content { position: relative; }
.lx .lx-promo-visual .promotion_ttl { position: absolute; left: 32px; bottom: 28px; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }

.lx .lx-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 28px 40px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--brand-900);
  color: #fff;
  isolation: isolate;
}
.lx .lx-ad__img { position: absolute; z-index: -2; inset: 0; background: center 35% / cover no-repeat; transition: transform 1s var(--nb-ease); }
.lx .lx-ad::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(10, 17, 36, .92) 0%, rgba(10, 17, 36, .65) 45%, rgba(10, 17, 36, .1) 85%); }
.lx .lx-ad:hover .lx-ad__img { transform: scale(1.03); }
.lx .lx-ad__txt { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.lx .lx-ad__title { font-size: 26px; font-weight: 800; letter-spacing: -0.045em; word-break: keep-all; }
.lx .lx-ad__desc { font-size: 15px; color: rgba(255, 255, 255, .82); }
.lx .lx-ad__go { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--nb-ink); }
.lx .lx-ad__go::after { content: ''; width: 6px; height: 6px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg); }

/* ==========================================================================
   프로모션
   ========================================================================== */

.lx .lx-promo .cont_box { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.lx .lx-promo .promotion_tab { display: flex; flex-direction: column; gap: 4px; }
.lx .lx-promo .promotion_tab button { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--nb-mist); font-family: inherit; text-align: left; cursor: pointer; }
.lx .lx-promo .promotion_tab .ico { display: none; }
.lx .lx-promo .promotion_tab .txt { font-size: 14px; font-weight: 600; color: var(--nb-ink-2); }
.lx .lx-promo .promotion_tab button.on { background: var(--nb-ink); }
.lx .lx-promo .promotion_tab button.on .txt { color: #fff; }
.lx .lx-promo .promotion_banner { overflow: hidden; border-radius: var(--r-lg); background: var(--nb-mist); }
.lx .lx-promo .promotion_banner img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   이용 안내 + 입점 안내
   ========================================================================== */
.lx .lx-guide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.lx .lx-guide--solo { grid-template-columns: minmax(0, 1fr); }
.lx .lx-how { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r-lg); background: var(--nb-mist); }
.lx .lx-how .lx-title { font-size: 22px; }
.lx .lx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lx .lx-step { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: #fff; }
.lx .lx-step__no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nb-ink); font-size: 14px; font-weight: 800; color: #fff; }
.lx .lx-step__txt { display: flex; flex-direction: column; gap: 4px; }
.lx .lx-step__title { font-size: 14px; font-weight: 700; letter-spacing: -0.03em; word-break: keep-all; }
.lx .lx-step__desc { font-size: 12px; line-height: 1.5; color: var(--nb-muted); word-break: keep-all; }
.lx .lx-how__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.lx .lx-seller {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(100deg, rgba(10, 17, 36, .96) 0%, rgba(10, 17, 36, .8) 55%, rgba(10, 17, 36, .35) 100%),
    url('/img/main/lx/seller-open.webp') right 30% / cover no-repeat;
  color: #fff;
}
.lx .lx-seller__title { font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -0.045em; color: #fff; word-break: keep-all; }
.lx .lx-seller__desc { margin-top: 10px; max-width: 34ch; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.lx .lx-seller__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ==========================================================================
   공지사항
   ========================================================================== */
.lx .lx-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lx .lx-news__item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px; border: 1px solid var(--nb-line); border-radius: var(--r); color: var(--nb-ink); transition: border-color .2s var(--nb-ease); }
.lx .lx-news__item:hover { border-color: var(--nb-ink); }
.lx .lx-news__thumb { position: relative; flex: none; width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--nb-mist) url('/img/main/lx/no-image.svg') center / 32px no-repeat; }
.lx .lx-news__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lx .lx-news__body strong { overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; text-overflow: ellipsis; }
.lx .lx-news__body span { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--nb-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==========================================================================
   Laptop / tablet
   ========================================================================== */
@media (max-width: 1279px) {
  .lx .lx-hero__grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .lx .lx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lx .lx-sec--mosaic .lx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx .lx-rail,
  .lx .lx-flash__rail { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .lx .lx-guide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .lx .lx-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .lx .lx-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .lx .lx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx .lx-sec--mosaic .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx .lx-rail,
  .lx .lx-flash__rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .lx .lx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx .lx-promo .cont_box { grid-template-columns: minmax(0, 1fr); }
  .lx .lx-promo .promotion_tab { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .lx .lx-promo .promotion_tab button { flex: none; width: auto; min-height: 44px; border-radius: 999px; }
  .lx .lx-news { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 768px) {
  .lx .lx-only-pc { display: none; }
  .lx .lx-only-mo { display: block; }
  .lx .lx-inner { width: calc(100% - 32px); }

  .lx .lx-sec { padding-top: 44px; }
  .lx > .lx-sec:last-child { padding-bottom: 72px; }
  .lx .lx-head { margin-bottom: 14px; }
  .lx .lx-title { font-size: 21px; }
  .lx .lx-desc { font-size: 13px; }
  .lx .lx-head__tools .lx-pager span { display: none; }
  .lx .lx-tabs { margin: 0 0 16px; }
  .lx .lx-tabs button { padding: 0 14px; font-size: 13px; }

  .lx .lx-hero { padding-top: 0; }
  .lx .lx-hero .lx-inner { width: 100%; }
  .lx .lx-hero__grid { gap: 10px; }
  .lx .lx-hero__media { aspect-ratio: 4 / 3; border-radius: 0; }
  .lx .lx-hero__media .total_slide { inset: auto 14px 14px auto !important; width: 60px !important; height: 28px !important; border-radius: 999px; background: rgba(10, 17, 36, .5) !important; }
  .lx .lx-hero__media .swiper-slide-btn { display: none !important; }
  .lx .lx-hero__side { gap: 10px; padding: 0 16px; }
  .lx .lx-tile { min-height: 112px; padding: 16px; border-radius: var(--r); }
  .lx .lx-tile__title { font-size: 15px; }
  .lx .lx-tile__desc { display: none; }

  .lx .lx-dir { display: block; padding-top: 24px; }
  .lx .lx-dir__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; }
  .lx .lx-dir__item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; text-align: center; }
  .lx .lx-dir__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ico-tint, var(--brand-100)); color: var(--ico-ink, var(--brand-800)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ico-ink, #1f315c) 14%, transparent), 0 6px 14px -10px var(--ico-ink, #1f315c); transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1); }
  .lx .lx-dir__ico svg { width: 26px; height: 26px; }
  .lx .lx-dir__item:active .lx-dir__ico { transform: scale(.94); }
  .lx .lx-dir__item:focus-visible { outline: 2px solid var(--brand-800); outline-offset: 2px; border-radius: 12px; }
  .lx .lx-dir__txt { font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em; color: var(--nb-ink); word-break: keep-all; }

  .lx .lx-grid,
  .lx .lx-sec--mosaic .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .lx .lx-sec--mosaic .lx-grid > li:first-child { grid-row: span 1; }
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__title { font-size: 16px; }
  .lx .lx-card { gap: 10px; }
  .lx .lx-card__title { font-size: 14px; }
  .lx .lx-card__price b { font-size: 16px; }
  .lx .lx-rail,
  .lx .lx-flash__rail { grid-auto-columns: 44%; gap: 10px; margin-right: -16px; padding-right: 16px; }

  .lx .lx-flash { margin-top: 32px; padding: 28px 0 32px; }
  .lx .lx-flash__head { gap: 10px 14px; margin-bottom: 14px; }
  .lx .lx-flash__title { font-size: 22px; }
  .lx .lx-flash__ico { width: 24px; height: 24px; }
  .lx .lx-flash__timer b { min-width: 30px; height: 30px; font-size: 15px; border-radius: 6px; }
  .lx .lx-flash__name { flex-basis: 100%; font-size: 13px; }
  .lx .lx-flash__card { padding: 8px 8px 12px; }

  .lx .lx-top__keys { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
  .lx .lx-top__keys li { flex: none; }

  .lx .lx-band { padding-top: 44px; }
  .lx .lx-ad { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 22px 20px; border-radius: var(--r); }
  .lx .lx-ad::before { background: linear-gradient(90deg, rgba(10, 17, 36, .92) 0%, rgba(10, 17, 36, .7) 70%, rgba(10, 17, 36, .45) 100%); }
  .lx .lx-ad__title { font-size: 19px; }
  .lx .lx-ad__desc { font-size: 13px; }
  .lx .lx-band .slick-list,
  .lx .lx-band .slider_item a,
  .lx .lx-band .swiper-container { border-radius: var(--r); }
  .lx .lx-promo-visual .promotion_ttl { left: 16px; bottom: 16px; font-size: 17px; }




  .lx .lx-how { padding: 22px 16px; }
  .lx .lx-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lx .lx-step { flex-direction: row; align-items: center; padding: 12px 14px; }
  .lx .lx-how__cta .lx-btn,
  .lx .lx-seller__btns .lx-btn { flex: 1 1 130px; }
  .lx .lx-seller { padding: 28px 20px; }
  .lx .lx-seller__title { font-size: 20px; }
}

/* 검색 랭킹 TOP 10: five columns, the rank set large on the photo */
.lx .lx-top__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 16px; }
.lx .lx-top__card .lx-card__media::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(10, 17, 36, .62), rgba(10, 17, 36, 0));
  pointer-events: none;
}
.lx .lx-top__rank {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 4px;
  font-size: 46px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.lx .lx-top__card.is-top .lx-top__rank { color: #ffd84d; }
.lx .lx-top__sale { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 8px; border-radius: 6px; background: var(--sale); font-size: 12px; font-weight: 800; color: #fff; }
.lx .lx-top__was { margin-right: 6px; font-size: 12px; color: #8a909b; }

/* small solid button in a section head (중고 판매하기) */
.lx .lx-chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--nb-ink);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: background-color .2s var(--nb-ease);
}
.lx .lx-chipbtn::before { content: '+'; font-size: 16px; font-weight: 600; line-height: 1; }
.lx .lx-chipbtn:hover { background: var(--brand-800); }

@media (max-width: 1279px) {
  .lx .lx-top__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .lx .lx-top__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .lx .lx-top__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%; gap: 10px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lx .lx-top__grid::-webkit-scrollbar { display: none; }
  .lx .lx-top__grid > li { scroll-snap-align: start; }
  .lx .lx-top__rank { font-size: 36px; }
  .lx .lx-head__tools .lx-chipbtn { min-height: 40px; padding: 0 12px; }
}

/* ==========================================================================
   Mall details: 찜 hearts, section icons, banner progress, flash timer
   ========================================================================== */
/* 찜 heart over the photo (a sibling of the card link, components/home/Zzim.tsx); 44px hit area, 34px disc */
.lx .lx-cardwrap { position: relative; }
.lx .lx-zzim {
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 16px, transparent 17px);
  color: var(--nb-ink-2);
  cursor: pointer;
  transition: transform .2s var(--nb-ease);
}
.lx .lx-zzim svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lx .lx-zzim:hover { transform: scale(1.08); color: var(--sale); }
.lx .lx-zzim.on { color: var(--sale); }
.lx .lx-zzim.on svg { fill: currentColor; animation: lx-pop .35s var(--nb-ease); }
.lx .lx-flash__rail .lx-zzim { top: 14px; right: 14px; }
.lx .lx-top__card .lx-top__sale { right: auto; left: 10px; }
@keyframes lx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* section title icons (components/home/SecIcon.tsx) */
.lx .lx-title,
.lx .lx-seller__title { display: inline-flex; align-items: center; gap: 8px; }
.lx .lx-ico { flex: none; }
.lx .lx-ico--fire { color: var(--sale); }
.lx .lx-ico--trophy { color: #d4a017; }
.lx .lx-ico--spark { color: #2f6bff; }
.lx .lx-ico--recycle { color: #13a37f; }
.lx .lx-ico--gallery { color: #7a5af8; }
.lx .lx-ico--guide,
.lx .lx-ico--bell { color: var(--brand-700); }
.lx .lx-ico--store { color: var(--brass-hi); }

/* main visual: an autoplay progress line on the active slide (MainVisualSlider: 2.5 s per slide) */
.lx .lx-hero__media .swiper-slide { position: relative; }
.lx .lx-hero__media .swiper-slide-active::after {
  content: '';
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .9);
  transform-origin: left;
  animation: lx-progress 3.2s linear both;
}
@keyframes lx-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* flash timer: the box stays put, a changed number slides in from above inside it; a LIVE badge pulses */
.lx .lx-flash__timer b { overflow: hidden; }
.lx .lx-flash__timer b span { display: block; animation: lx-tick .3s var(--nb-ease); }
@keyframes lx-tick { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.lx .lx-flash__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sale);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.lx .lx-flash__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lx-blink 1.2s ease-in-out infinite; }
@keyframes lx-blink { 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .lx .lx-hero__media .swiper-slide-active::after,
  .lx .lx-flash__timer b span,
  .lx .lx-flash__live::before,
  .lx .lx-zzim.on svg { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lx *,
  .lx *::before,
  .lx *::after { transition-duration: .01ms !important; }
  .lx .lx-card:hover .lx-card__img,
  .lx .lx-tile:hover,
  .lx .lx-ad:hover .lx-ad__img { transform: none; }
}

/* 추천 서비스: a category chosen in 메인 관리 that has no goods yet */
.lx .lx-empty { padding: 48px 16px; border: 1px dashed var(--nb-line); border-radius: var(--r); text-align: center; color: var(--nb-muted); }
.lx .lx-empty a { margin-left: 6px; font-weight: 700; color: var(--nb-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Small phones (owner review 11/2026: the home page must hold down to 230px). Phone-only: nothing here reaches PC.
   ≤360px: rails show bigger cards, tiles stack; ≤340px: the service grids become one card per row laid out
   sideways (picture left, text right) so a card never shrinks below a readable size; ≤280px: rails one card wide.
   ========================================================================== */
@media (max-width: 360px) {
  .lx .lx-inner { width: calc(100% - 24px); }
  .lx .lx-hero__side { padding: 0 12px; }
  .lx .lx-rail,
  .lx .lx-flash__rail,
  .lx .lx-top__grid { grid-auto-columns: 58%; margin-right: -12px; padding-right: 12px; }
  .lx .lx-title { font-size: 19px; }
}
@media (max-width: 340px) {
  .lx .lx-hero__side { grid-template-columns: minmax(0, 1fr); }
  .lx .lx-tile { min-height: 84px; }
  .lx .lx-dir__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; }
  .lx .lx-dir__ico { width: 52px; height: 52px; border-radius: 16px; }
  .lx .lx-grid,
  .lx .lx-sec--mosaic .lx-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lx .lx-grid > li .lx-card,
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 12px; }
  .lx .lx-grid > li .lx-card__media,
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__media { aspect-ratio: 1 / 1; min-height: 0; }
  .lx .lx-sec--mosaic .lx-grid > li:first-child { grid-column: auto; }
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card__title { font-size: 14px; }
  /* 찜 heart stays on the picture's top-right corner instead of covering the title (ui.no-overlap-text) */
  .lx .lx-grid .lx-zzim { top: 0; right: auto; left: calc(112px - 36px); }
  /* the condition tag moves to the picture's bottom edge so it never meets the heart */
  .lx .lx-grid .lx-tag { top: auto; bottom: 6px; left: 6px; max-width: calc(100% - 12px); padding: 3px 6px; overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 280px) {
  .lx .lx-rail,
  .lx .lx-flash__rail,
  .lx .lx-top__grid { grid-auto-columns: 82%; }
  .lx .lx-grid > li .lx-card,
  .lx .lx-sec--mosaic .lx-grid > li:first-child .lx-card { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .lx .lx-dir__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx .lx-grid .lx-zzim { left: calc(88px - 36px); }
}

/* phones (owner review 11/2026): section heads let the tools (pager, 판매하기, 더보기) drop under the title when the
   row is too narrow, instead of squeezing the description to a few characters a line; the 찜 heart is smaller
   (26px disc in a 36px hit area, above the 32px phone minimum) */
@media (max-width: 768px) {
  .lx .lx-head { flex-wrap: wrap; align-items: flex-end; }
  .lx .lx-head__title { flex: 1 1 240px; }
  .lx .lx-head__tools { flex-wrap: wrap; }
  .lx .lx-zzim { top: 2px; right: 2px; width: 36px; height: 36px; background: radial-gradient(circle, rgba(255, 255, 255, .92) 13px, transparent 14px); }
  .lx .lx-zzim svg { width: 16px; height: 16px; }
  .lx .lx-flash__rail .lx-zzim { top: 10px; right: 10px; }
  .lx .lx-tag { top: 8px; left: 8px; padding: 3px 7px; font-size: 10px; }
}
