:root {
  --green-900: #18311f;
  --green-800: #204628;
  --green-700: #2d5d34;
  --green-600: #3b7743;
  --green-500: #5ca764;
  --green-400: #7bb982;
  --green-300: #b8d9bc;
  --cream-100: #fbfaf6;
  --cream-200: #f6f2e8;
  --cream-300: #ede7d9;
  --yellow-400: #f0c933;
  --yellow-300: #f6da71;
  --shadow-1: 0 18px 60px rgba(11, 23, 14, 0.28);
  --shadow-2: 0 12px 30px rgba(18, 40, 23, 0.12);
  --shadow-3: 0 10px 24px rgba(18, 40, 23, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 180ms ease;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--green-900);
  background: #102012;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

body.page {
  position: relative;
  overflow-x: hidden;
}

body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 18, 10, 0.78), rgba(8, 18, 10, 0.42)),
    url("assets/bg/plantio-capa.jpg") center / cover no-repeat;
  filter: saturate(108%);
}

body.page-app::before {
  background:
    radial-gradient(circle at top left, rgba(123, 185, 130, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(8, 18, 10, 0.82), rgba(8, 18, 10, 0.52)),
    url("assets/bg/folhagem-obrigado.jpg") center / cover no-repeat;
}

body.page-board::before {
  background:
    linear-gradient(135deg, rgba(8, 18, 10, 0.80), rgba(8, 18, 10, 0.58)),
    url("assets/bg/logo-folhagem.jpg") center / cover no-repeat;
}

body.page-login::before {
  background-color: #eef4ea;
  background-image:
    linear-gradient(180deg, rgba(6, 17, 9, 0.04), rgba(6, 17, 9, 0.16)),
    url("assets/bg/plantio-capa.jpg");
  background-position:
    center,
    top center;
  background-size:
    auto,
    min(100vw, 480px) auto;
  background-repeat: no-repeat;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: grid;
  justify-items: center;
  align-items: stretch;
}

.device {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.device__screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: var(--cream-100);
}

.login-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--cream-100);
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.00) 0 30%, rgba(251, 250, 246, 0.66) 42%, rgba(251, 250, 246, 0.98) 56%, rgba(251, 250, 246, 1) 100%),
    url("assets/bg/plantio-capa.jpg");
  background-position:
    center,
    top center;
  background-size:
    auto,
    min(100vw, 480px) auto;
  background-repeat: no-repeat;
}

.login-content {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(30px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand-chip__icon {
  width: 22px;
  height: 22px;
}

.login-copy {
  margin-top: 18px;
  color: white;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.30);
}

.login-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.login-copy p {
  margin: 0;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
}

.glass-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(18, 40, 23, 0.16);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: clamp(240px, 69vw, 292px) auto 0;
  padding: 22px 18px 20px;
  overflow: hidden;
  animation: loginCardPulse 3.8s ease-in-out infinite;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.30) 49%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: loginCardSheen 5.6s ease-in-out infinite;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card__logo {
  width: min(230px, 78%);
  margin: 0 auto 18px;
}

@media (max-height: 840px) {
  .login-card {
    margin-top: clamp(206px, 61vw, 236px);
  }
}

@media (min-width: 700px) and (max-height: 840px) {
  .login-card {
    margin-top: 185px;
  }
}

@keyframes loginCardPulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(18, 40, 23, 0.16);
  }

  50% {
    box-shadow:
      0 22px 52px rgba(18, 40, 23, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.72),
      0 0 30px rgba(123, 185, 130, 0.24);
  }
}

@keyframes loginCardSheen {
  0%,
  58% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card,
  .login-card::before {
    animation: none;
  }
}

.form-stack {
  display: grid;
  gap: 12px;
}

.login-benefits {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(32, 70, 40, 0.10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.login-benefits span {
  min-height: 42px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(92, 167, 100, 0.10);
  color: var(--green-700);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(32, 70, 40, 0.70);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(38, 72, 43, 0.12);
  background: rgba(246, 244, 238, 0.92);
  color: var(--green-900);
  padding: 14px 16px;
  border-radius: 18px;
  outline: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(24, 49, 31, 0.42);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(59, 119, 67, 0.48);
  box-shadow: 0 0 0 4px rgba(91, 167, 100, 0.14);
  transform: translateY(-1px);
}

.helper-row,
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--green-700);
  font-size: 0.90rem;
  font-weight: 700;
}

.form-error {
  min-height: 1.2em;
  color: #bb2b2b;
  font-size: 0.86rem;
  font-weight: 600;
}

.footnote,
.muted {
  margin: 0;
  color: rgba(24, 49, 31, 0.60);
  font-size: 0.86rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: white;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 14px 24px rgba(43, 90, 50, 0.24);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(43, 90, 50, 0.28);
}

.button:active {
  transform: translateY(0);
}

.button--secondary {
  background: rgba(45, 93, 52, 0.08);
  color: var(--green-700);
  box-shadow: none;
}

.button--ghost {
  background: transparent;
  color: var(--green-700);
  border: 1px solid rgba(45, 93, 52, 0.16);
  box-shadow: none;
}

