:root {
  /* Paleta vermelha com inspiração sutil na estética chinesa (vermelho laca + dourado + porcelana clara) */
  --bg-page: #fff9f5;
  --bg-surface: #ffffff;
  --bg-soft: #fef2ee;
  --bg-blank-photo: #faf3ed;
  --bg-gold-soft: #fef3c7;

  --ink-primary: #1f1414;
  --ink-secondary: #5c4747;
  --ink-muted: #7f6868;

  --red-primary: #b91c1c;
  --red-deep: #7f1d1d;
  --red-bright: #dc2626;
  --red-hover: #991b1b;
  --red-light: #fee2e2;

  --gold-primary: #b45309;
  --gold-bright: #f59e0b;
  --gold-light: #fde68a;

  --border-subtle: #f1ded8;
  --border-strong: #e4c5bc;

  --shadow-sm: 0 2px 8px rgba(127, 29, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(127, 29, 29, 0.1);
  --shadow-lg: 0 20px 50px rgba(31, 20, 20, 0.28);

  --font-display: "Rubik", "Arial Black", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-primary);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Barra superior discreta apenas com endereço */
.info-bar {
  background-color: var(--red-deep);
  color: #fef3c7;
  font-size: 0.78rem;
  font-weight: 600;
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}

.info-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.info-bar__item .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
  flex-shrink: 0;
}

/* Cabeçalho vermelho imperial com detalhes dourados e padrão geométrico sutil */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 92% 18%, rgba(251, 191, 36, 0.18), transparent 36%),
    repeating-linear-gradient(
      45deg,
      rgba(253, 230, 138, 0.035) 0px,
      rgba(253, 230, 138, 0.035) 2px,
      transparent 2px,
      transparent 16px
    ),
    linear-gradient(135deg, #991b1b 0%, #b91c1c 58%, #7f1d1d 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--gold-bright);
  padding-block: 1.35rem 1.2rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.hero__eyebrow {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.85rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(127, 29, 29, 0.75);
}

.hero__slogan {
  margin: 0.15rem 0 0;
  color: rgba(255, 249, 245, 0.9);
  font-size: 0.94rem;
  max-width: 60ch;
}

.hero__subline {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Barra fixa de busca e categorias */
.controls-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 249, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 0.75rem;
}

.controls__inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box__icon {
  position: absolute;
  left: 0.95rem;
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-box__input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.72rem 2.6rem 0.72rem 2.65rem;
  font-size: 0.95rem;
  color: var(--ink-primary);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box__input::placeholder {
  color: var(--ink-muted);
}

.search-box__input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.16);
}

.search-box__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-box__clear {
  position: absolute;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background-color: var(--bg-soft);
  color: var(--red-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-box__clear[hidden] {
  display: none;
}

.search-box__clear svg {
  width: 15px;
  height: 15px;
}

.category-nav {
  margin-inline: -1rem;
  padding-inline: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-list {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0;
  display: flex;
  gap: 0.5rem;
  width: max-content;
}

.category-pill {
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.category-pill:hover {
  border-color: var(--red-primary);
  background-color: var(--bg-soft);
}

.category-pill.is-active {
  background-color: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
}

.category-pill__count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  background-color: rgba(127, 29, 29, 0.09);
  padding: 0.08rem 0.42rem;
  border-radius: var(--radius-pill);
}

.category-pill.is-active .category-pill__count {
  background-color: rgba(254, 243, 199, 0.25);
  color: #fef3c7;
}

/* Área principal */
.main-content {
  flex: 1;
  padding-block: 1.15rem 2.75rem;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.results-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--red-deep);
}

.results-header__count {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Grid de produtos: mobile-first cards horizontais compactos */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.product-card {
  width: 100%;
  text-align: left;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.85rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-primary);
}

.product-card:focus-visible {
  outline: 3px solid var(--red-primary);
  outline-offset: 2px;
}

.product-card.is-unavailable {
  opacity: 0.65;
  background-color: #fcf7f5;
}

.product-card__media {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-blank-photo);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.product-card__media--contain {
  background-color: #ffffff;
}

.product-card__media--blank {
  background-color: var(--bg-blank-photo);
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card__media--contain .product-card__img {
  object-fit: contain;
  background-color: #ffffff;
  padding: 0.45rem;
}

.product-card__img--secondary {
  transform: translateX(100%);
}

.product-card:hover .product-card__img--has-hover,
.product-card:focus-visible .product-card__img--has-hover {
  transform: translateX(-100%);
}

.product-card:hover .product-card__img--secondary,
.product-card:focus-visible .product-card__img--secondary {
  transform: translateX(0);
}

.product-card__badge {
  position: absolute;
  z-index: 2;
  left: 0.45rem;
  top: 0.45rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--red-deep);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(185, 28, 28, 0.16);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-card__status-badge {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  background-color: #292524;
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
}

.product-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.22;
  color: var(--ink-primary);
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--red-primary);
  white-space: nowrap;
}

.product-card.is-unavailable .product-card__price {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.product-card__summary {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.product-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-primary);
  white-space: nowrap;
}

/* Tags informativas */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.52rem;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.tag--red {
  background-color: var(--red-light);
  color: var(--red-deep);
}

.tag--gold {
  background-color: var(--bg-gold-soft);
  color: #92400e;
}

.tag--neutral {
  background-color: #f4ece9;
  color: #4a3b3b;
}

/* Estados vazio / erro */
.empty-state {
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.25rem;
  margin-top: 0.5rem;
}

.empty-state[hidden] {
  display: none;
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.empty-state__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.empty-state__text {
  margin: 0 auto 1.15rem;
  max-width: 42ch;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.btn-secondary {
  border: 1.5px solid var(--red-primary);
  background-color: var(--red-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--red-hover);
}

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn-outline--danger:hover {
  border-color: #991b1b;
  background-color: var(--red-light);
}

/* Rodapé discreto */
.site-footer {
  background-color: #f6e9e4;
  border-top: 2px solid rgba(185, 28, 28, 0.16);
  padding-block: 1.35rem;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--red-primary);
}

.site-footer__note,
.site-footer__address {
  margin: 0.15rem 0 0;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Modal (desktop) e Gaveta deslizante (mobile) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 20, 20, 0.58);
  backdrop-filter: blur(3px);
}

.modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92vh;
  background-color: var(--bg-surface);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-visible .modal-sheet {
  transform: translateY(0);
}

.modal-sheet__handle {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0.55rem 0 0.2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent);
}

