
.logo-admin-link {
  display: flex;
  align-items: center;
  padding-left: 0; /* Eliminar padding izquierdo */
  margin-left: 0; /* Eliminar margen izquierdo */
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  padding: 10px 15px;
}

/* Posicionar correctamente el botón hamburguesa */
.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 15px; /* Espacio entre el botón y el logo */
  padding: 0;
  order: 2; /* Asegura que aparezca antes del logo */
}

.admin-badge {
  display: inline-block;
  background-color: #6e2ff7;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.admin-navigation {
  padding: 5px 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* Evita que los textos se rompan */
}

.admin-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav-links li {
  margin-right: 20px;
}

.admin-nav-links .nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.admin-nav-links .nav-link:hover {
  color: #6e2ff7;
}

.admin-nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #6e2ff7;
  transition: width 0.2s;
}

.admin-nav-links .nav-link:hover::after,
.admin-nav-links li.active .nav-link::after {
  width: 100%;
}

.admin-search {
  max-width: 260px;
}

.admin-header-nav .icon-button,
.admin-header-nav .icon-link {
  background: none;
  border: none;
  padding: 8px;
  margin-left: 15px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background-color 0.2s;
}

.admin-header-nav .icon-button:hover,
.admin-header-nav .icon-link:hover {
  background-color: rgba(0,0,0,0.05);
  color: #6e2ff7;
}
    

.admin-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}
    
.products-table {
  width: 100%;
  border-collapse: collapse;
}
    
.products-table th,
.products-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.products-table th {
  background-color: #f5f5f5;
}
    
.edit-btn {
  color: #2196F3;
  margin-right: 8px;
}
    
.delete-btn {
  color: #F44336;
}


/* Agregar estos estilos para los botones de iconos */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}


/* Estilo para el formulario de especificaciones */
#specificationsContainer {
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Estilo para la tabla de productos */
.products-table img {
  border: 1px solid #eee;
}

/* Tooltip para IDs largos */
[title] {
  cursor: help;
}

/* Añadir estos estilos para los campos adicionales */
.extra-fields-section {
  background-color: #f5f7fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #4dabf7;
}

.extra-fields-section h3 {
  margin-top: 0;
  color: #3a8cbc;
  font-size: 16px;
  margin-bottom: 15px;
}

/* Estilos para el modal mejorado */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 2% auto;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

/* Sistema de pestañas */
.tabs-container {
  margin-bottom: 25px;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #2196F3;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2196F3;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Formulario de 3 columnas */
.product-form-grid {
  display: grid;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.preview-img {
  grid-row: span 2;
}

.image-preview {
  width: 100%;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Estilos para especificaciones */
.specs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.specs-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 5px;
}

.spec-row {
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 10px;
  background-color: #f5f7fa;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-items: center;
  border-left: 3px solid #2196F3;
}

.spec-row input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

.remove-spec {
  background: #ff5252;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Campos adicionales */
.extra-fields-section {
  padding: 0;
  background-color: transparent;
}

.no-fields-message {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
}

/* Footer del formulario */
.form-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.form-footer button {
  padding: 10px 20px;
  font-size: 15px;
}

/* Agregar estos estilos para mejorar la apariencia del textarea */
textarea#productDescription {
  width: 100%;
  min-height: 40px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

/* Asegurar que full-width funciona correctamente en la cuadrícula */
.full-width {
  grid-column: 1 / -1 !important;
}

/* Ajustar el espacio para el contenedor de descripción */
.form-group.full-width {
  margin-top: 10px;
  margin-bottom: 15px;
}

.compact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary, #2196F3);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.compact-btn:hover {
  background-color: #0d8bf2;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.compact-btn svg {
  stroke: white;
}

/* Versión alternativa con solo icono (opcional) */
.icon-only-btn {
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary, #2196F3);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-only-btn:hover {
  background-color: #0d8bf2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#addProductBtn {
  margin-left: 20px; /* Ajusta este valor según necesites */
}

.secondary-btn.small {
  font-size: 12px;
  padding: 4px 8px;
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
}

/* Estilo para cuando el campo tiene un valor generado */
.auto-generated {
  background-color: #f8fff8;
  border-color: #c3e6cb;
}

/* Estilos específicos para campos que queremos hacer más compactos */
#productCategory,
#productRating {
  max-width: 95%;
}

/* Hacer que el campo familyId sea ligeramente más ancho */
#productFamilyId {
  width: 100%;
}


/* Estilos para marketplaces */
.marketplace-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.best-price-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background-color: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.promo-badge {
  background-color: #ff5252;
  color: white;
}

.best-badge {
  background-color: #4caf50;
  color: white;
}

.price {
  font-weight: 600;
  color: #333;
}

.marketplace-btn {
  align-self: flex-start;
}

.products-table, .users-table, .marketplaces-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th, .users-table th, .marketplaces-table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #ddd;
}

