* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f3ede5;
  --panel: rgba(255, 250, 245, 0.9);
  --panel-soft: rgba(255, 248, 240, 0.92);
  --line: rgba(56, 39, 20, 0.08);
  --text-main: #201813;
  --text-subtle: #7a6658;
  --accent: #7d4b3e;
  --accent-soft: rgba(125, 75, 62, 0.1);
  --accent-deep: #4c2d25;
  --chip: #efe3d4;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(183, 149, 127, 0.18), transparent 26%),
    var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(244, 236, 227, 0.98) 42%, rgba(243, 237, 229, 1) 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + var(--safe-top)) calc(16px + var(--safe-right)) 10px calc(16px + var(--safe-left));
  backdrop-filter: blur(18px);
  background: rgba(243, 237, 229, 0.84);
  border-bottom: 1px solid rgba(56, 39, 20, 0.04);
}

.brand__eyebrow,
.section-kicker {
  color: #9a7e6c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand__title {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-family: "Times New Roman", Georgia, serif;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(43, 30, 18, 0.08);
}

.icon-button--soft {
  background: rgba(255, 255, 255, 0.72);
  font-size: 24px;
}

.layout {
  display: grid;
  gap: 16px;
  padding:
    0
    calc(16px + var(--safe-right))
    calc(108px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}

.hero-card,
.section,
.detail-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(82, 60, 42, 0.08);
}

.hero-card {
  background:
    linear-gradient(180deg, rgba(29, 20, 16, 0.12), rgba(29, 20, 16, 0.12));
  overflow: hidden;
}

.hero-card__image-wrap {
  position: relative;
  min-height: 460px;
}

.hero-card__image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 18px 18px;
  background: linear-gradient(180deg, rgba(19, 15, 12, 0) 0%, rgba(19, 15, 12, 0.8) 38%, rgba(19, 15, 12, 0.92) 100%);
  color: #fff6f0;
}

.meta-tags,
.meta-tags,
.look-card__meta,
.item-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.meta-tags span,
.look-card__meta span,
.item-card__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  color: var(--accent-deep);
}

.pill--soft {
  background: rgba(255, 250, 245, 0.8);
  color: var(--accent-deep);
}

h1 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
}

.hero-card__desc {
  margin-top: 12px;
  color: rgba(255, 244, 236, 0.84);
  font-size: 15px;
  line-height: 1.6;
}

.hero-card__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 238, 226, 0.78);
}

.hero-card__button {
  margin-top: 16px;
  border: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.96);
  color: #201813;
  font-weight: 700;
}

.section {
  padding: 16px;
  background: rgba(255, 250, 245, 0.72);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section__header h2 {
  margin-top: 6px;
  font-size: 28px;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
}

.section__hint {
  color: var(--text-subtle);
  font-size: 13px;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.look-card,
.item-card,
.review-item {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-row {
  margin-bottom: 14px;
}

.filter-chip {
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.84);
  color: var(--accent-deep);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(56, 39, 20, 0.08);
}

.filter-chip.is-active {
  background: var(--accent-deep);
  color: #fff7f0;
  border-color: transparent;
}

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

.look-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.92);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.look-card.is-active {
  border-color: rgba(125, 75, 62, 0.32);
  box-shadow: 0 14px 26px rgba(125, 75, 62, 0.12);
}

.look-card__image-wrap {
  position: relative;
}

.look-card img {
  width: 100%;
  height: 246px;
  object-fit: cover;
}

.look-card__save {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(10px);
  color: #201813;
  font-size: 12px;
  font-weight: 700;
}

.look-card__body {
  padding: 14px;
}

.look-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.look-card__index {
  color: #8f7969;
  font-size: 12px;
  font-weight: 700;
}

.look-card__summary {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.5;
}

.look-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.look-card__focus {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.look-card__open {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: calc(12px + var(--safe-left));
  right: calc(12px + var(--safe-right));
  bottom: 10px;
  width: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 10px calc(10px + var(--safe-bottom));
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(56, 39, 20, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px rgba(82, 60, 42, 0.12);
  z-index: 30;
}

.bottom-nav__item {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #8b7768;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 700;
}

.bottom-nav__item--active {
  color: #fff7ef;
  background: var(--accent-deep);
}

.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.detail-sheet.is-open {
  pointer-events: auto;
}

.detail-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 14, 0.36);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.detail-sheet__panel {
  position: absolute;
  inset: 0;
  max-height: 100dvh;
  overflow-y: auto;
  padding:
    calc(10px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(120px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  border-radius: 0;
  background: linear-gradient(180deg, #fdf8f2 0%, #f6efe7 38%, #f3ede5 100%);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.26s ease;
  will-change: transform;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.detail-sheet.is-open .detail-sheet__backdrop {
  opacity: 1;
}

.detail-sheet.is-open .detail-sheet__panel {
  transform: translate3d(0, 0, 0);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(56, 39, 20, 0.14);
}

.sheet-header {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}

.sheet-header__title h3 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
  font-family: "Times New Roman", Georgia, serif;
}

.detail-sheet.is-dragging .detail-sheet__panel,
.detail-sheet.is-dragging .detail-sheet__backdrop {
  transition: none;
}

.save-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff7ef;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

.sheet-image {
  position: relative;
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(56, 39, 20, 0.08);
}

.sheet-image img {
  width: 100%;
  height: 472px;
  object-fit: cover;
}

.hotspot {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.96);
  color: #201813;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 13px;
}

.hotspot.is-active {
  background: var(--accent-deep);
  color: #fff7ef;
  box-shadow: 0 12px 26px rgba(76, 45, 37, 0.22);
}

.hotspot--bag {
  top: 41%;
  right: 16%;
}

.hotspot--outer {
  top: 18%;
  left: 38%;
}

.hotspot--shoe {
  bottom: 14%;
  left: 44%;
}

.sheet-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.detail-card {
  padding: 16px;
  background: rgba(255, 250, 245, 0.88);
}

.detail-card__top,
.detail-card__section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-card__count {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-card__desc {
  margin-top: 12px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.6;
}

.item-list,
.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.item-card,
.review-item {
  border-radius: 18px;
  background: rgba(250, 244, 237, 0.9);
  padding: 14px;
  border: 1px solid rgba(56, 39, 20, 0.08);
}

.item-card.is-active {
  border-color: rgba(125, 75, 62, 0.26);
  box-shadow: 0 10px 22px rgba(125, 75, 62, 0.08);
}

.item-card strong,
.review-item strong {
  display: block;
  font-size: 15px;
}

.item-card p,
.review-item p {
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
  }

  .app-shell {
    max-width: 430px;
    box-shadow: 0 0 0 1px rgba(56, 39, 20, 0.06), 0 20px 60px rgba(82, 60, 42, 0.12);
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(398px, calc(100vw - 24px));
    transform: translateX(-50%);
  }
}

@media (min-width: 431px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
    pointer-events: none;
  }
}