.modal-sheet__handle span {
  width: 42px;
  height: 4.5px;
  border-radius: 999px;
  background-color: #d6c5c0;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--red-light);
  color: var(--red-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-blank-photo);
  margin-top: -1.1rem;
}

.modal-media--contain {
  background-color: #ffffff;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-media--blank {
  aspect-ratio: 16 / 5;
  background-color: var(--bg-blank-photo);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media--contain .modal-media__img {
  object-fit: contain;
}

.modal-media__img[hidden] {
  display: none;
}

.modal-media__category {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  background-color: var(--red-primary);
  color: #fef3c7;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.modal-body {
  padding: 1.15rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unavailable-banner {
  background-color: #292524;
  color: #fef3c7;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
}

.unavailable-banner[hidden] {
  display: none;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink-primary);
}

.modal-price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--red-primary);
  white-space: nowrap;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-list .tag {
  font-size: 0.76rem;
  padding: 0.26rem 0.65rem;
}

.modal-description {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.modal-section[hidden] {
  display: none;
}

.modal-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-option {
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.size-option:hover {
  border-color: var(--red-primary);
}

.size-option.is-selected {
  border-color: var(--red-primary);
  background-color: var(--bg-soft);
}

.size-option__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-primary);
}

.size-option__price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-primary);
}

.ingredient-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ingredient-list li {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-primary);
}

/* Painel Administrativo Oculto */
.admin-sheet {
  padding-bottom: 1.5rem;
}

.admin-header {
  padding: 1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
  color: #ffffff;
}

.admin-header .modal-title {
  color: #ffffff;
}

.admin-header__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.admin-login {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-login[hidden],
.admin-panel[hidden] {
  display: none;
}

.admin-login__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.admin-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.admin-login__row {
  display: flex;
  gap: 0.55rem;
}

.password-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.admin-input--password {
  padding-right: 2.65rem;
}

.password-toggle {
  position: absolute;
  right: 0.45rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--red-primary);
  background-color: var(--bg-soft);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle svg[hidden] {
  display: none;
}

.admin-input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.8rem;
  background-color: var(--bg-surface);
  font-size: 0.92rem;
}

.admin-input:focus {
  outline: none;
  border-color: var(--red-primary);
}

.admin-error {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--red-primary);
}

.admin-panel {
  padding: 1rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-security-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
}

.admin-security-box summary {
  font-weight: 700;
  color: var(--red-deep);
  cursor: pointer;
}

.admin-change-pass {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.admin-feedback {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: #166534;
  background-color: #dcfce7;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
}

.admin-feedback[hidden] {
  display: none;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-item__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-item__cat {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.admin-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--red-primary);
}

.admin-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-price-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}

.admin-price-field label {
  color: var(--ink-secondary);
  font-weight: 600;
}

.admin-price-field input {
  width: 72px;
  border: none;
  border-bottom: 1.5px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
  padding: 0.1rem 0.2rem;
  background: transparent;
}

.admin-price-field input:focus {
  outline: none;
  border-bottom-color: var(--red-primary);
}

/* Tablet e Desktop */
@media (min-width: 640px) {
  .category-nav {
    margin-inline: 0;
    padding-inline: 0;
  }

  .category-list {
    flex-wrap: wrap;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .product-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .product-card__media--contain .product-card__img {
    padding: 0.65rem;
  }

  .product-card__body {
    padding: 0.95rem 1.05rem 1.05rem;
    flex: 1;
    justify-content: space-between;
  }

  .product-card__title {
    font-size: 1.06rem;
  }

  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .modal-sheet {
    max-width: 600px;
    max-height: 90vh;
    border-radius: 22px;
    transform: translateY(16px) scale(0.97);
  }

  .admin-sheet {
    max-width: 700px;
  }

  .modal-overlay.is-visible .modal-sheet {
    transform: translateY(0) scale(1);
  }

  .modal-sheet__handle {
    display: none;
  }

  .modal-media {
    margin-top: 0;
    max-height: 270px;
  }

  .modal-media--blank {
    max-height: 92px;
  }

  .modal-body {
    padding: 1.35rem 1.6rem 1.85rem;
  }

  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-input--search {
    max-width: 240px;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__right {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .controls__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .search-box {
    flex: 1 1 320px;
    max-width: 380px;
  }

  .category-list {
    width: max-content;
    flex-wrap: nowrap;
  }

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