.gm-budget-app {
  --gm-ink: #17202a;
  --gm-muted: #657181;
  --gm-line: #e5e9ee;
  --gm-soft: #f5f7f9;
  --gm-primary: #0b7654;
  --gm-primary-dark: #07533c;
  --gm-accent: #ffca3a;
  --gm-white: #fff;
  color: var(--gm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1480px;
}

.gm-budget-app *, .gm-budget-app *::before, .gm-budget-app *::after { box-sizing: border-box; }
.gm-budget-app button, .gm-budget-app input { font: inherit; }
.gm-budget-app button { cursor: pointer; }

.gm-hero {
  align-items: center;
  background: linear-gradient(135deg, #07533c 0%, #0b7654 58%, #12956c 100%);
  border-radius: 26px;
  color: #fff;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 42px 48px;
  position: relative;
}

.gm-hero::after {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  content: "";
  height: 270px;
  position: absolute;
  right: 12%;
  top: -160px;
  width: 270px;
}

.gm-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.gm-hero h1 { color: inherit; font-family: inherit; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 12px; }
.gm-hero p { color: rgba(255,255,255,.83); font-size: 17px; margin: 0; max-width: 680px; }

.gm-cart-jump {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 16px;
  color: var(--gm-primary-dark);
  display: flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  position: relative;
  z-index: 1;
}

.gm-cart-jump strong { align-items: center; background: var(--gm-accent); border-radius: 999px; color: #3b3100; display: flex; height: 30px; justify-content: center; min-width: 30px; padding: 0 8px; }

.gm-notice { background: #fff9e6; border: 1px solid #f4df98; border-radius: 13px; color: #665417; font-size: 13px; margin-bottom: 22px; padding: 12px 16px; }
.gm-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 390px; }
.gm-catalog { min-width: 0; }
.gm-toolbar { background: #fff; border: 1px solid var(--gm-line); border-radius: 18px; padding: 16px; }
.gm-search { align-items: center; background: var(--gm-soft); border: 1px solid transparent; border-radius: 12px; display: flex; gap: 10px; padding: 0 14px; }
.gm-search:focus-within { background: #fff; border-color: var(--gm-primary); box-shadow: 0 0 0 3px rgba(11,118,84,.1); }
.gm-search svg { fill: none; height: 20px; stroke: var(--gm-muted); stroke-linecap: round; stroke-width: 2; width: 20px; }
.gm-search input { background: transparent; border: 0 !important; box-shadow: none !important; color: var(--gm-ink); min-width: 0; outline: 0; padding: 13px 0; width: 100%; }
.gm-category-tabs { display: flex; gap: 8px; margin-top: 13px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.gm-category-tabs button { background: #fff; border: 1px solid var(--gm-line); border-radius: 999px; color: var(--gm-muted); flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 8px 13px; }
.gm-category-tabs button.is-active { background: var(--gm-primary); border-color: var(--gm-primary); color: #fff; }
.gm-result-heading { color: var(--gm-muted); font-size: 13px; padding: 17px 2px 10px; }
.gm-products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); }

.gm-product-card { background: #fff; border: 1px solid var(--gm-line); border-radius: 18px; display: grid; grid-template-columns: 112px minmax(0, 1fr); min-width: 0; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.gm-product-card:hover { border-color: #cbd5df; box-shadow: 0 12px 35px rgba(20,32,44,.08); transform: translateY(-2px); }
.gm-product-visual { align-items: center; background: linear-gradient(145deg, #e6f3ee, #f6faf8); color: var(--gm-primary); display: flex; font-size: 25px; font-weight: 900; justify-content: center; min-height: 175px; overflow: hidden; }
.gm-product-visual img { height: 100%; object-fit: cover; width: 100%; }
.gm-product-content { display: flex; flex-direction: column; min-width: 0; padding: 17px; }
.gm-product-category { color: var(--gm-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gm-product-content h3 { color: var(--gm-ink); display: -webkit-box; font-family: inherit; font-size: 15px; font-weight: 750; line-height: 1.35; margin: 6px 0 5px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.gm-barcode { color: var(--gm-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.gm-product-footer { align-items: flex-end; display: flex; gap: 10px; justify-content: space-between; margin-top: auto; padding-top: 15px; }
.gm-product-footer > strong { color: var(--gm-ink); font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.gm-add-button { background: var(--gm-primary); border: 0; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 800; min-height: 38px; padding: 9px 11px; white-space: nowrap; }
.gm-add-button:hover { background: var(--gm-primary-dark); }
.gm-add-button.is-added { background: #e8f4ef; color: var(--gm-primary-dark); }

.gm-cart { background: #fff; border: 1px solid var(--gm-line); border-radius: 20px; box-shadow: 0 14px 45px rgba(20,32,44,.08); max-height: calc(100vh - 30px); overflow: auto; padding: 20px; position: sticky; top: 15px; }
.gm-cart-header { align-items: center; border-bottom: 1px solid var(--gm-line); display: flex; justify-content: space-between; padding-bottom: 15px; }
.gm-cart-header .gm-eyebrow { color: var(--gm-primary); margin-bottom: 2px; }
.gm-cart-header h2 { color: var(--gm-ink); font-family: inherit; font-size: 25px; letter-spacing: -.03em; margin: 0; }
.gm-close-cart { background: transparent; border: 0; color: var(--gm-muted); display: none; font-size: 30px; line-height: 1; }
.gm-empty-cart, .gm-empty-search { align-items: center; color: var(--gm-muted); display: flex; flex-direction: column; padding: 44px 18px; text-align: center; }
.gm-empty-cart[hidden], .gm-empty-search[hidden] { display: none; }
.gm-empty-cart strong, .gm-empty-search strong { color: var(--gm-ink); margin-bottom: 4px; }
.gm-empty-icon { align-items: center; background: var(--gm-soft); border-radius: 999px; color: var(--gm-primary); display: flex; font-size: 24px; height: 50px; justify-content: center; margin-bottom: 12px; width: 50px; }
.gm-cart-item { border-bottom: 1px solid var(--gm-line); padding: 15px 0; }
.gm-cart-item-info { display: flex; flex-direction: column; gap: 3px; }
.gm-cart-item-info strong { color: var(--gm-ink); font-size: 13px; line-height: 1.35; }
.gm-cart-item-info span { color: var(--gm-muted); font-size: 10px; }
.gm-cart-item-controls { align-items: center; display: grid; gap: 10px; grid-template-columns: auto 1fr auto; margin-top: 10px; }
.gm-cart-item-controls > strong { color: var(--gm-ink); font-size: 13px; text-align: right; }
.gm-quantity { align-items: center; background: var(--gm-soft); border-radius: 9px; display: flex; overflow: hidden; }
.gm-quantity button { background: transparent; border: 0; color: var(--gm-primary-dark); font-weight: 900; height: 31px; width: 31px; }
.gm-quantity span { font-size: 12px; font-weight: 800; min-width: 24px; text-align: center; }
.gm-remove { background: transparent; border: 0; color: #a2aab3; font-size: 20px; padding: 0; }
.gm-cart-summary { padding-top: 17px; }
.gm-summary-line, .gm-summary-total { align-items: center; display: flex; justify-content: space-between; }
.gm-summary-line { color: var(--gm-muted); font-size: 13px; }
.gm-summary-total { border-top: 1px dashed #cbd3dc; margin-top: 13px; padding-top: 15px; }
.gm-summary-total span { font-weight: 800; }
.gm-summary-total strong { color: var(--gm-primary-dark); font-size: 27px; letter-spacing: -.03em; }
.gm-cart-summary > p { color: var(--gm-muted); font-size: 10px; line-height: 1.4; margin: 13px 0; }
.gm-cart-actions { display: grid; gap: 8px; }
.gm-button { border-radius: 11px; font-weight: 800; padding: 12px 14px; width: 100%; }
.gm-button-primary { background: #1fa855; border: 1px solid #1fa855; color: #fff; }
.gm-button-primary:hover { background: #178845; }
.gm-button-secondary { background: #fff; border: 1px solid var(--gm-line); color: var(--gm-ink); }
.gm-clear { background: transparent; border: 0; color: #9b3a3a; font-size: 12px; padding: 8px; }
.gm-cart-backdrop { display: none; }
.gm-toast { background: var(--gm-ink); border-radius: 10px; bottom: 22px; color: #fff; font-size: 13px; font-weight: 700; left: 50%; opacity: 0; padding: 11px 16px; pointer-events: none; position: fixed; transform: translate(-50%, 15px); transition: .2s ease; z-index: 10001; }
.gm-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.gm-orcamentos-page .entry-title,
.gm-orcamentos-page .wp-block-post-title { display: none; }

.gm-orcamentos-page #primary { margin-bottom: 24px !important; margin-top: 24px !important; }
.gm-orcamentos-page .ast-article-single { padding-bottom: 0 !important; padding-top: 0 !important; }
.gm-orcamentos-page #moderncart-floating-cart,
.gm-orcamentos-page #moderncart-slide-out-modal { display: none !important; }

@media (max-width: 1120px) {
  .gm-layout { grid-template-columns: 1fr; }
  .gm-cart { border-radius: 22px 22px 0 0; bottom: 0; left: 0; max-height: 86vh; opacity: 0; position: fixed; right: 0; top: auto; transform: translateY(105%); transition: .25s ease; visibility: hidden; z-index: 10000; }
  .gm-close-cart { display: block; }
  .gm-cart-backdrop { background: rgba(13,24,33,.5); inset: 0; opacity: 0; position: fixed; transition: .2s ease; visibility: hidden; z-index: 9999; }
  .gm-cart-is-open .gm-cart { opacity: 1; transform: translateY(0); visibility: visible; }
  .gm-cart-is-open .gm-cart-backdrop { display: block; opacity: 1; visibility: visible; }
  body.gm-no-scroll { overflow: hidden; }
}

@media (max-width: 720px) {
  .gm-hero { align-items: flex-start; border-radius: 18px; flex-direction: column; padding: 28px 22px; }
  .gm-hero h1 { font-size: 34px; }
  .gm-cart-jump { width: 100%; justify-content: space-between; }
  .gm-products { grid-template-columns: 1fr; }
  .gm-product-card { grid-template-columns: 92px minmax(0, 1fr); }
  .gm-product-visual { min-height: 165px; }
  .gm-product-content { padding: 14px; }
  .gm-product-footer { align-items: stretch; flex-direction: column; }
  .gm-add-button { width: 100%; }
}

@media print {
  body.gm-printing-budget * { visibility: hidden !important; }
  body.gm-printing-budget .gm-cart,
  body.gm-printing-budget .gm-cart * { visibility: visible !important; }
  body.gm-printing-budget .gm-cart { border: 0; box-shadow: none; inset: 0; max-height: none; opacity: 1; overflow: visible; padding: 20px; position: absolute; transform: none; visibility: visible; width: 100%; }
  body.gm-printing-budget .gm-close-cart,
  body.gm-printing-budget .gm-quantity,
  body.gm-printing-budget .gm-remove,
  body.gm-printing-budget .gm-cart-actions { display: none !important; }
  body.gm-printing-budget .gm-cart-item-controls { grid-template-columns: 1fr; }
}
