/* products.css â€” v1.0
   Estilos del tab Products. AÃ±adir al CSS global del panel o incluir como <link>. */

/* â”€â”€ Shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .products-shell {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tab-products .products-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-products .products-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.tab-products .products-subtabs {
  display: flex;
  gap: 0.25rem;
  background: #f3f4f6;
  padding: 0.25rem;
  border-radius: 0.5rem;
  flex: 1;
}

.tab-products .products-subtab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #6b7280;
  transition: all 0.15s;
}

.tab-products .products-subtab:hover {
  color: #374151;
}

.tab-products .products-subtab.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* â”€â”€ List / Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .products-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.products-search-input,
.tab-products .products-status-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  min-width: 200px;
}

.tab-products .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.products-empty,
.tab-products .products-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

/* â”€â”€ Product Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tab-products .product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tab-products .product-card-image {
  aspect-ratio: 1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tab-products .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-products .product-card-noimg {
  font-size: 2rem;
  color: #d1d5db;
}

.tab-products .product-card-body {
  padding: 1rem;
}

.tab-products .product-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.tab-products .product-card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tab-products .product-card-sku {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: monospace;
}

.tab-products .product-card-status {
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.tab-products .product-card-phase {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.tab-products .phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tab-products .product-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* â”€â”€ Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .product-detail {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.tab-products .product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-products .product-detail-actions {
  display: flex;
  gap: 0.5rem;
}

.tab-products .product-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .tab-products .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

.tab-products .product-detail-images {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.tab-products .product-detail-images img {
  height: 120px;
  width: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.tab-products .product-detail-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-products .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
}

.tab-products .product-detail-html {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tab-products .product-detail-section {
  margin-bottom: 1.5rem;
}

.product-detail-section h3,
.tab-products .product-detail-section h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: #111827;
}

.tab-products .product-detail-sidebar {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.tab-products .product-detail-field {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tab-products .product-detail-field:last-child {
  border-bottom: none;
}

.tab-products .product-detail-field label {
  color: #6b7280;
}

/* â”€â”€ Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.products-table th,
.tab-products .products-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.tab-products .products-table th {
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
}

/* â”€â”€ Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .product-form {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  max-width: 700px;
}

.tab-products .product-form-fields {
  display: grid;
  gap: 1rem;
}

.tab-products .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tab-products .form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-input,
.form-textarea,
.tab-products .form-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.tab-products .form-textarea {
  resize: vertical;
}

.tab-products .form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.tab-products .product-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* â”€â”€ Translations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .translations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .tab-products .translations-grid {
    grid-template-columns: 1fr;
  }
}

.tab-products .translations-col {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.tab-products .translations-field {
  margin-bottom: 1rem;
}

.tab-products .translations-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.375rem;
}

.translations-input,
.tab-products .translations-textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.tab-products .translations-value {
  padding: 0.5rem;
  background: #fff;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  font-size: 0.875rem;
  min-height: 2rem;
}

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.tab-products .btn-primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.tab-products .btn-primary:hover {
  background: #374151;
}

.tab-products .btn-secondary {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.tab-products .btn-secondary:hover {
  background: #f9fafb;
}

.tab-products .btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.tab-products .btn-danger:hover {
  background: #dc2626;
}

.tab-products .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.tab-products .modal-box {
  background: #fff;
  border-radius: 0.75rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.tab-products .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.tab-products .modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.tab-products .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}

.tab-products .modal-close:hover {
  color: #374151;
}

.tab-products .modal-body {
  padding: 1.5rem;
}

.tab-products .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* â”€â”€ Alert â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .alert {
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.tab-products .alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.tab-products .alert-warning ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

/* â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-products .muted {
  color: #9ca3af;
  font-size: 0.875rem;
}


/* === PRODUCTS OVERVIEW (P3 Fase 2) === */
/* products-overview.css â€” Estilos vista Products Overview (Fase 2) */
/* Editorial POTISSE: IBM Plex Sans Condensed, cream #F2F1ED, chocolate #3A322E */

.products-overview {
  font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  color: #3A322E;
  background: #F2F1ED;
  padding: 1.5rem;
  min-height: 100vh;
}

.overview-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.overview-subtitle {
  font-size: 0.875rem;
  color: #8A827E;
  margin: 0 0 1.25rem;
}

.overview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
}

.pill {
  padding: 0.375rem 0.875rem;
  border: 1px solid #D4CFC8;
  border-radius: 999px;
  background: #fff;
  color: #3A322E;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pill:hover {
  border-color: #3A322E;
}

.pill.active {
  background: #3A322E;
  color: #F2F1ED;
  border-color: #3A322E;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.sort-select select {
  padding: 0.375rem 0.625rem;
  border: 1px solid #D4CFC8;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  color: #3A322E;
}

