:root {
  --page: #fbfdfd;        /* Clinical White */
  --panel: #ffffff;
  --ink: #234a47;         /* corpo de texto — teal escuro */
  --ink-strong: #13312f;  /* Ink — titulos */
  --muted: #7c8c8a;       /* Slate */
  --line: #dde9e6;        /* hairline com leve teal */
  --teal: #127d80;        /* Deep Teal — acento primario */
  --teal-deep: #0c5c5e;   /* Teal Deep */
  --mint: #76d2ab;        /* Mint */
  --aqua: #e9f4f1;        /* Aqua */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sidebar: 286px;
  font-family: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--sidebar);
  align-items: center;
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 253, 0.95);
  backdrop-filter: blur(16px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 210px;
  margin-left: 46px;
  color: var(--ink-strong);
}

.search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid var(--ink-strong);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-strong);
  transform: rotate(-45deg);
  transform-origin: center;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-field input::placeholder {
  color: #aebbb8;
}

.store-name {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: clamp(205px, 24vw, 290px);
  max-width: 36vw;
  height: 54px;
  overflow: visible;
  text-decoration: none;
}

.store-name img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.catalog-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: calc(100vh - 92px);
}

.categories {
  position: sticky;
  top: 92px;
  height: calc(100vh - 92px);
  overflow: auto;
  padding: 22px 26px 48px 46px;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.categories h1 {
  margin: 0 0 20px;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1.2;
}

#categoryList {
  display: grid;
  gap: 4px;
}

.category-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 31px;
  padding: 6px 0 6px 30px;
  border: 0;
  color: var(--ink-strong);
  background: transparent;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.25;
  cursor: pointer;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.category-button:hover {
  color: var(--teal);
}

.category-button:active {
  transform: scale(0.985);
}

.category-button.is-active {
  font-weight: 800;
}

.category-button.is-active::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 17px;
  height: 9px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.catalog {
  padding: 22px 42px 64px;
  min-width: 0;
}

.catalog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  max-width: 900px;
  margin-bottom: 24px;
}

.catalog h2 {
  margin: 0;
  color: var(--teal-deep);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sort-control select {
  height: 34px;
  padding: 0 32px 0 10px;
  color: var(--ink-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-list {
  display: grid;
  gap: 58px;
}

.product-row {
  display: grid;
  grid-template-columns: 250px minmax(280px, 520px);
  gap: 38px;
  align-items: center;
  max-width: 900px;
  min-height: 174px;
  outline: none;
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 174px;
}

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

.product-copy {
  padding-top: 2px;
}

.product-copy h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.product-category {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-price {
  display: block;
  color: var(--teal);
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.empty-state {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin-top: 52px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink-strong);
  font-size: 18px;
}

@media (max-width: 820px) {
  :root {
    --sidebar: 100%;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
    padding: 18px 20px;
  }

  .store-name {
    grid-row: 1;
    width: min(280px, 82vw);
    max-width: 86vw;
    height: 54px;
  }

  .store-name img {
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .search-field {
    grid-row: 2;
    width: 100%;
    margin-left: 0;
  }

  .catalog-shell {
    display: block;
  }

  .categories {
    position: static;
    height: auto;
    padding: 22px 20px 10px;
  }

  #categoryList {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .category-button {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 0 8px 28px;
    white-space: nowrap;
  }

  .catalog {
    padding: 14px 20px 48px;
  }

  .catalog-head {
    display: grid;
  }

  .product-list {
    gap: 32px;
  }

  .product-row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    min-height: 132px;
  }

  .product-media {
    width: 128px;
    height: 112px;
  }

  .product-copy h3 {
    font-size: 14px;
  }

  .product-price {
    font-size: 19px;
  }

}
