﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg-start: #0e2f22;
  --bg-end: #1a513b;
  --surface: rgba(248, 248, 248, 0.96);
  --surface-strong: #f7f8f9;
  --surface-soft: #eef1f3;
  --text: #1f2933;
  --muted: #52606d;
  --brand: #1f8f5f;
  --brand-dark: #156b46;
  --accent: #e99b05;
  --border-soft: rgba(17, 61, 42, 0.24);
  --shadow: 0 16px 34px rgba(12, 40, 29, 0.24);
  --shadow-soft: 0 10px 22px rgba(10, 34, 24, 0.18);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(160deg, rgba(10, 40, 28, 0.88), rgba(24, 77, 56, 0.8)),
    url('imagens/pagina-inicial/fundo-inicial.webp') center/cover fixed no-repeat;
  overflow-x: hidden;
}

p,
a,
li,
label,
small,
td,
th,
button {
  font-weight: 700;
}

header {
  max-width: 1340px;
  width: calc(100% - 32px);
  margin: 18px auto 10px;
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 25, 20, 0.56), rgba(7, 17, 13, 0.52)),
    url('imagens/pagina-inicial/fundo-inicial.webp') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 34px rgba(7, 24, 18, 0.35);
}

header h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(90deg, #ffe66a 0%, #ff9f43 28%, #78d94f 58%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.46);
  font-size: clamp(1.7rem, 2.2vw + 1rem, 3.2rem);
  line-height: 1.15;
}

header p {
  margin-top: 10px;
  color: rgba(244, 252, 247, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  font-size: 1.22rem;
}

.brand-slogan {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px 7px 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ecfff4;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  background:
    linear-gradient(160deg, rgba(12, 44, 32, 0.88), rgba(18, 78, 54, 0.72)),
    url('imagens/slogan/image_ab3c8267.png') left center / 64px 100% no-repeat;
  box-shadow: 0 8px 16px rgba(6, 24, 18, 0.32);
}

.home-search {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  max-width: 520px;
}

.home-search input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #173a2b;
  font: inherit;
}

.home-search button {
  margin-top: 0;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
}

.user-hub {
  position: relative;
}

.user-hub-btn {
  margin-top: 0;
  border-radius: 16px;
  border: 1px solid rgba(20, 57, 41, 0.16);
  background: linear-gradient(180deg, rgba(250, 253, 251, 0.98), rgba(240, 247, 243, 0.96));
  color: #173a2b;
  min-width: 220px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 18px rgba(6, 22, 16, 0.2);
}

.user-hub-btn:hover,
.user-hub-btn:focus {
  border-color: rgba(20, 57, 41, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 250, 246, 0.98));
  transform: translateY(-1px);
}

.user-hub-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f07a2f;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.user-hub-avatar.has-image {
  background: #dfe8e2;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.user-hub-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-hub-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.user-hub-meta strong {
  font-size: 1.0rem;
  color: #1b3f2f;
}

.user-hub-meta small {
  color: #4b6459;
  font-size: 0.88rem;
  font-weight: 700;
}