/* â”€â”€ Grid de cards â”€â”€ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* â”€â”€ Card â”€â”€ */
.product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E8E4DF;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(58, 50, 46, 0.10);
  transform: translateY(-2px);
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #F2F1ED;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: #C4BFB8;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-sku {
  font-size: 0.75rem;
  color: #9A948E;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
}

.card-stock {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.stock-dot {
  font-size: 0.625rem;
}

.card-sizes {
  font-size: 0.875rem;
  margin: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  letter-spacing: 0.05em;
}

/* â”€â”€ Chip de batch â”€â”€ */
.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  width: fit-content;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.card-chip:hover {
  filter: brightness(0.95);
}

.chip-icon {
  font-size: 0.875rem;
}

/* â”€â”€ BotÃ³n â”€â”€ */
.card-btn {
  margin-top: auto;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s ease;
  width: 100%;
  font-family: inherit;
}

.card-btn:hover {
  opacity: 0.88;
}

/* â”€â”€ Estados vacÃ­os / loading / error â”€â”€ */
.overview-empty,
.loading,
.error {
  padding: 2rem;
  text-align: center;
  color: #8A827E;
  font-size: 0.9375rem;
}

.error {
  color: #A54848;
  background: #FDF2F2;
  border-radius: 8px;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 480px) {
  .products-overview {
    padding: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}


/* === PRODUCTS OVERVIEW FASE 2.1 REDESIGN === */
/* === REDESIGN Fase 2.1 === */
.pcard {
  background: white;
  border: 0.5px solid #e5e2db;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.pcard:hover {
  box-shadow: 0 6px 20px rgba(58, 50, 46, 0.10);
  transform: translateY(-2px);
}
.pcard[data-state="A"], .pcard[data-state="B"] { border-left: 4px solid #A54848; }
.pcard[data-state="C"], .pcard[data-state="D"] { border-left: 4px solid #4E7A5A; }

.pcard-photo {
  background: #f5f3ee;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pcard-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcard-photo-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: #C4BFB8;
  letter-spacing: 0.05em;
}
.pcard-status {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.pcard-status--critical { background: #A54848; }
.pcard-status--ok { background: #4E7A5A; font-size: 16px; }

.pcard-body { padding: 14px 16px; }
.pcard-title { font-size: 15px; font-weight: 500; color: #3A322E; letter-spacing: 0.03em; margin: 0; text-transform: uppercase; }
.pcard-sku { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7a746e; margin-bottom: 10px; }

.pcard-sizes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin: 12px 0 6px;
}
.pcard-size {
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.pcard-size-label { font-size: 10px; font-weight: 500; }
.pcard-size-qty { font-size: 15px; font-weight: 500; }
.pcard-size--ok { background: #E8F0E4; }
.pcard-size--ok .pcard-size-label { color: #4E7A5A; }
.pcard-size--ok .pcard-size-qty { color: #2d4a30; }
.pcard-size--critical { background: #F5DCDC; }
.pcard-size--critical .pcard-size-label { color: #A54848; }
.pcard-size--critical .pcard-size-qty { color: #7a2626; }

.pcard-total { font-size: 11px; color: #7a746e; margin-bottom: 12px; }

.pcard-futuro {
  border-top: 0.5px solid #e5e2db;
  padding-top: 10px;
  margin-bottom: 10px;
}
.pcard-toggle { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #3A322E; cursor: pointer; }
.pcard-toggle input { cursor: pointer; }
.pcard-batches { padding-left: 22px; margin-top: 8px; }
.pcard-batches-header { font-size: 10px; color: #7a746e; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pcard-batch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 0;
  cursor: pointer;
}
.pcard-batch input { cursor: pointer; }
.pcard-batch input:disabled { cursor: not-allowed; }
.pcard-batch-name { flex: 1; color: #3A322E; }
.pcard-batch-qty { color: #3A322E; font-family: 'IBM Plex Mono', monospace; }
.pcard-batch-eta { color: #7a746e; font-family: 'IBM Plex Mono', monospace; font-size: 10px; }

.pcard-cta {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.pcard-cta--solid { background: #3A322E; color: #F2F1ED; border: 0; }
.pcard-cta--outline { background: transparent; color: #3A322E; border: 1px solid #3A322E; }
.pcard-cta:hover { opacity: 0.88; }

.pcard-detail {
  width: 100%;
  background: transparent;
  color: #7a746e;
  border: 0;
  padding: 8px 0 0;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
}
.pcard-detail:hover { color: #3A322E; }

/* Responsive */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .pcard-sizes { grid-template-columns: repeat(3, 1fr); }
}


/* === GENERATE BATCH MODAL (Fase 3) === */
/* === GENERATE BATCH MODAL (Fase 3) === */

.gbm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(58, 50, 46, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: gbm-fade-in 0.2s ease;
}

@keyframes gbm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gbm-modal {
  background: #F2F1ED;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(58, 50, 46, 0.25);
  animation: gbm-slide-up 0.25s ease;
}

@keyframes gbm-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gbm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 0.5px solid #e5e2db;
}

.gbm-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #3A322E;
  margin: 0;
  letter-spacing: -0.01em;
}

.gbm-subtitle {
  font-size: 0.8125rem;
  color: #7a746e;
  margin: 4px 0 0;
  font-family: 'IBM Plex Mono', monospace;
}

.gbm-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #7a746e;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.gbm-close:hover {
  background: #e5e2db;
  color: #3A322E;
}

.gbm-body {
  padding: 20px 24px;
}

.gbm-loading {
  text-align: center;
  padding: 2rem 0;
  color: #7a746e;
  font-size: 0.9375rem;
}

.gbm-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e2db;
  border-top-color: #3A322E;
  border-radius: 50%;
  animation: gbm-spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

.gbm-spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gbm-spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes gbm-spin {
  to { transform: rotate(360deg); }
}

.gbm-error {
  color: #A54848;
  background: #F5DCDC;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.gbm-section {
  margin-bottom: 16px;
}

.gbm-section:last-child {
  margin-bottom: 0;
}

.gbm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gbm-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3A322E;
}

.gbm-section-meta {
  font-size: 0.75rem;
  color: #7a746e;
  font-family: 'IBM Plex Mono', monospace;
}

.gbm-sizes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.gbm-size-input {
  text-align: center;
}

.gbm-size-input label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #7a746e;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.gbm-size-input input {
  width: 100%;
  padding: 8px 4px;
  border: 1px solid #d4cfc8;
  border-radius: 6px;
  background: #fff;
  color: #3A322E;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gbm-size-input input:focus {
  outline: none;
  border-color: #3A322E;
  box-shadow: 0 0 0 3px rgba(58, 50, 46, 0.08);
}

.gbm-total {
  font-size: 0.875rem;
  color: #7a746e;
}

.gbm-total strong {
  color: #3A322E;
  font-size: 1rem;
}

.gbm-divider {
  height: 0.5px;
  background: #e5e2db;
  margin: 16px 0;
}

.gbm-eta-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #d4cfc8;
  border-radius: 6px;
  background: #fff;
  color: #3A322E;
  font-size: 0.9375rem;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 6px;
}

.gbm-eta-input:focus {
  outline: none;
  border-color: #3A322E;
  box-shadow: 0 0 0 3px rgba(58, 50, 46, 0.08);
}

.gbm-eta-preview {
  font-size: 0.8125rem;
  color: #4E7A5A;
  margin: 6px 0 0;
  font-weight: 500;
}

.gbm-notes {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4cfc8;
  border-radius: 6px;
  background: #fff;
  color: #3A322E;
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
  margin-top: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gbm-notes:focus {
  outline: none;
  border-color: #3A322E;
  box-shadow: 0 0 0 3px rgba(58, 50, 46, 0.08);
}

.gbm-notes::placeholder {
  color: #b5afa8;
}

.gbm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 0.5px solid #e5e2db;
}

.gbm-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.gbm-btn--solid {
  background: #3A322E;
  color: #F2F1ED;
  border: 0;
}

.gbm-btn--solid:hover:not(:disabled) {
  opacity: 0.88;
}

.gbm-btn--solid:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gbm-btn--outline {
  background: transparent;
  color: #3A322E;
  border: 1px solid #3A322E;
}

.gbm-btn--outline:hover {
  background: rgba(58, 50, 46, 0.05);
}

/* Toast */
.gbm-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

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

.gbm-toast--success {
  background: #4E7A5A;
  color: #fff;
}

.gbm-toast--error {
  background: #A54848;
  color: #fff;
}

.gbm-toast--info {
  background: #3A322E;
  color: #F2F1ED;
}

/* Responsive modal */
@media (max-width: 520px) {
  .gbm-modal {
    max-height: 95vh;
  }
  .gbm-sizes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gbm-header,
  .gbm-body,
  .gbm-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* === FIX B2.5 UX (4 sep) === */

/* Prioridad Wizard: card seleccionada */
.gbw-priority-option.gbw-priority-active {
  border: 2px solid var(--potisse-chocolate, #111827) !important;
  background: rgba(17, 24, 39, 0.05);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

/* Botón success (usado en "Crear batch" final) */
.tab-products .btn-success {
  background: #059669;
  color: #fff;
  border-color: #059669;
}
.tab-products .btn-success:hover {
  background: #047857;
  border-color: #047857;
}
