/* =============================================
   GREENWAY — Design System
   ============================================= */
:root {
  --gw-green:       #2e7d32;
  --gw-green-light: #4caf50;
  --gw-green-pale:  #e8f5e9;
  --gw-green-soft:  #f1faf2;
  --gw-accent:      #43a047;
  --gw-orange:      #fb8c00;
  --gw-orange-pale: #fff3e0;
  --gw-text:        #1a1a1a;
  --gw-text-soft:   #5a6475;
  --gw-border:      #e8eaed;
  --gw-bg:          #ffffff;
  --gw-bg-alt:      #f8faf8;
  --gw-shadow:      0 2px 12px rgba(0,0,0,.06);
  --gw-shadow-md:   0 4px 24px rgba(0,0,0,.10);
  --gw-radius:      16px;
  --gw-radius-sm:   10px;
  --gw-header-h:    120px;
  --font: 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gw-bg);
  color: var(--gw-text);
  padding-top: var(--gw-header-h);
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; --gw-header-h: 130px; }
}

/* Mobile: tela cheia (remove padding lateral dos containers) */
@media (max-width: 767.98px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl, .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .gw-main { width: 100%; }
  .gw-hero { border-radius: 12px; margin: 10px 0; }
}

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

/* ---- HEADER ---- */
.gw-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--gw-border);
  transition: box-shadow .3s;
}
.gw-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
body:has(.gw-header--compact) { padding-top: 66px; }
@media (min-width: 992px) {
  body:has(.gw-header--compact) { padding-top: 72px; }
}

.gw-header-inner {
  display: flex; align-items: center;
  padding: 10px 28px;
  width: 100%; gap: 16px;
}
.gw-header-left  { display: flex; align-items: center; }
.gw-header-center { display: flex; }
.gw-header-right { display: flex; align-items: center; gap: 10px; }

/* Desktop: grid com colunas laterais equivalentes (1fr), busca centralizada de
   verdade no viewport independente da largura do logo/ações. */
@media (min-width: 992px) {
  .gw-header-inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 640px) 1fr;
    align-items: center;
  }
  .gw-header-left   { justify-self: start; }
  .gw-header-center { justify-self: stretch; width: 100%; }
  .gw-header-right  { justify-self: end; }
}

@media (max-width: 991.98px) {
  .gw-header-inner {
    padding: 10px 14px;
    gap: 8px;
    justify-content: space-between;
  }
  .gw-header-left { flex: 1 1 auto; min-width: 0; }
  .gw-header-right { margin-left: auto; gap: 6px; }
  .gw-logo-img { height: 36px; }
}

/* Logo */
.gw-logo { display: flex; align-items: center; }
.gw-logo-img { height: 44px; width: auto; object-fit: contain; display: block; }

/* Search form */
.gw-search-form {
  display: flex; align-items: center;
  width: 100%; max-width: 800px;
}
.gw-search-input-wrap {
  flex: 1;
  display: flex; align-items: center;
  background: var(--gw-bg-alt);
  border: 1.5px solid var(--gw-border);
  border-radius: 10px;
  padding: 0 6px 0 16px; height: 44px;
  transition: border-color .2s, box-shadow .2s;
}
.gw-search-input-wrap:focus-within {
  border-color: var(--gw-green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}
.gw-search-input {
  flex: 1; border: 0; background: transparent;
  font-size: 14px; outline: none; color: var(--gw-text); height: 100%;
}
.gw-search-input::placeholder { color: #a0aab4; }
.gw-search-icon-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #9aa5b4; font-size: 16px; cursor: pointer;
  border-radius: 8px; transition: color .2s, background .2s;
}
.gw-search-icon-btn:hover { color: var(--gw-green); background: var(--gw-green-pale); }

/* Mobile icon button */
.gw-icon-btn {
  width: 42px; height: 42px;
  border: 1.5px solid var(--gw-border);
  border-radius: 10px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gw-text); cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.gw-icon-btn:hover { border-color: var(--gw-green); color: var(--gw-green); background: var(--gw-green-pale); }

/* Login button — mesmo estilo do carrinho */
.gw-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gw-green-pale); border: 1.5px solid #c8e6c9;
  border-radius: 12px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--gw-green);
  cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap;
}
.gw-login-btn i { font-size: 18px; }
.gw-login-btn:hover { background: #dcedc8; border-color: var(--gw-green-light); color: var(--gw-green); }

/* User pill — versão compacta com avatar + nome, usada quando o cliente está logado */
.gw-user-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  background: #fff;
  border: 1.5px solid var(--gw-border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  max-width: 220px;
}
.gw-user-pill:hover,
.gw-user-pill[aria-expanded="true"] {
  border-color: var(--gw-green-light);
  background: var(--gw-green-pale);
  box-shadow: 0 2px 8px rgba(46, 125, 50, .1);
}
.gw-user-pill-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gw-green-dk), var(--gw-green-light));
  color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gw-user-pill-text {
  display: flex; flex-direction: column; line-height: 1.1;
  min-width: 0;
}
.gw-user-pill-greet {
  font-size: 10.5px; color: var(--gw-text-soft); font-weight: 500;
  letter-spacing: .2px;
}
.gw-user-pill-name {
  font-size: 13.5px; font-weight: 700; color: var(--gw-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gw-user-pill-chevron {
  font-size: 11px; color: var(--gw-text-soft); opacity: .7;
  transition: transform .15s;
}
.gw-user-pill[aria-expanded="true"] .gw-user-pill-chevron { transform: rotate(180deg); }

/* User dropdown button */
.gw-user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gw-border);
  border-radius: 10px; padding: 0 14px;
  height: 42px; font-size: 14px; font-weight: 500;
  color: var(--gw-text); background: transparent;
  cursor: pointer; transition: all .2s;
}
.gw-user-btn:hover { border-color: var(--gw-green); color: var(--gw-green); background: var(--gw-green-pale); }
.gw-user-btn i:first-child { font-size: 18px; }

.gw-cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--gw-green-pale);
  border: 1.5px solid #c8e6c9;
  border-radius: 12px; padding: 7px 12px;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
@media (max-width: 991.98px) {
  .gw-cart-btn { padding: 7px 10px; }
  .gw-icon-btn { width: 40px; height: 40px; border-radius: 10px; }
}
.gw-cart-btn:hover { background: #dcedc8; border-color: var(--gw-green-light); }
.gw-cart-icon-wrap { position: relative; }
.gw-cart-icon-wrap i { font-size: 22px; color: var(--gw-green); }
.gw-cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gw-orange); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.gw-cart-label { font-size: 11px; color: var(--gw-text-soft); display: block; line-height: 1; }
.gw-cart-total { font-size: 14px; font-weight: 700; color: var(--gw-green); }

/* Mobile search */
.gw-mobile-search {
  background: #fff; border-top: 1px solid var(--gw-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.gw-mobile-search.open { max-height: 80px; }

/* Category bar */
.gw-category-bar {
  border-top: 1px solid var(--gw-border);
  background: #fff;
}
.gw-cats-scroll {
  display: flex; gap: 6px;
  overflow-x: auto; padding: 10px 0;
  scrollbar-width: none;
}
.gw-cats-scroll::-webkit-scrollbar { display: none; }
.gw-cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--gw-text-soft);
  background: var(--gw-bg-alt); border: 1.5px solid var(--gw-border);
  white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.gw-cat-chip:hover, .gw-cat-chip.active {
  background: var(--gw-green-pale); border-color: #a5d6a7; color: var(--gw-green);
}
.gw-cat-offer { border-color: #ffcc80; color: var(--gw-orange); background: var(--gw-orange-pale); }
.gw-cat-offer:hover, .gw-cat-offer.active { background: #ffe0b2; }

/* ---- MAIN ---- */
.gw-main { min-height: calc(100vh - 200px); }

/* ---- HERO BANNER (imagem upload pelo admin) ---- */
.gw-hero-banner {
  display: block;
  margin: 20px 0;
  border-radius: var(--gw-radius);
  overflow: hidden;
  text-decoration: none;
  line-height: 0; /* remove gap inline-block do img */
}
.gw-hero-banner img {
  width: 100%;
  height: auto;          /* respeita a proporção natural da imagem */
  display: block;
  /* Renderização nítida em escalas não-inteiras (Chrome/Safari) */
  image-rendering: -webkit-optimize-contrast;
  transition: transform .3s ease;
}
.gw-hero-banner:hover img { transform: scale(1.01); }

/* ---- HERO BANNER (texto fallback quando não há imagem) ---- */
.gw-hero {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 60%, #fff8e1 100%);
  border-radius: var(--gw-radius); margin: 20px 0;
  padding: 48px 40px;
  position: relative; overflow: hidden;
}
.gw-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.7); border: 1px solid #c8e6c9;
  border-radius: 99px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--gw-green);
  margin-bottom: 16px;
}
.gw-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.5px;
  color: var(--gw-text); margin-bottom: 16px;
}
.gw-hero h1 span { color: var(--gw-green); }
.gw-hero p { font-size: 16px; color: var(--gw-text-soft); margin-bottom: 28px; }
.gw-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.gw-hero-img {
  position: absolute; right: -10px; bottom: 0;
  height: 90%; opacity: .9;
}
@media(max-width: 768px) {
  .gw-hero { padding: 32px 24px; }
  .gw-hero-img { display: none; }
}

/* ---- SECTION TITLES ---- */
.gw-section-title {
  font-size: 20px; font-weight: 700; color: var(--gw-text);
  display: flex; align-items: center; gap: 8px;
}
.gw-section-title::before {
  content: ''; display: block;
  width: 4px; height: 20px;
  background: var(--gw-green); border-radius: 3px;
}

