:root {
  --fg-primary: #446084;
  --fg-secondary: #c05530;
  --fg-accent: #627D47;
  --fg-bg: #F5F3EF;
  --fg-surface: #FFFFFF;
  --fg-text: #2c2c2c;
  --fg-muted: #888;
  --fg-border: #e0dbd4;
  --fg-radius: 12px;
  --fg-shadow: 0 2px 12px rgba(0,0,0,.08);
  --fg-font: 'Lato', sans-serif;
  --fg-font-alt: 'Nunito Sans', sans-serif;
}

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

body {
  font-family: var(--fg-font);
  background: var(--fg-bg);
  color: var(--fg-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg-primary); text-decoration: none; }

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

.fg-header {
  background: var(--fg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--fg-border);
}

.fg-header__top {
  background: var(--fg-primary);
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-size: .82rem;
  font-family: var(--fg-font-alt);
  letter-spacing: .3px;
}

.fg-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.fg-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg-primary);
  font-family: var(--fg-font-alt);
}

.fg-logo span { color: var(--fg-secondary); }

.fg-header__search {
  flex: 0 1 320px;
  position: relative;
}

.fg-header__search input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--fg-border);
  border-radius: 24px;
  font-size: .9rem;
  font-family: var(--fg-font);
  outline: none;
  transition: border-color .2s;
}

.fg-header__search input:focus { border-color: var(--fg-primary); }

.fg-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fg-status {
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.fg-status--open { background: #e8f5e9; color: #2e7d32; }
.fg-status--closed { background: #fce4ec; color: #c62828; }

.fg-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.fg-hero__text { flex: 1; }

.fg-hero__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--fg-primary);
  line-height: 1.2;
  margin-bottom: 12px;
  font-family: var(--fg-font-alt);
}

.fg-hero__sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.fg-hero__cta {
  display: inline-block;
  background: var(--fg-secondary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}

.fg-hero__cta:hover { opacity: .9; }

.fg-hero__img {
  flex: 0 0 380px;
  max-width: 380px;
  border-radius: var(--fg-radius);
  overflow: hidden;
}

.fg-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.fg-section__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 20px;
  font-family: var(--fg-font-alt);
}

.fg-categories-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.fg-cat-btn {
  padding: 8px 18px;
  border: 1px solid var(--fg-border);
  border-radius: 20px;
  background: var(--fg-surface);
  color: var(--fg-text);
  font-size: .85rem;
  font-family: var(--fg-font);
  cursor: pointer;
  transition: all .2s;
}

.fg-cat-btn:hover { border-color: var(--fg-primary); color: var(--fg-primary); }

.fg-cat-btn--active {
  background: var(--fg-primary);
  color: #fff;
  border-color: var(--fg-primary);
}

.fg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.fg-card {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--fg-surface);
  border-radius: var(--fg-radius);
  overflow: hidden;
  box-shadow: var(--fg-shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.fg-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.fg-card__img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f0ede8;
}

.fg-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--fg-secondary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 700;
}

.fg-card__price-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(68,96,132,.92);
  color: #fff;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: .9rem;
  font-weight: 700;
}

.fg-card__info { padding: 14px 16px; }

.fg-card__name {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fg-card__old-price {
  font-size: .78rem;
  color: var(--fg-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.fg-card__parcelas {
  display: block;
  font-size: .75rem;
  color: var(--fg-accent);
  margin-top: 2px;
}

.fg-card__buy-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: var(--fg-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--fg-font);
  cursor: pointer;
  transition: opacity .2s;
}

.fg-card__buy-btn:hover { opacity: .88; }

.fg-empty {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
  font-size: 1rem;
}

.fg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}

.fg-modal-overlay--visible { display: block; }

.fg-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--fg-surface);
  border-radius: var(--fg-radius);
  z-index: 201;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

.fg-modal--open { display: block; }

.fg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fg-border);
}

.fg-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-primary);
}

.fg-modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--fg-muted);
  line-height: 1;
}

