:root {
  --brand-red: #101113;
  --brand-red-dark: #2d2f33;
  --ink: #151618;
  --soft: #f2f2f4;
  --panel: #ffffff;
  --muted: #666971;
  --line: #d8dae0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #f8f8f9 0%, #efeff1 40%, #e7e8eb 100%);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(12px, 2.2vw, 36px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #000;
  justify-self: start;
}

.brand__symbol {
  height: 78px;
  width: auto;
  display: block;
}

.brand__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #151618;
  letter-spacing: 0.03em;
}

.brand__admin {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #2d2f33;
}

.brand--admin {
  align-items: center;
  gap: 0.42rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: center;
}

.topnav a,
.topnav button {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.topbar__phone {
  justify-self: end;
  color: #151618;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.topbar__phone:hover {
  color: #000000;
}

.admin-link {
  color: #fff !important;
  background: #b91c1c;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.admin-link:hover {
  background: #991b1b;
}

.hero {
  min-height: 64vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(16, 17, 19, 0.8), rgba(45, 47, 51, 0.88)),
    url('https://images.unsplash.com/photo-1604719312566-8912e9227c6a?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
}

.hero__content {
  padding: 4.5rem 0;
  max-width: 680px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  opacity: 0.86;
}

.hero h2 {
  margin: 0.6rem 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.hero p {
  margin: 0;
  font-size: 1.03rem;
}

.section {
  padding: 3.4rem clamp(16px, 3vw, 56px);
}

.section--soft {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.95));
}

.section__head {
  margin-bottom: 1.2rem;
}

.section__head h3,
.section__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.section__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.filters input,
.filters select,
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 0.5rem;
}

.card__img-wrap {
  position: relative;
}

.badge-oferta {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #101113;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  pointer-events: none;
}

.card__body {
  padding: 1rem;
}

.card__body h4 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.05rem;
}

.card__body p {
  margin: 0;
  color: #3d3d3d;
}

.tag {
  display: inline-block;
  background: #ececef;
  color: var(--brand-red-dark);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.price {
  margin-top: 0.7rem !important;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink) !important;
}

.promo-val {
  color: #b91c1c;
}

.promo-validade {
  font-size: 0.72rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 4px 0 6px;
  display: inline-block;
}

/* Botao WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  background: #25d366;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.18s, transform 0.12s;
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.old {
  color: #9a9a9a;
  text-decoration: line-through;
  margin-right: 0.35rem;
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(120deg, var(--brand-red), var(--brand-red-dark));
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--brand-red-dark);
  border: 1px solid #ced1d8;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
}

.contact-box,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-box ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

/* ── Seção de Contato ──────────────────────────────────── */
.contact-section {
  background: #151618;
  padding: 4rem clamp(16px, 3vw, 56px);
  text-align: center;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-hero {
  margin-bottom: 2.8rem;
}

.contact-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 1.4rem;
  background: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  display: block;
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.contact-slogan {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.6rem 2rem;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.contact-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.contact-card strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.contact-card span,
.contact-card a {
  color: #fff;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-card a:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.admin-body {
  background: linear-gradient(to bottom, #f1f2f4, #e9eaed);
}

.panel--small {
  max-width: 460px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid--admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.1rem;
}

.form-grid label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
}

.form-grid .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.form-grid .check input {
  width: auto;
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f1f2f5;
}

.table-actions button {
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.35rem;
}

.table-actions button[data-action='edit'] {
  background: #dde1e9;
}

.table-actions button[data-action='delete'] {
  background: #e8e1d7;
}

.empty {
  background: #fff;
  border: 1px dashed #d8d8d8;
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
}

/* Upload de imagem */
.upload-box {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 10px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: #888;
}

.upload-box input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
}

.upload-box #uploadPlaceholder {
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
  padding: 1rem;
  text-align: center;
}

.upload-box #imagePreview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.panel,
.contact-box {
  animation: reveal 420ms ease both;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.7rem 0;
  }

  .brand {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    justify-self: center;
  }

  .brand__symbol {
    height: 62px;
    width: auto;
  }

  .brand__name {
    width: 100%;
    text-align: center;
    font-size: 1.4rem;
  }

  .brand__admin {
    width: 100%;
    text-align: center;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    justify-self: center;
  }

  .topbar__phone {
    justify-self: center;
    font-size: 0.88rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .form-grid--admin {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 12px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