/* ---- OFFERS SECTION ---- */
@keyframes gwFlameFlicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%       { transform: scale(1.08) rotate(3deg); }
}
@keyframes gwOffersShine {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.gw-offers-section {
  position: relative;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 55%, #ffe0b2 100%);
  border: 1.5px solid #ffcc80;
  border-radius: 20px;
  padding: 22px 22px 24px;
  overflow: hidden;
}
.gw-offers-section::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,140,0,.18) 0%, transparent 70%);
  pointer-events: none;
}
.gw-offers-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; position: relative; z-index: 1;
}
.gw-offers-title { display: flex; align-items: center; gap: 14px; }
.gw-offers-flame {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #ff6e40 0%, #fb8c00 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(251,140,0,.35);
  animation: gwFlameFlicker 1.8s ease-in-out infinite;
}
.gw-offers-title h2 {
  font-size: 22px; font-weight: 800;
  margin: 0; color: #e65100;
  background: linear-gradient(90deg, #e65100, #fb8c00, #e65100);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gwOffersShine 3.5s linear infinite;
}
.gw-offers-title p {
  margin: 2px 0 0; font-size: 12px; color: #8d5524; font-weight: 500;
}
.gw-offers-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #e65100;
  border: 1.5px solid #ffcc80; border-radius: 99px;
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.gw-offers-link:hover {
  background: #fb8c00; color: #fff; border-color: #fb8c00;
  transform: translateX(3px);
}
.gw-offers-grid { position: relative; z-index: 1; }
.gw-offers-section .gw-product-card {
  border-color: #ffe0b2;
  box-shadow: 0 4px 14px rgba(251,140,0,.08);
}
.gw-offers-section .gw-product-card:hover {
  border-color: #fb8c00;
  box-shadow: 0 14px 36px rgba(251,140,0,.22);
}
.gw-offers-section .gw-product-price { color: #e65100; }
.gw-offers-section .gw-badge-sale {
  background: linear-gradient(135deg, #ff5722 0%, #fb8c00 100%);
  font-size: 11px; padding: 4px 10px;
}
@media (max-width: 575.98px) {
  .gw-offers-section { padding: 16px 12px 18px; border-radius: 14px; }
  .gw-offers-title h2 { font-size: 18px; }
  .gw-offers-flame { width: 40px; height: 40px; font-size: 20px; }
  .gw-offers-link { padding: 6px 12px; font-size: 12px; }
}

/* ---- PRODUCT CARD ---- */
@keyframes gwCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gw-product-card {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1),
              box-shadow .35s cubic-bezier(.2,.8,.2,1),
              border-color .25s ease;
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
  animation: gwCardIn .5s ease both;
}
.gw-product-card:nth-child(2) { animation-delay: .05s; }
.gw-product-card:nth-child(3) { animation-delay: .10s; }
.gw-product-card:nth-child(4) { animation-delay: .15s; }
.gw-product-card:nth-child(5) { animation-delay: .20s; }
.gw-product-card:nth-child(6) { animation-delay: .25s; }
.gw-product-card:nth-child(7) { animation-delay: .30s; }
.gw-product-card:nth-child(8) { animation-delay: .35s; }
.gw-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(46,125,50,.14);
  border-color: #a5d6a7;
}
.gw-product-card.out-of-stock { opacity: .6; }

.gw-product-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #f8faf8 0%, #f1faf2 60%, #e8f5e9 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
}
.gw-product-img-wrap a { display: block; width: 100%; height: 100%; }
.gw-product-img {
  width: 100%; height: 100%;
  object-fit: cover; padding: 0;
  display: block;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.gw-product-img.gw-img-fallback { object-fit: contain; padding: 22%; mix-blend-mode: multiply; }
.gw-product-card:hover .gw-product-img { transform: scale(1.08); }
.gw-product-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.12) 100%);
  opacity: 0; transition: opacity .35s ease;
}
.gw-product-card:hover .gw-product-img-wrap::after { opacity: 1; }

.gw-product-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.gw-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 99px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
}
.gw-badge-sale    { background: #ff5722; color: #fff; }
.gw-badge-organic { background: #558b2f; color: #fff; }
.gw-badge-fresh   { background: #0288d1; color: #fff; }
.gw-badge-new     { background: #7b1fa2; color: #fff; }

.gw-fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.85); border: 1px solid var(--gw-border);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; cursor: pointer; font-size: 15px;
  transition: all .2s;
}
.gw-fav-btn:hover, .gw-fav-btn.active { color: #e53935; border-color: #ef9a9a; }

.gw-product-body {
  padding: 14px; flex: 1; display: flex; flex-direction: column;
}
.gw-product-category {
  font-size: 11px; font-weight: 600; color: var(--gw-green);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.gw-product-name {
  font-size: 14px; font-weight: 600; color: var(--gw-text);
  line-height: 1.3; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gw-product-sub {
  font-size: 12px; color: var(--gw-text-soft); margin-bottom: 8px;
}
.gw-product-price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 12px; margin-top: auto;
}
.gw-product-price {
  font-size: 18px; font-weight: 700; color: var(--gw-green);
}
.gw-product-old-price {
  font-size: 12px; color: #aaa; text-decoration: line-through;
}
.gw-unavailable {
  font-size: 12px; font-weight: 600; color: #999;
  text-align: center; padding: 10px 0;
}

/* Add to cart control */
.gw-add-ctrl {
  display: flex; align-items: center;
  background: var(--gw-green-pale);
  border: 1.5px solid #c8e6c9; border-radius: 10px;
  overflow: hidden;
}
.gw-qty-btn {
  width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--gw-green); font-size: 18px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.gw-qty-btn:hover { background: #dcedc8; }
.gw-qty-input {
  flex: 1; text-align: center; border: 0; background: transparent;
  font-size: 15px; font-weight: 700; color: var(--gw-text);
  width: 40px; outline: none;
}
.gw-add-btn {
  width: 100%; padding: 9px; border-radius: 10px;
  background: var(--gw-green); color: #fff;
  border: 0; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.gw-add-btn:hover { background: var(--gw-accent); }
.gw-add-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Mobile estreito: empilha qty + botão. A largura do card em 2 colunas
   (≈ 144px em iPhones de ~375px) não comporta qty (~112px) + Adicionar
   lado a lado, e os elementos sobrepunham. Empilhando, ambos ocupam
   100% da largura do card sem alterar o markup ou a lógica. */
@media (max-width: 575.98px) {
  .gw-product-card .gw-prod-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .gw-product-card .gw-prod-actions .gw-add-ctrl {
    width: 100%;
    justify-content: center;
  }
  .gw-product-card .gw-prod-actions .gw-add-btn {
    width: 100%;
    flex: none !important;       /* anula o flex:1 inline herdado */
    padding: 8px;
    font-size: 12.5px;
  }
}
@keyframes gwBadgePop {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.gw-cart-in-badge {
  display: none;
  align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: #fff; letter-spacing: .2px;
  background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-accent) 100%);
  border-radius: 99px; padding: 5px 12px;
  margin-bottom: 8px; width: fit-content; margin-left: auto; margin-right: auto;
  box-shadow: 0 4px 12px rgba(46,125,50,.25);
  animation: gwBadgePop .35s cubic-bezier(.2,.8,.2,1.2) both;
}
.gw-cart-in-badge.show { display: inline-flex; }
.gw-cart-in-badge::before {
  content: '\f26b'; /* bi-check-circle-fill */
  font-family: 'bootstrap-icons'; font-size: 13px;
  line-height: 1;
}

/* PRODUCT GRID */
.gw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media(min-width: 576px)  { .gw-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media(min-width: 768px)  { .gw-product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media(min-width: 992px)  { .gw-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1200px) { .gw-product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Seção "Você também pode gostar" compacta no desktop */
@media(min-width: 992px) {
  .gw-related .gw-product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gw-related .gw-product-card { border-radius: 14px; }
  .gw-related .gw-product-body { padding: 10px 12px; }
  .gw-related .gw-product-name { font-size: 13px; }
  .gw-related .gw-product-sub  { font-size: 11px; }
  .gw-related .gw-product-price { font-size: 15px; }
  .gw-related .gw-product-category { font-size: 10px; }
  .gw-related .gw-add-btn { font-size: 12px; padding: 7px; }
  .gw-related .gw-qty-btn { width: 28px; height: 30px; font-size: 14px; }
  .gw-related .gw-qty-input { width: 26px; font-size: 12px; }
  .gw-related .gw-select-btn { font-size: 12px; padding: 7px; }
  .gw-related .gw-section-title { font-size: 18px; }
}

/* Cards mobile mais compactos */
@media(max-width: 575.98px) {
  .gw-product-card { border-radius: 12px; }
  .gw-product-body { padding: 10px; }
  .gw-product-name { font-size: 13px; }
  .gw-product-price { font-size: 16px; }
  .gw-product-sub { font-size: 11px; }
  .gw-add-btn { font-size: 12px; padding: 8px; }
  .gw-qty-btn { width: 30px; height: 32px; font-size: 16px; }
  .gw-qty-input { width: 28px; font-size: 13px; }
  .gw-product-category { font-size: 10px; }
}

/* SKELETON */
.gw-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gw-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes gw-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* BUTTONS */
.btn-gw-primary {
  background: var(--gw-green); color: #fff;
  border: 0; border-radius: 10px; padding: 10px 24px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-gw-primary:hover { background: var(--gw-accent); color: #fff; }
.btn-gw-outline {
  background: transparent; color: var(--gw-green);
  border: 1.5px solid var(--gw-green); border-radius: 10px; padding: 9px 24px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-gw-outline:hover { background: var(--gw-green-pale); }

/* ==========================================================
   CART PAGE — layout moderno com imagem em destaque
   ========================================================== */

/* Hero */
.gw-cart-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.gw-cart-hero-title { display: flex; align-items: center; gap: 14px; }
.gw-cart-hero-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.gw-cart-hero h1 {
  font-size: 22px; font-weight: 800; margin: 0;
  letter-spacing: -0.01em; color: var(--gw-text);
}
.gw-cart-hero-sub { font-size: 13px; color: var(--gw-text-soft); margin-top: 2px; }

/* Lista */
.gw-cart-list {
  display: flex; flex-direction: column; gap: 12px;
}

/* Item card */
.gw-cart-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: border-color .2s, box-shadow .2s, transform .22s, opacity .22s;
}
.gw-cart-item:hover {
  border-color: #c8e6c9;
  box-shadow: 0 6px 20px rgba(46, 125, 50, .06);
}
.gw-cart-item.is-removing {
  opacity: 0; transform: translateX(-14px);
  pointer-events: none;
}

/* Item indisponível na tabela do cliente — visível porém não comprável */
.gw-cart-item.is-unavailable {
  background: #fafafa;
  border-color: #e0e0e0;
  opacity: .85;
}
.gw-cart-item.is-unavailable .gw-cart-item-media img,
.gw-cart-item.is-unavailable .gw-cart-item-name,
.gw-cart-item.is-unavailable .gw-cart-item-price {
  filter: grayscale(1);
  color: #888;
}
.gw-cart-item.is-unavailable .gw-cart-item-name,
.gw-cart-item.is-unavailable .gw-cart-item-price {
  text-decoration: line-through;
}
.gw-cart-item-unavailable-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #fff3e0; color: #b85500;
  font-size: 11px; font-weight: 700;
  border: 1px solid #ffcc80;
  margin-top: 4px;
}
.gw-cart-item-qty-locked {
  display: inline-block;
  padding: 6px 12px; border-radius: 8px;
  background: #f5f5f5; color: #888;
  font-size: 12px; font-weight: 600;
}

/* IMAGEM — agora em destaque */
.gw-cart-item-media {
  width: 120px; height: 120px;
  margin: 0;
  border-radius: 14px;
  background: linear-gradient(155deg, #f8faf8, #ffffff 80%);
  border: 1px solid var(--gw-border);
  padding: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .25s ease;
}
.gw-cart-item-media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.gw-cart-item:hover .gw-cart-item-media img { transform: scale(1.04); }

/* Body */
.gw-cart-item-body {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.gw-cart-item-head {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
}
.gw-cart-item-name {
  font-size: 15.5px; font-weight: 700; color: var(--gw-text);
  margin: 0; line-height: 1.3; word-break: break-word;
}
.gw-cart-item-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  font-size: 11.5px; font-weight: 600;
}
.gw-cart-item-tag i { font-size: 12px; }

.gw-cart-item-price {
  font-size: 14px; font-weight: 700; color: var(--gw-text);
}
.gw-cart-item-price-unit {
  font-size: 12px; font-weight: 500; color: var(--gw-text-soft); margin-left: 2px;
}

.gw-cart-item-actions {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-top: 4px;
}

/* Quantity group refinado */
.gw-qty-group {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gw-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.gw-qty-group .gw-qty-btn {
  width: 34px; height: 34px; border: 0; background: transparent;
  color: var(--gw-text); font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.gw-qty-group .gw-qty-btn:hover {
  background: var(--gw-green-pale); color: var(--gw-green-dk);
}
.gw-qty-group .gw-qty-input {
  width: 42px; height: 34px; border: 0;
  text-align: center; font-size: 14px; font-weight: 600;
  color: var(--gw-text); background: transparent;
  -moz-appearance: textfield;
}
.gw-qty-group .gw-qty-input::-webkit-outer-spin-button,
.gw-qty-group .gw-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.gw-qty-group .gw-qty-input:focus { outline: 0; background: var(--gw-green-pale); }

/* Remove */
.gw-cart-item-remove {
  background: none; border: 0;
  padding: 6px 10px; border-radius: 8px;
  color: var(--gw-text-soft); font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
}
.gw-cart-item-remove:hover { color: #c62828; background: #ffebee; }
.gw-cart-item-remove i { font-size: 14px; }

/* Total do item (coluna direita) */
.gw-cart-item-total {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  min-width: 110px;
}
.gw-cart-item-total-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--gw-text-soft);
}
.gw-cart-item-total-value {
  font-size: 20px; font-weight: 800; color: var(--gw-green-dk);
  letter-spacing: -0.01em; line-height: 1.1;
  transition: color .2s;
}
.gw-pulse { animation: gw-pulse .45s ease; }
@keyframes gw-pulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.08); color: var(--gw-green); }
  100% { transform: scale(1); }
}

/* Rodapé da lista */
.gw-cart-list-actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; flex-wrap: wrap;
}
.gw-cart-clear {
  margin-left: auto;
  background: none; border: 1.5px solid transparent;
  padding: 9px 14px; border-radius: 10px;
  color: var(--gw-text-soft); font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.gw-cart-clear:hover {
  border-color: #ffcdd2; color: #c62828; background: #fff;
}

/* ---- SUMMARY ---- */
.gw-order-summary {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 16px;
  padding: 24px;
  position: sticky; top: calc(var(--gw-header-h) + 12px);
  box-shadow: 0 4px 16px rgba(16, 24, 40, .04);
}
.gw-order-summary-head {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--gw-border);
  margin-bottom: 14px;
}
.gw-order-summary-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.gw-order-summary h5 {
  font-size: 16px; font-weight: 800; margin: 0;
  color: var(--gw-text); letter-spacing: -0.01em;
}
.gw-order-summary-sub { font-size: 12px; color: var(--gw-text-soft); display: block; }

.gw-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 8px 0; color: var(--gw-text);
}
.gw-summary-row.gw-summary-shipping span:first-child {
  display: inline-flex; align-items: center; gap: 6px; color: var(--gw-text-soft);
  font-size: 13px;
}
.gw-summary-shipping-value { font-size: 12.5px; color: var(--gw-text-soft); font-style: italic; }

.gw-summary-row.total {
  font-size: 18px; font-weight: 800; color: var(--gw-green-dk);
  border-top: 1.5px solid var(--gw-border);
  margin-top: 10px; padding-top: 14px;
}
.gw-summary-row.total span:last-child { font-size: 22px; letter-spacing: -0.01em; }

.gw-summary-cta {
  width: 100%; justify-content: center;
  padding: 14px 16px; margin-top: 18px;
  font-size: 14.5px; font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(46, 125, 50, .22);
  display: inline-flex; align-items: center; gap: 8px;
}
.gw-summary-cta i { font-size: 17px; }

.gw-summary-login {
  font-size: 12px; color: var(--gw-text-soft); text-align: center;
  margin: 10px 0 0;
}
.gw-summary-login a { color: var(--gw-green-dk); font-weight: 600; text-decoration: none; }
.gw-summary-login a:hover { text-decoration: underline; }

.gw-summary-trust {
  list-style: none; padding: 14px 0 0; margin: 16px 0 0;
  border-top: 1px dashed var(--gw-border);
  display: flex; flex-direction: column; gap: 8px;
}
.gw-summary-trust li {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: var(--gw-text-soft);
}
.gw-summary-trust li i {
  color: var(--gw-green-dk); font-size: 14px;
  width: 20px; text-align: center;
}

/* Empty state refinado */
.gw-cart-empty-card {
  position: relative;
  padding: 56px 28px 40px;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

/* Banner opcional (quando pedido foi cancelado) */
.gw-cart-empty-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff4e0; color: #ef6c00;
  border: 1px solid #ffe0b2;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
  animation: gw-empty-slide-down .35s ease;
}
.gw-cart-empty-banner i { font-size: 15px; }
@keyframes gw-empty-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ilustração com círculos concêntricos + ícone pulsante */
.gw-cart-empty-illustration {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 24px;
}
.gw-cart-empty-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--gw-green-pale);
  opacity: .6;
}
.gw-cart-empty-circle-lg { animation: gw-empty-ring 2.4s ease-in-out infinite; }
.gw-cart-empty-circle-md {
  inset: 18px;
  background: var(--gw-green-soft);
  opacity: .9;
  animation: gw-empty-ring 2.4s ease-in-out infinite .3s;
}
.gw-cart-empty-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%;
  margin: 30px;
  box-shadow: 0 8px 20px rgba(46, 125, 50, .12);
  animation: gw-empty-float 3s ease-in-out infinite;
}
.gw-cart-empty-icon i {
  font-size: 36px;
  color: var(--gw-green-dk);
}
@keyframes gw-empty-ring {
  0%, 100% { transform: scale(1);    opacity: .35; }
  50%      { transform: scale(1.08); opacity: .6; }
}
@keyframes gw-empty-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Texto */
.gw-cart-empty-title {
  font-size: 22px; font-weight: 800; color: var(--gw-text);
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.gw-cart-empty-text {
  font-size: 14.5px; color: var(--gw-text-soft);
  line-height: 1.55; margin: 0 auto 26px;
  max-width: 440px;
}

/* Ações */
.gw-cart-empty-actions {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; margin-bottom: 32px;
}
.gw-empty-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-size: 14.5px; font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(46, 125, 50, .22);
}
.gw-empty-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px; font-weight: 600;
  color: var(--gw-text-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.gw-empty-cta-secondary:hover {
  color: var(--gw-green-dk); background: var(--gw-green-pale);
}

/* Highlights / vantagens */
.gw-cart-empty-highlights {
  list-style: none; padding: 20px 0 0; margin: 0;
  border-top: 1px dashed var(--gw-border);
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
}
.gw-cart-empty-highlights li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--gw-text-soft);
}
.gw-cart-empty-highlights i {
  color: var(--gw-green-dk); font-size: 16px;
}

@media (max-width: 560px) {
  .gw-cart-empty-card { padding: 40px 20px 32px; border-radius: 16px; }
  .gw-cart-empty-illustration { width: 120px; height: 120px; }
  .gw-cart-empty-title { font-size: 19px; }
  .gw-cart-empty-text  { font-size: 14px; }
  .gw-cart-empty-highlights { gap: 14px 20px; }
}

/* Responsivo: tablet */
@media (max-width: 991px) {
  .gw-cart-item {
    grid-template-columns: 108px 1fr;
    grid-template-areas:
      "media body"
      "total total";
    gap: 14px;
  }
  .gw-cart-item-media { grid-area: media; width: 108px; height: 108px; }
  .gw-cart-item-body  { grid-area: body; }
  .gw-cart-item-total {
    grid-area: total;
    flex-direction: row; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--gw-border); padding-top: 12px;
    width: 100%; text-align: left;
  }
  .gw-cart-item-total-label { font-size: 11px; }
  .gw-cart-item-total-value { font-size: 22px; }
  .gw-order-summary { position: static; margin-top: 16px; }
}

/* Responsivo: mobile */
@media (max-width: 560px) {
  .gw-cart-hero h1 { font-size: 19px; }
  .gw-cart-item {
    padding: 14px;
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
  .gw-cart-item-media { width: 96px; height: 96px; padding: 8px; }
  .gw-cart-item-name { font-size: 14.5px; }
  .gw-cart-item-actions { gap: 10px; }
  .gw-qty-group .gw-qty-btn { width: 32px; height: 32px; }
  .gw-qty-group .gw-qty-input { width: 38px; height: 32px; }
  .gw-cart-list-actions .gw-cart-clear { margin-left: 0; }
}

/* ==========================================================
   CHECKOUT — layout moderno (método em cards, painel cartão refinado)
   ========================================================== */

/* Hero */
.gw-checkout-hero {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.gw-checkout-hero-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.gw-checkout-hero h1 {
  font-size: 22px; font-weight: 800; margin: 0;
  letter-spacing: -0.01em; color: var(--gw-text);
}
.gw-checkout-hero-sub { font-size: 13px; color: var(--gw-text-soft); margin-top: 2px; }

/* Cards de seção */
.gw-checkout-card {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .03);
}
.gw-checkout-card-head {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--gw-border);
}
.gw-checkout-card-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.gw-checkout-card h5 {
  font-size: 15.5px; font-weight: 800; margin: 0;
  color: var(--gw-text); padding: 0; border: 0;
  letter-spacing: -0.01em;
}
.gw-checkout-card-sub {
  font-size: 12px; color: var(--gw-text-soft); display: block;
}

/* Identificação */
.gw-identity {
  display: flex; gap: 14px; align-items: center;
}
.gw-identity-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gw-green-dk), var(--gw-green-light));
  color: #fff; font-weight: 800; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: -0.01em;
}
.gw-identity-info { min-width: 0; }
.gw-identity-name {
  font-size: 15px; font-weight: 700; color: var(--gw-text); line-height: 1.3;
}
.gw-identity-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: 6px; font-size: 12.5px; color: var(--gw-text-soft);
}
.gw-identity-meta span { display: inline-flex; align-items: center; gap: 5px; }
.gw-identity-meta i { font-size: 12px; }