.products-table td, .users-table td, .marketplaces-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.marketplaces-table-container {
  margin-top: 20px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.marketplaces-table {
  width: 100%;
  border-collapse: collapse;
}

.marketplaces-table th,
.marketplaces-table td {
  padding: 12px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

.marketplaces-table th {
  font-weight: 600;
  color: #555;
  background-color: #f5f7fa;
  position: sticky;
  top: 0;
  z-index: 1;
}

.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.best-price-section {
  flex: 1;
}

.best-price-display {
  background-color: #f5f7fa;
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.best-price-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.best-price-marketplace {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.best-price-marketplace img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.best-price-info {
  flex: 1;
}

.best-price-info .price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.best-price-info .discount {
  color: #4caf50;
  font-weight: 600;
  font-size: 14px;
}

.best-price-info .original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
}

.best-price-actions {
  margin-top: 10px;
}

.empty-state {
  color: #888;
  font-style: italic;
}

.marketplace-action-cell {
  display: flex;
  gap: 8px;
}

.marketplace-row.is-best-price {
  background-color: rgba(76, 175, 80, 0.05);
}

.small.compact-btn {
  font-size: 12px;
  padding: 5px 8px;
  height: auto;
}

/* Estilos para el radio button de mejor precio */
.set-best-price {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #2196F3;
  outline: none;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.set-best-price:checked {
  background-color: white;
}

.set-best-price:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2196F3;
}

.admin-header h2 {
  margin: 0;
}

/* Botón de volver */
#backToProductsBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#backToProductsBtn svg {
  width: 16px;
  height: 16px;
}

/* Ajustes para mejor visualización en página completa */
.marketplace-header {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.marketplaces-table-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 5px;
  margin-bottom: 30px;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}


/* Estadísticas de usuarios */
.users-stats-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-box {
  flex: 1;
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

/* Estilos para la tabla de usuarios */
.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
}

.users-table th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #333;
}

.users-table tr:hover {
  background-color: #f9f9f9;
}

/* Badges para roles */
.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.basic-badge {
  background-color: #e9ecef;
  color: #495057;
}

.premium-badge {
  background-color: #ffd166;
  color: #664d00;
}

.admin-badge {
  background-color: #4361ee;
  color: white;
}

/* Modal de detalles de usuario */
.user-details {
  padding: 20px 0;
}

.user-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.user-avatar svg {
  width: 80px;
  height: 80px;
  stroke: #6e2ff7;
  background-color: rgba(110, 47, 247, 0.1);
  padding: 15px;
  border-radius: 50%;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  font-weight: 500;
}

.user-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.role-btn {
  background-color: #e9ecef;
  color: #495057;
}

.role-btn:hover {
  background-color: #dee2e6;
}

/* Modal de cambio de rol */
.user-preview {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.user-preview h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.user-preview p {
  margin: 5px 0;
  color: #666;
}

/* Loader y mensajes */
.loading-spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6e2ff7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-message {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* Controles de paginación */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.pagination-btn:not(:disabled):hover {
  background-color: #f8f9fa;
}

#paginationInfo {
  font-size: 14px;
  color: #666;
}

/* Estilos profesionales para elementos select */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #dce0e4;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

select:hover {
  border-color: #b3b9c4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

select:focus {
  outline: none;
  border-color: #6e2ff7;
  box-shadow: 0 0 0 3px rgba(110, 47, 247, 0.15);
}

/* Estilo para option */
select option {
  padding: 10px;
  font-size: 14px;
  background-color: white;
}

/* Estilo para selects deshabilitados */
select:disabled {
  background-color: #f5f5f5;
  color: #888;
  cursor: not-allowed;
  opacity: 0.8;
  border-color: #ddd;
}

/* Estilo para selects inválidos */
select:invalid {
  border-color: #ff5252;
}

/* Agregar estilo específico para selects dentro del formulario de marketplace */
#marketplaceForm select,
#changeRoleForm select,
#userForm select {
  max-width: 100%;
  margin-bottom: 5px;
}

/* Versión más compacta para algunos contextos si es necesario */
.compact-form select {
  padding: 8px 12px;
  font-size: 13px;
}

/* Eliminar la flecha por defecto en IE */
select::-ms-expand {
  display: none;
}

/* Nuevo contenedor administrativo */
.admin-container {
  max-width: 1200px;  /* Mismo ancho máximo que main-header */
  width: 100%;
  margin-top: 100px; /* Mantener este margen superior para estar debajo del header */
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;  /* Mismo padding horizontal que main-header */
}

/* Mejoras para el encabezado administrativo */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 15px;
}

.admin-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

/* Mejorar home-section para que sea visible en todas las resoluciones */
.home-section {
  display: flex;
  align-items: center;
  z-index: 10; /* Asegurar que esté por encima de otros elementos */
}

.home-section .icon-link, 
.home-section a,
.home-section button {
  cursor: pointer !important; /* Asegura que los elementos interactivos muestren la manito */
}

/* Mejoras para la barra de filtros */
.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.filters input[type="text"] {
  flex: 1;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #dce0e4;
  border-radius: 6px;
  font-size: 14px;
}

.filters input[type="text"]:focus {
  outline: none;
  border-color: #6e2ff7;
  box-shadow: 0 0 0 3px rgba(110, 47, 247, 0.1);
}

.filters {
    flex-wrap: wrap; /* Permitir que los elementos se ajusten en pantallas pequeñas */
  }

.search-input {
  max-width: 600px; /* Aumentar ancho máximo (era 400px) */
  width: 100%;
  padding: 12px 15px; /* Aumentar padding interno */
  font-size: 16px; /* Aumentar tamaño de letra */
  border-radius: 8px; /* Bordes más redondeados */
  height: auto; /* Altura automática según contenido */
}

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: none;
  border: 1px solid #dee2e6;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-number:hover {
  border-color: #6e2ff7;
  color: #6e2ff7;
}