.fg-modal__body { padding: 20px; }

.fg-modal__img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #f0ede8;
}

.fg-modal__desc {
  font-size: .85rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.fg-modal__prices { margin-bottom: 12px; }

.fg-modal__old-price {
  font-size: .85rem;
  color: var(--fg-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.fg-modal__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-secondary);
}

.fg-modal__opt-group { margin-bottom: 14px; }

.fg-modal__opt-title {
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg-primary);
}

.fg-modal__opt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: .85rem;
  cursor: pointer;
}

.fg-modal__qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.fg-modal__qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--fg-border);
  border-radius: 50%;
  background: var(--fg-surface);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-modal__qty-val {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.fg-modal__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-modal__total-label { font-size: .85rem; color: var(--fg-muted); }

.fg-modal__total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-secondary);
}

.fg-modal__add-btn {
  padding: 10px 28px;
  background: var(--fg-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--fg-font);
  cursor: pointer;
  transition: opacity .2s;
}

.fg-modal__add-btn:hover { opacity: .88; }

.fg-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--fg-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  z-index: 150;
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}

.fg-cart-bar--visible { display: flex; }

.fg-cart-bar__info {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.fg-cart-bar__icon { font-size: 1.3rem; }

.fg-cart-bar__count { font-size: .9rem; }

.fg-cart-bar__total {
  font-size: 1.1rem;
  font-weight: 700;
}

.fg-cart-bar__checkout {
  padding: 8px 24px;
  background: var(--fg-secondary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--fg-font);
  cursor: pointer;
  transition: opacity .2s;
}

.fg-cart-bar__checkout:hover { opacity: .9; }

.fg-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 160;
}

.fg-cart-overlay--visible { display: block; }

.fg-cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70vh;
  background: var(--fg-surface);
  border-radius: var(--fg-radius) var(--fg-radius) 0 0;
  z-index: 161;
  transform: translateY(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

.fg-cart-drawer--open { transform: translateY(0); }

.fg-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--fg-border);
}

.fg-cart-drawer__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg-primary);
}

.fg-cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--fg-muted);
}

.fg-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.fg-cart-empty {
  text-align: center;
  padding: 30px;
  color: var(--fg-muted);
}

.fg-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fg-border);
}

.fg-cart-item__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0ede8;
}

.fg-cart-item__info { flex: 1; min-width: 0; }

.fg-cart-item__name {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-cart-item__opts {
  display: block;
  font-size: .72rem;
  color: var(--fg-muted);
}

.fg-cart-item__price {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--fg-secondary);
}

.fg-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fg-cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--fg-border);
  border-radius: 50%;
  background: var(--fg-surface);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fg-cart-item__qty {
  font-size: .85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.fg-cart-item__remove {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--fg-muted);
  cursor: pointer;
  margin-left: 4px;
}

.fg-cart-item__remove:hover { color: #c00; }

.fg-cart-drawer__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--fg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fg-cart-drawer__total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-secondary);
}

.fg-cart-drawer__checkout {
  padding: 10px 28px;
  background: var(--fg-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--fg-font);
  cursor: pointer;
}

.fg-footer {
  background: var(--fg-primary);
  color: rgba(255,255,255,.85);
  padding: 40px 24px 20px;
  margin-top: 60px;
}

.fg-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.fg-footer__col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 10px;
}

.fg-footer__col p,
.fg-footer__col a {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
}

.fg-footer__col a:hover { color: #fff; }

.fg-footer__bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

.fg-checkout {
  max-width: 640px;
  margin: 30px auto;
  padding: 0 24px;
}

.fg-checkout__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 24px;
  font-family: var(--fg-font-alt);
}

.fg-checkout__summary {
  background: var(--fg-surface);
  border-radius: var(--fg-radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--fg-shadow);
}

.fg-checkout__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--fg-border);
  font-size: .85rem;
}

.fg-checkout__summary-row:last-child { border-bottom: none; }