/* Alerts */
.gw-info-alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: #e3f2fd; border: 1px solid #bbdefb;
  color: #0d47a1; font-size: 13px; line-height: 1.4;
  padding: 12px 14px; border-radius: 10px;
  margin-bottom: 16px;
}
.gw-info-alert i { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

/* Method picker (cards grandes) */
.gw-method-picker {
  display: grid; gap: 10px;
}
.gw-method-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--gw-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .2s;
}
.gw-method-card:hover {
  border-color: #c5d4db;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
}
.gw-method-card.selected {
  border-color: var(--gw-green-dk);
  background: linear-gradient(165deg, var(--gw-green-pale) 0%, #fff 100%);
  box-shadow: 0 4px 16px rgba(46, 125, 50, .12);
}
.gw-method-input {
  position: absolute; opacity: 0; pointer-events: none;
}

.gw-method-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--gw-bg-alt); color: var(--gw-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  transition: background .18s, color .18s;
}
.gw-method-card.method-pix    .gw-method-icon { background: #e3f7e6; color: var(--gw-green-dk); }
.gw-method-card.method-card   .gw-method-icon { background: #e3f2fd; color: #1565c0; }
.gw-method-card.method-direct .gw-method-icon { background: #fff4e0; color: #ef6c00; }
.gw-method-card.selected .gw-method-icon {
  background: var(--gw-green-dk); color: #fff;
  box-shadow: 0 4px 12px rgba(46, 125, 50, .25);
}

.gw-method-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw-method-title {
  font-size: 15px; font-weight: 700; color: var(--gw-text);
  letter-spacing: -0.01em;
}
.gw-method-sub {
  font-size: 12.5px; color: var(--gw-text-soft); line-height: 1.3;
}

.gw-method-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gw-border);
  display: inline-block; position: relative;
  transition: border-color .18s;
  flex-shrink: 0;
}
.gw-method-card.selected .gw-method-radio {
  border-color: var(--gw-green-dk);
}
.gw-method-card.selected .gw-method-radio::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--gw-green-dk);
}