.button--ghost-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.button--small {
  padding: 11px 14px;
  font-size: 0.92rem;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  background: linear-gradient(180deg, #fdfcf8 0%, #f7f4ed 100%);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(18px + env(safe-area-inset-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27, 51, 32, 0.06);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup__icon {
  width: 48px;
  height: 48px;
  flex: none;
}

.eyebrow {
  margin: 0 0 3px;
  color: rgba(24, 49, 31, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-lockup h1,
.section-head h3,
.section-head h2,
.profile-card h2,
.cart-summary h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.brand-lockup h1 {
  font-size: 1.2rem;
  line-height: 1.05;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 0;
  background: rgba(45, 93, 52, 0.08);
  display: grid;
  place-items: center;
  color: var(--green-700);
  box-shadow: var(--shadow-3);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.app-main {
  position: relative;
  padding: 18px 18px calc(104px + env(safe-area-inset-bottom));
  overflow: visible;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.app-main::-webkit-scrollbar {
  display: none;
}

.app-panel {
  display: none;
  animation: fadeIn 220ms ease;
}

.app-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  position: relative;
  min-height: 248px;
  padding: 22px;
  border-radius: 30px;
  overflow: hidden;
  color: var(--green-900);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    url("assets/bg/logo-folhagem.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-2);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.20), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(42, 83, 35, 0.08));
  pointer-events: none;
}

.hero-card__content {
  position: relative;
  z-index: 1;
  max-width: 78%;
}

.hero-card h2 {
  margin: 10px 0 10px;
  font-size: 1.55rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.95rem;
}

.hero-card__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.chip--light {
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(15, 47, 21, 0.12);
}

.info-strip {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.info-strip::-webkit-scrollbar {
  display: none;
}

.info-pill {
  white-space: nowrap;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(38, 72, 43, 0.08);
  box-shadow: var(--shadow-3);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-block {
  margin-top: 22px;
}

.section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2,
.section-head h3 {
  font-size: 1.1rem;
  line-height: 1.08;
}

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

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

.product-card,
.compact-card,
.profile-card,
.cart-summary,
.cart-item,
.search-panel,
.profile-list,
.quick-actions {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 51, 32, 0.06);
  box-shadow: var(--shadow-3);
  border-radius: 24px;
}

.product-card {
  overflow: hidden;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
}

.product-card__media > img:first-child {
  position: absolute;
  inset: 14px;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  background: transparent;
}

.brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(18, 40, 23, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-700);
}

.brand-badge img {
  width: 16px;
  height: 16px;
}

.product-card__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 49, 31, 0.76);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.product-card__body {
  padding: 14px 14px 15px;
  display: grid;
  gap: 10px;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(24, 49, 31, 0.52);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h3,
.compact-card h3,
.cart-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.product-card p,
.compact-card p,
.cart-item p,
.profile-card p,
.board-card p {
  margin: 0;
  color: rgba(24, 49, 31, 0.66);
  font-size: 0.86rem;
}

.product-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.price-stack {
  min-width: 0;
}

.price-stack strong {
  display: block;
  font-size: 1rem;
  white-space: nowrap;
}

.price-stack span {
  color: rgba(24, 49, 31, 0.56);
  font-size: 0.82rem;
}

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

.compact-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.compact-card__media {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.compact-card__media > img:first-child {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
}

.search-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96) 54%, rgba(255, 255, 255, 0.94) 100%);
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 58%;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(24, 49, 31, 0.88), rgba(45, 93, 52, 0.58) 44%, rgba(246, 218, 113, 0.18)),
    url("assets/bg/plantio-capa.jpg") center 58% / cover no-repeat;
  filter: saturate(1.12) contrast(1.05);
}

.search-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.96) 59%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(255, 255, 255, 0.14) 72%);
}

.search-field {
  position: relative;
  z-index: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(45, 93, 52, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(24, 49, 31, 0.48);
  box-shadow: 0 12px 26px rgba(18, 40, 23, 0.10);
  backdrop-filter: blur(12px);
}

.search-field:focus-within {
  border-color: rgba(59, 119, 67, 0.42);
  box-shadow:
    0 0 0 4px rgba(91, 167, 100, 0.12),
    0 14px 30px rgba(18, 40, 23, 0.12);
}

.search-field svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.search-input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px 0;
  outline: none;
  color: var(--green-900);
  font: inherit;
}

.search-input::placeholder {
  color: rgba(24, 49, 31, 0.46);
}

.chips-row {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.filter-chip {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 16px;
  padding: 10px 8px;
  background: rgba(45, 93, 52, 0.09);
  color: var(--green-700);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(45, 93, 52, 0.04);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: white;
  box-shadow: 0 10px 22px rgba(24, 49, 31, 0.18);
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  padding: 12px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cart-item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
}

.product-detail {
  display: grid;
  gap: 14px;
}

.product-detail__back {
  justify-self: start;
}

.product-detail__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(27, 51, 32, 0.06);
  box-shadow: var(--shadow-3);
}

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

.product-detail__content {
  padding: 18px;
  display: grid;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 51, 32, 0.06);
  box-shadow: var(--shadow-3);
}

