/* a doce infância — 20260721-v3 */
:root {
  --paper: #f7f4ef;
  --surface: #fffdfa;
  --soft: #ece8e1;
  --line: #ded9d0;
  --ink: #24211e;
  --muted: #777169;
  --accent: #d56a3a;
  --accent-soft: #f2d8c6;
  --glow: rgba(213, 106, 58, 0.22);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 8% -10%, var(--accent-soft), transparent 48%),
    radial-gradient(900px 420px at 95% 0%, rgba(255, 255, 255, 0.75), transparent 52%),
    linear-gradient(180deg, #f8f4ed 0%, var(--paper) 38%, #f5efe6 100%);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(36, 33, 30, 0.09);
  background: var(--paper);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.app-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: max(10px, env(safe-area-inset-top)) 12px 9px;
  gap: 8px;
}

.brand {
  display: grid;
  min-width: 0;
  line-height: 1;
}

.brand > span {
  overflow: visible;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 5.6vw, 27px);
  font-weight: 700;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand small {
  overflow: visible;
  max-width: min(48vw, 290px);
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: lowercase;
  white-space: normal;
}

.brand-dot {
  color: var(--accent);
}

.app-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.75);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: border-color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.app-action:active {
  transform: scale(0.96);
}

.cart-trigger {
  gap: 8px;
}

.cart-trigger strong {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
}

