/* Layout & Grid */
.grid-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.column-main { display: flex; flex-direction: column; gap: 20px; }
.column-side { display: flex; flex-direction: column; gap: 20px; }

/* Cards */
.card { background: white; border-radius: 12px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.card-header { background: #fafafa; padding: 15px 20px; font-weight: 700; color: #333; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; }
.card-body { padding: 20px; }
.border-highlight { border-left: 4px solid #000; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #444; }
.form-control { width: 100%; padding: 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; transition: 0.2s; }
.form-control:focus { border-color: #000; outline: none; }

/* Buttons */
.btn-sm-dark { background: #000; color: white; border: none; padding: 5px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.btn-primary-full { width: 100%; background: var(--verde-neon, #ccff00); color: black; padding: 14px; border: none; border-radius: 8px; font-weight: 800; cursor: pointer; }
.btn-outline-full { width: 100%; background: #f9f9f9; border: 1px dashed #ccc; padding: 8px; border-radius: 6px; color: #666; cursor: pointer; margin-top: 10px;}

/* Upload Zone */
.upload-zone { border: 2px dashed #ddd; padding: 30px; text-align: center; position: relative; cursor: pointer; border-radius: 8px; transition: 0.3s; }
.upload-zone:hover { border-color: var(--verde-neon, #ccff00); background: #fafff0; }
.file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Helpers */
.info-box { background: #f0f0f0; padding: 10px; font-size: 12px; border-radius: 6px; color: #666; margin-bottom: 15px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.badge-hidden { display: none; background: #eee; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.spec-row { display: flex; gap: 10px; margin-bottom: 10px; }
/* Arreglo para iconos de paginación gigantes */
/* Contenedor principal */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* La lista horizontal */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px; /* Espacio entre botones */
    align-items: center;
}

/* Estilo base de cada botón */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px; /* Bordes redondeados */
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

/* Hover (Cuando pasas el mouse) */
.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: black;
}

/* Activo (Página actual - Negro) */
.page-item.active .page-link {
    background-color: black;
    border-color: black;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Deshabilitado (Flechas grises) */
.page-item.disabled .page-link {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: default;
    border-color: #f3f4f6;
}
/* Estilo base para botones de acción */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    font-size: 14px;
    text-decoration: none; /* Para el <a> */
}

/* Botón Editar (Gris oscuro al pasar mouse) */
.btn-edit {
    color: #6b7280; /* Gris */
}
.btn-edit:hover {
    background-color: #f3f4f6;
    color: #111827; /* Negro */
}

/* Botón Eliminar (Rojo suave al pasar mouse) */
.btn-delete {
    color: #9ca3af; /* Gris claro */
}
.btn-delete:hover {
    background-color: #fee2e2; /* Fondo rojo muy claro */
    color: #ef4444; /* Rojo alerta */
}
/* Estilo del Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; /* Gris cuando está apagado */
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Cuando está activado (Verde) */
input:checked + .slider {
  background-color: #10b981; /* Tu verde de "Activo" */
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Texto pequeño al lado (Opcional) */
.status-label {
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle; 
}

/* Tabla de Variantes Pro */
.table-variants {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Espacio entre filas */
}

.table-variants th {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 10px;
    text-align: left;
}

.variant-row {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.variant-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.variant-row td {
    padding: 10px;
    background: white;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.variant-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid #f3f4f6;
}

.variant-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: 1px solid #f3f4f6;
}

/* Inputs dentro de la tabla */
.v-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    background: #f9fafb;
    transition: all 0.2s;
}

.v-input:focus {
    background: white;
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.sku-badge {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dbeafe;
}