/* Painel do cartão (pós-seleção) */
.gw-card-panel {
  margin-top: 14px;
  padding: 20px;
  background: #fafbfc;
  border: 1px solid var(--gw-border);
  border-radius: 14px;
  animation: gw-fade-in .25s ease;
}
.gw-card-panel[hidden] { display: none; }
@keyframes gw-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gw-card-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #1565c0;
  margin-bottom: 14px;
}
.gw-card-panel-head > .gw-card-pill {
  margin-left: auto;
  position: static; transform: none;
}
.gw-card-panel .gw-form-group { margin-bottom: 14px; }
.gw-card-panel .gw-form-group.mb-0 { margin-bottom: 0; }
.gw-card-panel .gw-form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gw-border); border-radius: 10px;
  font-size: 14px; color: var(--gw-text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.gw-card-panel .gw-form-control:focus {
  outline: 0; border-color: var(--gw-green-dk);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}
.gw-card-panel textarea.gw-form-control { resize: none; }

.gw-checkout-card-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.1fr;
  gap: 10px;
  transition: grid-template-columns .25s ease;
}
#cardPanel.is-debit .gw-checkout-card-row,
#cardPanel.is-prepaid .gw-checkout-card-row { grid-template-columns: 1fr 1fr; }
#cardPanel.is-debit .gw-form-col-inst,
#cardPanel.is-prepaid .gw-form-col-inst { display: none; }

.gw-card-panel-hint {
  font-size: 11.5px; color: var(--gw-text-soft); margin: 12px 0 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.gw-card-panel-hint i { color: var(--gw-green-dk); }

/* Painel PIX no checkout */
.gw-pix-panel { margin-top: 14px; animation: gw-fade-in .25s ease; }
.gw-pix-panel[hidden] { display: none; }
.gw-direct-panel { margin-top: 14px; animation: gw-fade-in .25s ease; }
.gw-direct-panel[hidden] { display: none; }
.gw-direct-panel .gw-info-alert { margin-bottom: 0; }

/* ---- RESUMO LATERAL (checkout) ---- */
.gw-checkout-summary { padding: 24px; }
.gw-checkout-items {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.gw-checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gw-border);
}
.gw-checkout-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gw-checkout-item-media {
  position: relative;
  width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(155deg, #f8faf8, #ffffff 80%);
  border: 1px solid var(--gw-border);
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gw-checkout-item-media img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.gw-checkout-item-qty {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 100px;
  background: var(--gw-green-dk); color: #fff;
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(46, 125, 50, .3);
}
.gw-checkout-item-body { min-width: 0; }
.gw-checkout-item-name {
  font-size: 13.5px; font-weight: 600; color: var(--gw-text);
  line-height: 1.3; word-break: break-word;
}
.gw-checkout-item-price-unit {
  font-size: 11.5px; color: var(--gw-text-soft); margin-top: 2px;
}
.gw-checkout-item-total {
  font-size: 14px; font-weight: 700; color: var(--gw-green-dk);
  white-space: nowrap;
}

.gw-checkout-summary-totals {
  padding-top: 14px;
  border-top: 1px solid var(--gw-border);
}
.gw-checkout-summary-totals .gw-summary-row {
  font-size: 14px; padding: 6px 0;
}
.gw-checkout-summary-totals .gw-summary-row span:first-child {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gw-text);
}
.gw-checkout-summary-totals .gw-summary-row.total {
  border-top: 1.5px solid var(--gw-border);
  margin-top: 10px; padding-top: 12px;
  font-size: 18px; font-weight: 800; color: var(--gw-green-dk);
}
.gw-checkout-summary-totals .gw-summary-row.total span:last-child {
  font-size: 22px;
}

.gw-checkout-summary .gw-summary-cta {
  margin-top: 18px;
}

/* Responsivo */
@media (max-width: 991px) {
  .gw-checkout-summary { position: static; margin-top: 16px; }
}
@media (max-width: 560px) {
  .gw-checkout-card { padding: 18px; border-radius: 14px; }
  .gw-checkout-card-head { padding-bottom: 12px; margin-bottom: 14px; }
  .gw-method-card { padding: 14px; gap: 12px; grid-template-columns: 44px 1fr auto; }
  .gw-method-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
  .gw-method-title { font-size: 14px; }
  .gw-method-sub { font-size: 11.5px; }
  .gw-card-panel { padding: 16px; }
  .gw-checkout-card-row { grid-template-columns: 1fr 1fr; }
  .gw-checkout-card-row .gw-form-col-inst { grid-column: 1 / -1; }
}


/* ---- AUTH ---- */
.gw-auth-page {
  display: flex; min-height: calc(100vh - 140px);
  align-items: stretch;
}
.gw-auth-brand-panel {
  flex: 0 0 420px;
  background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 55%, #43a047 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px; gap: 20px; position: relative; overflow: hidden;
}
.gw-auth-brand-panel::before {
  content: ''; position: absolute; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.05);
  top: -80px; right: -80px;
}
.gw-auth-brand-panel::after {
  content: ''; position: absolute; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,.05);
  bottom: -40px; left: -40px;
}
.gw-auth-brand-icon {
  width: 80px; height: 80px; border-radius: 24px;
  background: rgba(255,255,255,.15); display: flex;
  align-items: center; justify-content: center;
  font-size: 40px; color: #fff; position: relative; z-index: 1;
}
.gw-auth-brand-panel h2 {
  color: #fff; font-size: 28px; font-weight: 800;
  margin: 0; position: relative; z-index: 1;
}
.gw-auth-brand-panel p {
  color: rgba(255,255,255,.8); font-size: 15px;
  text-align: center; margin: 0; position: relative; z-index: 1;
}
.gw-auth-brand-features {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1;
}
.gw-auth-brand-features li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.9); font-size: 13px;
}
.gw-auth-brand-features li i { font-size: 16px; color: #a5d6a7; }
.gw-auth-form-panel {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 40px 24px;
  background: var(--gw-bg-alt);
}
.gw-auth-card {
  width: 100%; max-width: 600px;
  background: #fff; border: 1.5px solid var(--gw-border);
  border-radius: var(--gw-radius); padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.gw-auth-logo { text-align: center; margin-bottom: 20px; }
.gw-auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.gw-auth-sub   { font-size: 14px; color: var(--gw-text-soft); text-align: center; margin-bottom: 28px; }
.gw-input-wrap { position: relative; }
.gw-input-wrap .gw-form-control { padding-right: 42px; }
.gw-input-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gw-text-soft);
  font-size: 16px; padding: 0; line-height: 1;
}
.gw-input-toggle:hover { color: var(--gw-green); }
.gw-auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--gw-text-soft); font-size: 12px; margin: 20px 0;
}
.gw-auth-divider::before, .gw-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gw-border);
}
.gw-required { color: #e53935; font-size: 12px; }
.gw-auth-alert {
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.gw-auth-alert-error   { background: #fce4ec; color: #c62828; }
.gw-auth-alert-success { background: #e8f5e9; color: #2e7d32; }

/* Animações */
@keyframes gwSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gwFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.gw-slide-up  { animation: gwSlideUp .45s cubic-bezier(.22,.68,0,1.2) both; }
.gw-fade-in   { animation: gwFadeIn .35s ease both; }
.gw-float-anim { animation: gwFloat 3.5s ease-in-out infinite; }

/* Erro de validação em campo + shake do alerta */
@keyframes gwShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.gw-shake { animation: gwShake .45s cubic-bezier(.36,.07,.19,.97) both; }
.gw-field-error {
  border-color: #e53935 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,.12) !important;
  animation: gwShake .4s ease;
}
.gw-form-group { margin-bottom: 14px; }
.gw-form-label { font-size: 13px; font-weight: 600; color: var(--gw-text); margin-bottom: 5px; display: block; }
.gw-form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gw-border); border-radius: 10px;
  font-size: 14px; background: var(--gw-bg-alt);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.gw-form-control:focus {
  border-color: var(--gw-green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
  background: #fff;
}
.gw-form-control:disabled {
  background: #f5f6f8; color: #8a94a6; cursor: not-allowed;
}
.gw-form-help {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; font-size: 11.5px; color: var(--gw-text-soft);
}
.gw-form-help i { font-size: 12px; }

/* ==========================================================
   MINHA CONTA
   ========================================================== */

.gw-account-page { max-width: 980px; margin: 0 auto; }

/* Hero */
.gw-account-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #e8f5e9 0%, #f1faf2 55%, #fff8e1 100%);
  border: 1px solid #d7ebdb;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.gw-account-identity { flex: 1 1 260px; min-width: 0; }
.gw-account-avatar {
  width: 64px; height: 64px; font-size: 24px;
  box-shadow: 0 6px 16px rgba(46, 125, 50, .22);
}
.gw-account-greeting {
  font-size: 12.5px; font-weight: 600; color: var(--gw-green-dk);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 2px;
}
.gw-account-hero-name {
  font-size: 20px; font-weight: 800; color: var(--gw-text);
  letter-spacing: -0.01em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
}
.gw-account-hero .gw-identity-meta { margin-top: 8px; }

.gw-account-logout-form { margin: 0; }
.gw-account-logout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #fff;
  border: 1.5px solid #ffd9d4;
  color: #c62828;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.gw-account-logout-btn:hover {
  background: #c62828; border-color: #c62828; color: #fff;
}
.gw-account-logout-btn:active { transform: translateY(1px); }

/* Quick actions */
.gw-account-quick {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}
.gw-account-quick-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--gw-text);
  transition: border-color .15s, transform .1s, box-shadow .2s;
}
.gw-account-quick-card:hover {
  border-color: var(--gw-green-light);
  box-shadow: 0 6px 16px rgba(16, 24, 40, .06);
  transform: translateY(-1px);
  color: var(--gw-text);
}
.gw-account-quick-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.gw-account-quick-icon.is-blue   { background: #e3f2fd; color: #1565c0; }
.gw-account-quick-icon.is-green  { background: var(--gw-green-pale); color: var(--gw-green-dk); }
.gw-account-quick-icon.is-pink   { background: #fde2ec; color: #c2185b; }
.gw-account-quick-icon.is-orange { background: #fff3cd; color: #b26a00; }
.gw-account-quick-body { flex: 1; min-width: 0; }
.gw-account-quick-title {
  font-size: 13.5px; font-weight: 700;
  color: var(--gw-text); line-height: 1.25;
}
.gw-account-quick-sub {
  font-size: 11.5px; color: var(--gw-text-soft);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gw-account-quick-arrow {
  color: var(--gw-text-soft); font-size: 14px;
  transition: transform .15s, color .15s;
}
.gw-account-quick-card:hover .gw-account-quick-arrow {
  transform: translateX(2px); color: var(--gw-green-dk);
}

/* Savebar */
.gw-account-savebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 4px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .03);
}
.gw-account-savebar-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--gw-text-soft);
}
.gw-account-savebar-hint i { color: var(--gw-green-dk); font-size: 15px; }
.gw-account-save-btn {
  padding: 11px 22px;
  font-size: 14px; font-weight: 700;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(46, 125, 50, .2);
}

/* Mobile */
@media (max-width: 768px) {
  .gw-account-page { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .gw-account-hero {
    padding: 18px 18px;
    border-radius: 16px;
    flex-direction: column; align-items: flex-start;
  }
  .gw-account-logout-form { width: 100%; }
  .gw-account-logout-btn { width: 100%; justify-content: center; }
  .gw-account-avatar { width: 56px; height: 56px; font-size: 21px; }
  .gw-account-hero-name { font-size: 18px; }

  .gw-account-quick { grid-template-columns: repeat(2, 1fr); }
  .gw-account-quick-card { padding: 12px 12px; gap: 10px; }
  .gw-account-quick-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
  .gw-account-quick-title { font-size: 13px; }
  .gw-account-quick-sub { font-size: 11px; }

  /* Savebar sticky no mobile (fica acima da bottom-nav) */
  .gw-account-savebar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom) + 8px);
    z-index: 450;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
  }
  .gw-account-savebar-hint { display: none; }
  .gw-account-save-btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
  .gw-account-quick { grid-template-columns: 1fr; }
  .gw-account-quick-card { padding: 12px 14px; }
}