.user-hub-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(8, 25, 19, 0.94), rgba(10, 30, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 24px rgba(6, 20, 15, 0.42);
  backdrop-filter: blur(6px);
  z-index: 30;
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.user-hub-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.user-hub-menu a {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: #eaf8f0;
  font-weight: 700;
}

.user-hub-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

header img {
  display: none;
}

nav {
  max-width: 1340px;
  width: calc(100% - 32px);
  margin: 10px auto;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(100deg, rgba(8, 23, 17, 0.86), rgba(9, 31, 23, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px rgba(7, 25, 18, 0.32);
  backdrop-filter: blur(8px);
  position: static;
}

#principal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 7px;
}

a {
  text-decoration: none;
  color: #113525;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#principal a {
  display: block;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: #f4fff8;
  font-size: 0.86rem;
  letter-spacing: 0.9px;
  font-family: var(--font-heading);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

#principal a:hover,
#principal a:focus {
  background: linear-gradient(180deg, rgba(48, 166, 112, 0.48), rgba(34, 110, 77, 0.46));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 16px rgba(8, 28, 21, 0.3);
  transform: translateY(-1px);
}

main {
  max-width: 1340px;
  width: calc(100% - 32px);
  margin: 10px auto 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(250, 252, 251, 0.96), rgba(244, 248, 246, 0.95));
  border: 1px solid rgba(14, 52, 37, 0.16);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

body.ui-ready header {
  animation: fade-slide-in 0.55s ease both;
}

body.ui-ready nav,
body.ui-ready .page-links {
  animation: fade-slide-in 0.6s ease both;
}

body.ui-ready main > * {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.5s ease forwards;
}

body.ui-ready main > *:nth-child(1) { animation-delay: 0.02s; }
body.ui-ready main > *:nth-child(2) { animation-delay: 0.08s; }
body.ui-ready main > *:nth-child(3) { animation-delay: 0.14s; }
body.ui-ready main > *:nth-child(4) { animation-delay: 0.2s; }
body.ui-ready main > *:nth-child(5) { animation-delay: 0.26s; }
body.ui-ready main > *:nth-child(6) { animation-delay: 0.32s; }

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

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.32rem;
  color: #153c2b;
  margin-bottom: 10px;
}

main h3 {
  margin-top: 18px;
  color: #184733;
}

ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

li {
  background: var(--surface-strong);
  border: 1px solid rgba(31, 143, 95, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  color: #1f2933;
  font-weight: 600;
}

button {
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(21, 107, 70, 0.28);
  filter: saturate(1.05);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acoes a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eaf8f0);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.page-links {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(7, 22, 17, 0.76), rgba(11, 34, 26, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(7, 25, 18, 0.26);
  backdrop-filter: blur(6px);
  position: static;
}

.page-links a {
  color: #ecf9f2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow: none;
}

.page-links a:hover,
.page-links a:focus {
  background: linear-gradient(180deg, rgba(55, 178, 122, 0.55), rgba(34, 117, 81, 0.5));
  border-color: rgba(255, 255, 255, 0.32);
}

#principal a.is-active-link,
.page-links a.is-active-link {
  background: linear-gradient(180deg, rgba(62, 191, 132, 0.65), rgba(36, 132, 92, 0.62));
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 8px 16px rgba(8, 28, 21, 0.34);
}

.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a,
a.is-disabled {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e4f3ea;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

a.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  text-decoration: line-through;
}

footer {
  margin-top: auto;
  padding: 22px 16px;
  text-align: center;
  color: #e4f3ea;
  background: rgba(7, 25, 18, 0.65);
}

footer p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #d7eadf;
}

.author-credit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8f5ee;
  font-size: 0.92rem;
}

.author-credit a {
  color: #fff2a8;
  font-weight: 700;
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(160deg, #25d366, #16a34a);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 20px rgba(8, 40, 23, 0.34);
  font-weight: 800;
}

.home-floating-checkout {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 39;
  min-width: 168px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(160deg, rgba(14, 63, 44, 0.96), rgba(31, 143, 95, 0.94));
  color: #f5fff9;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 14px;
  box-shadow: 0 12px 22px rgba(4, 22, 15, 0.34);
}

.home-floating-checkout:hover,
.home-floating-checkout:focus {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.items-container {
  max-width: 1340px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface-strong);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 15px;
  box-shadow: var(--shadow-soft);
  color: #1f2933;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 143, 95, 0.4);
  box-shadow: 0 16px 26px rgba(10, 40, 28, 0.2);
}

.item p {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}

.item img {
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 auto 8px;
}

.stock {
  display: inline-block;
  margin-bottom: 4px;
  color: #1c7a50;
  font-weight: 700;
  font-size: 0.92rem;
}

.qty-label {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.item select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  margin: 6px 0 8px;
  padding: 10px 38px 10px 12px;
  border: 1px solid rgba(20, 82, 56, 0.25);
  border-radius: 10px;
  font-weight: 600;
  color: #173a2b;
  background:
    linear-gradient(45deg, transparent 50%, #2f6f52 50%) calc(100% - 18px) calc(50% + 1px) / 7px 7px no-repeat,
    linear-gradient(135deg, #2f6f52 50%, transparent 50%) calc(100% - 12px) calc(50% + 1px) / 7px 7px no-repeat,
    linear-gradient(180deg, #ffffff, var(--surface-soft));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.item button {
  width: 100%;
}

.page-shell {
  margin-top: 12px;
}

.catalog-tools {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.catalog-tools > * {
  min-height: 42px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
}

.search-box input,
.search-box select {
  width: 100%;
  border: 1px solid rgba(20, 82, 56, 0.25);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #ffffff;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group button {
  margin-top: 0;
  background: #f2fbf6;
  color: #15543b;
  border: 1px solid rgba(21, 107, 70, 0.25);
  box-shadow: none;
}

.filter-group button.is-active {
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.cart-mini {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: #173a2b;
  box-shadow: var(--shadow-soft);
}

.mini-checkout-link {
  color: #0f6b45;
  font-weight: 800;
  text-decoration: underline;
}

.mini-checkout-link:hover,
.mini-checkout-link:focus {
  color: #0b4f33;
}

.status-banner {
  min-height: 24px;
  margin: 4px 0 12px;
  padding: 0;
  font-weight: 700;
}

.status-success {
  color: #146c43;
}

.status-error {
  color: #a83232;
}

.status-info {
  color: #2f556e;
}

.status-muted {
  color: #6b7f74;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(233, 155, 5, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  header,
  nav,
  main {
    width: calc(100% - 24px);
  }

  header {
    padding: 26px;
  }
}

@media (max-width: 992px) {
  header,
  nav,
  main {
    width: calc(100% - 20px);
    padding: 18px;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .user-hub-btn {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .user-hub-menu {
    left: 0;
    right: 0;
  }

  .home-search {
    max-width: 100%;
  }

  #principal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #principal a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .items-container,
  .carousel-row,
  .loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  header h1 {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  header p {
    font-size: 1rem;
  }

  #principal {
    grid-template-columns: 1fr;
  }

  .items-container,
  .carousel-row,
  .loading-grid {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .user-hub-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .user-hub-meta strong {
    font-size: 0.95rem;
  }

  .user-hub-meta small {
    font-size: 0.8rem;
  }

  .home-search {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .home-floating-checkout {
    right: 12px;
    bottom: 66px;
    min-width: 146px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

.hero-home {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(140deg, #0f3a29, #1f8f5f);
  color: #f6fff9;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  color: #f6fff9;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  margin: 8px 0 14px;
  color: #173c2d;
}

.carousel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: start;
  gap: 14px;
}

.product-row {
  --row-cols: 5;
  grid-template-columns: repeat(var(--row-cols), minmax(0, 1fr));
  align-items: stretch;
}

.product-row .promo-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.product-row .add-circle {
  margin-top: auto;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .product-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.promo-card,
.info-card,
.fidelidade-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.97));
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.promo-card::after,
.info-card::after,
.fidelidade-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.promo-card::after {
  display: none;
}

.promo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 107, 70, 0.36);
  box-shadow: 0 16px 28px rgba(8, 34, 24, 0.2);
}

.promo-card strong {
  display: block;
  font-size: 1.2rem;
  color: #153c2b;
  letter-spacing: 0.1px;
}

.price-line {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #153c2b;
}

.price-line span {
  font-size: 1rem;
  color: #4b5f56;
}

.item .meta-line {
  font-size: 0.9rem;
  color: #61756b;
  margin-top: 2px;
}

.qty-control {
  display: grid;
  grid-template-columns: 32px minmax(72px, 88px) 32px;
  gap: 6px;
  align-items: center;
  width: auto;
  padding: 1px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f2f5f3, #e8eeeb);
  border: 1px solid rgba(20, 82, 56, 0.14);
}

.qty-control button {
  margin-top: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  box-shadow: none;
}

.qty-display {
  text-align: center;
  border: 1px solid rgba(20, 82, 56, 0.25);
  background: linear-gradient(180deg, #ffffff, #f0f3f1);
  border-radius: 8px;
  padding: 6px 4px;
  font-weight: 700;
  color: #173a2b;
}

.add-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-size: 1.6rem;
  padding: 0;
}

.cart-glyph {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.setor-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.setor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.setor-card img {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.setor-card .meta-line {
  font-size: 0.92rem;
  color: #688177;
  min-height: 0;
  margin-top: 2px;
}

.setor-card .qty-control {
  margin-top: 6px;
}

.setor-card .add-circle {
  width: 42px;
  height: 38px;
  font-size: 1rem;
  line-height: 1;
  align-self: auto;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 8px 14px rgba(8, 35, 24, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.setor-card .add-circle:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.08);
}

.setor-card strong {
  font-size: 1.16rem;
  line-height: 1.25;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  justify-content: stretch;
  margin-top: 4px;
  width: 100%;
  min-width: 0;
}

.card-actions .qty-control {
  margin-top: 0;
  width: 100%;
  min-width: 0;
}

.product-row .card-actions .qty-control {
  grid-template-columns: 30px minmax(56px, 1fr) 30px;
}

.product-row .card-actions .qty-control button {
  width: 30px;
  height: 30px;
}

.promo-image {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}

.admin-panel,
.admin-table-wrap {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
  color: #1b2b2a;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.admin-panel:hover,
.admin-table-wrap:hover {
  border-color: rgba(21, 107, 70, 0.24);
  box-shadow: 0 14px 24px rgba(10, 40, 28, 0.14);
}

.admin-panel h2,
.admin-table-wrap h2,
.admin-table-wrap h3 {
  margin-bottom: 10px;
}

.admin-table-wrap {
  position: relative;
}

.admin-table-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, rgba(31, 143, 95, 0.8), rgba(233, 155, 5, 0.65));
}

canvas#chartPerformance {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(20, 82, 56, 0.15);
  border-radius: 12px;
  background: #f8fdfb;
}

.admin-panel form {
  display: grid;
  gap: 10px;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  width: 100%;
  border: 1px solid rgba(20, 82, 56, 0.25);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  color: #1f2933;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid rgba(16, 58, 40, 0.12);
  color: #1f2933;
  font-weight: 600;
}

.admin-table th {
  font-weight: 800;
  color: #123a2a;
}

.admin-table tr:nth-child(even) td {
  background: #f1f3f5;
}

#insightsList li {
  font-size: 1rem;
  line-height: 1.5;
  border-color: rgba(17, 61, 42, 0.2);
  background: #f6fdf9;
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.metric-card {
  background: linear-gradient(180deg, #fbfefc, #f2f9f4);
  border: 1px solid rgba(18, 58, 42, 0.12);
}

.metric-card small {
  display: block;
  color: #4f6a5d;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-card strong {
  font-size: 1.08rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eaf8f0;
  border: 1px solid var(--border-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.ui-state-card {
  background: linear-gradient(180deg, #f7fbf8, #eef6f1);
  border: 1px dashed rgba(21, 107, 70, 0.28);
  border-radius: 14px;
  padding: 16px;
  color: #315447;
}

.ui-state-card strong {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.skeleton-card {
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef3ef 25%, #f8fbf9 37%, #eef3ef 63%);
  background-size: 400% 100%;
  border: 1px solid rgba(18, 58, 42, 0.08);
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 980px) {
  .hero-home,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  nav,
  .page-links,
  .auth-panel {
    position: static;
    top: auto;
  }

  .admin-table-wrap {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 680px;
  }
}

.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.m-0 { margin: 0; }
.is-hidden { display: none; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; gap: 10px; }

.img-preview {
  display: none;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.panel-subtitle {
  color: #577568;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.field-label {
  display: block;
  margin: 8px 2px 4px;
  font-weight: 700;
  color: #234a38;
}

.form-input {
  width: 100%;
  border: 1px solid rgba(20, 82, 56, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfdfc;
}

.google-login-wrap {
  padding: 10px 12px;
  border: 1px dashed rgba(21, 107, 70, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcfa, #f2f8f4);
}

.google-login-wrap p {
  margin-bottom: 8px;
  font-weight: 700;
  color: #1f4a37;
}

.social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.social-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: var(--font-heading);
}

.social-btn .social-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.social-btn--google {
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  color: #1e2b39;
  border: 1px solid rgba(30, 43, 57, 0.15);
}

.social-btn--google .social-icon {
  background: #ffffff;
  color: #1f2933;
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.social-btn--facebook {
  background: linear-gradient(180deg, #2e5cc0, #244b9f);
  color: #fff;
}

.social-btn--facebook .social-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cliente-shell {
  align-items: start;
}

.auth-panel {
  position: sticky;
  top: 14px;
}

.cadastro-shortcut {
  border-top: 1px solid rgba(20, 82, 56, 0.15);
  padding-top: 14px;
}

.cadastro-shortcut p {
  margin: 0 0 8px;
  color: #355445;
  font-weight: 700;
}

.btn-outline {
  background: #f4faf7;
  color: #1d573e;
  border: 1px solid rgba(20, 82, 56, 0.24);
  box-shadow: none;
}

.btn-outline:hover {
  background: #eaf6f0;
  box-shadow: 0 8px 14px rgba(10, 40, 28, 0.12);
}

.auth-inline-links {
  margin-top: 8px;
  margin-bottom: 2px;
}

.btn-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1f6f4b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover {
  color: #174f36;
}

.profile-photo-box {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed rgba(20, 82, 56, 0.22);
  border-radius: 12px;
  background: #f8fcfa;
}

.profile-photo-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(21, 107, 70, 0.22);
}

.cadastro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cadastro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.cadastro-grid .full-row {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .cadastro-grid {
    grid-template-columns: 1fr;
  }
}

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

