/* Global Nails — PWA de toma de pedidos en campo */

#gn-pwa-root { max-width: 900px; margin: 0 auto; font-family: 'Poppins', Arial, sans-serif; color: #0d1f1e; }

.gn-pwa-login-gate { text-align: center; padding: 60px 20px; }

.gn-pwa-header { display: flex; align-items: center; justify-content: space-between; background: #0a2e2f; color: #fff; padding: 16px 20px; border-radius: 12px 12px 0 0; position: sticky; top: 0; z-index: 20; }
.gn-pwa-header h1 { font-size: 18px; margin: 0; }
.gn-pwa-cart-btn { background: #1fa39a; color: #fff; border: none; border-radius: 20px; padding: 10px 16px; font-size: 15px; font-weight: 700; }

.gn-pwa-search { width: 100%; box-sizing: border-box; padding: 14px 18px; font-size: 15px; border: 1px solid #dde8e6; border-top: none; }

.gn-pwa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; padding: 16px; }
.gn-pwa-card { background: #fff; border: 1px solid #dde8e6; border-radius: 12px; overflow: hidden; text-align: center; }
.gn-pwa-card img, .gn-pwa-noimg { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eaf7f5; }
.gn-pwa-card-body { padding: 10px; }
.gn-pwa-nombre { font-size: 13px; font-weight: 600; margin: 0 0 6px; min-height: 32px; }
.gn-pwa-precio { font-weight: 800; color: #0a2e2f; margin: 0 0 8px; }
.gn-pwa-add { width: 100%; background: #0a2e2f; color: #fff; border: none; border-radius: 8px; padding: 10px; font-weight: 700; font-size: 14px; }
.gn-pwa-agotado { opacity: .5; }
.gn-pwa-agotado-tag { display: block; font-size: 11px; color: #c17a4e; font-weight: 700; }

.gn-pwa-loading, .gn-pwa-empty { text-align: center; color: #6b7b7a; padding: 30px; grid-column: 1/-1; }

.gn-pwa-cart-panel { position: fixed; top: 0; right: -100%; width: 360px; max-width: 92vw; height: 100%; background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.18); transition: right .25s ease; overflow-y: auto; z-index: 999; }
.gn-pwa-cart-panel.gn-pwa-cart-open { right: 0; }
.gn-pwa-cart-inner { padding: 20px; }
.gn-pwa-cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid #eee; }
.gn-pwa-qty { display: flex; align-items: center; gap: 8px; }
.gn-pwa-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dde8e6; background: #fff; font-weight: 700; }
.gn-pwa-total { text-align: right; font-weight: 800; font-size: 16px; margin: 16px 0; }

.gn-pwa-cliente { margin: 16px 0; }
.gn-pwa-cliente input { width: 100%; box-sizing: border-box; padding: 10px; margin-bottom: 8px; border: 1px solid #dde8e6; border-radius: 8px; font-size: 13px; }
.gn-pwa-cliente-op { padding: 8px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid #eee; }
.gn-pwa-cliente-op:hover { background: #eaf7f5; }
.gn-pwa-cliente-ok { color: #178a82; font-weight: 700; font-size: 12.5px; }
.gn-pwa-o { text-align: center; color: #6b7b7a; font-size: 11.5px; margin: 10px 0; }

#gn-pwa-enviar { width: 100%; text-align: center; justify-content: center; }
#gn-pwa-status { text-align: center; font-size: 13px; margin-top: 10px; font-weight: 600; color: #178a82; }

@media (max-width: 480px) {
	.gn-pwa-grid { grid-template-columns: repeat(2, 1fr); }
}