/* ---- TOASTS ---- */
.gw-toast-container {
  position: fixed; bottom: 80px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
@media(min-width:992px) { .gw-toast-container { bottom: 24px; } }
.gw-toast {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--gw-border);
  border-radius: 12px; padding: 12px 18px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--gw-shadow-md);
  transform: translateY(20px); opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
}
.gw-toast.show { transform: translateY(0); opacity: 1; }
.gw-toast-success { border-left: 3px solid #4caf50; }
.gw-toast-success i { color: #4caf50; }
.gw-toast-error   { border-left: 3px solid #f44336; }
.gw-toast-error i { color: #f44336; }
.gw-toast-warning { border-left: 3px solid #f57c00; }
.gw-toast-warning i { color: #f57c00; }
.gw-toast-info    { border-left: 3px solid #1976d2; }
.gw-toast-info i { color: #1976d2; }
/* Static flash toast top-right */
#flashToast {
  position: fixed; top: calc(var(--gw-header-h) + 12px); right: 16px; z-index: 9999;
}

/* ---- MOBILE BOTTOM NAV ---- */
.gw-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--gw-border);
  display: flex; align-items: stretch; justify-content: space-around;
  height: 64px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 14px rgba(0,0,0,.05);
}
.gw-bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--gw-text-soft);
  position: relative; padding: 4px 6px; border-radius: 12px;
  transition: color .2s, background .2s, transform .15s;
}
.gw-bottom-nav-item i { font-size: 20px; line-height: 1; transition: transform .2s; }
.gw-bottom-nav-item:hover { color: var(--gw-green); }
.gw-bottom-nav-item.active {
  color: var(--gw-green);
  background: var(--gw-green-pale);
}
.gw-bottom-nav-item.active i {
  transform: scale(1.1);
}
.gw-bottom-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  line-height: 1;
}
.gw-cart-badge-bottom {
  position: absolute; top: -6px; right: -10px;
  background: var(--gw-orange); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* ---- LIST PAGE HEADER ---- */
.gw-list-hero {
  background: linear-gradient(120deg, #e8f5e9 0%, #f1faf2 55%, #fff8e1 100%);
  border-radius: var(--gw-radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  border: 1px solid #e5f0e7;
}
.gw-list-hero h1 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700; color: var(--gw-text); margin: 0 0 4px;
  letter-spacing: -.3px;
}
.gw-list-hero p { font-size: 13px; color: var(--gw-text-soft); margin: 0; }
.gw-list-hero .gw-list-count {
  background: rgba(255,255,255,.7);
  border: 1px solid #c8e6c9;
  border-radius: 99px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; color: var(--gw-green);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Sidebar card */
.gw-sidebar-card {
  background: #fff; border: 1.5px solid var(--gw-border);
  border-radius: var(--gw-radius); padding: 16px;
  position: sticky; top: calc(var(--gw-header-h) + 12px);
}
.gw-sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  color: var(--gw-text-soft); text-transform: uppercase;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.gw-sidebar-list { display: flex; flex-direction: column; gap: 4px; }
.gw-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--gw-text);
  background: transparent; border: 1.5px solid transparent;
  transition: all .2s;
}
.gw-sidebar-item i { font-size: 16px; color: var(--gw-text-soft); transition: color .2s; }
.gw-sidebar-item:hover {
  background: var(--gw-green-soft);
  color: var(--gw-green);
}
.gw-sidebar-item:hover i { color: var(--gw-green); }
.gw-sidebar-item.active {
  background: var(--gw-green-pale);
  border-color: #a5d6a7;
  color: var(--gw-green); font-weight: 700;
}
.gw-sidebar-item.active i { color: var(--gw-green); }

/* Mobile filter bar sticky (scroll horizontal) */
.gw-mobile-filters {
  display: none;
  gap: 8px; align-items: center;
  position: sticky; top: var(--gw-header-h); z-index: 100;
  background: #fff;
  padding: 10px 12px;
  margin: 0 -12px 12px;
  border-bottom: 1px solid var(--gw-border);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  max-width: 100vw;
}
.gw-mobile-filters::-webkit-scrollbar { display: none; }
@media (max-width: 991.98px) {
  .gw-mobile-filters { display: flex; }
}
.gw-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1.5px solid var(--gw-border);
  color: var(--gw-text); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.gw-filter-pill.active { background: var(--gw-green-pale); border-color: #a5d6a7; color: var(--gw-green); }
.gw-mobile-filters .gw-sort-select {
  flex-shrink: 0; max-width: 110px; padding: 6px 8px; font-size: 12.5px;
}

/* Drawer */
.gw-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.gw-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.gw-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw);
  background: #fff; z-index: 1041;
  transform: translateX(-100%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  box-shadow: 6px 0 30px rgba(0,0,0,.15);
}
.gw-drawer.open { transform: translateX(0); }
.gw-drawer-header {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gw-border);
}
.gw-drawer-header h5 { font-size: 16px; font-weight: 700; margin: 0; }
.gw-drawer-close {
  border: 0; background: transparent; font-size: 22px; color: var(--gw-text-soft); cursor: pointer;
}
.gw-drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }

/* Drawer — variação lateral direita (Meus Pedidos) */
.gw-drawer-right {
  right: 0; left: auto;
  width: min(480px, 92vw);
  transform: translateX(100%);
  border-radius: 18px 0 0 18px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
}
.gw-drawer-right.open { transform: translateX(0); }
.gw-drawer-title {
  font-size: 17px; font-weight: 700; color: var(--gw-text); margin: 0;
  letter-spacing: -0.01em;
}
.gw-drawer-right .gw-drawer-header {
  padding: 16px 20px;
  background: #fff;
  position: sticky; top: 0; z-index: 2;
}
.gw-drawer-right .gw-drawer-body {
  padding: 18px 20px 24px;
  background: var(--gw-bg-alt);
}
.gw-drawer-right .gw-drawer-body::-webkit-scrollbar { width: 8px; }
.gw-drawer-right .gw-drawer-body::-webkit-scrollbar-thumb {
  background: #d6dbe0; border-radius: 8px;
}
.gw-drawer-right .gw-drawer-body::-webkit-scrollbar-track { background: transparent; }

body.gw-drawer-open { overflow: hidden; }

/* Cabeçalho interno do painel de detalhes */
.gw-order-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.gw-order-panel-number {
  font-size: 18px; font-weight: 700; color: var(--gw-text); letter-spacing: -0.01em;
}
.gw-order-panel-meta {
  font-size: 12.5px; color: var(--gw-text-soft); margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.gw-order-panel-meta i { font-size: 13px; }

/* Itens do pedido */
.gw-order-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--gw-border);
}
.gw-order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gw-order-item-img {
  width: 56px; height: 56px; object-fit: contain;
  border-radius: 10px; background: #f5f5f5; padding: 4px;
  flex-shrink: 0;
}
.gw-order-item-info { flex: 1; min-width: 0; }
.gw-order-item-name {
  font-size: 14px; font-weight: 600; color: var(--gw-text);
  line-height: 1.3;
}
.gw-order-item-sub {
  font-size: 12px; color: var(--gw-text-soft); margin-top: 2px;
}
.gw-order-item-total {
  font-weight: 700; color: var(--gw-green);
  font-size: 14px; white-space: nowrap;
}