.product-detail__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.product-detail__title h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.product-detail__title strong {
  white-space: nowrap;
  color: var(--green-700);
  font-size: 1.15rem;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-pills span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(45, 93, 52, 0.08);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 800;
}

.product-info-list {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.product-info-list div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(24, 49, 31, 0.07);
}

.product-info-list span {
  color: rgba(24, 49, 31, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-info-list strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.detail-actions {
  display: grid;
  gap: 10px;
}

.cart-item__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.qty-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 0;
  background: rgba(45, 93, 52, 0.10);
  color: var(--green-700);
  font-weight: 800;
}

.qty-badge {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
}

.cart-summary {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.delivery-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(45, 93, 52, 0.06);
  border: 1px solid rgba(45, 93, 52, 0.10);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--green-800);
  font-weight: 800;
  line-height: 1.25;
}

.check-row span {
  display: grid;
  gap: 3px;
}

.check-row small {
  color: rgba(24, 49, 31, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-700);
  flex: none;
}

.address-preview {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 93, 52, 0.10);
  color: rgba(24, 49, 31, 0.76);
  font-size: 0.86rem;
  line-height: 1.45;
}

.address-preview[hidden],
.delivery-edit[hidden] {
  display: none;
}

.delivery-edit {
  justify-self: start;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(24, 49, 31, 0.74);
}

.summary-row strong {
  color: var(--green-900);
}

.empty-state {
  padding: 24px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(45, 93, 52, 0.22);
  border-radius: 24px;
  color: rgba(24, 49, 31, 0.60);
}

.profile-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.profile-card--brand {
  background:
    linear-gradient(180deg, rgba(253, 252, 248, 0.88), rgba(253, 252, 248, 0.94)),
    url("assets/bg/plantio-capa.jpg") center / cover no-repeat;
}

.profile-card__logo {
  width: min(220px, 80%);
}

.profile-list {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.profile-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(24, 49, 31, 0.06);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: rgba(24, 49, 31, 0.56);
  font-size: 0.86rem;
}

.profile-row strong,
.profile-row a {
  text-align: right;
  font-size: 0.92rem;
}

.quick-actions {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: 82px;
  padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(27, 51, 32, 0.08);
  z-index: 15;
}

.nav-item {
  position: relative;
  border: 0;
  background: none;
  border-radius: 18px;
  color: rgba(24, 49, 31, 0.54);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item span {
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-item.is-active {
  color: var(--green-700);
  background: rgba(45, 93, 52, 0.08);
}

.nav-badge {
  position: absolute;
  top: 5px;
  right: 24px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--yellow-400);
  color: var(--green-900);
  font-size: 0.68rem;
  font-weight: 900;
}

.nav-badge[hidden] {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  min-width: min(280px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(24, 49, 31, 0.90);
  color: white;
  text-align: center;
  font-size: 0.90rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 25;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.address-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
}

.address-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 10, 0.50);
  backdrop-filter: blur(6px);
}

.address-modal__panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(88vh, 760px);
  margin: 0 auto;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: rgba(253, 252, 248, 0.98);
  box-shadow: 0 -24px 70px rgba(8, 18, 10, 0.26);
}

.address-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.address-modal__head h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.address-form {
  display: grid;
  gap: 12px;
}

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

.address-grid--cep {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.cep-status {
  min-height: 1.2em;
  margin: -2px 0 0;
  color: rgba(24, 49, 31, 0.60);
  font-size: 0.82rem;
  font-weight: 700;
}

.cep-status.is-success {
  color: var(--green-700);
}

.cep-status.is-error {
  color: #bb2b2b;
}

.address-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  margin-top: 4px;
}

.board-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 70px;
  color: white;
}

.board-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.board-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.board-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.board-card {
  grid-column: span 12;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-900);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.board-card__inner {
  padding: 22px;
}

.board-card h2,
.board-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.board-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.media-card {
  display: grid;
  gap: 10px;
}

.media-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 18px;
}

.media-card strong {
  font-size: 0.95rem;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.fact-table th,
.fact-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(24, 49, 31, 0.08);
  vertical-align: top;
}

.fact-table th {
  color: rgba(24, 49, 31, 0.60);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(45, 93, 52, 0.08);
  color: var(--green-700);
}

@media (min-width: 860px) {
  .board-card--half {
    grid-column: span 6;
  }

  .board-card--third {
    grid-column: span 4;
  }
}

@media (max-width: 640px) {
  .layout {
    padding: 0;
  }

  .device {
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    padding: 0;
    border-radius: 0;
  }

  .device__screen {
    border-radius: 0;
  }

  .app-header {
    padding: 0 14px;
  }

  .app-main {
    padding: 0 14px 20px;
  }

  .highlight-grid,
  .product-grid,
  .compact-grid {
    gap: 12px;
  }

  .hero-card {
    padding: 18px;
    min-height: 226px;
  }

  .hero-card__content {
    max-width: 82%;
  }

  .board-wrap {
    padding: 26px 16px 44px;
  }

  .board-media-grid {
    grid-template-columns: 1fr;
  }
}
