:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --blue: #0071E3;
  --blue-hover: #0077ED;
  --blue-soft: #EAF3FF;
  --orange: #F97316;
  --orange-hover: #EA580C;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.075);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 28px 0 36px;
  overflow-x: hidden;
}

.view {
  width: 100%;
  margin: 0 auto;
}

.home-view {
  max-width: 980px;
}

.detail-view {
  max-width: 640px;
}

.fade-in {
  animation: fadeIn 180ms ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.detail-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.home-hero {
  padding: 18px 20px 10px;
  display: grid;
  gap: 14px;
  justify-items: start;
  text-align: left;
}

.eyebrow,
.hub-kicker,
.type-badge {
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  padding: 7px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
}

.title {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  word-break: keep-all;
}

.subtitle {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 4vw, 26px);
  line-height: 1.22;
  font-weight: 750;
  word-break: keep-all;
}

.description,
.selection-guide,
.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  word-break: keep-all;
}

.selection-guide {
  max-width: 760px;
  margin-top: 4px;
  padding: 15px 18px;
  color: var(--text);
  background: #FFFFFF;
  border-radius: 18px;
  font-weight: 650;
}

.shop-hub {
  margin-top: 18px;
  padding: 0;
  display: grid;
  gap: 30px;
}

.section-title {
  margin: 0;
  color: var(--text);
}

.category-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 20px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-link {
  min-width: 118px;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 160ms ease, color 160ms ease;
}

.category-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.category-link:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.32);
  outline-offset: 5px;
  border-radius: 18px;
}

.category-icon {
  width: 96px;
  height: 66px;
  display: block;
  position: relative;
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
}

.category-icon-image {
  display: grid;
  place-items: center;
}

.category-icon-image::before,
.category-icon-image::after {
  display: none;
}

.category-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.category-icon-restaurant::before {
  width: 76px;
  height: 48px;
  left: 10px;
  bottom: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #FFFFFF 0 31%, transparent 32%),
    conic-gradient(from 20deg, #E8EEF7, #BFD8F6, #FFFFFF, #F97316, #E8EEF7);
  box-shadow: inset 0 0 0 7px #1D1D1F;
}

.category-icon-restaurant::after {
  width: 58px;
  height: 9px;
  left: 19px;
  bottom: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.14);
}

.category-icon-cafe::before {
  width: 58px;
  height: 42px;
  left: 15px;
  bottom: 6px;
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, #FFFFFF 0 28%, #C7EBFF 29% 100%);
  box-shadow: inset 0 -5px 0 rgba(0, 113, 227, 0.12), 0 5px 14px rgba(0, 0, 0, 0.08);
}