.gw-order-address { font-size: 14px; color: #555; margin: 0; line-height: 1.5; }
.gw-order-notes   { font-size: 13px; color: #888; margin-top: 8px; }

/* Ações fixas no rodapé do drawer */
.gw-drawer-actions {
  position: sticky; bottom: 0; left: 0; right: 0;
  margin: 18px -20px -24px;
  padding: 14px 20px;
  background: #fff;
  border-top: 1px solid var(--gw-border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.05);
}

/* Skeleton de carregamento */
.gw-drawer-skeleton { display: flex; flex-direction: column; gap: 14px; }
.gw-drawer-skeleton-card {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 12px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.gw-drawer-skeleton .sk-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #eceff1 0%, #f7f9fa 50%, #eceff1 100%);
  background-size: 200% 100%;
  animation: gw-shimmer 1.3s infinite linear;
}
.gw-drawer-skeleton .sk-line-sm { width: 45%; height: 10px; }
.gw-drawer-skeleton .sk-line-lg { width: 60%; height: 16px; }
.gw-drawer-skeleton .sk-row { display: flex; align-items: center; gap: 12px; }
.gw-drawer-skeleton .sk-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gw-drawer-skeleton .sk-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: linear-gradient(90deg, #eceff1 0%, #f7f9fa 50%, #eceff1 100%);
  background-size: 200% 100%;
  animation: gw-shimmer 1.3s infinite linear;
  flex-shrink: 0;
}
@keyframes gw-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Estado de erro */
.gw-drawer-error {
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: 12px;
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.gw-drawer-error i {
  font-size: 36px; color: var(--gw-orange);
}
.gw-drawer-error-text {
  font-size: 14px; color: var(--gw-text-soft); line-height: 1.5;
}

/* Responsivo: mobile vira bottom sheet */
@media (max-width: 768px) {
  .gw-drawer-right {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 92vh;
    transform: translateY(100%);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
  }
  .gw-drawer-right.open { transform: translateY(0); }
  .gw-drawer-right::before {
    content: '';
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 4px; background: #d6dbe0;
    z-index: 3;
  }
  .gw-drawer-right .gw-drawer-header { padding-top: 22px; }
  .gw-drawer-actions {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* ---- FILTER BAR ---- */
.gw-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 14px 0;
}
.gw-filter-chip {
  padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--gw-border);
  background: #fff; color: var(--gw-text-soft);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.gw-filter-chip.active, .gw-filter-chip:hover {
  background: var(--gw-green-pale); border-color: #a5d6a7; color: var(--gw-green);
}
.gw-sort-select {
  padding: 6px 12px; border-radius: 10px;
  border: 1.5px solid var(--gw-border); background: #fff;
  font-size: 13px; color: var(--gw-text); cursor: pointer; outline: none;
  transition: border-color .2s;
}
.gw-sort-select:focus { border-color: var(--gw-green-light); }

/* ---- PAGINATION ---- */
.gw-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 32px; flex-wrap: wrap;
}
.gw-page-btn {
  min-width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--gw-border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--gw-text-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; text-decoration: none; padding: 0 10px;
}
.gw-page-btn:hover, .gw-page-btn.active {
  background: var(--gw-green); border-color: var(--gw-green); color: #fff;
}
.gw-page-btn.disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ---- FOOTER ---- */
.gw-footer {
  background: var(--gw-bg-alt); border-top: 1px solid var(--gw-border);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.gw-footer-brand { display: flex; align-items: center; gap: 8px; }
.gw-footer-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--gw-text); }
.gw-footer-links { list-style: none; padding: 0; margin: 0; }
.gw-footer-links li { margin-bottom: 8px; }
.gw-footer-links a { font-size: 13px; color: var(--gw-text-soft); transition: color .2s; }
.gw-footer-links a:hover { color: var(--gw-green); }
.gw-footer-divider { border-color: var(--gw-border); margin: 24px 0 16px; }

/* ---- ADMIN TABLES ---- */
.gw-table {
  width: 100%; background: #fff;
  border: 1.5px solid var(--gw-border); border-radius: 14px;
  overflow: hidden; border-collapse: collapse;
}
.gw-table thead th {
  background: var(--gw-bg-alt); font-size: 12px; font-weight: 700;
  color: var(--gw-text-soft); padding: 12px 16px; text-transform: uppercase; letter-spacing: .5px;
}
.gw-table tbody td { padding: 14px 16px; border-top: 1px solid var(--gw-border); font-size: 14px; }
.gw-table tbody tr:hover td { background: var(--gw-bg-alt); }

/* ---- EMPTY STATE ---- */
.gw-empty {
  text-align: center; padding: 60px 20px;
  color: var(--gw-text-soft);
}
.gw-empty i { font-size: 56px; color: #d0d7de; margin-bottom: 16px; display: block; }
.gw-empty h5 { font-size: 18px; font-weight: 700; color: var(--gw-text); margin-bottom: 8px; }
.gw-empty p  { font-size: 14px; margin-bottom: 20px; }

/* ---- BREADCRUMB ---- */
.gw-breadcrumb { font-size: 13px; color: var(--gw-text-soft); margin-bottom: 20px; }
.gw-breadcrumb a { color: var(--gw-green); }
.gw-breadcrumb span { margin: 0 6px; }

/* ---- STATUS BADGE ---- */
.gw-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
}
.gw-status-pending    { background: #fff3e0; color: #e65100; }
.gw-status-confirmed  { background: #e3f2fd; color: #1565c0; }
.gw-status-preparing  { background: #fff8e1; color: #f57f17; }
.gw-status-delivering { background: #e8f5e9; color: var(--gw-green); }
.gw-status-delivered  { background: #e8f5e9; color: #1b5e20; }
.gw-status-cancelled  { background: #fce4ec; color: #b71c1c; }

/* ---- DASHBOARD STATS ---- */
.gw-stat-card {
  background: #fff; border: 1.5px solid var(--gw-border);
  border-radius: var(--gw-radius); padding: 20px;
}
.gw-stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.gw-stat-value { font-size: 26px; font-weight: 700; }
.gw-stat-label { font-size: 13px; color: var(--gw-text-soft); }

/* ---- PRODUCT SHOW ---- */
.gw-product-gallery {
  background: linear-gradient(135deg, #f8faf8 0%, #f1faf2 60%, #e8f5e9 100%);
  border-radius: var(--gw-radius);
  aspect-ratio: 1 / 1;
  overflow: hidden; position: relative; cursor: zoom-in;
}
.gw-product-gallery img {
  width: 100%; height: 100%;
  object-fit: cover; padding: 0; display: block;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.gw-product-gallery:hover img { transform: scale(1.05); }
.gw-product-gallery img.gw-img-fallback {
  object-fit: contain; padding: 18%; mix-blend-mode: multiply;
}
.gw-product-gallery .gw-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,.92); color: var(--gw-green);
  border-radius: 99px; padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.gw-product-gallery:hover .gw-zoom-hint { opacity: 1; transform: translateY(0); }

/* Lightbox */
.gw-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
  animation: gwFadeIn .25s ease;
}
.gw-lightbox.open { display: flex; }
.gw-lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: gwLightboxIn .3s cubic-bezier(.2,.8,.2,1);
}
.gw-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  border: 0; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gw-lightbox-close:hover { background: rgba(255,255,255,.25); }
@keyframes gwLightboxIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* UTILS */
.text-green { color: var(--gw-green) !important; }
.bg-green-pale { background: var(--gw-green-pale) !important; }
.rounded-gw { border-radius: var(--gw-radius) !important; }

/* ---- PRODUCT SELECTION (corte/peso) ---- */
.gw-product-select-hint {
  font-size: 12.5px; color: var(--gw-text-soft); font-weight: 500;
  display: flex; align-items: center; gap: 5px; padding: 4px 0;
}
.gw-select-btn {
  width: 100%; margin-top: 8px; padding: 10px 14px;
  background: var(--gw-orange); border: 0;
  border-radius: var(--gw-radius-sm); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.gw-select-btn:hover { background: #e65100; }

/* ---- CORTE/PESO SELECTION MODAL ---- */
.gw-cut-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .25s;
}
.gw-cut-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.gw-cut-modal-wrap {
  position: fixed; inset: 0; z-index: 1051;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.gw-cut-modal-wrap.open { pointer-events: auto; }

.gw-cut-modal {
  background: #fff; width: 100%; max-width: 540px;
  border-radius: 20px 20px 0 0;
  max-height: 90vh; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,1,.23,1);
  box-shadow: 0 -6px 40px rgba(0,0,0,.18);
}
.gw-cut-modal-wrap.open .gw-cut-modal { transform: translateY(0); }

@media (min-width: 600px) {
  .gw-cut-modal-wrap { align-items: center; }
  .gw-cut-modal {
    border-radius: 20px; max-height: 88vh;
    transform: scale(.92) translateY(20px); opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
  }
  .gw-cut-modal-wrap.open .gw-cut-modal { transform: scale(1) translateY(0); opacity: 1; }
}

.gw-cut-modal-header {
  position: relative; flex-shrink: 0;
  border-bottom: 1px solid var(--gw-border);
}
.gw-cut-modal-img {
  width: 100%; height: 170px; object-fit: cover;
  border-radius: 20px 20px 0 0; display: block;
}
@media (min-width: 600px) { .gw-cut-modal-img { border-radius: 20px 20px 0 0; } }

.gw-cut-modal-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.45); border: 0; border-radius: 50%;
  width: 32px; height: 32px; color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.gw-cut-modal-body { flex: 1; overflow-y: auto; padding: 16px; }

.gw-cut-modal-name {
  font-size: 16px; font-weight: 700; margin: 0 0 16px; line-height: 1.35;
}

.gw-cut-section {
  border: 1.5px solid var(--gw-border); border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
}
.gw-cut-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.gw-cut-section-title { font-size: 14px; font-weight: 700; }
.gw-cut-required-badge {
  font-size: 11px; font-weight: 600;
  background: var(--gw-orange-pale); color: var(--gw-orange);
  border-radius: 99px; padding: 2px 9px;
}

.gw-cut-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.gw-cut-chip {
  padding: 8px 15px; border-radius: 99px;
  border: 1.5px solid var(--gw-border);
  background: #fff; color: var(--gw-text);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .18s;
}
.gw-cut-chip:hover { border-color: var(--gw-green-light); color: var(--gw-green); }
.gw-cut-chip.selected {
  background: var(--gw-green); border-color: var(--gw-green);
  color: #fff; font-weight: 600;
}
.gw-cut-chip.is-disabled {
  opacity: .45;
  background: #f8faf8;
  color: var(--gw-text-soft);
  border-color: var(--gw-border);
  border-style: dashed;
  text-decoration: line-through;
}
.gw-cut-chip.is-disabled:hover {
  opacity: .7;
  border-color: var(--gw-orange);
  color: var(--gw-orange);
  text-decoration: none;
}

.gw-cut-product-info {
  background: var(--gw-green-soft); border-radius: 12px;
  padding: 14px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 14px;
}
.gw-cut-product-thumb {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px; flex-shrink: 0;
}
.gw-cut-price-label { font-size: 12px; color: var(--gw-text-soft); margin-bottom: 2px; }
.gw-cut-price { font-size: 22px; font-weight: 700; color: var(--gw-green); }

.gw-cut-modal-footer {
  padding: 14px 16px; border-top: 1.5px solid var(--gw-border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.gw-cut-modal-footer .gw-qty-btn { width: 36px; height: 36px; }
.gw-cut-modal-footer .gw-qty-input { width: 40px; }
.gw-cut-modal-footer .gw-add-btn { flex: 1; }
.gw-cut-modal-footer .gw-add-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Novos elementos: ocultos por padrão (mobile mantido) */
.gw-cut-modal-description,
.gw-cut-price-hero { display: none; }
.gw-add-btn-price { display: none; }

/* ==========================================================
   MODAL PIX (checkout) — reutiliza .gw-pay-modal-* + conteúdo PIX
   ========================================================== */

/* Base do modal de pagamento (compartilhado) */
.gw-pay-modal .modal-dialog { max-width: 520px; }
.gw-pay-modal-content {
  border-radius: 18px; border: 0; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
}
.gw-pay-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--gw-border);
}
.gw-pay-modal-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gw-pay-modal-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--gw-green-pale); color: var(--gw-green-dk);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.gw-pay-modal-heading {
  margin: 0; font-size: 17px; font-weight: 700;
  color: var(--gw-text); letter-spacing: -0.01em;
}
.gw-pay-modal-subtitle { font-size: 12.5px; color: var(--gw-text-soft); margin-top: 2px; }
.gw-pay-modal-body { padding: 0; background: var(--gw-bg-alt); }
.gw-pay-modal-footer {
  padding: 12px 24px; background: #fff;
  border-top: 1px solid var(--gw-border);
  display: flex; justify-content: center;
}
.gw-pay-cancel-link {
  background: none; border: 0;
  padding: 8px 14px; border-radius: 8px;
  color: #c62828; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; transition: background .15s;
}
.gw-pay-cancel-link:hover { background: #ffebee; color: #b71c1c; }
.gw-pay-cancel-link:disabled { opacity: .5; cursor: not-allowed; }
.gw-pay-summary-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--gw-text-soft);
}
.gw-pay-summary-value {
  font-size: 30px; font-weight: 800; color: var(--gw-green-dk);
  margin-top: 6px; letter-spacing: -0.02em; line-height: 1.15;
}

/* Modal PIX — corpo */
.gw-pix-modal-body {
  padding: 24px; background: #fff;
  display: flex; flex-direction: column; gap: 18px;
}
.gw-pix-modal-amount {
  padding: 16px 18px;
  background: linear-gradient(155deg, var(--gw-green-pale) 0%, #fff 85%);
  border: 1px solid rgba(46, 125, 50, .18);
  border-radius: 12px;
  text-align: center;
}
.gw-pix-modal-amount .gw-pay-summary-value { font-size: 28px; }

.gw-pix-content {
  display: flex; flex-direction: column; gap: 14px;
}
.gw-pix-content[hidden] { display: none; }

.gw-pix-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 16px;
  color: var(--gw-text-soft); font-size: 13.5px;
}
.gw-pix-loading[hidden] { display: none; }
.gw-pix-loading .spinner-border { width: 36px; height: 36px; border-width: 3px; }

.gw-pix-qr-wrap {
  display: flex; justify-content: center;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--gw-border);
  border-radius: 14px;
}
.gw-pix-qr-img {
  width: 220px; height: 220px; object-fit: contain;
  display: block;
}

.gw-pix-instructions { font-size: 13px; color: var(--gw-text); }
.gw-pix-steps {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  background: var(--gw-bg-alt);
  border-radius: 12px;
}
.gw-pix-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--gw-text);
}
.gw-pix-step .num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gw-green-dk); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.gw-pix-copy {
  background: var(--gw-green-pale);
  border: 1px solid rgba(46, 125, 50, .18);
  border-radius: 12px;
  padding: 14px;
}
.gw-pix-copy-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--gw-green-dk);
  margin-bottom: 6px;
}
.gw-pix-copy textarea {
  width: 100%; border: 0; background: transparent;
  font-family: 'Courier New', monospace; font-size: 11.5px;
  color: var(--gw-text); resize: none; outline: none;
  padding: 4px 0 10px;
}
.gw-pix-copy .btn-gw-primary { width: 100%; justify-content: center; }

