*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg-page);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* 터치·호버 시 부드럽게 */
button,
.btn-wide,
.search-field,
.search-cat-tab,
.search-filter-chip,
.search-sort-btn,
.search-compare-cta,
.car-card,
.car-card__fav,
.car-card__cta,
.filter-chip,
.chip,
.icon-btn,
.bottom-nav__item,
.trim-select,
.feature-card,
.card-clip,
.review-card,
.price-card,
.home-pick-card,
.home-show-card,
.icon-menu-item {
  transition:
    border-color 0.22s var(--ease-out-soft),
    box-shadow 0.22s var(--ease-out-soft),
    background-color 0.22s var(--ease-out-soft),
    color 0.18s ease;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-shell {
  max-width: var(--app-max-w);
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--color-bg);
  position: relative;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 770px) {
  .app-shell {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

.app-shell::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #2563ff, #93c5fd);
  width: 100%;
}

.app-main {
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

.view {
  display: none;
  min-height: calc(100dvh - var(--bottom-nav-h) - 24px);
}

.view.is-active {
  display: block;
}

.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;
}

.h-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-inline: calc(-1 * var(--space-page-x));
  padding-inline: var(--space-page-x);
}

.h-scroll::-webkit-scrollbar {
  height: 0;
}

.snap-start {
  scroll-snap-align: start;
  flex-shrink: 0;
}