.fg-checkout__summary-name { flex: 1; }
.fg-checkout__summary-qty { width: 40px; text-align: center; color: var(--fg-muted); }
.fg-checkout__summary-price { width: 90px; text-align: right; font-weight: 700; }

.fg-checkout__total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--fg-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.fg-checkout__form {
  background: var(--fg-surface);
  border-radius: var(--fg-radius);
  padding: 24px;
  box-shadow: var(--fg-shadow);
}

.fg-checkout__field { margin-bottom: 14px; }

.fg-checkout__label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin-bottom: 4px;
}

.fg-checkout__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--fg-border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: var(--fg-font);
  outline: none;
  transition: border-color .2s;
}

.fg-checkout__input:focus { border-color: var(--fg-primary); }

.fg-checkout__input--error { border-color: #c00; }

.fg-checkout__submit {
  width: 100%;
  padding: 14px;
  background: var(--fg-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--fg-font);
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s;
}

.fg-checkout__submit:hover { opacity: .9; }
.fg-checkout__submit:disabled { opacity: .6; cursor: not-allowed; }

.fg-checkout__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fgSpin .6s linear infinite;
}

@keyframes fgSpin { to { transform: rotate(360deg); } }

.fg-checkout__fallback {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #fff8e1;
  border-radius: 8px;
  font-size: .85rem;
  text-align: center;
}

.fg-pix {
  max-width: 480px;
  margin: 30px auto;
  padding: 0 24px;
  text-align: center;
}

.fg-pix__card {
  background: var(--fg-surface);
  border-radius: var(--fg-radius);
  padding: 30px 24px;
  box-shadow: var(--fg-shadow);
}

.fg-pix__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 6px;
  font-family: var(--fg-font-alt);
}

.fg-pix__amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg-secondary);
  margin-bottom: 16px;
}

.fg-pix__qr {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.fg-pix__qr-img { border-radius: 8px; }

.fg-pix__qr--disabled { opacity: .3; pointer-events: none; }

.fg-pix__timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.fg-pix__timer--warning { color: #e65100; }
.fg-pix__timer--expired { color: #c00; }
.fg-pix__timer--paid { color: #2e7d32; }

.fg-pix__code-wrap {
  background: var(--fg-bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  word-break: break-all;
  font-size: .72rem;
  color: var(--fg-muted);
  max-height: 60px;
  overflow: hidden;
}

.fg-pix__copy-btn {
  padding: 10px 28px;
  background: var(--fg-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--fg-font);
  cursor: pointer;
  transition: opacity .2s;
}

.fg-pix__copy-btn:hover { opacity: .88; }

.fg-pix__paid {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 16px;
}

.fg-pix__items { margin-top: 16px; text-align: left; }

.fg-pix__item-row {
  font-size: .82rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--fg-border);
}

.fg-pix__name {
  font-size: .85rem;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.fg-pix__delivery {
  font-size: .78rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

.fg-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: .85rem;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

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

.fg-lgpd {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--fg-surface);
  padding: 14px 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  z-index: 500;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .82rem;
}

.fg-lgpd__btn {
  padding: 6px 20px;
  background: var(--fg-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
}

.fg-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  gap: 40px;
  align-items: center;
}

.fg-about__text { flex: 1; }

.fg-about__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin-bottom: 10px;
  font-family: var(--fg-font-alt);
}

.fg-about__desc {
  font-size: .9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .fg-card { flex: 0 0 calc(50% - 10px); }
  .fg-hero { flex-direction: column; padding: 24px; }
  .fg-hero__img { flex: none; max-width: 100%; }
  .fg-about { flex-direction: column; }
}

@media (max-width: 600px) {
  .fg-card { flex: 0 0 100%; }
  .fg-hero__title { font-size: 1.5rem; }
  .fg-header__search { display: none; }
  .fg-header__main { padding: 8px 16px; }
  .fg-footer__inner { flex-direction: column; }
  .fg-cart-bar { padding: 10px 16px; }
}
