/* ==========================================================================
   Frutícola Rio Vinhedo — Design System PWA (Mobile-First)
   Paleta: Verde Folha (#1B5E20), Vinhedo (#6A1B4D), Cítrico (#E67E22)
   ========================================================================== */

:root {
  --brand-green: #1b5e20;
  --brand-green-dark: #124116;
  --brand-green-soft: #e8f5e9;
  --brand-vine: #6a1b4d;
  --brand-vine-soft: #f7eaf2;
  --brand-amber: #d97706;
  --brand-amber-soft: #fef3c7;
  --whatsapp: #1fa855;
  --whatsapp-dark: #178a44;

  --bg-page: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #f1efe9;

  --text-primary: #18221a;
  --text-secondary: #4e5d52;
  --text-muted: #768479;

  --border: #e3e5df;
  --border-strong: #cdd2c7;
  --danger: #c62828;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(18, 34, 20, 0.05);
  --shadow-sm: 0 4px 12px rgba(18, 34, 20, 0.06);
  --shadow-md: 0 10px 28px rgba(18, 34, 20, 0.12);
  --shadow-lg: 0 20px 48px rgba(18, 34, 20, 0.18);

  --topbar-h: 66px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 100vh;
  padding-bottom: 92px;
}

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

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--brand-green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-vine);
  background: var(--brand-vine-soft);
  color: var(--brand-vine);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-install:hover {
  background: var(--brand-vine);
  color: #fff;
}

.btn-cart-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-xs);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-cart-top:hover {
  background: var(--brand-green-dark);
}

.btn-cart-top:active {
  transform: scale(0.97);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--brand-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #142a17;
  color: #fff;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(16, 46, 20, 0.94) 0%, rgba(20, 56, 26, 0.78) 52%, rgba(20, 34, 22, 0.42) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 30px;
  max-width: 720px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill--green {
  background: #2e7d32;
  color: #fff;
}

.pill--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #f4faf4;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}

.hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero__subtitle {
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 1.8vw, 1.04rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 580px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cde8ce;
}

/* ---------- Controls Bar (Busca + Categorias) ---------- */
.controls-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box__input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box__input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.14);
}

.search-box__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1;
}

.btn-repeat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand-green);
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-repeat:hover {
  background: var(--brand-green);
  color: #fff;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-dark);
}

.cat-chip.is-active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  box-shadow: 0 3px 10px rgba(27, 94, 32, 0.24);
}

.cat-chip__count {
  font-size: 0.72rem;
  opacity: 0.82;
}

.subfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.subfilters__groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.unit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-chip,
.origin-chip {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.unit-chip.is-active {
  background: var(--brand-vine);
  border-color: var(--brand-vine);
  color: #fff;
}

.origin-chip.is-active {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.results-counter {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Aviso de Cotação ---------- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--brand-amber-soft);
  border: 1px solid #f7dc96;
  color: #7c4a03;
  font-size: 0.82rem;
  font-weight: 600;
}

.notice-bar svg {
  flex-shrink: 0;
}

/* ---------- Grade de Produtos ---------- */
.catalog-section {
  padding-top: 16px;
  padding-bottom: 36px;
}

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

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

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

/* Card de Produto */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-card.in-cart {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.14);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f6f0;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__unit {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(24, 34, 26, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.product-card__unit--CX { background: rgba(27, 94, 32, 0.9); }
.product-card__unit--KG { background: rgba(106, 27, 77, 0.9); }
.product-card__unit--SC { background: rgba(180, 83, 9, 0.92); }
.product-card__unit--UN { background: rgba(30, 64, 175, 0.88); }
.product-card__unit--BD { background: rgba(15, 118, 110, 0.9); }

.product-card__hot {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.66rem;
  font-weight: 800;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 11px 11px;
  gap: 6px;
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-card__code {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.product-card__origin {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-card__origin--Nacional {
  background: #edf7ed;
  color: #1b5e20;
}

.product-card__origin--Importado {
  background: #e8eefc;
  color: #1e40af;
}

.product-card__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.product-card__price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.product-card__price {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--brand-green-dark);
}

.product-card__price--consult {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-amber);
}

.product-card__unit-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Botão Adicionar / Seletor de Quantidade */
.btn-add {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  border: 1.5px solid var(--brand-green);
  border-radius: 10px;
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-add:hover {
  background: var(--brand-green);
  color: #fff;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--brand-green);
  color: #fff;
  overflow: hidden;
}

.qty-control__btn {
  width: 36px;
  height: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-control__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.qty-control__input {
  width: 48px;
  height: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
}

.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Skeleton Loading */
.skeleton-card {
  height: 290px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #ecebe5 25%, #f5f4f0 50%, #ecebe5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

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

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}

.empty-state__icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Barra Flutuante do Carrinho ---------- */
.floating-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 38;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.floating-cart__btn {
  pointer-events: auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 16px;
  background: var(--brand-green);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, background 0.15s ease;
}

.floating-cart__btn:hover {
  background: var(--brand-green-dark);
}

.floating-cart__left {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.floating-cart__badge {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.floating-cart__info {
  display: flex;
  flex-direction: column;
}

.floating-cart__title {
  font-size: 0.92rem;
  font-weight: 800;
}

.floating-cart__sub {
  font-size: 0.74rem;
  opacity: 0.88;
}

.floating-cart__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-cart__total {
  font-size: 0.96rem;
  font-weight: 800;
}

.floating-cart__cta {
  font-size: 0.76rem;
  font-weight: 700;
  color: #c8f7c5;
}

/* ---------- Drawer do Carrinho ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 25, 17, 0.56);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.22s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.drawer__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.drawer__subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-primary);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 28px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-page);
}

.cart-item__img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.cart-item__info {
  min-width: 0;
}

.cart-item__name {
  margin: 0 0 2px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item__meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.cart-item__stepper button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-weight: 800;
  color: var(--brand-green-dark);
}

.cart-item__stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.cart-item__sub {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-green-dark);
}

.cart-empty {
  text-align: center;
  padding: 40px 16px;
}

.cart-empty__icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

/* Resumo e Formulário */
.cart-summary {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--brand-green-soft);
  border: 1px solid #c8e6c9;
  margin-bottom: 18px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.cart-summary__row--total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #9ccc9f;
  font-size: 1.05rem;
  color: var(--brand-green-dark);
  margin-bottom: 0;
}

.cart-summary__note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #6d4c00;
}

.form-section-title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 800;
}

.form-section-hint {
  margin: 0 0 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tipo-pessoa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.tipo-pessoa__btn {
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tipo-pessoa__btn.is-active {
  background: var(--bg-surface);
  color: var(--brand-green-dark);
  box-shadow: var(--shadow-xs);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  font-size: 0.9rem;
  outline: none;
}

.form-group select {
  height: 42px;
}

.input-lookup {
  display: flex;
  gap: 8px;
}

.input-lookup input {
  flex: 1;
  min-width: 0;
}

.btn-lookup {
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-green);
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-lookup:hover:not(:disabled) {
  background: var(--brand-green);
  color: #fff;
}

.btn-lookup:disabled {
  opacity: 0.6;
  cursor: wait;
}

.field-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-status--ok {
  color: var(--brand-green);
}

.field-status--err {
  color: var(--danger);
}

.address-box {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
}

.form-row--addr {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 420px) {
  .form-row--addr {
    grid-template-columns: 1fr;
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.form-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffebee;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 0.14s ease, background 0.14s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand-green);
  color: #fff;
}

.btn--secondary {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
}

.btn--whatsapp {
  width: 100%;
  padding: 14px 18px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.96rem;
  box-shadow: 0 6px 18px rgba(31, 168, 85, 0.3);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
}

.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.drawer__secondary-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn--outline {
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 10px 12px;
}

.btn--ghost-danger {
  border: 1.5px solid #f5c2c7;
  background: #fff5f5;
  color: var(--danger);
  font-size: 0.82rem;
  padding: 10px 12px;
}

/* ---------- Rodapé ---------- */
.footer {
  background: #142617;
  color: #d6e4d8;
  margin-top: 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 28px;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.02rem;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__text {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #b7ccb9;
}

.footer__title {
  margin: 0 0 8px;
  font-weight: 800;
  color: #fff;
  font-size: 0.92rem;
}

.footer__steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #b7ccb9;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  font-size: 0.78rem;
  color: #93ae96;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #18221a;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .btn-cart-top__label {
    display: none;
  }
  .btn-repeat span {
    display: none;
  }
}