.page-number.active {
  background-color: #6e2ff7;
  color: white;
  border-color: #6e2ff7;
}

.icon-btn {
  cursor: pointer;
}

.edit-btn, .delete-btn, .marketplace-btn {
  cursor: pointer;
}

/* También es buena idea asegurarse que todos los botones tienen el cursor adecuado */
button, 
.btn, 
.pagination-btn,
.page-number,
.compact-btn {
  cursor: pointer;
}

/* Asegurar que los elementos clicables en general usan el cursor pointer */
a, [role="button"], [type="button"], [type="submit"] {
  cursor: pointer;
}

/* Menú móvil para admin */
.admin-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background-color: white;
  z-index: 1010;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.admin-mobile-menu.active {
  right: 0;
}

.admin-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1005;
}

.admin-mobile-overlay.active {
  display: block;
}

.admin-mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.admin-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  border-radius: 3px;
  transition: 0.3s;
}

.admin-mobile-accordion {
  padding: 0 15px;
}

.admin-accordion-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

.admin-accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 10px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.admin-accordion-button .icon {
  transition: transform 0.3s;
}

.admin-accordion-button.active .icon {
  transform: rotate(180deg);
}

/* Mejora para dispositivos móviles */
@media (max-width: 768px) {

  select {
    padding: 12px 40px 12px 12px;
    font-size: 16px; /* Mejora la usabilidad en móviles */
  }

  /* Right section con íconos */
  .home-section {
    position: absolute;
    right: 15px;
    top: 15px; /* Ajustar posición vertical */
    background: rgba(255, 255, 255, 0.9); /* Fondo semi-transparente */
    padding: 5px;
    border-radius: 4px;
  }
  
  /* Ajustar tamaño del ícono para que sea más fácil de tocar */
  .home-section .icon-link {
    padding: 10px;
  }

    /* Logo y posicionamiento */
  .logo-admin-link {
    margin-right: 60px; /* Espacio para el right-section */
  }

  .admin-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    display: block !important;
  }
  
  .admin-navigation {
    display: none;
  }
  
  /* Agregar botón hamburguesa en móvil */
  .menu-toggle-container {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 10px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
/* Mostrar botón hamburguesa */
  .admin-menu-toggle {
    display: block;
  }
  
  /* Ocultar navegación estándar */
  .admin-navigation {
    display: none;
  }
  
  .home-section {
    top: 10px;
    right: 10px;
    padding: 3px;
  }
  
  .home-section .icon-link {
    padding: 7px;
  }
  
    .logo-admin-link {
    margin-right: 50px; /* Ajustar en pantallas muy pequeñas */
    padding-top: 5px; /* Separar un poco del borde superior */
  }
}
.marketplace-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: contain;
}

.best-price-marketplace .marketplace-logo {
  width: 24px;
  height: 24px;
}

.marketplace-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-column {
  flex: 1;
  min-width: 0; /* Evita que los elementos se desborden */
}

.form-column label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.form-column select, 
.form-column input {
  width: 100%;
}


/* Ajustar la fila de categoría-subcategoría */
.category-subcategory-row {
  margin-bottom: 15px;
}

/* Quitar los posicionamientos antiguos que ya no necesitamos */
.second-row {
  grid-column: auto;
  grid-row: auto;
}

.rating-field {
  grid-column: auto;
  grid-row: auto;
}

.image-field {
  grid-column: auto;
  grid-row: auto;
}

/* Asegurar que los inputs tengan el mismo estilo */
.form-column input, 
.form-column select {
  width: 100%;
  padding: 10px;
  border: 1px solid #dce0e4;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
}

/* Estilos para inputs numéricos más compactos */
input[type="number"] {
  text-align: center;
}

/* Asegurar que el menú móvil es visible cuando está activo */
.admin-mobile-menu.active {
  display: block !important; /* Forzar visualización */
  right: 0 !important;
}

.admin-mobile-overlay.active {
  display: block !important; /* Forzar visualización */
}

/* Mejorar visibilidad de los elementos del acordeón */
.admin-accordion-item {
  background-color: white;
  margin-bottom: 5px;
  border-radius: 4px;
}

.admin-accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  width: 100%;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.admin-accordion-button.active {
  color: #6e2ff7;
  font-weight: 600;
}