.category-icon-cafe::after {
  width: 24px;
  height: 23px;
  right: 13px;
  bottom: 16px;
  border: 5px solid #C7EBFF;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.category-icon-culture::before {
  width: 70px;
  height: 42px;
  left: 13px;
  bottom: 9px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 45%, #F97316 0 10px, transparent 11px),
    radial-gradient(circle at 50% 45%, #0071E3 0 10px, transparent 11px),
    radial-gradient(circle at 75% 45%, #7C3AED 0 10px, transparent 11px),
    #FFFFFF;
  box-shadow: inset 0 0 0 2px #E8E8ED, 0 5px 16px rgba(0, 0, 0, 0.08);
}

.category-icon-culture::after {
  width: 44px;
  height: 12px;
  left: 26px;
  bottom: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.12);
}

.shop-section {
  display: grid;
  gap: 14px;
}

.section-heading {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.section-title {
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.22;
  font-weight: 800;
  text-align: left;
  word-break: keep-all;
}

.section-title span {
  color: var(--text);
}

.section-title em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.rail-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.rail-button {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(210, 210, 215, 0.86);
  box-shadow: none;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.rail-button:hover {
  background: rgba(190, 190, 196, 0.92);
}

.rail-button:active {
  transform: scale(0.94);
}

.rail-button:disabled,
.rail-button[aria-disabled="true"] {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.rail-button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.32);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .rail-button {
    width: 48px;
    height: 48px;
    font-size: 32px;
  }
}

.shop-rail-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.shop-grid {
  width: 100%;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 20px 20px;
  margin: 0;
  scroll-padding-left: 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-grid::-webkit-scrollbar {
  display: none;
}

.shop-link {
  width: min(78vw, 320px);
  min-width: min(78vw, 320px);
  min-height: 390px;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(230px, auto) 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop-thumb {
  width: 100%;
  min-height: 230px;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: #FFFFFF;
}

.shop-thumb img {
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  display: block;
  object-fit: contain;
  object-position: center;
}

.shop-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.74) 58%, rgba(232, 232, 237, 0.62) 100%),
    linear-gradient(135deg, #F5F5F7, #FFFFFF);
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

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

.shop-link:active {
  transform: translateY(-1px) scale(0.99);
}

.shop-link:focus-visible,
.action-link:focus-visible,
.home-link:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.32);
  outline-offset: 4px;
}

.shop-copy {
  min-width: 0;
  padding: 22px 24px 26px;
  display: grid;
  gap: 9px;
  align-self: start;
}

.shop-name {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 820;
  line-height: 1.12;
  word-break: keep-all;
}

.shop-summary {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.detail-card {
  padding: 22px;
  display: grid;
  gap: 20px;
}

.detail-header {
  display: grid;
  gap: 16px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  background: #FFFFFF;
}

.shop-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  min-height: 220px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--text);
  background:
    linear-gradient(135deg, #F5F5F7, #EAF3FF);
  text-align: center;
}

.photo-placeholder span {
  font-size: 18px;
  font-weight: 800;
}

.photo-placeholder small {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

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

.detail-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  word-break: keep-all;
}

.type-badge {
  padding: 7px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 14px;
}

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

.info-box {
  padding: 17px;
  border-radius: 20px;
  background: #F5F5F7;
}

.point-box {
  background: #FFF7ED;
}

.info-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.info-text {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 550;
  word-break: keep-all;
}

.note {
  margin: 0;
  padding: 15px 17px;
  border-radius: 18px;
  color: var(--text);
  background: #F5F5F7;
  font-size: 14px;
  font-weight: 650;
}

.actions {
  display: grid;
  gap: 11px;
}

.action-link,
.home-link {
  min-height: 52px;
  padding: 15px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.action-link:hover {
  background: var(--blue-hover);
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.22);
}

.action-link:active,
.home-link:active {
  transform: scale(0.985);
}

.action-link.reels {
  background: var(--orange);
}

.action-link.reels:hover {
  background: var(--orange-hover);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.2);
}

.home-link {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.home-link:hover {
  background: #F5F5F7;
}

.site-footer {
  margin-top: 22px;
  padding: 18px 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

@media (min-width: 680px) {
  .app-shell {
    padding: 42px 0 52px;
  }

  .home-hero,
  .category-nav,
  .section-heading {
    padding-left: 28px;
    padding-right: 28px;
  }

  .shop-grid {
    gap: 16px;
    padding-left: 28px;
    padding-right: 28px;
    scroll-padding-left: 28px;
  }

  .detail-card {
    padding: 30px;
    border-radius: 30px;
  }
}

@media (min-width: 960px) {
  .app-shell {
    padding-top: 56px;
  }

  .home-hero,
  .category-nav,
  .section-heading {
    padding-left: 0;
    padding-right: 0;
  }

  .home-view {
    max-width: none;
  }

  .home-hero,
  .shop-hub > .category-nav,
  .shop-section > .section-heading,
  .site-footer {
    width: min(980px, calc(100% - 56px));
    margin-left: auto;
    margin-right: auto;
  }

  .shop-grid {
    padding-left: max(28px, calc((100vw - 980px) / 2));
    padding-right: max(28px, calc((100vw - 980px) / 2));
    scroll-padding-left: max(28px, calc((100vw - 980px) / 2));
  }

  .shop-link {
    width: 292px;
    min-width: 292px;
    min-height: 392px;
  }
}