.gw-pix-status {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 16px;
  background: var(--gw-bg-alt);
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  color: var(--gw-text-soft);
}
.gw-pix-status[hidden] { display: none; }
.gw-pix-status .spinner-border { width: 16px; height: 16px; border-width: 2px; }

.gw-pix-error {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 20px;
  background: #fff;
  border: 1.5px solid #ffcdd2;
  border-radius: 12px;
  text-align: center;
}
.gw-pix-error[hidden] { display: none; }
.gw-pix-error > i { font-size: 36px; color: #c62828; }
.gw-pix-error-text { font-size: 13.5px; color: var(--gw-text); line-height: 1.45; }

/* Mobile: reduz paddings */
@media (max-width: 560px) {
  .gw-pay-modal-header { padding: 16px 18px; }
  .gw-pix-modal-body   { padding: 18px; gap: 14px; }
  .gw-pix-qr-img       { width: 180px; height: 180px; }
  .gw-pix-modal-amount .gw-pay-summary-value { font-size: 24px; }
}

/* ==========================================================
   MODAL DE CONFIRMAÇÃO — estilo SweetAlert
   ========================================================== */
.gw-confirm-modal .modal-dialog { max-width: 420px; }
.gw-confirm-content {
  border: 0; border-radius: 20px;
  padding: 30px 26px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
  animation: gw-confirm-in .28s cubic-bezier(.2, 1, .3, 1);
}
@keyframes gw-confirm-in {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Ícone (círculo colorido por tipo) */
.gw-confirm-icon-wrap {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 38px;
  position: relative;
  animation: gw-confirm-pop .45s cubic-bezier(.2, 1.4, .3, 1);
}
.gw-confirm-icon-wrap::before {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; opacity: .35;
  animation: gw-confirm-ring .6s ease;
}
@keyframes gw-confirm-pop {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes gw-confirm-ring {
  from { transform: scale(.6); opacity: .55; }
  to   { transform: scale(1.25); opacity: 0; }
}

.gw-confirm-icon-wrap.type-warning { background: #fff3cd; color: #f57c00; }
.gw-confirm-icon-wrap.type-warning::before { background: rgba(245, 124, 0, .25); }
.gw-confirm-icon-wrap.type-danger  { background: #ffebee; color: #c62828; }
.gw-confirm-icon-wrap.type-danger::before  { background: rgba(198, 40, 40, .22); }
.gw-confirm-icon-wrap.type-success { background: var(--gw-green-pale); color: var(--gw-green-dk); }
.gw-confirm-icon-wrap.type-success::before { background: rgba(46, 125, 50, .22); }
.gw-confirm-icon-wrap.type-info    { background: #e3f2fd; color: #1565c0; }
.gw-confirm-icon-wrap.type-info::before    { background: rgba(21, 101, 192, .22); }

/* Texto */
.gw-confirm-title {
  font-size: 19px; font-weight: 800; margin: 0 0 8px;
  color: var(--gw-text); letter-spacing: -0.01em;
}
.gw-confirm-message {
  font-size: 14px; color: var(--gw-text-soft); line-height: 1.5;
  margin: 0 0 22px;
}

/* Botões */
.gw-confirm-actions {
  display: flex; gap: 10px; justify-content: center;
}
.gw-confirm-btn-cancel,
.gw-confirm-btn-ok {
  flex: 1; max-width: 180px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  border: 1.5px solid transparent;
}
.gw-confirm-btn-cancel {
  background: #fff; border-color: var(--gw-border); color: var(--gw-text);
}
.gw-confirm-btn-cancel:hover {
  background: var(--gw-bg-alt); border-color: #c5d4db;
}

.gw-confirm-btn-ok { color: #fff; }
.gw-confirm-btn-ok.type-warning {
  background: #f57c00; box-shadow: 0 6px 16px rgba(245, 124, 0, .30);
}
.gw-confirm-btn-ok.type-warning:hover { background: #ef6c00; }
.gw-confirm-btn-ok.type-danger {
  background: #c62828; box-shadow: 0 6px 16px rgba(198, 40, 40, .30);
}
.gw-confirm-btn-ok.type-danger:hover { background: #b71c1c; }
.gw-confirm-btn-ok.type-success {
  background: var(--gw-green-dk); box-shadow: 0 6px 16px rgba(46, 125, 50, .28);
}
.gw-confirm-btn-ok.type-success:hover { background: #1b5e20; }
.gw-confirm-btn-ok.type-info {
  background: #1565c0; box-shadow: 0 6px 16px rgba(21, 101, 192, .30);
}
.gw-confirm-btn-ok.type-info:hover { background: #0d47a1; }

/* Garante que o confirm fica acima de outros modais abertos */
.gw-confirm-modal.show { z-index: 1070; }
.gw-confirm-modal ~ .modal-backdrop.show:last-of-type { z-index: 1065; }

/* Mobile */
@media (max-width: 480px) {
  .gw-confirm-content { padding: 24px 18px 18px; }
  .gw-confirm-icon-wrap { width: 64px; height: 64px; font-size: 32px; margin-bottom: 14px; }
  .gw-confirm-title { font-size: 17px; }
  .gw-confirm-message { font-size: 13.5px; margin-bottom: 18px; }
  .gw-confirm-actions { flex-direction: column-reverse; }
  .gw-confirm-btn-cancel, .gw-confirm-btn-ok { max-width: none; width: 100%; }
}

/* ====== DESKTOP — LAYOUT iFOOD 45/55 ====== */
@media (min-width: 768px) {
  .gw-cut-modal-wrap { align-items: center; }
  .gw-cut-modal {
    max-width: 820px;
    max-height: min(72vh, 580px);
    display: grid;
    grid-template-columns: 45% 55%;
    grid-template-rows: 1fr auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
  }

  /* Coluna esquerda: imagem ocupa toda a área */
  .gw-cut-modal-header {
    grid-column: 1; grid-row: 1 / -1;
    position: static;
    background: #f4f6f4;
    border-bottom: 0;
    display: block; padding: 0;
  }
  .gw-cut-modal-img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 0;
    display: block;
    transition: opacity .25s ease;
  }
  .gw-cut-modal-img.gw-img-changing { opacity: .3; }

  /* Close button no canto da direita (sobre o conteúdo, não sobre a imagem) */
  .gw-cut-modal-close {
    top: 14px; right: 14px;
    background: rgba(0,0,0,.1); color: #333;
    width: 32px; height: 32px; font-size: 14px;
  }
  .gw-cut-modal-close:hover { background: rgba(0,0,0,.18); }

  /* Coluna direita superior: scroll interno */
  .gw-cut-modal-body {
    grid-column: 2; grid-row: 1;
    padding: 26px 24px 10px;
    overflow-y: auto;
  }

  /* Oculta o bloco antigo de product-info (thumb + preço) no desktop */
  .gw-cut-product-info { display: none !important; }

  /* Nome mais forte */
  .gw-cut-modal-name {
    font-size: 20px; line-height: 1.3;
    margin: 0 44px 6px 0;
  }

  /* Descrição sutil */
  .gw-cut-modal-description {
    display: block;
    font-size: 13px; color: var(--gw-text-soft);
    line-height: 1.5; margin: 0 0 14px;
  }

  /* Preço em destaque */
  .gw-cut-price-hero {
    display: block;
    margin: 2px 0 18px;
  }
  .gw-cut-price-hero-label { display: none; }
  .gw-cut-price-hero-value {
    font-size: 28px; font-weight: 800; color: var(--gw-green);
    line-height: 1.1;
  }

  /* Rodapé com botão dinâmico */
  .gw-cut-modal-footer {
    grid-column: 2; grid-row: 2;
    padding: 14px 20px 18px;
    gap: 8px;
    border-top: 1px solid var(--gw-border);
  }
  .gw-cut-modal-footer .gw-add-btn {
    padding: 12px 16px; border-radius: 12px; font-size: 14px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-accent) 100%);
    box-shadow: 0 6px 16px rgba(46,125,50,.28);
    transition: all .22s cubic-bezier(.2,.8,.2,1);
  }
  .gw-cut-modal-footer .gw-add-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46,125,50,.34);
  }
  .gw-cut-modal-footer .gw-add-btn:disabled {
    opacity: .45; background: var(--gw-text-soft); box-shadow: none;
  }
  .gw-add-btn-main { display: inline-flex; align-items: center; gap: 8px; }
  .gw-add-btn-price {
    display: inline-block; font-weight: 800;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255,255,255,.18);
    min-width: 60px; text-align: right;
  }
  .gw-add-btn-price:empty { display: none; }
}

@media (min-width: 1200px) {
  .gw-cut-modal { max-width: 880px; }
}

@media (max-width: 575.98px) {
  .gw-select-btn { font-size: 12px; padding: 9px 10px; }
}

/* ==========================================================
   PRODUCT DETAIL PAGE (PDP) — layout moderno + animações
   ========================================================== */

/* Animações reutilizáveis */
@keyframes gwPdpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gwPdpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gwPdpChipIn {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gwPdpPricePulse {
  0%   { transform: scale(1); box-shadow: 0 6px 24px rgba(46,125,50,.10); }
  40%  { transform: scale(1.02); box-shadow: 0 14px 40px rgba(46,125,50,.22); }
  100% { transform: scale(1); box-shadow: 0 6px 24px rgba(46,125,50,.10); }
}
@keyframes gwPdpShine {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  60%  { transform: translateX(220%)  skewX(-18deg); }
  100% { transform: translateX(220%)  skewX(-18deg); }
}
@keyframes gwPdpFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes gwPdpBtnSpin {
  to { transform: rotate(360deg); }
}

/* Breadcrumb */
.gw-pdp-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.gw-pdp-breadcrumb a:hover { text-decoration: underline; }

/* Hero (gallery + info) */
.gw-pdp-hero { animation: gwPdpFadeIn .35s ease both; }

/* Gallery wrapper sticky no desktop */
.gw-pdp-gallery-wrap {
  animation: gwPdpFadeUp .5s cubic-bezier(.2,.8,.2,1) both;
}
@media (min-width: 992px) {
  .gw-pdp-gallery-wrap {
    position: sticky; top: calc(var(--gw-header-h) + 16px);
  }
}

.gw-pdp-gallery {
  position: relative;
  box-shadow: 0 18px 50px rgba(20, 60, 30, .08), 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid rgba(46,125,50,.08);
}
.gw-pdp-gallery img {
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.gw-pdp-gallery img.is-swap { opacity: 0; transform: scale(1.04); }
.gw-pdp-gallery:hover img { transform: scale(1.06); }

/* Shine sweep */
.gw-pdp-shine {
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  pointer-events: none; z-index: 2;
  animation: gwPdpShine 6s ease-in-out infinite;
  filter: blur(2px);
}

/* Badges sobrepostos à imagem */
.gw-pdp-img-badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 3;
}
.gw-pdp-img-badges .gw-badge {
  padding: 6px 12px; font-size: 12px; letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  animation: gwPdpFadeUp .5s cubic-bezier(.2,.8,.2,1) both;
}
.gw-pdp-img-badges .gw-badge:nth-child(2) { animation-delay: .08s; }

/* Info block */
.gw-pdp-info > * { animation: gwPdpFadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.gw-pdp-info > *:nth-child(1) { animation-delay: .05s; }
.gw-pdp-info > *:nth-child(2) { animation-delay: .10s; }
.gw-pdp-info > *:nth-child(3) { animation-delay: .15s; }
.gw-pdp-info > *:nth-child(4) { animation-delay: .20s; }
.gw-pdp-info > *:nth-child(5) { animation-delay: .25s; }
.gw-pdp-info > *:nth-child(6) { animation-delay: .30s; }
.gw-pdp-info > *:nth-child(7) { animation-delay: .35s; }
.gw-pdp-info > *:nth-child(8) { animation-delay: .40s; }

.gw-pdp-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  color: var(--gw-green); text-transform: uppercase; letter-spacing: .6px;
  background: var(--gw-green-pale); padding: 5px 11px;
  border-radius: 99px; margin-bottom: 10px;
}
.gw-pdp-eyebrow-sep { opacity: .6; margin: 0 2px; }

.gw-pdp-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -0.015em; margin: 0 0 6px;
  color: var(--gw-text);
}
.gw-pdp-unit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gw-text-soft); font-size: 13.5px; margin: 0 0 18px;
}
.gw-pdp-unit i { color: var(--gw-green); }

/* Card de preço */
.gw-pdp-price-card {
  position: relative;
  background: linear-gradient(135deg, #f1faf2 0%, #e8f5e9 60%, #dcedc8 100%);
  border: 1px solid rgba(46,125,50,.18);
  border-radius: var(--gw-radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(46,125,50,.10);
  transition: box-shadow .25s ease;
}
.gw-pdp-price-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.6) 0%, transparent 55%);
  pointer-events: none;
}
.gw-pdp-price-card.is-pulse { animation: gwPdpPricePulse .6s ease; }
.gw-pdp-price-card.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  background-size: 200% 100%;
  animation: gw-shimmer 1.1s linear infinite;
  pointer-events: none;
}

.gw-pdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gw-pdp-price {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800; color: var(--gw-green);
  line-height: 1; letter-spacing: -0.02em;
}
.gw-pdp-old-price {
  font-size: 16px; color: #8c9a8e; text-decoration: line-through;
}
.gw-pdp-price-sub {
  margin-top: 6px; font-size: 12.5px;
  color: var(--gw-text-soft); font-weight: 500;
}
.gw-pdp-price-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--gw-green);
}
.gw-pdp-price-hint i {
  font-size: 18px;
  animation: gwPdpFloat 1.8s ease-in-out infinite;
}