.cart-trigger.is-bumped strong {
  animation: cart-bump 580ms cubic-bezier(.2, .9, .25, 1.25);
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-7deg); background: var(--accent); }
  70% { transform: scale(.9) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 11px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.category-nav::-webkit-scrollbar,
.category-highlights-track::-webkit-scrollbar,
.media-track::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 15px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

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

.category-nav button.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

main {
  width: 100%;
}

.catalog-section {
  width: min(100%, 1320px);
  min-height: 70vh;
  margin: 0 auto;
  padding: 22px 12px 60px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 4px 18px;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-heading h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

#results-count {
  flex: 0 0 auto;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.category-highlights {
  margin: 0 -12px 22px;
}

.category-highlights-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px 10px;
  gap: 12px;
}

.category-highlights-heading h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.category-highlights-heading span {
  color: var(--muted);
  font-size: 10px;
}

.category-highlights-track {
  display: flex;
  overflow-x: auto;
  padding: 0 12px 4px;
  gap: 10px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-highlight {
  display: grid;
  flex: 0 0 min(38vw, 148px);
  min-width: 112px;
  padding: 0;
  scroll-snap-align: start;
  background: transparent;
  text-align: left;
  gap: 5px;
}

.category-highlight-media {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(36, 33, 30, 0.08);
  border-radius: 18px;
  background: var(--soft);
}

.category-highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.category-highlight:active .category-highlight-media img {
  transform: scale(0.975);
}

.category-highlight strong {
  overflow: hidden;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-highlight > span:last-child {
  padding: 0 2px;
  color: var(--muted);
  font-size: 9px;
}
.catalog-toolbar {
  display: grid;
  scroll-margin-top: 132px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 16px;
}

.catalog-search,
.sort-control {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.catalog-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--muted);
  text-align: left;
}

.catalog-search span {
  font-size: 13px;
  font-weight: 600;
}

.catalog-search b {
  color: var(--ink);
  font-size: 21px;
  font-weight: 400;
}

.catalog-search .icon {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.sort-control {
  position: relative;
  display: grid;
  min-width: 112px;
  padding: 7px 10px 5px;
}

.sort-control span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sort-control select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.active-query {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.active-query button {
  padding: 4px;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 10px;
}

.product-card {
  min-width: 0;
  animation: card-in 360ms both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(36, 33, 30, 0.08);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 26px rgba(36, 33, 30, 0.1);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:active .card-media {
  transform: scale(0.987);
}

.product-card:hover .card-media {
  box-shadow: 0 16px 30px rgba(36, 33, 30, 0.13);
}

.card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media-link img,
.card-media-link .placeholder-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 54px);
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-quick {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  min-width: 46px;
  min-height: 44px;
  padding: 0 12px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 4px 16px rgba(36, 33, 30, 0.2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.card-quick:active {
  background: var(--accent);
  transform: scale(0.88);
}

.card-quick:hover {
  box-shadow: 0 8px 18px var(--glow);
}

.card-quick-add {
  position: absolute;
  left: 9px;
  right: 64px;
  bottom: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 33, 30, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.94);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.card-quick-add:hover {
  border-color: rgba(213, 106, 58, 0.55);
  background: #fff8f4;
}

.card-quick-add:active {
  transform: scale(0.97);
}

.card-quick-add.is-disabled {
  opacity: 0.55;
}

.product-card-body {
  padding: 10px 3px 0;
}

.product-meta {
  display: flex;
  gap: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta span + span::before {
  margin-right: 5px;
  content: "·";
}

.product-card h3 {
  min-height: 2.6em;
  margin: 6px 0 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.price-block {
  display: grid;
  align-content: start;
  gap: 2px;
}

.compare-price {
  color: var(--muted);
  font-size: 10px;
  text-decoration: line-through;
}

.regular-price {
  font-size: 15px;
  letter-spacing: -0.025em;
}

.installments {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.pix-price {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.pix-price strong {
  color: var(--ink);
  font-size: 12px;
}

.placeholder-art {
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(145deg, #e8ded2, #f3ece4 55%, #ddd0c2);
}

.placeholder-art::before,
.placeholder-art::after {
  position: absolute;
  border: 1px solid rgba(36, 33, 30, 0.12);
  border-radius: 50%;
  content: "";
}

.placeholder-art::before {
  top: -12%;
  right: -22%;
  width: 80%;
  aspect-ratio: 1;
}

.placeholder-art::after {
  top: 15%;
  left: 12%;
  width: 42%;
  aspect-ratio: 1;
}

.placeholder-art span,
.placeholder-art strong {
  position: relative;
  z-index: 1;
}

.placeholder-art span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.placeholder-art strong {
  max-width: 13ch;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.02;
}

.loading-card {
  aspect-ratio: 4 / 6.3;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--soft) 30%, #f4f0ea 50%, var(--soft) 70%);
  background-size: 220% 100%;
  animation: loading 1.3s linear infinite;
}

@keyframes loading {
  to { background-position-x: -220%; }
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.empty-state p {
  margin: 9px auto 20px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button,
.cart-empty button {
  padding: 12px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.site-footer {
  display: grid;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 26px 0 calc(40px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links button {
  padding: 0;
  color: inherit;
  background: transparent;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop {
  background: rgba(25, 22, 20, 0.45);
}

dialog[open] {
  animation: screen-in 230ms ease-out both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog-bar {
  position: sticky;
  z-index: 6;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dialog-bar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  font-size: 21px;
}

.dialog-bar h2 {
  margin: 0;
  font-size: 15px;
  text-align: center;
}

.search-dialog,
.product-dialog,
.cart-dialog {
  inset: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
}

.search-shell {
  min-height: 100%;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  gap: 10px;
}

.search-field > span {
  color: var(--muted);
  font-size: 22px;
}

.search-field input {
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-field button {
  padding: 8px 0 8px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.search-hint {
  margin: 0 18px 12px;
  color: var(--muted);
  font-size: 11px;
}

.search-results {
  padding: 0 12px 40px;
}

.search-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  gap: 12px;
  text-align: left;
}

.search-result img,
.search-result-placeholder {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--soft);
  object-fit: cover;
}

.search-result div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.search-result small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.search-result strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result > span:last-child {
  font-size: 12px;
  font-weight: 750;
}

.search-no-results {
  padding: 40px 8px;
  color: var(--muted);
  text-align: center;
}

.product-dialog {
  overflow-y: auto;
}

.dialog-close {
  position: fixed;
  z-index: 10;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(36, 33, 30, 0.08);
  border-radius: 999px;
  background: var(--surface);
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
}

.product-detail,
.detail-layout {
  min-height: 100%;
}

.media-gallery {
  position: relative;
  background: var(--soft);
}

.media-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.media-slide {
  flex: 0 0 100%;
  height: min(116vw, 70vh);
  scroll-snap-align: start;
}

.media-slide img,
.media-slide .placeholder-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-thumbs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.media-thumb {
  overflow: hidden;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--surface);
}

.media-thumb.is-active {
  border-color: var(--ink);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-status {
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.9);
  font-size: 10px;
  font-weight: 750;
}

.detail-info {
  padding: 22px 18px calc(28px + var(--safe-bottom));
}

.detail-meta,
.detail-brand {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-info h2 {
  margin: 8px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.detail-brand {
  text-transform: none;
}

.detail-price {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price .regular-price {
  font-size: 23px;
}

.detail-price .installments {
  font-size: 12px;
}

.detail-price .pix-price {
  font-size: 11px;
}

.detail-price .pix-price strong {
  font-size: 16px;
}

.detail-description {
  margin: 0 0 24px;
  color: #5f5a54;
  font-size: 14px;
  line-height: 1.6;
}

.size-picker {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  transition: background-color 160ms, box-shadow 160ms;
}

.size-picker legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
}

.size-picker legend span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.size-option {
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 750;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.size-option:active {
  transform: scale(0.94);
}

.size-option.is-selected {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.size-option.is-unavailable {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--muted) 70%, #000);
  background: color-mix(in srgb, var(--surface) 80%, #ddd);
  border-color: color-mix(in srgb, var(--line) 78%, #999);
}

.size-option.is-unavailable.is-selected {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, #ddd);
  border-color: color-mix(in srgb, var(--line) 78%, #999);
}

.size-picker.is-invalid {
  margin-right: -10px;
  margin-left: -10px;
  padding: 12px 10px 10px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 48%, transparent);
  animation: size-attention 300ms ease-out;
}

@keyframes size-attention {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(4px); }
}

.size-picker.is-invalid legend span,
.size-error {
  color: #a94025;
}

.size-error {
  margin: 9px 0 0;
  font-size: 11px;
  font-weight: 750;
}

.detail-actions {
  display: grid;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 750;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px 38px 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.quantity-stepper button,
.quantity-stepper output {
  display: grid;
  min-height: 38px;
  place-items: center;
  background: transparent;
  font-size: 14px;
}

.quantity-stepper output {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
}

.add-to-cart,
.whatsapp-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border-radius: 15px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 750;
  transition: color 180ms ease, background-color 180ms ease, transform 120ms ease;
}

.add-to-cart:active,
.whatsapp-checkout:active {
  transform: scale(0.985);
}

.add-to-cart.is-added {
  color: #173d28;
  background: #cfe8d8;
  animation: added-confirmation 480ms cubic-bezier(.2, .8, .2, 1);
}

.add-to-cart.is-added strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #197b47;
}

@keyframes added-confirmation {
  0% { transform: scale(.98); }
  45% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.add-to-cart strong {
  font-size: 12px;
}

.detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 14px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 13px;
}

.cart-item-media {
  overflow: hidden;
  width: 84px;
  aspect-ratio: 4 / 5;
  border-radius: 13px;
  background: var(--soft);
}

.cart-item-media img,
.cart-item-media .placeholder-art {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cart-item h3 {
  margin: 2px 0 5px;
  font-size: 13px;
  line-height: 1.25;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 750;
}

.cart-item-size {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.cart-item-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}

.cart-item-actions .quantity-stepper {
  grid-template-columns: repeat(3, 31px);
}

.cart-item-actions .quantity-stepper button,
.cart-item-actions .quantity-stepper output {
  min-height: 31px;
}

.remove-item {
  padding: 6px 0;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
}

.cart-empty {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  padding: 40px 20px;
  text-align: center;
}

.cart-empty strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.cart-empty p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.cart-summary {
  flex: 0 0 auto;
  max-height: 62dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cart-total-line,
.cart-pix-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total-line {
  font-size: 15px;
  font-weight: 750;
}

.cart-pix-line {
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.cart-pix-line strong {
  color: var(--ink);
}

.whatsapp-checkout {
  background: #197b47;
}

.cart-guidance {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.continue-shopping {
  width: 100%;
  min-height: 50px;
  margin-bottom: 8px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.copy-order {
  width: 100%;
  padding: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.cart-summary small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 16px;
  bottom: calc(18px + var(--safe-bottom));
  left: 16px;
  max-width: 360px;
  margin: auto;
  padding: 13px 16px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(36, 33, 30, 0.25);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.toast:not([hidden]) {
  animation: toast-in 300ms cubic-bezier(.2, .85, .3, 1) both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

@media (max-height: 520px) {
  .cart-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-items {
    flex: 0 0 auto;
    overflow: visible;
  }

  .cart-summary {
    max-height: none;
    overflow: visible;
  }
}
@media (min-width: 600px) {
  .app-bar,
  .category-nav {
    width: min(100%, 1320px);
    margin: 0 auto;
  }

  .catalog-section {
    padding: 30px 20px 80px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 16px;
  }

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

  .site-footer {
    padding-bottom: 40px;
  }
}

@media (min-width: 900px) {
  .app-bar {
    min-height: 78px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .category-nav {
    padding-right: 24px;
    padding-left: 24px;
  }

  .catalog-section {
    padding: 44px 24px 100px;
  }

  .catalog-heading {
    padding-bottom: 24px;
  }

  .category-highlights {
    margin-right: 0;
    margin-left: 0;
  }

  .category-highlights-heading {
    padding-right: 0;
    padding-left: 0;
  }

  .category-highlights-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    padding-right: 0;
    padding-left: 0;
  }

  .category-highlight {
    min-width: 0;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(280px, 420px) 150px;
    justify-content: end;
    margin-bottom: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 20px;
  }

  .card-quick {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms, transform 180ms;
  }

  .product-card:hover .card-quick,
  .card-quick:focus-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .product-card h3 {
    min-height: auto;
    font-size: 15px;
  }
  .search-dialog {
    inset: 50% auto auto 50%;
    width: min(620px, calc(100% - 40px));
    height: min(720px, calc(100dvh - 60px));
    margin: 0;
    border-radius: 24px;
    transform: translate(-50%, -50%);
  }

  .search-dialog[open] {
    animation: desktop-modal-in 180ms ease-out both;
  }

  .product-dialog {
    inset: 50% auto auto 50%;
    width: min(1120px, calc(100% - 48px));
    height: min(820px, calc(100dvh - 48px));
    margin: 0;
    border-radius: 26px;
    transform: translate(-50%, -50%);
  }

  .product-dialog[open] {
    animation: desktop-modal-in 180ms ease-out both;
  }

  @keyframes desktop-modal-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.99); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  .detail-layout {
    display: grid;
    grid-template-columns: 56% 44%;
  }

  .media-gallery {
    min-height: 100%;
  }

  .media-slide {
    height: min(820px, calc(100dvh - 48px));
  }

  .detail-info {
    overflow-y: auto;
    padding: 70px 42px 42px;
  }

  .cart-dialog {
    inset: 0 0 0 auto;
    width: min(460px, 100%);
    margin: 0;
  }

  .cart-dialog[open] {
    animation: drawer-in 220ms ease-out both;
  }

  @keyframes drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
}

@media (min-width: 1250px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* v3: vitrine editorial e navegação */
.icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  background: rgba(247, 244, 239, 0.96);
}

.app-bar {
  grid-template-columns: minmax(88px, 1fr) minmax(0, auto) minmax(88px, 1fr);
  width: min(100%, 1520px);
  min-height: 72px;
  margin: 0 auto;
  padding: max(9px, env(safe-area-inset-top)) 10px 8px;
}

.app-bar-side {
  display: flex;
  min-width: 0;
  align-items: center;
}

.app-bar-start {
  justify-content: flex-start;
}

.app-actions {
  justify-content: flex-end;
  gap: 2px;
}

.icon-button {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  transition: background-color 160ms ease, transform 120ms ease;
}

.icon-button:hover {
  background: rgba(36, 33, 30, 0.055);
}

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

.brand {
  justify-items: center;
  max-width: min(42vw, 240px);
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  display: flex;
  width: 100%;
  height: 34px;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.brand-logo > img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.brand-logo #brand-name {
  overflow: hidden;
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 5vw, 25px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: none;
}

.cart-trigger strong {
  position: absolute;
  top: 3px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--paper);
  font-size: 9px;
}

.catalog-section {
  width: min(100%, 1520px);
  padding-top: 24px;
}

.catalog-toolbar {
  scroll-margin-top: 92px;
}

.banner-showcase {
  margin: 0 0 24px;
}

.banner-track {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.banner-track::-webkit-scrollbar,
.category-circles::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 100%;
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid rgba(36, 33, 30, 0.08);
  border-radius: 22px;
  color: #fff;
  background: var(--soft);
  isolation: isolate;
}

.banner-slide picture,
.banner-slide img {
  width: 100%;
  height: 100%;
}

.banner-slide img {
  object-fit: cover;
}

.banner-slide.has-copy::after {
  position: absolute;
  z-index: 1;
  inset: 32% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(31, 24, 20, 0.68));
  content: "";
  pointer-events: none;
}

.banner-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 18px rgba(23, 18, 15, 0.28);
}

.banner-copy > strong {
  max-width: 24ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 7vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.banner-subtitle {
  max-width: 42ch;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.banner-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.94);
  font-size: 10px;
  font-weight: 800;
  gap: 6px;
  text-shadow: none;
}

.banner-action .icon {
  width: 15px;
  height: 15px;
}

.banner-dots {
  display: flex;
  justify-content: center;
  min-height: 18px;
  padding-top: 9px;
  gap: 5px;
}

.banner-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: width 180ms ease, background-color 180ms ease;
}

.banner-dots span.is-active {
  width: 18px;
  background: var(--ink);
}

.category-showcase {
  margin: 0 -12px 24px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px 12px;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.section-heading span {
  color: var(--muted);
  font-size: 10px;
}

.category-circles {
  display: flex;
  overflow-x: auto;
  padding: 0 12px 5px;
  gap: 12px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-circle {
  display: grid;
  flex: 0 0 74px;
  min-width: 0;
  padding: 0;
  scroll-snap-align: start;
  justify-items: center;
  background: transparent;
  gap: 7px;
}

.category-avatar {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(36, 33, 30, 0.06);
  transition: border-color 160ms ease, transform 160ms ease;
}

.category-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-avatar-all {
  color: var(--muted);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.category-avatar-all .icon {
  width: 23px;
  height: 23px;
}

.category-initial {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.category-circle strong {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-circle.is-active .category-avatar {
  border-color: var(--ink);
}

.category-circle:active .category-avatar {
  transform: scale(0.94);
}

.product-loader {
  position: relative;
  display: grid;
  min-height: 84px;
  place-items: center;
  padding: 22px 0 0;
}

.product-load-sentinel {
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.load-more {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
}

.menu-dialog {
  inset: 0 auto 0 0;
  width: min(390px, 92vw);
  height: 100dvh;
  margin: 0;
  background: var(--paper);
}

.menu-dialog[open] {
  animation: menu-in 220ms ease-out both;
}

@keyframes menu-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.menu-drawer {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.menu-navigation {
  overflow-y: auto;
  flex: 1;
  padding: 10px 14px calc(28px + var(--safe-bottom));
  overscroll-behavior: contain;
}

.menu-groups {
  display: grid;
  gap: 20px;
}

.menu-group {
  display: grid;
  gap: 2px;
}

.menu-group + .menu-group {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.menu-label {
  margin: 0;
  padding: 0 12px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.menu-link,
.menu-category {
  display: grid;
  width: 100%;
  min-height: 54px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 14px;
  background: transparent;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 8px;
  text-align: left;
}

.menu-link:hover,
.menu-category:hover,
.menu-category.is-active {
  background: rgba(36, 33, 30, 0.05);
}

.menu-link > .icon:first-child {
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

.menu-link > .icon:last-child,
.menu-category > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.menu-link span,
.menu-category > span:nth-child(2) {
  overflow: hidden;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.menu-category-avatar {
  justify-self: center;
  width: 38px;
  height: 38px;
  border-width: 1px;
}

.menu-category-avatar .category-initial {
  font-size: 16px;
}

@media (min-width: 900px) {
  /* Keep hamburger avatars compact on desktop; showcase circles are larger. */
  .menu-category .menu-category-avatar {
    width: 38px;
    height: 38px;
  }
}

.search-field > .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.dialog-bar button {
  display: grid;
  place-items: center;
}

.dialog-bar button .icon,
.dialog-close .icon {
  width: 20px;
  height: 20px;
}

.dialog-close {
  gap: 5px;
}

.whatsapp-checkout .icon {
  width: 17px;
  height: 17px;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 9px 8px 16px;
  gap: 18px;
  text-align: left;
}

.toast > span {
  min-width: 0;
}

.toast button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 850;
}

@media (min-width: 600px) {
  .app-bar {
    width: min(100%, 1520px);
  }

  .catalog-section {
    width: min(100%, 1520px);
  }

  .category-showcase {
    margin-right: -20px;
    margin-left: -20px;
  }

  .category-circles {
    padding-right: 20px;
    padding-left: 20px;
    scroll-padding-inline: 20px;
  }
}

@media (min-width: 900px) {
  .app-bar {
    min-height: 78px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-logo > img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
  }

  .brand {
    max-width: 320px;
  }

  .brand-logo {
    height: 42px;
  }

  .menu-category {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
  }

  .menu-category > span:nth-child(2) {
    padding-left: 2px;
  }

  .catalog-section {
    padding-top: 38px;
  }

  .banner-slide {
    aspect-ratio: 3 / 1;
    border-radius: 26px;
  }

  .banner-copy {
    right: 34px;
    bottom: 30px;
    left: 34px;
  }

  .banner-copy > strong {
    font-size: clamp(34px, 3.5vw, 58px);
  }

  .banner-subtitle {
    font-size: 13px;
  }

  .category-showcase {
    margin-right: 0;
    margin-left: 0;
  }

  .section-heading {
    padding-right: 0;
    padding-left: 0;
  }

  .category-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 92px));
    justify-content: center;
    overflow: visible;
    padding-right: 0;
    padding-left: 0;
    gap: 18px 22px;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .category-circle {
    width: 92px;
    min-width: 92px;
    gap: 8px;
  }

  .category-avatar {
    width: 84px;
    height: 84px;
  }

  .category-circle strong {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1480px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 36px 18px;
  }
}
/* v3: foco de teclado */
.icon-button:focus-visible,
.catalog-search:focus-visible,
.load-more:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sort-control:focus-within,
.search-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(36, 33, 30, 0.12);
}

.sort-control select:focus-visible,
.search-field input:focus-visible {
  outline: 0;
}

.category-circle:focus-visible {
  outline: 0;
}

.category-circle:focus-visible .category-avatar {
  border-color: var(--ink);
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 5px var(--ink);
}

.menu-link:focus-visible,
.menu-category:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  background: rgba(36, 33, 30, 0.06);
}

.banner-slide:focus-visible {
  outline: 3px solid var(--surface);
  outline-offset: -5px;
  box-shadow: inset 0 0 0 7px var(--ink);
}

#inicio:focus {
  outline: none;
}

/* v3.1: escala responsiva e ações persistentes */
.icon-button {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
}

.icon-button .icon {
  width: 26px;
  height: 26px;
}

.cart-trigger .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.cart-trigger strong {
  top: 1px;
  right: -1px;
  min-width: 20px;
  height: 20px;
  font-size: 10px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.back-to-top {
  position: fixed;
  z-index: 32;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + var(--safe-bottom));
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(36, 33, 30, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 8px 24px rgba(36, 33, 30, 0.16);
  transition: transform 150ms ease, background-color 150ms ease;
}

.back-to-top .icon {
  width: 21px;
  height: 21px;
}

.back-to-top:not([hidden]) {
  animation: back-to-top-in 180ms ease-out both;
}

@keyframes back-to-top-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.back-to-top:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: scale(0.94);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .app-bar,
  .catalog-section {
    width: min(100%, 1280px);
  }

  .app-bar {
    min-height: 76px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .catalog-section {
    padding: 34px 28px 96px;
  }

  .catalog-heading {
    padding-bottom: 22px;
  }

  .catalog-heading h1 {
    font-size: 40px;
  }

  .banner-showcase {
    max-width: 1080px;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
  }

  .banner-slide {
    aspect-ratio: 3 / 1;
    border-radius: 22px;
  }

  .banner-copy {
    right: 28px;
    bottom: 26px;
    left: 28px;
  }

  .banner-copy > strong {
    font-size: clamp(34px, 3vw, 46px);
  }

  .category-showcase {
    max-width: 1120px;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
  }

  .section-heading span {
    display: none;
  }

  .category-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, 92px);
    justify-content: center;
    overflow: visible;
    gap: 18px 24px;
    scroll-snap-type: none;
  }

  .category-circle {
    width: 92px;
    min-width: 92px;
    gap: 8px;
  }

  .category-avatar {
    width: 84px;
    height: 84px;
  }

  .category-circle strong {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(300px, 400px) 150px;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
  }

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

  .product-meta {
    font-size: 10px;
  }

  .regular-price {
    font-size: 16px;
  }

  .installments {
    font-size: 11px;
  }

  .pix-price {
    font-size: 10px;
  }

  .product-dialog {
    width: min(1040px, calc(100% - 48px));
  }

  .cart-dialog {
    width: min(480px, 100%);
  }

  .cart-items {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
  }

  .cart-item-media {
    width: 92px;
  }

  .cart-item h3 {
    font-size: 14px;
  }

  .cart-summary {
    padding: 19px 20px calc(19px + var(--safe-bottom));
  }

  .cart-total-line {
    font-size: 17px;
  }

  .back-to-top {
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1480px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px 20px;
  }
}