/* Cut/peso sections — refinos sobre o estilo já existente */
.gw-pdp-section {
  background: #fff;
  border-color: var(--gw-border);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: border-color .2s, box-shadow .2s;
}
.gw-pdp-section:hover {
  border-color: rgba(46,125,50,.35);
  box-shadow: 0 4px 18px rgba(46,125,50,.06);
}
.gw-pdp-section .gw-cut-section-title {
  display: inline-flex; align-items: center; gap: 8px;
}
.gw-pdp-section .gw-cut-section-title i {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--gw-green-pale); color: var(--gw-green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.gw-pdp-section .gw-cut-chip {
  animation: gwPdpChipIn .35s cubic-bezier(.2,.8,.2,1) both;
  display: inline-flex; align-items: center; gap: 5px;
}
.gw-pdp-section .gw-cut-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,125,50,.12);
}
.gw-pdp-section .gw-cut-chip.selected {
  box-shadow: 0 6px 18px rgba(46,125,50,.25);
}
.gw-pdp-section .gw-cut-chip.selected i { font-size: 13px; }

/* Estoque */
.gw-pdp-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #2e7d32;
  background: var(--gw-green-pale);
  padding: 7px 12px; border-radius: 99px;
  margin: 4px 0 16px;
}
.gw-pdp-stock i { font-size: 14px; }

/* Ações (qty + add) */
.gw-pdp-actions {
  display: flex; align-items: stretch; gap: 12px;
  margin-bottom: 22px;
}
.gw-pdp-qty {
  border-radius: 14px;
  border-width: 2px;
}
.gw-pdp-qty .gw-qty-btn { width: 44px; height: 50px; font-size: 20px; }
.gw-pdp-qty .gw-qty-input { width: 48px; font-size: 17px; height: 50px; }

.gw-pdp-add {
  flex: 1; padding: 14px 22px;
  font-size: 15px; font-weight: 700; letter-spacing: .2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-accent) 100%);
  box-shadow: 0 10px 24px rgba(46,125,50,.28);
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.gw-pdp-add i { font-size: 18px; }
.gw-pdp-add::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.gw-pdp-add:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(46,125,50,.35);
  filter: brightness(1.04);
}
.gw-pdp-add:hover:not(:disabled)::before { left: 130%; }
.gw-pdp-add:active:not(:disabled) { transform: translateY(0); }
.gw-pdp-add:disabled {
  background: #cfd8dc; box-shadow: none;
}
.gw-pdp-add.is-loading { color: transparent; }
.gw-pdp-add.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gwPdpBtnSpin .8s linear infinite;
}

/* Trust bar */
.gw-pdp-trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; padding-top: 4px;
}
.gw-pdp-trust-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--gw-border);
  border-radius: 12px; padding: 10px 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gw-pdp-trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(46,125,50,.25);
  box-shadow: 0 8px 20px rgba(46,125,50,.08);
}
.gw-pdp-trust-item i {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gw-green-pale); color: var(--gw-green);
  font-size: 16px; flex-shrink: 0;
}
.gw-pdp-trust-item strong { font-size: 12.5px; display: block; line-height: 1.15; }
.gw-pdp-trust-item small  { font-size: 11px; color: var(--gw-text-soft); }

/* Indisponível */
.gw-pdp-unavailable {
  text-align: left; font-size: 15px; padding: 14px 16px;
  background: #fff5f5; color: #c62828;
  border: 1px solid #ffcdd2; border-radius: 12px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}

/* Card de descrição */
.gw-pdp-card { animation: gwPdpFadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.gw-pdp-description {
  font-size: 14.5px; line-height: 1.75; color: #444;
}

/* "Você também pode gostar" — carrossel moderno */
.gw-pdp-related { animation: gwPdpFadeUp .5s cubic-bezier(.2,.8,.2,1) both; position: relative; }
.gw-pdp-related-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.gw-pdp-related .gw-section-title i {
  color: var(--gw-orange);
  animation: gwPdpFloat 2.4s ease-in-out infinite;
}
.gw-pdp-related-sub {
  font-size: 13px; color: var(--gw-text-soft);
  margin: 4px 0 0; padding-left: 14px;
}
.gw-pdp-related-nav { display: flex; gap: 8px; }
.gw-pdp-related-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--gw-green);
  border: 1.5px solid var(--gw-border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer;
  transition: all .22s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.gw-pdp-related-arrow:hover {
  background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-accent) 100%);
  color: #fff; border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 22px rgba(46,125,50,.32);
}
.gw-pdp-related-arrow:active { transform: translateY(0) scale(.98); }
.gw-pdp-related-arrow.is-disabled {
  opacity: .35; pointer-events: none;
}

/* Viewport com fades laterais */
.gw-pdp-related-viewport { position: relative; }
.gw-pdp-related-fade {
  position: absolute; top: 0; bottom: 8px; width: 60px;
  pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .2s ease;
}
.gw-pdp-related-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--gw-bg) 0%, rgba(255,255,255,0) 100%);
}
.gw-pdp-related-fade--right {
  right: 0;
  background: linear-gradient(-90deg, var(--gw-bg) 0%, rgba(255,255,255,0) 100%);
}
@media (min-width: 768px) {
  .gw-pdp-related-fade { opacity: 1; }
}

.gw-pdp-related-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.gw-pdp-related-track.is-dragging {
  cursor: grabbing; scroll-behavior: auto;
  scroll-snap-type: none;
}
.gw-pdp-related-track::-webkit-scrollbar { display: none; }

.gw-pdp-related-item {
  scroll-snap-align: start;
  min-width: 0;
  transition: transform .25s ease;
}
.gw-pdp-related-item:hover { transform: translateY(-3px); }
.gw-pdp-related-item .gw-product-card {
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.gw-pdp-related-item:hover .gw-product-card {
  box-shadow: 0 14px 32px rgba(20,60,30,.10);
}
/* drag não dispara navegação acidental */
.gw-pdp-related-track.is-dragging a,
.gw-pdp-related-track.is-dragging button { pointer-events: none; }

@media (min-width: 480px)  { .gw-pdp-related-track { grid-auto-columns: 55%; } }
@media (min-width: 576px)  { .gw-pdp-related-track { grid-auto-columns: 45%; } }
@media (min-width: 768px)  { .gw-pdp-related-track { grid-auto-columns: 31%; } }
@media (min-width: 992px)  { .gw-pdp-related-track { grid-auto-columns: 23.5%; } }
@media (min-width: 1200px) { .gw-pdp-related-track { grid-auto-columns: 19%;   } }
@media (min-width: 1400px) { .gw-pdp-related-track { grid-auto-columns: 16.2%; } }

/* Barra de progresso */
.gw-pdp-related-progress {
  height: 4px; background: var(--gw-border);
  border-radius: 99px; overflow: hidden;
  margin-top: 10px;
}
.gw-pdp-related-progress-bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gw-green) 0%, var(--gw-accent) 100%);
  border-radius: 99px;
  transition: width .25s ease;
}

@media (max-width: 575.98px) {
  .gw-pdp-actions { flex-wrap: nowrap; }
  .gw-pdp-add { font-size: 14px; padding: 12px 14px; }
  .gw-pdp-qty .gw-qty-btn { width: 38px; height: 46px; }
  .gw-pdp-qty .gw-qty-input { width: 40px; height: 46px; font-size: 15px; }
  .gw-pdp-trust { grid-template-columns: 1fr; }
  .gw-pdp-related-arrow { display: none; }
  .gw-pdp-related-track { grid-auto-columns: 70%; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .gw-pdp-shine,
  .gw-pdp-price-hint i,
  .gw-pdp-add::before { animation: none !important; }
  .gw-pdp-info > * { animation: none !important; }
  .gw-pdp-gallery-wrap { animation: none !important; }
  .gw-pdp-gallery:hover img { transform: none; }
}

/* ==========================================================
   FRETE GRÁTIS — label e pílula no resumo do checkout
   ========================================================== */
.gw-free-shipping-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  background: linear-gradient(135deg, var(--gw-green) 0%, var(--gw-accent) 100%);
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .3px;
  box-shadow: 0 4px 10px rgba(46,125,50,.25);
}
.gw-free-shipping-pill i { font-size: 12px; }

.gw-free-shipping-hint {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
  border: 1px dashed #ffb74d;
  color: #6d4c00;
  font-size: 12.5px; line-height: 1.35;
}
.gw-free-shipping-hint i {
  font-size: 16px; color: var(--gw-orange); flex-shrink: 0;
}
.gw-free-shipping-hint strong { color: #5d3a00; font-weight: 700; }

.gw-free-shipping-hint.is-achieved {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1faf2 100%);
  border-color: var(--gw-green-light);
  color: #1b5e20;
  animation: gwPdpFadeUp .35s cubic-bezier(.2,.8,.2,1) both;
}
.gw-free-shipping-hint.is-achieved i { color: var(--gw-green); }
.gw-free-shipping-hint.is-achieved strong { color: #1b5e20; }
